"use strict";(()=>{var et=Object.create;var U=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var rt=Object.getOwnPropertyNames;var st=Object.getPrototypeOf,it=Object.prototype.hasOwnProperty;var at=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}};var ot=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of rt(e))!it.call(t,s)&&s!==n&&U(t,s,{get:()=>e[s],enumerable:!(r=nt(e,s))||r.enumerable});return t};var ht=(t,e,n)=>(n=t!=null?et(st(t)):{},ot(e||!t||!t.__esModule?U(n,"default",{value:t,enumerable:!0}):n,t));var Q=at((qt,J)=>{"use strict";var E=Object.defineProperty,pt=Object.getOwnPropertyDescriptor,ut=Object.getOwnPropertyNames,ct=Object.prototype.hasOwnProperty,lt=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},ft=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ut(e))!ct.call(t,s)&&s!==n&&E(t,s,{get:()=>e[s],enumerable:!(r=pt(e,s))||r.enumerable});return t},mt=t=>ft(E({},"__esModule",{value:!0}),t),N={};lt(N,{registerHelperScripts:()=>zt});J.exports=mt(N);var dt=/[$_\p{ID_Start}]/u,gt=/[$_\u200C\u200D\p{ID_Continue}]/u;function xt(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}function D(t,e=!1){let n=[],r=0;for(;r{if(ah("MODIFIER")||h("ASTERISK"),f=l=>{let d=h(l);if(d!==void 0)return d;let{type:b,index:v}=n[a];throw new TypeError(`Unexpected ${b} at ${v}, expected ${l}`)},I=()=>{let l="",d;for(;d=h("CHAR")||h("ESCAPED_CHAR");)l+=d;return l},Y=l=>l,k=e.encodePart||Y;for(;a)?(?!\?)/g,r=0,s=n.exec(t.source);for(;s;)e.push({name:s[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),s=n.exec(t.source);return t}function wt(t,e,n){let r=t.map(s=>M(s,e,n).source);return new RegExp(`(?:${r.join("|")})`,j(n))}function yt(t,e,n){return H(_(t,n),e,n)}function H(t,e,n={}){let{strict:r=!1,start:s=!0,end:p=!0,encode:i=h=>h}=n,a=`[${P(n.endsWith===void 0?"":n.endsWith)}]|$`,o=`[${P(n.delimiter===void 0?"/#?":n.delimiter)}]`,u=s?"^":"";for(let h of t)if(typeof h=="string")u+=P(i(h));else{let c=P(i(h.prefix)),f=P(i(h.suffix));if(h.pattern)if(e&&e.push(h),c||f)if(h.modifier==="+"||h.modifier==="*"){let I=h.modifier==="*"?"?":"";u+=`(?:${c}((?:${h.pattern})(?:${f}${c}(?:${h.pattern}))*)${f})${I}`}else u+=`(?:${c}(${h.pattern})${f})${h.modifier}`;else h.modifier==="+"||h.modifier==="*"?u+=`((?:${h.pattern})${h.modifier})`:u+=`(${h.pattern})${h.modifier}`;else u+=`(?:${c}${f})${h.modifier}`}if(p)r||(u+=`${o}?`),u+=n.endsWith?`(?=${a})`:"$";else{let h=t[t.length-1],c=typeof h=="string"?o.indexOf(h[h.length-1])>-1:h===void 0;r||(u+=`(?:${o}(?=${a}))?`),c||(u+=`(?=${o}|${a})`)}return new RegExp(u,j(n))}function M(t,e,n){return t instanceof RegExp?St(t,e):Array.isArray(t)?wt(t,e,n):yt(t,e,n)}var w={delimiter:"",prefixes:"",sensitive:!0,strict:!0},kt={delimiter:".",prefixes:"",sensitive:!0,strict:!0},bt={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Pt(t,e){return t.length?t[0]==="/"?!0:!e||t.length<2?!1:(t[0]=="\\"||t[0]=="{")&&t[1]=="/":!1}function F(t,e){return t.startsWith(e)?t.substring(e.length,t.length):t}function Rt(t,e){return t.endsWith(e)?t.substr(0,t.length-e.length):t}function W(t){return!t||t.length<2?!1:t[0]==="["||(t[0]==="\\"||t[0]==="{")&&t[1]==="["}var K=["ftp","file","http","https","ws","wss"];function B(t){if(!t)return!0;for(let e of K)if(t.test(e))return!0;return!1}function $t(t,e){if(t=F(t,"#"),e||t==="")return t;let n=new URL("https://example.com");return n.hash=t,n.hash?n.hash.substring(1,n.hash.length):""}function It(t,e){if(t=F(t,"?"),e||t==="")return t;let n=new URL("https://example.com");return n.search=t,n.search?n.search.substring(1,n.search.length):""}function vt(t,e){return e||t===""?t:W(t)?z(t):V(t)}function Ct(t,e){if(e||t==="")return t;let n=new URL("https://example.com");return n.password=t,n.password}function Lt(t,e){if(e||t==="")return t;let n=new URL("https://example.com");return n.username=t,n.username}function Et(t,e,n){if(n||t==="")return t;if(e&&!K.includes(e))return new URL(`${e}:${t}`).pathname;let r=t[0]=="/";return t=new URL(r?t:"/-"+t,"https://example.com").pathname,r||(t=t.substring(2,t.length)),t}function At(t,e,n){return G(e)===t&&(t=""),n||t===""?t:Z(t)}function Tt(t,e){return t=Rt(t,":"),e||t===""?t:A(t)}function G(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function A(t){if(t==="")return t;if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)}function Ut(t){if(t==="")return t;let e=new URL("https://example.com");return e.username=t,e.username}function Ot(t){if(t==="")return t;let e=new URL("https://example.com");return e.password=t,e.password}function V(t){if(t==="")return t;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t))throw new TypeError(`Invalid hostname '${t}'`);let e=new URL("https://example.com");return e.hostname=t,e.hostname}function z(t){if(t==="")return t;if(/[^0-9a-fA-F[\]:]/g.test(t))throw new TypeError(`Invalid IPv6 hostname '${t}'`);return t.toLowerCase()}function Z(t){if(t===""||/^[0-9]*$/.test(t)&&parseInt(t)<=65535)return t;throw new TypeError(`Invalid port '${t}'.`)}function Nt(t){if(t==="")return t;let e=new URL("https://example.com");return e.pathname=t[0]!=="/"?"/-"+t:t,t[0]!=="/"?e.pathname.substring(2,e.pathname.length):e.pathname}function Dt(t){return t===""?t:new URL(`data:${t}`).pathname}function _t(t){if(t==="")return t;let e=new URL("https://example.com");return e.search=t,e.search.substring(1,e.search.length)}function jt(t){if(t==="")return t;let e=new URL("https://example.com");return e.hash=t,e.hash.substring(1,e.hash.length)}var Ht=class{constructor(t){this.tokenList=[],this.internalResult={},this.tokenIndex=0,this.tokenIncrement=1,this.componentStart=0,this.state=0,this.groupDepth=0,this.hostnameIPv6BracketDepth=0,this.shouldTreatAsStandardURL=!1,this.input=t}get result(){return this.internalResult}parse(){for(this.tokenList=D(this.input,!0);this.tokenIndex0)if(this.isGroupClose())this.groupDepth-=1;else continue;if(this.isGroupOpen()){this.groupDepth+=1;continue}switch(this.state){case 0:this.isProtocolSuffix()&&(this.internalResult.username="",this.internalResult.password="",this.internalResult.hostname="",this.internalResult.port="",this.internalResult.pathname="",this.internalResult.search="",this.internalResult.hash="",this.rewindAndSetState(1));break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let t=7,e=1;this.shouldTreatAsStandardURL&&(this.internalResult.pathname="/"),this.nextIsAuthoritySlashes()?(t=2,e=3):this.shouldTreatAsStandardURL&&(t=2),this.changeState(t,e)}break;case 2:this.isIdentityTerminator()?this.rewindAndSetState(3):(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix())&&this.rewindAndSetState(5);break;case 3:this.isPasswordPrefix()?this.changeState(4,1):this.isIdentityTerminator()&&this.changeState(5,1);break;case 4:this.isIdentityTerminator()&&this.changeState(5,1);break;case 5:this.isIPv6Open()?this.hostnameIPv6BracketDepth+=1:this.isIPv6Close()&&(this.hostnameIPv6BracketDepth-=1),this.isPortPrefix()&&!this.hostnameIPv6BracketDepth?this.changeState(6,1):this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 6:this.isPathnameStart()?this.changeState(7,0):this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 7:this.isSearchPrefix()?this.changeState(8,1):this.isHashPrefix()&&this.changeState(9,1);break;case 8:this.isHashPrefix()&&this.changeState(9,1);break;case 9:break;case 10:break}}}changeState(t,e){switch(this.state){case 0:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 2:break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString();break;case 10:break}this.changeStateWithoutSettingComponent(t,e)}changeStateWithoutSettingComponent(t,e){this.state=t,this.componentStart=this.tokenIndex+e,this.tokenIndex+=e,this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart,this.tokenIncrement=0}rewindAndSetState(t){this.rewind(),this.state=t}safeToken(t){return t<0&&(t=this.tokenList.length-t),t=0&&(t.pathname=g(r.pathname.substring(0,s+1),n)+t.pathname)}t.pathname=Et(t.pathname,t.protocol,n)}return typeof e.search=="string"&&(t.search=It(e.search,n)),typeof e.hash=="string"&&(t.hash=$t(e.hash,n)),t}function R(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}function Mt(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Ft(t,e){let n=`[^${Mt(e.delimiter===void 0?"/#?":e.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,s="";for(let p=0;p0?t[p-1]:null,o=p0?o[0]:"";c=r.test(f)}else c=typeof o.name=="number";if(!c&&i.prefix===""&&a&&typeof a=="string"&&a.length>0){let f=a[a.length-1];c=h.includes(f)}c&&(s+="{"),s+=R(i.prefix),u&&(s+=`:${i.name}`),i.pattern===".*"?!u&&(!a||typeof a=="string"||a.modifier||c||i.prefix!=="")?s+="*":s+="(.*)":i.pattern===n?u||(s+=`(${n})`):s+=`(${i.pattern})`,i.pattern===n&&u&&i.suffix!==""&&r.test(i.suffix[0])&&(s+="\\"),s+=R(i.suffix),c&&(s+="}"),s+=i.modifier}return s}var q=class{constructor(t={},e,n){this.regexp={},this.keys={},this.component_pattern={};try{let r;if(typeof e=="string"?r=e:n=e,typeof t=="string"){let a=new Ht(t);if(a.parse(),t=a.result,r===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=r}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(r)throw new TypeError("parameter 1 is not of type 'string'.")}typeof n>"u"&&(n={ignoreCase:!1});let s={ignoreCase:n.ignoreCase===!0},p={pathname:S,protocol:S,username:S,password:S,hostname:S,port:S,search:S,hash:S};this.pattern=$(p,t,!0),G(this.pattern.protocol)===this.pattern.port&&(this.pattern.port="");let i;for(i of C){if(!(i in this.pattern))continue;let a={},o=this.pattern[i];switch(this.keys[i]=[],i){case"protocol":Object.assign(a,w),a.encodePart=A;break;case"username":Object.assign(a,w),a.encodePart=Ut;break;case"password":Object.assign(a,w),a.encodePart=Ot;break;case"hostname":Object.assign(a,kt),W(o)?a.encodePart=z:a.encodePart=V;break;case"port":Object.assign(a,w),a.encodePart=Z;break;case"pathname":B(this.regexp.protocol)?(Object.assign(a,bt,s),a.encodePart=Nt):(Object.assign(a,w,s),a.encodePart=Dt);break;case"search":Object.assign(a,w,s),a.encodePart=_t;break;case"hash":Object.assign(a,w,s),a.encodePart=jt;break}try{let u=_(o,a);this.regexp[i]=H(u,this.keys[i],a),this.component_pattern[i]=Ft(u,a)}catch{throw new TypeError(`invalid ${i} pattern '${this.pattern[i]}'.`)}}}catch(r){throw new TypeError(`Failed to construct 'URLPattern': ${r.message}`)}}test(t={},e){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?n=$(n,t,!1):n=$(n,O(t,e),!1)}catch{return!1}let r;for(r of C)if(!this.regexp[r].exec(n[r]))return!1;return!0}exec(t={},e){let n={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?n=$(n,t,!1):n=$(n,O(t,e),!1)}catch{return null}let r={};e?r.inputs=[t,e]:r.inputs=[t];let s;for(s of C){let p=this.regexp[s].exec(n[s]);if(!p)return null;let i={};for(let[a,o]of this.keys[s].entries())if(typeof o.name=="string"||typeof o.name=="number"){let u=p[a+1];i[o.name]=u}r[s]={input:n[s]||"",groups:i}}return r}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}};globalThis.URLPattern||(globalThis.URLPattern=q);var Wt=(t,e)=>{let n=new URLSearchParams(e),r=new URLSearchParams;return n.forEach((s,p)=>{if(t.searchParams.has(p)&&t.searchParams.get(p)){let i=t.searchParams.get(p);i&&r.set(p,i)}}),t.search=r.toString(),t.toString()},Kt=t=>{let e;typeof t=="string"?e=new URL(t):e=t;let n=e.search?`\\${e.search}`:"",r=[e.origin,e.pathname];return n&&r.push(n),e.hash&&r.push(e.hash.replace(/\?/g,"\\?")),new q(r.join(""))},L=({url:t,pathPattern:e})=>{let n=new URL(t),r=new URL(`${n.origin}${e}`),s=Kt(r),p=Wt(n,s.search);return s.exec(p)},Bt=({url:t,paths:e})=>e.length===0?!0:e.some(n=>{try{return L({url:t,pathPattern:n})!==null}catch{return!1}}),Gt=t=>t?Object.keys(t).reduce((e,n)=>!Number.isNaN(Number(n))||!t[n]?e:{...e,[n]:t[n]},{}):{},Vt=({url:t,paths:e})=>{let n=e.find(i=>{try{return L({url:t,pathPattern:i})!==null}catch{return!1}});if(!n)return{};let r=L({url:t,pathPattern:n}),s=Gt(r?.pathname.groups),p=r?.search.groups??{};return{...s,...p}};function zt(t){t.mazeHelpers={getVariablesFromRoute:Vt,pathMatchesPattern:Bt}}});var X=ht(Q());(0,X.registerHelperScripts)(window);})();