From d89080116eee671f6f16605dd66c8ca381d0d214 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 20 Mar 2026 12:58:25 +0100 Subject: [PATCH] auto-git: [add] dist/assets/index-D7G_OK5S.js [change] dist/index.html [unlink] dist/assets/index-CQocmVDK.js --- dist/assets/{index-CQocmVDK.js => index-D7G_OK5S.js} | 2 +- dist/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename dist/assets/{index-CQocmVDK.js => index-D7G_OK5S.js} (99%) diff --git a/dist/assets/index-CQocmVDK.js b/dist/assets/index-D7G_OK5S.js similarity index 99% rename from dist/assets/index-CQocmVDK.js rename to dist/assets/index-D7G_OK5S.js index a5beed6..88c883d 100644 --- a/dist/assets/index-CQocmVDK.js +++ b/dist/assets/index-D7G_OK5S.js @@ -48,7 +48,7 @@ Error generating stack: `+o.message+` * @license MIT */var cc="popstate";function kg(e={}){function t(l,o){let{pathname:i="/",search:s="",hash:a=""}=Pn(l.location.hash.substring(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Ls("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(l,o){let i=l.document.querySelector("base"),s="";if(i&&i.getAttribute("href")){let a=l.location.href,u=a.indexOf("#");s=u===-1?a:a.slice(0,u)}return s+"#"+(typeof o=="string"?o:rl(o))}function r(l,o){pt(l.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return Cg(t,n,r,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Eg(){return Math.random().toString(36).substring(2,10)}function fc(e,t){return{usr:e.state,key:e.key,idx:t}}function Ls(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pn(t):t,state:n,key:t&&t.key||r||Eg()}}function rl({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Pn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Cg(e,t,n,r={}){let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s="POP",a=null,u=h();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function h(){return(i.state||{idx:null}).idx}function v(){s="POP";let L=h(),m=L==null?null:L-u;u=L,a&&a({action:s,location:k.location,delta:m})}function y(L,m){s="PUSH";let f=Ls(k.location,L,m);n&&n(f,L),u=h()+1;let d=fc(f,u),C=k.createHref(f);try{i.pushState(d,"",C)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;l.location.assign(C)}o&&a&&a({action:s,location:k.location,delta:1})}function S(L,m){s="REPLACE";let f=Ls(k.location,L,m);n&&n(f,L),u=h();let d=fc(f,u),C=k.createHref(f);i.replaceState(d,"",C),o&&a&&a({action:s,location:k.location,delta:0})}function E(L){return Ng(L)}let k={get action(){return s},get location(){return e(l,i)},listen(L){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(cc,v),a=L,()=>{l.removeEventListener(cc,v),a=null}},createHref(L){return t(l,L)},createURL:E,encodeLocation(L){let m=E(L);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:S,go(L){return i.go(L)}};return k}function Ng(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ae(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:rl(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Qd(e,t,n="/"){return _g(e,t,n,!1)}function _g(e,t,n,r){let l=typeof t=="string"?Pn(t):t,o=Ot(l.pathname||"/",n);if(o==null)return null;let i=Kd(e);Lg(i);let s=null;for(let a=0;s==null&&a{let h={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&a)return;ae(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let v=Rt([r,h.relativePath]),y=n.concat(h);i.children&&i.children.length>0&&(ae(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Kd(i.children,t,y,v,a)),!(i.path==null&&!i.index)&&t.push({path:v,score:zg(v,i.index),routesMeta:y})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let u of Yd(i.path))o(i,s,!0,u)}),t}function Yd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Yd(r.join("/")),s=[];return s.push(...i.map(a=>a===""?o:[o,a].join("/"))),l&&s.push(...i),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Lg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Og(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Pg=/^:[\w-]+$/,jg=3,Rg=2,Tg=1,$g=10,Mg=-2,dc=e=>e==="*";function zg(e,t){let n=e.split("/"),r=n.length;return n.some(dc)&&(r+=Mg),t&&(r+=Rg),n.filter(l=>!dc(l)).reduce((l,o)=>l+(Pg.test(o)?jg:o===""?Tg:$g),r)}function Og(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Fg(e,t,n=!1){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{if(h==="*"){let E=s[y]||"";i=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const S=s[y];return v&&!S?u[h]=void 0:u[h]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Ig(e,t=!1,n=!0){pt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Dg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ot(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ag(e,t="/"){let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Pn(e):e;return{pathname:n?n.startsWith("/")?n:Ug(n,t):t,search:Wg(r),hash:bg(l)}}function Ug(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Ti(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Bg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Gd(e){let t=Bg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Jd(e,t,n,r=!1){let l;typeof e=="string"?l=Pn(e):(l={...e},ae(!l.pathname||!l.pathname.includes("?"),Ti("?","pathname","search",l)),ae(!l.pathname||!l.pathname.includes("#"),Ti("#","pathname","hash",l)),ae(!l.search||!l.search.includes("#"),Ti("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let v=t.length-1;if(!r&&i.startsWith("..")){let y=i.split("/");for(;y[0]==="..";)y.shift(),v-=1;l.pathname=y.join("/")}s=v>=0?t[v]:"/"}let a=Ag(l,s),u=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||h)&&(a.pathname+="/"),a}var Rt=e=>e.join("/").replace(/\/\/+/g,"/"),Hg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Wg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Xd=["POST","PUT","PATCH","DELETE"];new Set(Xd);var Qg=["GET",...Xd];new Set(Qg);var pr=g.createContext(null);pr.displayName="DataRouter";var bo=g.createContext(null);bo.displayName="DataRouterState";g.createContext(!1);var Zd=g.createContext({isTransitioning:!1});Zd.displayName="ViewTransition";var Kg=g.createContext(new Map);Kg.displayName="Fetchers";var Yg=g.createContext(null);Yg.displayName="Await";var xt=g.createContext(null);xt.displayName="Navigation";var cl=g.createContext(null);cl.displayName="Location";var It=g.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var _a=g.createContext(null);_a.displayName="RouteError";function Gg(e,{relative:t}={}){ae(fl(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=g.useContext(xt),{hash:l,pathname:o,search:i}=dl(e,{relative:t}),s=o;return n!=="/"&&(s=o==="/"?n:Rt([n,o])),r.createHref({pathname:s,search:i,hash:l})}function fl(){return g.useContext(cl)!=null}function jn(){return ae(fl(),"useLocation() may be used only in the context of a component."),g.useContext(cl).location}var qd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ep(e){g.useContext(xt).static||g.useLayoutEffect(e)}function Jg(){let{isDataRoute:e}=g.useContext(It);return e?uv():Xg()}function Xg(){ae(fl(),"useNavigate() may be used only in the context of a component.");let e=g.useContext(pr),{basename:t,navigator:n}=g.useContext(xt),{matches:r}=g.useContext(It),{pathname:l}=jn(),o=JSON.stringify(Gd(r)),i=g.useRef(!1);return ep(()=>{i.current=!0}),g.useCallback((a,u={})=>{if(pt(i.current,qd),!i.current)return;if(typeof a=="number"){n.go(a);return}let h=Jd(a,JSON.parse(o),l,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Rt([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,o,l,e])}g.createContext(null);function dl(e,{relative:t}={}){let{matches:n}=g.useContext(It),{pathname:r}=jn(),l=JSON.stringify(Gd(n));return g.useMemo(()=>Jd(e,JSON.parse(l),r,t==="path"),[e,l,r,t])}function Zg(e,t){return tp(e,t)}function tp(e,t,n,r,l){var f;ae(fl(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=g.useContext(xt),{matches:i}=g.useContext(It),s=i[i.length-1],a=s?s.params:{},u=s?s.pathname:"/",h=s?s.pathnameBase:"/",v=s&&s.route;{let d=v&&v.path||"";np(u,!v||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) 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. -Please change the parent to .`)}let y=jn(),S;if(t){let d=typeof t=="string"?Pn(t):t;ae(h==="/"||((f=d.pathname)==null?void 0:f.startsWith(h)),`When overriding the location using \`\` 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 "${h}" but pathname "${d.pathname}" was given in the \`location\` prop.`),S=d}else S=y;let E=S.pathname||"/",k=E;if(h!=="/"){let d=h.replace(/^\//,"").split("/");k="/"+E.replace(/^\//,"").split("/").slice(d.length).join("/")}let L=Qd(e,{pathname:k});pt(v||L!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),pt(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let m=rv(L&&L.map(d=>Object.assign({},d,{params:Object.assign({},a,d.params),pathname:Rt([h,o.encodeLocation?o.encodeLocation(d.pathname).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?h:Rt([h,o.encodeLocation?o.encodeLocation(d.pathnameBase).pathname:d.pathnameBase])})),i,n,r,l);return t&&m?g.createElement(cl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},m):m}function qg(){let e=av(),t=Vg(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:l},n):null,i)}var ev=g.createElement(qg,null),tv=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?g.createElement(It.Provider,{value:this.props.routeContext},g.createElement(_a.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function nv({routeContext:e,match:t,children:n}){let r=g.useContext(pr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(It.Provider,{value:e},n)}function rv(e,t=[],n=null,r=null,l=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=n==null?void 0:n.errors;if(i!=null){let u=o.findIndex(h=>h.route.id&&(i==null?void 0:i[h.route.id])!==void 0);ae(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let s=!1,a=-1;if(n)for(let u=0;u=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((u,h,v)=>{let y,S=!1,E=null,k=null;n&&(y=i&&h.route.id?i[h.route.id]:void 0,E=h.route.errorElement||ev,s&&(a<0&&v===0?(np("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,k=null):a===v&&(S=!0,k=h.route.hydrateFallbackElement||null)));let L=t.concat(o.slice(0,v+1)),m=()=>{let f;return y?f=E:S?f=k:h.route.Component?f=g.createElement(h.route.Component,null):h.route.element?f=h.route.element:f=u,g.createElement(nv,{match:h,routeContext:{outlet:u,matches:L,isDataRoute:n!=null},children:f})};return n&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?g.createElement(tv,{location:n.location,revalidation:n.revalidation,component:E,error:y,children:m(),routeContext:{outlet:null,matches:L,isDataRoute:!0},unstable_onError:r}):m()},null)}function La(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lv(e){let t=g.useContext(pr);return ae(t,La(e)),t}function ov(e){let t=g.useContext(bo);return ae(t,La(e)),t}function iv(e){let t=g.useContext(It);return ae(t,La(e)),t}function Pa(e){let t=iv(e),n=t.matches[t.matches.length-1];return ae(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sv(){return Pa("useRouteId")}function av(){var r;let e=g.useContext(_a),t=ov("useRouteError"),n=Pa("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function uv(){let{router:e}=lv("useNavigate"),t=Pa("useNavigate"),n=g.useRef(!1);return ep(()=>{n.current=!0}),g.useCallback(async(l,o={})=>{pt(n.current,qd),n.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var pc={};function np(e,t,n){!t&&!pc[e]&&(pc[e]=!0,pt(!1,n))}g.memo(cv);function cv({routes:e,future:t,state:n,unstable_onError:r}){return tp(e,void 0,n,r,t)}function rp(e){ae(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function fv({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:l,static:o=!1}){ae(!fl(),"You cannot render a inside another . You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=g.useMemo(()=>({basename:i,navigator:l,static:o,future:{}}),[i,l,o]);typeof n=="string"&&(n=Pn(n));let{pathname:a="/",search:u="",hash:h="",state:v=null,key:y="default"}=n,S=g.useMemo(()=>{let E=Ot(a,i);return E==null?null:{location:{pathname:E,search:u,hash:h,state:v,key:y},navigationType:r}},[i,a,u,h,v,y,r]);return pt(S!=null,` is not able to match the URL "${a}${u}${h}" because it does not start with the basename, so the won't render anything.`),S==null?null:g.createElement(xt.Provider,{value:s},g.createElement(cl.Provider,{children:t,value:S}))}function dv({children:e,location:t}){return Zg(Ps(e),t)}function Ps(e,t=[]){let n=[];return g.Children.forEach(e,(r,l)=>{if(!g.isValidElement(r))return;let o=[...t,l];if(r.type===g.Fragment){n.push.apply(n,Ps(r.props.children,o));return}ae(r.type===rp,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ps(r.props.children,o)),n.push(i)}),n}var Zl="get",ql="application/x-www-form-urlencoded";function Vo(e){return e!=null&&typeof e.tagName=="string"}function pv(e){return Vo(e)&&e.tagName.toLowerCase()==="button"}function hv(e){return Vo(e)&&e.tagName.toLowerCase()==="form"}function mv(e){return Vo(e)&&e.tagName.toLowerCase()==="input"}function gv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vv(e,t){return e.button===0&&(!t||t==="_self")&&!gv(e)}var Dl=null;function yv(){if(Dl===null)try{new FormData(document.createElement("form"),0),Dl=!1}catch{Dl=!0}return Dl}var wv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $i(e){return e!=null&&!wv.has(e)?(pt(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ql}"`),null):e}function Sv(e,t){let n,r,l,o,i;if(hv(e)){let s=e.getAttribute("action");r=s?Ot(s,t):null,n=e.getAttribute("method")||Zl,l=$i(e.getAttribute("enctype"))||ql,o=new FormData(e)}else if(pv(e)||mv(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a