@devmoods/postgres-admin 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,78 +0,0 @@
1
- var Cy=t=>{throw TypeError(t)};var Rh=(t,r,a)=>r.has(t)||Cy("Cannot "+a);var L=(t,r,a)=>(Rh(t,r,"read from private field"),a?a.call(t):r.get(t)),De=(t,r,a)=>r.has(t)?Cy("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,a),me=(t,r,a,l)=>(Rh(t,r,"write to private field"),l?l.call(t,a):r.set(t,a),a),Ue=(t,r,a)=>(Rh(t,r,"access private method"),a);var uc=(t,r,a,l)=>({set _(o){me(t,r,o,a)},get _(){return L(t,r,l)}});function Rw(t,r){for(var a=0;a<r.length;a++){const l=r[a];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(l,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const f of s.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(o){if(o.ep)return;o.ep=!0;const s=a(o);fetch(o.href,s)}})();function Xc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dh={exports:{}},ao={};/**
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 Oy;function Dw(){if(Oy)return ao;Oy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(l,o,s){var f=null;if(s!==void 0&&(f=""+s),o.key!==void 0&&(f=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:t,type:l,key:f,ref:o!==void 0?o:null,props:s}}return ao.Fragment=r,ao.jsx=a,ao.jsxs=a,ao}var Ty;function Aw(){return Ty||(Ty=1,Dh.exports=Dw()),Dh.exports}var D=Aw(),Ah={exports:{}},He={};/**
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 Ry;function Mw(){if(Ry)return He;Ry=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function p(M){return M===null||typeof M!="object"?null:(M=S&&M[S]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function R(M,F,se){this.props=M,this.context=F,this.refs=x,this.updater=se||y}R.prototype.isReactComponent={},R.prototype.setState=function(M,F){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,F,"setState")},R.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function T(){}T.prototype=R.prototype;function A(M,F,se){this.props=M,this.context=F,this.refs=x,this.updater=se||y}var N=A.prototype=new T;N.constructor=A,w(N,R.prototype),N.isPureReactComponent=!0;var j=Array.isArray,C={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function B(M,F,se,de,ce,ye){return se=ye.ref,{$$typeof:t,type:M,key:F,ref:se!==void 0?se:null,props:ye}}function V(M,F){return B(M.type,F,void 0,void 0,void 0,M.props)}function z(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function X(M){var F={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(se){return F[se]})}var te=/\/+/g;function fe(M,F){return typeof M=="object"&&M!==null&&M.key!=null?X(""+M.key):F.toString(36)}function Z(){}function ae(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(Z,Z):(M.status="pending",M.then(function(F){M.status==="pending"&&(M.status="fulfilled",M.value=F)},function(F){M.status==="pending"&&(M.status="rejected",M.reason=F)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function ie(M,F,se,de,ce){var ye=typeof M;(ye==="undefined"||ye==="boolean")&&(M=null);var Te=!1;if(M===null)Te=!0;else switch(ye){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(M.$$typeof){case t:case r:Te=!0;break;case g:return Te=M._init,ie(Te(M._payload),F,se,de,ce)}}if(Te)return ce=ce(M),Te=de===""?"."+fe(M,0):de,j(ce)?(se="",Te!=null&&(se=Te.replace(te,"$&/")+"/"),ie(ce,F,se,"",function(je){return je})):ce!=null&&(z(ce)&&(ce=V(ce,se+(ce.key==null||M&&M.key===ce.key?"":(""+ce.key).replace(te,"$&/")+"/")+Te)),F.push(ce)),1;Te=0;var mt=de===""?".":de+":";if(j(M))for(var _e=0;_e<M.length;_e++)de=M[_e],ye=mt+fe(de,_e),Te+=ie(de,F,se,ye,ce);else if(_e=p(M),typeof _e=="function")for(M=_e.call(M),_e=0;!(de=M.next()).done;)de=de.value,ye=mt+fe(de,_e++),Te+=ie(de,F,se,ye,ce);else if(ye==="object"){if(typeof M.then=="function")return ie(ae(M),F,se,de,ce);throw F=String(M),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Te}function U(M,F,se){if(M==null)return M;var de=[],ce=0;return ie(M,de,"","",function(ye){return F.call(se,ye,ce++)}),de}function I(M){if(M._status===-1){var F=M._result;F=F(),F.then(function(se){(M._status===0||M._status===-1)&&(M._status=1,M._result=se)},function(se){(M._status===0||M._status===-1)&&(M._status=2,M._result=se)}),M._status===-1&&(M._status=0,M._result=F)}if(M._status===1)return M._result.default;throw M._result}var ne=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function K(){}return He.Children={map:U,forEach:function(M,F,se){U(M,function(){F.apply(this,arguments)},se)},count:function(M){var F=0;return U(M,function(){F++}),F},toArray:function(M){return U(M,function(F){return F})||[]},only:function(M){if(!z(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},He.Component=R,He.Fragment=a,He.Profiler=o,He.PureComponent=A,He.StrictMode=l,He.Suspense=m,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,He.__COMPILER_RUNTIME={c:function(M){return C.H.useMemoCache(M)}},He.act=function(){throw Error("act(...) is not supported in production builds of React.")},He.cache=function(M){return function(){return M.apply(null,arguments)}},He.cloneElement=function(M,F,se){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var de=w({},M.props),ce=M.key,ye=void 0;if(F!=null)for(Te in F.ref!==void 0&&(ye=void 0),F.key!==void 0&&(ce=""+F.key),F)!q.call(F,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&F.ref===void 0||(de[Te]=F[Te]);var Te=arguments.length-2;if(Te===1)de.children=se;else if(1<Te){for(var mt=Array(Te),_e=0;_e<Te;_e++)mt[_e]=arguments[_e+2];de.children=mt}return B(M.type,ce,void 0,void 0,ye,de)},He.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:s,_context:M},M},He.createElement=function(M,F,se){var de,ce={},ye=null;if(F!=null)for(de in F.key!==void 0&&(ye=""+F.key),F)q.call(F,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(ce[de]=F[de]);var Te=arguments.length-2;if(Te===1)ce.children=se;else if(1<Te){for(var mt=Array(Te),_e=0;_e<Te;_e++)mt[_e]=arguments[_e+2];ce.children=mt}if(M&&M.defaultProps)for(de in Te=M.defaultProps,Te)ce[de]===void 0&&(ce[de]=Te[de]);return B(M,ye,void 0,void 0,null,ce)},He.createRef=function(){return{current:null}},He.forwardRef=function(M){return{$$typeof:d,render:M}},He.isValidElement=z,He.lazy=function(M){return{$$typeof:g,_payload:{_status:-1,_result:M},_init:I}},He.memo=function(M,F){return{$$typeof:v,type:M,compare:F===void 0?null:F}},He.startTransition=function(M){var F=C.T,se={};C.T=se;try{var de=M(),ce=C.S;ce!==null&&ce(se,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(K,ne)}catch(ye){ne(ye)}finally{C.T=F}},He.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},He.use=function(M){return C.H.use(M)},He.useActionState=function(M,F,se){return C.H.useActionState(M,F,se)},He.useCallback=function(M,F){return C.H.useCallback(M,F)},He.useContext=function(M){return C.H.useContext(M)},He.useDebugValue=function(){},He.useDeferredValue=function(M,F){return C.H.useDeferredValue(M,F)},He.useEffect=function(M,F){return C.H.useEffect(M,F)},He.useId=function(){return C.H.useId()},He.useImperativeHandle=function(M,F,se){return C.H.useImperativeHandle(M,F,se)},He.useInsertionEffect=function(M,F){return C.H.useInsertionEffect(M,F)},He.useLayoutEffect=function(M,F){return C.H.useLayoutEffect(M,F)},He.useMemo=function(M,F){return C.H.useMemo(M,F)},He.useOptimistic=function(M,F){return C.H.useOptimistic(M,F)},He.useReducer=function(M,F,se){return C.H.useReducer(M,F,se)},He.useRef=function(M){return C.H.useRef(M)},He.useState=function(M){return C.H.useState(M)},He.useSyncExternalStore=function(M,F,se){return C.H.useSyncExternalStore(M,F,se)},He.useTransition=function(){return C.H.useTransition()},He.version="19.0.0-rc-7670501b-20241124",He}var Dy;function Zc(){return Dy||(Dy=1,Ah.exports=Mw()),Ah.exports}var E=Zc();const Nr=Xc(E),jw=Rw({__proto__:null,default:Nr},[E]),C1=6e4,O1=36e5,Ay=Symbol.for("constructDateFrom");function T1(t,r){return typeof t=="function"?t(r):t&&typeof t=="object"&&Ay in t?t[Ay](r):t instanceof Date?new t.constructor(r):new Date(r)}function Eo(t,r){return T1(r||t,t)}function _w(t,r){const a=+Eo(t)-+Eo(r);return a<0?-1:a>0?1:a}function R1(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Qa(t,r){const a=t<0?"-":"",l=Math.abs(t).toString().padStart(r,"0");return a+l}function My(t,r){const a=Eo(t,r==null?void 0:r.in);if(isNaN(+a))throw new RangeError("Invalid time value");const l=(r==null?void 0:r.format)??"extended",o=(r==null?void 0:r.representation)??"complete";let s="",f="";const d=l==="extended"?"-":"",m=l==="extended"?":":"";if(o!=="time"){const v=Qa(a.getDate(),2),g=Qa(a.getMonth()+1,2);s=`${Qa(a.getFullYear(),4)}${d}${g}${d}${v}`}if(o!=="date"){const v=a.getTimezoneOffset();if(v!==0){const x=Math.abs(v),R=Qa(Math.trunc(x/60),2),T=Qa(x%60,2);f=`${v<0?"+":"-"}${R}:${T}`}else f="Z";const g=Qa(a.getHours(),2),S=Qa(a.getMinutes(),2),p=Qa(a.getSeconds(),2),y=s===""?"":"T",w=[g,S,p].join(m);s=`${s}${y}${w}${f}`}return s}function Nw(t,r){const a=()=>T1(r==null?void 0:r.in,NaN),o=Uw(t);let s;if(o.date){const v=$w(o.date,2);s=Bw(v.restDateString,v.year)}if(!s||isNaN(+s))return a();const f=+s;let d=0,m;if(o.time&&(d=Pw(o.time),isNaN(d)))return a();if(o.timezone){if(m=qw(o.timezone),isNaN(m))return a()}else{const v=new Date(f+d),g=Eo(0,r==null?void 0:r.in);return g.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),g.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),g}return Eo(f+d+m,r==null?void 0:r.in)}const oc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zw=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Lw=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Hw=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Uw(t){const r={},a=t.split(oc.dateTimeDelimiter);let l;if(a.length>2)return r;if(/:/.test(a[0])?l=a[0]:(r.date=a[0],l=a[1],oc.timeZoneDelimiter.test(r.date)&&(r.date=t.split(oc.timeZoneDelimiter)[0],l=t.substr(r.date.length,t.length))),l){const o=oc.timezone.exec(l);o?(r.time=l.replace(o[1],""),r.timezone=o[1]):r.time=l}return r}function $w(t,r){const a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),l=t.match(a);if(!l)return{year:NaN,restDateString:""};const o=l[1]?parseInt(l[1]):null,s=l[2]?parseInt(l[2]):null;return{year:s===null?o:s*100,restDateString:t.slice((l[1]||l[2]).length)}}function Bw(t,r){if(r===null)return new Date(NaN);const a=t.match(zw);if(!a)return new Date(NaN);const l=!!a[4],o=io(a[1]),s=io(a[2])-1,f=io(a[3]),d=io(a[4]),m=io(a[5])-1;if(l)return Qw(r,d,m)?kw(r,d,m):new Date(NaN);{const v=new Date(0);return!Vw(r,s,f)||!Yw(r,o)?new Date(NaN):(v.setUTCFullYear(r,s,Math.max(o,f)),v)}}function io(t){return t?parseInt(t):1}function Pw(t){const r=t.match(Lw);if(!r)return NaN;const a=Mh(r[1]),l=Mh(r[2]),o=Mh(r[3]);return Kw(a,l,o)?a*O1+l*C1+o*1e3:NaN}function Mh(t){return t&&parseFloat(t.replace(",","."))||0}function qw(t){if(t==="Z")return 0;const r=t.match(Hw);if(!r)return 0;const a=r[1]==="+"?-1:1,l=parseInt(r[2]),o=r[3]&&parseInt(r[3])||0;return Gw(l,o)?a*(l*O1+o*C1):NaN}function kw(t,r,a){const l=new Date(0);l.setUTCFullYear(t,0,4);const o=l.getUTCDay()||7,s=(r-1)*7+a+1-o;return l.setUTCDate(l.getUTCDate()+s),l}const Fw=[31,null,31,30,31,30,31,31,30,31,30,31];function D1(t){return t%400===0||t%4===0&&t%100!==0}function Vw(t,r,a){return r>=0&&r<=11&&a>=1&&a<=(Fw[r]||(D1(t)?29:28))}function Yw(t,r){return r>=1&&r<=(D1(t)?366:365)}function Qw(t,r,a){return r>=1&&r<=53&&a>=0&&a<=6}function Kw(t,r,a){return t===24?r===0&&a===0:a>=0&&a<60&&r>=0&&r<60&&t>=0&&t<25}function Gw(t,r){return r>=0&&r<=59}const A1={email:Xw,date:_y,"date-time":_y},jy={"credit-card-number":Zw};function Xw(t){if(!t)return!1;const r=t.split("@");return!(r.length!==2||!r[1].includes(".")||r[0].substr(-1)===".")}function _y(t){if(!t)return!1;const r=Nw(t);return isNaN(r.getTime())?!1:R1(r)}function Zw(t){return typeof t!="string"?"":t.replace(/\D+/g,"")}const Iw=M1();function M1(t=0){let r=t;const a=()=>++r;return a.reset=()=>r=0,a}function Jw(t){return t.length===0?void 0:t[t.length-1]}function Ic(t,r){if(!Array.isArray(r))return t;const a=new Set(r),l=new Set(t),o=[];for(const s of r)l.has(s)&&o.push(s);for(const s of t)a.has(s)||o.push(s);return o}function j1(t,r){if(!t)throw new Error("Invariant failed")}function _1(t,r){if(!t){console.warn(r);try{throw new Error(r)}catch{}}}function yn(t){return t.type==="object"||!!t.properties||Array.isArray(t.required)||Array.isArray(t.allOf)||!!(t.if&&yn(t.if))}function um(t,r="schema must be of type object"){if(!t||!yn(t))throw new Error(r)}function si(t){return t.type==="string"||typeof t.const=="string"}function Jc(t){return t.type==="number"}function Wc(t){return t.type==="integer"}function jo(t){return t.type==="boolean"||typeof t.const=="boolean"}function pa(t){return t.type==="array"}function Vm(t){return t.type==="null"}function Ww(t,r){if(t.$bitiforms&&t.$bitiforms.widget){const a=t.$bitiforms.widget;if(!Object.prototype.hasOwnProperty.call(r,a))throw new Error(`Unknown widget ${a}`);return r[a]}if(Vm(t))return E.Fragment;if(pa(t))return si(t.items)?r.CheckboxGroupWidget:r.ArrayWidget;if(yn(t))return r.ObjectWidget;if(jo(t))return r.CheckboxWidget;if(si(t)){if(t.enum||t.oneOf)return r.RadioGroupWidget;if(t.format&&t.format.startsWith("date"))return r.DateWidget}return Jc(t)||Wc(t)?r.NumberWidget:r.TextInputWidget}function eC(t,r){const a=Ww(t,r);if(a==null)throw new Error(`Resolved widget is undefined for schema ${JSON.stringify(t)}`);return a}const tC={"wizard.next":"Continue","wizard.prev":"Go back","wizard.fixErrorsBeforeContinue":"Fix the errors above before continuing","errors.required":"Must be filled in","errors.radiogroup.required":"Select an element","errors.checkbox.required":"Must be checked","errors.minItems":"You must select at least {count}","errors.maxLength":"The maximum length is {maxLength}","errors.minLength":"The minimum length is {minLength}","errors.minimum":"Minimum value is {minimum}","errors.invalidFormat.email":"Not a valid email address","arrayfield.remove":"Remove item","arrayfield.add":"Add item"},nC=A1,Ga={widgets:{},formats:nC,texts:tC,resolveWidget:eC},Ym=E.createContext(Ga);Ym.displayName="FormConfigContext";function Qm(){return E.useContext(Ym)}function rC({widgets:t=Ga.widgets,texts:r=Ga.texts,formats:a=Ga.formats,resolveWidget:l=Ga.resolveWidget,children:o}){const s=E.useMemo(()=>({widgets:{...Ga.widgets,...t},texts:{...Ga.texts,...r},formats:{...Ga.formats,...a},resolveWidget:l}),[t,r,a,l]);return D.jsx(Ym.Provider,{value:s,children:o})}const N1=E.createContext({});N1.displayName="FormValuesContext";const Km=E.createContext(!1);Km.displayName="RevealErrorsContext";function ef(){const t=E.useContext(Km),[r,a]=E.useState(!1),l=E.useCallback(()=>a(!0),[]);return E.useEffect(()=>{a(t)},[t]),{value:r,enable:l}}const Gm=E.createContext(null);Gm.displayName="UpdateValuesContext";function z1(t){const r=E.useContext(Gm);if(r==null)throw new Error("Not wrapped in UpdateValuesContext.Provider");return E.useCallback(a=>r(t,a),[t,r])}const L1=E.createContext(null);L1.displayName="FormRendererContext";function vr(t){return t==null?!1:Array.isArray(t)?t.length===0?!1:t.some(r=>vr(r)):H1(t)?!0:typeof t=="object"?Object.keys(t).some(r=>vr(t[r])):typeof t=="string"}function H1(t){return!!(t&&typeof t=="object"&&!Array.isArray(t)&&typeof t.message=="string"&&t.args)}function tf(t,r){return t.map(a=>H1(a)?aC((r==null?void 0:r[a.message])??a.message,a.args):(r==null?void 0:r[a])||a).join(", ")}function aC(t,r){const a=Object.keys(r).join("|");return(t||"").replace(new RegExp(`{(${a})}`,"g"),(l,o)=>r[o]??l)}const iC=A1;function U1({formats:t=iC}={}){function r(p,y,w){if(typeof p.const<"u"&&p.const!==y)return[mn("errors.const",p,{value:p.const})];const x=[];if(sc(y))return w?(x.push(Rr("errors.required",p)),x):[];const R=y.length;if(p.minLength&&R<p.minLength&&x.push(mn("errors.minLength",p,{minLength:p.minLength})),p.maxLength&&R>p.maxLength&&x.push(mn("errors.maxLength",p,{maxLength:p.maxLength})),p.enum&&!p.enum.includes(y)&&x.push(mn("errors.oneOf",p,{values:p.enum})),p.oneOf&&!p.oneOf.some(T=>!vr(g(T,y,!0)))&&x.push(mn("errors.oneOf",p,{})),p.format){const T=p.format;_1(Object.prototype.hasOwnProperty.call(t,T),`${T} format validator is not implemented.`);const A=t[T];A!=null&&!A(y)&&x.push(Rr(`errors.invalidFormat.${p.format}`,p))}return x}function a(p,y,w){if(typeof p.const<"u"&&p.const!==y)return[mn("errors.const",p,{value:p.const})];const x=[];return sc(y)?w?(x.push(Rr("errors.required",p)),x):[]:(p.enum&&!p.enum.includes(y)&&x.push(mn("errors.oneOf",p,{values:p.enum})),x)}function l(p,y,w){if(typeof p.const<"u"&&p.const!==y)return[mn("errors.const",p,{value:p.const})];const x=[];if(sc(y)||isNaN(y))return w?(x.push(Rr("errors.required",p)),x):[];const R=parseFloat(`${y}`);return p.minimum&&R<p.minimum&&x.push(mn("errors.minimum",p,{minimum:p.minimum})),p.maximum&&R>p.maximum&&x.push(mn("errors.maximum",p,{maximum:p.maximum})),x}function o(p,y,w){if(typeof p.const<"u"&&p.const!==y)return[mn("errors.const",p,{value:p.const})];const x=[];if(sc(y)||isNaN(y))return w?(x.push(Rr("errors.required",p)),x):[];const R=parseFloat(`${y}`);return Number.isInteger(R)||x.push(Rr("errors.notAnInteger",p)),p.minimum&&R<p.minimum&&x.push(mn("errors.minimum",p,{minimum:p.minimum})),p.maximum&&R>p.maximum&&x.push(mn("errors.maximum",p,{maximum:p.maximum})),x}function s(p,y){const w={all:[],items:[]};if(p.minItems&&p.minItems>0&&(y||[]).length<p.minItems&&w.all.push(mn("errors.minItems",p,{count:p.minItems})),p.maxItems&&(y||[]).length>p.maxItems&&w.all.push(mn("errors.maxItems",p,{count:p.maxItems})),p.contains){const x=p.contains;(!Array.isArray(y)||y.every(R=>vr(g(x,R,!1))))&&w.all.push(Rr("errors.notContains",p))}return y&&y.length>0&&(w.items=y.map(x=>{const R=zr(p.items,x),T=g(R,x,!1);return yn(R)?{_id:x._id,...T}:T})),w}function f(p,y){const w=p.properties||{},x=Object.keys(w).reduce((R,T)=>(R[T]=g(w[T],(y||{})[T],(p.required||[]).includes(T)),R),{_all:[]});if(p.anyOf){let R=!1;for(const T of p.anyOf)if(!vr(f(T,y))){R=!0;break}R||(x._all=[Rr("errors.anyOf",p)])}return x}function d(p,y){return y==null?[]:[Rr("errors.shouldBeNull",p)]}const m=new WeakMap,v=new WeakMap;function g(p,y,w){const x=R=>{const T=m.get(p);if(T!==void 0&&T===y)return v.get(p);const A=R();return m.set(p,y),v.set(p,A),A};if(yn(p))return f(p,y);if(si(p))return x(()=>r(p,y,w));if(jo(p))return x(()=>a(p,y,w));if(Jc(p))return x(()=>l(p,y,w));if(Wc(p))return x(()=>o(p,y,w));if(pa(p))return s(p,y);if(Vm(p))return d(p,y);throw new Error(`validateSchema() got invalid schema ${JSON.stringify(p)}`)}function S(p,y){return g(p,y,!0)}return{validateSchema:S}}function mn(t,r,a){return{message:Rr(t,r),args:a}}function Rr(t,r){var a,l;return((l=(a=r.$bitiforms)==null?void 0:a.errorMessages)==null?void 0:l[t])||t}function sc(t){return typeof t=="string"?t.trim()==="":t==null}let jh;function lC(){return jh==null&&(jh=U1().validateSchema),jh}function uC(t,r){if(!yn(t))throw new Error("Tried to evaluate an if that is not a ObjectSchema");const a=lC()(t,r);return!vr(a)}function zr(t,r){const a=t.$bitiforms||{};if(yn(t)){const l={...t.properties||{}},o=[...t.required||[]];for(const f of Object.keys(l))l[f]=zr(l[f],(r||{})[f]);if(t.if){t.then!=null&&um(t.then,`schemas using \`if\` should also have \`then\` of type object: ${JSON.stringify(t)}`);const f=uC(t.if,r)?t.then:t.else;_1(typeof(f==null?void 0:f.$bitiforms)>"u",`$bitiforms must not be set on branched schemas.
18
- Got schema ${JSON.stringify(f,null,2)}`);const d=f!=null?zr(f,r):null;d&&(um(d,`then and else schemas must be object schemas: ${JSON.stringify(d,null,2)}`),d.required&&o.push(...d.required),Object.assign(l,d.properties))}if(t.allOf)for(const f of t.allOf){const d=zr(f,r);yn(d)&&(d.required&&o.push(...d.required),Object.assign(l,d.properties))}const s={type:"object",properties:l,$bitiforms:a,required:[...new Set(o)]};return t.title&&(s.title=t.title),t.description&&(s.description=t.description),s}return t}function _h(t,r={}){const a=[];for(const l of t){const o=zr(l,r);oC(o)&&a.push(o)}return a}function oC(t){return!!(yn(t)&&t.properties&&Object.keys(t.properties).length>0)}function sC(t,r){if(Array.isArray(t))return _h(t,r);const a=Object.keys(t.properties||{}).length>0;if(Array.isArray(t.allOf)){const{allOf:l,...o}=t;return _h(a?[o].concat(l):l,r)}if(a)return _h([t],r);throw new Error("resolveBaseSchema() either takes an array of ObjectSchemas or an ObjectSchema with an .allOf property.")}function cC(t){const r={type:"object",properties:{}},a=[];for(const l of t)Object.assign(r.properties,l.properties),l.required&&a.push(...l.required);return a.length>0&&(r.required=[...new Set(a)]),r}function Pl(t,r){if(yn(t)){const a=t.properties||{};return{...r||lo(t),...Object.keys(a).reduce((l,o)=>(l[o]=Pl(a[o],(r||{})[o]),l),{})}}return pa(t)?yn(t.items)?(r||lo(t)).map(a=>{const l=a||lo(t.items);return{...l,_id:l._id==null?Iw():l._id,...Pl(zr(t.items,l),l)}}):(r||lo(t)).map(a=>Pl(t.items,a)):Object.prototype.hasOwnProperty.call(t,"const")?t.const:r??lo(t)}function lo(t){if(Object.prototype.hasOwnProperty.call(t,"default"))return t.default;if(yn(t))return{};if(si(t))return"";if(jo(t)||Jc(t)||Wc(t)||Vm(t))return null;if(pa(t))return[];throw new Error(`getDefaultValue invalid schema ${JSON.stringify(t)}`)}function om(t,r){if(yn(t)){const a=t.properties||{};return Object.keys(a).reduce((l,o)=>(l[o]=om(a[o],r[o]),l),{})}return pa(t)?(r||[]).map(a=>om(zr(t.items,a),a)):si(t)&&t.format&&jy[t.format]?jy[t.format](r):r}const fC=(t,r,a)=>(t||[]).find(l=>l._id===r)||a;function dC({id:t,name:r,path:a,value:l,schema:o,errors:s,disabled:f,texts:d,renderAddButton:m,renderItem:v,renderContainer:g}){const[S]=E.useState(()=>{var j;return M1((j=Jw(l))==null?void 0:j._id)}),p=z1(a),y=E.useCallback(()=>{p(j=>j.concat({_id:S(),...Pl(zr(o.items,{}),{})}))},[S,o.items,p]),w=E.useCallback(j=>{p(C=>C.filter(q=>q._id!==j))},[p]),x=E.useCallback((j,C)=>{p(q=>q.map(B=>{if(B._id===j){const V={...B,[C.target.name]:C.target.value};return Pl(zr(o.items,V),V)}return B}))},[p,o.items]),R=ef();um(o.items);const T=!!(R.value&&s&&s.all.length>0),A=l.length,N=D.jsxs(D.Fragment,{children:[l.map((j,C)=>D.jsx(hC,{id:j._id,path:`${a}/${C}`,parentId:t,parentName:r,item:j,onFieldChange:x,render:v,index:C,onRemove:w,schema:o.items,errors:s,texts:d},j._id)),m({disabled:f,onClick:y,itemCount:A,texts:d})]});return D.jsx(D.Fragment,{children:g({schema:o,name:r,id:t,children:N,errors:T?tf(s.all,d):null,itemCount:A,texts:d})})}const hC=E.memo(function({parentId:t,parentName:r,path:a,render:l,id:o,index:s,texts:f,onRemove:d,item:m,schema:v,onFieldChange:g,errors:S}){var T;const p=zr(v,m),y=p.properties||{},w=Ic(Object.keys(y),(T=v.$bitiforms)==null?void 0:T.propertyOrder),x=fC(S.items,o,{}),R=w.reduce((A,N)=>(A[N]={path:`${a}/${N}`,schema:(p.properties||{})[N],id:`${t}__${N}__${o}`,name:`${r}__${N}__${o}`,onChange:j=>g(o,{target:{name:N,value:j.target.value}}),value:m[N],errors:x[N],texts:f},A),{});return D.jsx(D.Fragment,{children:l==null?void 0:l({fields:R,index:s,id:o,path:a,onRemove:()=>{d(o)},texts:f})})}),Xm=E.memo(function(t){const{texts:r,resolveWidget:a,widgets:l}=Qm();j1(typeof t.name=="string"&&t.name.trim()!=="");const o=a(t.schema,l);return D.jsx(E.Suspense,{fallback:D.jsx("div",{}),children:D.jsx(o,{...t,texts:r})})});var Nh,Ny;function mC(){if(Ny)return Nh;Ny=1;var t=typeof Element<"u",r=typeof Map=="function",a=typeof Set=="function",l=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(s,f){if(s===f)return!0;if(s&&f&&typeof s=="object"&&typeof f=="object"){if(s.constructor!==f.constructor)return!1;var d,m,v;if(Array.isArray(s)){if(d=s.length,d!=f.length)return!1;for(m=d;m--!==0;)if(!o(s[m],f[m]))return!1;return!0}var g;if(r&&s instanceof Map&&f instanceof Map){if(s.size!==f.size)return!1;for(g=s.entries();!(m=g.next()).done;)if(!f.has(m.value[0]))return!1;for(g=s.entries();!(m=g.next()).done;)if(!o(m.value[1],f.get(m.value[0])))return!1;return!0}if(a&&s instanceof Set&&f instanceof Set){if(s.size!==f.size)return!1;for(g=s.entries();!(m=g.next()).done;)if(!f.has(m.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(f)){if(d=s.length,d!=f.length)return!1;for(m=d;m--!==0;)if(s[m]!==f[m])return!1;return!0}if(s.constructor===RegExp)return s.source===f.source&&s.flags===f.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof f.valueOf=="function")return s.valueOf()===f.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof f.toString=="function")return s.toString()===f.toString();if(v=Object.keys(s),d=v.length,d!==Object.keys(f).length)return!1;for(m=d;m--!==0;)if(!Object.prototype.hasOwnProperty.call(f,v[m]))return!1;if(t&&s instanceof Element)return!1;for(m=d;m--!==0;)if(!((v[m]==="_owner"||v[m]==="__v"||v[m]==="__o")&&s.$$typeof)&&!o(s[v[m]],f[v[m]]))return!1;return!0}return s!==s&&f!==f}return Nh=function(f,d){try{return o(f,d)}catch(m){if((m.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw m}},Nh}var vC=mC();const xc=Xc(vC);class Mc{static from(r){if(r==="")return new Mc([]);r.startsWith("/")||(r=`/${r}`);const[,...a]=r.split("/");return new Mc(a.map(l=>l.replace(/~1/g,"/").replace(/~0/g,"~")))}constructor(r){this.tokens=r}toString(){return this.tokens.length===0?"":`/${this.tokens.map(r=>r.replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`}toPath(){return this.tokens}}function pC(t,r,a){const l=(typeof r=="string"?Mc.from(r):r).toPath(),o=(s,f,d,m)=>{let v,g=f[m];return f.length>m?(Array.isArray(s)?(g=parseInt(g,10),v=s.slice()):v={...s},v[g]=o(s[g]!==void 0?s[g]:{},f,d,m+1),v):typeof d=="function"?d(s):d};return o(t,l,a,0)}let jc=class extends Error{constructor(r){super("SubmissionError"),this.errors=r}};const zy=1,Ly=2,Hy=4,Uy=5,$y=6,By=7,Py=8,gC={};function yC(t){const r=E.useId();return t||r}function bC({name:t,initialValues:r=gC,schema:a,disabled:l,onSubmit:o,onFormValuesChanged:s}){const f=SC(),d=yC(t);function m(j,C){function q(B){const V=Lh(a,B.values,!1,f());let z=!0;xc(V.steps,B.steps)&&(z=!1,V.steps=B.steps);let X=!0;xc(V.values,B.values)&&(X=!1,V.values=B.values);let te=!0;return xc(V.errors,B.errors)&&(te=!1,V.errors=B.errors),!z&&!X&&!te?B:{...B,...V}}switch(C.type){case zy:return{...j,submissionState:"not-submitted",submissionErrors:{},revealAllErrors:!1};case Ly:return q(j);case Hy:return{...j,submissionState:"submitting"};case Uy:return{...j,submissionState:"submitted"};case $y:{const B=C.error;return{...j,submissionState:"failed",submissionErrors:B instanceof jc?B.errors:{},revealAllErrors:!0}}case By:return{...j,revealAllErrors:C.value};case Py:return q({...j,values:pC(j.values,C.path,C.updater)});default:return j}}const v=E.useRef(!0);E.useEffect(()=>(v.current=!0,()=>{v.current=!1}),[]);const[g,S]=E.useReducer(m,void 0,()=>{const{steps:j,errors:C,values:q}=Lh(a,r,!1,f());return{values:q,steps:j,touched:{},errors:C,submissionState:"not-submitted",submissionErrors:{},revealAllErrors:!1}});E.useEffect(()=>{s==null||s(g.values)},[g.values,s]),E.useEffect(()=>{S({type:Ly})},[a]);const p=E.useCallback(j=>{S({type:By,value:j})},[]),y=E.useCallback((j,C)=>{S({type:Py,path:j,updater:C})},[]),w=E.useCallback(j=>{if(l)return;const{name:C,value:q}=j.target;y("",B=>({...B,[C]:q}))},[l,y]),x=async j=>{var V;if(!v.current||l)return;(V=j.preventDefault)==null||V.call(j),S({type:Hy});const{errors:C,values:q}=Lh(a,g.values,!0,f()),B=!vr(C);try{if(await(o==null?void 0:o({values:q,errors:C,isValid:B}))===!1)throw new jc({});S({type:Uy})}catch(z){S({type:$y,error:z})}},R=()=>g.steps.map(j=>{const{properties:C={},$bitiforms:q={}}=j,B=Ic(Object.keys(C),q.propertyOrder).reduce((V,z)=>(V[z]={path:z,schema:C[z],value:g.values[z],id:`form-${d}-${z}`,name:z,errors:g.errors[z],onChange:w,disabled:l},V),{});return{isValid:()=>!Object.keys(B).some(V=>vr(B[V].errors)),fields:B}}),T=E.useCallback(()=>{v.current&&S({type:zy})},[]),A=R(),N={name:d,errors:g.errors,steps:A,values:g.values,onSubmit:x,submissionState:g.submissionState,clearSubmission:T,submissionErrors:g.submissionErrors,revealAllErrors:p,schema:a};return[N,{revealAllErrors:g.revealAllErrors,values:N.values,updateValues:y}]}function zh({revealAllErrors:t,values:r,updateValues:a,children:l}){return D.jsx(Gm.Provider,{value:a,children:D.jsx(Km.Provider,{value:t,children:D.jsx(N1.Provider,{value:r,children:l})})})}function $1({render:t,component:r,element:a,...l}){const[o,s]=bC(l);if(typeof t=="function"&&r)throw new Error("one of render or component must be provided, but not both");if(typeof t=="function")return D.jsx(zh,{...s,children:t(o)});if(a)return D.jsx(zh,{...s,children:D.jsx(L1.Provider,{value:o,children:a})});if(r)return D.jsx(zh,{...s,children:D.jsx(r,{...o})});throw new Error("one of render or component must be provided")}function SC(){const{formats:t}=Qm(),r=E.useRef();function a(){return r.current==null&&(r.current=U1({formats:t})),r.current}return a}function Lh(t,r,a,l){const o=sC(t,r),s=cC(o);let f=Pl(s,r);a&&(f=om(s,f));const d=l.validateSchema(s,f);return{steps:o,values:f,errors:d}}function xC({id:t,name:r,path:a,value:l,schema:o,errors:s,disabled:f,texts:d}){const m=z1(a),v=E.useCallback((p,y)=>{m(w=>({...w,[p]:y}))},[m]),g=o.$bitiforms||{},S=o.properties||{};return D.jsxs("div",{"data-bitiforms-object":!0,role:"group","data-field-path":a,children:[o.title&&D.jsx("legend",{"data-bitiforms-object-title":!0,children:o.title}),o.description&&D.jsx("div",{"data-bitiforms-object-description":!0,children:o.description}),D.jsx("div",{"data-bitiforms-object-fields":!0,children:Ic(Object.keys(S),g.propertyOrder).map(p=>{const y=`${r}_${p}`;return D.jsx(EC,{path:`${a}/${p}`,field:p,schema:S[p],value:l[p],id:`${t}_${p}`,errors:s[p],name:y,onChange:v,disabled:f,texts:d},y)})})]})}const EC=E.memo(function({field:t,onChange:r,...a}){return D.jsx(Xm,{...a,onChange:l=>r(t,l.target.value)})});function wC(t){var a;if(!t.enum)return[];const r=[];for(let l=0;l<t.enum.length;l++)r.push([t.enum[l],((a=t.$enumNames)==null?void 0:a[l])||t.enum[l]]);return r}function B1(t){return E.useMemo(()=>{if(si(t)){const r=o=>o,a=o=>o;let l=[];return t.enum?l=wC(t):t.oneOf&&(l=t.oneOf.map(o=>{const s=o.const?o.const:o.enum?o.enum[0]:null;return[s||"",o.title||s||""]})),{values:l,fromSchemaValue:a,toSchemaValue:r}}if(jo(t))return{values:[["yes","Yes"],["no","No"]],fromSchemaValue:r=>r===!0?"yes":r===!1?"no":null,toSchemaValue:r=>{switch(r){case"yes":return!0;case"no":return!1;default:return null}}};if(Jc(t)||Wc(t)){const r=l=>parseInt(l??"",10),a=[];for(let l=t.minimum??0;l<=(t.maximum??20);l++)a.push([`${l}`,`${l}`]);return{values:a,fromSchemaValue:l=>`${l}`,toSchemaValue:r}}throw new Error("Invalid schema given to SelectWidget")},[t])}const CC=t=>t;function _o(t,r=CC){const a=t.name,l=ef(),o=()=>{l.enable()},s=d=>{const m=r(d.target.value);t.onChange({target:{name:a,value:m}})},f=l.value?tf(t.errors,t.texts):void 0;return{onBlur:o,onChange:s,error:f,schema:t.schema,$bitiforms:t.schema.$bitiforms||{},id:t.id,name:t.name,value:t.value,disabled:t.disabled}}var P1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qy=Nr.createContext&&Nr.createContext(P1),OC=["attr","size","title"];function TC(t,r){if(t==null)return{};var a=RC(t,r),l,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)l=s[o],!(r.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(t,l)&&(a[l]=t[l])}return a}function RC(t,r){if(t==null)return{};var a={};for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)){if(r.indexOf(l)>=0)continue;a[l]=t[l]}return a}function _c(){return _c=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])}return t},_c.apply(this,arguments)}function ky(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);r&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,l)}return a}function Nc(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?ky(Object(a),!0).forEach(function(l){DC(t,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ky(Object(a)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(a,l))})}return t}function DC(t,r,a){return r=AC(r),r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function AC(t){var r=MC(t,"string");return typeof r=="symbol"?r:r+""}function MC(t,r){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var l=a.call(t,r||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function q1(t){return t&&t.map((r,a)=>Nr.createElement(r.tag,Nc({key:a},r.attr),q1(r.child)))}function Jt(t){return r=>Nr.createElement(jC,_c({attr:Nc({},t.attr)},r),q1(t.child))}function jC(t){var r=a=>{var{attr:l,size:o,title:s}=t,f=TC(t,OC),d=o||a.size||"1em",m;return a.className&&(m=a.className),t.className&&(m=(m?m+" ":"")+t.className),Nr.createElement("svg",_c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,l,f,{className:m,style:Nc(Nc({color:t.color||a.color},a.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),s&&Nr.createElement("title",null,s),t.children)};return qy!==void 0?Nr.createElement(qy.Consumer,null,a=>r(a)):r(P1)}function _C(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M346.5 240H272v-74.5c0-8.8-7.2-16-16-16s-16 7.2-16 16V240h-74.5c-8.8 0-16 6-16 16s7.5 16 16 16H240v74.5c0 9.5 7 16 16 16s16-7.2 16-16V272h74.5c8.8 0 16-7.2 16-16s-7.2-16-16-16z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(t)}function NC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368.5 240H272v-96.5c0-8.8-7.2-16-16-16s-16 7.2-16 16V240h-96.5c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7H240v96.5c0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7 8.8 0 16-7.2 16-16V272h96.5c8.8 0 16-7.2 16-16s-7.2-16-16-16z"},child:[]}]})(t)}function zC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm17.2 109.6l-3.1 115.1c-.2 8.2-5.9 14.8-14.1 14.8s-13.9-6.6-14.1-14.8l-3.1-115.1c-.2-9.6 7.5-17.6 17.2-17.6 9.6 0 17.4 7.9 17.2 17.6zM256 354c-10.7 0-19.1-8.1-19.1-18.4s8.4-18.4 19.1-18.4c10.7 0 19.1 8.1 19.1 18.4S266.7 354 256 354z"},child:[]}]})(t)}function LC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(t)}function HC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(t)}function UC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"},child:[]}]})(t)}function Zm(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M278.6 256l68.2-68.2c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-68.2-68.2c-6.2-6.2-16.4-6.2-22.6 0-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3l68.2 68.2-68.2 68.2c-3.1 3.1-4.7 7.2-4.7 11.3 0 4.1 1.6 8.2 4.7 11.3 6.2 6.2 16.4 6.2 22.6 0l68.2-68.2 68.2 68.2c6.2 6.2 16.4 6.2 22.6 0 6.2-6.2 6.2-16.4 0-22.6L278.6 256z"},child:[]}]})(t)}function $C(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M88.3 68.1c-5.6-5.5-14.6-5.5-20.1.1-5.5 5.5-5.5 14.5 0 20l355.5 355.7c3.7 3.7 9 4.9 13.7 3.6 2.4-.6 4.6-1.9 6.4-3.7 5.5-5.5 5.5-14.5 0-20L88.3 68.1zM260.2 345.9c-53 2.4-96.6-41.2-94.1-94.1.6-12.2 3.6-23.8 8.6-34.3L121.3 164c-27.7 21.4-55.4 48.9-85.1 81.3-5.5 6.1-5.6 15.2-.1 21.3C101 338.3 158.2 400 255.8 400c29.7 0 57.1-7.4 82.3-19.2l-43.5-43.5c-10.6 5-22.2 8-34.4 8.6zM475.8 266c5.3-5.8 5.6-14.6.5-20.7C424 181.8 351.5 112 255.8 112c-29.1 0-56 6.6-82 19l43.7 43.7c10.5-5 22.1-8.1 34.3-8.6 53-2.4 96.6 41.2 94.1 94.1-.6 12.2-3.6 23.8-8.6 34.3l53.5 53.5c33-25.3 61.3-55.9 85-82z"},child:[]},{tag:"path",attr:{d:"M192.2 260.9c2.4 31.3 27.6 56.5 58.9 58.9 8.2.6 16.1-.3 23.4-2.6l-79.8-79.8c-2.2 7.4-3.1 15.3-2.5 23.5zM320 256c0-1.3-.1-2.6-.1-3.9-5.6 2.5-11.7 3.9-18.2 3.9-1.1 0-2.1 0-3.1-.1l18.6 18.7c1.8-5.9 2.8-12.2 2.8-18.6zM256 209c0-6 1.1-11.7 3.1-16.9-1 0-2-.1-3.1-.1-6.4 0-12.6 1-18.5 2.8l18.7 18.7c-.1-1.5-.2-3-.2-4.5z"},child:[]}]})(t)}function BC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M255.8 112c-80.4 0-143.8 50.6-219.6 133.3-5.5 6.1-5.6 15.2-.1 21.3C101 338.3 158.2 400 255.8 400c96.4 0 168.7-77.7 220.1-134 5.3-5.8 5.6-14.6.5-20.7C424 181.8 351.5 112 255.8 112zm4.4 233.9c-53 2.4-96.6-41.2-94.1-94.1 2.1-46.2 39.5-83.6 85.7-85.7 53-2.4 96.6 41.2 94.1 94.1-2.1 46.2-39.5 83.6-85.7 85.7z"},child:[]},{tag:"path",attr:{d:"M256 209c0-6 1.1-11.7 3.1-16.9-1 0-2-.1-3.1-.1-36.9 0-66.6 31.4-63.8 68.9 2.4 31.3 27.6 56.5 58.9 58.9 37.5 2.8 68.9-26.9 68.9-63.8 0-1.3-.1-2.6-.1-3.9-5.6 2.5-11.7 3.9-18.2 3.9-25.2 0-45.7-21.1-45.7-47z"},child:[]}]})(t)}function Fy(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm19 304h-38.2V207.9H275V352zm-19.1-159.8c-11.3 0-20.5-8.6-20.5-20s9.3-19.9 20.5-19.9c11.4 0 20.7 8.5 20.7 19.9s-9.3 20-20.7 20z"},child:[]}]})(t)}function PC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M368.5 240h-225c-8.8 0-16 7.2-16 16 0 4.4 1.8 8.4 4.7 11.3 2.9 2.9 6.9 4.7 11.3 4.7h225c8.8 0 16-7.2 16-16s-7.2-16-16-16z"},child:[]}]})(t)}function qC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M443.5 420.2L336.7 312.4c20.9-26.2 33.5-59.4 33.5-95.5 0-84.5-68.5-153-153.1-153S64 132.5 64 217s68.5 153 153.1 153c36.6 0 70.1-12.8 96.5-34.2l106.1 107.1c3.2 3.4 7.6 5.1 11.9 5.1 4.1 0 8.2-1.5 11.3-4.5 6.6-6.3 6.8-16.7.6-23.3zm-226.4-83.1c-32.1 0-62.3-12.5-85-35.2-22.7-22.7-35.2-52.9-35.2-84.9 0-32.1 12.5-62.3 35.2-84.9 22.7-22.7 52.9-35.2 85-35.2s62.3 12.5 85 35.2c22.7 22.7 35.2 52.9 35.2 84.9 0 32.1-12.5 62.3-35.2 84.9-22.7 22.7-52.9 35.2-85 35.2z"},child:[]}]})(t)}function kC(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M228.9 79.9L51.8 403.1C40.6 423.3 55.5 448 78.9 448h354.3c23.3 0 38.2-24.7 27.1-44.9L283.1 79.9c-11.7-21.2-42.5-21.2-54.2 0zM273.6 214L270 336h-28l-3.6-122h35.2zM256 402.4c-10.7 0-19.1-8.1-19.1-18.4s8.4-18.4 19.1-18.4 19.1 8.1 19.1 18.4-8.4 18.4-19.1 18.4z"},child:[]}]})(t)}var Hh={exports:{}};/*!
19
- Copyright (c) 2018 Jed Watson.
20
- Licensed under the MIT License (MIT), see
21
- http://jedwatson.github.io/classnames
22
- */var Vy;function FC(){return Vy||(Vy=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var s="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(s=o(s,l(d)))}return s}function l(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var f="";for(var d in s)r.call(s,d)&&s[d]&&(f=o(f,d));return f}function o(s,f){return f?s?s+" "+f:s+f:s}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Hh)),Hh.exports}var VC=FC();const qe=Xc(VC);function YC(t){throw new Error(`The prop "${t}" is required`)}const k1=t=>KC(t,"-");function F1(t,r=[],a={}){for(const l of Object.keys(t)){const o=t[l],s=r.concat([k1(l)]);typeof o=="object"&&o!=null?F1(o,s,a):a[s.join("-")]=o}return a}function V1(t,r,a=[]){return new Proxy(t,{get(l,o,s){const f=a.concat(o.toString()),d=Reflect.get(l,o,s);return d&&typeof d=="object"&&!Array.isArray(d)?V1(d,r,f):r(f,d)}})}function Y1(t){return V1(t,r=>`var(--${r.map(k1).join("-")})`)}function QC(t,r){if(t!=null)if(typeof t=="function")t(r);else try{t.current=r}catch{throw new Error(`Cannot assign value "${r}" to ref "${t}"`)}}function Q1(...t){return E.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(a=>{QC(a,r)})},[...t])}function Im(t,r){const a=E.createContext(r);return a.displayName=t,a}function KC(t,r){return t.replace(/([a-z\d])([A-Z])/g,`$1${r}$2`).replace(/([A-Z]+)([A-Z][a-z\d]+)/g,`$1${r}$2`).toLowerCase()}function sm(t){return t==null?[]:Array.isArray(t)?t:[t]}var uo={alert:"BZ7qn",title:"hdHDi",closeButton:"SgstT",content:"Q9Sh5",error:"VGIpm",success:"DlYCJ",info:"rHcuC",warning:"OC-ol",none:"xqeOj"};const GC={success:HC,error:zC,warning:kC,info:Fy,none:Fy};function K1({intent:t="none",title:r,onClose:a,children:l,...o}){const s=GC[t];return D.jsxs("div",{...o,className:qe(uo.alert,o.className,uo[t]),children:[a&&D.jsx("button",{type:"button",onClick:a,className:uo.closeButton,"aria-label":"Close",children:D.jsx(Zm,{})}),D.jsxs("div",{className:uo.title,children:[D.jsx(s,{}),r]}),typeof l<"u"&&D.jsx("div",{className:uo.content,children:l})]})}function XC(){var t;return typeof window<"u"&&!!((t=window.document)!=null&&t.createElement)}const wo=XC(),G1=wo?E.useLayoutEffect:E.useEffect;var Uh={badge:"xeHAL","badge-danger":"cgE-K","badge-warning":"_0U-VJ","badge-success":"ZgKwX","badge-pill":"OBQRM",notificationBadge:"LzQDv"};const Yy=({as:t="span",intent:r="none",pill:a=!1,className:l,ref:o,...s})=>D.jsx(t,{ref:o,...s,className:qe(Uh.badge,Uh[`badge-${r}`],a&&Uh["badge-pill"],l)});var cc={root:"mtrF8",contained:"W8YVd","intent-danger":"_3UX8S","intent-none":"-HhPB",text:"_2LiTf",outlined:"_9x9uq","size-s":"_5jbkc","size-m":"tf6zw","size-l":"_7vljf"};const ZC=t=>{let r=wo?t.map(a=>window.matchMedia(a).matches):t.map(()=>!0);return{subscribe(a){if(!wo)return()=>{};const l=t.map(s=>window.matchMedia(s));r=l.map(s=>s.matches);const o=()=>{r=t.map(s=>window.matchMedia(s).matches),a()};for(const s of l)s.addEventListener("change",o);return()=>{for(const s of l)s.removeEventListener("change",o)}},getSnapshot(){return r},getServerSnapshot(){return r}}};function X1(t){const r=sm(t),a=r.join("/"),l=E.useMemo(()=>ZC(r),[a]),[o,s]=E.useState(()=>l.getSnapshot());return E.useEffect(()=>{l.subscribe(()=>s(l.getSnapshot()))},[l,s]),Array.isArray(t)?o:o[0]}function IC(t,r){const a=()=>{if(!wo)return r;try{return JSON.parse(window.localStorage.getItem(t)||"null")??r}catch{return r}},[l,o]=E.useState(a);return E.useEffect(()=>{if(wo)try{l!==void 0?window.localStorage.setItem(t,JSON.stringify(l)):window.localStorage.removeItem(t)}catch{}},[t,l]),E.useEffect(()=>{const s=f=>{if(!(f.key!==t||f.storageArea!==window.localStorage))try{f.newValue!=null&&o(JSON.parse(f.newValue))}catch{}};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[t]),[l,o]}const $h=t=>`screen and (min-width: ${t})`,JC=[$h("0px"),$h("600px"),$h("1200px")];function WC(t){return JSON.parse(JSON.stringify(t),(r,a)=>{if(typeof a=="string"&&a.startsWith("#")){const[l,o,s,f]=uO(a);return`hsla(${l}, ${o*.9}%, ${100-s}%, ${f})`}return a})}function Z1(t){return eO(t)}function eO(t){const{id:r=`theme-${new Date().getTime()*Math.random()}`,...a}=t,{primary:l="#0074d9",secondary:o="#a2c14e",danger:s="#d2322d",...f}=a.colors||{},d="#fff",m={"05":"#f9fafb",10:"#f3f4f6",20:"#e5e7eb",30:"#d1d5db",40:"#9ca3af",50:"#6b7280",60:"#4b5563",70:"#374151",80:"#1f2937",90:"#111827",95:"#030712"},v={"05":"#fef2f2",10:"#fee2e2",20:"#fecaca",30:"#fca5a5",40:"#f87171",50:"#ef4444",60:"#dc2626",70:"#b91c1c",80:"#991b1b",90:"#7f1d1d",95:"#450a0a"};return{id:r,tokens:{...a,spacing:{auto:"auto",none:"0px",xxs:"2px",xs:"4px",s:"8px",m:"16px",l:"24px",xl:"32px",xxl:"64px",...a.spacing},fonts:{base:"Inter",...a.fonts},colors:{gray:m,red:v,linkText:"#000000",primaryText:"#1f2937",primary:l,secondary:o,primaryLight:fr(l,20),primaryDark:fr(l,-20),secondaryLight:fr(o,20),secondaryDark:fr(o,-20),danger:s,dangerLight:fr(s,20),dangerDark:fr(s,-20),warning:"#fbbf24",warningTint:fr("#fff3cd",-10),warningLight:"#fff3cd",success:"#047857",successTint:fr("#d4edda",-10),successLight:"#d4edda",info:"#0c5460",infoTint:fr("#d1ecf1",-10),infoLight:"#d1ecf1",white:d,formsBorder:m[30],formsBorderHover:m[40],formsBorderFocus:"transparent",formsBorderDisabled:"#ccc",formsBorderError:v[60],formsBorderWidth:"1px",formsBorderRadius:"4px",formsPadding:"8px",formsBackground:m["05"],formsBackgroundHover:d,formsBackgroundFocus:d,formsBackgroundDisabled:m[10],formsBackgroundError:v["05"],formsText:m[60],formsTextDisabled:m[50],formsTextError:m[60],formsTextPlaceholder:m[40],formsError:v[60],formsShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.06)",selection:{background:fr(l,10),text:"#fff"},...f},shadows:{elevation0:"none",elevation1:"0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.1)",elevation2:"0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",...a.shadows},borderRadius:{s:"4px",...a.borderRadius},focusRing:{width:"2px",color:"rgba(64, 122, 230, 0.6)",...a.focusRing},zIndex:Array.from({length:10}).map((g,S)=>S*100),cursor:{pointer:"pointer",...a.cursor}},breakpoints:JC}}const cm=Z1({id:"dmk-default",colors:{primary:"#0074d9",secondary:"#a2c14e"}}),I1=E.createContext({theme:cm,setTheme:()=>{},darkMode:!1,setDarkMode:()=>!1,tokens:Y1(cm.tokens)});function tO({theme:t=cm,children:r,injectCssCustomProperties:a=!0,allowDarkMode:l=!1,respectDefaultDarkMode:o=!1,themeColor:s="var(--theme-color)"}){const[f,d]=E.useState(t);E.useEffect(()=>{d(t)},[t]);const m=E.useMemo(()=>WC(f),[f]),v=X1("(prefers-color-scheme: dark)"),[g,S]=IC("dmk-dark-mode",o?v:!1),p=g&&l?m:f;E.useEffect(()=>{const w=document.createElement("div");w.style.background=s,document.body.appendChild(w);const x=window.getComputedStyle(w).backgroundColor;document.body.removeChild(w);let R=document.querySelector('meta[name="theme-color"]');R==null&&(R=document.createElement("meta"),R.setAttribute("name","theme-color"),document.head.appendChild(R)),R.setAttribute("content",x)},[g,s]),E.useInsertionEffect(()=>{a&&aO(F1(p.tokens)),document.body.setAttribute("data-mode",g?"dark":"light")},[p,a,g]);const y=E.useMemo(()=>({theme:p,tokens:Y1(p.tokens),setTheme:d,darkMode:g,setDarkMode:S}),[p,g,S]);return D.jsx(I1,{value:y,children:D.jsx(rO,{breakpoints:t.breakpoints,children:r})})}function nO(){return E.useContext(I1)}function J1(){return E.useContext(eS)}function W1(){const{tokens:t}=nO();return t}const eS=Im("BreakpointsContext",[!1,!1,!0]);function rO({breakpoints:t,children:r}){const a=X1(t);return D.jsx(eS,{value:a,children:r})}function aO(t){for(const r of Object.keys(t))document.documentElement.style.setProperty(`--${r}`,t[r])}function fr(t,r){return`#${t.replace(/^#/,"").replace(/../g,a=>`0${Math.min(255,Math.max(0,parseInt(a,16)+r)).toString(16)}`.slice(-2))}`}function iO(t){t.startsWith("#")&&(t=t.slice(1));let[r,a,l,o]=[0,0,0,1];if(t.length===3)r=parseInt(`${t[0]}${t[0]}`,16),a=parseInt(`${t[1]}${t[1]}`,16),l=parseInt(`${t[2]}${t[2]}`,16),o=1;else if(t.length===4)r=parseInt(`${t[0]}${t[0]}`,16),a=parseInt(`${t[1]}${t[1]}`,16),l=parseInt(`${t[2]}${t[2]}`,16),o=parseInt(`${t[3]}${t[3]}`,16),o=+(o/255).toFixed(3);else if(t.length===6)r=parseInt(`${t[0]}${t[1]}`,16),a=parseInt(`${t[2]}${t[3]}`,16),l=parseInt(`${t[4]}${t[5]}`,16),o=1;else if(t.length===8)r=parseInt(`${t[0]}${t[1]}`,16),a=parseInt(`${t[2]}${t[3]}`,16),l=parseInt(`${t[4]}${t[5]}`,16),o=parseInt(`${t[6]}${t[7]}`,16),o=+(o/255).toFixed(3);else throw new Error(`Invalid hex: ${t}`);return[r,a,l,o]}function lO(t,r,a,l){t/=255,r/=255,a/=255;const o=Math.min(t,r,a),s=Math.max(t,r,a),f=s-o;let[d,m,v]=[0,0,0];return f===0?d=0:s===t?d=(r-a)/f%6:s===r?d=(a-t)/f+2:d=(t-r)/f+4,d=Math.round(d*60),d<0&&(d+=360),v=(s+o)/2,m=f===0?0:f/(1-Math.abs(2*v-1)),m=+(m*100).toFixed(1),v=+(v*100).toFixed(1),[d,m,v,l]}function uO(t){return lO(...iO(t))}const ci=({as:t="button",variant:r="contained",intent:a="none",className:l,color:o,style:s,size:f,...d})=>{const m=tS({variant:r,intent:a,color:o,className:l,style:s,size:f});return D.jsx(t,{type:t==="button"?"button":void 0,onTouchStart:()=>{},...d,...m})};function tS({variant:t="contained",intent:r="none",color:a,style:l,size:o="m",className:s}={}){return{style:{...a&&{"--Button-color":a,"--Button-hoverColor":fr(a,20)},...l},className:qe(cc.root,cc[t],cc[`intent-${r}`],cc[`size-${o}`],s)}}var Bh={root:"nwF8S",checkbox:"_076Ml",hiddenCheckbox:"vULBC"},fc={vstack:"f-weF","stack--spacing-none":"_4n4EX",hstack:"O-Obi","stack--spacing-xxs":"FpVz1","stack--spacing-xs":"yXJ18","stack--spacing-s":"fvPFs","stack--spacing-m":"_9zB8n","stack--spacing-l":"Fh5sy","stack--spacing-xl":"_1cgrL","stack--spacing-xxl":"nfwQY",wrap:"NcK99"};function nS(t){const r=J1();return Array.isArray(t)?rS(r,t):t}function bo(t){const r=J1();return t.map(a=>Array.isArray(a)?rS(r,a):a)}function rS(t,r){for(let a=t.length-1;a>=0;a-=1)if(t[a])return r[a];throw new Error("Invalid breakpoint config. At least one of them should have min-width: 0px")}function oO({height:t="m",horizontal:r=!1}){const[a,l]=bo([t,r]),o=W1();return D.jsx("div",{style:{flexGrow:0,flexShrink:0,[l?"width":"height"]:typeof a=="number"?a:o.spacing[a].valueOf()}})}function sO(t){const r=W1(),{alignItems:a,alignSelf:l,justifyContent:o,paddingLeft:s,paddingRight:f,paddingTop:d,paddingBottom:m,paddingX:v,paddingY:g,padding:S,marginLeft:p,marginRight:y,marginTop:w,marginBottom:x,marginX:R,marginY:T,margin:A,...N}=t,[j,C,q]=bo([o,a,l]),[B,V,z,X,te,fe,Z]=bo([s,f,d,m,v,g,S]).map(se=>typeof se=="number"||se==null?se:r.spacing[se]),[ae,ie,U,I,ne,K,M]=bo([p,y,w,x,R,T,A]).map(se=>typeof se=="number"||se==null?se:r.spacing[se]),F={};return te!=null&&(F.paddingLeft=te.valueOf(),F.paddingRight=te.valueOf()),fe!=null&&(F.paddingTop=fe.valueOf(),F.paddingBottom=fe.valueOf()),B!=null&&(F.paddingLeft=B.valueOf()),V!=null&&(F.paddingRight=V.valueOf()),z!=null&&(F.paddingTop=z.valueOf()),X!=null&&(F.paddingBottom=X.valueOf()),Z!=null&&(F.padding=Z.valueOf()),ne!=null&&(F.marginLeft=ne.valueOf(),F.marginRight=ne.valueOf()),K!=null&&(F.marginTop=U==null?void 0:U.valueOf(),F.marginBottom=I==null?void 0:I.valueOf()),ae!=null&&(F.marginLeft=ae.valueOf()),ie!=null&&(F.marginRight=ie.valueOf()),U!=null&&(F.marginTop=U.valueOf()),I!=null&&(F.marginBottom=I.valueOf()),M!=null&&(F.margin=M.valueOf()),j!=null&&(F.justifyContent=j),C!=null&&(F.alignItems=C),q!=null&&(F.alignSelf=q),[F,N]}const Ur=function({as:t="div",spacing:r="m",justifyContent:a="flex-start",alignItems:l="stretch",horizontal:o=!1,wrap:s=!1,...f}){const[d,m,v]=bo([o,r,s]),[g,S]=sO({alignItems:l,justifyContent:a,...f});return D.jsx(t,{...S,className:qe(d?fc.hstack:fc.vstack,v&&fc.wrap,f.className,typeof m!="number"&&fc[`stack--spacing-${m}`]),style:{...g,...f.style}})},cO=Im("CheckboxGroupContext",null);function aS({children:t,error:r,style:a,className:l,indeterminate:o,...s}){const f=fO(s);return D.jsxs("label",{"aria-disabled":f.disabled,"data-error":r,className:qe(Bh.root,l),style:a,children:[D.jsx("input",{type:"checkbox",...s,className:qe("dmk-visually-hidden",Bh.hiddenCheckbox),"aria-checked":f.checked,"aria-invalid":r?"true":"false","data-indeterminate":o,...f}),D.jsx("span",{className:Bh.checkbox}),D.jsx("span",{children:t})]})}function fO(t){const r=E.useContext(cO);return r==null?t:{value:t.value,name:r.name,checked:r.isChecked(t.value),disabled:r.disabled,onChange:r.onChange}}var Ll={root:"QAwiK",static:"xse-M",circle:"bWHVH",indeterminate:"uxHDU","circular-rotate":"fvokD",circleStatic:"aGrAV",circleIndeterminate:"vIA5t","circular-dash":"pIgMi"};function dO({size:t=52,thickness:r=2,value:a,color:l="var(--CircularProgress-color)",...o}){const s={},f={},d={};if(typeof a=="number"){const m=2*Math.PI*((t-r)/2);s.strokeDasharray=m.toFixed(3),d["aria-valuenow"]=Math.round(a),s.strokeDashoffset=`${((100-a)/100*m).toFixed(3)}px`,f.transform="rotate(-90deg)"}return D.jsx("div",{className:qe(Ll.root,{[Ll.indeterminate]:a==null,[Ll.static]:typeof a=="number"}),style:{color:l,width:t,height:t,...f},role:"progressbar",...d,...o,children:D.jsx("svg",{viewBox:`${t/2} ${t/2} ${t} ${t}`,children:D.jsx("circle",{className:qe(Ll.circle,{[Ll.circleIndeterminate]:a==null,[Ll.circleStatic]:typeof a=="number"}),style:s,cx:t,cy:t,r:(t-r)/2,fill:"none",strokeWidth:r})})})}var hO=Object.defineProperty,mO=Object.defineProperties,vO=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertySymbols,iS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,Qy=(t,r,a)=>r in t?hO(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a,oe=(t,r)=>{for(var a in r||(r={}))iS.call(r,a)&&Qy(t,a,r[a]);if(zc)for(var a of zc(r))lS.call(r,a)&&Qy(t,a,r[a]);return t},Ce=(t,r)=>mO(t,vO(r)),Ge=(t,r)=>{var a={};for(var l in t)iS.call(t,l)&&r.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&zc)for(var l of zc(t))r.indexOf(l)<0&&lS.call(t,l)&&(a[l]=t[l]);return a},pO=Object.defineProperty,gO=Object.defineProperties,yO=Object.getOwnPropertyDescriptors,Lc=Object.getOwnPropertySymbols,uS=Object.prototype.hasOwnProperty,oS=Object.prototype.propertyIsEnumerable,Ky=(t,r,a)=>r in t?pO(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a,ut=(t,r)=>{for(var a in r||(r={}))uS.call(r,a)&&Ky(t,a,r[a]);if(Lc)for(var a of Lc(r))oS.call(r,a)&&Ky(t,a,r[a]);return t},Yt=(t,r)=>gO(t,yO(r)),sS=(t,r)=>{var a={};for(var l in t)uS.call(t,l)&&r.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&Lc)for(var l of Lc(t))r.indexOf(l)<0&&oS.call(t,l)&&(a[l]=t[l]);return a};function Ec(...t){}function cS(t,r){if(bO(t)){const a=SO(r)?r():r;return t(a)}return t}function bO(t){return typeof t=="function"}function SO(t){return typeof t=="function"}function ha(t,r){return typeof Object.hasOwn=="function"?Object.hasOwn(t,r):Object.prototype.hasOwnProperty.call(t,r)}function Bn(...t){return(...r)=>{for(const a of t)typeof a=="function"&&a(...r)}}function xO(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function EO(t,r){const a=ut({},t);for(const l of r)ha(a,l)&&delete a[l];return a}function wO(t,r){const a={};for(const l of r)ha(t,l)&&(a[l]=t[l]);return a}function fS(t){return t}function Wt(t,r){if(!t)throw typeof r!="string"?new Error("Invariant failed"):new Error(r)}function CO(t){return Object.keys(t)}function dS(t,...r){const a=typeof t=="function"?t(...r):t;return a==null?!1:!a}function No(t){return t.disabled||t["aria-disabled"]===!0||t["aria-disabled"]==="true"}function iu(t){const r={};for(const a in t)t[a]!==void 0&&(r[a]=t[a]);return r}function et(...t){for(const r of t)if(r!==void 0)return r}function fm(t,r){typeof t=="function"?t(r):t&&(t.current=r)}function OO(t){return!t||!E.isValidElement(t)?!1:"ref"in t.props||"ref"in t}function TO(t){return OO(t)?oe({},t.props).ref||t.ref:null}function RO(t,r){const a=oe({},t);for(const l in r){if(!ha(r,l))continue;if(l==="className"){const s="className";a[s]=t[s]?`${t[s]} ${r[s]}`:r[s];continue}if(l==="style"){const s="style";a[s]=t[s]?oe(oe({},t[s]),r[s]):r[s];continue}const o=r[l];if(typeof o=="function"&&l.startsWith("on")){const s=t[l];if(typeof s=="function"){a[l]=(...f)=>{o(...f),s(...f)};continue}}a[l]=o}return a}var lu=DO();function DO(){var t;return typeof window<"u"&&!!((t=window.document)!=null&&t.createElement)}function gt(t){return t?"self"in t?t.document:t.ownerDocument||document:document}function hS(t){return t?"self"in t?t.self:gt(t).defaultView||window:self}function ga(t,r=!1){const{activeElement:a}=gt(t);if(!(a!=null&&a.nodeName))return null;if(Jm(a)&&a.contentDocument)return ga(a.contentDocument.body,r);if(r){const l=a.getAttribute("aria-activedescendant");if(l){const o=gt(a).getElementById(l);if(o)return o}}return a}function Lt(t,r){return t===r||t.contains(r)}function Jm(t){return t.tagName==="IFRAME"}function fi(t){const r=t.tagName.toLowerCase();return r==="button"?!0:r==="input"&&t.type?AO.indexOf(t.type)!==-1:!1}var AO=["button","color","file","image","reset","submit"];function mS(t){if(typeof t.checkVisibility=="function")return t.checkVisibility();const r=t;return r.offsetWidth>0||r.offsetHeight>0||t.getClientRects().length>0}function ya(t){try{const r=t instanceof HTMLInputElement&&t.selectionStart!==null,a=t.tagName==="TEXTAREA";return r||a||!1}catch{return!1}}function dm(t){return t.isContentEditable||ya(t)}function MO(t){if(ya(t))return t.value;if(t.isContentEditable){const r=gt(t).createRange();return r.selectNodeContents(t),r.toString()}return""}function jO(t){let r=0,a=0;if(ya(t))r=t.selectionStart||0,a=t.selectionEnd||0;else if(t.isContentEditable){const l=gt(t).getSelection();if(l!=null&&l.rangeCount&&l.anchorNode&&Lt(t,l.anchorNode)&&l.focusNode&&Lt(t,l.focusNode)){const o=l.getRangeAt(0),s=o.cloneRange();s.selectNodeContents(t),s.setEnd(o.startContainer,o.startOffset),r=s.toString().length,s.setEnd(o.endContainer,o.endOffset),a=s.toString().length}}return{start:r,end:a}}function Wm(t,r){const a=["dialog","menu","listbox","tree","grid"],l=t==null?void 0:t.getAttribute("role");return l&&a.indexOf(l)!==-1?l:r}function vS(t,r){var a;const l={menu:"menuitem",listbox:"option",tree:"treeitem"},o=Wm(t);return o&&(a=l[o])!=null?a:r}function pS(t){if(!t)return null;const r=a=>a==="auto"||a==="scroll";if(t.clientHeight&&t.scrollHeight>t.clientHeight){const{overflowY:a}=getComputedStyle(t);if(r(a))return t}else if(t.clientWidth&&t.scrollWidth>t.clientWidth){const{overflowX:a}=getComputedStyle(t);if(r(a))return t}return pS(t.parentElement)||document.scrollingElement||document.body}function gS(t,r){const a=t.map((o,s)=>[s,o]);let l=!1;return a.sort(([o,s],[f,d])=>{const m=r(s),v=r(d);return m===v||!m||!v?0:_O(m,v)?(o>f&&(l=!0),-1):(o<f&&(l=!0),1)}),l?a.map(([o,s])=>s):t}function _O(t,r){return!!(r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}function NO(){return lu&&!!navigator.maxTouchPoints}function ev(){return lu?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function tv(){return lu&&ev()&&/apple/i.test(navigator.vendor)}function zO(){return lu&&/firefox\//i.test(navigator.userAgent)}function LO(){return lu&&navigator.platform.startsWith("Mac")&&!NO()}function yS(t){return!!(t.currentTarget&&!Lt(t.currentTarget,t.target))}function Hn(t){return t.target===t.currentTarget}function HO(t){const r=t.currentTarget;if(!r)return!1;const a=ev();if(a&&!t.metaKey||!a&&!t.ctrlKey)return!1;const l=r.tagName.toLowerCase();return l==="a"||l==="button"&&r.type==="submit"||l==="input"&&r.type==="submit"}function UO(t){const r=t.currentTarget;if(!r)return!1;const a=r.tagName.toLowerCase();return t.altKey?a==="a"||a==="button"&&r.type==="submit"||a==="input"&&r.type==="submit":!1}function $O(t,r,a){const l=new Event(r,a);return t.dispatchEvent(l)}function Hl(t,r){const a=new FocusEvent("blur",r),l=t.dispatchEvent(a),o=Yt(ut({},r),{bubbles:!0});return t.dispatchEvent(new FocusEvent("focusout",o)),l}function BO(t,r,a){const l=new KeyboardEvent(r,a);return t.dispatchEvent(l)}function Gy(t,r){const a=new MouseEvent("click",r);return t.dispatchEvent(a)}function $l(t,r){const a=r||t.currentTarget,l=t.relatedTarget;return!l||!Lt(a,l)}function So(t,r,a,l){const s=(d=>{const m=requestAnimationFrame(d);return()=>cancelAnimationFrame(m)})(()=>{t.removeEventListener(r,f,!0),a()}),f=()=>{s(),a()};return t.addEventListener(r,f,{once:!0,capture:!0}),s}function Zt(t,r,a,l=window){const o=[];try{l.document.addEventListener(t,r,a);for(const f of Array.from(l.frames))o.push(Zt(t,r,a,f))}catch{}return()=>{try{l.document.removeEventListener(t,r,a)}catch{}for(const f of o)f()}}var nv=oe({},jw),Xy=nv.useId;nv.useDeferredValue;var Zy=nv.useInsertionEffect,ft=lu?E.useLayoutEffect:E.useEffect;function bS(t){const r=E.useRef(t);return ft(()=>{r.current=t}),r}function Ye(t){const r=E.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return Zy?Zy(()=>{r.current=t}):r.current=t,E.useCallback((...a)=>{var l;return(l=r.current)==null?void 0:l.call(r,...a)},[])}function PO(t){const[r,a]=E.useState(null);return ft(()=>{if(r==null||!t)return;let l=null;return t(o=>(l=o,r)),()=>{t(l)}},[r,t]),[r,a]}function Ht(...t){return E.useMemo(()=>{if(t.some(Boolean))return r=>{for(const a of t)fm(a,r)}},t)}function Ji(t){if(Xy){const l=Xy();return t||l}const[r,a]=E.useState(t);return ft(()=>{if(t||r)return;const l=Math.random().toString(36).slice(2,8);a(`id-${l}`)},[t,r]),t||r}function rv(t,r){const a=s=>{if(typeof s=="string")return s},[l,o]=E.useState(()=>a(r));return ft(()=>{const s=t&&"current"in t?t.current:t;o((s==null?void 0:s.tagName.toLowerCase())||a(r))},[t,r]),l}function nf(t,r){const a=E.useRef(!1);E.useEffect(()=>{if(a.current)return t();a.current=!0},r),E.useEffect(()=>()=>{a.current=!1},[])}function qO(){return E.useReducer(()=>[],[])}function Un(t){return Ye(typeof t=="function"?t:()=>t)}function gn(t,r,a=[]){const l=E.useCallback(o=>(t.wrapElement&&(o=t.wrapElement(o)),r(o)),[...a,t.wrapElement]);return Ce(oe({},t),{wrapElement:l})}function av(t=!1,r){const[a,l]=E.useState(null);return{portalRef:Ht(l,r),portalNode:a,domReady:!t||a}}function SS(t,r,a){const l=t.onLoadedMetadataCapture,o=E.useMemo(()=>Object.assign(()=>{},Ce(oe({},l),{[r]:a})),[l,r,a]);return[l==null?void 0:l[r],{onLoadedMetadataCapture:o}]}function iv(){return E.useEffect(()=>{Zt("mousemove",FO,!0),Zt("mousedown",dc,!0),Zt("mouseup",dc,!0),Zt("keydown",dc,!0),Zt("scroll",dc,!0)},[]),Ye(()=>lv)}var lv=!1,Iy=0,Jy=0;function kO(t){const r=t.movementX||t.screenX-Iy,a=t.movementY||t.screenY-Jy;return Iy=t.screenX,Jy=t.screenY,r||a||!1}function FO(t){kO(t)&&(lv=!0)}function dc(){lv=!1}function Xe(t){const r=E.forwardRef((a,l)=>t(Ce(oe({},a),{ref:l})));return r.displayName=t.displayName||t.name,r}function uv(t,r){return E.memo(t,r)}function Ie(t,r){const a=r,{wrapElement:l,render:o}=a,s=Ge(a,["wrapElement","render"]),f=Ht(r.ref,TO(o));let d;if(E.isValidElement(o)){const m=Ce(oe({},o.props),{ref:f});d=E.cloneElement(o,RO(s,m))}else o?d=o(s):d=D.jsx(t,oe({},s));return l?l(d):d}function tt(t){const r=(a={})=>t(a);return r.displayName=t.name,r}function ba(t=[],r=[]){const a=E.createContext(void 0),l=E.createContext(void 0),o=()=>E.useContext(a),s=(v=!1)=>{const g=E.useContext(l),S=o();return v?g:g||S},f=()=>{const v=E.useContext(l),g=o();if(!(v&&v===g))return g},d=v=>t.reduceRight((g,S)=>D.jsx(S,Ce(oe({},v),{children:g})),D.jsx(a.Provider,oe({},v)));return{context:a,scopedContext:l,useContext:o,useScopedContext:s,useProviderContext:f,ContextProvider:d,ScopedContextProvider:v=>D.jsx(d,Ce(oe({},v),{children:r.reduceRight((g,S)=>D.jsx(S,Ce(oe({},v),{children:g})),D.jsx(l.Provider,oe({},v)))}))}}var zo=ba(),VO=zo.useContext;zo.useScopedContext;zo.useProviderContext;var YO=zo.ContextProvider,QO=zo.ScopedContextProvider,Lo=ba([YO],[QO]),rf=Lo.useContext;Lo.useScopedContext;var KO=Lo.useProviderContext,af=Lo.ContextProvider,ov=Lo.ScopedContextProvider,GO=E.createContext(void 0),XO=E.createContext(void 0);function Wi(t,r){const a=t.__unstableInternals;return Wt(a,"Invalid store"),a[r]}function $r(t,...r){let a=t,l=a,o=Symbol(),s=Ec;const f=new Set,d=new Set,m=new Set,v=new Set,g=new Set,S=new WeakMap,p=new WeakMap,y=V=>(m.add(V),()=>m.delete(V)),w=()=>{const V=f.size,z=Symbol();f.add(z);const X=()=>{f.delete(z),!f.size&&s()};if(V)return X;const te=CO(a).map(ae=>Bn(...r.map(ie=>{var U;const I=(U=ie==null?void 0:ie.getState)==null?void 0:U.call(ie);if(I&&ha(I,ae))return ma(ie,[ae],ne=>{q(ae,ne[ae],!0)})}))),fe=[];for(const ae of m)fe.push(ae());const Z=r.map(sv);return s=Bn(...te,...fe,...Z),X},x=(V,z,X=v)=>(X.add(z),p.set(z,V),()=>{var te;(te=S.get(z))==null||te(),S.delete(z),p.delete(z),X.delete(z)}),R=(V,z)=>x(V,z),T=(V,z)=>(S.set(z,z(a,a)),x(V,z)),A=(V,z)=>(S.set(z,z(a,l)),x(V,z,g)),N=V=>$r(wO(a,V),B),j=V=>$r(EO(a,V),B),C=()=>a,q=(V,z,X=!1)=>{var te;if(!ha(a,V))return;const fe=cS(z,a[V]);if(fe===a[V])return;if(!X)for(const U of r)(te=U==null?void 0:U.setState)==null||te.call(U,V,fe);const Z=a;a=Yt(ut({},a),{[V]:fe});const ae=Symbol();o=ae,d.add(V);const ie=(U,I,ne)=>{var K;const M=p.get(U),F=se=>ne?ne.has(se):se===V;(!M||M.some(F))&&((K=S.get(U))==null||K(),S.set(U,U(a,I)))};for(const U of v)ie(U,Z);queueMicrotask(()=>{if(o!==ae)return;const U=a;for(const I of g)ie(I,l,d);l=U,d.clear()})},B={getState:C,setState:q,__unstableInternals:{setup:y,init:w,subscribe:R,sync:T,batch:A,pick:N,omit:j}};return B}function fa(t,...r){if(t)return Wi(t,"setup")(...r)}function sv(t,...r){if(t)return Wi(t,"init")(...r)}function cv(t,...r){if(t)return Wi(t,"subscribe")(...r)}function ma(t,...r){if(t)return Wi(t,"sync")(...r)}function hm(t,...r){if(t)return Wi(t,"batch")(...r)}function fv(t,...r){if(t)return Wi(t,"omit")(...r)}function ZO(t,...r){if(t)return Wi(t,"pick")(...r)}function dv(...t){const r=t.reduce((l,o)=>{var s;const f=(s=o==null?void 0:o.getState)==null?void 0:s.call(o);return f?Object.assign(l,f):l},{}),a=$r(r,...t);return Object.assign({},...t,a)}var Ph={exports:{}},qh={};/**
23
- * @license React
24
- * use-sync-external-store-shim.production.min.js
25
- *
26
- * Copyright (c) Facebook, Inc. and its affiliates.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */var Wy;function IO(){if(Wy)return qh;Wy=1;var t=Zc();function r(S,p){return S===p&&(S!==0||1/S===1/p)||S!==S&&p!==p}var a=typeof Object.is=="function"?Object.is:r,l=t.useState,o=t.useEffect,s=t.useLayoutEffect,f=t.useDebugValue;function d(S,p){var y=p(),w=l({inst:{value:y,getSnapshot:p}}),x=w[0].inst,R=w[1];return s(function(){x.value=y,x.getSnapshot=p,m(x)&&R({inst:x})},[S,y,p]),o(function(){return m(x)&&R({inst:x}),S(function(){m(x)&&R({inst:x})})},[S]),f(y),y}function m(S){var p=S.getSnapshot;S=S.value;try{var y=p();return!a(S,y)}catch{return!0}}function v(S,p){return p()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:d;return qh.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,qh}var eb;function JO(){return eb||(eb=1,Ph.exports=IO()),Ph.exports}var WO=JO();const eT=Xc(WO);var{useSyncExternalStore:xS}=eT,ES=()=>()=>{};function Pt(t,r=fS){const a=E.useCallback(o=>t?cv(t,null,o):ES(),[t]),l=()=>{const o=typeof r=="string"?r:null,s=typeof r=="function"?r:null,f=t==null?void 0:t.getState();if(s)return s(f);if(f&&o&&ha(f,o))return f[o]};return xS(a,l,l)}function tT(t,r){const a=E.useRef({}),l=E.useCallback(s=>t?cv(t,null,s):ES(),[t]),o=()=>{const s=t==null?void 0:t.getState();let f=!1;const d=a.current;for(const m in r){const v=r[m];if(typeof v=="function"){const g=v(s);g!==d[m]&&(d[m]=g,f=!0)}if(typeof v=="string"){if(!s||!ha(s,v))continue;const g=s[v];g!==d[m]&&(d[m]=g,f=!0)}}return f&&(a.current=oe({},d)),a.current};return xS(l,o,o)}function Xt(t,r,a,l){const o=ha(r,a)?r[a]:void 0,s=l?r[l]:void 0,f=bS({value:o,setValue:s});ft(()=>ma(t,[a],(d,m)=>{const{value:v,setValue:g}=f.current;g&&d[a]!==m[a]&&d[a]!==v&&g(d[a])}),[t,a]),ft(()=>{if(o!==void 0)return t.setState(a,o),hm(t,[a],()=>{o!==void 0&&t.setState(a,o)})})}function hv(t,r){const[a,l]=E.useState(()=>t(r));ft(()=>sv(a),[a]);const o=E.useCallback(d=>Pt(a,d),[a]),s=E.useMemo(()=>Ce(oe({},a),{useState:o}),[a,o]),f=Ye(()=>{l(d=>t(oe(oe({},r),d.getState())))});return[s,f]}function nT(t){var r;const a=t.find(s=>!!s.element),l=[...t].reverse().find(s=>!!s.element);let o=(r=a==null?void 0:a.element)==null?void 0:r.parentElement;for(;o&&(l!=null&&l.element);){if(l&&o.contains(l.element))return o;o=o.parentElement}return gt(o).body}function rT(t){return t==null?void 0:t.__unstablePrivateStore}function aT(t={}){var r;t.store;const a=(r=t.store)==null?void 0:r.getState(),l=et(t.items,a==null?void 0:a.items,t.defaultItems,[]),o=new Map(l.map(p=>[p.id,p])),s={items:l,renderedItems:et(a==null?void 0:a.renderedItems,[])},f=rT(t.store),d=$r({items:l,renderedItems:s.renderedItems},f),m=$r(s,t.store),v=p=>{const y=gS(p,w=>w.element);d.setState("renderedItems",y),m.setState("renderedItems",y)};fa(m,()=>sv(d)),fa(d,()=>hm(d,["items"],p=>{m.setState("items",p.items)})),fa(d,()=>hm(d,["renderedItems"],p=>{let y=!0,w=requestAnimationFrame(()=>{const{renderedItems:A}=m.getState();p.renderedItems!==A&&v(p.renderedItems)});if(typeof IntersectionObserver!="function")return()=>cancelAnimationFrame(w);const x=()=>{if(y){y=!1;return}cancelAnimationFrame(w),w=requestAnimationFrame(()=>v(p.renderedItems))},R=nT(p.renderedItems),T=new IntersectionObserver(x,{root:R});for(const A of p.renderedItems)A.element&&T.observe(A.element);return()=>{cancelAnimationFrame(w),T.disconnect()}}));const g=(p,y,w=!1)=>{let x;return y(T=>{const A=T.findIndex(({id:j})=>j===p.id),N=T.slice();if(A!==-1){x=T[A];const j=ut(ut({},x),p);N[A]=j,o.set(p.id,j)}else N.push(p),o.set(p.id,p);return N}),()=>{y(T=>{if(!x)return w&&o.delete(p.id),T.filter(({id:j})=>j!==p.id);const A=T.findIndex(({id:j})=>j===p.id);if(A===-1)return T;const N=T.slice();return N[A]=x,o.set(p.id,x),N})}},S=p=>g(p,y=>d.setState("items",y),!0);return Yt(ut({},m),{registerItem:S,renderItem:p=>Bn(S(p),g(p,y=>d.setState("renderedItems",y))),item:p=>{if(!p)return null;let y=o.get(p);if(!y){const{items:w}=d.getState();y=w.find(x=>x.id===p),y&&o.set(p,y)}return y||null},__unstablePrivateStore:d})}function iT(t,r,a){return nf(r,[a.store]),Xt(t,a,"items","setItems"),t}function wS(t){const r=[];for(const a of t)r.push(...a);return r}function mm(t){return t.slice().reverse()}var lT={id:null};function ua(t,r){return t.find(a=>r?!a.disabled&&a.id!==r:!a.disabled)}function uT(t,r){return t.filter(a=>r?!a.disabled&&a.id!==r:!a.disabled)}function tb(t,r){return t.filter(a=>a.rowId===r)}function oT(t,r,a=!1){const l=t.findIndex(o=>o.id===r);return[...t.slice(l+1),...a?[lT]:[],...t.slice(0,l)]}function CS(t){const r=[];for(const a of t){const l=r.find(o=>{var s;return((s=o[0])==null?void 0:s.rowId)===a.rowId});l?l.push(a):r.push([a])}return r}function OS(t){let r=0;for(const{length:a}of t)a>r&&(r=a);return r}function sT(t){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:t}}function cT(t,r,a){const l=OS(t);for(const o of t)for(let s=0;s<l;s+=1){const f=o[s];if(!f||a&&f.disabled){const m=s===0&&a?ua(o):o[s-1];o[s]=m&&r!==m.id&&a?m:sT(m==null?void 0:m.rowId)}}return t}function fT(t){const r=CS(t),a=OS(r),l=[];for(let o=0;o<a;o+=1)for(const s of r){const f=s[o];f&&l.push(Yt(ut({},f),{rowId:f.rowId?`${o}`:void 0}))}return l}function dT(t={}){var r;const a=(r=t.store)==null?void 0:r.getState(),l=aT(t),o=et(t.activeId,a==null?void 0:a.activeId,t.defaultActiveId),s=Yt(ut({},l.getState()),{id:et(t.id,a==null?void 0:a.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:o,baseElement:et(a==null?void 0:a.baseElement,null),includesBaseElement:et(t.includesBaseElement,a==null?void 0:a.includesBaseElement,o===null),moves:et(a==null?void 0:a.moves,0),orientation:et(t.orientation,a==null?void 0:a.orientation,"both"),rtl:et(t.rtl,a==null?void 0:a.rtl,!1),virtualFocus:et(t.virtualFocus,a==null?void 0:a.virtualFocus,!1),focusLoop:et(t.focusLoop,a==null?void 0:a.focusLoop,!1),focusWrap:et(t.focusWrap,a==null?void 0:a.focusWrap,!1),focusShift:et(t.focusShift,a==null?void 0:a.focusShift,!1)}),f=$r(s,l,t.store);fa(f,()=>ma(f,["renderedItems","activeId"],m=>{f.setState("activeId",v=>{var g;return v!==void 0?v:(g=ua(m.renderedItems))==null?void 0:g.id})}));const d=(m="next",v={})=>{var g,S;const p=f.getState(),{skip:y=0,activeId:w=p.activeId,focusShift:x=p.focusShift,focusLoop:R=p.focusLoop,focusWrap:T=p.focusWrap,includesBaseElement:A=p.includesBaseElement,renderedItems:N=p.renderedItems,rtl:j=p.rtl}=v,C=m==="up"||m==="down",q=m==="next"||m==="down",B=q?j&&!C:!j||C,V=x&&!y;let z=C?wS(cT(CS(N),w,V)):N;if(z=B?mm(z):z,z=C?fT(z):z,w==null)return(g=ua(z))==null?void 0:g.id;const X=z.find(K=>K.id===w);if(!X)return(S=ua(z))==null?void 0:S.id;const te=z.some(K=>K.rowId),fe=z.indexOf(X),Z=z.slice(fe+1),ae=tb(Z,X.rowId);if(y){const K=uT(ae,w),M=K.slice(y)[0]||K[K.length-1];return M==null?void 0:M.id}const ie=R&&(C?R!=="horizontal":R!=="vertical"),U=te&&T&&(C?T!=="horizontal":T!=="vertical"),I=q?(!te||C)&&ie&&A:C?A:!1;if(ie){const K=U&&!I?z:tb(z,X.rowId),M=oT(K,w,I),F=ua(M,w);return F==null?void 0:F.id}if(U){const K=ua(I?ae:Z,w);return I?(K==null?void 0:K.id)||null:K==null?void 0:K.id}const ne=ua(ae,w);return!ne&&I?null:ne==null?void 0:ne.id};return Yt(ut(ut({},l),f),{setBaseElement:m=>f.setState("baseElement",m),setActiveId:m=>f.setState("activeId",m),move:m=>{m!==void 0&&(f.setState("activeId",m),f.setState("moves",v=>v+1))},first:()=>{var m;return(m=ua(f.getState().renderedItems))==null?void 0:m.id},last:()=>{var m;return(m=ua(mm(f.getState().renderedItems)))==null?void 0:m.id},next:m=>(m!==void 0&&typeof m=="number"&&(m={skip:m}),d("next",m)),previous:m=>(m!==void 0&&typeof m=="number"&&(m={skip:m}),d("previous",m)),down:m=>(m!==void 0&&typeof m=="number"&&(m={skip:m}),d("down",m)),up:m=>(m!==void 0&&typeof m=="number"&&(m={skip:m}),d("up",m))})}function hT(t,r,a){return t=iT(t,r,a),Xt(t,a,"activeId","setActiveId"),Xt(t,a,"includesBaseElement"),Xt(t,a,"virtualFocus"),Xt(t,a,"orientation"),Xt(t,a,"rtl"),Xt(t,a,"focusLoop"),Xt(t,a,"focusWrap"),Xt(t,a,"focusShift"),t}function TS(t={}){const r=dv(t.store,fv(t.disclosure,["contentElement","disclosureElement"])),a=r==null?void 0:r.getState(),l=et(t.open,a==null?void 0:a.open,t.defaultOpen,!1),o=et(t.animated,a==null?void 0:a.animated,!1),s={open:l,animated:o,animating:!!o&&l,mounted:l,contentElement:et(a==null?void 0:a.contentElement,null),disclosureElement:et(a==null?void 0:a.disclosureElement,null)},f=$r(s,r);return fa(f,()=>ma(f,["animated","animating"],d=>{d.animated||f.setState("animating",!1)})),fa(f,()=>cv(f,["open"],()=>{f.getState().animated&&f.setState("animating",!0)})),fa(f,()=>ma(f,["open","animating"],d=>{f.setState("mounted",d.open||d.animating)})),Yt(ut({},f),{disclosure:t.disclosure,setOpen:d=>f.setState("open",d),show:()=>f.setState("open",!0),hide:()=>f.setState("open",!1),toggle:()=>f.setState("open",d=>!d),stopAnimation:()=>f.setState("animating",!1),setContentElement:d=>f.setState("contentElement",d),setDisclosureElement:d=>f.setState("disclosureElement",d)})}function RS(t,r,a){return nf(r,[a.store,a.disclosure]),Xt(t,a,"open","setOpen"),Xt(t,a,"mounted","setMounted"),Xt(t,a,"animated"),Object.assign(t,{disclosure:a.disclosure})}function mT(t={}){const[r,a]=hv(TS,t);return RS(r,a,t)}function DS(t={}){return TS(t)}function AS(t,r,a){return RS(t,r,a)}function vT(t={}){const[r,a]=hv(DS,t);return AS(r,a,t)}function pT(t={}){var r=t,{popover:a}=r,l=sS(r,["popover"]);const o=dv(l.store,fv(a,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),s=o==null?void 0:o.getState(),f=DS(Yt(ut({},l),{store:o})),d=et(l.placement,s==null?void 0:s.placement,"bottom"),m=Yt(ut({},f.getState()),{placement:d,currentPlacement:d,anchorElement:et(s==null?void 0:s.anchorElement,null),popoverElement:et(s==null?void 0:s.popoverElement,null),arrowElement:et(s==null?void 0:s.arrowElement,null),rendered:Symbol("rendered")}),v=$r(m,f,o);return Yt(ut(ut({},f),v),{setAnchorElement:g=>v.setState("anchorElement",g),setPopoverElement:g=>v.setState("popoverElement",g),setArrowElement:g=>v.setState("arrowElement",g),render:()=>v.setState("rendered",Symbol("rendered"))})}function gT(t,r,a){return nf(r,[a.popover]),Xt(t,a,"placement"),AS(t,r,a)}var Ho=ba();Ho.useContext;Ho.useScopedContext;var mv=Ho.useProviderContext,yT=Ho.ContextProvider,bT=Ho.ScopedContextProvider,lf=ba([yT],[bT]),ST=lf.useScopedContext,uf=lf.useProviderContext,xT=lf.ContextProvider,vv=lf.ScopedContextProvider,MS=E.createContext(void 0),ET=E.createContext(void 0),Uo=ba([xT],[vv]);Uo.useContext;Uo.useScopedContext;var of=Uo.useProviderContext,jS=Uo.ContextProvider,sf=Uo.ScopedContextProvider;E.createContext(void 0);var wT=ba([jS,af],[sf,ov]),CT=wT.useProviderContext;E.createContext(void 0);E.createContext(!1);var OT="div",_S=tt(function(r){var a=r,{store:l}=a,o=Ge(a,["store"]);const s=of();return l=l||s,o=Ce(oe({},o),{ref:Ht(l==null?void 0:l.setAnchorElement,o.ref)}),o});Xe(function(r){const a=_S(r);return Ie(OT,a)});var TT={id:null};function RT(t,r,a=!1){const l=t.findIndex(o=>o.id===r);return[...t.slice(l+1),...a?[TT]:[],...t.slice(0,l)]}function DT(t,r){return t.find(a=>!a.disabled)}function Ia(t,r){return r&&t.item(r)||null}function AT(t){const r=[];for(const a of t){const l=r.find(o=>{var s;return((s=o[0])==null?void 0:s.rowId)===a.rowId});l?l.push(a):r.push([a])}return r}function MT(t,r=!1){if(ya(t))t.setSelectionRange(r?t.value.length:0,t.value.length);else if(t.isContentEditable){const a=gt(t).getSelection();a==null||a.selectAllChildren(t),r&&(a==null||a.collapseToEnd())}}var vm=Symbol("FOCUS_SILENTLY");function jT(t){t[vm]=!0,t.focus({preventScroll:!0})}function _T(t){const r=t[vm];return delete t[vm],r}function xo(t,r,a){return!(!r||r===a||!t.item(r.id))}var NS=E.createContext(!0),cf="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function NT(t){return Number.parseInt(t.getAttribute("tabindex")||"0",10)<0}function pr(t){return!(!t.matches(cf)||!mS(t)||t.closest("[inert]"))}function Hc(t){if(!pr(t)||NT(t))return!1;if(!("form"in t)||!t.form||t.checked||t.type!=="radio")return!0;const r=t.form.elements.namedItem(t.name);if(!r||!("length"in r))return!0;const a=ga(t);return!a||a===t||!("form"in a)||a.form!==t.form||a.name!==t.name}function pv(t,r){const a=Array.from(t.querySelectorAll(cf));r&&a.unshift(t);const l=a.filter(pr);return l.forEach((o,s)=>{if(Jm(o)&&o.contentDocument){const f=o.contentDocument.body;l.splice(s,1,...pv(f))}}),l}function ff(t,r,a){const l=Array.from(t.querySelectorAll(cf)),o=l.filter(Hc);return r&&Hc(t)&&o.unshift(t),o.forEach((s,f)=>{if(Jm(s)&&s.contentDocument){const d=s.contentDocument.body,m=ff(d,!1,a);o.splice(f,1,...m)}}),!o.length&&a?l:o}function zT(t,r,a){const[l]=ff(t,r,a);return l||null}function LT(t,r,a,l){const o=ga(t),s=pv(t,r),f=s.indexOf(o);return s.slice(f+1).find(Hc)||null||null||null}function kh(t,r){return LT(document.body,!1)}function HT(t,r,a,l){const o=ga(t),s=pv(t,r).reverse(),f=s.indexOf(o);return s.slice(f+1).find(Hc)||null||null||null}function nb(t,r){return HT(document.body,!1)}function UT(t){for(;t&&!pr(t);)t=t.closest(cf);return t||null}function Uc(t){const r=ga(t);if(!r)return!1;if(r===t)return!0;const a=r.getAttribute("aria-activedescendant");return a?a===t.id:!1}function oi(t){const r=ga(t);if(!r)return!1;if(Lt(t,r))return!0;const a=r.getAttribute("aria-activedescendant");return!a||!("id"in t)?!1:a===t.id?!0:!!t.querySelector(`#${CSS.escape(a)}`)}function zS(t){!oi(t)&&pr(t)&&t.focus()}function $T(t){var r;const a=(r=t.getAttribute("tabindex"))!=null?r:"";t.setAttribute("data-tabindex",a),t.setAttribute("tabindex","-1")}function BT(t,r){const a=ff(t,r);for(const l of a)$T(l)}function PT(t){const r=t.querySelectorAll("[data-tabindex]"),a=l=>{const o=l.getAttribute("data-tabindex");l.removeAttribute("data-tabindex"),o?l.setAttribute("tabindex",o):l.removeAttribute("tabindex")};t.hasAttribute("data-tabindex")&&a(t);for(const l of r)a(l)}function qT(t,r){"scrollIntoView"in t?(t.focus({preventScroll:!0}),t.scrollIntoView(ut({block:"nearest",inline:"nearest"},r))):t.focus()}var kT="div",rb=tv(),FT=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],LS=Symbol("safariFocusAncestor");function VT(t){return t?!!t[LS]:!1}function ab(t,r){t&&(t[LS]=r)}function YT(t){const{tagName:r,readOnly:a,type:l}=t;return r==="TEXTAREA"&&!a||r==="SELECT"&&!a?!0:r==="INPUT"&&!a?FT.includes(l):!!(t.isContentEditable||t.getAttribute("role")==="combobox"&&t.dataset.name)}function QT(t){return"labels"in t?t.labels:null}function ib(t){return t.tagName.toLowerCase()==="input"&&t.type?t.type==="radio"||t.type==="checkbox":!1}function KT(t){return t?t==="button"||t==="summary"||t==="input"||t==="select"||t==="textarea"||t==="a":!0}function GT(t){return t?t==="button"||t==="input"||t==="select"||t==="textarea":!0}function XT(t,r,a,l,o){return t?r?a&&!l?-1:void 0:a?o:o||0:o}function Fh(t,r){return Ye(a=>{t==null||t(a),!a.defaultPrevented&&r&&(a.stopPropagation(),a.preventDefault())})}var gv=!0;function ZT(t){const r=t.target;r&&"hasAttribute"in r&&(r.hasAttribute("data-focus-visible")||(gv=!1))}function IT(t){t.metaKey||t.ctrlKey||t.altKey||(gv=!0)}var $o=tt(function(r){var a=r,{focusable:l=!0,accessibleWhenDisabled:o,autoFocus:s,onFocusVisible:f}=a,d=Ge(a,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const m=E.useRef(null);E.useEffect(()=>{l&&(Zt("mousedown",ZT,!0),Zt("keydown",IT,!0))},[l]),rb&&E.useEffect(()=>{if(!l)return;const U=m.current;if(!U||!ib(U))return;const I=QT(U);if(!I)return;const ne=()=>queueMicrotask(()=>U.focus());for(const K of I)K.addEventListener("mouseup",ne);return()=>{for(const K of I)K.removeEventListener("mouseup",ne)}},[l]);const v=l&&No(d),g=!!v&&!o,[S,p]=E.useState(!1);E.useEffect(()=>{l&&g&&S&&p(!1)},[l,g,S]),E.useEffect(()=>{if(!l||!S)return;const U=m.current;if(!U||typeof IntersectionObserver>"u")return;const I=new IntersectionObserver(()=>{pr(U)||p(!1)});return I.observe(U),()=>I.disconnect()},[l,S]);const y=Fh(d.onKeyPressCapture,v),w=Fh(d.onMouseDownCapture,v),x=Fh(d.onClickCapture,v),R=d.onMouseDown,T=Ye(U=>{if(R==null||R(U),U.defaultPrevented||!l)return;const I=U.currentTarget;if(!rb||yS(U)||!fi(I)&&!ib(I))return;let ne=!1;const K=()=>{ne=!0},M={capture:!0,once:!0};I.addEventListener("focusin",K,M);const F=UT(I.parentElement);ab(F,!0),So(I,"mouseup",()=>{I.removeEventListener("focusin",K,!0),ab(F,!1),!ne&&zS(I)})}),A=(U,I)=>{if(I&&(U.currentTarget=I),!l)return;const ne=U.currentTarget;ne&&Uc(ne)&&(f==null||f(U),!U.defaultPrevented&&(ne.dataset.focusVisible="true",p(!0)))},N=d.onKeyDownCapture,j=Ye(U=>{if(N==null||N(U),U.defaultPrevented||!l||S||U.metaKey||U.altKey||U.ctrlKey||!Hn(U))return;const I=U.currentTarget;So(I,"focusout",()=>A(U,I))}),C=d.onFocusCapture,q=Ye(U=>{if(C==null||C(U),U.defaultPrevented||!l)return;if(!Hn(U)){p(!1);return}const I=U.currentTarget,ne=()=>A(U,I);gv||YT(U.target)?So(U.target,"focusout",ne):p(!1)}),B=d.onBlur,V=Ye(U=>{B==null||B(U),l&&$l(U)&&p(!1)}),z=E.useContext(NS),X=Ye(U=>{l&&s&&U&&z&&queueMicrotask(()=>{Uc(U)||pr(U)&&U.focus()})}),te=rv(m),fe=l&&KT(te),Z=l&&GT(te),ae=d.style,ie=E.useMemo(()=>g?oe({pointerEvents:"none"},ae):ae,[g,ae]);return d=Ce(oe({"data-focus-visible":l&&S||void 0,"data-autofocus":s||void 0,"aria-disabled":v||void 0},d),{ref:Ht(m,X,d.ref),style:ie,tabIndex:XT(l,g,fe,Z,d.tabIndex),disabled:Z&&g?!0:void 0,contentEditable:v?void 0:d.contentEditable,onKeyPressCapture:y,onClickCapture:x,onMouseDownCapture:w,onMouseDown:T,onKeyDownCapture:j,onFocusCapture:q,onBlur:V}),iu(d)});Xe(function(r){const a=$o(r);return Ie(kT,a)});var JT="div";function WT(t){return t.some(r=>!!r.rowId)}function eR(t){const r=t.target;return r&&!ya(r)?!1:t.key.length===1&&!t.ctrlKey&&!t.metaKey}function tR(t){return t.key==="Shift"||t.key==="Control"||t.key==="Alt"||t.key==="Meta"}function lb(t,r,a){return Ye(l=>{var o;if(r==null||r(l),l.defaultPrevented||l.isPropagationStopped()||!Hn(l)||tR(l)||eR(l))return;const s=t.getState(),f=(o=Ia(t,s.activeId))==null?void 0:o.element;if(!f)return;const d=l,m=Ge(d,["view"]),v=a==null?void 0:a.current;f!==v&&f.focus(),BO(f,l.type,m)||l.preventDefault(),l.currentTarget.contains(f)&&l.stopPropagation()})}function nR(t){return DT(wS(mm(AT(t))))}function rR(t){const[r,a]=E.useState(!1),l=E.useCallback(()=>a(!0),[]),o=t.useState(s=>Ia(t,s.activeId));return E.useEffect(()=>{const s=o==null?void 0:o.element;r&&s&&(a(!1),s.focus({preventScroll:!0}))},[o,r]),l}var HS=tt(function(r){var a=r,{store:l,composite:o=!0,focusOnMove:s=o,moveOnKeyPress:f=!0}=a,d=Ge(a,["store","composite","focusOnMove","moveOnKeyPress"]);const m=KO();l=l||m,Wt(l,!1);const v=E.useRef(null),g=E.useRef(null),S=rR(l),p=l.useState("moves"),[,y]=PO(o?l.setBaseElement:null);E.useEffect(()=>{var Z;if(!l||!p||!o||!s)return;const{activeId:ae}=l.getState(),ie=(Z=Ia(l,ae))==null?void 0:Z.element;ie&&qT(ie)},[l,p,o,s]),ft(()=>{if(!l||!p||!o)return;const{baseElement:Z,activeId:ae}=l.getState();if(!(ae===null)||!Z)return;const U=g.current;g.current=null,U&&Hl(U,{relatedTarget:Z}),Uc(Z)||Z.focus()},[l,p,o]);const w=l.useState("activeId"),x=l.useState("virtualFocus");ft(()=>{var Z;if(!l||!o||!x)return;const ae=g.current;if(g.current=null,!ae)return;const U=((Z=Ia(l,w))==null?void 0:Z.element)||ga(ae);U!==ae&&Hl(ae,{relatedTarget:U})},[l,w,x,o]);const R=lb(l,d.onKeyDownCapture,g),T=lb(l,d.onKeyUpCapture,g),A=d.onFocusCapture,N=Ye(Z=>{if(A==null||A(Z),Z.defaultPrevented||!l)return;const{virtualFocus:ae}=l.getState();if(!ae)return;const ie=Z.relatedTarget,U=_T(Z.currentTarget);Hn(Z)&&U&&(Z.stopPropagation(),g.current=ie)}),j=d.onFocus,C=Ye(Z=>{if(j==null||j(Z),Z.defaultPrevented||!o||!l)return;const{relatedTarget:ae}=Z,{virtualFocus:ie}=l.getState();ie?Hn(Z)&&!xo(l,ae)&&queueMicrotask(S):Hn(Z)&&l.setActiveId(null)}),q=d.onBlurCapture,B=Ye(Z=>{var ae;if(q==null||q(Z),Z.defaultPrevented||!l)return;const{virtualFocus:ie,activeId:U}=l.getState();if(!ie)return;const I=(ae=Ia(l,U))==null?void 0:ae.element,ne=Z.relatedTarget,K=xo(l,ne),M=g.current;g.current=null,Hn(Z)&&K?(ne===I?M&&M!==ne&&Hl(M,Z):I?Hl(I,Z):M&&Hl(M,Z),Z.stopPropagation()):!xo(l,Z.target)&&I&&Hl(I,Z)}),V=d.onKeyDown,z=Un(f),X=Ye(Z=>{var ae;if(V==null||V(Z),Z.defaultPrevented||!l||!Hn(Z))return;const{orientation:ie,renderedItems:U,activeId:I}=l.getState(),ne=Ia(l,I);if((ae=ne==null?void 0:ne.element)!=null&&ae.isConnected)return;const K=ie!=="horizontal",M=ie!=="vertical",F=WT(U);if((Z.key==="ArrowLeft"||Z.key==="ArrowRight"||Z.key==="Home"||Z.key==="End")&&ya(Z.currentTarget))return;const ye={ArrowUp:(F||K)&&(()=>{if(F){const Te=nR(U);return Te==null?void 0:Te.id}return l==null?void 0:l.last()}),ArrowRight:(F||M)&&l.first,ArrowDown:(F||K)&&l.first,ArrowLeft:(F||M)&&l.last,Home:l.first,End:l.last,PageUp:l.first,PageDown:l.last}[Z.key];if(ye){const Te=ye();if(Te!==void 0){if(!z(Z))return;Z.preventDefault(),l.move(Te)}}});d=gn(d,Z=>D.jsx(af,{value:l,children:Z}),[l]);const te=l.useState(Z=>{var ae;if(l&&o&&Z.virtualFocus)return(ae=Ia(l,Z.activeId))==null?void 0:ae.id});d=Ce(oe({"aria-activedescendant":te},d),{ref:Ht(v,y,d.ref),onKeyDownCapture:R,onKeyUpCapture:T,onFocusCapture:N,onFocus:C,onBlurCapture:B,onKeyDown:X});const fe=l.useState(Z=>o&&(Z.virtualFocus||Z.activeId===null));return d=$o(oe({focusable:fe},d)),d});Xe(function(r){const a=HS(r);return Ie(JT,a)});var aR="button";function ub(t){if(!t.isTrusted)return!1;const r=t.currentTarget;return t.key==="Enter"?fi(r)||r.tagName==="SUMMARY"||r.tagName==="A":t.key===" "?fi(r)||r.tagName==="SUMMARY"||r.tagName==="INPUT"||r.tagName==="SELECT":!1}var iR=Symbol("command"),yv=tt(function(r){var a=r,{clickOnEnter:l=!0,clickOnSpace:o=!0}=a,s=Ge(a,["clickOnEnter","clickOnSpace"]);const f=E.useRef(null),[d,m]=E.useState(!1);E.useEffect(()=>{f.current&&m(fi(f.current))},[]);const[v,g]=E.useState(!1),S=E.useRef(!1),p=No(s),[y,w]=SS(s,iR,!0),x=s.onKeyDown,R=Ye(N=>{x==null||x(N);const j=N.currentTarget;if(N.defaultPrevented||y||p||!Hn(N)||ya(j)||j.isContentEditable)return;const C=l&&N.key==="Enter",q=o&&N.key===" ",B=N.key==="Enter"&&!l,V=N.key===" "&&!o;if(B||V){N.preventDefault();return}if(C||q){const z=ub(N);if(C){if(!z){N.preventDefault();const X=N,te=Ge(X,["view"]),fe=()=>Gy(j,te);zO()?So(j,"keyup",fe):queueMicrotask(fe)}}else q&&(S.current=!0,z||(N.preventDefault(),g(!0)))}}),T=s.onKeyUp,A=Ye(N=>{if(T==null||T(N),N.defaultPrevented||y||p||N.metaKey)return;const j=o&&N.key===" ";if(S.current&&j&&(S.current=!1,!ub(N))){N.preventDefault(),g(!1);const C=N.currentTarget,q=N,B=Ge(q,["view"]);queueMicrotask(()=>Gy(C,B))}});return s=Ce(oe(oe({"data-active":v||void 0,type:d?"button":void 0},w),s),{ref:Ht(f,s.ref),onKeyDown:R,onKeyUp:A}),s=$o(s),s});Xe(function(r){const a=yv(r);return Ie(aR,a)});var US="button",bv=tt(function(r){const a=E.useRef(null),l=rv(a,US),[o,s]=E.useState(()=>!!l&&fi({tagName:l,type:r.type}));return E.useEffect(()=>{a.current&&s(fi(a.current))},[]),r=Ce(oe({role:!o&&l!=="a"?"button":void 0},r),{ref:Ht(a,r.ref)}),r=yv(r),r});Xe(function(r){const a=bv(r);return Ie(US,a)});var lR="button",uR=Symbol("disclosure"),$S=tt(function(r){var a=r,{store:l,toggleOnClick:o=!0}=a,s=Ge(a,["store","toggleOnClick"]);const f=mv();l=l||f,Wt(l,!1);const d=E.useRef(null),[m,v]=E.useState(!1),g=l.useState("disclosureElement"),S=l.useState("open");E.useEffect(()=>{let A=g===d.current;g!=null&&g.isConnected||(l==null||l.setDisclosureElement(d.current),A=!0),v(S&&A)},[g,l,S]);const p=s.onClick,y=Un(o),[w,x]=SS(s,uR,!0),R=Ye(A=>{p==null||p(A),!A.defaultPrevented&&(w||y(A)&&(l==null||l.setDisclosureElement(A.currentTarget),l==null||l.toggle()))}),T=l.useState("contentElement");return s=Ce(oe(oe({"aria-expanded":m,"aria-controls":T==null?void 0:T.id},x),s),{ref:Ht(d,s.ref),onClick:R}),s=bv(s),s});Xe(function(r){const a=$S(r);return Ie(lR,a)});var oR="button",BS=tt(function(r){var a=r,{store:l}=a,o=Ge(a,["store"]);const s=uf();l=l||s,Wt(l,!1);const f=l.useState("contentElement");return o=oe({"aria-haspopup":Wm(f,"dialog")},o),o=$S(oe({store:l},o)),o});Xe(function(r){const a=BS(r);return Ie(oR,a)});var sR="div";function PS(t){const r=t.relatedTarget;return(r==null?void 0:r.nodeType)===Node.ELEMENT_NODE?r:null}function cR(t){const r=PS(t);return r?Lt(t.currentTarget,r):!1}var pm=Symbol("composite-hover");function fR(t){let r=PS(t);if(!r)return!1;do{if(ha(r,pm)&&r[pm])return!0;r=r.parentElement}while(r);return!1}var qS=tt(function(r){var a=r,{store:l,focusOnHover:o=!0,blurOnHoverEnd:s=!!o}=a,f=Ge(a,["store","focusOnHover","blurOnHoverEnd"]);const d=rf();l=l||d,Wt(l,!1);const m=iv(),v=f.onMouseMove,g=Un(o),S=Ye(R=>{if(v==null||v(R),!R.defaultPrevented&&m()&&g(R)){if(!oi(R.currentTarget)){const T=l==null?void 0:l.getState().baseElement;T&&!Uc(T)&&T.focus()}l==null||l.setActiveId(R.currentTarget.id)}}),p=f.onMouseLeave,y=Un(s),w=Ye(R=>{var T;p==null||p(R),!R.defaultPrevented&&m()&&(cR(R)||fR(R)||g(R)&&y(R)&&(l==null||l.setActiveId(null),(T=l==null?void 0:l.getState().baseElement)==null||T.focus()))}),x=E.useCallback(R=>{R&&(R[pm]=!0)},[]);return f=Ce(oe({},f),{ref:Ht(x,f.ref),onMouseMove:S,onMouseLeave:w}),iu(f)});uv(Xe(function(r){const a=qS(r);return Ie(sR,a)}));var dR="div",kS=tt(function(r){var a=r,{store:l,shouldRegisterItem:o=!0,getItem:s=fS,element:f}=a,d=Ge(a,["store","shouldRegisterItem","getItem","element"]);const m=VO();l=l||m;const v=Ji(d.id),g=E.useRef(f);return E.useEffect(()=>{const S=g.current;if(!v||!S||!o)return;const p=s({id:v,element:S});return l==null?void 0:l.renderItem(p)},[v,o,s,l]),d=Ce(oe({},d),{ref:Ht(g,d.ref)}),iu(d)});Xe(function(r){const a=kS(r);return Ie(dR,a)});var hR="button";function mR(t){return dm(t)?!0:t.tagName==="INPUT"&&!fi(t)}function vR(t,r=!1){const a=t.clientHeight,{top:l}=t.getBoundingClientRect(),o=Math.max(a*.875,a-40)*1.5,s=r?a-o+l:o+l;return t.tagName==="HTML"?s+t.scrollTop:s}function pR(t,r=!1){const{top:a}=t.getBoundingClientRect();return r?a+t.clientHeight:a}function ob(t,r,a,l=!1){var o;if(!r||!a)return;const{renderedItems:s}=r.getState(),f=pS(t);if(!f)return;const d=vR(f,l);let m,v;for(let g=0;g<s.length;g+=1){const S=m;if(m=a(g),!m)break;if(m===S)continue;const p=(o=Ia(r,m))==null?void 0:o.element;if(!p)continue;const w=pR(p,l)-d,x=Math.abs(w);if(l&&w<=0||!l&&w>=0){v!==void 0&&v<x&&(m=S);break}v=x}return m}function gR(t,r){return Hn(t)?!1:xo(r,t.target)}var FS=tt(function(r){var a=r,{store:l,rowId:o,preventScrollOnKeyDown:s=!1,moveOnKeyPress:f=!0,tabbable:d=!1,getItem:m,"aria-setsize":v,"aria-posinset":g}=a,S=Ge(a,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const p=rf();l=l||p;const y=Ji(S.id),w=E.useRef(null),x=E.useContext(XO),T=No(S)&&!S.accessibleWhenDisabled,{rowId:A,baseElement:N,isActiveItem:j,ariaSetSize:C,ariaPosInSet:q,isTabbable:B}=tT(l,{rowId(K){if(o)return o;if(K&&x!=null&&x.baseElement&&x.baseElement===K.baseElement)return x.id},baseElement(K){return(K==null?void 0:K.baseElement)||void 0},isActiveItem(K){return!!K&&K.activeId===y},ariaSetSize(K){if(v!=null)return v;if(K&&x!=null&&x.ariaSetSize&&x.baseElement===K.baseElement)return x.ariaSetSize},ariaPosInSet(K){if(g!=null)return g;if(!K||!(x!=null&&x.ariaPosInSet)||x.baseElement!==K.baseElement)return;const M=K.renderedItems.filter(F=>F.rowId===A);return x.ariaPosInSet+M.findIndex(F=>F.id===y)},isTabbable(K){if(!(K!=null&&K.renderedItems.length))return!0;if(K.virtualFocus)return!1;if(d)return!0;if(K.activeId===null)return!1;const M=l==null?void 0:l.item(K.activeId);return M!=null&&M.disabled||!(M!=null&&M.element)?!0:K.activeId===y}}),V=E.useCallback(K=>{var M;const F=Ce(oe({},K),{id:y||K.id,rowId:A,disabled:!!T,children:(M=K.element)==null?void 0:M.textContent});return m?m(F):F},[y,A,T,m]),z=S.onFocus,X=E.useRef(!1),te=Ye(K=>{if(z==null||z(K),K.defaultPrevented||yS(K)||!y||!l||gR(K,l))return;const{virtualFocus:M,baseElement:F}=l.getState();if(l.setActiveId(y),dm(K.currentTarget)&&MT(K.currentTarget),!M||!Hn(K)||mR(K.currentTarget)||!(F!=null&&F.isConnected))return;tv()&&K.currentTarget.hasAttribute("data-autofocus")&&K.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),X.current=!0,K.relatedTarget===F||xo(l,K.relatedTarget)?jT(F):F.focus()}),fe=S.onBlurCapture,Z=Ye(K=>{if(fe==null||fe(K),K.defaultPrevented)return;const M=l==null?void 0:l.getState();M!=null&&M.virtualFocus&&X.current&&(X.current=!1,K.preventDefault(),K.stopPropagation())}),ae=S.onKeyDown,ie=Un(s),U=Un(f),I=Ye(K=>{if(ae==null||ae(K),K.defaultPrevented||!Hn(K)||!l)return;const{currentTarget:M}=K,F=l.getState(),se=l.item(y),de=!!(se!=null&&se.rowId),ce=F.orientation!=="horizontal",ye=F.orientation!=="vertical",Te=()=>!!(de||ye||!F.baseElement||!ya(F.baseElement)),_e={ArrowUp:(de||ce)&&l.up,ArrowRight:(de||ye)&&l.next,ArrowDown:(de||ce)&&l.down,ArrowLeft:(de||ye)&&l.previous,Home:()=>{if(Te())return!de||K.ctrlKey?l==null?void 0:l.first():l==null?void 0:l.previous(-1)},End:()=>{if(Te())return!de||K.ctrlKey?l==null?void 0:l.last():l==null?void 0:l.next(-1)},PageUp:()=>ob(M,l,l==null?void 0:l.up,!0),PageDown:()=>ob(M,l,l==null?void 0:l.down)}[K.key];if(_e){if(dm(M)){const Ne=jO(M),Mt=ye&&K.key==="ArrowLeft",bn=ye&&K.key==="ArrowRight",dt=ce&&K.key==="ArrowUp",ln=ce&&K.key==="ArrowDown";if(bn||ln){const{length:On}=MO(M);if(Ne.end!==On)return}else if((Mt||dt)&&Ne.start!==0)return}const je=_e();if(ie(K)||je!==void 0){if(!U(K))return;K.preventDefault(),l.move(je)}}}),ne=E.useMemo(()=>({id:y,baseElement:N}),[y,N]);return S=gn(S,K=>D.jsx(GO.Provider,{value:ne,children:K}),[ne]),S=Ce(oe({id:y,"data-active-item":j||void 0},S),{ref:Ht(w,S.ref),tabIndex:B?S.tabIndex:-1,onFocus:te,onBlurCapture:Z,onKeyDown:I}),S=yv(S),S=kS(Ce(oe({store:l},S),{getItem:V,shouldRegisterItem:y?S.shouldRegisterItem:!1})),iu(Ce(oe({},S),{"aria-setsize":C,"aria-posinset":q}))});uv(Xe(function(r){const a=FS(r);return Ie(hR,a)}));var Vh={exports:{}},rn={};/**
31
- * @license React
32
- * react-dom.production.js
33
- *
34
- * Copyright (c) Meta Platforms, Inc. and affiliates.
35
- *
36
- * This source code is licensed under the MIT license found in the
37
- * LICENSE file in the root directory of this source tree.
38
- */var sb;function yR(){if(sb)return rn;sb=1;var t=Zc();function r(m){var v="https://react.dev/errors/"+m;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)v+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(m,v,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:m,containerInfo:v,implementation:g}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,v){if(m==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,rn.createPortal=function(m,v){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(r(299));return s(m,v,null,g)},rn.flushSync=function(m){var v=f.T,g=l.p;try{if(f.T=null,l.p=2,m)return m()}finally{f.T=v,l.p=g,l.d.f()}},rn.preconnect=function(m,v){typeof m=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,l.d.C(m,v))},rn.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},rn.preinit=function(m,v){if(typeof m=="string"&&v&&typeof v.as=="string"){var g=v.as,S=d(g,v.crossOrigin),p=typeof v.integrity=="string"?v.integrity:void 0,y=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;g==="style"?l.d.S(m,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:S,integrity:p,fetchPriority:y}):g==="script"&&l.d.X(m,{crossOrigin:S,integrity:p,fetchPriority:y,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},rn.preinitModule=function(m,v){if(typeof m=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var g=d(v.as,v.crossOrigin);l.d.M(m,{crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&l.d.M(m)},rn.preload=function(m,v){if(typeof m=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var g=v.as,S=d(g,v.crossOrigin);l.d.L(m,g,{crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},rn.preloadModule=function(m,v){if(typeof m=="string")if(v){var g=d(v.as,v.crossOrigin);l.d.m(m,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else l.d.m(m)},rn.requestFormReset=function(m){l.d.r(m)},rn.unstable_batchedUpdates=function(m,v){return m(v)},rn.useFormState=function(m,v,g){return f.H.useFormState(m,v,g)},rn.useFormStatus=function(){return f.H.useHostTransitionStatus()},rn.version="19.0.0-rc-7670501b-20241124",rn}var cb;function VS(){if(cb)return Vh.exports;cb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Vh.exports=yR(),Vh.exports}var $c=VS(),bR="div";function fb(t,r){const a=setTimeout(r,t);return()=>clearTimeout(a)}function SR(t){let r=requestAnimationFrame(()=>{r=requestAnimationFrame(t)});return()=>cancelAnimationFrame(r)}function db(...t){return t.join(", ").split(", ").reduce((r,a)=>{const l=a.endsWith("ms")?1:1e3,o=Number.parseFloat(a||"0s")*l;return o>r?o:r},0)}function Sv(t,r,a){return!a&&r!==!1&&(!t||!!r)}var xv=tt(function(r){var a=r,{store:l,alwaysVisible:o}=a,s=Ge(a,["store","alwaysVisible"]);const f=mv();l=l||f,Wt(l,!1);const d=E.useRef(null),m=Ji(s.id),[v,g]=E.useState(null),S=l.useState("open"),p=l.useState("mounted"),y=l.useState("animated"),w=l.useState("contentElement"),x=Pt(l.disclosure,"contentElement");ft(()=>{d.current&&(l==null||l.setContentElement(d.current))},[l]),ft(()=>{let N;return l==null||l.setState("animated",j=>(N=j,!0)),()=>{N!==void 0&&(l==null||l.setState("animated",N))}},[l]),ft(()=>{if(y){if(!(w!=null&&w.isConnected)){g(null);return}return SR(()=>{g(S?"enter":p?"leave":null)})}},[y,w,S,p]),ft(()=>{if(!l||!y||!v||!w)return;const N=()=>l==null?void 0:l.setState("animating",!1),j=()=>$c.flushSync(N);if(v==="leave"&&S||v==="enter"&&!S)return;if(typeof y=="number")return fb(y,j);const{transitionDuration:C,animationDuration:q,transitionDelay:B,animationDelay:V}=getComputedStyle(w),{transitionDuration:z="0",animationDuration:X="0",transitionDelay:te="0",animationDelay:fe="0"}=x?getComputedStyle(x):{},Z=db(B,V,te,fe),ae=db(C,q,z,X),ie=Z+ae;if(!ie){v==="enter"&&l.setState("animated",!1),N();return}const U=1e3/60,I=Math.max(ie-U,0);return fb(I,j)},[l,y,w,x,S,v]),s=gn(s,N=>D.jsx(vv,{value:l,children:N}),[l]);const R=Sv(p,s.hidden,o),T=s.style,A=E.useMemo(()=>R?Ce(oe({},T),{display:"none"}):T,[R,T]);return s=Ce(oe({id:m,"data-open":S||void 0,"data-enter":v==="enter"||void 0,"data-leave":v==="leave"||void 0,hidden:R},s),{ref:Ht(m?l.setContentElement:null,d,s.ref),style:A}),iu(s)}),xR=Xe(function(r){const a=xv(r);return Ie(bR,a)});Xe(function(r){var a=r,{unmountOnHide:l}=a,o=Ge(a,["unmountOnHide"]);const s=mv(),f=o.store||s;return Pt(f,m=>!l||(m==null?void 0:m.mounted))===!1?null:D.jsx(xR,oe({},o))});function YS(t,...r){if(!t)return!1;const a=t.getAttribute("data-backdrop");return a==null?!1:a===""||a==="true"||!r.length?!0:r.some(l=>a===l)}var Yh=new WeakMap;function Bo(t,r,a){Yh.has(t)||Yh.set(t,new Map);const l=Yh.get(t),o=l.get(r);if(!o)return l.set(r,a()),()=>{var d;(d=l.get(r))==null||d(),l.delete(r)};const s=a(),f=()=>{s(),o(),l.delete(r)};return l.set(r,f),()=>{l.get(r)===f&&(s(),l.set(r,o))}}function Ev(t,r,a){return Bo(t,r,()=>{const o=t.getAttribute(r);return t.setAttribute(r,a),()=>{o==null?t.removeAttribute(r):t.setAttribute(r,o)}})}function Gi(t,r,a){return Bo(t,r,()=>{const o=r in t,s=t[r];return t[r]=a,()=>{o?t[r]=s:delete t[r]}})}function gm(t,r){return t?Bo(t,"style",()=>{const l=t.style.cssText;return Object.assign(t.style,r),()=>{t.style.cssText=l}}):()=>{}}function ER(t,r,a){return t?Bo(t,r,()=>{const o=t.style.getPropertyValue(r);return t.style.setProperty(r,a),()=>{o?t.style.setProperty(r,o):t.style.removeProperty(r)}}):()=>{}}var wR=["SCRIPT","STYLE"];function ym(t){return`__ariakit-dialog-snapshot-${t}`}function CR(t,r){const a=gt(r),l=ym(t);if(!a.body[l])return!0;do{if(r===a.body)return!1;if(r[l])return!0;if(!r.parentElement)return!1;r=r.parentElement}while(!0)}function OR(t,r,a){return wR.includes(r.tagName)||!CR(t,r)?!1:!a.some(l=>l&&Lt(r,l))}function wv(t,r,a,l){for(let o of r){if(!(o!=null&&o.isConnected))continue;const s=r.some(m=>!m||m===o?!1:m.contains(o)),f=gt(o),d=o;for(;o.parentElement&&o!==f.body;){if(l==null||l(o.parentElement,d),!s)for(const m of o.parentElement.children)OR(t,m,r)&&a(m,d);o=o.parentElement}}}function TR(t,r){const{body:a}=gt(r[0]),l=[];return wv(t,r,s=>{l.push(Gi(s,ym(t),!0))}),Bn(Gi(a,ym(t),!0),()=>{for(const s of l)s()})}function nu(t="",r=!1){return`__ariakit-dialog-${r?"ancestor":"outside"}${t?`-${t}`:""}`}function RR(t,r=""){return Bn(Gi(t,nu(),!0),Gi(t,nu(r),!0))}function QS(t,r=""){return Bn(Gi(t,nu("",!0),!0),Gi(t,nu(r,!0),!0))}function Cv(t,r){const a=nu(r,!0);if(t[a])return!0;const l=nu(r);do{if(t[l])return!0;if(!t.parentElement)return!1;t=t.parentElement}while(!0)}function hb(t,r){const a=[],l=r.map(s=>s==null?void 0:s.id);return wv(t,r,s=>{YS(s,...l)||a.unshift(RR(s,t))},(s,f)=>{f.hasAttribute("data-dialog")&&f.id!==t||a.unshift(QS(s,t))}),()=>{for(const s of a)s()}}var DR="div",AR=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];tt(function(r){return r});var Bc=Xe(function(r){return Ie(DR,r)});Object.assign(Bc,AR.reduce((t,r)=>(t[r]=Xe(function(l){return Ie(r,l)}),t),{}));function MR({store:t,backdrop:r,alwaysVisible:a,hidden:l}){const o=E.useRef(null),s=mT({disclosure:t}),f=Pt(t,"contentElement");E.useEffect(()=>{const v=o.current,g=f;v&&g&&(v.style.zIndex=getComputedStyle(g).zIndex)},[f]),ft(()=>{const v=f==null?void 0:f.id;if(!v)return;const g=o.current;if(g)return QS(g,v)},[f]);const d=xv({ref:o,store:s,role:"presentation","data-backdrop":(f==null?void 0:f.id)||"",alwaysVisible:a,hidden:l??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!r)return null;if(E.isValidElement(r))return D.jsx(Bc,Ce(oe({},d),{render:r}));const m=typeof r!="boolean"?r:"div";return D.jsx(Bc,Ce(oe({},d),{render:D.jsx(m,{})}))}function jR(t,...r){if(!t)return!1;const a=t.getAttribute("data-focus-trap");return a==null?!1:r.length?a===""?!1:r.some(l=>a===l):!0}function _R(t){return Ev(t,"aria-hidden","true")}function KS(){return"inert"in HTMLElement.prototype}function GS(t,r){if(!("style"in t))return Ec;if(KS())return Gi(t,"inert",!0);const l=ff(t,!0).map(o=>{if(r!=null&&r.some(f=>f&&Lt(f,o)))return Ec;const s=Bo(o,"focus",()=>(o.focus=Ec,()=>{delete o.focus}));return Bn(Ev(o,"tabindex","-1"),s)});return Bn(...l,_R(t),gm(t,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function NR(t,r){const a=[],l=r.map(s=>s==null?void 0:s.id);return wv(t,r,s=>{YS(s,...l)||jR(s,...l)||a.unshift(GS(s,r))},s=>{s.hasAttribute("role")&&(r.some(f=>f&&Lt(f,s))||a.unshift(Ev(s,"role","none")))}),()=>{for(const s of a)s()}}function zR({attribute:t,contentId:r,contentElement:a,enabled:l}){const[o,s]=qO(),f=E.useCallback(()=>{if(!l||!a)return!1;const{body:d}=gt(a),m=d.getAttribute(t);return!m||m===r},[o,l,a,t,r]);return E.useEffect(()=>{if(!l||!r||!a)return;const{body:d}=gt(a);if(f())return d.setAttribute(t,r),()=>d.removeAttribute(t);const m=new MutationObserver(()=>$c.flushSync(s));return m.observe(d,{attributeFilter:[t]}),()=>m.disconnect()},[o,l,r,a,f,t]),f}function LR(t){const r=t.getBoundingClientRect().left;return Math.round(r)+t.scrollLeft?"paddingLeft":"paddingRight"}function HR(t,r,a){const l=zR({attribute:"data-dialog-prevent-body-scroll",contentElement:t,contentId:r,enabled:a});E.useEffect(()=>{if(!l()||!t)return;const o=gt(t),s=hS(t),{documentElement:f,body:d}=o,m=f.style.getPropertyValue("--scrollbar-width"),v=m?Number.parseInt(m):s.innerWidth-f.clientWidth,g=()=>ER(f,"--scrollbar-width",`${v}px`),S=LR(f),p=()=>gm(d,{overflow:"hidden",[S]:`${v}px`}),y=()=>{var x,R;const{scrollX:T,scrollY:A,visualViewport:N}=s,j=(x=N==null?void 0:N.offsetLeft)!=null?x:0,C=(R=N==null?void 0:N.offsetTop)!=null?R:0,q=gm(d,{position:"fixed",overflow:"hidden",top:`${-(A-Math.floor(C))}px`,left:`${-(T-Math.floor(j))}px`,right:"0",[S]:`${v}px`});return()=>{q(),s.scrollTo({left:T,top:A,behavior:"instant"})}},w=ev()&&!LO();return Bn(g(),w?y():p())},[l,t])}var mb=E.createContext({});function UR(t){const r=E.useContext(mb),[a,l]=E.useState([]),o=E.useCallback(d=>{var m;return l(v=>[...v,d]),Bn((m=r.add)==null?void 0:m.call(r,d),()=>{l(v=>v.filter(g=>g!==d))})},[r]);ft(()=>ma(t,["open","contentElement"],d=>{var m;if(d.open&&d.contentElement)return(m=r.add)==null?void 0:m.call(r,t)}),[t,r]);const s=E.useMemo(()=>({store:t,add:o}),[t,o]);return{wrapElement:E.useCallback(d=>D.jsx(mb.Provider,{value:s,children:d}),[s]),nestedDialogs:a}}function $R(t){const r=E.useRef();return E.useEffect(()=>{if(!t){r.current=null;return}return Zt("mousedown",l=>{r.current=l.target},!0)},[t]),r}function BR(t){return t.tagName==="HTML"?!0:Lt(gt(t).body,t)}function PR(t,r){if(!t)return!1;if(Lt(t,r))return!0;const a=r.getAttribute("aria-activedescendant");if(a){const l=gt(t).getElementById(a);if(l)return Lt(t,l)}return!1}function qR(t,r){if(!("clientY"in t))return!1;const a=r.getBoundingClientRect();return a.width===0||a.height===0?!1:a.top<=t.clientY&&t.clientY<=a.top+a.height&&a.left<=t.clientX&&t.clientX<=a.left+a.width}function Qh({store:t,type:r,listener:a,capture:l,domReady:o}){const s=Ye(a),f=Pt(t,"open"),d=E.useRef(!1);ft(()=>{if(!f||!o)return;const{contentElement:m}=t.getState();if(!m)return;const v=()=>{d.current=!0};return m.addEventListener("focusin",v,!0),()=>m.removeEventListener("focusin",v,!0)},[t,f,o]),E.useEffect(()=>f?Zt(r,v=>{const{contentElement:g,disclosureElement:S}=t.getState(),p=v.target;!g||!p||!BR(p)||Lt(g,p)||PR(S,p)||p.hasAttribute("data-focus-trap")||qR(v,g)||d.current&&!Cv(p,g.id)||VT(p)||s(v)},l):void 0,[f,l])}function Kh(t,r){return typeof t=="function"?t(r):!!t}function kR(t,r,a){const l=Pt(t,"open"),o=$R(l),s={store:t,domReady:a,capture:!0};Qh(Ce(oe({},s),{type:"click",listener:f=>{const{contentElement:d}=t.getState(),m=o.current;m&&mS(m)&&Cv(m,d==null?void 0:d.id)&&Kh(r,f)&&t.hide()}})),Qh(Ce(oe({},s),{type:"focusin",listener:f=>{const{contentElement:d}=t.getState();d&&f.target!==gt(d)&&Kh(r,f)&&t.hide()}})),Qh(Ce(oe({},s),{type:"contextmenu",listener:f=>{Kh(r,f)&&t.hide()}}))}function FR(t,r){const l=gt(t).createElement("button");return l.type="button",l.tabIndex=-1,l.textContent="Dismiss popup",Object.assign(l.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),l.addEventListener("click",r),t.prepend(l),()=>{l.removeEventListener("click",r),l.remove()}}var VR="div",XS=tt(function(r){var a=r,{autoFocusOnShow:l=!0}=a,o=Ge(a,["autoFocusOnShow"]);return o=gn(o,s=>D.jsx(NS.Provider,{value:l,children:s}),[l]),o});Xe(function(r){const a=XS(r);return Ie(VR,a)});var bm=E.createContext(0);function YR({level:t,children:r}){const a=E.useContext(bm),l=Math.max(Math.min(t||a+1,6),1);return D.jsx(bm.Provider,{value:l,children:r})}var QR="span",ZS=tt(function(r){return r=Ce(oe({},r),{style:oe({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},r.style)}),r});Xe(function(r){const a=ZS(r);return Ie(QR,a)});var KR="span",GR=tt(function(r){return r=Ce(oe({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},r),{style:oe({position:"fixed",top:0,left:0},r.style)}),r=ZS(r),r}),hc=Xe(function(r){const a=GR(r);return Ie(KR,a)}),vb=E.createContext(null),XR="div";function ZR(t){return gt(t).body}function IR(t,r){return r?typeof r=="function"?r(t):r:gt(t).createElement("div")}function JR(t="id"){return`${t?`${t}-`:""}${Math.random().toString(36).slice(2,8)}`}function Ka(t){queueMicrotask(()=>{t==null||t.focus()})}var IS=tt(function(r){var a=r,{preserveTabOrder:l,preserveTabOrderAnchor:o,portalElement:s,portalRef:f,portal:d=!0}=a,m=Ge(a,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const v=E.useRef(null),g=Ht(v,m.ref),S=E.useContext(vb),[p,y]=E.useState(null),[w,x]=E.useState(null),R=E.useRef(null),T=E.useRef(null),A=E.useRef(null),N=E.useRef(null);return ft(()=>{const j=v.current;if(!j||!d){y(null);return}const C=IR(j,s);if(!C){y(null);return}const q=C.isConnected;if(q||(S||ZR(j)).appendChild(C),C.id||(C.id=j.id?`portal/${j.id}`:JR()),y(C),fm(f,C),!q)return()=>{C.remove(),fm(f,null)}},[d,s,S,f]),ft(()=>{if(!d||!l||!o)return;const C=gt(o).createElement("span");return C.style.position="fixed",o.insertAdjacentElement("afterend",C),x(C),()=>{C.remove(),x(null)}},[d,l,o]),E.useEffect(()=>{if(!p||!l)return;let j=0;const C=q=>{if(!$l(q))return;const B=q.type==="focusin";if(cancelAnimationFrame(j),B)return PT(p);j=requestAnimationFrame(()=>{BT(p,!0)})};return p.addEventListener("focusin",C,!0),p.addEventListener("focusout",C,!0),()=>{cancelAnimationFrame(j),p.removeEventListener("focusin",C,!0),p.removeEventListener("focusout",C,!0)}},[p,l]),m=gn(m,j=>{if(j=D.jsx(vb.Provider,{value:p||S,children:j}),!d)return j;if(!p)return D.jsx("span",{ref:g,id:m.id,style:{position:"fixed"},hidden:!0});j=D.jsxs(D.Fragment,{children:[l&&p&&D.jsx(hc,{ref:T,"data-focus-trap":m.id,className:"__focus-trap-inner-before",onFocus:q=>{$l(q,p)?Ka(kh()):Ka(R.current)}}),j,l&&p&&D.jsx(hc,{ref:A,"data-focus-trap":m.id,className:"__focus-trap-inner-after",onFocus:q=>{$l(q,p)?Ka(nb()):Ka(N.current)}})]}),p&&(j=$c.createPortal(j,p));let C=D.jsxs(D.Fragment,{children:[l&&p&&D.jsx(hc,{ref:R,"data-focus-trap":m.id,className:"__focus-trap-outer-before",onFocus:q=>{!(q.relatedTarget===N.current)&&$l(q,p)?Ka(T.current):Ka(nb())}}),l&&D.jsx("span",{"aria-owns":p==null?void 0:p.id,style:{position:"fixed"}}),l&&p&&D.jsx(hc,{ref:N,"data-focus-trap":m.id,className:"__focus-trap-outer-after",onFocus:q=>{if($l(q,p))Ka(A.current);else{const B=kh();if(B===T.current){requestAnimationFrame(()=>{var V;return(V=kh())==null?void 0:V.focus()});return}Ka(B)}}})]});return w&&l&&(C=$c.createPortal(C,w)),D.jsxs(D.Fragment,{children:[C,j]})},[p,S,d,m.id,l,w]),m=Ce(oe({},m),{ref:g}),m});Xe(function(r){const a=IS(r);return Ie(XR,a)});var WR="div",pb=tv();function eD(t){const r=ga();return!r||t&&Lt(t,r)?!1:!!pr(r)}function gb(t,r=!1){if(!t)return null;const a="current"in t?t.current:t;return a?r?pr(a)?a:null:a:null}var JS=tt(function(r){var a=r,{store:l,open:o,onClose:s,focusable:f=!0,modal:d=!0,portal:m=!!d,backdrop:v=!!d,hideOnEscape:g=!0,hideOnInteractOutside:S=!0,getPersistentElements:p,preventBodyScroll:y=!!d,autoFocusOnShow:w=!0,autoFocusOnHide:x=!0,initialFocus:R,finalFocus:T,unmountOnHide:A,unstable_treeSnapshotKey:N}=a,j=Ge(a,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const C=uf(),q=E.useRef(null),B=vT({store:l||C,open:o,setOpen(Se){if(Se)return;const Fe=q.current;if(!Fe)return;const xt=new Event("close",{bubbles:!1,cancelable:!0});s&&Fe.addEventListener("close",s,{once:!0}),Fe.dispatchEvent(xt),xt.defaultPrevented&&B.setOpen(!0)}}),{portalRef:V,domReady:z}=av(m,j.portalRef),X=j.preserveTabOrder,te=Pt(B,Se=>X&&!d&&Se.mounted),fe=Ji(j.id),Z=Pt(B,"open"),ae=Pt(B,"mounted"),ie=Pt(B,"contentElement"),U=Sv(ae,j.hidden,j.alwaysVisible);HR(ie,fe,y&&!U),kR(B,S,z);const{wrapElement:I,nestedDialogs:ne}=UR(B);j=gn(j,I,[I]),ft(()=>{if(!Z)return;const Se=q.current,Fe=ga(Se,!0);Fe&&Fe.tagName!=="BODY"&&(Se&&Lt(Se,Fe)||B.setDisclosureElement(Fe))},[B,Z]),pb&&E.useEffect(()=>{if(!ae)return;const{disclosureElement:Se}=B.getState();if(!Se||!fi(Se))return;const Fe=()=>{let xt=!1;const Le=()=>{xt=!0},Rt={capture:!0,once:!0};Se.addEventListener("focusin",Le,Rt),So(Se,"mouseup",()=>{Se.removeEventListener("focusin",Le,!0),!xt&&zS(Se)})};return Se.addEventListener("mousedown",Fe),()=>{Se.removeEventListener("mousedown",Fe)}},[B,ae]),E.useEffect(()=>{if(!ae||!z)return;const Se=q.current;if(!Se)return;const Fe=hS(Se),xt=Fe.visualViewport||Fe,Le=()=>{var Rt,un;const jt=(un=(Rt=Fe.visualViewport)==null?void 0:Rt.height)!=null?un:Fe.innerHeight;Se.style.setProperty("--dialog-viewport-height",`${jt}px`)};return Le(),xt.addEventListener("resize",Le),()=>{xt.removeEventListener("resize",Le)}},[ae,z]),E.useEffect(()=>{if(!d||!ae||!z)return;const Se=q.current;if(!(!Se||Se.querySelector("[data-dialog-dismiss]")))return FR(Se,B.hide)},[B,d,ae,z]),ft(()=>{if(!KS()||Z||!ae||!z)return;const Se=q.current;if(Se)return GS(Se)},[Z,ae,z]);const K=Z&&z;ft(()=>{if(!fe||!K)return;const Se=q.current;return TR(fe,[Se])},[fe,K,N]);const M=Ye(p);ft(()=>{if(!fe||!K)return;const{disclosureElement:Se}=B.getState(),Fe=q.current,xt=M()||[],Le=[Fe,...xt,...ne.map(Rt=>Rt.getState().contentElement)];return d?Bn(hb(fe,Le),NR(fe,Le)):hb(fe,[Se,...Le])},[fe,B,K,M,ne,d,N]);const F=!!w,se=Un(w),[de,ce]=E.useState(!1);E.useEffect(()=>{if(!Z||!F||!z||!(ie!=null&&ie.isConnected))return;const Se=gb(R,!0)||ie.querySelector("[data-autofocus=true],[autofocus]")||zT(ie,!0,m&&te)||ie,Fe=pr(Se);se(Fe?Se:null)&&(ce(!0),queueMicrotask(()=>{Se.focus(),pb&&Se.scrollIntoView({block:"nearest",inline:"nearest"})}))},[Z,F,z,ie,R,m,te,se]);const ye=!!x,Te=Un(x),[mt,_e]=E.useState(!1);E.useEffect(()=>{if(Z)return _e(!0),()=>_e(!1)},[Z]);const je=E.useCallback((Se,Fe=!0)=>{const{disclosureElement:xt}=B.getState();if(eD(Se))return;let Le=gb(T)||xt;if(Le!=null&&Le.id){const un=gt(Le),jt=`[aria-activedescendant="${Le.id}"]`,on=un.querySelector(jt);on&&(Le=on)}if(Le&&!pr(Le)){const un=Le.closest("[data-dialog]");if(un!=null&&un.id){const jt=gt(un),on=`[aria-controls~="${un.id}"]`,sn=jt.querySelector(on);sn&&(Le=sn)}}const Rt=Le&&pr(Le);if(!Rt&&Fe){requestAnimationFrame(()=>je(Se,!1));return}Te(Rt?Le:null)&&Rt&&(Le==null||Le.focus())},[B,T,Te]),Ne=E.useRef(!1);ft(()=>{if(Z||!mt||!ye)return;const Se=q.current;Ne.current=!0,je(Se)},[Z,mt,z,ye,je]),E.useEffect(()=>{if(!mt||!ye)return;const Se=q.current;return()=>{if(Ne.current){Ne.current=!1;return}je(Se)}},[mt,ye,je]);const Mt=Un(g);E.useEffect(()=>!z||!ae?void 0:Zt("keydown",Fe=>{if(Fe.key!=="Escape"||Fe.defaultPrevented)return;const xt=q.current;if(!xt||Cv(xt))return;const Le=Fe.target;if(!Le)return;const{disclosureElement:Rt}=B.getState();!!(Le.tagName==="BODY"||Lt(xt,Le)||!Rt||Lt(Rt,Le))&&Mt(Fe)&&B.hide()},!0),[B,z,ae,Mt]),j=gn(j,Se=>D.jsx(YR,{level:d?1:void 0,children:Se}),[d]);const bn=j.hidden,dt=j.alwaysVisible;j=gn(j,Se=>v?D.jsxs(D.Fragment,{children:[D.jsx(MR,{store:B,backdrop:v,hidden:bn,alwaysVisible:dt}),Se]}):Se,[B,v,bn,dt]);const[ln,On]=E.useState(),[en,Pn]=E.useState();return j=gn(j,Se=>D.jsx(vv,{value:B,children:D.jsx(MS.Provider,{value:On,children:D.jsx(ET.Provider,{value:Pn,children:Se})})}),[B]),j=Ce(oe({id:fe,"data-dialog":"",role:"dialog",tabIndex:f?-1:void 0,"aria-labelledby":ln,"aria-describedby":en},j),{ref:Ht(q,j.ref)}),j=XS(Ce(oe({},j),{autoFocusOnShow:de})),j=xv(oe({store:B},j)),j=$o(Ce(oe({},j),{focusable:f})),j=IS(Ce(oe({portal:m},j),{portalRef:V,preserveTabOrder:te})),j});function df(t,r=uf){return Xe(function(l){const o=r(),s=l.store||o;return Pt(s,d=>!l.unmountOnHide||(d==null?void 0:d.mounted)||!!l.open)?D.jsx(t,oe({},l)):null})}var tD=df(Xe(function(r){const a=JS(r);return Ie(WR,a)}),uf);const di=Math.min,Ln=Math.max,Pc=Math.round,mc=Math.floor,Lr=t=>({x:t,y:t}),nD={left:"right",right:"left",bottom:"top",top:"bottom"},rD={start:"end",end:"start"};function Sm(t,r,a){return Ln(t,di(r,a))}function hi(t,r){return typeof t=="function"?t(r):t}function va(t){return t.split("-")[0]}function uu(t){return t.split("-")[1]}function Ov(t){return t==="x"?"y":"x"}function Tv(t){return t==="y"?"height":"width"}function mi(t){return["top","bottom"].includes(va(t))?"y":"x"}function Rv(t){return Ov(mi(t))}function aD(t,r,a){a===void 0&&(a=!1);const l=uu(t),o=Rv(t),s=Tv(o);let f=o==="x"?l===(a?"end":"start")?"right":"left":l==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(f=qc(f)),[f,qc(f)]}function iD(t){const r=qc(t);return[xm(t),r,xm(r)]}function xm(t){return t.replace(/start|end/g,r=>rD[r])}function lD(t,r,a){const l=["left","right"],o=["right","left"],s=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return a?r?o:l:r?l:o;case"left":case"right":return r?s:f;default:return[]}}function uD(t,r,a,l){const o=uu(t);let s=lD(va(t),a==="start",l);return o&&(s=s.map(f=>f+"-"+o),r&&(s=s.concat(s.map(xm)))),s}function qc(t){return t.replace(/left|right|bottom|top/g,r=>nD[r])}function oD(t){return{top:0,right:0,bottom:0,left:0,...t}}function WS(t){return typeof t!="number"?oD(t):{top:t,right:t,bottom:t,left:t}}function kc(t){const{x:r,y:a,width:l,height:o}=t;return{width:l,height:o,top:a,left:r,right:r+l,bottom:a+o,x:r,y:a}}function yb(t,r,a){let{reference:l,floating:o}=t;const s=mi(r),f=Rv(r),d=Tv(f),m=va(r),v=s==="y",g=l.x+l.width/2-o.width/2,S=l.y+l.height/2-o.height/2,p=l[d]/2-o[d]/2;let y;switch(m){case"top":y={x:g,y:l.y-o.height};break;case"bottom":y={x:g,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:S};break;case"left":y={x:l.x-o.width,y:S};break;default:y={x:l.x,y:l.y}}switch(uu(r)){case"start":y[f]-=p*(a&&v?-1:1);break;case"end":y[f]+=p*(a&&v?-1:1);break}return y}const sD=async(t,r,a)=>{const{placement:l="bottom",strategy:o="absolute",middleware:s=[],platform:f}=a,d=s.filter(Boolean),m=await(f.isRTL==null?void 0:f.isRTL(r));let v=await f.getElementRects({reference:t,floating:r,strategy:o}),{x:g,y:S}=yb(v,l,m),p=l,y={},w=0;for(let x=0;x<d.length;x++){const{name:R,fn:T}=d[x],{x:A,y:N,data:j,reset:C}=await T({x:g,y:S,initialPlacement:l,placement:p,strategy:o,middlewareData:y,rects:v,platform:f,elements:{reference:t,floating:r}});g=A??g,S=N??S,y={...y,[R]:{...y[R],...j}},C&&w<=50&&(w++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(v=C.rects===!0?await f.getElementRects({reference:t,floating:r,strategy:o}):C.rects),{x:g,y:S}=yb(v,p,m)),x=-1)}return{x:g,y:S,placement:p,strategy:o,middlewareData:y}};async function Dv(t,r){var a;r===void 0&&(r={});const{x:l,y:o,platform:s,rects:f,elements:d,strategy:m}=t,{boundary:v="clippingAncestors",rootBoundary:g="viewport",elementContext:S="floating",altBoundary:p=!1,padding:y=0}=hi(r,t),w=WS(y),R=d[p?S==="floating"?"reference":"floating":S],T=kc(await s.getClippingRect({element:(a=await(s.isElement==null?void 0:s.isElement(R)))==null||a?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:v,rootBoundary:g,strategy:m})),A=S==="floating"?{x:l,y:o,width:f.floating.width,height:f.floating.height}:f.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),j=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},C=kc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:A,offsetParent:N,strategy:m}):A);return{top:(T.top-C.top+w.top)/j.y,bottom:(C.bottom-T.bottom+w.bottom)/j.y,left:(T.left-C.left+w.left)/j.x,right:(C.right-T.right+w.right)/j.x}}const cD=t=>({name:"arrow",options:t,async fn(r){const{x:a,y:l,placement:o,rects:s,platform:f,elements:d,middlewareData:m}=r,{element:v,padding:g=0}=hi(t,r)||{};if(v==null)return{};const S=WS(g),p={x:a,y:l},y=Rv(o),w=Tv(y),x=await f.getDimensions(v),R=y==="y",T=R?"top":"left",A=R?"bottom":"right",N=R?"clientHeight":"clientWidth",j=s.reference[w]+s.reference[y]-p[y]-s.floating[w],C=p[y]-s.reference[y],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let B=q?q[N]:0;(!B||!await(f.isElement==null?void 0:f.isElement(q)))&&(B=d.floating[N]||s.floating[w]);const V=j/2-C/2,z=B/2-x[w]/2-1,X=di(S[T],z),te=di(S[A],z),fe=X,Z=B-x[w]-te,ae=B/2-x[w]/2+V,ie=Sm(fe,ae,Z),U=!m.arrow&&uu(o)!=null&&ae!==ie&&s.reference[w]/2-(ae<fe?X:te)-x[w]/2<0,I=U?ae<fe?ae-fe:ae-Z:0;return{[y]:p[y]+I,data:{[y]:ie,centerOffset:ae-ie-I,...U&&{alignmentOffset:I}},reset:U}}}),fD=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var a,l;const{placement:o,middlewareData:s,rects:f,initialPlacement:d,platform:m,elements:v}=r,{mainAxis:g=!0,crossAxis:S=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...R}=hi(t,r);if((a=s.arrow)!=null&&a.alignmentOffset)return{};const T=va(o),A=mi(d),N=va(d)===d,j=await(m.isRTL==null?void 0:m.isRTL(v.floating)),C=p||(N||!x?[qc(d)]:iD(d)),q=w!=="none";!p&&q&&C.push(...uD(d,x,w,j));const B=[d,...C],V=await Dv(r,R),z=[];let X=((l=s.flip)==null?void 0:l.overflows)||[];if(g&&z.push(V[T]),S){const ae=aD(o,f,j);z.push(V[ae[0]],V[ae[1]])}if(X=[...X,{placement:o,overflows:z}],!z.every(ae=>ae<=0)){var te,fe;const ae=(((te=s.flip)==null?void 0:te.index)||0)+1,ie=B[ae];if(ie)return{data:{index:ae,overflows:X},reset:{placement:ie}};let U=(fe=X.filter(I=>I.overflows[0]<=0).sort((I,ne)=>I.overflows[1]-ne.overflows[1])[0])==null?void 0:fe.placement;if(!U)switch(y){case"bestFit":{var Z;const I=(Z=X.filter(ne=>{if(q){const K=mi(ne.placement);return K===A||K==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(K=>K>0).reduce((K,M)=>K+M,0)]).sort((ne,K)=>ne[1]-K[1])[0])==null?void 0:Z[0];I&&(U=I);break}case"initialPlacement":U=d;break}if(o!==U)return{reset:{placement:U}}}return{}}}};async function dD(t,r){const{placement:a,platform:l,elements:o}=t,s=await(l.isRTL==null?void 0:l.isRTL(o.floating)),f=va(a),d=uu(a),m=mi(a)==="y",v=["left","top"].includes(f)?-1:1,g=s&&m?-1:1,S=hi(r,t);let{mainAxis:p,crossAxis:y,alignmentAxis:w}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return d&&typeof w=="number"&&(y=d==="end"?w*-1:w),m?{x:y*g,y:p*v}:{x:p*v,y:y*g}}const hD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){var a,l;const{x:o,y:s,placement:f,middlewareData:d}=r,m=await dD(r,t);return f===((a=d.offset)==null?void 0:a.placement)&&(l=d.arrow)!=null&&l.alignmentOffset?{}:{x:o+m.x,y:s+m.y,data:{...m,placement:f}}}}},mD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:a,y:l,placement:o}=r,{mainAxis:s=!0,crossAxis:f=!1,limiter:d={fn:R=>{let{x:T,y:A}=R;return{x:T,y:A}}},...m}=hi(t,r),v={x:a,y:l},g=await Dv(r,m),S=mi(va(o)),p=Ov(S);let y=v[p],w=v[S];if(s){const R=p==="y"?"top":"left",T=p==="y"?"bottom":"right",A=y+g[R],N=y-g[T];y=Sm(A,y,N)}if(f){const R=S==="y"?"top":"left",T=S==="y"?"bottom":"right",A=w+g[R],N=w-g[T];w=Sm(A,w,N)}const x=d.fn({...r,[p]:y,[S]:w});return{...x,data:{x:x.x-a,y:x.y-l,enabled:{[p]:s,[S]:f}}}}}},vD=function(t){return t===void 0&&(t={}),{options:t,fn(r){const{x:a,y:l,placement:o,rects:s,middlewareData:f}=r,{offset:d=0,mainAxis:m=!0,crossAxis:v=!0}=hi(t,r),g={x:a,y:l},S=mi(o),p=Ov(S);let y=g[p],w=g[S];const x=hi(d,r),R=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(m){const N=p==="y"?"height":"width",j=s.reference[p]-s.floating[N]+R.mainAxis,C=s.reference[p]+s.reference[N]-R.mainAxis;y<j?y=j:y>C&&(y=C)}if(v){var T,A;const N=p==="y"?"width":"height",j=["top","left"].includes(va(o)),C=s.reference[S]-s.floating[N]+(j&&((T=f.offset)==null?void 0:T[S])||0)+(j?0:R.crossAxis),q=s.reference[S]+s.reference[N]+(j?0:((A=f.offset)==null?void 0:A[S])||0)-(j?R.crossAxis:0);w<C?w=C:w>q&&(w=q)}return{[p]:y,[S]:w}}}},pD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){var a,l;const{placement:o,rects:s,platform:f,elements:d}=r,{apply:m=()=>{},...v}=hi(t,r),g=await Dv(r,v),S=va(o),p=uu(o),y=mi(o)==="y",{width:w,height:x}=s.floating;let R,T;S==="top"||S==="bottom"?(R=S,T=p===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(T=S,R=p==="end"?"top":"bottom");const A=x-g.top-g.bottom,N=w-g.left-g.right,j=di(x-g[R],A),C=di(w-g[T],N),q=!r.middlewareData.shift;let B=j,V=C;if((a=r.middlewareData.shift)!=null&&a.enabled.x&&(V=N),(l=r.middlewareData.shift)!=null&&l.enabled.y&&(B=A),q&&!p){const X=Ln(g.left,0),te=Ln(g.right,0),fe=Ln(g.top,0),Z=Ln(g.bottom,0);y?V=w-2*(X!==0||te!==0?X+te:Ln(g.left,g.right)):B=x-2*(fe!==0||Z!==0?fe+Z:Ln(g.top,g.bottom))}await m({...r,availableWidth:V,availableHeight:B});const z=await f.getDimensions(d.floating);return w!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}};function hf(){return typeof window<"u"}function ou(t){return ex(t)?(t.nodeName||"").toLowerCase():"#document"}function $n(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function qr(t){var r;return(r=(ex(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function ex(t){return hf()?t instanceof Node||t instanceof $n(t).Node:!1}function gr(t){return hf()?t instanceof Element||t instanceof $n(t).Element:!1}function Br(t){return hf()?t instanceof HTMLElement||t instanceof $n(t).HTMLElement:!1}function bb(t){return!hf()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $n(t).ShadowRoot}function Po(t){const{overflow:r,overflowX:a,overflowY:l,display:o}=yr(t);return/auto|scroll|overlay|hidden|clip/.test(r+l+a)&&!["inline","contents"].includes(o)}function gD(t){return["table","td","th"].includes(ou(t))}function mf(t){return[":popover-open",":modal"].some(r=>{try{return t.matches(r)}catch{return!1}})}function Av(t){const r=Mv(),a=gr(t)?yr(t):t;return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!r&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!r&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(l=>(a.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(a.contain||"").includes(l))}function yD(t){let r=vi(t);for(;Br(r)&&!ru(r);){if(Av(r))return r;if(mf(r))return null;r=vi(r)}return null}function Mv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ru(t){return["html","body","#document"].includes(ou(t))}function yr(t){return $n(t).getComputedStyle(t)}function vf(t){return gr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function vi(t){if(ou(t)==="html")return t;const r=t.assignedSlot||t.parentNode||bb(t)&&t.host||qr(t);return bb(r)?r.host:r}function tx(t){const r=vi(t);return ru(r)?t.ownerDocument?t.ownerDocument.body:t.body:Br(r)&&Po(r)?r:tx(r)}function Co(t,r,a){var l;r===void 0&&(r=[]),a===void 0&&(a=!0);const o=tx(t),s=o===((l=t.ownerDocument)==null?void 0:l.body),f=$n(o);if(s){const d=Em(f);return r.concat(f,f.visualViewport||[],Po(o)?o:[],d&&a?Co(d):[])}return r.concat(o,Co(o,[],a))}function Em(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nx(t){const r=yr(t);let a=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const o=Br(t),s=o?t.offsetWidth:a,f=o?t.offsetHeight:l,d=Pc(a)!==s||Pc(l)!==f;return d&&(a=s,l=f),{width:a,height:l,$:d}}function jv(t){return gr(t)?t:t.contextElement}function ql(t){const r=jv(t);if(!Br(r))return Lr(1);const a=r.getBoundingClientRect(),{width:l,height:o,$:s}=nx(r);let f=(s?Pc(a.width):a.width)/l,d=(s?Pc(a.height):a.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const bD=Lr(0);function rx(t){const r=$n(t);return!Mv()||!r.visualViewport?bD:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function SD(t,r,a){return r===void 0&&(r=!1),!a||r&&a!==$n(t)?!1:r}function Xi(t,r,a,l){r===void 0&&(r=!1),a===void 0&&(a=!1);const o=t.getBoundingClientRect(),s=jv(t);let f=Lr(1);r&&(l?gr(l)&&(f=ql(l)):f=ql(t));const d=SD(s,a,l)?rx(s):Lr(0);let m=(o.left+d.x)/f.x,v=(o.top+d.y)/f.y,g=o.width/f.x,S=o.height/f.y;if(s){const p=$n(s),y=l&&gr(l)?$n(l):l;let w=p,x=Em(w);for(;x&&l&&y!==w;){const R=ql(x),T=x.getBoundingClientRect(),A=yr(x),N=T.left+(x.clientLeft+parseFloat(A.paddingLeft))*R.x,j=T.top+(x.clientTop+parseFloat(A.paddingTop))*R.y;m*=R.x,v*=R.y,g*=R.x,S*=R.y,m+=N,v+=j,w=$n(x),x=Em(w)}}return kc({width:g,height:S,x:m,y:v})}function _v(t,r){const a=vf(t).scrollLeft;return r?r.left+a:Xi(qr(t)).left+a}function ax(t,r,a){a===void 0&&(a=!1);const l=t.getBoundingClientRect(),o=l.left+r.scrollLeft-(a?0:_v(t,l)),s=l.top+r.scrollTop;return{x:o,y:s}}function xD(t){let{elements:r,rect:a,offsetParent:l,strategy:o}=t;const s=o==="fixed",f=qr(l),d=r?mf(r.floating):!1;if(l===f||d&&s)return a;let m={scrollLeft:0,scrollTop:0},v=Lr(1);const g=Lr(0),S=Br(l);if((S||!S&&!s)&&((ou(l)!=="body"||Po(f))&&(m=vf(l)),Br(l))){const y=Xi(l);v=ql(l),g.x=y.x+l.clientLeft,g.y=y.y+l.clientTop}const p=f&&!S&&!s?ax(f,m,!0):Lr(0);return{width:a.width*v.x,height:a.height*v.y,x:a.x*v.x-m.scrollLeft*v.x+g.x+p.x,y:a.y*v.y-m.scrollTop*v.y+g.y+p.y}}function ED(t){return Array.from(t.getClientRects())}function wD(t){const r=qr(t),a=vf(t),l=t.ownerDocument.body,o=Ln(r.scrollWidth,r.clientWidth,l.scrollWidth,l.clientWidth),s=Ln(r.scrollHeight,r.clientHeight,l.scrollHeight,l.clientHeight);let f=-a.scrollLeft+_v(t);const d=-a.scrollTop;return yr(l).direction==="rtl"&&(f+=Ln(r.clientWidth,l.clientWidth)-o),{width:o,height:s,x:f,y:d}}function CD(t,r){const a=$n(t),l=qr(t),o=a.visualViewport;let s=l.clientWidth,f=l.clientHeight,d=0,m=0;if(o){s=o.width,f=o.height;const v=Mv();(!v||v&&r==="fixed")&&(d=o.offsetLeft,m=o.offsetTop)}return{width:s,height:f,x:d,y:m}}function OD(t,r){const a=Xi(t,!0,r==="fixed"),l=a.top+t.clientTop,o=a.left+t.clientLeft,s=Br(t)?ql(t):Lr(1),f=t.clientWidth*s.x,d=t.clientHeight*s.y,m=o*s.x,v=l*s.y;return{width:f,height:d,x:m,y:v}}function Sb(t,r,a){let l;if(r==="viewport")l=CD(t,a);else if(r==="document")l=wD(qr(t));else if(gr(r))l=OD(r,a);else{const o=rx(t);l={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return kc(l)}function ix(t,r){const a=vi(t);return a===r||!gr(a)||ru(a)?!1:yr(a).position==="fixed"||ix(a,r)}function TD(t,r){const a=r.get(t);if(a)return a;let l=Co(t,[],!1).filter(d=>gr(d)&&ou(d)!=="body"),o=null;const s=yr(t).position==="fixed";let f=s?vi(t):t;for(;gr(f)&&!ru(f);){const d=yr(f),m=Av(f);!m&&d.position==="fixed"&&(o=null),(s?!m&&!o:!m&&d.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Po(f)&&!m&&ix(t,f))?l=l.filter(g=>g!==f):o=d,f=vi(f)}return r.set(t,l),l}function RD(t){let{element:r,boundary:a,rootBoundary:l,strategy:o}=t;const f=[...a==="clippingAncestors"?mf(r)?[]:TD(r,this._c):[].concat(a),l],d=f[0],m=f.reduce((v,g)=>{const S=Sb(r,g,o);return v.top=Ln(S.top,v.top),v.right=di(S.right,v.right),v.bottom=di(S.bottom,v.bottom),v.left=Ln(S.left,v.left),v},Sb(r,d,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function DD(t){const{width:r,height:a}=nx(t);return{width:r,height:a}}function AD(t,r,a){const l=Br(r),o=qr(r),s=a==="fixed",f=Xi(t,!0,s,r);let d={scrollLeft:0,scrollTop:0};const m=Lr(0);if(l||!l&&!s)if((ou(r)!=="body"||Po(o))&&(d=vf(r)),l){const p=Xi(r,!0,s,r);m.x=p.x+r.clientLeft,m.y=p.y+r.clientTop}else o&&(m.x=_v(o));const v=o&&!l&&!s?ax(o,d):Lr(0),g=f.left+d.scrollLeft-m.x-v.x,S=f.top+d.scrollTop-m.y-v.y;return{x:g,y:S,width:f.width,height:f.height}}function Gh(t){return yr(t).position==="static"}function xb(t,r){if(!Br(t)||yr(t).position==="fixed")return null;if(r)return r(t);let a=t.offsetParent;return qr(t)===a&&(a=a.ownerDocument.body),a}function lx(t,r){const a=$n(t);if(mf(t))return a;if(!Br(t)){let o=vi(t);for(;o&&!ru(o);){if(gr(o)&&!Gh(o))return o;o=vi(o)}return a}let l=xb(t,r);for(;l&&gD(l)&&Gh(l);)l=xb(l,r);return l&&ru(l)&&Gh(l)&&!Av(l)?a:l||yD(t)||a}const MD=async function(t){const r=this.getOffsetParent||lx,a=this.getDimensions,l=await a(t.floating);return{reference:AD(t.reference,await r(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function jD(t){return yr(t).direction==="rtl"}const _D={convertOffsetParentRelativeRectToViewportRelativeRect:xD,getDocumentElement:qr,getClippingRect:RD,getOffsetParent:lx,getElementRects:MD,getClientRects:ED,getDimensions:DD,getScale:ql,isElement:gr,isRTL:jD};function ND(t,r){let a=null,l;const o=qr(t);function s(){var d;clearTimeout(l),(d=a)==null||d.disconnect(),a=null}function f(d,m){d===void 0&&(d=!1),m===void 0&&(m=1),s();const{left:v,top:g,width:S,height:p}=t.getBoundingClientRect();if(d||r(),!S||!p)return;const y=mc(g),w=mc(o.clientWidth-(v+S)),x=mc(o.clientHeight-(g+p)),R=mc(v),A={rootMargin:-y+"px "+-w+"px "+-x+"px "+-R+"px",threshold:Ln(0,di(1,m))||1};let N=!0;function j(C){const q=C[0].intersectionRatio;if(q!==m){if(!N)return f();q?f(!1,q):l=setTimeout(()=>{f(!1,1e-7)},1e3)}N=!1}try{a=new IntersectionObserver(j,{...A,root:o.ownerDocument})}catch{a=new IntersectionObserver(j,A)}a.observe(t)}return f(!0),s}function zD(t,r,a,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:m=!1}=l,v=jv(t),g=o||s?[...v?Co(v):[],...Co(r)]:[];g.forEach(T=>{o&&T.addEventListener("scroll",a,{passive:!0}),s&&T.addEventListener("resize",a)});const S=v&&d?ND(v,a):null;let p=-1,y=null;f&&(y=new ResizeObserver(T=>{let[A]=T;A&&A.target===v&&y&&(y.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var N;(N=y)==null||N.observe(r)})),a()}),v&&!m&&y.observe(v),y.observe(r));let w,x=m?Xi(t):null;m&&R();function R(){const T=Xi(t);x&&(T.x!==x.x||T.y!==x.y||T.width!==x.width||T.height!==x.height)&&a(),x=T,w=requestAnimationFrame(R)}return a(),()=>{var T;g.forEach(A=>{o&&A.removeEventListener("scroll",a),s&&A.removeEventListener("resize",a)}),S==null||S(),(T=y)==null||T.disconnect(),y=null,m&&cancelAnimationFrame(w)}}const LD=hD,HD=mD,UD=fD,$D=pD,BD=cD,PD=vD,qD=(t,r,a)=>{const l=new Map,o={platform:_D,...a},s={...o.platform,_c:l};return sD(t,r,{...o,platform:s})};var kD="div";function Eb(t=0,r=0,a=0,l=0){if(typeof DOMRect=="function")return new DOMRect(t,r,a,l);const o={x:t,y:r,width:a,height:l,top:r,right:t+a,bottom:r+l,left:t};return Ce(oe({},o),{toJSON:()=>o})}function FD(t){if(!t)return Eb();const{x:r,y:a,width:l,height:o}=t;return Eb(r,a,l,o)}function VD(t,r){return{contextElement:t||void 0,getBoundingClientRect:()=>{const l=t,o=r==null?void 0:r(l);return o||!l?FD(o):l.getBoundingClientRect()}}}function YD(t){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(t)}function wb(t){const r=window.devicePixelRatio||1;return Math.round(t*r)/r}function QD(t,r){return LD(({placement:a})=>{var l;const o=((t==null?void 0:t.clientHeight)||0)/2,s=typeof r.gutter=="number"?r.gutter+o:(l=r.gutter)!=null?l:o;return{crossAxis:!!a.split("-")[1]?void 0:r.shift,mainAxis:s,alignmentAxis:r.shift}})}function KD(t){if(t.flip===!1)return;const r=typeof t.flip=="string"?t.flip.split(" "):void 0;return Wt(!r||r.every(YD),!1),UD({padding:t.overflowPadding,fallbackPlacements:r})}function GD(t){if(!(!t.slide&&!t.overlap))return HD({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding,limiter:PD()})}function XD(t){return $D({padding:t.overflowPadding,apply({elements:r,availableWidth:a,availableHeight:l,rects:o}){const s=r.floating,f=Math.round(o.reference.width);a=Math.floor(a),l=Math.floor(l),s.style.setProperty("--popover-anchor-width",`${f}px`),s.style.setProperty("--popover-available-width",`${a}px`),s.style.setProperty("--popover-available-height",`${l}px`),t.sameWidth&&(s.style.width=`${f}px`),t.fitViewport&&(s.style.maxWidth=`${a}px`,s.style.maxHeight=`${l}px`)}})}function ZD(t,r){if(t)return BD({element:t,padding:r.arrowPadding})}var ux=tt(function(r){var a=r,{store:l,modal:o=!1,portal:s=!!o,preserveTabOrder:f=!0,autoFocusOnShow:d=!0,wrapperProps:m,fixed:v=!1,flip:g=!0,shift:S=0,slide:p=!0,overlap:y=!1,sameWidth:w=!1,fitViewport:x=!1,gutter:R,arrowPadding:T=4,overflowPadding:A=8,getAnchorRect:N,updatePosition:j}=a,C=Ge(a,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const q=of();l=l||q,Wt(l,!1);const B=l.useState("arrowElement"),V=l.useState("anchorElement"),z=l.useState("disclosureElement"),X=l.useState("popoverElement"),te=l.useState("contentElement"),fe=l.useState("placement"),Z=l.useState("mounted"),ae=l.useState("rendered"),ie=E.useRef(null),[U,I]=E.useState(!1),{portalRef:ne,domReady:K}=av(s,C.portalRef),M=Ye(N),F=Ye(j),se=!!j;ft(()=>{if(!(X!=null&&X.isConnected))return;X.style.setProperty("--popover-overflow-padding",`${A}px`);const ce=VD(V,M),ye=async()=>{if(!Z)return;B||(ie.current=ie.current||document.createElement("div"));const _e=B||ie.current,je=[QD(_e,{gutter:R,shift:S}),KD({flip:g,overflowPadding:A}),GD({slide:p,shift:S,overlap:y,overflowPadding:A}),ZD(_e,{arrowPadding:T}),XD({sameWidth:w,fitViewport:x,overflowPadding:A})],Ne=await qD(ce,X,{placement:fe,strategy:v?"fixed":"absolute",middleware:je});l==null||l.setState("currentPlacement",Ne.placement),I(!0);const Mt=wb(Ne.x),bn=wb(Ne.y);if(Object.assign(X.style,{top:"0",left:"0",transform:`translate3d(${Mt}px,${bn}px,0)`}),_e&&Ne.middlewareData.arrow){const{x:dt,y:ln}=Ne.middlewareData.arrow,On=Ne.placement.split("-")[0],en=_e.clientWidth/2,Pn=_e.clientHeight/2,Se=dt!=null?dt+en:-en,Fe=ln!=null?ln+Pn:-Pn;X.style.setProperty("--popover-transform-origin",{top:`${Se}px calc(100% + ${Pn}px)`,bottom:`${Se}px ${-Pn}px`,left:`calc(100% + ${en}px) ${Fe}px`,right:`${-en}px ${Fe}px`}[On]),Object.assign(_e.style,{left:dt!=null?`${dt}px`:"",top:ln!=null?`${ln}px`:"",[On]:"100%"})}},mt=zD(ce,X,async()=>{se?(await F({updatePosition:ye}),I(!0)):await ye()},{elementResize:typeof ResizeObserver=="function"});return()=>{I(!1),mt()}},[l,ae,X,B,V,X,fe,Z,K,v,g,S,p,y,w,x,R,T,A,M,se,F]),ft(()=>{if(!Z||!K||!(X!=null&&X.isConnected)||!(te!=null&&te.isConnected))return;const ce=()=>{X.style.zIndex=getComputedStyle(te).zIndex};ce();let ye=requestAnimationFrame(()=>{ye=requestAnimationFrame(ce)});return()=>cancelAnimationFrame(ye)},[Z,K,X,te]);const de=v?"fixed":"absolute";return C=gn(C,ce=>D.jsx("div",Ce(oe({},m),{style:oe({position:de,top:0,left:0,width:"max-content"},m==null?void 0:m.style),ref:l==null?void 0:l.setPopoverElement,children:ce})),[l,de,m]),C=gn(C,ce=>D.jsx(sf,{value:l,children:ce}),[l]),C=Ce(oe({"data-placing":!U||void 0},C),{style:oe({position:"relative"},C.style)}),C=JS(Ce(oe({store:l,modal:o,portal:s,preserveTabOrder:f,preserveTabOrderAnchor:z||V,autoFocusOnShow:U&&d},C),{portalRef:ne})),C});df(Xe(function(r){const a=ux(r);return Ie(kD,a)}),of);var ID="hr",ox=tt(function(r){var a=r,{orientation:l="horizontal"}=a,o=Ge(a,["orientation"]);return o=oe({role:"separator","aria-orientation":l},o),o});Xe(function(r){const a=ox(r);return Ie(ID,a)});var JD="hr",sx=tt(function(r){var a=r,{store:l}=a,o=Ge(a,["store"]);const s=rf();l=l||s,Wt(l,!1);const f=l.useState(d=>d.orientation==="horizontal"?"vertical":"horizontal");return o=ox(Ce(oe({},o),{orientation:f})),o});Xe(function(r){const a=sx(r);return Ie(JD,a)});var WD="button",eA=tt(function(r){var a=r,{store:l}=a,o=Ge(a,["store"]);const s=ST();l=l||s;const f=o.onClick,d=Ye(v=>{f==null||f(v),!v.defaultPrevented&&(l==null||l.hide())}),m=E.useMemo(()=>D.jsxs("svg",{"aria-label":"Dismiss popup",display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:[D.jsx("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),D.jsx("line",{x1:"4",y1:"12",x2:"12",y2:"4"})]}),[]);return o=Ce(oe({"data-dialog-dismiss":"",children:m},o),{onClick:d}),o=bv(o),o}),tA=Xe(function(r){const a=eA(r);return Ie(WD,a)}),nA="h1",cx=tt(function(r){const a=E.useRef(null),l=E.useContext(bm)||1,o=`h${l}`,s=rv(a,o),f=E.useMemo(()=>!!s&&/^h\d$/.test(s),[s]);return r=Ce(oe({render:D.jsx(o,{}),role:f?void 0:"heading","aria-level":f?void 0:l},r),{ref:Ht(a,r.ref)}),r});Xe(function(r){const a=cx(r);return Ie(nA,a)});var rA="h1",aA=tt(function(r){var a=r,l=Ge(a,["store"]);const o=E.useContext(MS),s=Ji(l.id);return ft(()=>(o==null||o(s),()=>o==null?void 0:o(void 0)),[o,s]),l=oe({id:s},l),l=cx(l),l}),iA=Xe(function(r){const a=aA(r);return Ie(rA,a)}),lA="div",ca="";function Xh(){ca=""}function uA(t){const r=t.target;return r&&ya(r)?!1:t.key===" "&&ca.length?!0:t.key.length===1&&!t.ctrlKey&&!t.altKey&&!t.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(t.key)}function oA(t,r){if(Hn(t))return!0;const a=t.target;return a?r.some(o=>o.element===a):!1}function sA(t){return t.filter(r=>!r.disabled)}function wc(t,r){var a;const l=((a=t.element)==null?void 0:a.textContent)||t.children||"value"in t&&t.value;return l?xO(l).trim().toLowerCase().startsWith(r.toLowerCase()):!1}function cA(t,r,a){if(!a)return t;const l=t.find(o=>o.id===a);return!l||!wc(l,r)||ca!==r&&wc(l,ca)?t:(ca=r,RT(t.filter(o=>wc(o,ca)),a).filter(o=>o.id!==a))}var Nv=tt(function(r){var a=r,{store:l,typeahead:o=!0}=a,s=Ge(a,["store","typeahead"]);const f=rf();l=l||f,Wt(l,!1);const d=s.onKeyDownCapture,m=E.useRef(0),v=Ye(g=>{if(d==null||d(g),g.defaultPrevented||!o||!l)return;if(!uA(g))return Xh();const{renderedItems:S,items:p,activeId:y,id:w}=l.getState();let x=sA(p.length>S.length?p:S);const R=gt(g.currentTarget),T=`[data-offscreen-id="${w}"]`,A=R.querySelectorAll(T);for(const C of A){const q=C.ariaDisabled==="true"||"disabled"in C&&!!C.disabled;x.push({id:C.id,element:C,disabled:q})}if(A.length&&(x=gS(x,C=>C.element)),!oA(g,x))return Xh();g.preventDefault(),window.clearTimeout(m.current),m.current=window.setTimeout(()=>{ca=""},500);const N=g.key.toLowerCase();ca+=N,x=cA(x,N,y);const j=x.find(C=>wc(C,ca));j?l.move(j.id):Xh()});return s=Ce(oe({},s),{onKeyDownCapture:v}),iu(s)});Xe(function(r){const a=Nv(r);return Ie(lA,a)});var fA="button",fx=tt(function(r){var a=r,{store:l}=a,o=Ge(a,["store"]);const s=of();l=l||s,Wt(l,!1);const f=o.onClick,d=Ye(m=>{l==null||l.setAnchorElement(m.currentTarget),f==null||f(m)});return o=gn(o,m=>D.jsx(sf,{value:l,children:m}),[l]),o=Ce(oe({},o),{onClick:d}),o=_S(oe({store:l},o)),o=BS(oe({store:l},o)),o});Xe(function(r){const a=fx(r);return Ie(fA,a)});var dx=ba([af],[ov]),dA=dx.useContext,hA=dx.useScopedContext;E.createContext(void 0);var qo=ba([jS],[sf]);qo.useContext;qo.useScopedContext;var zv=qo.useProviderContext,mA=qo.ContextProvider,hx=qo.ScopedContextProvider,ko=ba([af,mA],[ov,hx]),mx=ko.useContext,vA=ko.useScopedContext,pf=ko.useProviderContext,vx=ko.ContextProvider,pA=ko.ScopedContextProvider;E.createContext(void 0);function gA(t={}){var r;const a=(r=t.store)==null?void 0:r.getState(),l=pT(Yt(ut({},t),{placement:et(t.placement,a==null?void 0:a.placement,"bottom")})),o=et(t.timeout,a==null?void 0:a.timeout,500),s=Yt(ut({},l.getState()),{timeout:o,showTimeout:et(t.showTimeout,a==null?void 0:a.showTimeout),hideTimeout:et(t.hideTimeout,a==null?void 0:a.hideTimeout),autoFocusOnShow:et(a==null?void 0:a.autoFocusOnShow,!1)}),f=$r(s,l,t.store);return Yt(ut(ut({},l),f),{setAutoFocusOnShow:d=>f.setState("autoFocusOnShow",d)})}function yA(t,r,a){return Xt(t,a,"timeout"),Xt(t,a,"showTimeout"),Xt(t,a,"hideTimeout"),gT(t,r,a)}function bA(t={}){var r=t,{combobox:a,parent:l,menubar:o}=r,s=sS(r,["combobox","parent","menubar"]);const f=!!o&&!l,d=dv(s.store,ZO(l,["values"]),fv(a,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),m=d.getState(),v=dT(Yt(ut({},s),{store:d,orientation:et(s.orientation,m.orientation,"vertical")})),g=gA(Yt(ut({},s),{store:d,placement:et(s.placement,m.placement,"bottom-start"),timeout:et(s.timeout,m.timeout,f?0:150),hideTimeout:et(s.hideTimeout,m.hideTimeout,0)})),S=Yt(ut(ut({},v.getState()),g.getState()),{initialFocus:et(m.initialFocus,"container"),values:et(s.values,m.values,s.defaultValues,{})}),p=$r(S,v,g,d);return fa(p,()=>ma(p,["mounted"],y=>{y.mounted||p.setState("activeId",null)})),fa(p,()=>ma(l,["orientation"],y=>{p.setState("placement",y.orientation==="vertical"?"right-start":"bottom-start")})),Yt(ut(ut(ut({},v),g),p),{combobox:a,parent:l,menubar:o,hideAll:()=>{g.hide(),l==null||l.hideAll()},setInitialFocus:y=>p.setState("initialFocus",y),setValues:y=>p.setState("values",y),setValue:(y,w)=>{y!=="__proto__"&&y!=="constructor"&&(Array.isArray(y)||p.setState("values",x=>{const R=x[y],T=cS(w,R);return T===R?x:Yt(ut({},x),{[y]:T!==void 0&&T})}))}})}function SA(t,r,a){return nf(r,[a.combobox,a.parent,a.menubar]),Xt(t,a,"values","setValues"),Object.assign(yA(hT(t,r,a),r,a),{combobox:a.combobox,parent:a.parent,menubar:a.menubar})}function xA(t={}){const r=mx(),a=dA(),l=CT();t=Ce(oe({},t),{parent:t.parent!==void 0?t.parent:r,menubar:t.menubar!==void 0?t.menubar:a,combobox:t.combobox!==void 0?t.combobox:l});const[o,s]=hv(bA,t);return SA(o,s,t)}var EA="div";function wA(t){var r=t,{store:a}=r,l=Ge(r,["store"]);const[o,s]=E.useState(void 0),f=l["aria-label"],d=Pt(a,"disclosureElement"),m=Pt(a,"contentElement");return E.useEffect(()=>{const v=d;if(!v)return;const g=m;if(!g)return;f||g.hasAttribute("aria-label")?s(void 0):v.id&&s(v.id)},[f,d,m]),o}var px=tt(function(r){var a=r,{store:l,alwaysVisible:o,composite:s}=a,f=Ge(a,["store","alwaysVisible","composite"]);const d=pf();l=l||d,Wt(l,!1);const m=l.parent,v=l.menubar,g=!!m,S=Ji(f.id),p=f.onKeyDown,y=l.useState(B=>B.placement.split("-")[0]),w=l.useState(B=>B.orientation==="both"?void 0:B.orientation),x=w!=="vertical",R=Pt(v,B=>!!B&&B.orientation!=="vertical"),T=Ye(B=>{if(p==null||p(B),!B.defaultPrevented){if(g||v&&!x){const z={ArrowRight:()=>y==="left"&&!x,ArrowLeft:()=>y==="right"&&!x,ArrowUp:()=>y==="bottom"&&x,ArrowDown:()=>y==="top"&&x}[B.key];if(z!=null&&z())return B.stopPropagation(),B.preventDefault(),l==null?void 0:l.hide()}if(v){const z={ArrowRight:()=>{if(R)return v.next()},ArrowLeft:()=>{if(R)return v.previous()},ArrowDown:()=>{if(!R)return v.next()},ArrowUp:()=>{if(!R)return v.previous()}}[B.key],X=z==null?void 0:z();X!==void 0&&(B.stopPropagation(),B.preventDefault(),v.move(X))}}});f=gn(f,B=>D.jsx(pA,{value:l,children:B}),[l]);const A=wA(oe({store:l},f)),N=l.useState("mounted"),j=Sv(N,f.hidden,o),C=j?Ce(oe({},f.style),{display:"none"}):f.style;f=Ce(oe({id:S,"aria-labelledby":A,hidden:j},f),{ref:Ht(S?l.setContentElement:null,f.ref),style:C,onKeyDown:T});const q=!!l.combobox;return s=s??!q,s&&(f=oe({role:"menu","aria-orientation":w},f)),f=HS(oe({store:l,composite:s},f)),f=Nv(oe({store:l,typeahead:!q},f)),f});Xe(function(r){const a=px(r);return Ie(EA,a)});function Zh(t){return[t.clientX,t.clientY]}function Cb(t,r){const[a,l]=t;let o=!1;const s=r.length;for(let f=s,d=0,m=f-1;d<f;m=d++){const[v,g]=r[d],[S,p]=r[m],[,y]=r[m===0?f-1:m-1]||[0,0],w=(g-p)*(a-v)-(v-S)*(l-g);if(p<g){if(l>=p&&l<g){if(w===0)return!0;w>0&&(l===p?l>y&&(o=!o):o=!o)}}else if(g<p){if(l>g&&l<=p){if(w===0)return!0;w<0&&(l===p?l<y&&(o=!o):o=!o)}}else if(l===g&&(a>=S&&a<=v||a>=v&&a<=S))return!0}return o}function CA(t,r){const{top:a,right:l,bottom:o,left:s}=r,[f,d]=t,m=f<s?"left":f>l?"right":null,v=d<a?"top":d>o?"bottom":null;return[m,v]}function Ob(t,r){const a=t.getBoundingClientRect(),{top:l,right:o,bottom:s,left:f}=a,[d,m]=CA(r,a),v=[r];return d?(m!=="top"&&v.push([d==="left"?f:o,l]),v.push([d==="left"?o:f,l]),v.push([d==="left"?o:f,s]),m!=="bottom"&&v.push([d==="left"?f:o,s])):m==="top"?(v.push([f,l]),v.push([f,s]),v.push([o,s]),v.push([o,l])):(v.push([f,s]),v.push([f,l]),v.push([o,l]),v.push([o,s])),v}var OA="div";function gx(t,r,a,l){return oi(r)?!0:t?!!(Lt(r,t)||a&&Lt(a,t)||l!=null&&l.some(o=>gx(t,o,a))):!1}function TA(t){var r=t,{store:a}=r,l=Ge(r,["store"]);const[o,s]=E.useState(!1),f=a.useState("mounted");E.useEffect(()=>{f||s(!1)},[f]);const d=l.onFocus,m=Ye(g=>{d==null||d(g),!g.defaultPrevented&&s(!0)}),v=E.useRef(null);return E.useEffect(()=>ma(a,["anchorElement"],g=>{v.current=g.anchorElement}),[]),l=Ce(oe({autoFocusOnHide:o,finalFocus:v},l),{onFocus:m}),l}var Tb=E.createContext(null),yx=tt(function(r){var a=r,{store:l,modal:o=!1,portal:s=!!o,hideOnEscape:f=!0,hideOnHoverOutside:d=!0,disablePointerEventsOnApproach:m=!!d}=a,v=Ge(a,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const g=zv();l=l||g,Wt(l,!1);const S=E.useRef(null),[p,y]=E.useState([]),w=E.useRef(0),x=E.useRef(null),{portalRef:R,domReady:T}=av(s,v.portalRef),A=iv(),N=!!d,j=Un(d),C=!!m,q=Un(m),B=l.useState("open"),V=l.useState("mounted");E.useEffect(()=>{if(!T||!V||!N&&!C)return;const Z=S.current;return Z?Bn(Zt("mousemove",ie=>{if(!l||!A())return;const{anchorElement:U,hideTimeout:I,timeout:ne}=l.getState(),K=x.current,[M]=ie.composedPath(),F=U;if(gx(M,Z,F,p)){x.current=M&&F&&Lt(F,M)?Zh(ie):null,window.clearTimeout(w.current),w.current=0;return}if(!w.current){if(K){const se=Zh(ie),de=Ob(Z,K);if(Cb(se,de)){if(x.current=se,!q(ie))return;ie.preventDefault(),ie.stopPropagation();return}}j(ie)&&(w.current=window.setTimeout(()=>{w.current=0,l==null||l.hide()},I??ne))}},!0),()=>clearTimeout(w.current)):void 0},[l,A,T,V,N,C,p,q,j]),E.useEffect(()=>{if(!T||!V||!C)return;const Z=ae=>{const ie=S.current;if(!ie)return;const U=x.current;if(!U)return;const I=Ob(ie,U);if(Cb(Zh(ae),I)){if(!q(ae))return;ae.preventDefault(),ae.stopPropagation()}};return Bn(Zt("mouseenter",Z,!0),Zt("mouseover",Z,!0),Zt("mouseout",Z,!0),Zt("mouseleave",Z,!0))},[T,V,C,q]),E.useEffect(()=>{T&&(B||l==null||l.setAutoFocusOnShow(!1))},[l,T,B]);const z=bS(B);E.useEffect(()=>{if(T)return()=>{z.current||l==null||l.setAutoFocusOnShow(!1)}},[l,T]);const X=E.useContext(Tb);ft(()=>{if(o||!s||!V||!T)return;const Z=S.current;if(Z)return X==null?void 0:X(Z)},[o,s,V,T]);const te=E.useCallback(Z=>{y(ie=>[...ie,Z]);const ae=X==null?void 0:X(Z);return()=>{y(ie=>ie.filter(U=>U!==Z)),ae==null||ae()}},[X]);v=gn(v,Z=>D.jsx(hx,{value:l,children:D.jsx(Tb.Provider,{value:te,children:Z})}),[l,te]),v=Ce(oe({},v),{ref:Ht(S,v.ref)}),v=TA(oe({store:l},v));const fe=l.useState(Z=>o||Z.autoFocusOnShow);return v=ux(Ce(oe({store:l,modal:o,portal:s,autoFocusOnShow:fe},v),{portalRef:R,hideOnEscape(Z){return dS(f,Z)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{l==null||l.hide()})}),!0)}})),v});df(Xe(function(r){const a=yx(r);return Ie(OA,a)}),zv);var RA="div",DA=tt(function(r){var a=r,{store:l,modal:o=!1,portal:s=!!o,hideOnEscape:f=!0,autoFocusOnShow:d=!0,hideOnHoverOutside:m,alwaysVisible:v}=a,g=Ge(a,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const S=pf();l=l||S,Wt(l,!1);const p=E.useRef(null),y=l.parent,w=l.menubar,x=!!y,R=!!w&&!x;g=Ce(oe({},g),{ref:Ht(p,g.ref)});const T=px(oe({store:l,alwaysVisible:v},g)),{"aria-labelledby":A}=T;g=Ge(T,["aria-labelledby"]);const[j,C]=E.useState(),q=l.useState("autoFocusOnShow"),B=l.useState("initialFocus"),V=l.useState("baseElement"),z=l.useState("renderedItems");E.useEffect(()=>{let U=!1;return C(I=>{var ne,K,M;if(U||!q)return;if((ne=I==null?void 0:I.current)!=null&&ne.isConnected)return I;const F=E.createRef();switch(B){case"first":F.current=((K=z.find(se=>!se.disabled&&se.element))==null?void 0:K.element)||null;break;case"last":F.current=((M=[...z].reverse().find(se=>!se.disabled&&se.element))==null?void 0:M.element)||null;break;default:F.current=V}return F}),()=>{U=!0}},[l,q,B,z,V]);const X=x?!1:o,te=!!d,fe=!!j||!!g.initialFocus||!!X,Z=Pt(l.combobox||l,"contentElement"),ae=Pt((y==null?void 0:y.combobox)||y,"contentElement"),ie=E.useMemo(()=>{if(!ae||!Z)return;const U=Z.getAttribute("role"),I=ae.getAttribute("role");if(!((I==="menu"||I==="menubar")&&U==="menu"))return ae},[Z,ae]);return ie!==void 0&&(g=oe({preserveTabOrderAnchor:ie},g)),g=yx(Ce(oe({store:l,alwaysVisible:v,initialFocus:j,autoFocusOnShow:te?fe&&d:q||!!X},g),{hideOnEscape(U){return dS(f,U)?!1:(l==null||l.hideAll(),!0)},hideOnHoverOutside(U){const I=l==null?void 0:l.getState().disclosureElement;return(typeof m=="function"?m(U):m??(x?!0:R?I?!oi(I):!0:!1))?U.defaultPrevented||!x||!I||($O(I,"mouseout",U),!oi(I))?!0:(requestAnimationFrame(()=>{oi(I)||l==null||l.hide()}),!1):!1},modal:X,portal:s,backdrop:x?!1:g.backdrop})),g=oe({"aria-labelledby":A},g),g}),AA=df(Xe(function(r){const a=DA(r);return Ie(RA,a)}),pf);function MA(t={}){const r=xA(t);return D.jsx(vx,{value:r,children:t.children})}var jA="a",bx=tt(function(r){var a=r,{store:l,showOnHover:o=!0}=a,s=Ge(a,["store","showOnHover"]);const f=zv();l=l||f,Wt(l,!1);const d=No(s),m=E.useRef(0);E.useEffect(()=>()=>window.clearTimeout(m.current),[]),E.useEffect(()=>Zt("mouseleave",T=>{if(!l)return;const{anchorElement:A}=l.getState();A&&T.target===A&&(window.clearTimeout(m.current),m.current=0)},!0),[l]);const v=s.onMouseMove,g=Un(o),S=iv(),p=Ye(R=>{if(v==null||v(R),d||!l||R.defaultPrevented||m.current||!S()||!g(R))return;const T=R.currentTarget;l.setAnchorElement(T),l.setDisclosureElement(T);const{showTimeout:A,timeout:N}=l.getState(),j=()=>{m.current=0,S()&&(l==null||l.setAnchorElement(T),l==null||l.show(),queueMicrotask(()=>{l==null||l.setDisclosureElement(T)}))},C=A??N;C===0?j():m.current=window.setTimeout(j,C)}),y=s.onClick,w=Ye(R=>{y==null||y(R),l&&(window.clearTimeout(m.current),m.current=0)}),x=E.useCallback(R=>{if(!l)return;const{anchorElement:T}=l.getState();T!=null&&T.isConnected||l.setAnchorElement(R)},[l]);return s=Ce(oe({},s),{ref:Ht(x,s.ref),onMouseMove:p,onClick:w}),s=$o(s),s});Xe(function(r){const a=bx(r);return Ie(jA,a)});var _A="button";function NA(t,r){return{ArrowDown:r==="bottom"||r==="top"?"first":!1,ArrowUp:r==="bottom"||r==="top"?"last":!1,ArrowRight:r==="right"?"first":!1,ArrowLeft:r==="left"?"first":!1}[t.key]}function Rb(t,r){return!!(t!=null&&t.some(a=>!a.element||a.element===r?!1:a.element.getAttribute("aria-expanded")==="true"))}var zA=tt(function(r){var a=r,{store:l,focusable:o,accessibleWhenDisabled:s,showOnHover:f}=a,d=Ge(a,["store","focusable","accessibleWhenDisabled","showOnHover"]);const m=pf();l=l||m,Wt(l,!1);const v=E.useRef(null),g=l.parent,S=l.menubar,p=!!g,y=!!S&&!p,w=No(d),x=()=>{const te=v.current;te&&(l==null||l.setDisclosureElement(te),l==null||l.setAnchorElement(te),l==null||l.show())},R=d.onFocus,T=Ye(te=>{if(R==null||R(te),w||te.defaultPrevented||(l==null||l.setAutoFocusOnShow(!1),l==null||l.setActiveId(null),!S)||!y)return;const{items:fe}=S.getState();Rb(fe,te.currentTarget)&&x()}),A=Pt(l,te=>te.placement.split("-")[0]),N=d.onKeyDown,j=Ye(te=>{if(N==null||N(te),w||te.defaultPrevented)return;const fe=NA(te,A);fe&&(te.preventDefault(),x(),l==null||l.setAutoFocusOnShow(!0),l==null||l.setInitialFocus(fe))}),C=d.onClick,q=Ye(te=>{if(C==null||C(te),te.defaultPrevented||!l)return;const fe=!te.detail,{open:Z}=l.getState();(!Z||fe)&&((!p||fe)&&l.setAutoFocusOnShow(!0),l.setInitialFocus(fe?"first":"container")),p&&x()});d=gn(d,te=>D.jsx(vx,{value:l,children:te}),[l]),p&&(d=Ce(oe({},d),{render:D.jsx(Bc.div,{render:d.render})}));const B=Ji(d.id),V=Pt((g==null?void 0:g.combobox)||g,"contentElement"),z=p||y?vS(V,"menuitem"):void 0,X=l.useState("contentElement");return d=Ce(oe({id:B,role:z,"aria-haspopup":Wm(X,"menu")},d),{ref:Ht(v,d.ref),onFocus:T,onKeyDown:j,onClick:q}),d=bx(Ce(oe({store:l,focusable:o,accessibleWhenDisabled:s},d),{showOnHover:te=>{if(!(()=>{if(typeof f=="function")return f(te);if(f!=null)return f;if(p)return!0;if(!S)return!1;const{items:ie}=S.getState();return y&&Rb(ie)})())return!1;const ae=y?S:g;return ae&&ae.setActiveId(te.currentTarget.id),!0}})),d=fx(oe({store:l,toggleOnClick:!p,focusable:o,accessibleWhenDisabled:s},d)),d=Nv(oe({store:l,typeahead:y},d)),d}),LA=Xe(function(r){const a=zA(r);return Ie(_A,a)}),HA="div";function UA(t,r,a){var l;if(!t)return!1;if(oi(t))return!0;const o=r==null?void 0:r.find(m=>{var v;return m.element===a?!1:((v=m.element)==null?void 0:v.getAttribute("aria-expanded"))==="true"}),s=(l=o==null?void 0:o.element)==null?void 0:l.getAttribute("aria-controls");if(!s)return!1;const d=gt(t).getElementById(s);return d?oi(d)?!0:!!d.querySelector("[role=menuitem][aria-expanded=true]"):!1}var $A=tt(function(r){var a=r,{store:l,hideOnClick:o=!0,preventScrollOnKeyDown:s=!0,focusOnHover:f,blurOnHoverEnd:d}=a,m=Ge(a,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const v=vA(!0),g=hA();l=l||v||g,Wt(l,!1);const S=m.onClick,p=Un(o),y="hideAll"in l?l.hideAll:void 0,w=!!y,x=Ye(A=>{S==null||S(A),!(A.defaultPrevented||UO(A)||HO(A)||!y||A.currentTarget.getAttribute("aria-haspopup")==="menu")&&p(A)&&y()}),R=Pt(l,A=>"contentElement"in A?A.contentElement:null),T=vS(R,"menuitem");return m=Ce(oe({role:T},m),{onClick:x}),m=FS(oe({store:l,preventScrollOnKeyDown:s},m)),m=qS(Ce(oe({store:l},m),{focusOnHover(A){const N=()=>typeof f=="function"?f(A):f??!0;if(!l||!N())return!1;const{baseElement:j,items:C}=l.getState();return w?(A.currentTarget.hasAttribute("aria-expanded")&&A.currentTarget.focus(),!0):UA(j,C,A.currentTarget)?(A.currentTarget.focus(),!0):!1},blurOnHoverEnd(A){return typeof d=="function"?d(A):d??w}})),m}),BA=uv(Xe(function(r){const a=$A(r);return Ie(HA,a)})),PA="hr",qA=tt(function(r){var a=r,{store:l}=a,o=Ge(a,["store"]);const s=mx();return l=l||s,o=sx(oe({store:l},o)),o}),kA=Xe(function(r){const a=qA(r);return Ie(PA,a)}),Pr={legend:"BjkL4",label:"IogM9",errorText:"iCPgd",textErrorMessage:"_1r4K2",helperText:"aW7kV",fieldSet:"LwRcp"};function FA({error:t,className:r,...a}){return D.jsx("fieldset",{...a,className:qe(Pr.fieldSet,t&&Pr.hasError,r)})}function VA({error:t,className:r,...a}){return D.jsx("div",{...a,className:qe(Pr.helperText,t&&Pr.hasError,r)})}function Sx({error:t,className:r,...a}){return D.jsx("label",{...a,className:qe(Pr.label,t&&Pr.hasError,r)})}function xx({error:t,className:r,...a}){return D.jsx("div",{...a,className:qe(Pr.legend,t&&Pr.hasError,r)})}function Fo({className:t,...r}){return D.jsx("p",{...r,className:qe(Pr.errorText,Pr.textErrorMessage,t)})}var oo={root:"_0bZjG",inputContainer:"f-ccT",input:"BQJSS",startAdornment:"pFIPb",endAdornment:"MBy3g"};const gf=function({as:t="input",label:r,disabled:a,error:l,hint:o,size:s,multiline:f,startAdornment:d,endAdornment:m,id:v,style:g,className:S,inputClassName:p,...y}){const w=t==="input"?f?"textarea":"input":t,x=E.useId(),R=v||x;return D.jsxs("div",{className:qe(oo.root,S),style:{maxWidth:s,...g},"data-error":!!l,"aria-disabled":!!a,id:v?`${v}-container`:void 0,children:[r&&D.jsx(Sx,{htmlFor:R,children:r}),o&&D.jsx(VA,{id:`${R}_hint`,children:o}),D.jsxs("div",{className:qe(oo.inputContainer),children:[d&&D.jsx("div",{className:oo.startAdornment,children:d}),D.jsx(w,{disabled:a,id:R,...y,"aria-describedby":qe(y["aria-describedby"],o&&`${R}_hint`,l&&`${R}_error`),"aria-invalid":!!l,className:qe(oo.input,p)}),m&&D.jsx("div",{className:oo.endAdornment,children:m})]}),l&&D.jsx(Fo,{id:`${R}_error`,role:"alert",children:l})]})};function YA({value:t,ref:r,...a}){const l=E.useRef(void 0),o=Q1(r,l),s=()=>{var v,g,S;(g=(v=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:v.set)==null||g.call(l.current,"");const m=new Event("input",{bubbles:!0});(S=l.current)==null||S.dispatchEvent(m)},f=m=>{var v;m.key==="Escape"&&s(),(v=a.onKeyDown)==null||v.call(a,m)},d=(t??"").length>0;return D.jsx(gf,{ref:o,...a,type:"search",onKeyDown:f,value:t,startAdornment:D.jsx(qC,{size:24,style:{marginTop:6}}),endAdornment:D.jsx("button",{type:"button",onClick:s,tabIndex:-1,style:{marginTop:6,opacity:d?1:0,pointerEvents:d?void 0:"none"},children:D.jsx(Zm,{size:32,style:{opacity:.75}})})})}var so={root:"hhIFY",button:"LYR4G",value:"afH1B",hidden:"vxf23",hiddenText:"gO-kQ",numberInput:"MdvMX"};function QA({id:t,name:r,value:a,defaultValue:l,onChange:o,min:s=-1/0,max:f=1/0,step:d=1,disabled:m,error:v,className:g,style:S,onFocus:p,...y}){const w=a!==void 0,x=E.useRef(null),[R,T]=E.useState((w?a:l)??"");w&&a!==R&&T(a);const A=Number(f),N=Number(s),j=Number(d),C=z=>{const X=GA(z,N,A);T(X);const te=new Event("change"),fe={writable:!1,value:{name:r,value:X}};Object.defineProperty(te,"target",fe),Object.defineProperty(te,"currentTarget",fe),o==null||o(te)},q=z=>{const X=Number(R)||0;z.key==="Home"?(z.preventDefault(),C(`${N}`)):z.key==="End"&&A<1/0?(z.preventDefault(),C(`${A}`)):z.key==="ArrowUp"?(z.preventDefault(),C(`${X+j}`)):z.key==="ArrowDown"&&(z.preventDefault(),C(`${X-j}`))},B=z=>{C(z.target.value)},V=z=>()=>{var te;const X=Number(R)||0;C(X+z),KA()||((te=x.current)==null||te.focus())};return D.jsxs("div",{className:qe(so.root,g),"aria-valuenow":Number(a||0),"aria-valuemin":N===-1/0?void 0:N,"aria-valuemax":A===1/0?void 0:A,tabIndex:-1,style:S,"aria-invalid":!!v,"aria-disabled":!!m,id:t?`${t}-container`:void 0,children:[D.jsx("button",{type:"button",onClick:V(-j),className:qe(so.button),disabled:m||Number(R||0)<=N,"aria-label":"Decrease",tabIndex:-1,children:D.jsx(PC,{})}),D.jsx("input",{ref:x,id:t,role:"spinbutton",type:"tel",inputMode:"numeric",pattern:"[0-9]*",className:qe(so.value,so.numberInput),name:r,min:N,max:A,value:R,onChange:B,onKeyDown:q,disabled:m,onFocus:z=>{var X;(X=x.current)==null||X.select(),p==null||p(z)},...y}),D.jsx("button",{type:"button",onClick:V(j),className:so.button,disabled:m||Number(R||0)>=A,"aria-label":"Increase",tabIndex:-1,children:D.jsx(NC,{})})]})}function KA(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function GA(t,r,a){const l=typeof t=="string"?parseFloat(t):t;return t==="-"?t:isNaN(l)?"":Math.max(r,Math.min(a,l))}var la={backdrop:"JKTsp",dialog:"hTxsM",header:"Y-99i",withTitle:"_51P42",title:"GprBx",content:"G5k-W",closeButton:"xWVnm"};function Ex({title:t,isOpen:r=!0,onDismiss:a,initialFocusRef:l,className:o,style:s,children:f}){return D.jsxs(tD,{initialFocus:l,open:r,onClose:()=>a==null?void 0:a(),backdrop:D.jsx("div",{className:la.backdrop}),modal:!0,hideOnInteractOutside:!!a,hideOnEscape:!!a,className:qe(la.dialog,la.withTitle,o),style:{"--transition-opacity":1,...s},children:[D.jsxs("header",{className:qe(la.header,la.withTitle),children:[t&&D.jsx(iA,{className:la.title,children:t}),D.jsx(tA,{className:la.closeButton,style:{display:a?void 0:"none"},children:D.jsx(Zm,{})})]}),D.jsx("section",{className:qe(la.content,la.withTitle),children:f})]})}var vc={menuButton:"uQnDM",list:"_5sdh-",listItem:"cYlZh",separator:"WSXYE"};function XA({items:t,label:r="Menu",buttonProps:a={},arrow:l=!0}){const{className:o,style:s}=tS(a);return D.jsxs(MA,{children:[D.jsx(LA,{className:qe(vc.menuButton,o),style:s,children:D.jsxs("span",{className:"dmk-text-with-icon",children:[r,l&&D.jsx(LC,{className:"dmk-margin-left-xxs"})]})}),D.jsx(AA,{className:vc.list,children:t.map(({action:f,label:d,selected:m,separator:v},g)=>v?D.jsx(kA,{className:vc.separator},g):D.jsxs(BA,{onClick:f,className:vc.listItem,disabled:!f,children:[d," ",m&&D.jsx(UC,{})]},g))})]})}class wx extends E.Component{constructor(){super(...arguments),this.state={error:null},this.resetErrorBoundary=()=>{var r,a;(a=(r=this.props).onReset)==null||a.call(r),this.setState({error:null})}}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,a){this.props.onError&&this.props.onError(r,a)}render(){return this.state.error?E.isValidElement(this.props.fallback)?this.props.fallback:typeof this.props.fallback=="function"?this.props.fallback({error:this.state.error,resetErrorBoundary:this.resetErrorBoundary}):null:this.props.children}}wx.defaultProps={fallback:D.jsx("div",{className:"dmk-padding-m",children:D.jsx(K1,{intent:"error",title:"Error",children:D.jsx("p",{children:"An error occurred"})})}),onError:(t,r)=>console.error(t,r)};var Db={hamburgerButton:"wJ6xF",open:"kEzf7"};function ZA({open:t=!1,className:r,...a}){return D.jsxs("button",{...a,className:qe(Db.hamburgerButton,!!t&&Db.open,r),children:[D.jsx("div",{}),D.jsx("div",{}),D.jsx("div",{}),D.jsx("div",{})]})}var Cc={root:"_2NpgS",radio:"qytUm",input:"_9AxBc",radioGroup:"xYP4R"};const IA=function({as:t=e4,name:r,value:a,onChange:l,disabled:o,children:s,error:f,variant:d="normal",...m}){const v=E.useMemo(()=>({name:r,disabled:o,isChecked:g=>a===g,onChange:l}),[r,a,l,o]);return D.jsx(Cx,{value:v,children:D.jsx(t,{role:"radiogroup","data-radio-group":r,"data-variant":d,...m,"data-error":!!f,"aria-disabled":!!o,className:qe(Cc.radioGroup,m.className),children:s})})},Cx=Im("RadioGroupContext",null);function JA({children:t,className:r,style:a,error:l,...o}){const s=WA(o);return D.jsxs("label",{className:qe(Cc.root,r),"data-checked":s.checked,"data-error":l,"aria-disabled":s.disabled,style:a,children:[D.jsx("input",{...o,className:qe("dmk-visually-hidden",Cc.input),"aria-checked":s.checked,"aria-invalid":l?"true":"false",type:"radio",...s}),D.jsx("span",{className:Cc.radio,"aria-hidden":"true"}),D.jsx("span",{children:typeof t=="function"?t(s.checked):t})]})}function WA(t){const r=E.useContext(Cx);return r==null?t:{value:t.value,name:r.name,checked:r.isChecked(t.value),disabled:r.disabled,onChange:r.onChange}}const e4=function(t){return D.jsx(Ur,{spacing:"s",...t})};var Dr={root:"piq-R",sidebar:"Og3fR",mobile:"muuLM",overlay:"xZmuk",header:"JYx2J",contentContainer:"_5UdA1",content:"xV9Cb",sidebarMenuItem:"xAYHd",sidebarSectionHeading:"tt-vd"};function Lv(t=!1){const[r,a]=E.useState(t),l=E.useCallback(()=>a(f=>!f),[]),o=E.useCallback(()=>a(!0),[]),s=E.useCallback(()=>a(!1),[]);return E.useMemo(()=>({value:r,toggle:l,enable:o,disable:s}),[r,l,o,s])}function t4(t){const r=E.useRef(void 0);return G1(()=>{r.current=t},[t]),r.current}const Ox=E.createContext(null);function n4(){const t=E.useContext(Ox);if(t==null)throw new Error("MenuOpenContext not available");return t}function r4({header:t,sidebar:r,children:a,className:l,maxWidth:o,headerHeight:s,style:f}){const d=nS([!0,!1,!1]),m=Lv(!d),v=t4(m.value);return G1(()=>{!d&&!v?m.enable():d&&v&&m.disable()},[d,m,v]),D.jsx(Ox,{value:m,children:D.jsxs("div",{className:qe(Dr.root,l,d&&Dr.mobile),style:{"--max-width":o,"--header-height":s,...f},children:[t,d&&m.value&&D.jsx("div",{className:Dr.overlay,onClick:m.disable}),D.jsxs("aside",{className:qe(Dr.sidebar,d&&Dr.mobile),"data-open":m.value,children:[d&&D.jsx(Ur,{horizontal:!0,justifyContent:"flex-end",className:"dmk-margin-bottom-l",children:D.jsx(Tx,{})}),r]}),D.jsx("main",{className:qe(Dr.contentContainer,d&&Dr.mobile),children:D.jsx("div",{className:Dr.content,children:a})})]})})}function Tx(){const t=n4();return D.jsx(ZA,{open:t.value,onClick:t.toggle})}function a4({logo:t,children:r,className:a,style:l}){const o=nS([!0,!1,!1]);return D.jsxs(Ur,{horizontal:[!1,!0,!0],justifyContent:"space-between",alignItems:"center",className:qe(Dr.header,o&&Dr.mobile,a),style:l,children:[D.jsxs(Ur,{horizontal:!0,alignItems:"center",justifyContent:"space-between",children:[o&&D.jsx(Tx,{}),t]}),r]})}function i4(t){return Jt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12 2.25a.75.75 0 0 1 .75.75v16.19l6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06l6.22 6.22V3a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"},child:[]}]})(t)}function l4(t){return Jt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"},child:[]}]})(t)}function Rx(t){return Jt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"},child:[]}]})(t)}var co={root:"ScOVn",selectContainer:"o18SG",arrow:"LsR6O",select:"f1zqA",label:"sVIZA",hint:"_1hf0-"};function Dx({style:t,className:r,error:a,hint:l,label:o,value:s,disabled:f,children:d,placeholder:m,ref:v,...g}){return D.jsxs("div",{className:qe(co.root,r),"data-error":!!a,"aria-disabled":!!f,style:t,children:[o&&D.jsx(Sx,{htmlFor:g.id,children:o}),l&&D.jsx("div",{className:co.hint,id:`${g.id}_hint`,children:l}),D.jsxs("div",{className:qe(co.selectContainer),children:[D.jsxs("select",{ref:v,...g,disabled:f,value:s===null?"":s,className:qe(co.select),"aria-invalid":!!a,"aria-describedby":qe(g["aria-describedby"],l&&`${g.id}_hint`),children:[m&&D.jsx("option",{value:"",children:m}),d]}),D.jsx("div",{className:co.arrow,"aria-hidden":!0,role:"presentation",children:D.jsx(Rx,{})})]}),a&&D.jsx(Fo,{role:"alert",children:a})]})}var u4={visuallyHidden:"zZoQC"};const o4=function({as:t="div",className:r,ref:a,...l}){return D.jsx(t,{ref:a,...l,className:qe(u4.visuallyHidden,r)})};var Hv={root:"_7x-oj",scrollableContainer:"Sc0YX",sortPrioIndicator:"tKRSW"};function s4(t){return D.jsx("div",{...t,className:qe(Hv.scrollableContainer,t.className)})}function c4({ref:t,renderHeaderRow:r,renderRow:a,items:l,caption:o,footer:s,columnWidthFixedAfterFirstRender:f=!0,...d}){const m=E.useRef(null),v=Q1(t,m),g=E.useRef(null);return E.useLayoutEffect(()=>{var w;if(!f)return;const S=Array.from(((w=m.current)==null?void 0:w.querySelectorAll("th"))??[]),p=S.map(x=>window.getComputedStyle(x).width);(g.current==null||p.length!==g.current.length)&&(g.current=p);const y=JSON.stringify(p)!==JSON.stringify(g.current);if(g.current&&y)for(let x=0;x<S.length;x++)S[x].style.width=g.current[x]}),D.jsxs("table",{ref:v,...d,className:qe(Hv.root,d.className),children:[o&&D.jsx(o4,{as:"caption",children:o}),D.jsx("thead",{children:r()}),l&&l.length>0&&D.jsx("tbody",{children:(l||[]).map(a)}),s!=null&&D.jsx("tfoot",{children:s})]})}const f4=(t,r)=>typeof t=="string"?t.localeCompare(r):R1(t)?_w(t,r):t<r?-1:t>r?1:0,d4=Symbol();function h4(t,r={},a=void 0,l=f4){const o=sm(t),s=(f,d)=>{var m;if(typeof f=="function")return sm(f(d));if(f===d4)return[d];if(typeof f=="string"&&typeof d=="object"&&d!=null){const v=f.at(0)==="-"?f.slice(1):f;return v in r?[(m=r[v])==null?void 0:m.call(r,d,a)]:[d[v]]}return[d]};return function(f){return f.slice().sort((d,m)=>{if(o.length===0)return l(d,m);for(const v of o){const g=s(v,d),S=s(v,m);for(let p=0;p<g.length;p++){const y=g[p],w=S[p],x=l(y,w);if(x!==0)return typeof v=="string"&&v.at(0)==="-"?x*-1:x}}return 0})}}function m4({multi:t=!0,keys:r}={}){function a(l,o){if(o.column==null)return[];const s=`-${String(o.column)}`;return l.includes(s)?l.filter(f=>f!==s):l.includes(o.column)?l.map(f=>f===o.column?s:f):!t||!o.shiftKey?[o.column]:l.concat([o.column])}return function(l=[],o=void 0){const[s,f]=E.useReducer(a,l),d=E.useMemo(()=>h4(s,r,o),[s,o]);function m(S){const p=s.length>1;let y;return(y=s.indexOf(S))>-1?D.jsx(Ih,{direction:"asc",priority:p?y+1:null}):(y=s.indexOf(`-${String(S)}`))>-1?D.jsx(Ih,{direction:"desc",priority:p?y+1:null}):D.jsx(Ih,{})}function v(S,p){return D.jsxs(D.Fragment,{children:[p??S," ",m(S)]})}function g(S,p){return{"data-sortable":!0,onClick:y=>{f({column:S,shiftKey:y.shiftKey})},children:v(S,p)}}return{sortColumns:s,onSortColumnClick:f,sorted:d,renderSortColumnLabel:v,renderSortingColumnArrow:m,getSortingColumnHeaderProps:g,getThProps:g}}}function Ih({direction:t,priority:r}){return t==null?D.jsx(Rx,{className:"dmk-text-muted"}):D.jsxs(D.Fragment,{children:[t==="asc"?D.jsx(l4,{}):D.jsx(i4,{})," ",r!=null&&D.jsx("sup",{className:Hv.sortPrioIndicator,children:r})]})}const v4=[10,20,50,100];function p4({limit:t,onLimitChange:r,page:a,onPageChange:l,total:o,limits:s=v4}){const f=Math.ceil(o/Math.max(1,t)),d=t*(Math.max(1,a)-1);return D.jsxs(Ur,{horizontal:!0,alignItems:"center",children:[D.jsxs("span",{style:{whiteSpace:"nowrap"},children:[D.jsx("span",{className:"dmk-text-semibold",children:d+1})," to"," ",D.jsx("span",{className:"dmk-text-semibold",children:Math.min(d+t,o)})," ","of ",D.jsx("span",{className:"dmk-text-semibold",children:o})]}),D.jsx(QA,{name:"page",value:a,onChange:m=>l(+m.currentTarget.value||1),min:1,max:f}),D.jsx("div",{className:"dmk-margin-left-auto",children:D.jsx(XA,{label:`${t} per page`,items:s.map(m=>({label:`${m} per page`,action:()=>r(m),selected:m===t})),buttonProps:{variant:"text",size:"s"}})})]})}var g4=Object.defineProperty,y4=Object.defineProperties,b4=Object.getOwnPropertyDescriptors,Fc=Object.getOwnPropertySymbols,Ax=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,wm=(t,r,a)=>r in t?g4(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a,pc=(t,r)=>{for(var a in r||(r={}))Ax.call(r,a)&&wm(t,a,r[a]);if(Fc)for(var a of Fc(r))Mx.call(r,a)&&wm(t,a,r[a]);return t},S4=(t,r)=>y4(t,b4(r)),x4=(t,r)=>{var a={};for(var l in t)Ax.call(t,l)&&r.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&Fc)for(var l of Fc(t))r.indexOf(l)<0&&Mx.call(t,l)&&(a[l]=t[l]);return a},E4=(t,r,a)=>(wm(t,r+"",a),a),Bl=(t,r,a)=>new Promise((l,o)=>{var s=m=>{try{d(a.next(m))}catch(v){o(v)}},f=m=>{try{d(a.throw(m))}catch(v){o(v)}},d=m=>m.done?l(m.value):Promise.resolve(m.value).then(s,f);d((a=a.apply(t,r)).next())});const w4=()=>T4({max:5,isRetriable:t=>t instanceof jx?t.response.status===503:t instanceof _x,getDelay:t=>500*t}),C4=()=>globalThis.crypto.randomUUID();function O4(t={}){var r=t,{getRootUrl:a=()=>"",timeout:l=0,retryOn:o=w4,headers:s={},requestIdHeaderName:f="X-Request-ID",getRequestId:d=C4,json:m=!0}=r,v=x4(r,["getRootUrl","timeout","retryOn","headers","requestIdHeaderName","getRequestId","json"]);const g=[];function S(p){return Bl(this,arguments,function*(y,w={}){var x;const R=(x=w.json)!=null?x:m,T=yield a(y),A=yield Bl(this,null,function*(){const j=new Headers;j.set(f,d()),R&&(j.set("Accept","application/json"),w.method!=="GET"&&typeof w.body=="string"&&j.set("Content-Type","application/json"));for(const[C,q]of Object.entries(pc(pc({},s),w.headers)))j.set(C,q);return new Request(`${T}${y}`,S4(pc(pc({credentials:"include"},v),w),{headers:j}))}),N=w.retryOn||o();return M4(()=>Bl(this,null,function*(){var j,C;const q=(C=(j=w.timeout)!=null?j:l)!=null?C:0,B=yield Bl(this,null,function*(){for(const z of g)z.request&&(yield z.request(A));return q?D4(fetch(A),q):fetch(A)}),V=R?yield B.clone().json().then(z=>z,()=>{}):void 0;B.jsonData=V;for(const z of g)z.response&&(yield z.response(B));if(B.status<200||B.status>=400)throw new jx(B);return B}),N)})}return S.intercept=p=>(g.push(p),()=>{const y=g.indexOf(p);y>=0&&g.splice(y,1)}),S}class jx extends Error{constructor(r){const a=`${r.status} ${r.statusText} at ${r.url}`;super(a),E4(this,"response"),this.name=this.constructor.name,this.response=r}}class _x extends Error{constructor(r){super(r),this.name=this.constructor.name}}function T4({max:t,isRetriable:r,getDelay:a}){let l=0;return function(o){return Bl(this,null,function*(){return l++,r(o)&&l<t?(yield A4(a(l)),!0):!1})}}function R4(t=1e3){let r;return{start(){return new Promise((a,l)=>{r=setTimeout(()=>{l(new _x("Timeout"))},t)})},clear(){clearTimeout(r)}}}function D4(t,r){const{start:a,clear:l}=R4(r);return Promise.race([a(),t]).finally(l)}function A4(t){return new Promise(r=>setTimeout(r,t))}function M4(t,r=()=>!0){const a=(...l)=>Bl(this,null,function*(){try{return yield t(...l)}catch(o){if(yield r(o))return a();throw o}});return a()}function j4(t,r){const[a,l]=E.useState(t),o=E.useRef(Date.now());return E.useEffect(()=>{const s=setTimeout(()=>{Date.now()-o.current>=r&&(l(t),o.current=Date.now())},r-(Date.now()-o.current));return()=>{clearTimeout(s)}},[t,r]),a}const _4=({fields:t,onRemove:r,texts:a,path:l})=>D.jsxs("div",{"data-bitiforms-array-item":!0,"data-field-path":l,children:[Object.keys(t).map(o=>D.jsx(Xm,{...t[o]},o)),D.jsx(ci,{className:"dmk-margin-top-m",variant:"outlined",intent:"danger",type:"button",onClick:r,"data-bitiforms-array-remove-button":!0,children:(a||{})["arrayfield.remove"]??"Remove"})]}),N4=({disabled:t,onClick:r,texts:a})=>D.jsx(Ur,{as:"footer",horizontal:!0,alignItems:"center",className:"dmk-margin-top-l","data-bitiforms-array-add-button":!0,children:!t&&D.jsx(ci,{variant:"outlined",onClick:r,children:(a||{})["arrayfield.add"]??"Add"})}),z4=({schema:t,id:r,name:a,children:l,errors:o,itemCount:s})=>D.jsxs("div",{"data-bitiforms-array-field":a,children:[t.title&&D.jsxs("h3",{id:`${r}_title`,className:"dmk-text-title2 dmk-margin-bottom-s",children:[t.title," ",D.jsxs("span",{"data-bitiforms-array-item-count":!0,children:["(",s,")"]})]}),t.description&&D.jsx("div",{id:`${r}_description`,children:t.description}),o&&D.jsx("div",{children:o}),l]});function L4(t){return D.jsx(dC,{...t,renderItem:_4,renderAddButton:N4,renderContainer:z4})}function Nx(t){return D.jsx("div",{"data-bitiforms-description":!0,...t})}function H4({onChange:t,id:r,name:a,value:l,errors:o,schema:s,texts:f,disabled:d,path:m}){const v=ef();j1($4(s),`CheckboxGroupWidget must be given a schema of type 'object' or 'array'. ${JSON.stringify(s)} given.`);const g=w=>x=>pa(s)&&Array.isArray(l)?t({target:{name:a,value:B4(l,w,x.currentTarget.checked)}}):t({target:{name:a,value:{...l,[w]:x.currentTarget.checked}}}),S=()=>{v.enable()},p=v.value,y=U4(o,s);return D.jsxs(FA,{"aria-labelledby":`${r}-legend`,"data-bitiforms-checkboxgroup":!0,"data-field-path":m,children:[s.title&&D.jsx(xx,{id:`${r}-legend`,children:s.title}),s.description&&D.jsx(Nx,{id:`${r}_description`,children:s.description}),D.jsx(Ur,{spacing:"s",children:P4(s).map(([w,x])=>{const R=Array.isArray(l)?l.includes(w):l[w]===!0,T=Array.isArray(l)?!R&&y.length>0?"invalid":void 0:vr(o[w])?"invalid":void 0;return D.jsx(aS,{id:`${r}_${w}`,checked:R,value:w,error:p?!!T:void 0,onChange:g(w),onBlur:S,disabled:d,children:x},w)})}),p&&y.length>0&&D.jsx(Fo,{role:"alert",children:tf(y,f)})]})}function U4(t,r){return vr(t)?pa(r)?t.all:["errors.checkboxGroup.invalid"]:[]}function $4(t){return!!(pa(t)&&si(t.items)&&t.items.enum||yn(t)&&Object.values(t.properties||{}).every(jo))}function B4(t,r,a){const l=new Set(t);return a?[...l.add(r)]:(l.delete(r),[...l])}function P4(t){var r;if(pa(t)&&si(t.items)&&t.items.enum){const a=[];for(let l=0;l<t.items.enum.length;l++)a.push([t.items.enum[l],((r=t.items.$enumNames)==null?void 0:r[l])||t.items.enum[l]]);return a}return yn(t)?Ic(Object.keys(t.properties||{}),(t.$bitiforms||{}).propertyOrder).map(a=>[a,t.properties[a].title]):[]}function q4({name:t,value:r,onChange:a,schema:l,errors:o,texts:s,path:f}){const d=ef(),m=g=>{const{checked:S}=g.currentTarget;return a({target:{name:t,value:S}})},v=d.value&&vr(o);return D.jsxs("div",{"data-field-path":f,children:[D.jsx(aS,{checked:r||!1,onChange:m,onBlur:d.enable,error:v,children:l.title}),v&&D.jsx(Fo,{role:"alert",children:s==null?void 0:s["errors.checkbox.required"]})]})}function k4(t){const{onBlur:r,onChange:a,error:l,schema:o,id:s,name:f,value:d,disabled:m,$bitiforms:v}=_o(t);return D.jsx(gf,{"data-field-path":t.path,name:f,type:"date",id:s,label:o.title,hint:o.description,error:l,value:d??"",onChange:a,onBlur:r,disabled:m,...v.widgetProps})}function F4({schema:t,path:r}){return!t.title&&!t.description&&!t.const?null:D.jsxs("div",{"data-bitiforms-helptext":!0,"data-field-path":r,children:[t.title&&D.jsx("h4",{children:t.title}),t.description||t.const||""]})}const V4=()=>null;function Y4({suffix:t="",...r}){const{$bitiforms:a,onBlur:l,onChange:o,error:s,schema:f,id:d,name:m,value:v,disabled:g}=_o(r,Q4),S=f.minimum||0,p=f.maximum||Number.MAX_SAFE_INTEGER,y=w=>{const x=w.currentTarget.name;switch(w.key){case"ArrowDown":return o({target:{name:x,value:Math.max(+v-1,S)}});case"ArrowUp":return o({target:{name:x,value:Math.min(+v+1,p)}})}};return D.jsx(gf,{"data-field-path":r.path,type:"tel",inputMode:"numeric",pattern:"[0-9]*",id:d,name:m,autoComplete:"off",placeholder:a.placeholder,error:s,label:f.title,autoFocus:a.autoFocus,...a.widgetProps,hint:f.description,value:v==null||v===""?"":v,onBlur:l,onChange:w=>{o({target:{name:w.currentTarget.name,value:w.currentTarget.value}})},onKeyDown:y,min:S,max:p,disabled:g,endAdornment:t})}function Q4(t){if(typeof t=="number")return t;let r=t;const a=t.lastIndexOf(",");if(a>-1&&(r=r.slice(0,a)),r=r.replace(/\D+/g,""),r.trim()==="")return null;const l=r.slice(0,15);return parseInt(l,10)}function K4(t){return D.jsx(xC,{...t})}const G4={email:"email"};function X4(t){return t.type==="string"&&t.format&&G4[t.format]||"text"}function zx({type:t,...r}){const{$bitiforms:a,onBlur:l,onChange:o,error:s,schema:f,id:d,name:m,value:v,disabled:g}=_o(r),S=X4(f);return D.jsx(gf,{"data-field-path":r.path,type:t||S,id:d,name:m,placeholder:a.placeholder,error:s,label:f.title,autoFocus:a.autoFocus,hint:f.description,value:v??"",startAdornment:r.startAdornment,endAdornment:r.endAdornment,onBlur:l,onChange:o,disabled:g,...a.widgetProps,autoComplete:typeof a.autoComplete=="string"?a.autoComplete:a.autoComplete===!1?"off":"on"})}function Z4(t){const r=Lv(!1);return D.jsx(zx,{...t,type:r.value?"text":"password",endAdornment:D.jsx(ci,{tabIndex:-1,variant:"text",style:{fontSize:32,lineHeight:1,padding:0},onClick:r.toggle,children:r.value?D.jsx(BC,{}):D.jsx($C,{})})})}const I4=({value:t,label:r,disabled:a})=>D.jsx(JA,{value:t,disabled:a,children:r});function J4({className:t,renderOption:r=I4,texts:a,...l}){const{values:o,fromSchemaValue:s,toSchemaValue:f}=B1(l.schema),{onBlur:d,onChange:m,schema:v,id:g,error:S,name:p,value:y,disabled:w}=_o(l,f);return D.jsxs("div",{"aria-labelledby":`${g}-legend`,"data-field-path":l.path,children:[D.jsx(xx,{error:!!S,id:`${g}-legend`,children:v.title}),v.description&&D.jsx(Nx,{id:`${g}_description`,children:v.description}),D.jsx(IA,{name:p,id:g,className:t,error:!!S,value:s(y)??"",onChange:m,onBlur:d,disabled:w,children:o.map(([x,R],T)=>D.jsx(E.Fragment,{children:r({value:x,label:R,disabled:w||!1,index:T})},x))}),S&&D.jsx(Fo,{children:a==null?void 0:a["errors.radiogroup.required"]})]})}function W4(t){const{values:r,fromSchemaValue:a,toSchemaValue:l}=B1(t.schema),{id:o,name:s,$bitiforms:f,error:d,schema:m,onChange:v,onBlur:g,value:S,disabled:p}=_o(t,l);return D.jsx(Dx,{"data-field-path":t.path,id:o,name:s,label:m.title,autoFocus:f.autoFocus,error:d,hint:m.description,value:a(S),onChange:v,onBlur:g,disabled:p,children:r.map(([y,w])=>D.jsx("option",{value:y,children:w},y))})}function e3({errors:t,onClose:r,title:a="Failed to submit"}){const{texts:l}=Qm(),o=Object.values(t);return D.jsx(K1,{intent:"error",title:a,onClose:r,children:D.jsx("ul",{children:o.map((s,f)=>D.jsx("li",{children:tf([s],l)},f))})})}const t3={ArrayWidget:L4,ObjectWidget:K4,CheckboxWidget:q4,CheckboxGroupWidget:H4,DateWidget:k4,HelpTextWidget:F4,HiddenWidget:V4,NumberWidget:Y4,PasswordWidget:Z4,RadioGroupWidget:J4,SelectWidget:W4,TextInputWidget:zx};var su=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zi=typeof window>"u"||"Deno"in globalThis;function tr(){}function n3(t,r){return typeof t=="function"?t(r):t}function Cm(t){return typeof t=="number"&&t>=0&&t!==1/0}function Lx(t,r){return Math.max(t+(r||0)-Date.now(),0)}function kl(t,r){return typeof t=="function"?t(r):t}function mr(t,r){return typeof t=="function"?t(r):t}function Ab(t,r){const{type:a="all",exact:l,fetchStatus:o,predicate:s,queryKey:f,stale:d}=t;if(f){if(l){if(r.queryHash!==Uv(f,r.options))return!1}else if(!Oo(r.queryKey,f))return!1}if(a!=="all"){const m=r.isActive();if(a==="active"&&!m||a==="inactive"&&m)return!1}return!(typeof d=="boolean"&&r.isStale()!==d||o&&o!==r.state.fetchStatus||s&&!s(r))}function Mb(t,r){const{exact:a,status:l,predicate:o,mutationKey:s}=t;if(s){if(!r.options.mutationKey)return!1;if(a){if(Ii(r.options.mutationKey)!==Ii(s))return!1}else if(!Oo(r.options.mutationKey,s))return!1}return!(l&&r.state.status!==l||o&&!o(r))}function Uv(t,r){return((r==null?void 0:r.queryKeyHashFn)||Ii)(t)}function Ii(t){return JSON.stringify(t,(r,a)=>Om(a)?Object.keys(a).sort().reduce((l,o)=>(l[o]=a[o],l),{}):a)}function Oo(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?!Object.keys(r).some(a=>!Oo(t[a],r[a])):!1}function Hx(t,r){if(t===r)return t;const a=jb(t)&&jb(r);if(a||Om(t)&&Om(r)){const l=a?t:Object.keys(t),o=l.length,s=a?r:Object.keys(r),f=s.length,d=a?[]:{};let m=0;for(let v=0;v<f;v++){const g=a?v:s[v];(!a&&l.includes(g)||a)&&t[g]===void 0&&r[g]===void 0?(d[g]=void 0,m++):(d[g]=Hx(t[g],r[g]),d[g]===t[g]&&t[g]!==void 0&&m++)}return o===f&&m===o?t:d}return r}function Vc(t,r){if(!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const a in t)if(t[a]!==r[a])return!1;return!0}function jb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Om(t){if(!_b(t))return!1;const r=t.constructor;if(r===void 0)return!0;const a=r.prototype;return!(!_b(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function _b(t){return Object.prototype.toString.call(t)==="[object Object]"}function r3(t){return new Promise(r=>{setTimeout(r,t)})}function Tm(t,r,a){return typeof a.structuralSharing=="function"?a.structuralSharing(t,r):a.structuralSharing!==!1?Hx(t,r):r}function a3(t,r,a=0){const l=[...t,r];return a&&l.length>a?l.slice(1):l}function i3(t,r,a=0){const l=[r,...t];return a&&l.length>a?l.slice(0,-1):l}var $v=Symbol();function Ux(t,r){return!t.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!t.queryFn||t.queryFn===$v?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var qi,Wa,Fl,d1,l3=(d1=class extends su{constructor(){super();De(this,qi);De(this,Wa);De(this,Fl);me(this,Fl,r=>{if(!Zi&&window.addEventListener){const a=()=>r();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){L(this,Wa)||this.setEventListener(L(this,Fl))}onUnsubscribe(){var r;this.hasListeners()||((r=L(this,Wa))==null||r.call(this),me(this,Wa,void 0))}setEventListener(r){var a;me(this,Fl,r),(a=L(this,Wa))==null||a.call(this),me(this,Wa,r(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(r){L(this,qi)!==r&&(me(this,qi,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(a=>{a(r)})}isFocused(){var r;return typeof L(this,qi)=="boolean"?L(this,qi):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},qi=new WeakMap,Wa=new WeakMap,Fl=new WeakMap,d1),Bv=new l3,Vl,ei,Yl,h1,u3=(h1=class extends su{constructor(){super();De(this,Vl,!0);De(this,ei);De(this,Yl);me(this,Yl,r=>{if(!Zi&&window.addEventListener){const a=()=>r(!0),l=()=>r(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",l)}}})}onSubscribe(){L(this,ei)||this.setEventListener(L(this,Yl))}onUnsubscribe(){var r;this.hasListeners()||((r=L(this,ei))==null||r.call(this),me(this,ei,void 0))}setEventListener(r){var a;me(this,Yl,r),(a=L(this,ei))==null||a.call(this),me(this,ei,r(this.setOnline.bind(this)))}setOnline(r){L(this,Vl)!==r&&(me(this,Vl,r),this.listeners.forEach(l=>{l(r)}))}isOnline(){return L(this,Vl)}},Vl=new WeakMap,ei=new WeakMap,Yl=new WeakMap,h1),Yc=new u3;function Rm(){let t,r;const a=new Promise((o,s)=>{t=o,r=s});a.status="pending",a.catch(()=>{});function l(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{l({status:"fulfilled",value:o}),t(o)},a.reject=o=>{l({status:"rejected",reason:o}),r(o)},a}function o3(t){return Math.min(1e3*2**t,3e4)}function $x(t){return(t??"online")==="online"?Yc.isOnline():!0}var Bx=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Jh(t){return t instanceof Bx}function Px(t){let r=!1,a=0,l=!1,o;const s=Rm(),f=x=>{var R;l||(p(new Bx(x)),(R=t.abort)==null||R.call(t))},d=()=>{r=!0},m=()=>{r=!1},v=()=>Bv.isFocused()&&(t.networkMode==="always"||Yc.isOnline())&&t.canRun(),g=()=>$x(t.networkMode)&&t.canRun(),S=x=>{var R;l||(l=!0,(R=t.onSuccess)==null||R.call(t,x),o==null||o(),s.resolve(x))},p=x=>{var R;l||(l=!0,(R=t.onError)==null||R.call(t,x),o==null||o(),s.reject(x))},y=()=>new Promise(x=>{var R;o=T=>{(l||v())&&x(T)},(R=t.onPause)==null||R.call(t)}).then(()=>{var x;o=void 0,l||(x=t.onContinue)==null||x.call(t)}),w=()=>{if(l)return;let x;const R=a===0?t.initialPromise:void 0;try{x=R??t.fn()}catch(T){x=Promise.reject(T)}Promise.resolve(x).then(S).catch(T=>{var q;if(l)return;const A=t.retry??(Zi?0:3),N=t.retryDelay??o3,j=typeof N=="function"?N(a,T):N,C=A===!0||typeof A=="number"&&a<A||typeof A=="function"&&A(a,T);if(r||!C){p(T);return}a++,(q=t.onFail)==null||q.call(t,a,T),r3(j).then(()=>v()?void 0:y()).then(()=>{r?p(T):w()})})};return{promise:s,cancel:f,continue:()=>(o==null||o(),s),cancelRetry:d,continueRetry:m,canStart:g,start:()=>(g()?w():y().then(w),s)}}function s3(){let t=[],r=0,a=d=>{d()},l=d=>{d()},o=d=>setTimeout(d,0);const s=d=>{r?t.push(d):o(()=>{a(d)})},f=()=>{const d=t;t=[],d.length&&o(()=>{l(()=>{d.forEach(m=>{a(m)})})})};return{batch:d=>{let m;r++;try{m=d()}finally{r--,r||f()}return m},batchCalls:d=>(...m)=>{s(()=>{d(...m)})},schedule:s,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{l=d},setScheduler:d=>{o=d}}}var Bt=s3(),ki,m1,qx=(m1=class{constructor(){De(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cm(this.gcTime)&&me(this,ki,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Zi?1/0:5*60*1e3))}clearGcTimeout(){L(this,ki)&&(clearTimeout(L(this,ki)),me(this,ki,void 0))}},ki=new WeakMap,m1),Ql,Kl,er,an,Ro,Fi,dr,oa,v1,c3=(v1=class extends qx{constructor(r){super();De(this,dr);De(this,Ql);De(this,Kl);De(this,er);De(this,an);De(this,Ro);De(this,Fi);me(this,Fi,!1),me(this,Ro,r.defaultOptions),this.setOptions(r.options),this.observers=[],me(this,er,r.cache),this.queryKey=r.queryKey,this.queryHash=r.queryHash,me(this,Ql,f3(this.options)),this.state=r.state??L(this,Ql),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=L(this,an))==null?void 0:r.promise}setOptions(r){this.options={...L(this,Ro),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&L(this,er).remove(this)}setData(r,a){const l=Tm(this.state.data,r,this.options);return Ue(this,dr,oa).call(this,{data:l,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),l}setState(r,a){Ue(this,dr,oa).call(this,{type:"setState",state:r,setStateOptions:a})}cancel(r){var l,o;const a=(l=L(this,an))==null?void 0:l.promise;return(o=L(this,an))==null||o.cancel(r),a?a.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(L(this,Ql))}isActive(){return this.observers.some(r=>mr(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$v||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!Lx(this.state.dataUpdatedAt,r)}onFocus(){var a;const r=this.observers.find(l=>l.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(a=L(this,an))==null||a.continue()}onOnline(){var a;const r=this.observers.find(l=>l.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(a=L(this,an))==null||a.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),L(this,er).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(a=>a!==r),this.observers.length||(L(this,an)&&(L(this,Fi)?L(this,an).cancel({revert:!0}):L(this,an).cancelRetry()),this.scheduleGc()),L(this,er).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ue(this,dr,oa).call(this,{type:"invalidate"})}fetch(r,a){var m,v,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(L(this,an))return L(this,an).continueRetry(),L(this,an).promise}if(r&&this.setOptions(r),!this.options.queryFn){const S=this.observers.find(p=>p.options.queryFn);S&&this.setOptions(S.options)}const l=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(me(this,Fi,!0),l.signal)})},s=()=>{const S=Ux(this.options,a),p={queryKey:this.queryKey,meta:this.meta};return o(p),me(this,Fi,!1),this.options.persister?this.options.persister(S,p,this):S(p)},f={fetchOptions:a,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(f),(m=this.options.behavior)==null||m.onFetch(f,this),me(this,Kl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=f.fetchOptions)==null?void 0:v.meta))&&Ue(this,dr,oa).call(this,{type:"fetch",meta:(g=f.fetchOptions)==null?void 0:g.meta});const d=S=>{var p,y,w,x;Jh(S)&&S.silent||Ue(this,dr,oa).call(this,{type:"error",error:S}),Jh(S)||((y=(p=L(this,er).config).onError)==null||y.call(p,S,this),(x=(w=L(this,er).config).onSettled)==null||x.call(w,this.state.data,S,this)),this.scheduleGc()};return me(this,an,Px({initialPromise:a==null?void 0:a.initialPromise,fn:f.fetchFn,abort:l.abort.bind(l),onSuccess:S=>{var p,y,w,x;if(S===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(S)}catch(R){d(R);return}(y=(p=L(this,er).config).onSuccess)==null||y.call(p,S,this),(x=(w=L(this,er).config).onSettled)==null||x.call(w,S,this.state.error,this),this.scheduleGc()},onError:d,onFail:(S,p)=>{Ue(this,dr,oa).call(this,{type:"failed",failureCount:S,error:p})},onPause:()=>{Ue(this,dr,oa).call(this,{type:"pause"})},onContinue:()=>{Ue(this,dr,oa).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),L(this,an).start()}},Ql=new WeakMap,Kl=new WeakMap,er=new WeakMap,an=new WeakMap,Ro=new WeakMap,Fi=new WeakMap,dr=new WeakSet,oa=function(r){const a=l=>{switch(r.type){case"failed":return{...l,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...kx(l.data,this.options),fetchMeta:r.meta??null};case"success":return{...l,data:r.data,dataUpdateCount:l.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=r.error;return Jh(o)&&o.revert&&L(this,Kl)?{...L(this,Kl),fetchStatus:"idle"}:{...l,error:o,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...r.state}}};this.state=a(this.state),Bt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),L(this,er).notify({query:this,type:"updated",action:r})})},v1);function kx(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$x(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function f3(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,a=r!==void 0,l=a?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:a?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Ar,p1,d3=(p1=class extends su{constructor(r={}){super();De(this,Ar);this.config=r,me(this,Ar,new Map)}build(r,a,l){const o=a.queryKey,s=a.queryHash??Uv(o,a);let f=this.get(s);return f||(f=new c3({cache:this,queryKey:o,queryHash:s,options:r.defaultQueryOptions(a),state:l,defaultOptions:r.getQueryDefaults(o)}),this.add(f)),f}add(r){L(this,Ar).has(r.queryHash)||(L(this,Ar).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const a=L(this,Ar).get(r.queryHash);a&&(r.destroy(),a===r&&L(this,Ar).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Bt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return L(this,Ar).get(r)}getAll(){return[...L(this,Ar).values()]}find(r){const a={exact:!0,...r};return this.getAll().find(l=>Ab(a,l))}findAll(r={}){const a=this.getAll();return Object.keys(r).length>0?a.filter(l=>Ab(r,l)):a}notify(r){Bt.batch(()=>{this.listeners.forEach(a=>{a(r)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Ar=new WeakMap,p1),Mr,vn,Vi,jr,Xa,g1,h3=(g1=class extends qx{constructor(r){super();De(this,jr);De(this,Mr);De(this,vn);De(this,Vi);this.mutationId=r.mutationId,me(this,vn,r.mutationCache),me(this,Mr,[]),this.state=r.state||Fx(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){L(this,Mr).includes(r)||(L(this,Mr).push(r),this.clearGcTimeout(),L(this,vn).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){me(this,Mr,L(this,Mr).filter(a=>a!==r)),this.scheduleGc(),L(this,vn).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){L(this,Mr).length||(this.state.status==="pending"?this.scheduleGc():L(this,vn).remove(this))}continue(){var r;return((r=L(this,Vi))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var o,s,f,d,m,v,g,S,p,y,w,x,R,T,A,N,j,C,q,B;me(this,Vi,Px({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(V,z)=>{Ue(this,jr,Xa).call(this,{type:"failed",failureCount:V,error:z})},onPause:()=>{Ue(this,jr,Xa).call(this,{type:"pause"})},onContinue:()=>{Ue(this,jr,Xa).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>L(this,vn).canRun(this)}));const a=this.state.status==="pending",l=!L(this,Vi).canStart();try{if(!a){Ue(this,jr,Xa).call(this,{type:"pending",variables:r,isPaused:l}),await((s=(o=L(this,vn).config).onMutate)==null?void 0:s.call(o,r,this));const z=await((d=(f=this.options).onMutate)==null?void 0:d.call(f,r));z!==this.state.context&&Ue(this,jr,Xa).call(this,{type:"pending",context:z,variables:r,isPaused:l})}const V=await L(this,Vi).start();return await((v=(m=L(this,vn).config).onSuccess)==null?void 0:v.call(m,V,r,this.state.context,this)),await((S=(g=this.options).onSuccess)==null?void 0:S.call(g,V,r,this.state.context)),await((y=(p=L(this,vn).config).onSettled)==null?void 0:y.call(p,V,null,this.state.variables,this.state.context,this)),await((x=(w=this.options).onSettled)==null?void 0:x.call(w,V,null,r,this.state.context)),Ue(this,jr,Xa).call(this,{type:"success",data:V}),V}catch(V){try{throw await((T=(R=L(this,vn).config).onError)==null?void 0:T.call(R,V,r,this.state.context,this)),await((N=(A=this.options).onError)==null?void 0:N.call(A,V,r,this.state.context)),await((C=(j=L(this,vn).config).onSettled)==null?void 0:C.call(j,void 0,V,this.state.variables,this.state.context,this)),await((B=(q=this.options).onSettled)==null?void 0:B.call(q,void 0,V,r,this.state.context)),V}finally{Ue(this,jr,Xa).call(this,{type:"error",error:V})}}finally{L(this,vn).runNext(this)}}},Mr=new WeakMap,vn=new WeakMap,Vi=new WeakMap,jr=new WeakSet,Xa=function(r){const a=l=>{switch(r.type){case"failed":return{...l,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...l,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:r.error,failureCount:l.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Bt.batch(()=>{L(this,Mr).forEach(l=>{l.onMutationUpdate(r)}),L(this,vn).notify({mutation:this,type:"updated",action:r})})},g1);function Fx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nn,Do,y1,m3=(y1=class extends su{constructor(r={}){super();De(this,Nn);De(this,Do);this.config=r,me(this,Nn,new Map),me(this,Do,Date.now())}build(r,a,l){const o=new h3({mutationCache:this,mutationId:++uc(this,Do)._,options:r.defaultMutationOptions(a),state:l});return this.add(o),o}add(r){const a=gc(r),l=L(this,Nn).get(a)??[];l.push(r),L(this,Nn).set(a,l),this.notify({type:"added",mutation:r})}remove(r){var l;const a=gc(r);if(L(this,Nn).has(a)){const o=(l=L(this,Nn).get(a))==null?void 0:l.filter(s=>s!==r);o&&(o.length===0?L(this,Nn).delete(a):L(this,Nn).set(a,o))}this.notify({type:"removed",mutation:r})}canRun(r){var l;const a=(l=L(this,Nn).get(gc(r)))==null?void 0:l.find(o=>o.state.status==="pending");return!a||a===r}runNext(r){var l;const a=(l=L(this,Nn).get(gc(r)))==null?void 0:l.find(o=>o!==r&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}clear(){Bt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}getAll(){return[...L(this,Nn).values()].flat()}find(r){const a={exact:!0,...r};return this.getAll().find(l=>Mb(a,l))}findAll(r={}){return this.getAll().filter(a=>Mb(r,a))}notify(r){Bt.batch(()=>{this.listeners.forEach(a=>{a(r)})})}resumePausedMutations(){const r=this.getAll().filter(a=>a.state.isPaused);return Bt.batch(()=>Promise.all(r.map(a=>a.continue().catch(tr))))}},Nn=new WeakMap,Do=new WeakMap,y1);function gc(t){var r;return((r=t.options.scope)==null?void 0:r.id)??String(t.mutationId)}function Nb(t){return{onFetch:(r,a)=>{var g,S,p,y,w;const l=r.options,o=(p=(S=(g=r.fetchOptions)==null?void 0:g.meta)==null?void 0:S.fetchMore)==null?void 0:p.direction,s=((y=r.state.data)==null?void 0:y.pages)||[],f=((w=r.state.data)==null?void 0:w.pageParams)||[];let d={pages:[],pageParams:[]},m=0;const v=async()=>{let x=!1;const R=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(r.signal.aborted?x=!0:r.signal.addEventListener("abort",()=>{x=!0}),r.signal)})},T=Ux(r.options,r.fetchOptions),A=async(N,j,C)=>{if(x)return Promise.reject();if(j==null&&N.pages.length)return Promise.resolve(N);const q={queryKey:r.queryKey,pageParam:j,direction:C?"backward":"forward",meta:r.options.meta};R(q);const B=await T(q),{maxPages:V}=r.options,z=C?i3:a3;return{pages:z(N.pages,B,V),pageParams:z(N.pageParams,j,V)}};if(o&&s.length){const N=o==="backward",j=N?v3:zb,C={pages:s,pageParams:f},q=j(l,C);d=await A(C,q,N)}else{const N=t??s.length;do{const j=m===0?f[0]??l.initialPageParam:zb(l,d);if(m>0&&j==null)break;d=await A(d,j),m++}while(m<N)}return d};r.options.persister?r.fetchFn=()=>{var x,R;return(R=(x=r.options).persister)==null?void 0:R.call(x,v,{queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},a)}:r.fetchFn=v}}}function zb(t,{pages:r,pageParams:a}){const l=r.length-1;return r.length>0?t.getNextPageParam(r[l],r,a[l],a):void 0}function v3(t,{pages:r,pageParams:a}){var l;return r.length>0?(l=t.getPreviousPageParam)==null?void 0:l.call(t,r[0],r,a[0],a):void 0}var Tt,ti,ni,Gl,Xl,ri,Zl,Il,b1,p3=(b1=class{constructor(t={}){De(this,Tt);De(this,ti);De(this,ni);De(this,Gl);De(this,Xl);De(this,ri);De(this,Zl);De(this,Il);me(this,Tt,t.queryCache||new d3),me(this,ti,t.mutationCache||new m3),me(this,ni,t.defaultOptions||{}),me(this,Gl,new Map),me(this,Xl,new Map),me(this,ri,0)}mount(){uc(this,ri)._++,L(this,ri)===1&&(me(this,Zl,Bv.subscribe(async t=>{t&&(await this.resumePausedMutations(),L(this,Tt).onFocus())})),me(this,Il,Yc.subscribe(async t=>{t&&(await this.resumePausedMutations(),L(this,Tt).onOnline())})))}unmount(){var t,r;uc(this,ri)._--,L(this,ri)===0&&((t=L(this,Zl))==null||t.call(this),me(this,Zl,void 0),(r=L(this,Il))==null||r.call(this),me(this,Il,void 0))}isFetching(t){return L(this,Tt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return L(this,ti).findAll({...t,status:"pending"}).length}getQueryData(t){var a;const r=this.defaultQueryOptions({queryKey:t});return(a=L(this,Tt).get(r.queryHash))==null?void 0:a.state.data}ensureQueryData(t){const r=this.getQueryData(t.queryKey);if(r===void 0)return this.fetchQuery(t);{const a=this.defaultQueryOptions(t),l=L(this,Tt).build(this,a);return t.revalidateIfStale&&l.isStaleByTime(kl(a.staleTime,l))&&this.prefetchQuery(a),Promise.resolve(r)}}getQueriesData(t){return L(this,Tt).findAll(t).map(({queryKey:r,state:a})=>{const l=a.data;return[r,l]})}setQueryData(t,r,a){const l=this.defaultQueryOptions({queryKey:t}),o=L(this,Tt).get(l.queryHash),s=o==null?void 0:o.state.data,f=n3(r,s);if(f!==void 0)return L(this,Tt).build(this,l).setData(f,{...a,manual:!0})}setQueriesData(t,r,a){return Bt.batch(()=>L(this,Tt).findAll(t).map(({queryKey:l})=>[l,this.setQueryData(l,r,a)]))}getQueryState(t){var a;const r=this.defaultQueryOptions({queryKey:t});return(a=L(this,Tt).get(r.queryHash))==null?void 0:a.state}removeQueries(t){const r=L(this,Tt);Bt.batch(()=>{r.findAll(t).forEach(a=>{r.remove(a)})})}resetQueries(t,r){const a=L(this,Tt),l={type:"active",...t};return Bt.batch(()=>(a.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries(l,r)))}cancelQueries(t,r={}){const a={revert:!0,...r},l=Bt.batch(()=>L(this,Tt).findAll(t).map(o=>o.cancel(a)));return Promise.all(l).then(tr).catch(tr)}invalidateQueries(t,r={}){return Bt.batch(()=>{if(L(this,Tt).findAll(t).forEach(l=>{l.invalidate()}),(t==null?void 0:t.refetchType)==="none")return Promise.resolve();const a={...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"};return this.refetchQueries(a,r)})}refetchQueries(t,r={}){const a={...r,cancelRefetch:r.cancelRefetch??!0},l=Bt.batch(()=>L(this,Tt).findAll(t).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,a);return a.throwOnError||(s=s.catch(tr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(l).then(tr)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const a=L(this,Tt).build(this,r);return a.isStaleByTime(kl(r.staleTime,a))?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(tr).catch(tr)}fetchInfiniteQuery(t){return t.behavior=Nb(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(tr).catch(tr)}ensureInfiniteQueryData(t){return t.behavior=Nb(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Yc.isOnline()?L(this,ti).resumePausedMutations():Promise.resolve()}getQueryCache(){return L(this,Tt)}getMutationCache(){return L(this,ti)}getDefaultOptions(){return L(this,ni)}setDefaultOptions(t){me(this,ni,t)}setQueryDefaults(t,r){L(this,Gl).set(Ii(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...L(this,Gl).values()],a={};return r.forEach(l=>{Oo(t,l.queryKey)&&Object.assign(a,l.defaultOptions)}),a}setMutationDefaults(t,r){L(this,Xl).set(Ii(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...L(this,Xl).values()];let a={};return r.forEach(l=>{Oo(t,l.mutationKey)&&(a={...a,...l.defaultOptions})}),a}defaultQueryOptions(t){if(t._defaulted)return t;const r={...L(this,ni).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=Uv(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.enabled!==!0&&r.queryFn===$v&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...L(this,ni).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){L(this,Tt).clear(),L(this,ti).clear()}},Tt=new WeakMap,ti=new WeakMap,ni=new WeakMap,Gl=new WeakMap,Xl=new WeakMap,ri=new WeakMap,Zl=new WeakMap,Il=new WeakMap,b1),wn,Ke,Ao,pn,Yi,Jl,ai,_r,Mo,Wl,eu,Qi,Ki,ii,tu,nt,go,Dm,Am,Mm,jm,_m,Nm,zm,Yx,S1,Vx=(S1=class extends su{constructor(r,a){super();De(this,nt);De(this,wn);De(this,Ke);De(this,Ao);De(this,pn);De(this,Yi);De(this,Jl);De(this,ai);De(this,_r);De(this,Mo);De(this,Wl);De(this,eu);De(this,Qi);De(this,Ki);De(this,ii);De(this,tu,new Set);this.options=a,me(this,wn,r),me(this,_r,null),me(this,ai,Rm()),this.options.experimental_prefetchInRender||L(this,ai).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(L(this,Ke).addObserver(this),Lb(L(this,Ke),this.options)?Ue(this,nt,go).call(this):this.updateResult(),Ue(this,nt,jm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lm(L(this,Ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lm(L(this,Ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ue(this,nt,_m).call(this),Ue(this,nt,Nm).call(this),L(this,Ke).removeObserver(this)}setOptions(r,a){const l=this.options,o=L(this,Ke);if(this.options=L(this,wn).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof mr(this.options.enabled,L(this,Ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ue(this,nt,zm).call(this),L(this,Ke).setOptions(this.options),l._defaulted&&!Vc(this.options,l)&&L(this,wn).getQueryCache().notify({type:"observerOptionsUpdated",query:L(this,Ke),observer:this});const s=this.hasListeners();s&&Hb(L(this,Ke),o,this.options,l)&&Ue(this,nt,go).call(this),this.updateResult(a),s&&(L(this,Ke)!==o||mr(this.options.enabled,L(this,Ke))!==mr(l.enabled,L(this,Ke))||kl(this.options.staleTime,L(this,Ke))!==kl(l.staleTime,L(this,Ke)))&&Ue(this,nt,Dm).call(this);const f=Ue(this,nt,Am).call(this);s&&(L(this,Ke)!==o||mr(this.options.enabled,L(this,Ke))!==mr(l.enabled,L(this,Ke))||f!==L(this,ii))&&Ue(this,nt,Mm).call(this,f)}getOptimisticResult(r){const a=L(this,wn).getQueryCache().build(L(this,wn),r),l=this.createResult(a,r);return y3(this,l)&&(me(this,pn,l),me(this,Jl,this.options),me(this,Yi,L(this,Ke).state)),l}getCurrentResult(){return L(this,pn)}trackResult(r,a){const l={};return Object.keys(r).forEach(o=>{Object.defineProperty(l,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),a==null||a(o),r[o])})}),l}trackProp(r){L(this,tu).add(r)}getCurrentQuery(){return L(this,Ke)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const a=L(this,wn).defaultQueryOptions(r),l=L(this,wn).getQueryCache().build(L(this,wn),a);return l.fetch().then(()=>this.createResult(l,a))}fetch(r){return Ue(this,nt,go).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),L(this,pn)))}createResult(r,a){var V;const l=L(this,Ke),o=this.options,s=L(this,pn),f=L(this,Yi),d=L(this,Jl),v=r!==l?r.state:L(this,Ao),{state:g}=r;let S={...g},p=!1,y;if(a._optimisticResults){const z=this.hasListeners(),X=!z&&Lb(r,a),te=z&&Hb(r,l,a,o);(X||te)&&(S={...S,...kx(g.data,r.options)}),a._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:w,errorUpdatedAt:x,status:R}=S;if(a.select&&S.data!==void 0)if(s&&S.data===(f==null?void 0:f.data)&&a.select===L(this,Mo))y=L(this,Wl);else try{me(this,Mo,a.select),y=a.select(S.data),y=Tm(s==null?void 0:s.data,y,a),me(this,Wl,y),me(this,_r,null)}catch(z){me(this,_r,z)}else y=S.data;if(a.placeholderData!==void 0&&y===void 0&&R==="pending"){let z;if(s!=null&&s.isPlaceholderData&&a.placeholderData===(d==null?void 0:d.placeholderData))z=s.data;else if(z=typeof a.placeholderData=="function"?a.placeholderData((V=L(this,eu))==null?void 0:V.state.data,L(this,eu)):a.placeholderData,a.select&&z!==void 0)try{z=a.select(z),me(this,_r,null)}catch(X){me(this,_r,X)}z!==void 0&&(R="success",y=Tm(s==null?void 0:s.data,z,a),p=!0)}L(this,_r)&&(w=L(this,_r),y=L(this,Wl),x=Date.now(),R="error");const T=S.fetchStatus==="fetching",A=R==="pending",N=R==="error",j=A&&T,C=y!==void 0,B={status:R,fetchStatus:S.fetchStatus,isPending:A,isSuccess:R==="success",isError:N,isInitialLoading:j,isLoading:j,data:y,dataUpdatedAt:S.dataUpdatedAt,error:w,errorUpdatedAt:x,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>v.dataUpdateCount||S.errorUpdateCount>v.errorUpdateCount,isFetching:T,isRefetching:T&&!A,isLoadingError:N&&!C,isPaused:S.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:N&&C,isStale:Pv(r,a),refetch:this.refetch,promise:L(this,ai)};if(this.options.experimental_prefetchInRender){const z=fe=>{B.status==="error"?fe.reject(B.error):B.data!==void 0&&fe.resolve(B.data)},X=()=>{const fe=me(this,ai,B.promise=Rm());z(fe)},te=L(this,ai);switch(te.status){case"pending":r.queryHash===l.queryHash&&z(te);break;case"fulfilled":(B.status==="error"||B.data!==te.value)&&X();break;case"rejected":(B.status!=="error"||B.error!==te.reason)&&X();break}}return B}updateResult(r){const a=L(this,pn),l=this.createResult(L(this,Ke),this.options);if(me(this,Yi,L(this,Ke).state),me(this,Jl,this.options),L(this,Yi).data!==void 0&&me(this,eu,L(this,Ke)),Vc(l,a))return;me(this,pn,l);const o={},s=()=>{if(!a)return!0;const{notifyOnChangeProps:f}=this.options,d=typeof f=="function"?f():f;if(d==="all"||!d&&!L(this,tu).size)return!0;const m=new Set(d??L(this,tu));return this.options.throwOnError&&m.add("error"),Object.keys(L(this,pn)).some(v=>{const g=v;return L(this,pn)[g]!==a[g]&&m.has(g)})};(r==null?void 0:r.listeners)!==!1&&s()&&(o.listeners=!0),Ue(this,nt,Yx).call(this,{...o,...r})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ue(this,nt,jm).call(this)}},wn=new WeakMap,Ke=new WeakMap,Ao=new WeakMap,pn=new WeakMap,Yi=new WeakMap,Jl=new WeakMap,ai=new WeakMap,_r=new WeakMap,Mo=new WeakMap,Wl=new WeakMap,eu=new WeakMap,Qi=new WeakMap,Ki=new WeakMap,ii=new WeakMap,tu=new WeakMap,nt=new WeakSet,go=function(r){Ue(this,nt,zm).call(this);let a=L(this,Ke).fetch(this.options,r);return r!=null&&r.throwOnError||(a=a.catch(tr)),a},Dm=function(){Ue(this,nt,_m).call(this);const r=kl(this.options.staleTime,L(this,Ke));if(Zi||L(this,pn).isStale||!Cm(r))return;const l=Lx(L(this,pn).dataUpdatedAt,r)+1;me(this,Qi,setTimeout(()=>{L(this,pn).isStale||this.updateResult()},l))},Am=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(L(this,Ke)):this.options.refetchInterval)??!1},Mm=function(r){Ue(this,nt,Nm).call(this),me(this,ii,r),!(Zi||mr(this.options.enabled,L(this,Ke))===!1||!Cm(L(this,ii))||L(this,ii)===0)&&me(this,Ki,setInterval(()=>{(this.options.refetchIntervalInBackground||Bv.isFocused())&&Ue(this,nt,go).call(this)},L(this,ii)))},jm=function(){Ue(this,nt,Dm).call(this),Ue(this,nt,Mm).call(this,Ue(this,nt,Am).call(this))},_m=function(){L(this,Qi)&&(clearTimeout(L(this,Qi)),me(this,Qi,void 0))},Nm=function(){L(this,Ki)&&(clearInterval(L(this,Ki)),me(this,Ki,void 0))},zm=function(){const r=L(this,wn).getQueryCache().build(L(this,wn),this.options);if(r===L(this,Ke))return;const a=L(this,Ke);me(this,Ke,r),me(this,Ao,r.state),this.hasListeners()&&(a==null||a.removeObserver(this),r.addObserver(this))},Yx=function(r){Bt.batch(()=>{r.listeners&&this.listeners.forEach(a=>{a(L(this,pn))}),L(this,wn).getQueryCache().notify({query:L(this,Ke),type:"observerResultsUpdated"})})},S1);function g3(t,r){return mr(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function Lb(t,r){return g3(t,r)||t.state.data!==void 0&&Lm(t,r,r.refetchOnMount)}function Lm(t,r,a){if(mr(r.enabled,t)!==!1){const l=typeof a=="function"?a(t):a;return l==="always"||l!==!1&&Pv(t,r)}return!1}function Hb(t,r,a,l){return(t!==r||mr(l.enabled,t)===!1)&&(!a.suspense||t.state.status!=="error")&&Pv(t,a)}function Pv(t,r){return mr(r.enabled,t)!==!1&&t.isStaleByTime(kl(r.staleTime,t))}function y3(t,r){return!Vc(t.getCurrentResult(),r)}var li,ui,Cn,sa,da,Oc,Hm,x1,b3=(x1=class extends su{constructor(a,l){super();De(this,da);De(this,li);De(this,ui);De(this,Cn);De(this,sa);me(this,li,a),this.setOptions(l),this.bindMethods(),Ue(this,da,Oc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var o;const l=this.options;this.options=L(this,li).defaultMutationOptions(a),Vc(this.options,l)||L(this,li).getMutationCache().notify({type:"observerOptionsUpdated",mutation:L(this,Cn),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Ii(l.mutationKey)!==Ii(this.options.mutationKey)?this.reset():((o=L(this,Cn))==null?void 0:o.state.status)==="pending"&&L(this,Cn).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=L(this,Cn))==null||a.removeObserver(this)}onMutationUpdate(a){Ue(this,da,Oc).call(this),Ue(this,da,Hm).call(this,a)}getCurrentResult(){return L(this,ui)}reset(){var a;(a=L(this,Cn))==null||a.removeObserver(this),me(this,Cn,void 0),Ue(this,da,Oc).call(this),Ue(this,da,Hm).call(this)}mutate(a,l){var o;return me(this,sa,l),(o=L(this,Cn))==null||o.removeObserver(this),me(this,Cn,L(this,li).getMutationCache().build(L(this,li),this.options)),L(this,Cn).addObserver(this),L(this,Cn).execute(a)}},li=new WeakMap,ui=new WeakMap,Cn=new WeakMap,sa=new WeakMap,da=new WeakSet,Oc=function(){var l;const a=((l=L(this,Cn))==null?void 0:l.state)??Fx();me(this,ui,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Hm=function(a){Bt.batch(()=>{var l,o,s,f,d,m,v,g;if(L(this,sa)&&this.hasListeners()){const S=L(this,ui).variables,p=L(this,ui).context;(a==null?void 0:a.type)==="success"?((o=(l=L(this,sa)).onSuccess)==null||o.call(l,a.data,S,p),(f=(s=L(this,sa)).onSettled)==null||f.call(s,a.data,null,S,p)):(a==null?void 0:a.type)==="error"&&((m=(d=L(this,sa)).onError)==null||m.call(d,a.error,S,p),(g=(v=L(this,sa)).onSettled)==null||g.call(v,void 0,a.error,S,p))}this.listeners.forEach(S=>{S(L(this,ui))})})},x1),Qx=E.createContext(void 0),yf=t=>{const r=E.useContext(Qx);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},S3=({client:t,children:r})=>(E.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),D.jsx(Qx.Provider,{value:t,children:r})),Kx=E.createContext(!1),x3=()=>E.useContext(Kx);Kx.Provider;function E3(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var w3=E.createContext(E3()),C3=()=>E.useContext(w3);function Gx(t,r){return typeof t=="function"?t(...r):!!t}function Um(){}var O3=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},T3=t=>{E.useEffect(()=>{t.clearReset()},[t])},R3=({result:t,errorResetBoundary:r,throwOnError:a,query:l})=>t.isError&&!r.isReset()&&!t.isFetching&&l&&Gx(a,[t.error,l]),D3=(t,r)=>r.state.data===void 0,A3=t=>{t.suspense&&(t.staleTime===void 0&&(t.staleTime=1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},M3=(t,r)=>t.isLoading&&t.isFetching&&!r,j3=(t,r)=>(t==null?void 0:t.suspense)&&r.isPending,Ub=(t,r,a)=>r.fetchOptimistic(t).catch(()=>{a.clearReset()});function Xx(t,r,a){var g,S,p,y,w;const l=yf(),o=x3(),s=C3(),f=l.defaultQueryOptions(t);(S=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||S.call(g,f),f._optimisticResults=o?"isRestoring":"optimistic",A3(f),O3(f,s),T3(s);const d=!l.getQueryCache().get(f.queryHash),[m]=E.useState(()=>new r(l,f)),v=m.getOptimisticResult(f);if(E.useSyncExternalStore(E.useCallback(x=>{const R=o?Um:m.subscribe(Bt.batchCalls(x));return m.updateResult(),R},[m,o]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),E.useEffect(()=>{m.setOptions(f,{listeners:!1})},[f,m]),j3(f,v))throw Ub(f,m,s);if(R3({result:v,errorResetBoundary:s,throwOnError:f.throwOnError,query:l.getQueryCache().get(f.queryHash)}))throw v.error;if((y=(p=l.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||y.call(p,f,v),f.experimental_prefetchInRender&&!Zi&&M3(v,o)){const x=d?Ub(f,m,s):(w=l.getQueryCache().get(f.queryHash))==null?void 0:w.promise;x==null||x.catch(Um).finally(()=>{m.updateResult()})}return f.notifyOnChangeProps?v:m.trackResult(v)}function _3(t,r){return Xx(t,Vx)}function qv(t,r){return Xx({...t,enabled:!0,suspense:!0,throwOnError:D3,placeholderData:void 0},Vx)}function Zx(t,r){const a=yf(),[l]=E.useState(()=>new b3(a,t));E.useEffect(()=>{l.setOptions(t)},[l,t]);const o=E.useSyncExternalStore(E.useCallback(f=>l.subscribe(Bt.batchCalls(f)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),s=E.useCallback((f,d)=>{l.mutate(f,d).catch(Um)},[l]);if(o.error&&Gx(l.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}var Wh={exports:{}},fo={},em={exports:{}},tm={};/**
39
- * @license React
40
- * scheduler.production.js
41
- *
42
- * Copyright (c) Meta Platforms, Inc. and affiliates.
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE file in the root directory of this source tree.
46
- */var $b;function N3(){return $b||($b=1,function(t){function r(U,I){var ne=U.length;U.push(I);e:for(;0<ne;){var K=ne-1>>>1,M=U[K];if(0<o(M,I))U[K]=I,U[ne]=M,ne=K;else break e}}function a(U){return U.length===0?null:U[0]}function l(U){if(U.length===0)return null;var I=U[0],ne=U.pop();if(ne!==I){U[0]=ne;e:for(var K=0,M=U.length,F=M>>>1;K<F;){var se=2*(K+1)-1,de=U[se],ce=se+1,ye=U[ce];if(0>o(de,ne))ce<M&&0>o(ye,de)?(U[K]=ye,U[ce]=ne,K=ce):(U[K]=de,U[se]=ne,K=se);else if(ce<M&&0>o(ye,ne))U[K]=ye,U[ce]=ne,K=ce;else break e}}return I}function o(U,I){var ne=U.sortIndex-I.sortIndex;return ne!==0?ne:U.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var f=Date,d=f.now();t.unstable_now=function(){return f.now()-d}}var m=[],v=[],g=1,S=null,p=3,y=!1,w=!1,x=!1,R=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function N(U){for(var I=a(v);I!==null;){if(I.callback===null)l(v);else if(I.startTime<=U)l(v),I.sortIndex=I.expirationTime,r(m,I);else break;I=a(v)}}function j(U){if(x=!1,N(U),!w)if(a(m)!==null)w=!0,ae();else{var I=a(v);I!==null&&ie(j,I.startTime-U)}}var C=!1,q=-1,B=5,V=-1;function z(){return!(t.unstable_now()-V<B)}function X(){if(C){var U=t.unstable_now();V=U;var I=!0;try{e:{w=!1,x&&(x=!1,T(q),q=-1),y=!0;var ne=p;try{t:{for(N(U),S=a(m);S!==null&&!(S.expirationTime>U&&z());){var K=S.callback;if(typeof K=="function"){S.callback=null,p=S.priorityLevel;var M=K(S.expirationTime<=U);if(U=t.unstable_now(),typeof M=="function"){S.callback=M,N(U),I=!0;break t}S===a(m)&&l(m),N(U)}else l(m);S=a(m)}if(S!==null)I=!0;else{var F=a(v);F!==null&&ie(j,F.startTime-U),I=!1}}break e}finally{S=null,p=ne,y=!1}I=void 0}}finally{I?te():C=!1}}}var te;if(typeof A=="function")te=function(){A(X)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,Z=fe.port2;fe.port1.onmessage=X,te=function(){Z.postMessage(null)}}else te=function(){R(X,0)};function ae(){C||(C=!0,te())}function ie(U,I){q=R(function(){U(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_continueExecution=function(){w||y||(w=!0,ae())},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return a(m)},t.unstable_next=function(U){switch(p){case 1:case 2:case 3:var I=3;break;default:I=p}var ne=p;p=I;try{return U()}finally{p=ne}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,I){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ne=p;p=U;try{return I()}finally{p=ne}},t.unstable_scheduleCallback=function(U,I,ne){var K=t.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?K+ne:K):ne=K,U){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=ne+M,U={id:g++,callback:I,priorityLevel:U,startTime:ne,expirationTime:M,sortIndex:-1},ne>K?(U.sortIndex=ne,r(v,U),a(m)===null&&U===a(v)&&(x?(T(q),q=-1):x=!0,ie(j,ne-K))):(U.sortIndex=M,r(m,U),w||y||(w=!0,ae())),U},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(U){var I=p;return function(){var ne=p;p=I;try{return U.apply(this,arguments)}finally{p=ne}}}}(tm)),tm}var Bb;function z3(){return Bb||(Bb=1,em.exports=N3()),em.exports}/**
47
- * @license React
48
- * react-dom-client.production.js
49
- *
50
- * Copyright (c) Meta Platforms, Inc. and affiliates.
51
- *
52
- * This source code is licensed under the MIT license found in the
53
- * LICENSE file in the root directory of this source tree.
54
- */var Pb;function L3(){if(Pb)return fo;Pb=1;var t=z3(),r=Zc(),a=VS();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var s=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),p=Symbol.for("react.consumer"),y=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),j=Symbol.for("react.memo_cache_sentinel"),C=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=C&&e[C]||e["@@iterator"],typeof e=="function"?e:null)}var B=Symbol.for("react.client.reference");function V(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===B?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case d:return"Portal";case g:return"Profiler";case v:return"StrictMode";case x:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:return(e.displayName||"Context")+".Provider";case p:return(e._context.displayName||"Context")+".Consumer";case w:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return n=e.displayName||null,n!==null?n:V(e.type)||"Memo";case A:n=e._payload,e=e._init;try{return V(e(n))}catch{}}return null}var z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.assign,te,fe;function Z(e){if(te===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);te=n&&n[1]||"",fe=-1<i.stack.indexOf(`
55
- at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
56
- `+te+e+fe}var ae=!1;function ie(e,n){if(!e||ae)return"";ae=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(W){var G=W}Reflect.construct(e,[],ue)}else{try{ue.call()}catch(W){G=W}e.call(ue.prototype)}}else{try{throw Error()}catch(W){G=W}(ue=e())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(W){if(W&&G&&typeof W.stack=="string")return[W.stack,G.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),b=h[0],O=h[1];if(b&&O){var _=b.split(`
57
- `),P=O.split(`
58
- `);for(c=u=0;u<_.length&&!_[u].includes("DetermineComponentFrameRoot");)u++;for(;c<P.length&&!P[c].includes("DetermineComponentFrameRoot");)c++;if(u===_.length||c===P.length)for(u=_.length-1,c=P.length-1;1<=u&&0<=c&&_[u]!==P[c];)c--;for(;1<=u&&0<=c;u--,c--)if(_[u]!==P[c]){if(u!==1||c!==1)do if(u--,c--,0>c||_[u]!==P[c]){var ee=`
59
- `+_[u].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=u&&0<=c);break}}}finally{ae=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Z(i):""}function U(e){switch(e.tag){case 26:case 27:case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 15:return e=ie(e.type,!1),e;case 11:return e=ie(e.type.render,!1),e;case 1:return e=ie(e.type,!0),e;default:return""}}function I(e){try{var n="";do n+=U(e),e=e.return;while(e);return n}catch(i){return`
60
- Error generating stack: `+i.message+`
61
- `+i.stack}}function ne(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function K(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function M(e){if(ne(e)!==e)throw Error(l(188))}function F(e){var n=e.alternate;if(!n){if(n=ne(e),n===null)throw Error(l(188));return n!==e?null:e}for(var i=e,u=n;;){var c=i.return;if(c===null)break;var h=c.alternate;if(h===null){if(u=c.return,u!==null){i=u;continue}break}if(c.child===h.child){for(h=c.child;h;){if(h===i)return M(c),e;if(h===u)return M(c),n;h=h.sibling}throw Error(l(188))}if(i.return!==u.return)i=c,u=h;else{for(var b=!1,O=c.child;O;){if(O===i){b=!0,i=c,u=h;break}if(O===u){b=!0,u=c,i=h;break}O=O.sibling}if(!b){for(O=h.child;O;){if(O===i){b=!0,i=h,u=c;break}if(O===u){b=!0,u=h,i=c;break}O=O.sibling}if(!b)throw Error(l(189))}}if(i.alternate!==u)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:n}function se(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=se(e),n!==null)return n;e=e.sibling}return null}var de=Array.isArray,ce=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},Te=[],mt=-1;function _e(e){return{current:e}}function je(e){0>mt||(e.current=Te[mt],Te[mt]=null,mt--)}function Ne(e,n){mt++,Te[mt]=e.current,e.current=n}var Mt=_e(null),bn=_e(null),dt=_e(null),ln=_e(null);function On(e,n){switch(Ne(dt,n),Ne(bn,e),Ne(Mt,null),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?Wg(n):0;break;default:if(e=e===8?n.parentNode:n,n=e.tagName,e=e.namespaceURI)e=Wg(e),n=ey(e,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}je(Mt),Ne(Mt,n)}function en(){je(Mt),je(bn),je(dt)}function Pn(e){e.memoizedState!==null&&Ne(ln,e);var n=Mt.current,i=ey(n,e.type);n!==i&&(Ne(bn,e),Ne(Mt,i))}function Se(e){bn.current===e&&(je(Mt),je(bn)),ln.current===e&&(je(ln),Wu._currentValue=ye)}var Fe=Object.prototype.hasOwnProperty,xt=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,Rt=t.unstable_shouldYield,un=t.unstable_requestPaint,jt=t.unstable_now,on=t.unstable_getCurrentPriorityLevel,sn=t.unstable_ImmediatePriority,cu=t.unstable_UserBlockingPriority,xa=t.unstable_NormalPriority,xf=t.unstable_LowPriority,rr=t.unstable_IdlePriority,Go=t.log,Xo=t.unstable_setDisableYieldValue,Ea=null,cn=null;function Zo(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(Ea,e,void 0,(e.current.flags&128)===128)}catch{}}function Tn(e){if(typeof Go=="function"&&Xo(e),cn&&typeof cn.setStrictMode=="function")try{cn.setStrictMode(Ea,e)}catch{}}var tn=Math.clz32?Math.clz32:Io,fu=Math.log,Ef=Math.LN2;function Io(e){return e>>>=0,e===0?32:31-(fu(e)/Ef|0)|0}var rl=128,gi=4194304;function qn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fr(e,n){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,h=e.pingedLanes,b=e.warmLanes;e=e.finishedLanes!==0;var O=i&134217727;return O!==0?(i=O&~c,i!==0?u=qn(i):(h&=O,h!==0?u=qn(h):e||(b=O&~b,b!==0&&(u=qn(b))))):(O=i&~c,O!==0?u=qn(O):h!==0?u=qn(h):e||(b=i&~b,b!==0&&(u=qn(b)))),u===0?0:n!==0&&n!==u&&!(n&c)&&(c=u&-u,b=n&-n,c>=b||c===32&&(b&4194176)!==0)?n:u}function yi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function wf(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+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 H(){var e=rl;return rl<<=1,!(rl&4194176)&&(rl=128),e}function Y(){var e=gi;return gi<<=1,!(gi&62914560)&&(gi=4194304),e}function J(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function le(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ve(e,n,i,u,c,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var O=e.entanglements,_=e.expirationTimes,P=e.hiddenUpdates;for(i=b&~i;0<i;){var ee=31-tn(i),ue=1<<ee;O[ee]=0,_[ee]=-1;var G=P[ee];if(G!==null)for(P[ee]=null,ee=0;ee<G.length;ee++){var W=G[ee];W!==null&&(W.lane&=-536870913)}i&=~ue}u!==0&&Ee(e,u,0),h!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function Ee(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-tn(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|i&4194218}function Me(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var u=31-tn(i),c=1<<u;c&n|e[u]&n&&(e[u]|=n),i&=~c}}function pe(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function xe(){var e=ce.p;return e!==0?e:(e=window.event,e===void 0?32:yy(e.type))}function he(e,n){var i=ce.p;try{return ce.p=e,n()}finally{ce.p=i}}var Re=Math.random().toString(36).slice(2),Oe="__reactFiber$"+Re,$e="__reactProps$"+Re,vt="__reactContainer$"+Re,ot="__reactEvents$"+Re,st="__reactListeners$"+Re,Dt="__reactHandles$"+Re,Vr="__reactResources$"+Re,ar="__reactMarker$"+Re;function Rn(e){delete e[Oe],delete e[$e],delete e[ot],delete e[st],delete e[Dt]}function qt(e){var n=e[Oe];if(n)return n;for(var i=e.parentNode;i;){if(n=i[vt]||i[Oe]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=ry(e);e!==null;){if(i=e[Oe])return i;e=ry(e)}return n}e=i,i=e.parentNode}return null}function xr(e){if(e=e[Oe]||e[vt]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function ir(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function Sn(e){var n=e[Vr];return n||(n=e[Vr]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function yt(e){e[ar]=!0}var bi=new Set,rt={};function pt(e,n){lr(e,n),lr(e+"Capture",n)}function lr(e,n){for(rt[e]=n,e=0;e<n.length;e++)bi.add(n[e])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Et=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]*$"),Yr={},du={};function Cf(e){return Fe.call(du,e)?!0:Fe.call(Yr,e)?!1:Et.test(e)?du[e]=!0:(Yr[e]=!0,!1)}function Jo(e,n,i){if(Cf(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Wo(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Qr(e,n,i,u){if(u===null)e.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+u)}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function E2(e){var n=tp(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),u=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,h=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(b){u=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return u},setValue:function(b){u=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function es(e){e._valueTracker||(e._valueTracker=E2(e))}function np(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),u="";return e&&(u=tp(e)?e.checked?"true":"false":e.value),e=u,e!==i?(n.setValue(e),!0):!1}function ts(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var w2=/[\n"\\]/g;function Fn(e){return e.replace(w2,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Of(e,n,i,u,c,h,b,O){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+kn(n)):e.value!==""+kn(n)&&(e.value=""+kn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Tf(e,b,kn(n)):i!=null?Tf(e,b,kn(i)):u!=null&&e.removeAttribute("value"),c==null&&h!=null&&(e.defaultChecked=!!h),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?e.name=""+kn(O):e.removeAttribute("name")}function rp(e,n,i,u,c,h,b,O){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null))return;i=i!=null?""+kn(i):"",n=n!=null?""+kn(n):i,O||n===e.value||(e.value=n),e.defaultValue=n}u=u??c,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=O?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function Tf(e,n,i){n==="number"&&ts(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function al(e,n,i,u){if(e=e.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=n.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&u&&(e[i].defaultSelected=!0)}else{for(i=""+kn(i),n=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,u&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function ap(e,n,i){if(n!=null&&(n=""+kn(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+kn(i):""}function ip(e,n,i,u){if(n==null){if(u!=null){if(i!=null)throw Error(l(92));if(de(u)){if(1<u.length)throw Error(l(93));u=u[0]}i=u}i==null&&(i=""),n=i}i=kn(n),e.defaultValue=i,u=e.textContent,u===i&&u!==""&&u!==null&&(e.value=u)}function il(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var C2=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 lp(e,n,i){var u=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,i):typeof i!="number"||i===0||C2.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function up(e,n,i){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,i!=null){for(var u in i)!i.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var c in n)u=n[c],n.hasOwnProperty(c)&&i[c]!==u&&lp(e,c,u)}else for(var h in n)n.hasOwnProperty(h)&&lp(e,h,n[h])}function Rf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var O2=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"],["colorRendering","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"]]),T2=/^[\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 ns(e){return T2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Df=null;function Af(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ll=null,ul=null;function op(e){var n=xr(e);if(n&&(e=n.stateNode)){var i=e[$e]||null;e:switch(e=n.stateNode,n.type){case"input":if(Of(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Fn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var u=i[n];if(u!==e&&u.form===e.form){var c=u[$e]||null;if(!c)throw Error(l(90));Of(u,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<i.length;n++)u=i[n],u.form===e.form&&np(u)}break e;case"textarea":ap(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&al(e,!!i.multiple,n,!1)}}}var Mf=!1;function sp(e,n,i){if(Mf)return e(n,i);Mf=!0;try{var u=e(n);return u}finally{if(Mf=!1,(ll!==null||ul!==null)&&(qs(),ll&&(n=ll,e=ul,ul=ll=null,op(n),e)))for(n=0;n<e.length;n++)op(e[n])}}function hu(e,n){var i=e.stateNode;if(i===null)return null;var u=i[$e]||null;if(u===null)return null;i=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,n,typeof i));return i}var jf=!1;if(fn)try{var mu={};Object.defineProperty(mu,"passive",{get:function(){jf=!0}}),window.addEventListener("test",mu,mu),window.removeEventListener("test",mu,mu)}catch{jf=!1}var wa=null,_f=null,rs=null;function cp(){if(rs)return rs;var e,n=_f,i=n.length,u,c="value"in wa?wa.value:wa.textContent,h=c.length;for(e=0;e<i&&n[e]===c[e];e++);var b=i-e;for(u=1;u<=b&&n[i-u]===c[h-u];u++);return rs=c.slice(e,1<u?1-u:void 0)}function as(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function is(){return!0}function fp(){return!1}function xn(e){function n(i,u,c,h,b){this._reactName=i,this._targetInst=c,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var O in e)e.hasOwnProperty(O)&&(i=e[O],this[O]=i?i(h):h[O]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?is:fp,this.isPropagationStopped=fp,this}return X(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=is)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=is)},persist:function(){},isPersistent:is}),n}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ls=xn(Si),vu=X({},Si,{view:0,detail:0}),R2=xn(vu),Nf,zf,pu,us=X({},vu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pu&&(pu&&e.type==="mousemove"?(Nf=e.screenX-pu.screenX,zf=e.screenY-pu.screenY):zf=Nf=0,pu=e),Nf)},movementY:function(e){return"movementY"in e?e.movementY:zf}}),dp=xn(us),D2=X({},us,{dataTransfer:0}),A2=xn(D2),M2=X({},vu,{relatedTarget:0}),Lf=xn(M2),j2=X({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),_2=xn(j2),N2=X({},Si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),z2=xn(N2),L2=X({},Si,{data:0}),hp=xn(L2),H2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U2={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"},$2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B2(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=$2[e])?!!n[e]:!1}function Hf(){return B2}var P2=X({},vu,{key:function(e){if(e.key){var n=H2[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=as(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?U2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hf,charCode:function(e){return e.type==="keypress"?as(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?as(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q2=xn(P2),k2=X({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mp=xn(k2),F2=X({},vu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hf}),V2=xn(F2),Y2=X({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q2=xn(Y2),K2=X({},us,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),G2=xn(K2),X2=X({},Si,{newState:0,oldState:0}),Z2=xn(X2),I2=[9,13,27,32],Uf=fn&&"CompositionEvent"in window,gu=null;fn&&"documentMode"in document&&(gu=document.documentMode);var J2=fn&&"TextEvent"in window&&!gu,vp=fn&&(!Uf||gu&&8<gu&&11>=gu),pp=" ",gp=!1;function yp(e,n){switch(e){case"keyup":return I2.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ol=!1;function W2(e,n){switch(e){case"compositionend":return bp(n);case"keypress":return n.which!==32?null:(gp=!0,pp);case"textInput":return e=n.data,e===pp&&gp?null:e;default:return null}}function eE(e,n){if(ol)return e==="compositionend"||!Uf&&yp(e,n)?(e=cp(),rs=_f=wa=null,ol=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return vp&&n.locale!=="ko"?null:n.data;default:return null}}var tE={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 Sp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!tE[e.type]:n==="textarea"}function xp(e,n,i,u){ll?ul?ul.push(u):ul=[u]:ll=u,n=Qs(n,"onChange"),0<n.length&&(i=new ls("onChange","change",null,i,u),e.push({event:i,listeners:n}))}var yu=null,bu=null;function nE(e){Gg(e,0)}function os(e){var n=ir(e);if(np(n))return e}function Ep(e,n){if(e==="change")return n}var wp=!1;if(fn){var $f;if(fn){var Bf="oninput"in document;if(!Bf){var Cp=document.createElement("div");Cp.setAttribute("oninput","return;"),Bf=typeof Cp.oninput=="function"}$f=Bf}else $f=!1;wp=$f&&(!document.documentMode||9<document.documentMode)}function Op(){yu&&(yu.detachEvent("onpropertychange",Tp),bu=yu=null)}function Tp(e){if(e.propertyName==="value"&&os(bu)){var n=[];xp(n,bu,e,Af(e)),sp(nE,n)}}function rE(e,n,i){e==="focusin"?(Op(),yu=n,bu=i,yu.attachEvent("onpropertychange",Tp)):e==="focusout"&&Op()}function aE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(bu)}function iE(e,n){if(e==="click")return os(n)}function lE(e,n){if(e==="input"||e==="change")return os(n)}function uE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Dn=typeof Object.is=="function"?Object.is:uE;function Su(e,n){if(Dn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),u=Object.keys(n);if(i.length!==u.length)return!1;for(u=0;u<i.length;u++){var c=i[u];if(!Fe.call(n,c)||!Dn(e[c],n[c]))return!1}return!0}function Rp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dp(e,n){var i=Rp(e);e=0;for(var u;i;){if(i.nodeType===3){if(u=e+i.textContent.length,e<=n&&u>=n)return{node:i,offset:n-e};e=u}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Rp(i)}}function Ap(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Ap(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Mp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ts(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=ts(e.document)}return n}function Pf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function oE(e,n){var i=Mp(n);n=e.focusedElem;var u=e.selectionRange;if(i!==n&&n&&n.ownerDocument&&Ap(n.ownerDocument.documentElement,n)){if(u!==null&&Pf(n)){if(e=u.start,i=u.end,i===void 0&&(i=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(i,n.value.length);else if(i=(e=n.ownerDocument||document)&&e.defaultView||window,i.getSelection){i=i.getSelection();var c=n.textContent.length,h=Math.min(u.start,c);u=u.end===void 0?h:Math.min(u.end,c),!i.extend&&h>u&&(c=u,u=h,h=c),c=Dp(n,h);var b=Dp(n,u);c&&b&&(i.rangeCount!==1||i.anchorNode!==c.node||i.anchorOffset!==c.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(e=e.createRange(),e.setStart(c.node,c.offset),i.removeAllRanges(),h>u?(i.addRange(e),i.extend(b.node,b.offset)):(e.setEnd(b.node,b.offset),i.addRange(e)))}}for(e=[],i=n;i=i.parentNode;)i.nodeType===1&&e.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)i=e[n],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var sE=fn&&"documentMode"in document&&11>=document.documentMode,sl=null,qf=null,xu=null,kf=!1;function jp(e,n,i){var u=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;kf||sl==null||sl!==ts(u)||(u=sl,"selectionStart"in u&&Pf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),xu&&Su(xu,u)||(xu=u,u=Qs(qf,"onSelect"),0<u.length&&(n=new ls("onSelect","select",null,n,i),e.push({event:n,listeners:u}),n.target=sl)))}function xi(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var cl={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},Ff={},_p={};fn&&(_p=document.createElement("div").style,"AnimationEvent"in window||(delete cl.animationend.animation,delete cl.animationiteration.animation,delete cl.animationstart.animation),"TransitionEvent"in window||delete cl.transitionend.transition);function Ei(e){if(Ff[e])return Ff[e];if(!cl[e])return e;var n=cl[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in _p)return Ff[e]=n[i];return e}var Np=Ei("animationend"),zp=Ei("animationiteration"),Lp=Ei("animationstart"),cE=Ei("transitionrun"),fE=Ei("transitionstart"),dE=Ei("transitioncancel"),Hp=Ei("transitionend"),Up=new Map,$p="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 scrollEnd toggle touchMove waiting wheel".split(" ");function ur(e,n){Up.set(e,n),pt(n,[e])}var Vn=[],fl=0,Vf=0;function ss(){for(var e=fl,n=Vf=fl=0;n<e;){var i=Vn[n];Vn[n++]=null;var u=Vn[n];Vn[n++]=null;var c=Vn[n];Vn[n++]=null;var h=Vn[n];if(Vn[n++]=null,u!==null&&c!==null){var b=u.pending;b===null?c.next=c:(c.next=b.next,b.next=c),u.pending=c}h!==0&&Bp(i,c,h)}}function cs(e,n,i,u){Vn[fl++]=e,Vn[fl++]=n,Vn[fl++]=i,Vn[fl++]=u,Vf|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Yf(e,n,i,u){return cs(e,n,i,u),fs(e)}function Ca(e,n){return cs(e,null,null,n),fs(e)}function Bp(e,n,i){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i);for(var c=!1,h=e.return;h!==null;)h.childLanes|=i,u=h.alternate,u!==null&&(u.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(c=!0)),e=h,h=h.return;c&&n!==null&&e.tag===3&&(h=e.stateNode,c=31-tn(i),h=h.hiddenUpdates,e=h[c],e===null?h[c]=[n]:e.push(n),n.lane=i|536870912)}function fs(e){if(50<Qu)throw Qu=0,Id=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var dl={},Pp=new WeakMap;function Yn(e,n){if(typeof e=="object"&&e!==null){var i=Pp.get(e);return i!==void 0?i:(n={value:e,source:n,stack:I(n)},Pp.set(e,n),n)}return{value:e,source:n,stack:I(n)}}var hl=[],ml=0,ds=null,hs=0,Qn=[],Kn=0,wi=null,Kr=1,Gr="";function Ci(e,n){hl[ml++]=hs,hl[ml++]=ds,ds=e,hs=n}function qp(e,n,i){Qn[Kn++]=Kr,Qn[Kn++]=Gr,Qn[Kn++]=wi,wi=e;var u=Kr;e=Gr;var c=32-tn(u)-1;u&=~(1<<c),i+=1;var h=32-tn(n)+c;if(30<h){var b=c-c%5;h=(u&(1<<b)-1).toString(32),u>>=b,c-=b,Kr=1<<32-tn(n)+c|i<<c|u,Gr=h+e}else Kr=1<<h|i<<c|u,Gr=e}function Qf(e){e.return!==null&&(Ci(e,1),qp(e,1,0))}function Kf(e){for(;e===ds;)ds=hl[--ml],hl[ml]=null,hs=hl[--ml],hl[ml]=null;for(;e===wi;)wi=Qn[--Kn],Qn[Kn]=null,Gr=Qn[--Kn],Qn[Kn]=null,Kr=Qn[--Kn],Qn[Kn]=null}var dn=null,Qt=null,Je=!1,or=null,Er=!1,Gf=Error(l(519));function Oi(e){var n=Error(l(418,""));throw Cu(Yn(n,e)),Gf}function kp(e){var n=e.stateNode,i=e.type,u=e.memoizedProps;switch(n[Oe]=e,n[$e]=u,i){case"dialog":Qe("cancel",n),Qe("close",n);break;case"iframe":case"object":case"embed":Qe("load",n);break;case"video":case"audio":for(i=0;i<Gu.length;i++)Qe(Gu[i],n);break;case"source":Qe("error",n);break;case"img":case"image":case"link":Qe("error",n),Qe("load",n);break;case"details":Qe("toggle",n);break;case"input":Qe("invalid",n),rp(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),es(n);break;case"select":Qe("invalid",n);break;case"textarea":Qe("invalid",n),ip(n,u.value,u.defaultValue,u.children),es(n)}i=u.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||u.suppressHydrationWarning===!0||Jg(n.textContent,i)?(u.popover!=null&&(Qe("beforetoggle",n),Qe("toggle",n)),u.onScroll!=null&&Qe("scroll",n),u.onScrollEnd!=null&&Qe("scrollend",n),u.onClick!=null&&(n.onclick=Ks),n=!0):n=!1,n||Oi(e)}function Fp(e){for(dn=e.return;dn;)switch(dn.tag){case 3:case 27:Er=!0;return;case 5:case 13:Er=!1;return;default:dn=dn.return}}function Eu(e){if(e!==dn)return!1;if(!Je)return Fp(e),Je=!0,!1;var n=!1,i;if((i=e.tag!==3&&e.tag!==27)&&((i=e.tag===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||mh(e.type,e.memoizedProps)),i=!i),i&&(n=!0),n&&Qt&&Oi(e),Fp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(n===0){Qt=cr(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;e=e.nextSibling}Qt=null}}else Qt=dn?cr(e.stateNode.nextSibling):null;return!0}function wu(){Qt=dn=null,Je=!1}function Cu(e){or===null?or=[e]:or.push(e)}var Ou=Error(l(460)),Vp=Error(l(474)),ms=Error(l(542)),Xf={then:function(){}};function Yp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vs(){}function Qp(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(vs,vs),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Gp(e),e;default:if(typeof n.status=="string")n.then(vs,vs);else{if(e=ht,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=u}},function(u){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Gp(e),e}throw Tu=n,Ou}}var Tu=null;function Kp(){if(Tu===null)throw Error(l(459));var e=Tu;return Tu=null,e}function Gp(e){if(e===Ou||e===ms)throw Error(l(483))}var hE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},mE=t.unstable_scheduleCallback,vE=t.unstable_NormalPriority,Ut={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zf(){return{controller:new hE,data:new Map,refCount:0}}function Ru(e){e.refCount--,e.refCount===0&&mE(vE,function(){e.controller.abort()})}var Du=null,If=0,vl=0,pl=null;function pE(e,n){if(Du===null){var i=Du=[];If=0,vl=ih(),pl={status:"pending",value:void 0,then:function(u){i.push(u)}}}return If++,n.then(Xp,Xp),n}function Xp(){if(--If===0&&Du!==null){pl!==null&&(pl.status="fulfilled");var e=Du;Du=null,vl=0,pl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function gE(e,n){var i=[],u={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var c=0;c<i.length;c++)(0,i[c])(n)},function(c){for(u.status="rejected",u.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),u}var gl=_e(null),ps=_e(0);function Zp(e,n){e=aa,Ne(ps,e),Ne(gl,n),aa=e|n.baseLanes}function Jf(){Ne(ps,aa),Ne(gl,gl.current)}function Wf(){aa=ps.current,je(gl),je(ps)}var Ip=z.S;z.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&pE(e,n),Ip!==null&&Ip(e,n)};var Ti=_e(null);function ed(){var e=Ti.current;return e!==null?e:ht.pooledCache}function gs(e,n){n===null?Ne(Ti,Ti.current):Ne(Ti,n.pool)}function Jp(){var e=ed();return e===null?null:{parent:Ut._currentValue,pool:e}}var Oa=0,Be=null,it=null,_t=null,ys=!1,yl=!1,Ri=!1,bs=0,Au=0,bl=null,yE=0;function At(){throw Error(l(321))}function td(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Dn(e[i],n[i]))return!1;return!0}function nd(e,n,i,u,c,h){return Oa=h,Be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=e===null||e.memoizedState===null?Di:Ta,Ri=!1,h=i(u,c),Ri=!1,yl&&(h=e0(n,i,u,c)),Wp(e),h}function Wp(e){z.H=wr;var n=it!==null&&it.next!==null;if(Oa=0,_t=it=Be=null,ys=!1,Au=0,bl=null,n)throw Error(l(300));e===null||kt||(e=e.dependencies,e!==null&&_s(e)&&(kt=!0))}function e0(e,n,i,u){Be=e;var c=0;do{if(yl&&(bl=null),Au=0,yl=!1,25<=c)throw Error(l(301));if(c+=1,_t=it=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}z.H=Ai,h=n(i,u)}while(yl);return h}function bE(){var e=z.H,n=e.useState()[0];return n=typeof n.then=="function"?Mu(n):n,e=e.useState()[0],(it!==null?it.memoizedState:null)!==e&&(Be.flags|=1024),n}function rd(){var e=bs!==0;return bs=0,e}function ad(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function id(e){if(ys){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ys=!1}Oa=0,_t=it=Be=null,yl=!1,Au=bs=0,bl=null}function En(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Be.memoizedState=_t=e:_t=_t.next=e,_t}function Nt(){if(it===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=it.next;var n=_t===null?Be.memoizedState:_t.next;if(n!==null)_t=n,it=e;else{if(e===null)throw Be.alternate===null?Error(l(467)):Error(l(310));it=e,e={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},_t===null?Be.memoizedState=_t=e:_t=_t.next=e}return _t}var Ss;Ss=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Mu(e){var n=Au;return Au+=1,bl===null&&(bl=[]),e=Qp(bl,e,n),n=Be,(_t===null?n.memoizedState:_t.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?Di:Ta),e}function xs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mu(e);if(e.$$typeof===y)return nn(e)}throw Error(l(438,String(e)))}function ld(e){var n=null,i=Be.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var u=Be.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=Ss(),Be.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),u=0;u<e;u++)i[u]=j;return n.index++,i}function Xr(e,n){return typeof n=="function"?n(e):n}function Es(e){var n=Nt();return ud(n,it,e)}function ud(e,n,i){var u=e.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=i;var c=e.baseQueue,h=u.pending;if(h!==null){if(c!==null){var b=c.next;c.next=h.next,h.next=b}n.baseQueue=c=h,u.pending=null}if(h=e.baseState,c===null)e.memoizedState=h;else{n=c.next;var O=b=null,_=null,P=n,ee=!1;do{var ue=P.lane&-536870913;if(ue!==P.lane?(Ze&ue)===ue:(Oa&ue)===ue){var G=P.revertLane;if(G===0)_!==null&&(_=_.next={lane:0,revertLane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),ue===vl&&(ee=!0);else if((Oa&G)===G){P=P.next,G===vl&&(ee=!0);continue}else ue={lane:0,revertLane:P.revertLane,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},_===null?(O=_=ue,b=h):_=_.next=ue,Be.lanes|=G,$a|=G;ue=P.action,Ri&&i(h,ue),h=P.hasEagerState?P.eagerState:i(h,ue)}else G={lane:ue,revertLane:P.revertLane,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},_===null?(O=_=G,b=h):_=_.next=G,Be.lanes|=ue,$a|=ue;P=P.next}while(P!==null&&P!==n);if(_===null?b=h:_.next=O,!Dn(h,e.memoizedState)&&(kt=!0,ee&&(i=pl,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=_,u.lastRenderedState=h}return c===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function od(e){var n=Nt(),i=n.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var u=i.dispatch,c=i.pending,h=n.memoizedState;if(c!==null){i.pending=null;var b=c=c.next;do h=e(h,b.action),b=b.next;while(b!==c);Dn(h,n.memoizedState)||(kt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,u]}function t0(e,n,i){var u=Be,c=Nt(),h=Je;if(h){if(i===void 0)throw Error(l(407));i=i()}else i=n();var b=!Dn((it||c).memoizedState,i);if(b&&(c.memoizedState=i,kt=!0),c=c.queue,fd(a0.bind(null,u,c,e),[e]),c.getSnapshot!==n||b||_t!==null&&_t.memoizedState.tag&1){if(u.flags|=2048,Sl(9,ws(),r0.bind(null,u,c,i,n),null),ht===null)throw Error(l(349));h||Oa&60||n0(u,n,i)}return i}function n0(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Be.updateQueue,n===null?(n=Ss(),Be.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function r0(e,n,i,u){n.value=i,n.getSnapshot=u,i0(n)&&l0(e)}function a0(e,n,i){return i(function(){i0(n)&&l0(e)})}function i0(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Dn(e,i)}catch{return!0}}function l0(e){var n=Ca(e,2);n!==null&&hn(n,e,2)}function sd(e){var n=En();if(typeof e=="function"){var i=e;if(e=i(),Ri){Tn(!0);try{i()}finally{Tn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:e},n}function u0(e,n,i,u){return e.baseState=i,ud(e,it,typeof u=="function"?u:Xr)}function SE(e,n,i,u,c){if(Ts(e))throw Error(l(485));if(e=n.action,e!==null){var h={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};z.T!==null?i(!0):h.isTransition=!1,u(h),i=n.pending,i===null?(h.next=n.pending=h,o0(n,h)):(h.next=i.next,n.pending=i.next=h)}}function o0(e,n){var i=n.action,u=n.payload,c=e.state;if(n.isTransition){var h=z.T,b={};z.T=b;try{var O=i(c,u),_=z.S;_!==null&&_(b,O),s0(e,n,O)}catch(P){cd(e,n,P)}finally{z.T=h}}else try{h=i(c,u),s0(e,n,h)}catch(P){cd(e,n,P)}}function s0(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(u){c0(e,n,u)},function(u){return cd(e,n,u)}):c0(e,n,i)}function c0(e,n,i){n.status="fulfilled",n.value=i,f0(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,o0(e,i)))}function cd(e,n,i){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=i,f0(n),n=n.next;while(n!==u)}e.action=null}function f0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function d0(e,n){return n}function h0(e,n){if(Je){var i=ht.formState;if(i!==null){e:{var u=Be;if(Je){if(Qt){t:{for(var c=Qt,h=Er;c.nodeType!==8;){if(!h){c=null;break t}if(c=cr(c.nextSibling),c===null){c=null;break t}}h=c.data,c=h==="F!"||h==="F"?c:null}if(c){Qt=cr(c.nextSibling),u=c.data==="F!";break e}}Oi(u)}u=!1}u&&(n=i[0])}}return i=En(),i.memoizedState=i.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d0,lastRenderedState:n},i.queue=u,i=j0.bind(null,Be,u),u.dispatch=i,u=sd(!1),h=pd.bind(null,Be,!1,u.queue),u=En(),c={state:n,dispatch:null,action:e,pending:null},u.queue=c,i=SE.bind(null,Be,c,h,i),c.dispatch=i,u.memoizedState=e,[n,i,!1]}function m0(e){var n=Nt();return v0(n,it,e)}function v0(e,n,i){if(n=ud(e,n,d0)[0],e=Es(Xr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Mu(n)}catch(b){throw b===Ou?ms:b}else u=n;n=Nt();var c=n.queue,h=c.dispatch;return i!==n.memoizedState&&(Be.flags|=2048,Sl(9,ws(),xE.bind(null,c,i),null)),[u,h,e]}function xE(e,n){e.action=n}function p0(e){var n=Nt(),i=it;if(i!==null)return v0(n,i,e);Nt(),n=n.memoizedState,i=Nt();var u=i.queue.dispatch;return i.memoizedState=e,[n,u,!1]}function Sl(e,n,i,u){return e={tag:e,create:i,deps:u,inst:n,next:null},n=Be.updateQueue,n===null&&(n=Ss(),Be.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(u=i.next,i.next=e,e.next=u,n.lastEffect=e),e}function ws(){return{destroy:void 0,resource:void 0}}function g0(){return Nt().memoizedState}function Cs(e,n,i,u){var c=En();u=u===void 0?null:u,Be.flags|=e,c.memoizedState=Sl(1|n,ws(),i,u)}function Os(e,n,i,u){var c=Nt();u=u===void 0?null:u;var h=c.memoizedState.inst;it!==null&&u!==null&&td(u,it.memoizedState.deps)?c.memoizedState=Sl(n,h,i,u):(Be.flags|=e,c.memoizedState=Sl(1|n,h,i,u))}function y0(e,n){Cs(8390656,8,e,n)}function fd(e,n){Os(2048,8,e,n)}function b0(e,n){return Os(4,2,e,n)}function S0(e,n){return Os(4,4,e,n)}function x0(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function E0(e,n,i){i=i!=null?i.concat([e]):null,Os(4,4,x0.bind(null,n,e),i)}function dd(){}function w0(e,n){var i=Nt();n=n===void 0?null:n;var u=i.memoizedState;return n!==null&&td(n,u[1])?u[0]:(i.memoizedState=[e,n],e)}function C0(e,n){var i=Nt();n=n===void 0?null:n;var u=i.memoizedState;if(n!==null&&td(n,u[1]))return u[0];if(u=e(),Ri){Tn(!0);try{e()}finally{Tn(!1)}}return i.memoizedState=[u,n],u}function hd(e,n,i){return i===void 0||Oa&1073741824?e.memoizedState=n:(e.memoizedState=i,e=Mg(),Be.lanes|=e,$a|=e,i)}function O0(e,n,i,u){return Dn(i,n)?i:gl.current!==null?(e=hd(e,i,u),Dn(e,n)||(kt=!0),e):Oa&42?(e=Mg(),Be.lanes|=e,$a|=e,n):(kt=!0,e.memoizedState=i)}function T0(e,n,i,u,c){var h=ce.p;ce.p=h!==0&&8>h?h:8;var b=z.T,O={};z.T=O,pd(e,!1,n,i);try{var _=c(),P=z.S;if(P!==null&&P(O,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var ee=gE(_,u);ju(e,n,ee,_n(e))}else ju(e,n,u,_n(e))}catch(ue){ju(e,n,{then:function(){},status:"rejected",reason:ue},_n())}finally{ce.p=h,z.T=b}}function EE(){}function md(e,n,i,u){if(e.tag!==5)throw Error(l(476));var c=R0(e).queue;T0(e,c,n,ye,i===null?EE:function(){return D0(e),i(u)})}function R0(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:ye},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function D0(e){var n=R0(e).next.queue;ju(e,n,{},_n())}function vd(){return nn(Wu)}function A0(){return Nt().memoizedState}function M0(){return Nt().memoizedState}function wE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=_n();e=ja(i);var u=_a(n,e,i);u!==null&&(hn(u,n,i),Hu(u,n,i)),n={cache:Zf()},e.payload=n;return}n=n.return}}function CE(e,n,i){var u=_n();i={lane:u,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Ts(e)?_0(n,i):(i=Yf(e,n,i,u),i!==null&&(hn(i,e,u),N0(i,n,u)))}function j0(e,n,i){var u=_n();ju(e,n,i,u)}function ju(e,n,i,u){var c={lane:u,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ts(e))_0(n,c);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,O=h(b,i);if(c.hasEagerState=!0,c.eagerState=O,Dn(O,b))return cs(e,n,c,0),ht===null&&ss(),!1}catch{}finally{}if(i=Yf(e,n,c,u),i!==null)return hn(i,e,u),N0(i,n,u),!0}return!1}function pd(e,n,i,u){if(u={lane:2,revertLane:ih(),action:u,hasEagerState:!1,eagerState:null,next:null},Ts(e)){if(n)throw Error(l(479))}else n=Yf(e,i,u,2),n!==null&&hn(n,e,2)}function Ts(e){var n=e.alternate;return e===Be||n!==null&&n===Be}function _0(e,n){yl=ys=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function N0(e,n,i){if(i&4194176){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,Me(e,i)}}var wr={readContext:nn,use:xs,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At};wr.useCacheRefresh=At,wr.useMemoCache=At,wr.useHostTransitionStatus=At,wr.useFormState=At,wr.useActionState=At,wr.useOptimistic=At;var Di={readContext:nn,use:xs,useCallback:function(e,n){return En().memoizedState=[e,n===void 0?null:n],e},useContext:nn,useEffect:y0,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,Cs(4194308,4,x0.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Cs(4194308,4,e,n)},useInsertionEffect:function(e,n){Cs(4,2,e,n)},useMemo:function(e,n){var i=En();n=n===void 0?null:n;var u=e();if(Ri){Tn(!0);try{e()}finally{Tn(!1)}}return i.memoizedState=[u,n],u},useReducer:function(e,n,i){var u=En();if(i!==void 0){var c=i(n);if(Ri){Tn(!0);try{i(n)}finally{Tn(!1)}}}else c=n;return u.memoizedState=u.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},u.queue=e,e=e.dispatch=CE.bind(null,Be,e),[u.memoizedState,e]},useRef:function(e){var n=En();return e={current:e},n.memoizedState=e},useState:function(e){e=sd(e);var n=e.queue,i=j0.bind(null,Be,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:dd,useDeferredValue:function(e,n){var i=En();return hd(i,e,n)},useTransition:function(){var e=sd(!1);return e=T0.bind(null,Be,e.queue,!0,!1),En().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var u=Be,c=En();if(Je){if(i===void 0)throw Error(l(407));i=i()}else{if(i=n(),ht===null)throw Error(l(349));Ze&60||n0(u,n,i)}c.memoizedState=i;var h={value:i,getSnapshot:n};return c.queue=h,y0(a0.bind(null,u,h,e),[e]),u.flags|=2048,Sl(9,ws(),r0.bind(null,u,h,i,n),null),i},useId:function(){var e=En(),n=ht.identifierPrefix;if(Je){var i=Gr,u=Kr;i=(u&~(1<<32-tn(u)-1)).toString(32)+i,n=":"+n+"R"+i,i=bs++,0<i&&(n+="H"+i.toString(32)),n+=":"}else i=yE++,n=":"+n+"r"+i.toString(32)+":";return e.memoizedState=n},useCacheRefresh:function(){return En().memoizedState=wE.bind(null,Be)}};Di.useMemoCache=ld,Di.useHostTransitionStatus=vd,Di.useFormState=h0,Di.useActionState=h0,Di.useOptimistic=function(e){var n=En();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=pd.bind(null,Be,!0,i),i.dispatch=n,[e,n]};var Ta={readContext:nn,use:xs,useCallback:w0,useContext:nn,useEffect:fd,useImperativeHandle:E0,useInsertionEffect:b0,useLayoutEffect:S0,useMemo:C0,useReducer:Es,useRef:g0,useState:function(){return Es(Xr)},useDebugValue:dd,useDeferredValue:function(e,n){var i=Nt();return O0(i,it.memoizedState,e,n)},useTransition:function(){var e=Es(Xr)[0],n=Nt().memoizedState;return[typeof e=="boolean"?e:Mu(e),n]},useSyncExternalStore:t0,useId:A0};Ta.useCacheRefresh=M0,Ta.useMemoCache=ld,Ta.useHostTransitionStatus=vd,Ta.useFormState=m0,Ta.useActionState=m0,Ta.useOptimistic=function(e,n){var i=Nt();return u0(i,it,e,n)};var Ai={readContext:nn,use:xs,useCallback:w0,useContext:nn,useEffect:fd,useImperativeHandle:E0,useInsertionEffect:b0,useLayoutEffect:S0,useMemo:C0,useReducer:od,useRef:g0,useState:function(){return od(Xr)},useDebugValue:dd,useDeferredValue:function(e,n){var i=Nt();return it===null?hd(i,e,n):O0(i,it.memoizedState,e,n)},useTransition:function(){var e=od(Xr)[0],n=Nt().memoizedState;return[typeof e=="boolean"?e:Mu(e),n]},useSyncExternalStore:t0,useId:A0};Ai.useCacheRefresh=M0,Ai.useMemoCache=ld,Ai.useHostTransitionStatus=vd,Ai.useFormState=p0,Ai.useActionState=p0,Ai.useOptimistic=function(e,n){var i=Nt();return it!==null?u0(i,it,e,n):(i.baseState=e,[e,i.queue.dispatch])};var xl=null,_u=0;function Rs(e){var n=_u;return _u+=1,xl===null&&(xl=[]),Qp(xl,e,n)}function Nu(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Ds(e,n){throw n.$$typeof===s?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function z0(e){var n=e._init;return n(e._payload)}function L0(e){function n(k,$){if(e){var Q=k.deletions;Q===null?(k.deletions=[$],k.flags|=16):Q.push($)}}function i(k,$){if(!e)return null;for(;$!==null;)n(k,$),$=$.sibling;return null}function u(k){for(var $=new Map;k!==null;)k.key!==null?$.set(k.key,k):$.set(k.index,k),k=k.sibling;return $}function c(k,$){return k=Ha(k,$),k.index=0,k.sibling=null,k}function h(k,$,Q){return k.index=Q,e?(Q=k.alternate,Q!==null?(Q=Q.index,Q<$?(k.flags|=33554434,$):Q):(k.flags|=33554434,$)):(k.flags|=1048576,$)}function b(k){return e&&k.alternate===null&&(k.flags|=33554434),k}function O(k,$,Q,re){return $===null||$.tag!==6?($=Fd(Q,k.mode,re),$.return=k,$):($=c($,Q),$.return=k,$)}function _(k,$,Q,re){var ge=Q.type;return ge===m?ee(k,$,Q.props.children,re,Q.key):$!==null&&($.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===A&&z0(ge)===$.type)?($=c($,Q.props),Nu($,Q),$.return=k,$):($=Hs(Q.type,Q.key,Q.props,null,k.mode,re),Nu($,Q),$.return=k,$)}function P(k,$,Q,re){return $===null||$.tag!==4||$.stateNode.containerInfo!==Q.containerInfo||$.stateNode.implementation!==Q.implementation?($=Vd(Q,k.mode,re),$.return=k,$):($=c($,Q.children||[]),$.return=k,$)}function ee(k,$,Q,re,ge){return $===null||$.tag!==7?($=Li(Q,k.mode,re,ge),$.return=k,$):($=c($,Q),$.return=k,$)}function ue(k,$,Q){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Fd(""+$,k.mode,Q),$.return=k,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case f:return Q=Hs($.type,$.key,$.props,null,k.mode,Q),Nu(Q,$),Q.return=k,Q;case d:return $=Vd($,k.mode,Q),$.return=k,$;case A:var re=$._init;return $=re($._payload),ue(k,$,Q)}if(de($)||q($))return $=Li($,k.mode,Q,null),$.return=k,$;if(typeof $.then=="function")return ue(k,Rs($),Q);if($.$$typeof===y)return ue(k,Ns(k,$),Q);Ds(k,$)}return null}function G(k,$,Q,re){var ge=$!==null?$.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return ge!==null?null:O(k,$,""+Q,re);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case f:return Q.key===ge?_(k,$,Q,re):null;case d:return Q.key===ge?P(k,$,Q,re):null;case A:return ge=Q._init,Q=ge(Q._payload),G(k,$,Q,re)}if(de(Q)||q(Q))return ge!==null?null:ee(k,$,Q,re,null);if(typeof Q.then=="function")return G(k,$,Rs(Q),re);if(Q.$$typeof===y)return G(k,$,Ns(k,Q),re);Ds(k,Q)}return null}function W(k,$,Q,re,ge){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return k=k.get(Q)||null,O($,k,""+re,ge);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case f:return k=k.get(re.key===null?Q:re.key)||null,_($,k,re,ge);case d:return k=k.get(re.key===null?Q:re.key)||null,P($,k,re,ge);case A:var ke=re._init;return re=ke(re._payload),W(k,$,Q,re,ge)}if(de(re)||q(re))return k=k.get(Q)||null,ee($,k,re,ge,null);if(typeof re.then=="function")return W(k,$,Q,Rs(re),ge);if(re.$$typeof===y)return W(k,$,Q,Ns($,re),ge);Ds($,re)}return null}function be(k,$,Q,re){for(var ge=null,ke=null,we=$,Ae=$=0,Vt=null;we!==null&&Ae<Q.length;Ae++){we.index>Ae?(Vt=we,we=null):Vt=we.sibling;var We=G(k,we,Q[Ae],re);if(We===null){we===null&&(we=Vt);break}e&&we&&We.alternate===null&&n(k,we),$=h(We,$,Ae),ke===null?ge=We:ke.sibling=We,ke=We,we=Vt}if(Ae===Q.length)return i(k,we),Je&&Ci(k,Ae),ge;if(we===null){for(;Ae<Q.length;Ae++)we=ue(k,Q[Ae],re),we!==null&&($=h(we,$,Ae),ke===null?ge=we:ke.sibling=we,ke=we);return Je&&Ci(k,Ae),ge}for(we=u(we);Ae<Q.length;Ae++)Vt=W(we,k,Ae,Q[Ae],re),Vt!==null&&(e&&Vt.alternate!==null&&we.delete(Vt.key===null?Ae:Vt.key),$=h(Vt,$,Ae),ke===null?ge=Vt:ke.sibling=Vt,ke=Vt);return e&&we.forEach(function(Ya){return n(k,Ya)}),Je&&Ci(k,Ae),ge}function ze(k,$,Q,re){if(Q==null)throw Error(l(151));for(var ge=null,ke=null,we=$,Ae=$=0,Vt=null,We=Q.next();we!==null&&!We.done;Ae++,We=Q.next()){we.index>Ae?(Vt=we,we=null):Vt=we.sibling;var Ya=G(k,we,We.value,re);if(Ya===null){we===null&&(we=Vt);break}e&&we&&Ya.alternate===null&&n(k,we),$=h(Ya,$,Ae),ke===null?ge=Ya:ke.sibling=Ya,ke=Ya,we=Vt}if(We.done)return i(k,we),Je&&Ci(k,Ae),ge;if(we===null){for(;!We.done;Ae++,We=Q.next())We=ue(k,We.value,re),We!==null&&($=h(We,$,Ae),ke===null?ge=We:ke.sibling=We,ke=We);return Je&&Ci(k,Ae),ge}for(we=u(we);!We.done;Ae++,We=Q.next())We=W(we,k,Ae,We.value,re),We!==null&&(e&&We.alternate!==null&&we.delete(We.key===null?Ae:We.key),$=h(We,$,Ae),ke===null?ge=We:ke.sibling=We,ke=We);return e&&we.forEach(function(Tw){return n(k,Tw)}),Je&&Ci(k,Ae),ge}function Ot(k,$,Q,re){if(typeof Q=="object"&&Q!==null&&Q.type===m&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case f:e:{for(var ge=Q.key;$!==null;){if($.key===ge){if(ge=Q.type,ge===m){if($.tag===7){i(k,$.sibling),re=c($,Q.props.children),re.return=k,k=re;break e}}else if($.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===A&&z0(ge)===$.type){i(k,$.sibling),re=c($,Q.props),Nu(re,Q),re.return=k,k=re;break e}i(k,$);break}else n(k,$);$=$.sibling}Q.type===m?(re=Li(Q.props.children,k.mode,re,Q.key),re.return=k,k=re):(re=Hs(Q.type,Q.key,Q.props,null,k.mode,re),Nu(re,Q),re.return=k,k=re)}return b(k);case d:e:{for(ge=Q.key;$!==null;){if($.key===ge)if($.tag===4&&$.stateNode.containerInfo===Q.containerInfo&&$.stateNode.implementation===Q.implementation){i(k,$.sibling),re=c($,Q.children||[]),re.return=k,k=re;break e}else{i(k,$);break}else n(k,$);$=$.sibling}re=Vd(Q,k.mode,re),re.return=k,k=re}return b(k);case A:return ge=Q._init,Q=ge(Q._payload),Ot(k,$,Q,re)}if(de(Q))return be(k,$,Q,re);if(q(Q)){if(ge=q(Q),typeof ge!="function")throw Error(l(150));return Q=ge.call(Q),ze(k,$,Q,re)}if(typeof Q.then=="function")return Ot(k,$,Rs(Q),re);if(Q.$$typeof===y)return Ot(k,$,Ns(k,Q),re);Ds(k,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,$!==null&&$.tag===6?(i(k,$.sibling),re=c($,Q),re.return=k,k=re):(i(k,$),re=Fd(Q,k.mode,re),re.return=k,k=re),b(k)):i(k,$)}return function(k,$,Q,re){try{_u=0;var ge=Ot(k,$,Q,re);return xl=null,ge}catch(we){if(we===Ou||we===ms)throw we;var ke=In(29,we,null,k.mode);return ke.lanes=re,ke.return=k,ke}finally{}}}var Mi=L0(!0),H0=L0(!1),Gn=_e(null),Cr=null;function Ra(e){var n=e.alternate;Ne($t,$t.current&1),Ne(Gn,e),Cr===null&&(n===null||gl.current!==null||n.memoizedState!==null)&&(Cr=e)}function U0(e){if(e.tag===22){if(Ne($t,$t.current),Ne(Gn,e),Cr===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Cr=e)}}else Da()}function Da(){Ne($t,$t.current),Ne(Gn,Gn.current)}function Zr(e){je(Gn),Cr===e&&(Cr=null),je($t)}var $t=_e(0);function As(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function gd(e,n,i,u){n=e.memoizedState,i=i(u,n),i=i==null?n:X({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var yd={isMounted:function(e){return(e=e._reactInternals)?ne(e)===e:!1},enqueueSetState:function(e,n,i){e=e._reactInternals;var u=_n(),c=ja(u);c.payload=n,i!=null&&(c.callback=i),n=_a(e,c,u),n!==null&&(hn(n,e,u),Hu(n,e,u))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var u=_n(),c=ja(u);c.tag=1,c.payload=n,i!=null&&(c.callback=i),n=_a(e,c,u),n!==null&&(hn(n,e,u),Hu(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=_n(),u=ja(i);u.tag=2,n!=null&&(u.callback=n),n=_a(e,u,i),n!==null&&(hn(n,e,i),Hu(n,e,i))}};function $0(e,n,i,u,c,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!Su(i,u)||!Su(c,h):!0}function B0(e,n,i,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,u),n.state!==e&&yd.enqueueReplaceState(n,n.state,null)}function ji(e,n){var i=n;if("ref"in n){i={};for(var u in n)u!=="ref"&&(i[u]=n[u])}if(e=e.defaultProps){i===n&&(i=X({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}var Ms=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function P0(e){Ms(e)}function q0(e){console.error(e)}function k0(e){Ms(e)}function js(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function F0(e,n,i){try{var u=e.onCaughtError;u(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function bd(e,n,i){return i=ja(i),i.tag=3,i.payload={element:null},i.callback=function(){js(e,n)},i}function V0(e){return e=ja(e),e.tag=3,e}function Y0(e,n,i,u){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var h=u.value;e.payload=function(){return c(h)},e.callback=function(){F0(n,i,u)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){F0(n,i,u),typeof c!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var O=u.stack;this.componentDidCatch(u.value,{componentStack:O!==null?O:""})})}function OE(e,n,i,u,c){if(i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=i.alternate,n!==null&&Lu(n,i,c,!0),i=Gn.current,i!==null){switch(i.tag){case 13:return Cr===null?eh():i.alternate===null&&Ct===0&&(Ct=3),i.flags&=-257,i.flags|=65536,i.lanes=c,u===Xf?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([u]):n.add(u),nh(e,u,c)),!1;case 22:return i.flags|=65536,u===Xf?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([u]):i.add(u)),nh(e,u,c)),!1}throw Error(l(435,i.tag))}return nh(e,u,c),eh(),!1}if(Je)return n=Gn.current,n!==null?(!(n.flags&65536)&&(n.flags|=256),n.flags|=65536,n.lanes=c,u!==Gf&&(e=Error(l(422),{cause:u}),Cu(Yn(e,i)))):(u!==Gf&&(n=Error(l(423),{cause:u}),Cu(Yn(n,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,u=Yn(u,i),c=bd(e.stateNode,u,c),zd(e,c),Ct!==4&&(Ct=2)),!1;var h=Error(l(520),{cause:u});if(h=Yn(h,i),Vu===null?Vu=[h]:Vu.push(h),Ct!==4&&(Ct=2),n===null)return!0;u=Yn(u,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=bd(i.stateNode,u,e),zd(i,e),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Ba===null||!Ba.has(h))))return i.flags|=65536,c&=-c,i.lanes|=c,c=V0(c),Y0(c,e,i,u),zd(i,c),!1}i=i.return}while(i!==null);return!1}var Q0=Error(l(461)),kt=!1;function Kt(e,n,i,u){n.child=e===null?H0(n,null,i,u):Mi(n,e.child,i,u)}function K0(e,n,i,u,c){i=i.render;var h=n.ref;if("ref"in u){var b={};for(var O in u)O!=="ref"&&(b[O]=u[O])}else b=u;return Ni(n),u=nd(e,n,i,b,h,c),O=rd(),e!==null&&!kt?(ad(e,n,c),Ir(e,n,c)):(Je&&O&&Qf(n),n.flags|=1,Kt(e,n,u,c),n.child)}function G0(e,n,i,u,c){if(e===null){var h=i.type;return typeof h=="function"&&!kd(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,X0(e,n,h,u,c)):(e=Hs(i.type,null,u,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Dd(e,c)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:Su,i(b,u)&&e.ref===n.ref)return Ir(e,n,c)}return n.flags|=1,e=Ha(h,u),e.ref=n.ref,e.return=n,n.child=e}function X0(e,n,i,u,c){if(e!==null){var h=e.memoizedProps;if(Su(h,u)&&e.ref===n.ref)if(kt=!1,n.pendingProps=u=h,Dd(e,c))e.flags&131072&&(kt=!0);else return n.lanes=e.lanes,Ir(e,n,c)}return Sd(e,n,i,u,c)}function Z0(e,n,i){var u=n.pendingProps,c=u.children,h=(n.stateNode._pendingVisibility&2)!==0,b=e!==null?e.memoizedState:null;if(zu(e,n),u.mode==="hidden"||h){if(n.flags&128){if(u=b!==null?b.baseLanes|i:i,e!==null){for(c=n.child=e.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;n.childLanes=h&~u}else n.childLanes=0,n.child=null;return I0(e,n,u,i)}if(i&536870912)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&gs(n,b!==null?b.cachePool:null),b!==null?Zp(n,b):Jf(),U0(n);else return n.lanes=n.childLanes=536870912,I0(e,n,b!==null?b.baseLanes|i:i,i)}else b!==null?(gs(n,b.cachePool),Zp(n,b),Da(),n.memoizedState=null):(e!==null&&gs(n,null),Jf(),Da());return Kt(e,n,c,i),n.child}function I0(e,n,i,u){var c=ed();return c=c===null?null:{parent:Ut._currentValue,pool:c},n.memoizedState={baseLanes:i,cachePool:c},e!==null&&gs(n,null),Jf(),U0(n),e!==null&&Lu(e,n,u,!0),null}function zu(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=2097664);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(n.flags|=2097664)}}function Sd(e,n,i,u,c){return Ni(n),i=nd(e,n,i,u,void 0,c),u=rd(),e!==null&&!kt?(ad(e,n,c),Ir(e,n,c)):(Je&&u&&Qf(n),n.flags|=1,Kt(e,n,i,c),n.child)}function J0(e,n,i,u,c,h){return Ni(n),n.updateQueue=null,i=e0(n,u,i,c),Wp(e),u=rd(),e!==null&&!kt?(ad(e,n,h),Ir(e,n,h)):(Je&&u&&Qf(n),n.flags|=1,Kt(e,n,i,h),n.child)}function W0(e,n,i,u,c){if(Ni(n),n.stateNode===null){var h=dl,b=i.contextType;typeof b=="object"&&b!==null&&(h=nn(b)),h=new i(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=yd,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},_d(n),b=i.contextType,h.context=typeof b=="object"&&b!==null?nn(b):dl,h.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(gd(n,i,b,u),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&yd.enqueueReplaceState(h,h.state,null),$u(n,u,h,c),Uu(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var O=n.memoizedProps,_=ji(i,O);h.props=_;var P=h.context,ee=i.contextType;b=dl,typeof ee=="object"&&ee!==null&&(b=nn(ee));var ue=i.getDerivedStateFromProps;ee=typeof ue=="function"||typeof h.getSnapshotBeforeUpdate=="function",O=n.pendingProps!==O,ee||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(O||P!==b)&&B0(n,h,u,b),Ma=!1;var G=n.memoizedState;h.state=G,$u(n,u,h,c),Uu(),P=n.memoizedState,O||G!==P||Ma?(typeof ue=="function"&&(gd(n,i,ue,u),P=n.memoizedState),(_=Ma||$0(n,i,_,u,G,P,b))?(ee||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=P),h.props=u,h.state=P,h.context=b,u=_):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,Nd(e,n),b=n.memoizedProps,ee=ji(i,b),h.props=ee,ue=n.pendingProps,G=h.context,P=i.contextType,_=dl,typeof P=="object"&&P!==null&&(_=nn(P)),O=i.getDerivedStateFromProps,(P=typeof O=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==ue||G!==_)&&B0(n,h,u,_),Ma=!1,G=n.memoizedState,h.state=G,$u(n,u,h,c),Uu();var W=n.memoizedState;b!==ue||G!==W||Ma||e!==null&&e.dependencies!==null&&_s(e.dependencies)?(typeof O=="function"&&(gd(n,i,O,u),W=n.memoizedState),(ee=Ma||$0(n,i,ee,u,G,W,_)||e!==null&&e.dependencies!==null&&_s(e.dependencies))?(P||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,W,_),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,W,_)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=W),h.props=u,h.state=W,h.context=_,u=ee):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,zu(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,i=u&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Mi(n,e.child,null,c),n.child=Mi(n,null,i,c)):Kt(e,n,i,c),n.memoizedState=h.state,e=n.child):e=Ir(e,n,c),e}function eg(e,n,i,u){return wu(),n.flags|=256,Kt(e,n,i,u),n.child}var xd={dehydrated:null,treeContext:null,retryLane:0};function Ed(e){return{baseLanes:e,cachePool:Jp()}}function wd(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Jn),e}function tg(e,n,i){var u=n.pendingProps,c=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:($t.current&2)!==0),b&&(c=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Je){if(c?Ra(n):Da(),Je){var O=Qt,_;if(_=O){e:{for(_=O,O=Er;_.nodeType!==8;){if(!O){O=null;break e}if(_=cr(_.nextSibling),_===null){O=null;break e}}O=_}O!==null?(n.memoizedState={dehydrated:O,treeContext:wi!==null?{id:Kr,overflow:Gr}:null,retryLane:536870912},_=In(18,null,null,0),_.stateNode=O,_.return=n,n.child=_,dn=n,Qt=null,_=!0):_=!1}_||Oi(n)}if(O=n.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return O.data==="$!"?n.lanes=16:n.lanes=536870912,null;Zr(n)}return O=u.children,u=u.fallback,c?(Da(),c=n.mode,O=Od({mode:"hidden",children:O},c),u=Li(u,c,i,null),O.return=n,u.return=n,O.sibling=u,n.child=O,c=n.child,c.memoizedState=Ed(i),c.childLanes=wd(e,b,i),n.memoizedState=xd,u):(Ra(n),Cd(n,O))}if(_=e.memoizedState,_!==null&&(O=_.dehydrated,O!==null)){if(h)n.flags&256?(Ra(n),n.flags&=-257,n=Td(e,n,i)):n.memoizedState!==null?(Da(),n.child=e.child,n.flags|=128,n=null):(Da(),c=u.fallback,O=n.mode,u=Od({mode:"visible",children:u.children},O),c=Li(c,O,i,null),c.flags|=2,u.return=n,c.return=n,u.sibling=c,n.child=u,Mi(n,e.child,null,i),u=n.child,u.memoizedState=Ed(i),u.childLanes=wd(e,b,i),n.memoizedState=xd,n=c);else if(Ra(n),O.data==="$!"){if(b=O.nextSibling&&O.nextSibling.dataset,b)var P=b.dgst;b=P,u=Error(l(419)),u.stack="",u.digest=b,Cu({value:u,source:null,stack:null}),n=Td(e,n,i)}else if(kt||Lu(e,n,i,!1),b=(i&e.childLanes)!==0,kt||b){if(b=ht,b!==null){if(u=i&-i,u&42)u=1;else switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:u=64;break;case 268435456:u=134217728;break;default:u=0}if(u=u&(b.suspendedLanes|i)?0:u,u!==0&&u!==_.retryLane)throw _.retryLane=u,Ca(e,u),hn(b,e,u),Q0}O.data==="$?"||eh(),n=Td(e,n,i)}else O.data==="$?"?(n.flags|=128,n.child=e.child,n=PE.bind(null,e),O._reactRetry=n,n=null):(e=_.treeContext,Qt=cr(O.nextSibling),dn=n,Je=!0,or=null,Er=!1,e!==null&&(Qn[Kn++]=Kr,Qn[Kn++]=Gr,Qn[Kn++]=wi,Kr=e.id,Gr=e.overflow,wi=n),n=Cd(n,u.children),n.flags|=4096);return n}return c?(Da(),c=u.fallback,O=n.mode,_=e.child,P=_.sibling,u=Ha(_,{mode:"hidden",children:u.children}),u.subtreeFlags=_.subtreeFlags&31457280,P!==null?c=Ha(P,c):(c=Li(c,O,i,null),c.flags|=2),c.return=n,u.return=n,u.sibling=c,n.child=u,u=c,c=n.child,O=e.child.memoizedState,O===null?O=Ed(i):(_=O.cachePool,_!==null?(P=Ut._currentValue,_=_.parent!==P?{parent:P,pool:P}:_):_=Jp(),O={baseLanes:O.baseLanes|i,cachePool:_}),c.memoizedState=O,c.childLanes=wd(e,b,i),n.memoizedState=xd,u):(Ra(n),i=e.child,e=i.sibling,i=Ha(i,{mode:"visible",children:u.children}),i.return=n,i.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=i,n.memoizedState=null,i)}function Cd(e,n){return n=Od({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Od(e,n){return Rg(e,n,0,null)}function Td(e,n,i){return Mi(n,e.child,null,i),e=Cd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function ng(e,n,i){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),Md(e.return,n,i)}function Rd(e,n,i,u,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:i,tailMode:c}:(h.isBackwards=n,h.rendering=null,h.renderingStartTime=0,h.last=u,h.tail=i,h.tailMode=c)}function rg(e,n,i){var u=n.pendingProps,c=u.revealOrder,h=u.tail;if(Kt(e,n,u.children,i),u=$t.current,u&2)u=u&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ng(e,i,n);else if(e.tag===19)ng(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}switch(Ne($t,u),c){case"forwards":for(i=n.child,c=null;i!==null;)e=i.alternate,e!==null&&As(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),Rd(n,!1,c,i,h);break;case"backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&As(e)===null){n.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}Rd(n,!0,i,null,h);break;case"together":Rd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ir(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),$a|=n.lanes,!(i&n.childLanes))if(e!==null){if(Lu(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,i=Ha(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Ha(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Dd(e,n){return e.lanes&n?!0:(e=e.dependencies,!!(e!==null&&_s(e)))}function TE(e,n,i){switch(n.tag){case 3:On(n,n.stateNode.containerInfo),Aa(n,Ut,e.memoizedState.cache),wu();break;case 27:case 5:Pn(n);break;case 4:On(n,n.stateNode.containerInfo);break;case 10:Aa(n,n.type,n.memoizedProps.value);break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(Ra(n),n.flags|=128,null):i&n.child.childLanes?tg(e,n,i):(Ra(n),e=Ir(e,n,i),e!==null?e.sibling:null);Ra(n);break;case 19:var c=(e.flags&128)!==0;if(u=(i&n.childLanes)!==0,u||(Lu(e,n,i,!1),u=(i&n.childLanes)!==0),c){if(u)return rg(e,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ne($t,$t.current),u)break;return null;case 22:case 23:return n.lanes=0,Z0(e,n,i);case 24:Aa(n,Ut,e.memoizedState.cache)}return Ir(e,n,i)}function ag(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)kt=!0;else{if(!Dd(e,i)&&!(n.flags&128))return kt=!1,TE(e,n,i);kt=!!(e.flags&131072)}else kt=!1,Je&&n.flags&1048576&&qp(n,hs,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var u=n.elementType,c=u._init;if(u=c(u._payload),n.type=u,typeof u=="function")kd(u)?(e=ji(u,e),n.tag=1,n=W0(null,n,u,e,i)):(n.tag=0,n=Sd(null,n,u,e,i));else{if(u!=null){if(c=u.$$typeof,c===w){n.tag=11,n=K0(null,n,u,e,i);break e}else if(c===T){n.tag=14,n=G0(null,n,u,e,i);break e}}throw n=V(u)||u,Error(l(306,n,""))}}return n;case 0:return Sd(e,n,n.type,n.pendingProps,i);case 1:return u=n.type,c=ji(u,n.pendingProps),W0(e,n,u,c,i);case 3:e:{if(On(n,n.stateNode.containerInfo),e===null)throw Error(l(387));var h=n.pendingProps;c=n.memoizedState,u=c.element,Nd(e,n),$u(n,h,null,i);var b=n.memoizedState;if(h=b.cache,Aa(n,Ut,h),h!==c.cache&&jd(n,[Ut],i,!0),Uu(),h=b.element,c.isDehydrated)if(c={element:h,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=eg(e,n,h,i);break e}else if(h!==u){u=Yn(Error(l(424)),n),Cu(u),n=eg(e,n,h,i);break e}else for(Qt=cr(n.stateNode.containerInfo.firstChild),dn=n,Je=!0,or=null,Er=!0,i=H0(n,null,h,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(wu(),h===u){n=Ir(e,n,i);break e}Kt(e,n,h,i)}n=n.child}return n;case 26:return zu(e,n),e===null?(i=uy(n.type,null,n.pendingProps,null))?n.memoizedState=i:Je||(i=n.type,e=n.pendingProps,u=Gs(dt.current).createElement(i),u[Oe]=n,u[$e]=e,Gt(u,i,e),yt(u),n.stateNode=u):n.memoizedState=uy(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Pn(n),e===null&&Je&&(u=n.stateNode=ay(n.type,n.pendingProps,dt.current),dn=n,Er=!0,Qt=cr(u.firstChild)),u=n.pendingProps.children,e!==null||Je?Kt(e,n,u,i):n.child=Mi(n,null,u,i),zu(e,n),n.child;case 5:return e===null&&Je&&((c=u=Qt)&&(u=nw(u,n.type,n.pendingProps,Er),u!==null?(n.stateNode=u,dn=n,Qt=cr(u.firstChild),Er=!1,c=!0):c=!1),c||Oi(n)),Pn(n),c=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,mh(c,h)?u=null:b!==null&&mh(c,b)&&(n.flags|=32),n.memoizedState!==null&&(c=nd(e,n,bE,null,null,i),Wu._currentValue=c),zu(e,n),Kt(e,n,u,i),n.child;case 6:return e===null&&Je&&((e=i=Qt)&&(i=rw(i,n.pendingProps,Er),i!==null?(n.stateNode=i,dn=n,Qt=null,e=!0):e=!1),e||Oi(n)),null;case 13:return tg(e,n,i);case 4:return On(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Mi(n,null,u,i):Kt(e,n,u,i),n.child;case 11:return K0(e,n,n.type,n.pendingProps,i);case 7:return Kt(e,n,n.pendingProps,i),n.child;case 8:return Kt(e,n,n.pendingProps.children,i),n.child;case 12:return Kt(e,n,n.pendingProps.children,i),n.child;case 10:return u=n.pendingProps,Aa(n,n.type,u.value),Kt(e,n,u.children,i),n.child;case 9:return c=n.type._context,u=n.pendingProps.children,Ni(n),c=nn(c),u=u(c),n.flags|=1,Kt(e,n,u,i),n.child;case 14:return G0(e,n,n.type,n.pendingProps,i);case 15:return X0(e,n,n.type,n.pendingProps,i);case 19:return rg(e,n,i);case 22:return Z0(e,n,i);case 24:return Ni(n),u=nn(Ut),e===null?(c=ed(),c===null&&(c=ht,h=Zf(),c.pooledCache=h,h.refCount++,h!==null&&(c.pooledCacheLanes|=i),c=h),n.memoizedState={parent:u,cache:c},_d(n),Aa(n,Ut,c)):(e.lanes&i&&(Nd(e,n),$u(n,null,null,i),Uu()),c=e.memoizedState,h=n.memoizedState,c.parent!==u?(c={parent:u,cache:u},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Aa(n,Ut,u)):(u=h.cache,Aa(n,Ut,u),u!==c.cache&&jd(n,[Ut],i,!0))),Kt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}var Ad=_e(null),_i=null,Jr=null;function Aa(e,n,i){Ne(Ad,n._currentValue),n._currentValue=i}function Wr(e){e._currentValue=Ad.current,je(Ad)}function Md(e,n,i){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===i)break;e=e.return}}function jd(e,n,i,u){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var h=c.dependencies;if(h!==null){var b=c.child;h=h.firstContext;e:for(;h!==null;){var O=h;h=c;for(var _=0;_<n.length;_++)if(O.context===n[_]){h.lanes|=i,O=h.alternate,O!==null&&(O.lanes|=i),Md(h.return,i,e),u||(b=null);break e}h=O.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(l(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),Md(b,i,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function Lu(e,n,i,u){e=null;for(var c=n,h=!1;c!==null;){if(!h){if(c.flags&524288)h=!0;else if(c.flags&262144)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(l(387));if(b=b.memoizedProps,b!==null){var O=c.type;Dn(c.pendingProps.value,b.value)||(e!==null?e.push(O):e=[O])}}else if(c===ln.current){if(b=c.alternate,b===null)throw Error(l(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Wu):e=[Wu])}c=c.return}e!==null&&jd(n,e,i,u),n.flags|=262144}function _s(e){for(e=e.firstContext;e!==null;){if(!Dn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ni(e){_i=e,Jr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nn(e){return ig(_i,e)}function Ns(e,n){return _i===null&&Ni(e),ig(e,n)}function ig(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Jr===null){if(e===null)throw Error(l(308));Jr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Jr=Jr.next=n;return i}var Ma=!1;function _d(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nd(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _a(e,n,i){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,St&2){var c=u.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),u.pending=n,n=fs(e),Bp(e,null,i),n}return cs(e,u,n,i),fs(e)}function Hu(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194176)!==0)){var u=n.lanes;u&=e.pendingLanes,i|=u,n.lanes=i,Me(e,i)}}function zd(e,n){var i=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,i===u)){var c=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?c=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?c=h=n:h=h.next=n}else c=h=n;i={baseState:u.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Ld=!1;function Uu(){if(Ld){var e=pl;if(e!==null)throw e}}function $u(e,n,i,u){Ld=!1;var c=e.updateQueue;Ma=!1;var h=c.firstBaseUpdate,b=c.lastBaseUpdate,O=c.shared.pending;if(O!==null){c.shared.pending=null;var _=O,P=_.next;_.next=null,b===null?h=P:b.next=P,b=_;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,O=ee.lastBaseUpdate,O!==b&&(O===null?ee.firstBaseUpdate=P:O.next=P,ee.lastBaseUpdate=_))}if(h!==null){var ue=c.baseState;b=0,ee=P=_=null,O=h;do{var G=O.lane&-536870913,W=G!==O.lane;if(W?(Ze&G)===G:(u&G)===G){G!==0&&G===vl&&(Ld=!0),ee!==null&&(ee=ee.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var be=e,ze=O;G=n;var Ot=i;switch(ze.tag){case 1:if(be=ze.payload,typeof be=="function"){ue=be.call(Ot,ue,G);break e}ue=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=ze.payload,G=typeof be=="function"?be.call(Ot,ue,G):be,G==null)break e;ue=X({},ue,G);break e;case 2:Ma=!0}}G=O.callback,G!==null&&(e.flags|=64,W&&(e.flags|=8192),W=c.callbacks,W===null?c.callbacks=[G]:W.push(G))}else W={lane:G,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ee===null?(P=ee=W,_=ue):ee=ee.next=W,b|=G;if(O=O.next,O===null){if(O=c.shared.pending,O===null)break;W=O,O=W.next,W.next=null,c.lastBaseUpdate=W,c.shared.pending=null}}while(!0);ee===null&&(_=ue),c.baseState=_,c.firstBaseUpdate=P,c.lastBaseUpdate=ee,h===null&&(c.shared.lanes=0),$a|=b,e.lanes=b,e.memoizedState=ue}}function lg(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function ug(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)lg(i[e],n)}function Bu(e,n){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){u=void 0;var h=i.create,b=i.inst;u=h(),b.destroy=u}i=i.next}while(i!==c)}}catch(O){ct(n,n.return,O)}}function Na(e,n,i){try{var u=n.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var h=c.next;u=h;do{if((u.tag&e)===e){var b=u.inst,O=b.destroy;if(O!==void 0){b.destroy=void 0,c=n;var _=i;try{O()}catch(P){ct(c,_,P)}}}u=u.next}while(u!==h)}}catch(P){ct(n,n.return,P)}}function og(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{ug(n,i)}catch(u){ct(e,e.return,u)}}}function sg(e,n,i){i.props=ji(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(u){ct(e,n,u)}}function zi(e,n){try{var i=e.ref;if(i!==null){var u=e.stateNode;switch(e.tag){case 26:case 27:case 5:var c=u;break;default:c=u}typeof i=="function"?e.refCleanup=i(c):i.current=c}}catch(h){ct(e,n,h)}}function An(e,n){var i=e.ref,u=e.refCleanup;if(i!==null)if(typeof u=="function")try{u()}catch(c){ct(e,n,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){ct(e,n,c)}else i.current=null}function cg(e){var n=e.type,i=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&u.focus();break e;case"img":i.src?u.src=i.src:i.srcSet&&(u.srcset=i.srcSet)}}catch(c){ct(e,e.return,c)}}function fg(e,n,i){try{var u=e.stateNode;IE(u,e.type,i,n),u[$e]=n}catch(c){ct(e,e.return,c)}}function dg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function Hd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ud(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(e,n):i.insertBefore(e,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(e,i)):(n=i,n.appendChild(e)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ks));else if(u!==4&&u!==27&&(e=e.child,e!==null))for(Ud(e,n,i),e=e.sibling;e!==null;)Ud(e,n,i),e=e.sibling}function zs(e,n,i){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(u!==4&&u!==27&&(e=e.child,e!==null))for(zs(e,n,i),e=e.sibling;e!==null;)zs(e,n,i),e=e.sibling}var ea=!1,wt=!1,$d=!1,hg=typeof WeakSet=="function"?WeakSet:Set,Ft=null,mg=!1;function RE(e,n){if(e=e.containerInfo,dh=ec,e=Mp(e),Pf(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var u=i.getSelection&&i.getSelection();if(u&&u.rangeCount!==0){i=u.anchorNode;var c=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,O=-1,_=-1,P=0,ee=0,ue=e,G=null;t:for(;;){for(var W;ue!==i||c!==0&&ue.nodeType!==3||(O=b+c),ue!==h||u!==0&&ue.nodeType!==3||(_=b+u),ue.nodeType===3&&(b+=ue.nodeValue.length),(W=ue.firstChild)!==null;)G=ue,ue=W;for(;;){if(ue===e)break t;if(G===i&&++P===c&&(O=b),G===h&&++ee===u&&(_=b),(W=ue.nextSibling)!==null)break;ue=G,G=ue.parentNode}ue=W}i=O===-1||_===-1?null:{start:O,end:_}}else i=null}i=i||{start:0,end:0}}else i=null;for(hh={focusedElem:e,selectionRange:i},ec=!1,Ft=n;Ft!==null;)if(n=Ft,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Ft=e;else for(;Ft!==null;){switch(n=Ft,h=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&h!==null){e=void 0,i=n,c=h.memoizedProps,h=h.memoizedState,u=i.stateNode;try{var be=ji(i.type,c,i.elementType===i.type);e=u.getSnapshotBeforeUpdate(be,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ze){ct(i,i.return,ze)}}break;case 3:if(e&1024){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)gh(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,Ft=e;break}Ft=n.return}return be=mg,mg=!1,be}function vg(e,n,i){var u=i.flags;switch(i.tag){case 0:case 11:case 15:na(e,i),u&4&&Bu(5,i);break;case 1:if(na(e,i),u&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(O){ct(i,i.return,O)}else{var c=ji(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(c,n,e.__reactInternalSnapshotBeforeUpdate)}catch(O){ct(i,i.return,O)}}u&64&&og(i),u&512&&zi(i,i.return);break;case 3:if(na(e,i),u&64&&(u=i.updateQueue,u!==null)){if(e=null,i.child!==null)switch(i.child.tag){case 27:case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}try{ug(u,e)}catch(O){ct(i,i.return,O)}}break;case 26:na(e,i),u&512&&zi(i,i.return);break;case 27:case 5:na(e,i),n===null&&u&4&&cg(i),u&512&&zi(i,i.return);break;case 12:na(e,i);break;case 13:na(e,i),u&4&&yg(e,i);break;case 22:if(c=i.memoizedState!==null||ea,!c){n=n!==null&&n.memoizedState!==null||wt;var h=ea,b=wt;ea=c,(wt=n)&&!b?za(e,i,(i.subtreeFlags&8772)!==0):na(e,i),ea=h,wt=b}u&512&&(i.memoizedProps.mode==="manual"?zi(i,i.return):An(i,i.return));break;default:na(e,i)}}function pg(e){var n=e.alternate;n!==null&&(e.alternate=null,pg(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Rn(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var zt=null,Mn=!1;function ta(e,n,i){for(i=i.child;i!==null;)gg(e,n,i),i=i.sibling}function gg(e,n,i){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(Ea,i)}catch{}switch(i.tag){case 26:wt||An(i,n),ta(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:wt||An(i,n);var u=zt,c=Mn;for(zt=i.stateNode,ta(e,n,i),i=i.stateNode,n=i.attributes;n.length;)i.removeAttributeNode(n[0]);Rn(i),zt=u,Mn=c;break;case 5:wt||An(i,n);case 6:c=zt;var h=Mn;if(zt=null,ta(e,n,i),zt=c,Mn=h,zt!==null)if(Mn)try{e=zt,u=i.stateNode,e.nodeType===8?e.parentNode.removeChild(u):e.removeChild(u)}catch(b){ct(i,n,b)}else try{zt.removeChild(i.stateNode)}catch(b){ct(i,n,b)}break;case 18:zt!==null&&(Mn?(n=zt,i=i.stateNode,n.nodeType===8?ph(n.parentNode,i):n.nodeType===1&&ph(n,i),ro(n)):ph(zt,i.stateNode));break;case 4:u=zt,c=Mn,zt=i.stateNode.containerInfo,Mn=!0,ta(e,n,i),zt=u,Mn=c;break;case 0:case 11:case 14:case 15:wt||Na(2,i,n),wt||Na(4,i,n),ta(e,n,i);break;case 1:wt||(An(i,n),u=i.stateNode,typeof u.componentWillUnmount=="function"&&sg(i,n,u)),ta(e,n,i);break;case 21:ta(e,n,i);break;case 22:wt||An(i,n),wt=(u=wt)||i.memoizedState!==null,ta(e,n,i),wt=u;break;default:ta(e,n,i)}}function yg(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ro(e)}catch(i){ct(n,n.return,i)}}function DE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new hg),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new hg),n;default:throw Error(l(435,e.tag))}}function Bd(e,n){var i=DE(e);n.forEach(function(u){var c=qE.bind(null,e,u);i.has(u)||(i.add(u),u.then(c,c))})}function Xn(e,n){var i=n.deletions;if(i!==null)for(var u=0;u<i.length;u++){var c=i[u],h=e,b=n,O=b;e:for(;O!==null;){switch(O.tag){case 27:case 5:zt=O.stateNode,Mn=!1;break e;case 3:zt=O.stateNode.containerInfo,Mn=!0;break e;case 4:zt=O.stateNode.containerInfo,Mn=!0;break e}O=O.return}if(zt===null)throw Error(l(160));gg(h,b,c),zt=null,Mn=!1,h=c.alternate,h!==null&&(h.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)bg(n,e),n=n.sibling}var sr=null;function bg(e,n){var i=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xn(n,e),Zn(e),u&4&&(Na(3,e,e.return),Bu(3,e),Na(5,e,e.return));break;case 1:Xn(n,e),Zn(e),u&512&&(wt||i===null||An(i,i.return)),u&64&&ea&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?u:i.concat(u))));break;case 26:var c=sr;if(Xn(n,e),Zn(e),u&512&&(wt||i===null||An(i,i.return)),u&4){var h=i!==null?i.memoizedState:null;if(u=e.memoizedState,i===null)if(u===null)if(e.stateNode===null){e:{u=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(u){case"title":h=c.getElementsByTagName("title")[0],(!h||h[ar]||h[Oe]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=c.createElement(u),c.head.insertBefore(h,c.querySelector("head > title"))),Gt(h,u,i),h[Oe]=e,yt(h),u=h;break e;case"link":var b=cy("link","href",c).get(u+(i.href||""));if(b){for(var O=0;O<b.length;O++)if(h=b[O],h.getAttribute("href")===(i.href==null?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(O,1);break t}}h=c.createElement(u),Gt(h,u,i),c.head.appendChild(h);break;case"meta":if(b=cy("meta","content",c).get(u+(i.content||""))){for(O=0;O<b.length;O++)if(h=b[O],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(O,1);break t}}h=c.createElement(u),Gt(h,u,i),c.head.appendChild(h);break;default:throw Error(l(468,u))}h[Oe]=e,yt(h),u=h}e.stateNode=u}else fy(c,e.type,e.stateNode);else e.stateNode=sy(c,u,e.memoizedProps);else h!==u?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,u===null?fy(c,e.type,e.stateNode):sy(c,u,e.memoizedProps)):u===null&&e.stateNode!==null&&fg(e,e.memoizedProps,i.memoizedProps)}break;case 27:if(u&4&&e.alternate===null){c=e.stateNode,h=e.memoizedProps;try{for(var _=c.firstChild;_;){var P=_.nextSibling,ee=_.nodeName;_[ar]||ee==="HEAD"||ee==="BODY"||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&_.rel.toLowerCase()==="stylesheet"||c.removeChild(_),_=P}for(var ue=e.type,G=c.attributes;G.length;)c.removeAttributeNode(G[0]);Gt(c,ue,h),c[Oe]=e,c[$e]=h}catch(be){ct(e,e.return,be)}}case 5:if(Xn(n,e),Zn(e),u&512&&(wt||i===null||An(i,i.return)),e.flags&32){c=e.stateNode;try{il(c,"")}catch(be){ct(e,e.return,be)}}u&4&&e.stateNode!=null&&(c=e.memoizedProps,fg(e,c,i!==null?i.memoizedProps:c)),u&1024&&($d=!0);break;case 6:if(Xn(n,e),Zn(e),u&4){if(e.stateNode===null)throw Error(l(162));u=e.memoizedProps,i=e.stateNode;try{i.nodeValue=u}catch(be){ct(e,e.return,be)}}break;case 3:if(Is=null,c=sr,sr=Xs(n.containerInfo),Xn(n,e),sr=c,Zn(e),u&4&&i!==null&&i.memoizedState.isDehydrated)try{ro(n.containerInfo)}catch(be){ct(e,e.return,be)}$d&&($d=!1,Sg(e));break;case 4:u=sr,sr=Xs(e.stateNode.containerInfo),Xn(n,e),Zn(e),sr=u;break;case 12:Xn(n,e),Zn(e);break;case 13:Xn(n,e),Zn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Gd=jt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Bd(e,u)));break;case 22:if(u&512&&(wt||i===null||An(i,i.return)),_=e.memoizedState!==null,P=i!==null&&i.memoizedState!==null,ee=ea,ue=wt,ea=ee||_,wt=ue||P,Xn(n,e),wt=ue,ea=ee,Zn(e),n=e.stateNode,n._current=e,n._visibility&=-3,n._visibility|=n._pendingVisibility&2,u&8192&&(n._visibility=_?n._visibility&-2:n._visibility|1,_&&(n=ea||wt,i===null||P||n||El(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(i=null,n=e;;){if(n.tag===5||n.tag===26||n.tag===27){if(i===null){P=i=n;try{if(c=P.stateNode,_)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=P.stateNode,O=P.memoizedProps.style;var W=O!=null&&O.hasOwnProperty("display")?O.display:null;b.style.display=W==null||typeof W=="boolean"?"":(""+W).trim()}}catch(be){ct(P,P.return,be)}}}else if(n.tag===6){if(i===null){P=n;try{P.stateNode.nodeValue=_?"":P.memoizedProps}catch(be){ct(P,P.return,be)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(i=u.retryQueue,i!==null&&(u.retryQueue=null,Bd(e,i))));break;case 19:Xn(n,e),Zn(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Bd(e,u)));break;case 21:break;default:Xn(n,e),Zn(e)}}function Zn(e){var n=e.flags;if(n&2){try{if(e.tag!==27){e:{for(var i=e.return;i!==null;){if(dg(i)){var u=i;break e}i=i.return}throw Error(l(160))}switch(u.tag){case 27:var c=u.stateNode,h=Hd(e);zs(e,h,c);break;case 5:var b=u.stateNode;u.flags&32&&(il(b,""),u.flags&=-33);var O=Hd(e);zs(e,O,b);break;case 3:case 4:var _=u.stateNode.containerInfo,P=Hd(e);Ud(e,P,_);break;default:throw Error(l(161))}}}catch(ee){ct(e,e.return,ee)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Sg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Sg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function na(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)vg(e,n.alternate,n),n=n.sibling}function El(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Na(4,n,n.return),El(n);break;case 1:An(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&sg(n,n.return,i),El(n);break;case 26:case 27:case 5:An(n,n.return),El(n);break;case 22:An(n,n.return),n.memoizedState===null&&El(n);break;default:El(n)}e=e.sibling}}function za(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,c=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:za(c,h,i),Bu(4,h);break;case 1:if(za(c,h,i),u=h,c=u.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(P){ct(u,u.return,P)}if(u=h,c=u.updateQueue,c!==null){var O=u.stateNode;try{var _=c.shared.hiddenCallbacks;if(_!==null)for(c.shared.hiddenCallbacks=null,c=0;c<_.length;c++)lg(_[c],O)}catch(P){ct(u,u.return,P)}}i&&b&64&&og(h),zi(h,h.return);break;case 26:case 27:case 5:za(c,h,i),i&&u===null&&b&4&&cg(h),zi(h,h.return);break;case 12:za(c,h,i);break;case 13:za(c,h,i),i&&b&4&&yg(c,h);break;case 22:h.memoizedState===null&&za(c,h,i),zi(h,h.return);break;default:za(c,h,i)}n=n.sibling}}function Pd(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Ru(i))}function qd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ru(e))}function La(e,n,i,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)xg(e,n,i,u),n=n.sibling}function xg(e,n,i,u){var c=n.flags;switch(n.tag){case 0:case 11:case 15:La(e,n,i,u),c&2048&&Bu(9,n);break;case 3:La(e,n,i,u),c&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ru(e)));break;case 12:if(c&2048){La(e,n,i,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,O=h.onPostCommit;typeof O=="function"&&O(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){ct(n,n.return,_)}}else La(e,n,i,u);break;case 23:break;case 22:h=n.stateNode,n.memoizedState!==null?h._visibility&4?La(e,n,i,u):Pu(e,n):h._visibility&4?La(e,n,i,u):(h._visibility|=4,wl(e,n,i,u,(n.subtreeFlags&10256)!==0)),c&2048&&Pd(n.alternate,n);break;case 24:La(e,n,i,u),c&2048&&qd(n.alternate,n);break;default:La(e,n,i,u)}}function wl(e,n,i,u,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var h=e,b=n,O=i,_=u,P=b.flags;switch(b.tag){case 0:case 11:case 15:wl(h,b,O,_,c),Bu(8,b);break;case 23:break;case 22:var ee=b.stateNode;b.memoizedState!==null?ee._visibility&4?wl(h,b,O,_,c):Pu(h,b):(ee._visibility|=4,wl(h,b,O,_,c)),c&&P&2048&&Pd(b.alternate,b);break;case 24:wl(h,b,O,_,c),c&&P&2048&&qd(b.alternate,b);break;default:wl(h,b,O,_,c)}n=n.sibling}}function Pu(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,u=n,c=u.flags;switch(u.tag){case 22:Pu(i,u),c&2048&&Pd(u.alternate,u);break;case 24:Pu(i,u),c&2048&&qd(u.alternate,u);break;default:Pu(i,u)}n=n.sibling}}var qu=8192;function Cl(e){if(e.subtreeFlags&qu)for(e=e.child;e!==null;)Eg(e),e=e.sibling}function Eg(e){switch(e.tag){case 26:Cl(e),e.flags&qu&&e.memoizedState!==null&&pw(sr,e.memoizedState,e.memoizedProps);break;case 5:Cl(e);break;case 3:case 4:var n=sr;sr=Xs(e.stateNode.containerInfo),Cl(e),sr=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=qu,qu=16777216,Cl(e),qu=n):Cl(e));break;default:Cl(e)}}function wg(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function ku(e){var n=e.deletions;if(e.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];Ft=u,Og(u,e)}wg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cg(e),e=e.sibling}function Cg(e){switch(e.tag){case 0:case 11:case 15:ku(e),e.flags&2048&&Na(9,e,e.return);break;case 3:ku(e);break;case 12:ku(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&4&&(e.return===null||e.return.tag!==13)?(n._visibility&=-5,Ls(e)):ku(e);break;default:ku(e)}}function Ls(e){var n=e.deletions;if(e.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var u=n[i];Ft=u,Og(u,e)}wg(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Na(8,n,n.return),Ls(n);break;case 22:i=n.stateNode,i._visibility&4&&(i._visibility&=-5,Ls(n));break;default:Ls(n)}e=e.sibling}}function Og(e,n){for(;Ft!==null;){var i=Ft;switch(i.tag){case 0:case 11:case 15:Na(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var u=i.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Ru(i.memoizedState.cache)}if(u=i.child,u!==null)u.return=i,Ft=u;else e:for(i=e;Ft!==null;){u=Ft;var c=u.sibling,h=u.return;if(pg(u),u===i){Ft=null;break e}if(c!==null){c.return=h,Ft=c;break e}Ft=h}}}function AE(e,n,i,u){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,n,i,u){return new AE(e,n,i,u)}function kd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ha(e,n){var i=e.alternate;return i===null?(i=In(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&31457280,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Tg(e,n){e.flags&=31457282;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Hs(e,n,i,u,c,h){var b=0;if(u=e,typeof e=="function")kd(e)&&(b=1);else if(typeof e=="string")b=mw(e,i,Mt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case m:return Li(i.children,c,h,n);case v:b=8,c|=24;break;case g:return e=In(12,i,n,c|2),e.elementType=g,e.lanes=h,e;case x:return e=In(13,i,n,c),e.elementType=x,e.lanes=h,e;case R:return e=In(19,i,n,c),e.elementType=R,e.lanes=h,e;case N:return Rg(i,c,h,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case S:case y:b=10;break e;case p:b=9;break e;case w:b=11;break e;case T:b=14;break e;case A:b=16,u=null;break e}b=29,i=Error(l(130,e===null?"null":typeof e,"")),u=null}return n=In(b,i,n,c),n.elementType=e,n.type=u,n.lanes=h,n}function Li(e,n,i,u){return e=In(7,e,u,n),e.lanes=i,e}function Rg(e,n,i,u){e=In(22,e,u,n),e.elementType=N,e.lanes=i;var c={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var h=c._current;if(h===null)throw Error(l(456));if(!(c._pendingVisibility&2)){var b=Ca(h,2);b!==null&&(c._pendingVisibility|=2,hn(b,h,2))}},attach:function(){var h=c._current;if(h===null)throw Error(l(456));if(c._pendingVisibility&2){var b=Ca(h,2);b!==null&&(c._pendingVisibility&=-3,hn(b,h,2))}}};return e.stateNode=c,e}function Fd(e,n,i){return e=In(6,e,null,n),e.lanes=i,e}function Vd(e,n,i){return n=In(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ra(e){e.flags|=4}function Dg(e,n){if(n.type!=="stylesheet"||n.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!dy(n)){if(n=Gn.current,n!==null&&((Ze&4194176)===Ze?Cr!==null:(Ze&62914560)!==Ze&&!(Ze&536870912)||n!==Cr))throw Tu=Xf,Vp;e.flags|=8192}}function Us(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Y():536870912,e.lanes|=n,Tl|=n)}function Fu(e,n){if(!Je)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function bt(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,u=0;if(n)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,u|=c.subtreeFlags&31457280,u|=c.flags&31457280,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,u|=c.subtreeFlags,u|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=u,e.childLanes=i,n}function ME(e,n,i){var u=n.pendingProps;switch(Kf(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(n),null;case 1:return bt(n),null;case 3:return i=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Wr(Ut),en(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Eu(n)?ra(n):e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,or!==null&&(Jd(or),or=null))),bt(n),null;case 26:return i=n.memoizedState,e===null?(ra(n),i!==null?(bt(n),Dg(n,i)):(bt(n),n.flags&=-16777217)):i?i!==e.memoizedState?(ra(n),bt(n),Dg(n,i)):(bt(n),n.flags&=-16777217):(e.memoizedProps!==u&&ra(n),bt(n),n.flags&=-16777217),null;case 27:Se(n),i=dt.current;var c=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==u&&ra(n);else{if(!u){if(n.stateNode===null)throw Error(l(166));return bt(n),null}e=Mt.current,Eu(n)?kp(n):(e=ay(c,u,i),n.stateNode=e,ra(n))}return bt(n),null;case 5:if(Se(n),i=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&ra(n);else{if(!u){if(n.stateNode===null)throw Error(l(166));return bt(n),null}if(e=Mt.current,Eu(n))kp(n);else{switch(c=Gs(dt.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof u.is=="string"?c.createElement("select",{is:u.is}):c.createElement("select"),u.multiple?e.multiple=!0:u.size&&(e.size=u.size);break;default:e=typeof u.is=="string"?c.createElement(i,{is:u.is}):c.createElement(i)}}e[Oe]=n,e[$e]=u;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=e;e:switch(Gt(e,i,u),i){case"button":case"input":case"select":case"textarea":e=!!u.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ra(n)}}return bt(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&ra(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(l(166));if(e=dt.current,Eu(n)){if(e=n.stateNode,i=n.memoizedProps,u=null,c=dn,c!==null)switch(c.tag){case 27:case 5:u=c.memoizedProps}e[Oe]=n,e=!!(e.nodeValue===i||u!==null&&u.suppressHydrationWarning===!0||Jg(e.nodeValue,i)),e||Oi(n)}else e=Gs(e).createTextNode(u),e[Oe]=n,n.stateNode=e}return bt(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Eu(n),u!==null&&u.dehydrated!==null){if(e===null){if(!c)throw Error(l(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[Oe]=n}else wu(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;bt(n),c=!1}else or!==null&&(Jd(or),or=null),c=!0;if(!c)return n.flags&256?(Zr(n),n):(Zr(n),null)}if(Zr(n),n.flags&128)return n.lanes=i,n;if(i=u!==null,e=e!==null&&e.memoizedState!==null,i){u=n.child,c=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(c=u.alternate.memoizedState.cachePool.pool);var h=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==c&&(u.flags|=2048)}return i!==e&&i&&(n.child.flags|=8192),Us(n,n.updateQueue),bt(n),null;case 4:return en(),e===null&&sh(n.stateNode.containerInfo),bt(n),null;case 10:return Wr(n.type),bt(n),null;case 19:if(je($t),c=n.memoizedState,c===null)return bt(n),null;if(u=(n.flags&128)!==0,h=c.rendering,h===null)if(u)Fu(c,!1);else{if(Ct!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(h=As(e),h!==null){for(n.flags|=128,Fu(c,!1),e=h.updateQueue,n.updateQueue=e,Us(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)Tg(i,e),i=i.sibling;return Ne($t,$t.current&1|2),n.child}e=e.sibling}c.tail!==null&&jt()>$s&&(n.flags|=128,u=!0,Fu(c,!1),n.lanes=4194304)}else{if(!u)if(e=As(h),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Us(n,e),Fu(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Je)return bt(n),null}else 2*jt()-c.renderingStartTime>$s&&i!==536870912&&(n.flags|=128,u=!0,Fu(c,!1),n.lanes=4194304);c.isBackwards?(h.sibling=n.child,n.child=h):(e=c.last,e!==null?e.sibling=h:n.child=h,c.last=h)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=jt(),n.sibling=null,e=$t.current,Ne($t,u?e&1|2:e&1),n):(bt(n),null);case 22:case 23:return Zr(n),Wf(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?i&536870912&&!(n.flags&128)&&(bt(n),n.subtreeFlags&6&&(n.flags|=8192)):bt(n),i=n.updateQueue,i!==null&&Us(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048),e!==null&&je(Ti),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Wr(Ut),bt(n),null;case 25:return null}throw Error(l(156,n.tag))}function jE(e,n){switch(Kf(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Wr(Ut),en(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Se(n),null;case 13:if(Zr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));wu()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return je($t),null;case 4:return en(),null;case 10:return Wr(n.type),null;case 22:case 23:return Zr(n),Wf(),e!==null&&je(Ti),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Wr(Ut),null;case 25:return null;default:return null}}function Ag(e,n){switch(Kf(n),n.tag){case 3:Wr(Ut),en();break;case 26:case 27:case 5:Se(n);break;case 4:en();break;case 13:Zr(n);break;case 19:je($t);break;case 10:Wr(n.type);break;case 22:case 23:Zr(n),Wf(),e!==null&&je(Ti);break;case 24:Wr(Ut)}}var _E={getCacheForType:function(e){var n=nn(Ut),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i}},NE=typeof WeakMap=="function"?WeakMap:Map,St=0,ht=null,Ve=null,Ze=0,at=0,jn=null,Ua=!1,Ol=!1,Yd=!1,aa=0,Ct=0,$a=0,Hi=0,Qd=0,Jn=0,Tl=0,Vu=null,Or=null,Kd=!1,Gd=0,$s=1/0,Bs=null,Ba=null,Ps=!1,Ui=null,Yu=0,Xd=0,Zd=null,Qu=0,Id=null;function _n(){if(St&2&&Ze!==0)return Ze&-Ze;if(z.T!==null){var e=vl;return e!==0?e:ih()}return xe()}function Mg(){Jn===0&&(Jn=!(Ze&536870912)||Je?H():536870912);var e=Gn.current;return e!==null&&(e.flags|=32),Jn}function hn(e,n,i){(e===ht&&(at===2||at===9)||e.cancelPendingCommit!==null)&&(Rl(e,0),Pa(e,Ze,Jn,!1)),le(e,i),(!(St&2)||e!==ht)&&(e===ht&&(!(St&2)&&(Hi|=i),Ct===4&&Pa(e,Ze,Jn,!1)),Tr(e))}function jg(e,n,i){if(St&6)throw Error(l(327));var u=!i&&(n&60)===0&&(n&e.expiredLanes)===0||yi(e,n),c=u?HE(e,n):th(e,n,!0),h=u;do{if(c===0){Ol&&!u&&Pa(e,n,0,!1);break}else{if(i=e.current.alternate,h&&!zE(i)){c=th(e,n,!1),h=!1;continue}if(c===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var O=e;c=Vu;var _=O.current.memoizedState.isDehydrated;if(_&&(Rl(O,b).flags|=256),b=th(O,b,!1),b!==2){if(Yd&&!_){O.errorRecoveryDisabledLanes|=h,Hi|=h,c=4;break e}h=Or,Or=c,h!==null&&Jd(h)}c=b}if(h=!1,c!==2)continue}}if(c===1){Rl(e,0),Pa(e,n,0,!0);break}e:{switch(u=e,h=c,h){case 0:case 1:throw Error(l(345));case 4:if((n&4194176)!==n)break;case 6:Pa(u,n,Jn,!Ua);break e;case 2:Or=null;break;case 3:case 5:break;default:throw Error(l(329))}if(u.finishedWork=i,u.finishedLanes=n,(n&62914560)===n&&(c=Gd+300-jt(),10<c)){if(Pa(u,n,Jn,!Ua),Fr(u,0)!==0)break e;u.timeoutHandle=ty(_g.bind(null,u,i,Or,Bs,Kd,n,Jn,Hi,Tl,Ua,h,2,-0,0),c);break e}_g(u,i,Or,Bs,Kd,n,Jn,Hi,Tl,Ua,h,0,-0,0)}}break}while(!0);Tr(e)}function Jd(e){Or===null?Or=e:Or.push.apply(Or,e)}function _g(e,n,i,u,c,h,b,O,_,P,ee,ue,G,W){var be=n.subtreeFlags;if((be&8192||(be&16785408)===16785408)&&(Ju={stylesheets:null,count:0,unsuspend:vw},Eg(n),n=gw(),n!==null)){e.cancelPendingCommit=n(Bg.bind(null,e,i,u,c,b,O,_,ee,1,G,W)),Pa(e,h,b,!P);return}Bg(e,i,u,c,b,O,_,ee,ue,G,W)}function zE(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var u=0;u<i.length;u++){var c=i[u],h=c.getSnapshot;c=c.value;try{if(!Dn(h(),c))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Pa(e,n,i,u){n&=~Qd,n&=~Hi,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var c=n;0<c;){var h=31-tn(c),b=1<<h;u[h]=-1,c&=~b}i!==0&&Ee(e,i,n)}function qs(){return St&6?!0:(Ku(0),!1)}function Wd(){if(Ve!==null){if(at===0)var e=Ve.return;else e=Ve,Jr=_i=null,id(e),xl=null,_u=0,e=Ve;for(;e!==null;)Ag(e.alternate,e),e=e.return;Ve=null}}function Rl(e,n){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,WE(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Wd(),ht=e,Ve=i=Ha(e.current,null),Ze=n,at=0,jn=null,Ua=!1,Ol=yi(e,n),Yd=!1,Tl=Jn=Qd=Hi=$a=Ct=0,Or=Vu=null,Kd=!1,n&8&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var c=31-tn(u),h=1<<c;n|=e[c],u&=~h}return aa=n,ss(),i}function Ng(e,n){Be=null,z.H=wr,n===Ou||n===ms?(n=Kp(),at=3):n===Vp?(n=Kp(),at=4):at=n===Q0?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,jn=n,Ve===null&&(Ct=1,js(e,Yn(n,e.current)))}function zg(){var e=z.H;return z.H=wr,e===null?wr:e}function Lg(){var e=z.A;return z.A=_E,e}function eh(){Ct=4,Ua||(Ze&4194176)!==Ze&&Gn.current!==null||(Ol=!0),!($a&134217727)&&!(Hi&134217727)||ht===null||Pa(ht,Ze,Jn,!1)}function th(e,n,i){var u=St;St|=2;var c=zg(),h=Lg();(ht!==e||Ze!==n)&&(Bs=null,Rl(e,n)),n=!1;var b=Ct;e:do try{if(at!==0&&Ve!==null){var O=Ve,_=jn;switch(at){case 8:Wd(),b=6;break e;case 3:case 2:case 9:case 6:Gn.current===null&&(n=!0);var P=at;if(at=0,jn=null,Dl(e,O,_,P),i&&Ol){b=0;break e}break;default:P=at,at=0,jn=null,Dl(e,O,_,P)}}LE(),b=Ct;break}catch(ee){Ng(e,ee)}while(!0);return n&&e.shellSuspendCounter++,Jr=_i=null,St=u,z.H=c,z.A=h,Ve===null&&(ht=null,Ze=0,ss()),b}function LE(){for(;Ve!==null;)Hg(Ve)}function HE(e,n){var i=St;St|=2;var u=zg(),c=Lg();ht!==e||Ze!==n?(Bs=null,$s=jt()+500,Rl(e,n)):Ol=yi(e,n);e:do try{if(at!==0&&Ve!==null){n=Ve;var h=jn;t:switch(at){case 1:at=0,jn=null,Dl(e,n,h,1);break;case 2:case 9:if(Yp(h)){at=0,jn=null,Ug(n);break}n=function(){at!==2&&at!==9||ht!==e||(at=7),Tr(e)},h.then(n,n);break e;case 3:at=7;break e;case 4:at=5;break e;case 7:Yp(h)?(at=0,jn=null,Ug(n)):(at=0,jn=null,Dl(e,n,h,7));break;case 5:var b=null;switch(Ve.tag){case 26:b=Ve.memoizedState;case 5:case 27:var O=Ve;if(!b||dy(b)){at=0,jn=null;var _=O.sibling;if(_!==null)Ve=_;else{var P=O.return;P!==null?(Ve=P,ks(P)):Ve=null}break t}}at=0,jn=null,Dl(e,n,h,5);break;case 6:at=0,jn=null,Dl(e,n,h,6);break;case 8:Wd(),Ct=6;break e;default:throw Error(l(462))}}UE();break}catch(ee){Ng(e,ee)}while(!0);return Jr=_i=null,z.H=u,z.A=c,St=i,Ve!==null?0:(ht=null,Ze=0,ss(),Ct)}function UE(){for(;Ve!==null&&!Rt();)Hg(Ve)}function Hg(e){var n=ag(e.alternate,e,aa);e.memoizedProps=e.pendingProps,n===null?ks(e):Ve=n}function Ug(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=J0(i,n,n.pendingProps,n.type,void 0,Ze);break;case 11:n=J0(i,n,n.pendingProps,n.type.render,n.ref,Ze);break;case 5:id(n);default:Ag(i,n),n=Ve=Tg(n,aa),n=ag(i,n,aa)}e.memoizedProps=e.pendingProps,n===null?ks(e):Ve=n}function Dl(e,n,i,u){Jr=_i=null,id(n),xl=null,_u=0;var c=n.return;try{if(OE(e,c,n,i,Ze)){Ct=1,js(e,Yn(i,e.current)),Ve=null;return}}catch(h){if(c!==null)throw Ve=c,h;Ct=1,js(e,Yn(i,e.current)),Ve=null;return}n.flags&32768?(Je||u===1?e=!0:Ol||Ze&536870912?e=!1:(Ua=e=!0,(u===2||u===9||u===3||u===6)&&(u=Gn.current,u!==null&&u.tag===13&&(u.flags|=16384))),$g(n,e)):ks(n)}function ks(e){var n=e;do{if(n.flags&32768){$g(n,Ua);return}e=n.return;var i=ME(n.alternate,n,aa);if(i!==null){Ve=i;return}if(n=n.sibling,n!==null){Ve=n;return}Ve=n=e}while(n!==null);Ct===0&&(Ct=5)}function $g(e,n){do{var i=jE(e.alternate,e);if(i!==null){i.flags&=32767,Ve=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Ve=e;return}Ve=e=i}while(e!==null);Ct=6,Ve=null}function Bg(e,n,i,u,c,h,b,O,_,P,ee){var ue=z.T,G=ce.p;try{ce.p=2,z.T=null,$E(e,n,i,u,G,c,h,b,O,_,P,ee)}finally{z.T=ue,ce.p=G}}function $E(e,n,i,u,c,h,b,O){do Al();while(Ui!==null);if(St&6)throw Error(l(327));var _=e.finishedWork;if(u=e.finishedLanes,_===null)return null;if(e.finishedWork=null,e.finishedLanes=0,_===e.current)throw Error(l(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var P=_.lanes|_.childLanes;if(P|=Vf,ve(e,u,P,h,b,O),e===ht&&(Ve=ht=null,Ze=0),!(_.subtreeFlags&10256)&&!(_.flags&10256)||Ps||(Ps=!0,Xd=P,Zd=i,kE(xa,function(){return Al(),null})),i=(_.flags&15990)!==0,_.subtreeFlags&15990||i?(i=z.T,z.T=null,h=ce.p,ce.p=2,b=St,St|=4,RE(e,_),bg(_,e),oE(hh,e.containerInfo),ec=!!dh,hh=dh=null,e.current=_,vg(e,_.alternate,_),un(),St=b,ce.p=h,z.T=i):e.current=_,Ps?(Ps=!1,Ui=e,Yu=u):Pg(e,P),P=e.pendingLanes,P===0&&(Ba=null),Zo(_.stateNode),Tr(e),n!==null)for(c=e.onRecoverableError,_=0;_<n.length;_++)P=n[_],c(P.value,{componentStack:P.stack});return Yu&3&&Al(),P=e.pendingLanes,u&4194218&&P&42?e===Id?Qu++:(Qu=0,Id=e):Qu=0,Ku(0),null}function Pg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Ru(n)))}function Al(){if(Ui!==null){var e=Ui,n=Xd;Xd=0;var i=pe(Yu),u=z.T,c=ce.p;try{if(ce.p=32>i?32:i,z.T=null,Ui===null)var h=!1;else{i=Zd,Zd=null;var b=Ui,O=Yu;if(Ui=null,Yu=0,St&6)throw Error(l(331));var _=St;if(St|=4,Cg(b.current),xg(b,b.current,O,i),St=_,Ku(0,!1),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(Ea,b)}catch{}h=!0}return h}finally{ce.p=c,z.T=u,Pg(e,n)}}return!1}function qg(e,n,i){n=Yn(i,n),n=bd(e.stateNode,n,2),e=_a(e,n,2),e!==null&&(le(e,2),Tr(e))}function ct(e,n,i){if(e.tag===3)qg(e,e,i);else for(;n!==null;){if(n.tag===3){qg(n,e,i);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ba===null||!Ba.has(u))){e=Yn(i,e),i=V0(2),u=_a(n,i,2),u!==null&&(Y0(i,u,n,e),le(u,2),Tr(u));break}}n=n.return}}function nh(e,n,i){var u=e.pingCache;if(u===null){u=e.pingCache=new NE;var c=new Set;u.set(n,c)}else c=u.get(n),c===void 0&&(c=new Set,u.set(n,c));c.has(i)||(Yd=!0,c.add(i),e=BE.bind(null,e,n,i),n.then(e,e))}function BE(e,n,i){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,ht===e&&(Ze&i)===i&&(Ct===4||Ct===3&&(Ze&62914560)===Ze&&300>jt()-Gd?!(St&2)&&Rl(e,0):Qd|=i,Tl===Ze&&(Tl=0)),Tr(e)}function kg(e,n){n===0&&(n=Y()),e=Ca(e,n),e!==null&&(le(e,n),Tr(e))}function PE(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),kg(e,i)}function qE(e,n){var i=0;switch(e.tag){case 13:var u=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(l(314))}u!==null&&u.delete(n),kg(e,i)}function kE(e,n){return xt(e,n)}var Fs=null,Ml=null,rh=!1,Vs=!1,ah=!1,$i=0;function Tr(e){e!==Ml&&e.next===null&&(Ml===null?Fs=Ml=e:Ml=Ml.next=e),Vs=!0,rh||(rh=!0,VE(FE))}function Ku(e,n){if(!ah&&Vs){ah=!0;do for(var i=!1,u=Fs;u!==null;){if(e!==0){var c=u.pendingLanes;if(c===0)var h=0;else{var b=u.suspendedLanes,O=u.pingedLanes;h=(1<<31-tn(42|e)+1)-1,h&=c&~(b&~O),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(i=!0,Yg(u,h))}else h=Ze,h=Fr(u,u===ht?h:0),!(h&3)||yi(u,h)||(i=!0,Yg(u,h));u=u.next}while(i);ah=!1}}function FE(){Vs=rh=!1;var e=0;$i!==0&&(JE()&&(e=$i),$i=0);for(var n=jt(),i=null,u=Fs;u!==null;){var c=u.next,h=Fg(u,n);h===0?(u.next=null,i===null?Fs=c:i.next=c,c===null&&(Ml=i)):(i=u,(e!==0||h&3)&&(Vs=!0)),u=c}Ku(e)}function Fg(e,n){for(var i=e.suspendedLanes,u=e.pingedLanes,c=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-tn(h),O=1<<b,_=c[b];_===-1?(!(O&i)||O&u)&&(c[b]=wf(O,n)):_<=n&&(e.expiredLanes|=O),h&=~O}if(n=ht,i=Ze,i=Fr(e,e===n?i:0),u=e.callbackNode,i===0||e===n&&(at===2||at===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&Le(u),e.callbackNode=null,e.callbackPriority=0;if(!(i&3)||yi(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(u!==null&&Le(u),pe(i)){case 2:case 8:i=cu;break;case 32:i=xa;break;case 268435456:i=rr;break;default:i=xa}return u=Vg.bind(null,e),i=xt(i,u),e.callbackPriority=n,e.callbackNode=i,n}return u!==null&&u!==null&&Le(u),e.callbackPriority=2,e.callbackNode=null,2}function Vg(e,n){var i=e.callbackNode;if(Al()&&e.callbackNode!==i)return null;var u=Ze;return u=Fr(e,e===ht?u:0),u===0?null:(jg(e,u,n),Fg(e,jt()),e.callbackNode!=null&&e.callbackNode===i?Vg.bind(null,e):null)}function Yg(e,n){if(Al())return null;jg(e,n,!0)}function VE(e){ew(function(){St&6?xt(sn,e):e()})}function ih(){return $i===0&&($i=H()),$i}function Qg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ns(""+e)}function Kg(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function YE(e,n,i,u,c){if(n==="submit"&&i&&i.stateNode===c){var h=Qg((c[$e]||null).action),b=u.submitter;b&&(n=(n=b[$e]||null)?Qg(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var O=new ls("action","action",null,u,c);e.push({event:O,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if($i!==0){var _=b?Kg(c,b):new FormData(c);md(i,{pending:!0,data:_,method:c.method,action:h},null,_)}}else typeof h=="function"&&(O.preventDefault(),_=b?Kg(c,b):new FormData(c),md(i,{pending:!0,data:_,method:c.method,action:h},h,_))},currentTarget:c}]})}}for(var lh=0;lh<$p.length;lh++){var uh=$p[lh],QE=uh.toLowerCase(),KE=uh[0].toUpperCase()+uh.slice(1);ur(QE,"on"+KE)}ur(Np,"onAnimationEnd"),ur(zp,"onAnimationIteration"),ur(Lp,"onAnimationStart"),ur("dblclick","onDoubleClick"),ur("focusin","onFocus"),ur("focusout","onBlur"),ur(cE,"onTransitionRun"),ur(fE,"onTransitionStart"),ur(dE,"onTransitionCancel"),ur(Hp,"onTransitionEnd"),lr("onMouseEnter",["mouseout","mouseover"]),lr("onMouseLeave",["mouseout","mouseover"]),lr("onPointerEnter",["pointerout","pointerover"]),lr("onPointerLeave",["pointerout","pointerover"]),pt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pt("onBeforeInput",["compositionend","keypress","textInput","paste"]),pt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gu="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(" "),GE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gu));function Gg(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var u=e[i],c=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var O=u[b],_=O.instance,P=O.currentTarget;if(O=O.listener,_!==h&&c.isPropagationStopped())break e;h=O,c.currentTarget=P;try{h(c)}catch(ee){Ms(ee)}c.currentTarget=null,h=_}else for(b=0;b<u.length;b++){if(O=u[b],_=O.instance,P=O.currentTarget,O=O.listener,_!==h&&c.isPropagationStopped())break e;h=O,c.currentTarget=P;try{h(c)}catch(ee){Ms(ee)}c.currentTarget=null,h=_}}}}function Qe(e,n){var i=n[ot];i===void 0&&(i=n[ot]=new Set);var u=e+"__bubble";i.has(u)||(Xg(n,e,2,!1),i.add(u))}function oh(e,n,i){var u=0;n&&(u|=4),Xg(i,e,u,n)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function sh(e){if(!e[Ys]){e[Ys]=!0,bi.forEach(function(i){i!=="selectionchange"&&(GE.has(i)||oh(i,!1,e),oh(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ys]||(n[Ys]=!0,oh("selectionchange",!1,n))}}function Xg(e,n,i,u){switch(yy(n)){case 2:var c=Sw;break;case 8:c=xw;break;default:c=Eh}i=c.bind(null,n,i,e),c=void 0,!jf||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),u?c!==void 0?e.addEventListener(n,i,{capture:!0,passive:c}):e.addEventListener(n,i,!0):c!==void 0?e.addEventListener(n,i,{passive:c}):e.addEventListener(n,i,!1)}function ch(e,n,i,u,c){var h=u;if(!(n&1)&&!(n&2)&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var O=u.stateNode.containerInfo;if(O===c||O.nodeType===8&&O.parentNode===c)break;if(b===4)for(b=u.return;b!==null;){var _=b.tag;if((_===3||_===4)&&(_=b.stateNode.containerInfo,_===c||_.nodeType===8&&_.parentNode===c))return;b=b.return}for(;O!==null;){if(b=qt(O),b===null)return;if(_=b.tag,_===5||_===6||_===26||_===27){u=h=b;continue e}O=O.parentNode}}u=u.return}sp(function(){var P=h,ee=Af(i),ue=[];e:{var G=Up.get(e);if(G!==void 0){var W=ls,be=e;switch(e){case"keypress":if(as(i)===0)break e;case"keydown":case"keyup":W=q2;break;case"focusin":be="focus",W=Lf;break;case"focusout":be="blur",W=Lf;break;case"beforeblur":case"afterblur":W=Lf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=dp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=A2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=V2;break;case Np:case zp:case Lp:W=_2;break;case Hp:W=Q2;break;case"scroll":case"scrollend":W=R2;break;case"wheel":W=G2;break;case"copy":case"cut":case"paste":W=z2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=mp;break;case"toggle":case"beforetoggle":W=Z2}var ze=(n&4)!==0,Ot=!ze&&(e==="scroll"||e==="scrollend"),k=ze?G!==null?G+"Capture":null:G;ze=[];for(var $=P,Q;$!==null;){var re=$;if(Q=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||Q===null||k===null||(re=hu($,k),re!=null&&ze.push(Xu($,re,Q))),Ot)break;$=$.return}0<ze.length&&(G=new W(G,be,null,i,ee),ue.push({event:G,listeners:ze}))}}if(!(n&7)){e:{if(G=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",G&&i!==Df&&(be=i.relatedTarget||i.fromElement)&&(qt(be)||be[vt]))break e;if((W||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,W?(be=i.relatedTarget||i.toElement,W=P,be=be?qt(be):null,be!==null&&(Ot=ne(be),ze=be.tag,be!==Ot||ze!==5&&ze!==27&&ze!==6)&&(be=null)):(W=null,be=P),W!==be)){if(ze=dp,re="onMouseLeave",k="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(ze=mp,re="onPointerLeave",k="onPointerEnter",$="pointer"),Ot=W==null?G:ir(W),Q=be==null?G:ir(be),G=new ze(re,$+"leave",W,i,ee),G.target=Ot,G.relatedTarget=Q,re=null,qt(ee)===P&&(ze=new ze(k,$+"enter",be,i,ee),ze.target=Q,ze.relatedTarget=Ot,re=ze),Ot=re,W&&be)t:{for(ze=W,k=be,$=0,Q=ze;Q;Q=jl(Q))$++;for(Q=0,re=k;re;re=jl(re))Q++;for(;0<$-Q;)ze=jl(ze),$--;for(;0<Q-$;)k=jl(k),Q--;for(;$--;){if(ze===k||k!==null&&ze===k.alternate)break t;ze=jl(ze),k=jl(k)}ze=null}else ze=null;W!==null&&Zg(ue,G,W,ze,!1),be!==null&&Ot!==null&&Zg(ue,Ot,be,ze,!0)}}e:{if(G=P?ir(P):window,W=G.nodeName&&G.nodeName.toLowerCase(),W==="select"||W==="input"&&G.type==="file")var ge=Ep;else if(Sp(G))if(wp)ge=lE;else{ge=aE;var ke=rE}else W=G.nodeName,!W||W.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?P&&Rf(P.elementType)&&(ge=Ep):ge=iE;if(ge&&(ge=ge(e,P))){xp(ue,ge,i,ee);break e}ke&&ke(e,G,P),e==="focusout"&&P&&G.type==="number"&&P.memoizedProps.value!=null&&Tf(G,"number",G.value)}switch(ke=P?ir(P):window,e){case"focusin":(Sp(ke)||ke.contentEditable==="true")&&(sl=ke,qf=P,xu=null);break;case"focusout":xu=qf=sl=null;break;case"mousedown":kf=!0;break;case"contextmenu":case"mouseup":case"dragend":kf=!1,jp(ue,i,ee);break;case"selectionchange":if(sE)break;case"keydown":case"keyup":jp(ue,i,ee)}var we;if(Uf)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else ol?yp(e,i)&&(Ae="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ae="onCompositionStart");Ae&&(vp&&i.locale!=="ko"&&(ol||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&ol&&(we=cp()):(wa=ee,_f="value"in wa?wa.value:wa.textContent,ol=!0)),ke=Qs(P,Ae),0<ke.length&&(Ae=new hp(Ae,e,null,i,ee),ue.push({event:Ae,listeners:ke}),we?Ae.data=we:(we=bp(i),we!==null&&(Ae.data=we)))),(we=J2?W2(e,i):eE(e,i))&&(Ae=Qs(P,"onBeforeInput"),0<Ae.length&&(ke=new hp("onBeforeInput","beforeinput",null,i,ee),ue.push({event:ke,listeners:Ae}),ke.data=we)),YE(ue,e,P,i,ee)}Gg(ue,n)})}function Xu(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Qs(e,n){for(var i=n+"Capture",u=[];e!==null;){var c=e,h=c.stateNode;c=c.tag,c!==5&&c!==26&&c!==27||h===null||(c=hu(e,i),c!=null&&u.unshift(Xu(e,c,h)),c=hu(e,n),c!=null&&u.push(Xu(e,c,h))),e=e.return}return u}function jl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zg(e,n,i,u,c){for(var h=n._reactName,b=[];i!==null&&i!==u;){var O=i,_=O.alternate,P=O.stateNode;if(O=O.tag,_!==null&&_===u)break;O!==5&&O!==26&&O!==27||P===null||(_=P,c?(P=hu(i,h),P!=null&&b.unshift(Xu(i,P,_))):c||(P=hu(i,h),P!=null&&b.push(Xu(i,P,_)))),i=i.return}b.length!==0&&e.push({event:n,listeners:b})}var XE=/\r\n?/g,ZE=/\u0000|\uFFFD/g;function Ig(e){return(typeof e=="string"?e:""+e).replace(XE,`
62
- `).replace(ZE,"")}function Jg(e,n){return n=Ig(n),Ig(e)===n}function Ks(){}function lt(e,n,i,u,c,h){switch(i){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||il(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&il(e,""+u);break;case"className":Wo(e,"class",u);break;case"tabIndex":Wo(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Wo(e,i,u);break;case"style":up(e,u,h);break;case"data":if(n!=="object"){Wo(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=ns(""+u),e.setAttribute(i,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(i,"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 h=="function"&&(i==="formAction"?(n!=="input"&&lt(e,n,"name",c.name,c,null),lt(e,n,"formEncType",c.formEncType,c,null),lt(e,n,"formMethod",c.formMethod,c,null),lt(e,n,"formTarget",c.formTarget,c,null)):(lt(e,n,"encType",c.encType,c,null),lt(e,n,"method",c.method,c,null),lt(e,n,"target",c.target,c,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(i);break}u=ns(""+u),e.setAttribute(i,u);break;case"onClick":u!=null&&(e.onclick=Ks);break;case"onScroll":u!=null&&Qe("scroll",e);break;case"onScrollEnd":u!=null&&Qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(i=u.__html,i!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}i=ns(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""+u):e.removeAttribute(i);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":u===!0?e.setAttribute(i,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(i,u):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(i,u):e.removeAttribute(i);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(i):e.setAttribute(i,u);break;case"popover":Qe("beforetoggle",e),Qe("toggle",e),Jo(e,"popover",u);break;case"xlinkActuate":Qr(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Qr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Qr(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Qr(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Qr(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Qr(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Qr(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Qr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Qr(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Jo(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=O2.get(i)||i,Jo(e,i,u))}}function fh(e,n,i,u,c,h){switch(i){case"style":up(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(i=u.__html,i!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof u=="string"?il(e,u):(typeof u=="number"||typeof u=="bigint")&&il(e,""+u);break;case"onScroll":u!=null&&Qe("scroll",e);break;case"onScrollEnd":u!=null&&Qe("scrollend",e);break;case"onClick":u!=null&&(e.onclick=Ks);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rt.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),n=i.slice(2,c?i.length-7:void 0),h=e[$e]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(n,h,c),typeof u=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,u,c);break e}i in e?e[i]=u:u===!0?e.setAttribute(i,""):Jo(e,i,u)}}}function Gt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",e),Qe("load",e);var u=!1,c=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:lt(e,n,h,b,i,null)}}c&&lt(e,n,"srcSet",i.srcSet,i,null),u&&lt(e,n,"src",i.src,i,null);return;case"input":Qe("invalid",e);var O=h=b=c=null,_=null,P=null;for(u in i)if(i.hasOwnProperty(u)){var ee=i[u];if(ee!=null)switch(u){case"name":c=ee;break;case"type":b=ee;break;case"checked":_=ee;break;case"defaultChecked":P=ee;break;case"value":h=ee;break;case"defaultValue":O=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,n));break;default:lt(e,n,u,ee,i,null)}}rp(e,h,O,_,P,b,c,!1),es(e);return;case"select":Qe("invalid",e),u=b=h=null;for(c in i)if(i.hasOwnProperty(c)&&(O=i[c],O!=null))switch(c){case"value":h=O;break;case"defaultValue":b=O;break;case"multiple":u=O;default:lt(e,n,c,O,i,null)}n=h,i=b,e.multiple=!!u,n!=null?al(e,!!u,n,!1):i!=null&&al(e,!!u,i,!0);return;case"textarea":Qe("invalid",e),h=c=u=null;for(b in i)if(i.hasOwnProperty(b)&&(O=i[b],O!=null))switch(b){case"value":u=O;break;case"defaultValue":c=O;break;case"children":h=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(l(91));break;default:lt(e,n,b,O,i,null)}ip(e,u,c,h),es(e);return;case"option":for(_ in i)if(i.hasOwnProperty(_)&&(u=i[_],u!=null))switch(_){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:lt(e,n,_,u,i,null)}return;case"dialog":Qe("cancel",e),Qe("close",e);break;case"iframe":case"object":Qe("load",e);break;case"video":case"audio":for(u=0;u<Gu.length;u++)Qe(Gu[u],e);break;case"image":Qe("error",e),Qe("load",e);break;case"details":Qe("toggle",e);break;case"embed":case"source":case"link":Qe("error",e),Qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in i)if(i.hasOwnProperty(P)&&(u=i[P],u!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:lt(e,n,P,u,i,null)}return;default:if(Rf(n)){for(ee in i)i.hasOwnProperty(ee)&&(u=i[ee],u!==void 0&&fh(e,n,ee,u,i,void 0));return}}for(O in i)i.hasOwnProperty(O)&&(u=i[O],u!=null&&lt(e,n,O,u,i,null))}function IE(e,n,i,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,h=null,b=null,O=null,_=null,P=null,ee=null;for(W in i){var ue=i[W];if(i.hasOwnProperty(W)&&ue!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":_=ue;default:u.hasOwnProperty(W)||lt(e,n,W,null,u,ue)}}for(var G in u){var W=u[G];if(ue=i[G],u.hasOwnProperty(G)&&(W!=null||ue!=null))switch(G){case"type":h=W;break;case"name":c=W;break;case"checked":P=W;break;case"defaultChecked":ee=W;break;case"value":b=W;break;case"defaultValue":O=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(l(137,n));break;default:W!==ue&&lt(e,n,G,W,u,ue)}}Of(e,b,O,_,P,ee,h,c);return;case"select":W=b=O=G=null;for(h in i)if(_=i[h],i.hasOwnProperty(h)&&_!=null)switch(h){case"value":break;case"multiple":W=_;default:u.hasOwnProperty(h)||lt(e,n,h,null,u,_)}for(c in u)if(h=u[c],_=i[c],u.hasOwnProperty(c)&&(h!=null||_!=null))switch(c){case"value":G=h;break;case"defaultValue":O=h;break;case"multiple":b=h;default:h!==_&&lt(e,n,c,h,u,_)}n=O,i=b,u=W,G!=null?al(e,!!i,G,!1):!!u!=!!i&&(n!=null?al(e,!!i,n,!0):al(e,!!i,i?[]:"",!1));return;case"textarea":W=G=null;for(O in i)if(c=i[O],i.hasOwnProperty(O)&&c!=null&&!u.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:lt(e,n,O,null,u,c)}for(b in u)if(c=u[b],h=i[b],u.hasOwnProperty(b)&&(c!=null||h!=null))switch(b){case"value":G=c;break;case"defaultValue":W=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==h&&lt(e,n,b,c,u,h)}ap(e,G,W);return;case"option":for(var be in i)if(G=i[be],i.hasOwnProperty(be)&&G!=null&&!u.hasOwnProperty(be))switch(be){case"selected":e.selected=!1;break;default:lt(e,n,be,null,u,G)}for(_ in u)if(G=u[_],W=i[_],u.hasOwnProperty(_)&&G!==W&&(G!=null||W!=null))switch(_){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:lt(e,n,_,G,u,W)}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 ze in i)G=i[ze],i.hasOwnProperty(ze)&&G!=null&&!u.hasOwnProperty(ze)&&lt(e,n,ze,null,u,G);for(P in u)if(G=u[P],W=i[P],u.hasOwnProperty(P)&&G!==W&&(G!=null||W!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,n));break;default:lt(e,n,P,G,u,W)}return;default:if(Rf(n)){for(var Ot in i)G=i[Ot],i.hasOwnProperty(Ot)&&G!==void 0&&!u.hasOwnProperty(Ot)&&fh(e,n,Ot,void 0,u,G);for(ee in u)G=u[ee],W=i[ee],!u.hasOwnProperty(ee)||G===W||G===void 0&&W===void 0||fh(e,n,ee,G,u,W);return}}for(var k in i)G=i[k],i.hasOwnProperty(k)&&G!=null&&!u.hasOwnProperty(k)&&lt(e,n,k,null,u,G);for(ue in u)G=u[ue],W=i[ue],!u.hasOwnProperty(ue)||G===W||G==null&&W==null||lt(e,n,ue,G,u,W)}var dh=null,hh=null;function Gs(e){return e.nodeType===9?e:e.ownerDocument}function Wg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ey(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function mh(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var vh=null;function JE(){var e=window.event;return e&&e.type==="popstate"?e===vh?!1:(vh=e,!0):(vh=null,!1)}var ty=typeof setTimeout=="function"?setTimeout:void 0,WE=typeof clearTimeout=="function"?clearTimeout:void 0,ny=typeof Promise=="function"?Promise:void 0,ew=typeof queueMicrotask=="function"?queueMicrotask:typeof ny<"u"?function(e){return ny.resolve(null).then(e).catch(tw)}:ty;function tw(e){setTimeout(function(){throw e})}function ph(e,n){var i=n,u=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(u===0){e.removeChild(c),ro(n);return}u--}else i!=="$"&&i!=="$?"&&i!=="$!"||u++;i=c}while(i);ro(n)}function gh(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":gh(i),Rn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function nw(e,n,i,u){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[ar])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==c.rel||e.getAttribute("href")!==(c.href==null?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=cr(e.nextSibling),e===null)break}return null}function rw(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=cr(e.nextSibling),e===null))return null;return e}function cr(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}function ry(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}function ay(e,n,i){switch(n=Gs(i),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}var Wn=new Map,iy=new Set;function Xs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var ia=ce.d;ce.d={f:aw,r:iw,D:lw,C:uw,L:ow,m:sw,X:fw,S:cw,M:dw};function aw(){var e=ia.f(),n=qs();return e||n}function iw(e){var n=xr(e);n!==null&&n.tag===5&&n.type==="form"?D0(n):ia.r(e)}var _l=typeof document>"u"?null:document;function ly(e,n,i){var u=_l;if(u&&typeof n=="string"&&n){var c=Fn(n);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),iy.has(c)||(iy.add(c),e={rel:e,crossOrigin:i,href:n},u.querySelector(c)===null&&(n=u.createElement("link"),Gt(n,"link",e),yt(n),u.head.appendChild(n)))}}function lw(e){ia.D(e),ly("dns-prefetch",e,null)}function uw(e,n){ia.C(e,n),ly("preconnect",e,n)}function ow(e,n,i){ia.L(e,n,i);var u=_l;if(u&&e&&n){var c='link[rel="preload"][as="'+Fn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+Fn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+Fn(i.imageSizes)+'"]')):c+='[href="'+Fn(e)+'"]';var h=c;switch(n){case"style":h=Nl(e);break;case"script":h=zl(e)}Wn.has(h)||(e=X({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),Wn.set(h,e),u.querySelector(c)!==null||n==="style"&&u.querySelector(Zu(h))||n==="script"&&u.querySelector(Iu(h))||(n=u.createElement("link"),Gt(n,"link",e),yt(n),u.head.appendChild(n)))}}function sw(e,n){ia.m(e,n);var i=_l;if(i&&e){var u=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+Fn(u)+'"][href="'+Fn(e)+'"]',h=c;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=zl(e)}if(!Wn.has(h)&&(e=X({rel:"modulepreload",href:e},n),Wn.set(h,e),i.querySelector(c)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Iu(h)))return}u=i.createElement("link"),Gt(u,"link",e),yt(u),i.head.appendChild(u)}}}function cw(e,n,i){ia.S(e,n,i);var u=_l;if(u&&e){var c=Sn(u).hoistableStyles,h=Nl(e);n=n||"default";var b=c.get(h);if(!b){var O={loading:0,preload:null};if(b=u.querySelector(Zu(h)))O.loading=5;else{e=X({rel:"stylesheet",href:e,"data-precedence":n},i),(i=Wn.get(h))&&yh(e,i);var _=b=u.createElement("link");yt(_),Gt(_,"link",e),_._p=new Promise(function(P,ee){_.onload=P,_.onerror=ee}),_.addEventListener("load",function(){O.loading|=1}),_.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Zs(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:O},c.set(h,b)}}}function fw(e,n){ia.X(e,n);var i=_l;if(i&&e){var u=Sn(i).hoistableScripts,c=zl(e),h=u.get(c);h||(h=i.querySelector(Iu(c)),h||(e=X({src:e,async:!0},n),(n=Wn.get(c))&&bh(e,n),h=i.createElement("script"),yt(h),Gt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(c,h))}}function dw(e,n){ia.M(e,n);var i=_l;if(i&&e){var u=Sn(i).hoistableScripts,c=zl(e),h=u.get(c);h||(h=i.querySelector(Iu(c)),h||(e=X({src:e,async:!0,type:"module"},n),(n=Wn.get(c))&&bh(e,n),h=i.createElement("script"),yt(h),Gt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(c,h))}}function uy(e,n,i,u){var c=(c=dt.current)?Xs(c):null;if(!c)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Nl(i.href),i=Sn(c).hoistableStyles,u=i.get(n),u||(u={type:"style",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Nl(i.href);var h=Sn(c).hoistableStyles,b=h.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=c.querySelector(Zu(e)))&&!h._p&&(b.instance=h,b.state.loading=5),Wn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Wn.set(e,i),h||hw(c,e,i,b.state))),n&&u===null)throw Error(l(528,""));return b}if(n&&u!==null)throw Error(l(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=zl(i),i=Sn(c).hoistableScripts,u=i.get(n),u||(u={type:"script",instance:null,count:0,state:null},i.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Nl(e){return'href="'+Fn(e)+'"'}function Zu(e){return'link[rel="stylesheet"]['+e+"]"}function oy(e){return X({},e,{"data-precedence":e.precedence,precedence:null})}function hw(e,n,i,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),Gt(n,"link",i),yt(n),e.head.appendChild(n))}function zl(e){return'[src="'+Fn(e)+'"]'}function Iu(e){return"script[async]"+e}function sy(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+Fn(i.href)+'"]');if(u)return n.instance=u,yt(u),u;var c=X({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),yt(u),Gt(u,"style",c),Zs(u,i.precedence,e),n.instance=u;case"stylesheet":c=Nl(i.href);var h=e.querySelector(Zu(c));if(h)return n.state.loading|=4,n.instance=h,yt(h),h;u=oy(i),(c=Wn.get(c))&&yh(u,c),h=(e.ownerDocument||e).createElement("link"),yt(h);var b=h;return b._p=new Promise(function(O,_){b.onload=O,b.onerror=_}),Gt(h,"link",u),n.state.loading|=4,Zs(h,i.precedence,e),n.instance=h;case"script":return h=zl(i.src),(c=e.querySelector(Iu(h)))?(n.instance=c,yt(c),c):(u=i,(c=Wn.get(h))&&(u=X({},i),bh(u,c)),e=e.ownerDocument||e,c=e.createElement("script"),yt(c),Gt(c,"link",u),e.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&!(n.state.loading&4)&&(u=n.instance,n.state.loading|=4,Zs(u,i.precedence,e));return n.instance}function Zs(e,n,i){for(var u=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=u.length?u[u.length-1]:null,h=c,b=0;b<u.length;b++){var O=u[b];if(O.dataset.precedence===n)h=O;else if(h!==c)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function yh(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function bh(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Is=null;function cy(e,n,i){if(Is===null){var u=new Map,c=Is=new Map;c.set(i,u)}else c=Is,u=c.get(i),u||(u=new Map,c.set(i,u));if(u.has(e))return u;for(u.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var h=i[c];if(!(h[ar]||h[Oe]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var O=u.get(b);O?O.push(h):u.set(b,[h])}}return u}function fy(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function mw(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function dy(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Ju=null;function vw(){}function pw(e,n,i){if(Ju===null)throw Error(l(475));var u=Ju;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var c=Nl(i.href),h=e.querySelector(Zu(c));if(h){e=h._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(u.count++,u=Js.bind(u),e.then(u,u)),n.state.loading|=4,n.instance=h,yt(h);return}h=e.ownerDocument||e,i=oy(i),(c=Wn.get(c))&&yh(i,c),h=h.createElement("link"),yt(h);var b=h;b._p=new Promise(function(O,_){b.onload=O,b.onerror=_}),Gt(h,"link",i),n.instance=h}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(n,e),(e=n.state.preload)&&!(n.state.loading&3)&&(u.count++,n=Js.bind(u),e.addEventListener("load",n),e.addEventListener("error",n))}}function gw(){if(Ju===null)throw Error(l(475));var e=Ju;return e.stylesheets&&e.count===0&&Sh(e,e.stylesheets),0<e.count?function(n){var i=setTimeout(function(){if(e.stylesheets&&Sh(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i)}}:null}function Js(){if(this.count--,this.count===0){if(this.stylesheets)Sh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ws=null;function Sh(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ws=new Map,n.forEach(yw,e),Ws=null,Js.call(e))}function yw(e,n){if(!(n.state.loading&4)){var i=Ws.get(e);if(i)var u=i.get(null);else{i=new Map,Ws.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<c.length;h++){var b=c[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),u=b)}u&&i.set(null,u)}c=n.instance,b=c.getAttribute("data-precedence"),h=i.get(b)||u,h===u&&i.set(null,c),i.set(b,c),this.count++,u=Js.bind(this),c.addEventListener("load",u),c.addEventListener("error",u),h?h.parentNode.insertBefore(c,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),n.state.loading|=4}}var Wu={$$typeof:y,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function bw(e,n,i,u,c,h,b,O){this.tag=1,this.containerInfo=e,this.finishedWork=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=J(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=J(0),this.hiddenUpdates=J(null),this.identifierPrefix=u,this.onUncaughtError=c,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function hy(e,n,i,u,c,h,b,O,_,P,ee,ue){return e=new bw(e,n,i,b,O,_,P,ue),n=1,h===!0&&(n|=24),h=In(3,null,null,n),e.current=h,h.stateNode=e,n=Zf(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:i,cache:n},_d(h),e}function my(e){return e?(e=dl,e):dl}function vy(e,n,i,u,c,h){c=my(c),u.context===null?u.context=c:u.pendingContext=c,u=ja(n),u.payload={element:i},h=h===void 0?null:h,h!==null&&(u.callback=h),i=_a(e,u,n),i!==null&&(hn(i,e,n),Hu(i,e,n))}function py(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function xh(e,n){py(e,n),(e=e.alternate)&&py(e,n)}function gy(e){if(e.tag===13){var n=Ca(e,67108864);n!==null&&hn(n,e,67108864),xh(e,67108864)}}var ec=!0;function Sw(e,n,i,u){var c=z.T;z.T=null;var h=ce.p;try{ce.p=2,Eh(e,n,i,u)}finally{ce.p=h,z.T=c}}function xw(e,n,i,u){var c=z.T;z.T=null;var h=ce.p;try{ce.p=8,Eh(e,n,i,u)}finally{ce.p=h,z.T=c}}function Eh(e,n,i,u){if(ec){var c=wh(u);if(c===null)ch(e,n,u,tc,i),by(e,u);else if(ww(c,e,n,i,u))u.stopPropagation();else if(by(e,u),n&4&&-1<Ew.indexOf(e)){for(;c!==null;){var h=xr(c);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=qn(h.pendingLanes);if(b!==0){var O=h;for(O.pendingLanes|=2,O.entangledLanes|=2;b;){var _=1<<31-tn(b);O.entanglements[1]|=_,b&=~_}Tr(h),!(St&6)&&($s=jt()+500,Ku(0))}}break;case 13:O=Ca(h,2),O!==null&&hn(O,h,2),qs(),xh(h,2)}if(h=wh(u),h===null&&ch(e,n,u,tc,i),h===c)break;c=h}c!==null&&u.stopPropagation()}else ch(e,n,u,null,i)}}function wh(e){return e=Af(e),Ch(e)}var tc=null;function Ch(e){if(tc=null,e=qt(e),e!==null){var n=ne(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=K(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return tc=e,null}function yy(e){switch(e){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(on()){case sn:return 2;case cu:return 8;case xa:case xf:return 32;case rr:return 268435456;default:return 32}default:return 32}}var Oh=!1,qa=null,ka=null,Fa=null,eo=new Map,to=new Map,Va=[],Ew="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 by(e,n){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":eo.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":to.delete(n.pointerId)}}function no(e,n,i,u,c,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:i,eventSystemFlags:u,nativeEvent:h,targetContainers:[c]},n!==null&&(n=xr(n),n!==null&&gy(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function ww(e,n,i,u,c){switch(n){case"focusin":return qa=no(qa,e,n,i,u,c),!0;case"dragenter":return ka=no(ka,e,n,i,u,c),!0;case"mouseover":return Fa=no(Fa,e,n,i,u,c),!0;case"pointerover":var h=c.pointerId;return eo.set(h,no(eo.get(h)||null,e,n,i,u,c)),!0;case"gotpointercapture":return h=c.pointerId,to.set(h,no(to.get(h)||null,e,n,i,u,c)),!0}return!1}function Sy(e){var n=qt(e.target);if(n!==null){var i=ne(n);if(i!==null){if(n=i.tag,n===13){if(n=K(i),n!==null){e.blockedOn=n,he(e.priority,function(){if(i.tag===13){var u=_n(),c=Ca(i,u);c!==null&&hn(c,i,u),xh(i,u)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=wh(e.nativeEvent);if(i===null){i=e.nativeEvent;var u=new i.constructor(i.type,i);Df=u,i.target.dispatchEvent(u),Df=null}else return n=xr(i),n!==null&&gy(n),e.blockedOn=i,!1;n.shift()}return!0}function xy(e,n,i){nc(e)&&i.delete(n)}function Cw(){Oh=!1,qa!==null&&nc(qa)&&(qa=null),ka!==null&&nc(ka)&&(ka=null),Fa!==null&&nc(Fa)&&(Fa=null),eo.forEach(xy),to.forEach(xy)}function rc(e,n){e.blockedOn===n&&(e.blockedOn=null,Oh||(Oh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Cw)))}var ac=null;function Ey(e){ac!==e&&(ac=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ac===e&&(ac=null);for(var n=0;n<e.length;n+=3){var i=e[n],u=e[n+1],c=e[n+2];if(typeof u!="function"){if(Ch(u||i)===null)continue;break}var h=xr(i);h!==null&&(e.splice(n,3),n-=3,md(h,{pending:!0,data:c,method:i.method,action:u},u,c))}}))}function ro(e){function n(_){return rc(_,e)}qa!==null&&rc(qa,e),ka!==null&&rc(ka,e),Fa!==null&&rc(Fa,e),eo.forEach(n),to.forEach(n);for(var i=0;i<Va.length;i++){var u=Va[i];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Va.length&&(i=Va[0],i.blockedOn===null);)Sy(i),i.blockedOn===null&&Va.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(u=0;u<i.length;u+=3){var c=i[u],h=i[u+1],b=c[$e]||null;if(typeof h=="function")b||Ey(i);else if(b){var O=null;if(h&&h.hasAttribute("formAction")){if(c=h,b=h[$e]||null)O=b.formAction;else if(Ch(c)!==null)continue}else O=b.action;typeof O=="function"?i[u+1]=O:(i.splice(u,3),u-=3),Ey(i)}}}function Th(e){this._internalRoot=e}ic.prototype.render=Th.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var i=n.current,u=_n();vy(i,u,e,n,null,null)},ic.prototype.unmount=Th.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;e.tag===0&&Al(),vy(e.current,2,null,e,null,null),qs(),n[vt]=null}};function ic(e){this._internalRoot=e}ic.prototype.unstable_scheduleHydration=function(e){if(e){var n=xe();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Va.length&&n!==0&&n<Va[i].priority;i++);Va.splice(i,0,e),i===0&&Sy(e)}};var wy=r.version;if(wy!=="19.0.0-rc-7670501b-20241124")throw Error(l(527,wy,"19.0.0-rc-7670501b-20241124"));ce.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=F(n),e=e!==null?se(e):null,e=e===null?null:e.stateNode,e};var Ow={bundleType:0,version:"19.0.0-rc-7670501b-20241124",rendererPackageName:"react-dom",currentDispatcherRef:z,findFiberByHostInstance:qt,reconcilerVersion:"19.0.0-rc-7670501b-20241124"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{Ea=lc.inject(Ow),cn=lc}catch{}}return fo.createRoot=function(e,n){if(!o(e))throw Error(l(299));var i=!1,u="",c=P0,h=q0,b=k0,O=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(O=n.unstable_transitionCallbacks)),n=hy(e,1,!1,null,null,i,u,c,h,b,O,null),e[vt]=n.current,sh(e.nodeType===8?e.parentNode:e),new Th(n)},fo.hydrateRoot=function(e,n,i){if(!o(e))throw Error(l(299));var u=!1,c="",h=P0,b=q0,O=k0,_=null,P=null;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(O=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(_=i.unstable_transitionCallbacks),i.formState!==void 0&&(P=i.formState)),n=hy(e,1,!0,n,i??null,u,c,h,b,O,_,P),n.context=my(null),i=n.current,u=_n(),c=ja(u),c.callback=null,_a(i,c,u),n.current.lanes=u,le(n,u),Tr(n),e[vt]=n.current,sh(e),new ic(n)},fo.version="19.0.0-rc-7670501b-20241124",fo}var qb;function H3(){if(qb)return Wh.exports;qb=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Wh.exports=L3(),Wh.exports}var U3=H3(),ho={},kb;function $3(){if(kb)return ho;kb=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.parse=f,ho.serialize=v;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,l=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,s=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function f(p,y){const w=new s,x=p.length;if(x<2)return w;const R=(y==null?void 0:y.decode)||g;let T=0;do{const A=p.indexOf("=",T);if(A===-1)break;const N=p.indexOf(";",T),j=N===-1?x:N;if(A>j){T=p.lastIndexOf(";",A-1)+1;continue}const C=d(p,T,A),q=m(p,A,C),B=p.slice(C,q);if(w[B]===void 0){let V=d(p,A+1,j),z=m(p,j,V);const X=R(p.slice(V,z));w[B]=X}T=j+1}while(T<x);return w}function d(p,y,w){do{const x=p.charCodeAt(y);if(x!==32&&x!==9)return y}while(++y<w);return w}function m(p,y,w){for(;y>w;){const x=p.charCodeAt(--y);if(x!==32&&x!==9)return y+1}return w}function v(p,y,w){const x=(w==null?void 0:w.encode)||encodeURIComponent;if(!t.test(p))throw new TypeError(`argument name is invalid: ${p}`);const R=x(y);if(!r.test(R))throw new TypeError(`argument val is invalid: ${y}`);let T=p+"="+R;if(!w)return T;if(w.maxAge!==void 0){if(!Number.isInteger(w.maxAge))throw new TypeError(`option maxAge is invalid: ${w.maxAge}`);T+="; Max-Age="+w.maxAge}if(w.domain){if(!a.test(w.domain))throw new TypeError(`option domain is invalid: ${w.domain}`);T+="; Domain="+w.domain}if(w.path){if(!l.test(w.path))throw new TypeError(`option path is invalid: ${w.path}`);T+="; Path="+w.path}if(w.expires){if(!S(w.expires)||!Number.isFinite(w.expires.valueOf()))throw new TypeError(`option expires is invalid: ${w.expires}`);T+="; Expires="+w.expires.toUTCString()}if(w.httpOnly&&(T+="; HttpOnly"),w.secure&&(T+="; Secure"),w.partitioned&&(T+="; Partitioned"),w.priority)switch(typeof w.priority=="string"?w.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${w.priority}`)}if(w.sameSite)switch(typeof w.sameSite=="string"?w.sameSite.toLowerCase():w.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${w.sameSite}`)}return T}function g(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch{return p}}function S(p){return o.call(p)==="[object Date]"}return ho}$3();/**
63
- * react-router v7.0.2
64
- *
65
- * Copyright (c) Remix Software Inc.
66
- *
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE.md file in the root directory of this source tree.
69
- *
70
- * @license MIT
71
- */var Fb="popstate";function B3(t={}){function r(l,o){let{pathname:s,search:f,hash:d}=l.location;return To("",{pathname:s,search:f,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(l,o){return typeof o=="string"?o:pi(o)}return q3(r,a,null,t)}function Pe(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function It(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function P3(){return Math.random().toString(36).substring(2,10)}function Vb(t,r){return{usr:t.state,key:t.key,idx:r}}function To(t,r,a=null,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?Sa(r):r,state:a,key:r&&r.key||l||P3()}}function pi({pathname:t="/",search:r="",hash:a=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function Sa(t){let r={};if(t){let a=t.indexOf("#");a>=0&&(r.hash=t.substring(a),t=t.substring(0,a));let l=t.indexOf("?");l>=0&&(r.search=t.substring(l),t=t.substring(0,l)),t&&(r.pathname=t)}return r}function q3(t,r,a,l={}){let{window:o=document.defaultView,v5Compat:s=!1}=l,f=o.history,d="POP",m=null,v=g();v==null&&(v=0,f.replaceState({...f.state,idx:v},""));function g(){return(f.state||{idx:null}).idx}function S(){d="POP";let R=g(),T=R==null?null:R-v;v=R,m&&m({action:d,location:x.location,delta:T})}function p(R,T){d="PUSH";let A=To(x.location,R,T);v=g()+1;let N=Vb(A,v),j=x.createHref(A);try{f.pushState(N,"",j)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(j)}s&&m&&m({action:d,location:x.location,delta:1})}function y(R,T){d="REPLACE";let A=To(x.location,R,T);v=g();let N=Vb(A,v),j=x.createHref(A);f.replaceState(N,"",j),s&&m&&m({action:d,location:x.location,delta:0})}function w(R){let T=o.location.origin!=="null"?o.location.origin:o.location.href,A=typeof R=="string"?R:pi(R);return A=A.replace(/ $/,"%20"),Pe(T,`No window.location.(origin|href) available to create URL for href: ${A}`),new URL(A,T)}let x={get action(){return d},get location(){return t(o,f)},listen(R){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(Fb,S),m=R,()=>{o.removeEventListener(Fb,S),m=null}},createHref(R){return r(o,R)},createURL:w,encodeLocation(R){let T=w(R);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:p,replace:y,go(R){return f.go(R)}};return x}var k3=new Set(["lazy","caseSensitive","path","id","index","children"]);function F3(t){return t.index===!0}function Qc(t,r,a=[],l={}){return t.map((o,s)=>{let f=[...a,String(s)],d=typeof o.id=="string"?o.id:f.join("-");if(Pe(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pe(!l[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),F3(o)){let m={...o,...r(o),id:d};return l[d]=m,m}else{let m={...o,...r(o),id:d,children:void 0};return l[d]=m,o.children&&(m.children=Qc(o.children,r,f,l)),m}})}function Ja(t,r,a="/"){return Tc(t,r,a,!1)}function Tc(t,r,a,l){let o=typeof r=="string"?Sa(r):r,s=br(o.pathname||"/",a);if(s==null)return null;let f=Ix(t);Y3(f);let d=null;for(let m=0;d==null&&m<f.length;++m){let v=nM(s);d=eM(f[m],v,l)}return d}function V3(t,r){let{route:a,pathname:l,params:o}=t;return{id:a.id,pathname:l,params:o,data:r[a.id],handle:a.handle}}function Ix(t,r=[],a=[],l=""){let o=(s,f,d)=>{let m={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};m.relativePath.startsWith("/")&&(Pe(m.relativePath.startsWith(l),`Absolute route path "${m.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(l.length));let v=Hr([l,m.relativePath]),g=a.concat(m);s.children&&s.children.length>0&&(Pe(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Ix(s.children,r,g,v)),!(s.path==null&&!s.index)&&r.push({path:v,score:J3(v,s.index),routesMeta:g})};return t.forEach((s,f)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))o(s,f);else for(let m of Jx(s.path))o(s,f,m)}),r}function Jx(t){let r=t.split("/");if(r.length===0)return[];let[a,...l]=r,o=a.endsWith("?"),s=a.replace(/\?$/,"");if(l.length===0)return o?[s,""]:[s];let f=Jx(l.join("/")),d=[];return d.push(...f.map(m=>m===""?s:[s,m].join("/"))),o&&d.push(...f),d.map(m=>t.startsWith("/")&&m===""?"/":m)}function Y3(t){t.sort((r,a)=>r.score!==a.score?a.score-r.score:W3(r.routesMeta.map(l=>l.childrenIndex),a.routesMeta.map(l=>l.childrenIndex)))}var Q3=/^:[\w-]+$/,K3=3,G3=2,X3=1,Z3=10,I3=-2,Yb=t=>t==="*";function J3(t,r){let a=t.split("/"),l=a.length;return a.some(Yb)&&(l+=I3),r&&(l+=G3),a.filter(o=>!Yb(o)).reduce((o,s)=>o+(Q3.test(s)?K3:s===""?X3:Z3),l)}function W3(t,r){return t.length===r.length&&t.slice(0,-1).every((l,o)=>l===r[o])?t[t.length-1]-r[r.length-1]:0}function eM(t,r,a=!1){let{routesMeta:l}=t,o={},s="/",f=[];for(let d=0;d<l.length;++d){let m=l[d],v=d===l.length-1,g=s==="/"?r:r.slice(s.length)||"/",S=Kc({path:m.relativePath,caseSensitive:m.caseSensitive,end:v},g),p=m.route;if(!S&&v&&a&&!l[l.length-1].route.index&&(S=Kc({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},g)),!S)return null;Object.assign(o,S.params),f.push({params:o,pathname:Hr([s,S.pathname]),pathnameBase:iM(Hr([s,S.pathnameBase])),route:p}),S.pathnameBase!=="/"&&(s=Hr([s,S.pathnameBase]))}return f}function Kc(t,r){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[a,l]=tM(t.path,t.caseSensitive,t.end),o=r.match(a);if(!o)return null;let s=o[0],f=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:l.reduce((v,{paramName:g,isOptional:S},p)=>{if(g==="*"){let w=d[p]||"";f=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const y=d[p];return S&&!y?v[g]=void 0:v[g]=(y||"").replace(/%2F/g,"/"),v},{}),pathname:s,pathnameBase:f,pattern:t}}function tM(t,r=!1,a=!0){It(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let l=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,m)=>(l.push({paramName:d,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(l.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,r?void 0:"i"),l]}function nM(t){try{return t.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return It(!1,`The URL path "${t}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),t}}function br(t,r){if(r==="/")return t;if(!t.toLowerCase().startsWith(r.toLowerCase()))return null;let a=r.endsWith("/")?r.length-1:r.length,l=t.charAt(a);return l&&l!=="/"?null:t.slice(a)||"/"}function rM(t,r="/"){let{pathname:a,search:l="",hash:o=""}=typeof t=="string"?Sa(t):t;return{pathname:a?a.startsWith("/")?a:aM(a,r):r,search:lM(l),hash:uM(o)}}function aM(t,r){let a=r.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function nm(t,r,a,l){return`Cannot include a '${t}' character in a manually specified \`to.${r}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Wx(t){return t.filter((r,a)=>a===0||r.route.path&&r.route.path.length>0)}function kv(t){let r=Wx(t);return r.map((a,l)=>l===r.length-1?a.pathname:a.pathnameBase)}function Fv(t,r,a,l=!1){let o;typeof t=="string"?o=Sa(t):(o={...t},Pe(!o.pathname||!o.pathname.includes("?"),nm("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),nm("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),nm("#","search","hash",o)));let s=t===""||o.pathname==="",f=s?"/":o.pathname,d;if(f==null)d=a;else{let S=r.length-1;if(!l&&f.startsWith("..")){let p=f.split("/");for(;p[0]==="..";)p.shift(),S-=1;o.pathname=p.join("/")}d=S>=0?r[S]:"/"}let m=rM(o,d),v=f&&f!=="/"&&f.endsWith("/"),g=(s||f===".")&&a.endsWith("/");return!m.pathname.endsWith("/")&&(v||g)&&(m.pathname+="/"),m}var Hr=t=>t.join("/").replace(/\/\/+/g,"/"),iM=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),lM=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,uM=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Gc=class{constructor(t,r,a,l=!1){this.status=t,this.statusText=r||"",this.internal=l,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function bf(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var e2=["POST","PUT","PATCH","DELETE"],oM=new Set(e2),sM=["GET",...e2],cM=new Set(sM),fM=new Set([301,302,303,307,308]),dM=new Set([307,308]),rm={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hM={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Vv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mM=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),t2="remix-router-transitions",n2=Symbol("ResetLoaderData");function vM(t){const r=t.window?t.window:typeof window<"u"?window:void 0,a=typeof r<"u"&&typeof r.document<"u"&&typeof r.document.createElement<"u";Pe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let l=t.mapRouteProperties||mM,o={},s=Qc(t.routes,l,void 0,o),f,d=t.basename||"/",m=t.dataStrategy||SM,v=t.patchRoutesOnNavigation,g={...t.future},S=null,p=new Set,y=null,w=null,x=null,R=t.hydrationData!=null,T=Ja(s,t.history.location,d),A=null;if(T==null&&!v){let H=nr(404,{pathname:t.history.location.pathname}),{matches:Y,route:J}=n1(s);T=Y,A={[J.id]:H}}T&&!t.hydrationData&&qn(T,s,t.history.location.pathname).active&&(T=null);let N;if(T)if(T.some(H=>H.route.lazy))N=!1;else if(!T.some(H=>H.route.loader))N=!0;else{let H=t.hydrationData?t.hydrationData.loaderData:null,Y=t.hydrationData?t.hydrationData.errors:null;if(Y){let J=T.findIndex(le=>Y[le.route.id]!==void 0);N=T.slice(0,J+1).every(le=>!Bm(le.route,H,Y))}else N=T.every(J=>!Bm(J.route,H,Y))}else{N=!1,T=[];let H=qn(null,s,t.history.location.pathname);H.active&&H.matches&&(T=H.matches)}let j,C={historyAction:t.history.action,location:t.history.location,matches:T,initialized:N,navigation:rm,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||A,fetchers:new Map,blockers:new Map},q="POP",B=!1,V,z=!1,X=new Map,te=null,fe=!1,Z=!1,ae=new Set,ie=new Map,U=0,I=-1,ne=new Map,K=new Set,M=new Map,F=new Map,se=new Set,de=new Map,ce,ye=null;function Te(){if(S=t.history.listen(({action:H,location:Y,delta:J})=>{if(ce){ce(),ce=void 0;return}It(de.size===0||J!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let le=tn({currentLocation:C.location,nextLocation:Y,historyAction:H});if(le&&J!=null){let ve=new Promise(Ee=>{ce=Ee});t.history.go(J*-1),Tn(le,{state:"blocked",location:Y,proceed(){Tn(le,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),ve.then(()=>t.history.go(J))},reset(){let Ee=new Map(C.blockers);Ee.set(le,mo),je({blockers:Ee})}});return}return dt(H,Y)}),a){jM(r,X);let H=()=>_M(r,X);r.addEventListener("pagehide",H),te=()=>r.removeEventListener("pagehide",H)}return C.initialized||dt("POP",C.location,{initialHydration:!0}),j}function mt(){S&&S(),te&&te(),p.clear(),V&&V.abort(),C.fetchers.forEach((H,Y)=>xa(Y)),C.blockers.forEach((H,Y)=>Zo(Y))}function _e(H){return p.add(H),()=>p.delete(H)}function je(H,Y={}){C={...C,...H};let J=[],le=[];C.fetchers.forEach((ve,Ee)=>{ve.state==="idle"&&(se.has(Ee)?J.push(Ee):le.push(Ee))}),[...p].forEach(ve=>ve(C,{deletedFetchers:J,viewTransitionOpts:Y.viewTransitionOpts,flushSync:Y.flushSync===!0})),J.forEach(ve=>xa(ve)),le.forEach(ve=>C.fetchers.delete(ve))}function Ne(H,Y,{flushSync:J}={}){var he,Re;let le=C.actionData!=null&&C.navigation.formMethod!=null&&hr(C.navigation.formMethod)&&C.navigation.state==="loading"&&((he=H.state)==null?void 0:he._isRedirect)!==!0,ve;Y.actionData?Object.keys(Y.actionData).length>0?ve=Y.actionData:ve=null:le?ve=C.actionData:ve=null;let Ee=Y.loaderData?e1(C.loaderData,Y.loaderData,Y.matches||[],Y.errors):C.loaderData,Me=C.blockers;Me.size>0&&(Me=new Map(Me),Me.forEach((Oe,$e)=>Me.set($e,mo)));let pe=B===!0||C.navigation.formMethod!=null&&hr(C.navigation.formMethod)&&((Re=H.state)==null?void 0:Re._isRedirect)!==!0;f&&(s=f,f=void 0),fe||q==="POP"||(q==="PUSH"?t.history.push(H,H.state):q==="REPLACE"&&t.history.replace(H,H.state));let xe;if(q==="POP"){let Oe=X.get(C.location.pathname);Oe&&Oe.has(H.pathname)?xe={currentLocation:C.location,nextLocation:H}:X.has(H.pathname)&&(xe={currentLocation:H,nextLocation:C.location})}else if(z){let Oe=X.get(C.location.pathname);Oe?Oe.add(H.pathname):(Oe=new Set([H.pathname]),X.set(C.location.pathname,Oe)),xe={currentLocation:C.location,nextLocation:H}}je({...Y,actionData:ve,loaderData:Ee,historyAction:q,location:H,initialized:!0,navigation:rm,revalidation:"idle",restoreScrollPosition:gi(H,Y.matches||C.matches),preventScrollReset:pe,blockers:Me},{viewTransitionOpts:xe,flushSync:J===!0}),q="POP",B=!1,z=!1,fe=!1,Z=!1,ye==null||ye.resolve(),ye=null}async function Mt(H,Y){if(typeof H=="number"){t.history.go(H);return}let J=$m(C.location,C.matches,d,H,Y==null?void 0:Y.fromRouteId,Y==null?void 0:Y.relative),{path:le,submission:ve,error:Ee}=Qb(!1,J,Y),Me=C.location,pe=To(C.location,le,Y&&Y.state);pe={...pe,...t.history.encodeLocation(pe)};let xe=Y&&Y.replace!=null?Y.replace:void 0,he="PUSH";xe===!0?he="REPLACE":xe===!1||ve!=null&&hr(ve.formMethod)&&ve.formAction===C.location.pathname+C.location.search&&(he="REPLACE");let Re=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,Oe=(Y&&Y.flushSync)===!0,$e=tn({currentLocation:Me,nextLocation:pe,historyAction:he});if($e){Tn($e,{state:"blocked",location:pe,proceed(){Tn($e,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),Mt(H,Y)},reset(){let vt=new Map(C.blockers);vt.set($e,mo),je({blockers:vt})}});return}await dt(he,pe,{submission:ve,pendingError:Ee,preventScrollReset:Re,replace:Y&&Y.replace,enableViewTransition:Y&&Y.viewTransition,flushSync:Oe})}function bn(){ye||(ye=NM()),jt(),je({revalidation:"loading"});let H=ye.promise;return C.navigation.state==="submitting"?H:C.navigation.state==="idle"?(dt(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),H):(dt(q||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:z===!0}),H)}async function dt(H,Y,J){V&&V.abort(),V=null,q=H,fe=(J&&J.startUninterruptedRevalidation)===!0,rl(C.location,C.matches),B=(J&&J.preventScrollReset)===!0,z=(J&&J.enableViewTransition)===!0;let le=f||s,ve=J&&J.overrideNavigation,Ee=Ja(le,Y,d),Me=(J&&J.flushSync)===!0,pe=qn(Ee,le,Y.pathname);if(pe.active&&pe.matches&&(Ee=pe.matches),!Ee){let{error:ot,notFoundMatches:st,route:Dt}=fu(Y.pathname);Ne(Y,{matches:st,loaderData:{},errors:{[Dt.id]:ot}},{flushSync:Me});return}if(C.initialized&&!Z&&TM(C.location,Y)&&!(J&&J.submission&&hr(J.submission.formMethod))){Ne(Y,{matches:Ee},{flushSync:Me});return}V=new AbortController;let xe=Ul(t.history,Y,V.signal,J&&J.submission),he;if(J&&J.pendingError)he=[Bi(Ee).route.id,{type:"error",error:J.pendingError}];else if(J&&J.submission&&hr(J.submission.formMethod)){let ot=await ln(xe,Y,J.submission,Ee,pe.active,{replace:J.replace,flushSync:Me});if(ot.shortCircuited)return;if(ot.pendingActionResult){let[st,Dt]=ot.pendingActionResult;if(zn(Dt)&&bf(Dt.error)&&Dt.error.status===404){V=null,Ne(Y,{matches:ot.matches,loaderData:{},errors:{[st]:Dt.error}});return}}Ee=ot.matches||Ee,he=ot.pendingActionResult,ve=am(Y,J.submission),Me=!1,pe.active=!1,xe=Ul(t.history,xe.url,xe.signal)}let{shortCircuited:Re,matches:Oe,loaderData:$e,errors:vt}=await On(xe,Y,Ee,pe.active,ve,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,J&&J.initialHydration===!0,Me,he);Re||(V=null,Ne(Y,{matches:Oe||Ee,...t1(he),loaderData:$e,errors:vt}))}async function ln(H,Y,J,le,ve,Ee={}){jt();let Me=AM(Y,J);if(je({navigation:Me},{flushSync:Ee.flushSync===!0}),ve){let he=await Fr(le,Y.pathname,H.signal);if(he.type==="aborted")return{shortCircuited:!0};if(he.type==="error"){let Re=Bi(he.partialMatches).route.id;return{matches:he.partialMatches,pendingActionResult:[Re,{type:"error",error:he.error}]}}else if(he.matches)le=he.matches;else{let{notFoundMatches:Re,error:Oe,route:$e}=fu(Y.pathname);return{matches:Re,pendingActionResult:[$e.id,{type:"error",error:Oe}]}}}let pe,xe=yo(le,Y);if(!xe.route.action&&!xe.route.lazy)pe={type:"error",error:nr(405,{method:H.method,pathname:Y.pathname,routeId:xe.route.id})};else if(pe=(await Rt("action",C,H,[xe],le,null))[xe.route.id],H.signal.aborted)return{shortCircuited:!0};if(Pi(pe)){let he;return Ee&&Ee.replace!=null?he=Ee.replace:he=Ib(pe.response.headers.get("Location"),new URL(H.url),d)===C.location.pathname+C.location.search,await Le(H,pe,!0,{submission:J,replace:he}),{shortCircuited:!0}}if(zn(pe)){let he=Bi(le,xe.route.id);return(Ee&&Ee.replace)!==!0&&(q="PUSH"),{matches:le,pendingActionResult:[he.route.id,pe]}}return{matches:le,pendingActionResult:[xe.route.id,pe]}}async function On(H,Y,J,le,ve,Ee,Me,pe,xe,he,Re){let Oe=ve||am(Y,Ee),$e=Ee||Me||a1(Oe),vt=!fe&&!xe;if(le){if(vt){let pt=en(Re);je({navigation:Oe,...pt!==void 0?{actionData:pt}:{}},{flushSync:he})}let rt=await Fr(J,Y.pathname,H.signal);if(rt.type==="aborted")return{shortCircuited:!0};if(rt.type==="error"){let pt=Bi(rt.partialMatches).route.id;return{matches:rt.partialMatches,loaderData:{},errors:{[pt]:rt.error}}}else if(rt.matches)J=rt.matches;else{let{error:pt,notFoundMatches:lr,route:fn}=fu(Y.pathname);return{matches:lr,loaderData:{},errors:{[fn.id]:pt}}}}let ot=f||s,[st,Dt]=Gb(t.history,C,J,$e,Y,xe===!0,Z,ae,se,M,K,ot,d,Re);if(I=++U,st.length===0&&Dt.length===0){let rt=Xo();return Ne(Y,{matches:J,loaderData:{},errors:Re&&zn(Re[1])?{[Re[0]]:Re[1].error}:null,...t1(Re),...rt?{fetchers:new Map(C.fetchers)}:{}},{flushSync:he}),{shortCircuited:!0}}if(vt){let rt={};if(!le){rt.navigation=Oe;let pt=en(Re);pt!==void 0&&(rt.actionData=pt)}Dt.length>0&&(rt.fetchers=Pn(Dt)),je(rt,{flushSync:he})}Dt.forEach(rt=>{rr(rt.key),rt.controller&&ie.set(rt.key,rt.controller)});let Vr=()=>Dt.forEach(rt=>rr(rt.key));V&&V.signal.addEventListener("abort",Vr);let{loaderResults:ar,fetcherResults:Rn}=await un(C,J,st,Dt,H);if(H.signal.aborted)return{shortCircuited:!0};V&&V.signal.removeEventListener("abort",Vr),Dt.forEach(rt=>ie.delete(rt.key));let qt=yc(ar);if(qt)return await Le(H,qt.result,!0,{replace:pe}),{shortCircuited:!0};if(qt=yc(Rn),qt)return K.add(qt.key),await Le(H,qt.result,!0,{replace:pe}),{shortCircuited:!0};let{loaderData:xr,errors:ir}=Wb(C,J,ar,Re,Dt,Rn);xe&&C.errors&&(ir={...C.errors,...ir});let Sn=Xo(),yt=Ea(I),bi=Sn||yt||Dt.length>0;return{matches:J,loaderData:xr,errors:ir,...bi?{fetchers:new Map(C.fetchers)}:{}}}function en(H){if(H&&!zn(H[1]))return{[H[0]]:H[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Pn(H){return H.forEach(Y=>{let J=C.fetchers.get(Y.key),le=vo(void 0,J?J.data:void 0);C.fetchers.set(Y.key,le)}),new Map(C.fetchers)}async function Se(H,Y,J,le){rr(H);let ve=(le&&le.flushSync)===!0,Ee=f||s,Me=$m(C.location,C.matches,d,J,Y,le==null?void 0:le.relative),pe=Ja(Ee,Me,d),xe=qn(pe,Ee,Me);if(xe.active&&xe.matches&&(pe=xe.matches),!pe){sn(H,Y,nr(404,{pathname:Me}),{flushSync:ve});return}let{path:he,submission:Re,error:Oe}=Qb(!0,Me,le);if(Oe){sn(H,Y,Oe,{flushSync:ve});return}let $e=yo(pe,he),vt=(le&&le.preventScrollReset)===!0;if(Re&&hr(Re.formMethod)){await Fe(H,Y,he,$e,pe,xe.active,ve,vt,Re);return}M.set(H,{routeId:Y,path:he}),await xt(H,Y,he,$e,pe,xe.active,ve,vt,Re)}async function Fe(H,Y,J,le,ve,Ee,Me,pe,xe){jt(),M.delete(H);function he(Et){if(!Et.route.action&&!Et.route.lazy){let Yr=nr(405,{method:xe.formMethod,pathname:J,routeId:Y});return sn(H,Y,Yr,{flushSync:Me}),!0}return!1}if(!Ee&&he(le))return;let Re=C.fetchers.get(H);on(H,MM(xe,Re),{flushSync:Me});let Oe=new AbortController,$e=Ul(t.history,J,Oe.signal,xe);if(Ee){let Et=await Fr(ve,J,$e.signal);if(Et.type==="aborted")return;if(Et.type==="error"){sn(H,Y,Et.error,{flushSync:Me});return}else if(Et.matches){if(ve=Et.matches,le=yo(ve,J),he(le))return}else{sn(H,Y,nr(404,{pathname:J}),{flushSync:Me});return}}ie.set(H,Oe);let vt=U,st=(await Rt("action",C,$e,[le],ve,H))[le.route.id];if($e.signal.aborted){ie.get(H)===Oe&&ie.delete(H);return}if(se.has(H)){if(Pi(st)||zn(st)){on(H,Za(void 0));return}}else{if(Pi(st))if(ie.delete(H),I>vt){on(H,Za(void 0));return}else return K.add(H),on(H,vo(xe)),Le($e,st,!1,{fetcherSubmission:xe,preventScrollReset:pe});if(zn(st)){sn(H,Y,st.error);return}}let Dt=C.navigation.location||C.location,Vr=Ul(t.history,Dt,Oe.signal),ar=f||s,Rn=C.navigation.state!=="idle"?Ja(ar,C.navigation.location,d):C.matches;Pe(Rn,"Didn't find any matches after fetcher action");let qt=++U;ne.set(H,qt);let xr=vo(xe,st.data);C.fetchers.set(H,xr);let[ir,Sn]=Gb(t.history,C,Rn,xe,Dt,!1,Z,ae,se,M,K,ar,d,[le.route.id,st]);Sn.filter(Et=>Et.key!==H).forEach(Et=>{let Yr=Et.key,du=C.fetchers.get(Yr),Cf=vo(void 0,du?du.data:void 0);C.fetchers.set(Yr,Cf),rr(Yr),Et.controller&&ie.set(Yr,Et.controller)}),je({fetchers:new Map(C.fetchers)});let yt=()=>Sn.forEach(Et=>rr(Et.key));Oe.signal.addEventListener("abort",yt);let{loaderResults:bi,fetcherResults:rt}=await un(C,Rn,ir,Sn,Vr);if(Oe.signal.aborted)return;Oe.signal.removeEventListener("abort",yt),ne.delete(H),ie.delete(H),Sn.forEach(Et=>ie.delete(Et.key));let pt=yc(bi);if(pt)return Le(Vr,pt.result,!1,{preventScrollReset:pe});if(pt=yc(rt),pt)return K.add(pt.key),Le(Vr,pt.result,!1,{preventScrollReset:pe});let{loaderData:lr,errors:fn}=Wb(C,Rn,bi,void 0,Sn,rt);if(C.fetchers.has(H)){let Et=Za(st.data);C.fetchers.set(H,Et)}Ea(qt),C.navigation.state==="loading"&&qt>I?(Pe(q,"Expected pending action"),V&&V.abort(),Ne(C.navigation.location,{matches:Rn,loaderData:lr,errors:fn,fetchers:new Map(C.fetchers)})):(je({errors:fn,loaderData:e1(C.loaderData,lr,Rn,fn),fetchers:new Map(C.fetchers)}),Z=!1)}async function xt(H,Y,J,le,ve,Ee,Me,pe,xe){let he=C.fetchers.get(H);on(H,vo(xe,he?he.data:void 0),{flushSync:Me});let Re=new AbortController,Oe=Ul(t.history,J,Re.signal);if(Ee){let st=await Fr(ve,J,Oe.signal);if(st.type==="aborted")return;if(st.type==="error"){sn(H,Y,st.error,{flushSync:Me});return}else if(st.matches)ve=st.matches,le=yo(ve,J);else{sn(H,Y,nr(404,{pathname:J}),{flushSync:Me});return}}ie.set(H,Re);let $e=U,ot=(await Rt("loader",C,Oe,[le],ve,H))[le.route.id];if(ie.get(H)===Re&&ie.delete(H),!Oe.signal.aborted){if(se.has(H)){on(H,Za(void 0));return}if(Pi(ot))if(I>$e){on(H,Za(void 0));return}else{K.add(H),await Le(Oe,ot,!1,{preventScrollReset:pe});return}if(zn(ot)){sn(H,Y,ot.error);return}on(H,Za(ot.data))}}async function Le(H,Y,J,{submission:le,fetcherSubmission:ve,preventScrollReset:Ee,replace:Me}={}){Y.response.headers.has("X-Remix-Revalidate")&&(Z=!0);let pe=Y.response.headers.get("Location");Pe(pe,"Expected a Location header on the redirect Response"),pe=Ib(pe,new URL(H.url),d);let xe=To(C.location,pe,{_isRedirect:!0});if(a){let ot=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))ot=!0;else if(Vv.test(pe)){const st=t.history.createURL(pe);ot=st.origin!==r.location.origin||br(st.pathname,d)==null}if(ot){Me?r.location.replace(pe):r.location.assign(pe);return}}V=null;let he=Me===!0||Y.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Re,formAction:Oe,formEncType:$e}=C.navigation;!le&&!ve&&Re&&Oe&&$e&&(le=a1(C.navigation));let vt=le||ve;if(dM.has(Y.response.status)&&vt&&hr(vt.formMethod))await dt(he,xe,{submission:{...vt,formAction:pe},preventScrollReset:Ee||B,enableViewTransition:J?z:void 0});else{let ot=am(xe,le);await dt(he,xe,{overrideNavigation:ot,fetcherSubmission:ve,preventScrollReset:Ee||B,enableViewTransition:J?z:void 0})}}async function Rt(H,Y,J,le,ve,Ee){let Me,pe={};try{Me=await xM(m,H,Y,J,le,ve,Ee,o,l)}catch(xe){return le.forEach(he=>{pe[he.route.id]={type:"error",error:xe}}),pe}for(let[xe,he]of Object.entries(Me))if(RM(he)){let Re=he.result;pe[xe]={type:"redirect",response:CM(Re,J,xe,ve,d)}}else pe[xe]=await wM(he);return pe}async function un(H,Y,J,le,ve){let Ee=Rt("loader",H,ve,J,Y,null),Me=Promise.all(le.map(async he=>{if(he.matches&&he.match&&he.controller){let Oe=(await Rt("loader",H,Ul(t.history,he.path,he.controller.signal),[he.match],he.matches,he.key))[he.match.route.id];return{[he.key]:Oe}}else return Promise.resolve({[he.key]:{type:"error",error:nr(404,{pathname:he.path})}})})),pe=await Ee,xe=(await Me).reduce((he,Re)=>Object.assign(he,Re),{});return{loaderResults:pe,fetcherResults:xe}}function jt(){Z=!0,M.forEach((H,Y)=>{ie.has(Y)&&ae.add(Y),rr(Y)})}function on(H,Y,J={}){C.fetchers.set(H,Y),je({fetchers:new Map(C.fetchers)},{flushSync:(J&&J.flushSync)===!0})}function sn(H,Y,J,le={}){let ve=Bi(C.matches,Y);xa(H),je({errors:{[ve.route.id]:J},fetchers:new Map(C.fetchers)},{flushSync:(le&&le.flushSync)===!0})}function cu(H){return F.set(H,(F.get(H)||0)+1),se.has(H)&&se.delete(H),C.fetchers.get(H)||hM}function xa(H){let Y=C.fetchers.get(H);ie.has(H)&&!(Y&&Y.state==="loading"&&ne.has(H))&&rr(H),M.delete(H),ne.delete(H),K.delete(H),se.delete(H),ae.delete(H),C.fetchers.delete(H)}function xf(H){let Y=(F.get(H)||0)-1;Y<=0?(F.delete(H),se.add(H)):F.set(H,Y),je({fetchers:new Map(C.fetchers)})}function rr(H){let Y=ie.get(H);Y&&(Y.abort(),ie.delete(H))}function Go(H){for(let Y of H){let J=cu(Y),le=Za(J.data);C.fetchers.set(Y,le)}}function Xo(){let H=[],Y=!1;for(let J of K){let le=C.fetchers.get(J);Pe(le,`Expected fetcher: ${J}`),le.state==="loading"&&(K.delete(J),H.push(J),Y=!0)}return Go(H),Y}function Ea(H){let Y=[];for(let[J,le]of ne)if(le<H){let ve=C.fetchers.get(J);Pe(ve,`Expected fetcher: ${J}`),ve.state==="loading"&&(rr(J),ne.delete(J),Y.push(J))}return Go(Y),Y.length>0}function cn(H,Y){let J=C.blockers.get(H)||mo;return de.get(H)!==Y&&de.set(H,Y),J}function Zo(H){C.blockers.delete(H),de.delete(H)}function Tn(H,Y){let J=C.blockers.get(H)||mo;Pe(J.state==="unblocked"&&Y.state==="blocked"||J.state==="blocked"&&Y.state==="blocked"||J.state==="blocked"&&Y.state==="proceeding"||J.state==="blocked"&&Y.state==="unblocked"||J.state==="proceeding"&&Y.state==="unblocked",`Invalid blocker state transition: ${J.state} -> ${Y.state}`);let le=new Map(C.blockers);le.set(H,Y),je({blockers:le})}function tn({currentLocation:H,nextLocation:Y,historyAction:J}){if(de.size===0)return;de.size>1&&It(!1,"A router only supports one blocker at a time");let le=Array.from(de.entries()),[ve,Ee]=le[le.length-1],Me=C.blockers.get(ve);if(!(Me&&Me.state==="proceeding")&&Ee({currentLocation:H,nextLocation:Y,historyAction:J}))return ve}function fu(H){let Y=nr(404,{pathname:H}),J=f||s,{matches:le,route:ve}=n1(J);return{notFoundMatches:le,route:ve,error:Y}}function Ef(H,Y,J){if(y=H,x=Y,w=J||null,!R&&C.navigation===rm){R=!0;let le=gi(C.location,C.matches);le!=null&&je({restoreScrollPosition:le})}return()=>{y=null,x=null,w=null}}function Io(H,Y){return w&&w(H,Y.map(le=>V3(le,C.loaderData)))||H.key}function rl(H,Y){if(y&&x){let J=Io(H,Y);y[J]=x()}}function gi(H,Y){if(y){let J=Io(H,Y),le=y[J];if(typeof le=="number")return le}return null}function qn(H,Y,J){if(v)if(H){if(Object.keys(H[0].params).length>0)return{active:!0,matches:Tc(Y,J,d,!0)}}else return{active:!0,matches:Tc(Y,J,d,!0)||[]};return{active:!1,matches:null}}async function Fr(H,Y,J){if(!v)return{type:"success",matches:H};let le=H;for(;;){let ve=f==null,Ee=f||s,Me=o;try{await v({path:Y,matches:le,patch:(he,Re)=>{J.aborted||Zb(he,Re,Ee,Me,l)}})}catch(he){return{type:"error",error:he,partialMatches:le}}finally{ve&&!J.aborted&&(s=[...s])}if(J.aborted)return{type:"aborted"};let pe=Ja(Ee,Y,d);if(pe)return{type:"success",matches:pe};let xe=Tc(Ee,Y,d,!0);if(!xe||le.length===xe.length&&le.every((he,Re)=>he.route.id===xe[Re].route.id))return{type:"success",matches:null};le=xe}}function yi(H){o={},f=Qc(H,l,void 0,o)}function wf(H,Y){let J=f==null;Zb(H,Y,f||s,o,l),J&&(s=[...s],je({}))}return j={get basename(){return d},get future(){return g},get state(){return C},get routes(){return s},get window(){return r},initialize:Te,subscribe:_e,enableScrollRestoration:Ef,navigate:Mt,fetch:Se,revalidate:bn,createHref:H=>t.history.createHref(H),encodeLocation:H=>t.history.encodeLocation(H),getFetcher:cu,deleteFetcher:xf,dispose:mt,getBlocker:cn,deleteBlocker:Zo,patchRoutes:wf,_internalFetchControllers:ie,_internalSetRoutes:yi},j}function pM(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function $m(t,r,a,l,o,s){let f,d;if(o){f=[];for(let v of r)if(f.push(v),v.route.id===o){d=v;break}}else f=r,d=r[r.length-1];let m=Fv(l||".",kv(f),br(t.pathname,a)||t.pathname,s==="path");if(l==null&&(m.search=t.search,m.hash=t.hash),(l==null||l===""||l===".")&&d){let v=Yv(m.search);if(d.route.index&&!v)m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&v){let g=new URLSearchParams(m.search),S=g.getAll("index");g.delete("index"),S.filter(y=>y).forEach(y=>g.append("index",y));let p=g.toString();m.search=p?`?${p}`:""}}return a!=="/"&&(m.pathname=m.pathname==="/"?a:Hr([a,m.pathname])),pi(m)}function Qb(t,r,a){if(!a||!pM(a))return{path:r};if(a.formMethod&&!DM(a.formMethod))return{path:r,error:nr(405,{method:a.formMethod})};let l=()=>({path:r,error:nr(400,{type:"invalid-body"})}),s=(a.formMethod||"get").toUpperCase(),f=a2(r);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!hr(s))return l();let S=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((p,[y,w])=>`${p}${y}=${w}
72
- `,""):String(a.body);return{path:r,submission:{formMethod:s,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:S}}}else if(a.formEncType==="application/json"){if(!hr(s))return l();try{let S=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:r,submission:{formMethod:s,formAction:f,formEncType:a.formEncType,formData:void 0,json:S,text:void 0}}}catch{return l()}}}Pe(typeof FormData=="function","FormData is not available in this environment");let d,m;if(a.formData)d=Pm(a.formData),m=a.formData;else if(a.body instanceof FormData)d=Pm(a.body),m=a.body;else if(a.body instanceof URLSearchParams)d=a.body,m=Jb(d);else if(a.body==null)d=new URLSearchParams,m=new FormData;else try{d=new URLSearchParams(a.body),m=Jb(d)}catch{return l()}let v={formMethod:s,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(hr(v.formMethod))return{path:r,submission:v};let g=Sa(r);return t&&g.search&&Yv(g.search)&&d.append("index",""),g.search=`?${d}`,{path:pi(g),submission:v}}function Kb(t,r,a=!1){let l=t.findIndex(o=>o.route.id===r);return l>=0?t.slice(0,a?l+1:l):t}function Gb(t,r,a,l,o,s,f,d,m,v,g,S,p,y){let w=y?zn(y[1])?y[1].error:y[1].data:void 0,x=t.createURL(r.location),R=t.createURL(o),T=a;s&&r.errors?T=Kb(a,Object.keys(r.errors)[0],!0):y&&zn(y[1])&&(T=Kb(a,y[0]));let A=y?y[1].statusCode:void 0,N=A&&A>=400,j=T.filter((q,B)=>{let{route:V}=q;if(V.lazy)return!0;if(V.loader==null)return!1;if(s)return Bm(V,r.loaderData,r.errors);if(gM(r.loaderData,r.matches[B],q))return!0;let z=r.matches[B],X=q;return Xb(q,{currentUrl:x,currentParams:z.params,nextUrl:R,nextParams:X.params,...l,actionResult:w,actionStatus:A,defaultShouldRevalidate:N?!1:f||x.pathname+x.search===R.pathname+R.search||x.search!==R.search||yM(z,X)})}),C=[];return v.forEach((q,B)=>{if(s||!a.some(fe=>fe.route.id===q.routeId)||m.has(B))return;let V=Ja(S,q.path,p);if(!V){C.push({key:B,routeId:q.routeId,path:q.path,matches:null,match:null,controller:null});return}let z=r.fetchers.get(B),X=yo(V,q.path),te=!1;g.has(B)?te=!1:d.has(B)?(d.delete(B),te=!0):z&&z.state!=="idle"&&z.data===void 0?te=f:te=Xb(X,{currentUrl:x,currentParams:r.matches[r.matches.length-1].params,nextUrl:R,nextParams:a[a.length-1].params,...l,actionResult:w,actionStatus:A,defaultShouldRevalidate:N?!1:f}),te&&C.push({key:B,routeId:q.routeId,path:q.path,matches:V,match:X,controller:new AbortController})}),[j,C]}function Bm(t,r,a){if(t.lazy)return!0;if(!t.loader)return!1;let l=r!=null&&r[t.id]!==void 0,o=a!=null&&a[t.id]!==void 0;return!l&&o?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!l&&!o}function gM(t,r,a){let l=!r||a.route.id!==r.route.id,o=!t.hasOwnProperty(a.route.id);return l||o}function yM(t,r){let a=t.route.path;return t.pathname!==r.pathname||a!=null&&a.endsWith("*")&&t.params["*"]!==r.params["*"]}function Xb(t,r){if(t.route.shouldRevalidate){let a=t.route.shouldRevalidate(r);if(typeof a=="boolean")return a}return r.defaultShouldRevalidate}function Zb(t,r,a,l,o){let s;if(t){let m=l[t];Pe(m,`No route found to patch children into: routeId = ${t}`),m.children||(m.children=[]),s=m.children}else s=a;let f=r.filter(m=>!s.some(v=>r2(m,v))),d=Qc(f,o,[t||"_","patch",String((s==null?void 0:s.length)||"0")],l);s.push(...d)}function r2(t,r){return"id"in t&&"id"in r&&t.id===r.id?!0:t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive?(!t.children||t.children.length===0)&&(!r.children||r.children.length===0)?!0:t.children.every((a,l)=>{var o;return(o=r.children)==null?void 0:o.some(s=>r2(a,s))}):!1}async function bM(t,r,a){if(!t.lazy)return;let l=await t.lazy();if(!t.lazy)return;let o=a[t.id];Pe(o,"No route found in manifest");let s={};for(let f in l){let m=o[f]!==void 0&&f!=="hasErrorBoundary";It(!m,`Route "${o.id}" has a static property "${f}" defined but its lazy function is also returning a value for this property. The lazy route property "${f}" will be ignored.`),!m&&!k3.has(f)&&(s[f]=l[f])}Object.assign(o,s),Object.assign(o,{...r(o),lazy:void 0})}async function SM({matches:t}){let r=t.filter(l=>l.shouldLoad);return(await Promise.all(r.map(l=>l.resolve()))).reduce((l,o,s)=>Object.assign(l,{[r[s].route.id]:o}),{})}async function xM(t,r,a,l,o,s,f,d,m,v){let g=s.map(y=>y.route.lazy?bM(y.route,m,d):void 0),S=s.map((y,w)=>{let x=g[w],R=o.some(A=>A.route.id===y.route.id);return{...y,shouldLoad:R,resolve:async A=>(A&&l.method==="GET"&&(y.route.lazy||y.route.loader)&&(R=!0),R?EM(r,l,y,x,A,v):Promise.resolve({type:"data",result:void 0}))}}),p=await t({matches:S,request:l,params:s[0].params,fetcherKey:f,context:v});try{await Promise.all(g)}catch{}return p}async function EM(t,r,a,l,o,s){let f,d,m=v=>{let g,S=new Promise((w,x)=>g=x);d=()=>g(),r.signal.addEventListener("abort",d);let p=w=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${t}" [routeId: ${a.route.id}]`)):v({request:r,params:a.params,context:s},...w!==void 0?[w]:[]),y=(async()=>{try{return{type:"data",result:await(o?o(x=>p(x)):p())}}catch(w){return{type:"error",result:w}}})();return Promise.race([y,S])};try{let v=a.route[t];if(l)if(v){let g,[S]=await Promise.all([m(v).catch(p=>{g=p}),l]);if(g!==void 0)throw g;f=S}else if(await l,v=a.route[t],v)f=await m(v);else if(t==="action"){let g=new URL(r.url),S=g.pathname+g.search;throw nr(405,{method:r.method,pathname:S,routeId:a.route.id})}else return{type:"data",result:void 0};else if(v)f=await m(v);else{let g=new URL(r.url),S=g.pathname+g.search;throw nr(404,{pathname:S})}}catch(v){return{type:"error",result:v}}finally{d&&r.signal.removeEventListener("abort",d)}return f}async function wM(t){var l,o,s,f;let{result:r,type:a}=t;if(i2(r)){let d;try{let m=r.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?r.body==null?d=null:d=await r.json():d=await r.text()}catch(m){return{type:"error",error:m}}return a==="error"?{type:"error",error:new Gc(r.status,r.statusText,d),statusCode:r.status,headers:r.headers}:{type:"data",data:d,statusCode:r.status,headers:r.headers}}if(a==="error"){if(r1(r)){if(r.data instanceof Error)return{type:"error",error:r.data,statusCode:(l=r.init)==null?void 0:l.status};r=new Gc(((o=r.init)==null?void 0:o.status)||500,void 0,r.data)}return{type:"error",error:r,statusCode:bf(r)?r.status:void 0}}return r1(r)?{type:"data",data:r.data,statusCode:(s=r.init)==null?void 0:s.status,headers:(f=r.init)!=null&&f.headers?new Headers(r.init.headers):void 0}:{type:"data",data:r}}function CM(t,r,a,l,o){let s=t.headers.get("Location");if(Pe(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Vv.test(s)){let f=l.slice(0,l.findIndex(d=>d.route.id===a)+1);s=$m(new URL(r.url),f,o,s),t.headers.set("Location",s)}return t}function Ib(t,r,a){if(Vv.test(t)){let l=t,o=l.startsWith("//")?new URL(r.protocol+l):new URL(l),s=br(o.pathname,a)!=null;if(o.origin===r.origin&&s)return o.pathname+o.search+o.hash}return t}function Ul(t,r,a,l){let o=t.createURL(a2(r)).toString(),s={signal:a};if(l&&hr(l.formMethod)){let{formMethod:f,formEncType:d}=l;s.method=f.toUpperCase(),d==="application/json"?(s.headers=new Headers({"Content-Type":d}),s.body=JSON.stringify(l.json)):d==="text/plain"?s.body=l.text:d==="application/x-www-form-urlencoded"&&l.formData?s.body=Pm(l.formData):s.body=l.formData}return new Request(o,s)}function Pm(t){let r=new URLSearchParams;for(let[a,l]of t.entries())r.append(a,typeof l=="string"?l:l.name);return r}function Jb(t){let r=new FormData;for(let[a,l]of t.entries())r.append(a,l);return r}function OM(t,r,a,l=!1,o=!1){let s={},f=null,d,m=!1,v={},g=a&&zn(a[1])?a[1].error:void 0;return t.forEach(S=>{if(!(S.route.id in r))return;let p=S.route.id,y=r[p];if(Pe(!Pi(y),"Cannot handle redirect results in processLoaderData"),zn(y)){let w=y.error;if(g!==void 0&&(w=g,g=void 0),f=f||{},o)f[p]=w;else{let x=Bi(t,p);f[x.route.id]==null&&(f[x.route.id]=w)}l||(s[p]=n2),m||(m=!0,d=bf(y.error)?y.error.status:500),y.headers&&(v[p]=y.headers)}else s[p]=y.data,y.statusCode&&y.statusCode!==200&&!m&&(d=y.statusCode),y.headers&&(v[p]=y.headers)}),g!==void 0&&a&&(f={[a[0]]:g},s[a[0]]=void 0),{loaderData:s,errors:f,statusCode:d||200,loaderHeaders:v}}function Wb(t,r,a,l,o,s){let{loaderData:f,errors:d}=OM(r,a,l);return o.forEach(m=>{let{key:v,match:g,controller:S}=m,p=s[v];if(Pe(p,"Did not find corresponding fetcher result"),!(S&&S.signal.aborted))if(zn(p)){let y=Bi(t.matches,g==null?void 0:g.route.id);d&&d[y.route.id]||(d={...d,[y.route.id]:p.error}),t.fetchers.delete(v)}else if(Pi(p))Pe(!1,"Unhandled fetcher revalidation redirect");else{let y=Za(p.data);t.fetchers.set(v,y)}}),{loaderData:f,errors:d}}function e1(t,r,a,l){let o=Object.entries(r).filter(([,s])=>s!==n2).reduce((s,[f,d])=>(s[f]=d,s),{});for(let s of a){let f=s.route.id;if(!r.hasOwnProperty(f)&&t.hasOwnProperty(f)&&s.route.loader&&(o[f]=t[f]),l&&l.hasOwnProperty(f))break}return o}function t1(t){return t?zn(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function Bi(t,r){return(r?t.slice(0,t.findIndex(l=>l.route.id===r)+1):[...t]).reverse().find(l=>l.route.hasErrorBoundary===!0)||t[0]}function n1(t){let r=t.length===1?t[0]:t.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r}}function nr(t,{pathname:r,routeId:a,method:l,type:o,message:s}={}){let f="Unknown Server Error",d="Unknown @remix-run/router error";return t===400?(f="Bad Request",l&&r&&a?d=`You made a ${l} request to "${r}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:o==="invalid-body"&&(d="Unable to encode submission body")):t===403?(f="Forbidden",d=`Route "${a}" does not match URL "${r}"`):t===404?(f="Not Found",d=`No route matches URL "${r}"`):t===405&&(f="Method Not Allowed",l&&r&&a?d=`You made a ${l.toUpperCase()} request to "${r}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:l&&(d=`Invalid request method "${l.toUpperCase()}"`)),new Gc(t||500,f,new Error(d),!0)}function yc(t){let r=Object.entries(t);for(let a=r.length-1;a>=0;a--){let[l,o]=r[a];if(Pi(o))return{key:l,result:o}}}function a2(t){let r=typeof t=="string"?Sa(t):t;return pi({...r,hash:""})}function TM(t,r){return t.pathname!==r.pathname||t.search!==r.search?!1:t.hash===""?r.hash!=="":t.hash===r.hash?!0:r.hash!==""}function RM(t){return i2(t.result)&&fM.has(t.result.status)}function zn(t){return t.type==="error"}function Pi(t){return(t&&t.type)==="redirect"}function r1(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function i2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function DM(t){return cM.has(t.toUpperCase())}function hr(t){return oM.has(t.toUpperCase())}function Yv(t){return new URLSearchParams(t).getAll("index").some(r=>r==="")}function yo(t,r){let a=typeof r=="string"?Sa(r).search:r.search;if(t[t.length-1].route.index&&Yv(a||""))return t[t.length-1];let l=Wx(t);return l[l.length-1]}function a1(t){let{formMethod:r,formAction:a,formEncType:l,text:o,formData:s,json:f}=t;if(!(!r||!a||!l)){if(o!=null)return{formMethod:r,formAction:a,formEncType:l,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:r,formAction:a,formEncType:l,formData:s,json:void 0,text:void 0};if(f!==void 0)return{formMethod:r,formAction:a,formEncType:l,formData:void 0,json:f,text:void 0}}}function am(t,r){return r?{state:"loading",location:t,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function AM(t,r){return{state:"submitting",location:t,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function vo(t,r){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:r}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function MM(t,r){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:r?r.data:void 0}}function Za(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function jM(t,r){try{let a=t.sessionStorage.getItem(t2);if(a){let l=JSON.parse(a);for(let[o,s]of Object.entries(l||{}))s&&Array.isArray(s)&&r.set(o,new Set(s||[]))}}catch{}}function _M(t,r){if(r.size>0){let a={};for(let[l,o]of r)a[l]=[...o];try{t.sessionStorage.setItem(t2,JSON.stringify(a))}catch(l){It(!1,`Failed to save applied view transitions in sessionStorage (${l}).`)}}}function NM(){let t,r,a=new Promise((l,o)=>{t=async s=>{l(s);try{await a}catch{}},r=async s=>{o(s);try{await a}catch{}}});return{promise:a,resolve:t,reject:r}}var el=E.createContext(null);el.displayName="DataRouter";var Vo=E.createContext(null);Vo.displayName="DataRouterState";var Qv=E.createContext({isTransitioning:!1});Qv.displayName="ViewTransition";var l2=E.createContext(new Map);l2.displayName="Fetchers";var zM=E.createContext(null);zM.displayName="Await";var kr=E.createContext(null);kr.displayName="Navigation";var Yo=E.createContext(null);Yo.displayName="Location";var Sr=E.createContext({outlet:null,matches:[],isDataRoute:!1});Sr.displayName="Route";var Kv=E.createContext(null);Kv.displayName="RouteError";function LM(t,{relative:r}={}){Pe(Qo(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:l}=E.useContext(kr),{hash:o,pathname:s,search:f}=Ko(t,{relative:r}),d=s;return a!=="/"&&(d=s==="/"?a:Hr([a,s])),l.createHref({pathname:d,search:f,hash:o})}function Qo(){return E.useContext(Yo)!=null}function tl(){return Pe(Qo(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Yo).location}var u2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o2(t){E.useContext(kr).static||E.useLayoutEffect(t)}function Gv(){let{isDataRoute:t}=E.useContext(Sr);return t?ZM():HM()}function HM(){Pe(Qo(),"useNavigate() may be used only in the context of a <Router> component.");let t=E.useContext(el),{basename:r,navigator:a}=E.useContext(kr),{matches:l}=E.useContext(Sr),{pathname:o}=tl(),s=JSON.stringify(kv(l)),f=E.useRef(!1);return o2(()=>{f.current=!0}),E.useCallback((m,v={})=>{if(It(f.current,u2),!f.current)return;if(typeof m=="number"){a.go(m);return}let g=Fv(m,JSON.parse(s),o,v.relative==="path");t==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:Hr([r,g.pathname])),(v.replace?a.replace:a.push)(g,v.state,v)},[r,a,s,o,t])}var UM=E.createContext(null);function $M(t){let r=E.useContext(Sr).outlet;return r&&E.createElement(UM.Provider,{value:t},r)}function s2(){let{matches:t}=E.useContext(Sr),r=t[t.length-1];return r?r.params:{}}function Ko(t,{relative:r}={}){let{matches:a}=E.useContext(Sr),{pathname:l}=tl(),o=JSON.stringify(kv(a));return E.useMemo(()=>Fv(t,JSON.parse(o),l,r==="path"),[t,o,l,r])}function BM(t,r){return c2(t,r)}function c2(t,r,a,l){var T;Pe(Qo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=E.useContext(kr),{matches:s}=E.useContext(Sr),f=s[s.length-1],d=f?f.params:{},m=f?f.pathname:"/",v=f?f.pathnameBase:"/",g=f&&f.route;{let A=g&&g.path||"";f2(m,!g||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
73
-
74
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let S=tl(),p;if(r){let A=typeof r=="string"?Sa(r):r;Pe(v==="/"||((T=A.pathname)==null?void 0:T.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${A.pathname}" was given in the \`location\` prop.`),p=A}else p=S;let y=p.pathname||"/",w=y;if(v!=="/"){let A=v.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(A.length).join("/")}let x=Ja(t,{pathname:w});It(g||x!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),It(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=VM(x&&x.map(A=>Object.assign({},A,{params:Object.assign({},d,A.params),pathname:Hr([v,o.encodeLocation?o.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?v:Hr([v,o.encodeLocation?o.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),s,a,l);return r&&R?E.createElement(Yo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},R):R}function PM(){let t=XM(),r=bf(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:l},s={padding:"2px 4px",backgroundColor:l},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},r),a?E.createElement("pre",{style:o},a):null,f)}var qM=E.createElement(PM,null),kM=class extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?E.createElement(Sr.Provider,{value:this.props.routeContext},E.createElement(Kv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function FM({routeContext:t,match:r,children:a}){let l=E.useContext(el);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(Sr.Provider,{value:t},a)}function VM(t,r=[],a=null,l=null){if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(r.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let o=t,s=a==null?void 0:a.errors;if(s!=null){let m=o.findIndex(v=>v.route.id&&(s==null?void 0:s[v.route.id])!==void 0);Pe(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let f=!1,d=-1;if(a)for(let m=0;m<o.length;m++){let v=o[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(d=m),v.route.id){let{loaderData:g,errors:S}=a,p=v.route.loader&&!g.hasOwnProperty(v.route.id)&&(!S||S[v.route.id]===void 0);if(v.route.lazy||p){f=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((m,v,g)=>{let S,p=!1,y=null,w=null;a&&(S=s&&v.route.id?s[v.route.id]:void 0,y=v.route.errorElement||qM,f&&(d<0&&g===0?(f2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,w=null):d===g&&(p=!0,w=v.route.hydrateFallbackElement||null)));let x=r.concat(o.slice(0,g+1)),R=()=>{let T;return S?T=y:p?T=w:v.route.Component?T=E.createElement(v.route.Component,null):v.route.element?T=v.route.element:T=m,E.createElement(FM,{match:v,routeContext:{outlet:m,matches:x,isDataRoute:a!=null},children:T})};return a&&(v.route.ErrorBoundary||v.route.errorElement||g===0)?E.createElement(kM,{location:a.location,revalidation:a.revalidation,component:y,error:S,children:R(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):R()},null)}function Xv(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function YM(t){let r=E.useContext(el);return Pe(r,Xv(t)),r}function QM(t){let r=E.useContext(Vo);return Pe(r,Xv(t)),r}function KM(t){let r=E.useContext(Sr);return Pe(r,Xv(t)),r}function Zv(t){let r=KM(t),a=r.matches[r.matches.length-1];return Pe(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}function GM(){return Zv("useRouteId")}function XM(){var l;let t=E.useContext(Kv),r=QM("useRouteError"),a=Zv("useRouteError");return t!==void 0?t:(l=r.errors)==null?void 0:l[a]}function ZM(){let{router:t}=YM("useNavigate"),r=Zv("useNavigate"),a=E.useRef(!1);return o2(()=>{a.current=!0}),E.useCallback(async(o,s={})=>{It(a.current,u2),a.current&&(typeof o=="number"?t.navigate(o):await t.navigate(o,{fromRouteId:r,...s}))},[t,r])}var i1={};function f2(t,r,a){!r&&!i1[t]&&(i1[t]=!0,It(!1,a))}var l1={};function u1(t,r){!t&&!l1[r]&&(l1[r]=!0,console.warn(r))}function IM(t){let r={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&It(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(r,{element:E.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&It(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(r,{hydrateFallbackElement:E.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&It(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(r,{errorElement:E.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),r}var JM=class{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",t(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",r(a))}})}};function WM({router:t,flushSync:r}){let[a,l]=E.useState(t.state),[o,s]=E.useState(),[f,d]=E.useState({isTransitioning:!1}),[m,v]=E.useState(),[g,S]=E.useState(),[p,y]=E.useState(),w=E.useRef(new Map),x=E.useCallback((N,{deletedFetchers:j,flushSync:C,viewTransitionOpts:q})=>{j.forEach(V=>w.current.delete(V)),N.fetchers.forEach((V,z)=>{V.data!==void 0&&w.current.set(z,V.data)}),u1(C===!1||r!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let B=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(u1(q==null||B,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!q||!B){r&&C?r(()=>l(N)):E.startTransition(()=>l(N));return}if(r&&C){r(()=>{g&&(m&&m.resolve(),g.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:q.currentLocation,nextLocation:q.nextLocation})});let V=t.window.document.startViewTransition(()=>{r(()=>l(N))});V.finished.finally(()=>{r(()=>{v(void 0),S(void 0),s(void 0),d({isTransitioning:!1})})}),r(()=>S(V));return}g?(m&&m.resolve(),g.skipTransition(),y({state:N,currentLocation:q.currentLocation,nextLocation:q.nextLocation})):(s(N),d({isTransitioning:!0,flushSync:!1,currentLocation:q.currentLocation,nextLocation:q.nextLocation}))},[t.window,r,g,m]);E.useLayoutEffect(()=>t.subscribe(x),[t,x]),E.useEffect(()=>{f.isTransitioning&&!f.flushSync&&v(new JM)},[f]),E.useEffect(()=>{if(m&&o&&t.window){let N=o,j=m.promise,C=t.window.document.startViewTransition(async()=>{E.startTransition(()=>l(N)),await j});C.finished.finally(()=>{v(void 0),S(void 0),s(void 0),d({isTransitioning:!1})}),S(C)}},[o,m,t.window]),E.useEffect(()=>{m&&o&&a.location.key===o.location.key&&m.resolve()},[m,g,a.location,o]),E.useEffect(()=>{!f.isTransitioning&&p&&(s(p.state),d({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),y(void 0))},[f.isTransitioning,p]);let R=E.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:N=>t.navigate(N),push:(N,j,C)=>t.navigate(N,{state:j,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(N,j,C)=>t.navigate(N,{replace:!0,state:j,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[t]),T=t.basename||"/",A=E.useMemo(()=>({router:t,navigator:R,static:!1,basename:T}),[t,R,T]);return E.createElement(E.Fragment,null,E.createElement(el.Provider,{value:A},E.createElement(Vo.Provider,{value:a},E.createElement(l2.Provider,{value:w.current},E.createElement(Qv.Provider,{value:f},E.createElement(r5,{basename:T,location:a.location,navigationType:a.historyAction,navigator:R},E.createElement(e5,{routes:t.routes,future:t.future,state:a})))))),null)}var e5=E.memo(t5);function t5({routes:t,future:r,state:a}){return c2(t,void 0,a,r)}function n5(t){return $M(t.context)}function Rc(t){Pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function r5({basename:t="/",children:r=null,location:a,navigationType:l="POP",navigator:o,static:s=!1}){Pe(!Qo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=t.replace(/^\/*/,"/"),d=E.useMemo(()=>({basename:f,navigator:o,static:s,future:{}}),[f,o,s]);typeof a=="string"&&(a=Sa(a));let{pathname:m="/",search:v="",hash:g="",state:S=null,key:p="default"}=a,y=E.useMemo(()=>{let w=br(m,f);return w==null?null:{location:{pathname:w,search:v,hash:g,state:S,key:p},navigationType:l}},[f,m,v,g,S,p,l]);return It(y!=null,`<Router basename="${f}"> is not able to match the URL "${m}${v}${g}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:E.createElement(kr.Provider,{value:d},E.createElement(Yo.Provider,{children:r,value:y}))}function a5({children:t,location:r}){return BM(qm(t),r)}function qm(t,r=[]){let a=[];return E.Children.forEach(t,(l,o)=>{if(!E.isValidElement(l))return;let s=[...r,o];if(l.type===E.Fragment){a.push.apply(a,qm(l.props.children,s));return}Pe(l.type===Rc,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Pe(!l.props.index||!l.props.children,"An index route cannot have child routes.");let f={id:l.props.id||s.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(f.children=qm(l.props.children,s)),a.push(f)}),a}var Dc="get",Ac="application/x-www-form-urlencoded";function Sf(t){return t!=null&&typeof t.tagName=="string"}function i5(t){return Sf(t)&&t.tagName.toLowerCase()==="button"}function l5(t){return Sf(t)&&t.tagName.toLowerCase()==="form"}function u5(t){return Sf(t)&&t.tagName.toLowerCase()==="input"}function o5(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function s5(t,r){return t.button===0&&(!r||r==="_self")&&!o5(t)}var bc=null;function c5(){if(bc===null)try{new FormData(document.createElement("form"),0),bc=!1}catch{bc=!0}return bc}var f5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function im(t){return t!=null&&!f5.has(t)?(It(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ac}"`),null):t}function d5(t,r){let a,l,o,s,f;if(l5(t)){let d=t.getAttribute("action");l=d?br(d,r):null,a=t.getAttribute("method")||Dc,o=im(t.getAttribute("enctype"))||Ac,s=new FormData(t)}else if(i5(t)||u5(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||d.getAttribute("action");if(l=m?br(m,r):null,a=t.getAttribute("formmethod")||d.getAttribute("method")||Dc,o=im(t.getAttribute("formenctype"))||im(d.getAttribute("enctype"))||Ac,s=new FormData(d,t),!c5()){let{name:v,type:g,value:S}=t;if(g==="image"){let p=v?`${v}.`:"";s.append(`${p}x`,"0"),s.append(`${p}y`,"0")}else v&&s.append(v,S)}}else{if(Sf(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Dc,l=null,o=Ac,f=t}return s&&o==="text/plain"&&(f=s,s=void 0),{action:l,method:a.toLowerCase(),encType:o,formData:s,body:f}}function Iv(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}async function h5(t,r){if(t.id in r)return r[t.id];try{let a=await import(t.module);return r[t.id]=a,a}catch(a){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function m5(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function v5(t,r,a){let l=await Promise.all(t.map(async o=>{let s=r.routes[o.route.id];if(s){let f=await h5(s,a);return f.links?f.links():[]}return[]}));return b5(l.flat(1).filter(m5).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function o1(t,r,a,l,o,s){let f=(m,v)=>a[v]?m.route.id!==a[v].route.id:!0,d=(m,v)=>{var g;return a[v].pathname!==m.pathname||((g=a[v].route.path)==null?void 0:g.endsWith("*"))&&a[v].params["*"]!==m.params["*"]};return s==="assets"?r.filter((m,v)=>f(m,v)||d(m,v)):s==="data"?r.filter((m,v)=>{var S;let g=l.routes[m.route.id];if(!g||!g.hasLoader)return!1;if(f(m,v)||d(m,v))return!0;if(m.route.shouldRevalidate){let p=m.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((S=a[0])==null?void 0:S.params)||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function p5(t,r){return g5(t.map(a=>{let l=r.routes[a.route.id];if(!l)return[];let o=[l.module];return l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function g5(t){return[...new Set(t)]}function y5(t){let r={},a=Object.keys(t).sort();for(let l of a)r[l]=t[l];return r}function b5(t,r){let a=new Set;return new Set(r),t.reduce((l,o)=>{let s=JSON.stringify(y5(o));return a.has(s)||(a.add(s),l.push({key:s,link:o})),l},[])}function S5(t){let r=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r.pathname==="/"?r.pathname="_root.data":r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function x5(){let t=E.useContext(el);return Iv(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function E5(){let t=E.useContext(Vo);return Iv(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Jv=E.createContext(void 0);Jv.displayName="FrameworkContext";function d2(){let t=E.useContext(Jv);return Iv(t,"You must render this element inside a <HydratedRouter> element"),t}function w5(t,r){let a=E.useContext(Jv),[l,o]=E.useState(!1),[s,f]=E.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:v,onMouseLeave:g,onTouchStart:S}=r,p=E.useRef(null);E.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let x=T=>{T.forEach(A=>{f(A.isIntersecting)})},R=new IntersectionObserver(x,{threshold:.5});return p.current&&R.observe(p.current),()=>{R.disconnect()}}},[t]),E.useEffect(()=>{if(l){let x=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(x)}}},[l]);let y=()=>{o(!0)},w=()=>{o(!1),f(!1)};return a?t!=="intent"?[s,p,{}]:[s,p,{onFocus:po(d,y),onBlur:po(m,w),onMouseEnter:po(v,y),onMouseLeave:po(g,w),onTouchStart:po(S,y)}]:[!1,p,{}]}function po(t,r){return a=>{t&&t(a),a.defaultPrevented||r(a)}}function C5({page:t,...r}){let{router:a}=x5(),l=E.useMemo(()=>Ja(a.routes,t,a.basename),[a.routes,t,a.basename]);return l?E.createElement(T5,{page:t,matches:l,...r}):(console.warn(`Tried to prefetch ${t} but no routes matched.`),null)}function O5(t){let{manifest:r,routeModules:a}=d2(),[l,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return v5(t,r,a).then(f=>{s||o(f)}),()=>{s=!0}},[t,r,a]),l}function T5({page:t,matches:r,...a}){let l=tl(),{manifest:o,routeModules:s}=d2(),{loaderData:f,matches:d}=E5(),m=E.useMemo(()=>o1(t,r,d,o,l,"data"),[t,r,d,o,l]),v=E.useMemo(()=>o1(t,r,d,o,l,"assets"),[t,r,d,o,l]),g=E.useMemo(()=>{if(t===l.pathname+l.search+l.hash)return[];let y=new Set,w=!1;if(r.forEach(R=>{var A;let T=o.routes[R.route.id];!T||!T.hasLoader||(!m.some(N=>N.route.id===R.route.id)&&R.route.id in f&&((A=s[R.route.id])!=null&&A.shouldRevalidate)||T.hasClientLoader?w=!0:y.add(R.route.id))}),y.size===0)return[];let x=S5(t);return w&&y.size>0&&x.searchParams.set("_routes",r.filter(R=>y.has(R.route.id)).map(R=>R.route.id).join(",")),[x.pathname+x.search]},[f,l,o,m,r,t,s]),S=E.useMemo(()=>p5(v,o),[v,o]),p=O5(v);return E.createElement(E.Fragment,null,g.map(y=>E.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...a})),S.map(y=>E.createElement("link",{key:y,rel:"modulepreload",href:y,...a})),p.map(({key:y,link:w})=>E.createElement("link",{key:y,...w})))}function R5(...t){return r=>{t.forEach(a=>{typeof a=="function"?a(r):a!=null&&(a.current=r)})}}var h2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{h2&&(window.__reactRouterVersion="7.0.2")}catch{}function D5(t,r){return vM({basename:r==null?void 0:r.basename,future:r==null?void 0:r.future,history:B3({window:r==null?void 0:r.window}),hydrationData:(r==null?void 0:r.hydrationData)||A5(),routes:t,mapRouteProperties:IM,dataStrategy:r==null?void 0:r.dataStrategy,patchRoutesOnNavigation:r==null?void 0:r.patchRoutesOnNavigation,window:r==null?void 0:r.window}).initialize()}function A5(){let t=window==null?void 0:window.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:M5(t.errors)}),t}function M5(t){if(!t)return null;let r=Object.entries(t),a={};for(let[l,o]of r)if(o&&o.__type==="RouteErrorResponse")a[l]=new Gc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let f=new s(o.message);f.stack="",a[l]=f}catch{}}if(a[l]==null){let s=new Error(o.message);s.stack="",a[l]=s}}else a[l]=o;return a}var m2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,au=E.forwardRef(function({onClick:r,discover:a="render",prefetch:l="none",relative:o,reloadDocument:s,replace:f,state:d,target:m,to:v,preventScrollReset:g,viewTransition:S,...p},y){let{basename:w}=E.useContext(kr),x=typeof v=="string"&&m2.test(v),R,T=!1;if(typeof v=="string"&&x&&(R=v,h2))try{let z=new URL(window.location.href),X=v.startsWith("//")?new URL(z.protocol+v):new URL(v),te=br(X.pathname,w);X.origin===z.origin&&te!=null?v=te+X.search+X.hash:T=!0}catch{It(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=LM(v,{relative:o}),[N,j,C]=w5(l,p),q=N5(v,{replace:f,state:d,target:m,preventScrollReset:g,relative:o,viewTransition:S});function B(z){r&&r(z),z.defaultPrevented||q(z)}let V=E.createElement("a",{...p,...C,href:R||A,onClick:T||s?r:B,ref:R5(y,j),target:m,"data-discover":!x&&a==="render"?"true":void 0});return N&&!x?E.createElement(E.Fragment,null,V,E.createElement(C5,{page:A})):V});au.displayName="Link";var v2=E.forwardRef(function({"aria-current":r="page",caseSensitive:a=!1,className:l="",end:o=!1,style:s,to:f,viewTransition:d,children:m,...v},g){let S=Ko(f,{relative:v.relative}),p=tl(),y=E.useContext(Vo),{navigator:w,basename:x}=E.useContext(kr),R=y!=null&&$5(S)&&d===!0,T=w.encodeLocation?w.encodeLocation(S).pathname:S.pathname,A=p.pathname,N=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;a||(A=A.toLowerCase(),N=N?N.toLowerCase():null,T=T.toLowerCase()),N&&x&&(N=br(N,x)||N);const j=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let C=A===T||!o&&A.startsWith(T)&&A.charAt(j)==="/",q=N!=null&&(N===T||!o&&N.startsWith(T)&&N.charAt(T.length)==="/"),B={isActive:C,isPending:q,isTransitioning:R},V=C?r:void 0,z;typeof l=="function"?z=l(B):z=[l,C?"active":null,q?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let X=typeof s=="function"?s(B):s;return E.createElement(au,{...v,"aria-current":V,className:z,ref:g,style:X,to:f,viewTransition:d},typeof m=="function"?m(B):m)});v2.displayName="NavLink";var j5=E.forwardRef(({discover:t="render",fetcherKey:r,navigate:a,reloadDocument:l,replace:o,state:s,method:f=Dc,action:d,onSubmit:m,relative:v,preventScrollReset:g,viewTransition:S,...p},y)=>{let w=H5(),x=U5(d,{relative:v}),R=f.toLowerCase()==="get"?"get":"post",T=typeof d=="string"&&m2.test(d),A=N=>{if(m&&m(N),N.defaultPrevented)return;N.preventDefault();let j=N.nativeEvent.submitter,C=(j==null?void 0:j.getAttribute("formmethod"))||f;w(j||N.currentTarget,{fetcherKey:r,method:C,navigate:a,replace:o,state:s,relative:v,preventScrollReset:g,viewTransition:S})};return E.createElement("form",{ref:y,method:R,action:x,onSubmit:l?m:A,...p,"data-discover":!T&&t==="render"?"true":void 0})});j5.displayName="Form";function _5(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p2(t){let r=E.useContext(el);return Pe(r,_5(t)),r}function N5(t,{target:r,replace:a,state:l,preventScrollReset:o,relative:s,viewTransition:f}={}){let d=Gv(),m=tl(),v=Ko(t,{relative:s});return E.useCallback(g=>{if(s5(g,r)){g.preventDefault();let S=a!==void 0?a:pi(m)===pi(v);d(t,{replace:S,state:l,preventScrollReset:o,relative:s,viewTransition:f})}},[m,d,v,a,l,r,t,o,s,f])}var z5=0,L5=()=>`__${String(++z5)}__`;function H5(){let{router:t}=p2("useSubmit"),{basename:r}=E.useContext(kr),a=GM();return E.useCallback(async(l,o={})=>{let{action:s,method:f,encType:d,formData:m,body:v}=d5(l,r);if(o.navigate===!1){let g=o.fetcherKey||L5();await t.fetch(g,a,o.action||s,{preventScrollReset:o.preventScrollReset,formData:m,body:v,formMethod:o.method||f,formEncType:o.encType||d,flushSync:o.flushSync})}else await t.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:m,body:v,formMethod:o.method||f,formEncType:o.encType||d,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[t,r,a])}function U5(t,{relative:r}={}){let{basename:a}=E.useContext(kr),l=E.useContext(Sr);Pe(l,"useFormAction must be used inside a RouteContext");let[o]=l.matches.slice(-1),s={...Ko(t||".",{relative:r})},f=tl();if(t==null){s.search=f.search;let d=new URLSearchParams(s.search),m=d.getAll("index");if(m.some(g=>g==="")){d.delete("index"),m.filter(S=>S).forEach(S=>d.append("index",S));let g=d.toString();s.search=g?`?${g}`:""}}return(!t||t===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(s.pathname=s.pathname==="/"?a:Hr([a,s.pathname])),pi(s)}function $5(t,r={}){let a=E.useContext(Qv);Pe(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=p2("useViewTransitionState"),o=Ko(t,{relative:r.relative});if(!a.isTransitioning)return!1;let s=br(a.currentLocation.pathname,l)||a.currentLocation.pathname,f=br(a.nextLocation.pathname,l)||a.nextLocation.pathname;return Kc(o.pathname,f)!=null||Kc(o.pathname,s)!=null}new TextEncoder;var E1;const nl=O4({getRootUrl:()=>{var t;return`/${(t=document.querySelector('meta[name="x-basename"]'))==null?void 0:t.getAttribute("content")}/api`},headers:{"X-CSRF-Token":((E1=document.querySelector('meta[name="csrf-token"]'))==null?void 0:E1.getAttribute("content"))??""}});async function B5(){return nl("/tables")}async function P5(t,r,a,l,o){const s=new URLSearchParams;for(const f of r)s.append("order",f);return s.append("limit",a.toString()),s.append("page",l.toString()),o&&s.append("search",o),nl(`/tables/${t}?${s.toString()}`)}async function q5(t,r){return nl(`/tables/${t}/${r}`)}async function k5(t,r){return nl(`/tables/${t}/${r}`,{method:"DELETE"})}async function F5(t,r){return nl(`/tables/${t}`,{method:"POST",body:JSON.stringify(r)})}async function V5(t,r,a){return nl(`/tables/${t}/${r}`,{method:"PUT",body:JSON.stringify(a)})}async function Y5(t,r){return nl(`/tables/${t}/suggestions/${r}`)}function Wv(){return qv({queryKey:["database"],queryFn:async()=>{var l,o;const t=await B5(),r=[],a={};for(const s of((l=t.jsonData)==null?void 0:l.tables)??[])r.push(s.tableName),a[s.tableName]=s;return{tableIds:r,tables:a,rowCounts:((o=t.jsonData)==null?void 0:o.rowCounts)??{}}}})}function Q5(t,{order:r,limit:a,page:l,search:o}){return qv({queryKey:["tables",t,{order:r,limit:a,page:l,search:o}],queryFn:()=>P5(t,r,a,l,o).then(s=>s.jsonData)})}function K5(t){const r=yf();return Zx({mutationFn:async({pk:a,data:l})=>a==null?F5(t,l):V5(t,a,l),onSuccess:()=>{r.invalidateQueries({queryKey:["tables",t]})}})}function G5(t){const r=yf();return Zx({mutationFn:a=>k5(t,a),onSuccess:()=>{r.invalidateQueries({queryKey:["tables",t]})}})}function X5(t,r){return qv({queryKey:["tables",t,"rows",r],queryFn:()=>r==null?{}:q5(t,r).then(a=>a.jsonData)})}function Z5(t,r){return _3({queryKey:["foreign-key-options",t,r],queryFn:()=>Y5(t,r).then(a=>a.jsonData)})}const I5=t=>t.name?String(t.name):t.title?String(t.title):t.slug?String(t.slug):JSON.stringify(t);function J5(t){var f;const r=(f=t.schema.$bitiforms)==null?void 0:f.widgetProps,{foreignTable:a,foreignColumn:l}=r||{},{data:o=[]}=Z5(a,l),s=(t.value||"").toString();return D.jsx(Dx,{label:t.schema.title,hint:t.schema.description,value:s,onChange:d=>{t.onChange({target:{name:t.name,value:Number(d.target.value)}})},children:o.map(d=>D.jsxs("option",{value:String(d.id),children:[String(d.id),": ",I5(d)]},String(d.id)))})}const s1=t=>{let r;const a=new Set,l=(v,g)=>{const S=typeof v=="function"?v(r):v;if(!Object.is(S,r)){const p=r;r=g??(typeof S!="object"||S===null)?S:Object.assign({},r,S),a.forEach(y=>y(r,p))}},o=()=>r,d={setState:l,getState:o,getInitialState:()=>m,subscribe:v=>(a.add(v),()=>a.delete(v))},m=r=t(l,o,d);return d},W5=t=>t?s1(t):s1,e6=t=>t;function g2(t,r=e6){const a=Nr.useSyncExternalStore(t.subscribe,()=>r(t.getState()),()=>r(t.getInitialState()));return Nr.useDebugValue(a),a}const c1={BASE_URL:"/%7B%7B%20basename%20%7D%7D",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_PORT:"5190"},km=new Map,Sc=t=>{const r=km.get(t);return r?Object.fromEntries(Object.entries(r.stores).map(([a,l])=>[a,l.getState()])):{}},t6=(t,r,a)=>{if(t===void 0)return{type:"untracked",connection:r.connect(a)};const l=km.get(a.name);if(l)return{type:"tracked",store:t,...l};const o={connection:r.connect(a),stores:{}};return km.set(a.name,o),{type:"tracked",store:t,...o}},n6=(t,r={})=>(a,l,o)=>{const{enabled:s,anonymousActionType:f,store:d,...m}=r;let v;try{v=(s??(c1?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!v)return t(a,l,o);const{connection:g,...S}=t6(d,v,m);let p=!0;o.setState=(x,R,T)=>{const A=a(x,R);if(!p)return A;const N=T===void 0?{type:f||"anonymous"}:typeof T=="string"?{type:T}:T;return d===void 0?(g==null||g.send(N,l()),A):(g==null||g.send({...N,type:`${d}/${N.type}`},{...Sc(m.name),[d]:o.getState()}),A)};const y=(...x)=>{const R=p;p=!1,a(...x),p=R},w=t(o.setState,l,o);if(S.type==="untracked"?g==null||g.init(w):(S.stores[S.store]=o,g==null||g.init(Object.fromEntries(Object.entries(S.stores).map(([x,R])=>[x,x===S.store?w:R.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let x=!1;const R=o.dispatch;o.dispatch=(...T)=>{(c1?"production":void 0)!=="production"&&T[0].type==="__setState"&&!x&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),x=!0),R(...T)}}return g.subscribe(x=>{var R;switch(x.type){case"ACTION":if(typeof x.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return lm(x.payload,T=>{if(T.type==="__setState"){if(d===void 0){y(T.state);return}Object.keys(T.state).length!==1&&console.error(`
75
- [zustand devtools middleware] Unsupported __setState action format.
76
- When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
77
- and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
78
- `);const A=T.state[d];if(A==null)return;JSON.stringify(o.getState())!==JSON.stringify(A)&&y(A);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(T)});case"DISPATCH":switch(x.payload.type){case"RESET":return y(w),d===void 0?g==null?void 0:g.init(o.getState()):g==null?void 0:g.init(Sc(m.name));case"COMMIT":if(d===void 0){g==null||g.init(o.getState());return}return g==null?void 0:g.init(Sc(m.name));case"ROLLBACK":return lm(x.state,T=>{if(d===void 0){y(T),g==null||g.init(o.getState());return}y(T[d]),g==null||g.init(Sc(m.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return lm(x.state,T=>{if(d===void 0){y(T);return}JSON.stringify(o.getState())!==JSON.stringify(T[d])&&y(T[d])});case"IMPORT_STATE":{const{nextLiftedState:T}=x.payload,A=(R=T.computedStates.slice(-1)[0])==null?void 0:R.state;if(!A)return;y(d===void 0?A:A[d]),g==null||g.send(null,T);return}case"PAUSE_RECORDING":return p=!p}return}}),w},r6=n6,lm=(t,r)=>{let a;try{a=JSON.parse(t)}catch(l){console.error("[zustand devtools middleware] Could not parse the received json",l)}a!==void 0&&r(a)};function a6(t,r){let a;try{a=t()}catch{return}return{getItem:o=>{var s;const f=m=>m===null?null:JSON.parse(m,void 0),d=(s=a.getItem(o))!=null?s:null;return d instanceof Promise?d.then(f):f(d)},setItem:(o,s)=>a.setItem(o,JSON.stringify(s,void 0)),removeItem:o=>a.removeItem(o)}}const Fm=t=>r=>{try{const a=t(r);return a instanceof Promise?a:{then(l){return Fm(l)(a)},catch(l){return this}}}catch(a){return{then(l){return this},catch(l){return Fm(l)(a)}}}},i6=(t,r)=>(a,l,o)=>{let s={storage:a6(()=>localStorage),partialize:x=>x,version:0,merge:(x,R)=>({...R,...x}),...r},f=!1;const d=new Set,m=new Set;let v=s.storage;if(!v)return t((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),a(...x)},l,o);const g=()=>{const x=s.partialize({...l()});return v.setItem(s.name,{state:x,version:s.version})},S=o.setState;o.setState=(x,R)=>{S(x,R),g()};const p=t((...x)=>{a(...x),g()},l,o);o.getInitialState=()=>p;let y;const w=()=>{var x,R;if(!v)return;f=!1,d.forEach(A=>{var N;return A((N=l())!=null?N:p)});const T=((R=s.onRehydrateStorage)==null?void 0:R.call(s,(x=l())!=null?x:p))||void 0;return Fm(v.getItem.bind(v))(s.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==s.version){if(s.migrate){const N=s.migrate(A.state,A.version);return N instanceof Promise?N.then(j=>[!0,j]):[!0,N]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,A.state];return[!1,void 0]}).then(A=>{var N;const[j,C]=A;if(y=s.merge(C,(N=l())!=null?N:p),a(y,!0),j)return g()}).then(()=>{T==null||T(y,void 0),y=l(),f=!0,m.forEach(A=>A(y))}).catch(A=>{T==null||T(void 0,A)})};return o.persist={setOptions:x=>{s={...s,...x},x.storage&&(v=x.storage)},clearStorage:()=>{v==null||v.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>w(),hasHydrated:()=>f,onHydrate:x=>(d.add(x),()=>{d.delete(x)}),onFinishHydration:x=>(m.add(x),()=>{m.delete(x)})},s.skipHydration||w(),y||p},l6=i6,u6={displayName:"",foreignTableDisplayColumn:"id",columns:{},sortBy:[],page:1,limit:10,search:""};function o6(t){return W5(r6(l6(r=>({config:Object.fromEntries(Object.values(t.tables).map(a=>[a.tableName,{...u6,foreignTableDisplayColumn:a.columnNames[0],displayName:a.tableName,columns:Object.fromEntries(a.columnNames.concat(a.relatedColumnNames).map(l=>[l,{displayName:l,visible:!0}]))}])),setConfig:(a,l)=>{r(o=>({config:{...o.config,[a]:{...o.config[a],...l}}}))}}),{name:`tableConfig:${btoa(t.tableIds.join(","))}`})))}const y2=E.createContext(null);function s6({children:t,database:r}){const[a]=E.useState(()=>o6(r));return D.jsx(y2.Provider,{value:a,children:t})}const b2=()=>{const t=E.useContext(y2);if(t==null)throw new Error("useTableConfig must be used within a StoreProvider");return t},S2=()=>{const t=b2();return g2(t,r=>r.config)},ep=()=>{const t=b2();return g2(t,r=>r.setConfig)};function c6(){const{data:t}=Wv();return D.jsx("div",{className:"sidebar-menu",children:D.jsx("ul",{children:(t.tableIds||[]).map(r=>D.jsx("li",{children:D.jsx(v2,{to:r,children:r})},r))})})}function f6(){const{data:t}=Wv();return D.jsx(s6,{database:t,children:D.jsx(r4,{headerHeight:"64px",header:D.jsx(a4,{className:"app-header",style:{"--hamburger-color":"white"},logo:D.jsx("span",{className:"logo",children:"Posterboi"}),children:null}),sidebar:D.jsx(c6,{}),children:D.jsx(n5,{})})})}function d6(){return D.jsx("div",{children:"Welcome!"})}function h6(t){return Jt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M262.29 192.31a64 64 0 1 0 57.4 57.4 64.13 64.13 0 0 0-57.4-57.4zM416.39 256a154.34 154.34 0 0 1-1.53 20.79l45.21 35.46a10.81 10.81 0 0 1 2.45 13.75l-42.77 74a10.81 10.81 0 0 1-13.14 4.59l-44.9-18.08a16.11 16.11 0 0 0-15.17 1.75A164.48 164.48 0 0 1 325 400.8a15.94 15.94 0 0 0-8.82 12.14l-6.73 47.89a11.08 11.08 0 0 1-10.68 9.17h-85.54a11.11 11.11 0 0 1-10.69-8.87l-6.72-47.82a16.07 16.07 0 0 0-9-12.22 155.3 155.3 0 0 1-21.46-12.57 16 16 0 0 0-15.11-1.71l-44.89 18.07a10.81 10.81 0 0 1-13.14-4.58l-42.77-74a10.8 10.8 0 0 1 2.45-13.75l38.21-30a16.05 16.05 0 0 0 6-14.08c-.36-4.17-.58-8.33-.58-12.5s.21-8.27.58-12.35a16 16 0 0 0-6.07-13.94l-38.19-30A10.81 10.81 0 0 1 49.48 186l42.77-74a10.81 10.81 0 0 1 13.14-4.59l44.9 18.08a16.11 16.11 0 0 0 15.17-1.75A164.48 164.48 0 0 1 187 111.2a15.94 15.94 0 0 0 8.82-12.14l6.73-47.89A11.08 11.08 0 0 1 213.23 42h85.54a11.11 11.11 0 0 1 10.69 8.87l6.72 47.82a16.07 16.07 0 0 0 9 12.22 155.3 155.3 0 0 1 21.46 12.57 16 16 0 0 0 15.11 1.71l44.89-18.07a10.81 10.81 0 0 1 13.14 4.58l42.77 74a10.8 10.8 0 0 1-2.45 13.75l-38.21 30a16.05 16.05 0 0 0-6.05 14.08c.33 4.14.55 8.3.55 12.47z"},child:[]}]})(t)}function x2({onSubmit:t,steps:r,submissionErrors:a,submissionState:l,clearSubmission:o,submitButtonText:s="Submit"}){const f=d=>{d.preventDefault(),t(d)};return D.jsxs(Ur,{as:"form",onSubmit:f,noValidate:!0,children:[l==="failed"&&D.jsx(e3,{errors:a,onClose:o}),r.flatMap(d=>Object.keys(d.fields).map(m=>D.jsx(Xm,{...d.fields[m]},m))),D.jsx(oO,{height:"s"}),s!=null&&D.jsx(ci,{type:"submit",style:{alignSelf:"flex-start"},disabled:l==="submitting",children:l==="submitting"?"Submitting...":s})]})}function f1({table:t}){const{pk:r=null}=s2(),a=Gv(),l=K5(t.tableName),{data:o={},isLoading:s}=X5(t.tableName,r),f=async({values:m,isValid:v})=>{if(!v)throw new jc({});await l.mutateAsync({pk:r,data:m}),a("..",{replace:!0})},d=r==null?"Add row":`Edit row ${r}`;return D.jsx(Ex,{title:d,isOpen:!0,onDismiss:()=>a("..",{replace:!0}),children:s?D.jsx(dO,{}):D.jsx($1,{initialValues:o,schema:t.schema,name:t.tableName,component:x2,onSubmit:f})})}function m6({table:t}){const r=Gv(),a=()=>r("..",{replace:!0});return D.jsx(D.Fragment,{children:D.jsx(Ex,{title:`UI for ${t.tableName}`,onDismiss:a,children:D.jsx(v6,{table:t,onSubmit:a})})})}function v6({table:t,onSubmit:r}){const a=S2(),l=a[t.tableName],o=ep(),s=E.useMemo(()=>({type:"object",properties:{displayName:{type:"string",title:"Display name"},foreignTableDisplayColumn:{type:"string",title:"Foreign table display column",enum:t.columnNames,$bitiforms:{widget:"SelectWidget"}},columns:{type:"object",properties:Object.fromEntries(t.columnNames.concat(t.relatedColumnNames).map(m=>[m,{type:"object",title:m,properties:{displayName:{type:"string",default:m},visible:{type:"boolean",title:"Visible"}}}]))}}}),[t.columnNames,t.relatedColumnNames]),f=E.useCallback(m=>{xc(m,a)||o(t.tableName,m)},[t.tableName,o,a]),d=async({values:m,isValid:v})=>{if(!v)throw new jc({});f(m),r()};return l?D.jsx($1,{initialValues:l,schema:s,onSubmit:d,render:m=>D.jsx(x2,{...m,submitButtonText:"Save"})}):null}function p6(t,r,a,l){const o=r[t];if(o===null)return D.jsx(Yy,{style:{opacity:.4},children:"NULL"});if(a&&a.foreignKeys.length>0){const s=a.foreignKeys.at(0),f=t.replace(/_id$/,""),d=o,m=l[s.table].foreignTableDisplayColumn,v=`${f}__${m}`;return D.jsx(au,{to:`/${s==null?void 0:s.table}/edit/${d}`,children:D.jsxs(Yy,{children:[d," (",r[v],")"]})})}return typeof o=="boolean"?o?"Yes":"No":typeof o=="string"?(a==null?void 0:a.displayType)==="datetime"?My(new Date(o)):(a==null?void 0:a.displayType)==="date"?My(new Date(o),{representation:"date"}):o:D.jsx("pre",{style:{maxWidth:250},children:JSON.stringify(o)})}const g6=m4({multi:!0});function y6(){const{tableId:t=YC()}=s2(),{data:r}=Wv(),a=r==null?void 0:r.tables[t];return D.jsx(b6,{table:a,rowCount:r.rowCounts[t]},t)}function b6({table:t,rowCount:r}){const a=S2(),l=a[t.tableName],o=j4(l.search,500),s=ep(),{sortColumns:f,getThProps:d}=g6(l.sortBy);E.useEffect(()=>{s(t.tableName,{sortBy:f})},[f,t.tableName,s]);const{data:m}=Q5(t.tableName,{page:l.page,limit:l.limit,order:f,search:o}),v=Object.keys(l.columns).filter(g=>l.columns[g].visible);return t?D.jsxs("main",{"data-detail-view":!0,children:[D.jsxs(Ur,{horizontal:!0,justifyContent:"space-between",children:[D.jsxs(Ur,{horizontal:!0,className:"dmk-margin-bottom-l",spacing:"xs",children:[D.jsxs("div",{children:[D.jsx("h1",{className:"dmk-text-title2",children:l.displayName}),D.jsxs("div",{className:"dmk-text-subhead dmk-text-muted dmk-margin-top-s",children:[r," rows"]})]}),D.jsx(ci,{as:au,to:"config",variant:"text",size:"s",children:D.jsx(h6,{className:"dmk-margin-right-xs"})})]}),D.jsxs(ci,{as:au,to:"new",variant:"outlined",size:"s",children:[D.jsx(_C,{className:"dmk-margin-right-xs"})," Insert row"]})]}),D.jsx("div",{className:"dmk-margin-bottom-l",children:D.jsx(YA,{value:l.search,onChange:g=>s(t.tableName,{search:g.currentTarget.value})})}),D.jsx(s4,{className:"database-table-browser",children:D.jsx(c4,{renderHeaderRow:()=>D.jsxs("tr",{children:[v.map(g=>D.jsx("th",{...d(g,l.columns[g].displayName)},g)),D.jsx("th",{style:{width:200}})]}),renderRow:g=>D.jsx(x6,{table:t,row:g,visibleColumns:v,tableConfig:a},String(g.id)),items:m})}),D.jsx(S6,{limit:l.limit,page:l.page,total:r,table:t})]}):null}const S6=E.memo(function({limit:r,page:a,total:l,table:o}){const s=ep();return D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"dmk-margin-top-l",children:D.jsx(p4,{limit:r,onLimitChange:f=>s(o.tableName,{limit:f}),page:a,onPageChange:f=>s(o.tableName,{page:f}),total:l,limits:[10,50,100,500]})}),D.jsxs(a5,{children:[D.jsx(Rc,{path:"new",element:D.jsx(f1,{table:o})}),D.jsx(Rc,{path:"config",element:D.jsx(m6,{table:o})}),D.jsx(Rc,{path:"edit/:pk",element:D.jsx(f1,{table:o})})]})]})}),x6=E.memo(function({table:r,tableConfig:a,row:l,visibleColumns:o}){const s=G5(r.tableName),f=Lv(),d=()=>{f.value?s.mutate(String(l.id)):(f.enable(),setTimeout(()=>f.disable(),3e3))};return D.jsxs("tr",{children:[o.map(m=>D.jsx("td",{children:p6(m,l,r.columnMetadata[m],a)},m)),D.jsxs("td",{children:[D.jsx(ci,{as:au,size:"s",variant:"text",to:`edit/${l.id}`,children:"Edit"}),D.jsx(ci,{size:"s",variant:"text",intent:"danger",disabled:s.isPending,onClick:d,children:f.value?"Sure?":"Delete"})]})]},String(l.id))});var w1;const E6=D5([{path:"/",element:D.jsx(f6,{}),children:[{path:":tableId/*",element:D.jsx(y6,{}),errorElement:D.jsx("div",{children:"Error"})},{index:!0,element:D.jsx(d6,{})}]}],{basename:`/${((w1=document.querySelector('meta[name="x-basename"]'))==null?void 0:w1.getAttribute("content"))??""}`}),w6=Z1({colors:{primary:"#2c313b"}}),C6=new p3,O6={...t3,ForeignKeyWidget:J5};U3.createRoot(document.getElementById("root")).render(D.jsx(E.StrictMode,{children:D.jsx(wx,{children:D.jsx(rC,{widgets:O6,children:D.jsx(S3,{client:C6,children:D.jsx(tO,{theme:w6,children:D.jsx(WM,{router:E6})})})})})}));