import{g as B}from"./_commonjsHelpers-ih3yennJ.js";import"./_sentry-release-injection-file-DBidL4S7.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new a.Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="7b7b78d7-8c0a-4b6b-8ea1-2f68289160e0",a._sentryDebugIdIdentifier="sentry-dbid-7b7b78d7-8c0a-4b6b-8ea1-2f68289160e0")}catch{}})();(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new a.Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="ebd4e57a-e0bd-40e7-9fee-e52e1a18fe4a",a._sentryDebugIdIdentifier="sentry-dbid-ebd4e57a-e0bd-40e7-9fee-e52e1a18fe4a")}catch{}})();(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new a.Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="f8885c2d-c483-4d66-aa1f-0d31e44d7f40",a._sentryDebugIdIdentifier="sentry-dbid-f8885c2d-c483-4d66-aa1f-0d31e44d7f40")}catch{}})();(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new a.Error().stack;d&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[d]="a7687e2c-1fd0-42cd-be1e-152c3f6ce900",a._sentryDebugIdIdentifier="sentry-dbid-a7687e2c-1fd0-42cd-be1e-152c3f6ce900")}catch{}})();var I={},S,_;function L(){return _||(_=1,S=a=>encodeURIComponent(a).replace(/[!'()*]/g,d=>`%${d.charCodeAt(0).toString(16).toUpperCase()}`)),S}var j,p;function M(){if(p)return j;p=1;var a="%[a-f0-9]{2}",d=new RegExp("("+a+")|([^%]+?)","gi"),g=new RegExp("("+a+")+","gi");function m(i,o){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;o=o||1;var y=i.slice(0,o),u=i.slice(o);return Array.prototype.concat.call([],m(y),m(u))}function w(i){try{return decodeURIComponent(i)}catch{for(var o=i.match(d)||[],y=1;y<o.length;y++)i=m(o,y).join(""),o=i.match(d)||[];return i}}function F(i){for(var o={"%FE%FF":"��","%FF%FE":"��"},y=g.exec(i);y;){try{o[y[0]]=decodeURIComponent(y[0])}catch{var u=w(y[0]);u!==y[0]&&(o[y[0]]=u)}y=g.exec(i)}o["%C2"]="�";for(var l=Object.keys(o),h=0;h<l.length;h++){var O=l[h];i=i.replace(new RegExp(O,"g"),o[O])}return i}return j=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return F(i)}},j}var D,x;function Q(){return x||(x=1,D=(a,d)=>{if(!(typeof a=="string"&&typeof d=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(d==="")return[a];const g=a.indexOf(d);return g===-1?[a]:[a.slice(0,g),a.slice(g+d.length)]}),D}var E,N;function T(){return N||(N=1,E=function(a,d){for(var g={},m=Object.keys(a),w=Array.isArray(d),F=0;F<m.length;F++){var i=m[F],o=a[i];(w?d.indexOf(i)!==-1:d(i,o,a))&&(g[i]=o)}return g}),E}var R;function k(){return R||(R=1,function(a){const d=L(),g=M(),m=Q(),w=T(),F=r=>r==null;function i(r){switch(r.arrayFormat){case"index":return e=>(n,t)=>{const f=n.length;return t===void 0||r.skipNull&&t===null||r.skipEmptyString&&t===""?n:t===null?[...n,[u(e,r),"[",f,"]"].join("")]:[...n,[u(e,r),"[",u(f,r),"]=",u(t,r)].join("")]};case"bracket":return e=>(n,t)=>t===void 0||r.skipNull&&t===null||r.skipEmptyString&&t===""?n:t===null?[...n,[u(e,r),"[]"].join("")]:[...n,[u(e,r),"[]=",u(t,r)].join("")];case"comma":case"separator":return e=>(n,t)=>t==null||t.length===0?n:n.length===0?[[u(e,r),"=",u(t,r)].join("")]:[[n,u(t,r)].join(r.arrayFormatSeparator)];default:return e=>(n,t)=>t===void 0||r.skipNull&&t===null||r.skipEmptyString&&t===""?n:t===null?[...n,u(e,r)]:[...n,[u(e,r),"=",u(t,r)].join("")]}}function o(r){let e;switch(r.arrayFormat){case"index":return(n,t,f)=>{if(e=/\[(\d*)\]$/.exec(n),n=n.replace(/\[\d*\]$/,""),!e){f[n]=t;return}f[n]===void 0&&(f[n]={}),f[n][e[1]]=t};case"bracket":return(n,t,f)=>{if(e=/(\[\])$/.exec(n),n=n.replace(/\[\]$/,""),!e){f[n]=t;return}if(f[n]===void 0){f[n]=[t];return}f[n]=[].concat(f[n],t)};case"comma":case"separator":return(n,t,f)=>{const s=typeof t=="string"&&t.includes(r.arrayFormatSeparator),c=typeof t=="string"&&!s&&l(t,r).includes(r.arrayFormatSeparator);t=c?l(t,r):t;const b=s||c?t.split(r.arrayFormatSeparator).map($=>l($,r)):t===null?t:l(t,r);f[n]=b};default:return(n,t,f)=>{if(f[n]===void 0){f[n]=t;return}f[n]=[].concat(f[n],t)}}}function y(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(r,e){return e.encode?e.strict?d(r):encodeURIComponent(r):r}function l(r,e){return e.decode?g(r):r}function h(r){return Array.isArray(r)?r.sort():typeof r=="object"?h(Object.keys(r)).sort((e,n)=>Number(e)-Number(n)).map(e=>r[e]):r}function O(r){const e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function C(r){let e="";const n=r.indexOf("#");return n!==-1&&(e=r.slice(n)),e}function q(r){r=O(r);const e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function A(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function U(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),y(e.arrayFormatSeparator);const n=o(e),t=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return t;for(const f of r.split("&")){if(f==="")continue;let[s,c]=m(e.decode?f.replace(/\+/g," "):f,"=");c=c===void 0?null:["comma","separator"].includes(e.arrayFormat)?c:l(c,e),n(l(s,e),c,t)}for(const f of Object.keys(t)){const s=t[f];if(typeof s=="object"&&s!==null)for(const c of Object.keys(s))s[c]=A(s[c],e);else t[f]=A(s,e)}return e.sort===!1?t:(e.sort===!0?Object.keys(t).sort():Object.keys(t).sort(e.sort)).reduce((f,s)=>{const c=t[s];return c&&typeof c=="object"&&!Array.isArray(c)?f[s]=h(c):f[s]=c,f},Object.create(null))}a.extract=q,a.parse=U,a.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),y(e.arrayFormatSeparator);const n=c=>e.skipNull&&F(r[c])||e.skipEmptyString&&r[c]==="",t=i(e),f={};for(const c of Object.keys(r))n(c)||(f[c]=r[c]);const s=Object.keys(f);return e.sort!==!1&&s.sort(e.sort),s.map(c=>{const b=r[c];return b===void 0?"":b===null?u(c,e):Array.isArray(b)?b.reduce(t(c),[]).join("&"):u(c,e)+"="+u(b,e)}).filter(c=>c.length>0).join("&")},a.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);const[n,t]=m(r,"#");return Object.assign({url:n.split("?")[0]||"",query:U(q(r),e)},e&&e.parseFragmentIdentifier&&t?{fragmentIdentifier:l(t,e)}:{})},a.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0},e);const n=O(r.url).split("?")[0]||"",t=a.extract(r.url),f=a.parse(t,{sort:!1}),s=Object.assign(f,r.query);let c=a.stringify(s,e);c&&(c=`?${c}`);let b=C(r.url);return r.fragmentIdentifier&&(b=`#${u(r.fragmentIdentifier,e)}`),`${n}${c}${b}`},a.pick=(r,e,n)=>{n=Object.assign({parseFragmentIdentifier:!0},n);const{url:t,query:f,fragmentIdentifier:s}=a.parseUrl(r,n);return a.stringifyUrl({url:t,query:w(f,e),fragmentIdentifier:s},n)},a.exclude=(r,e,n)=>{const t=Array.isArray(e)?f=>!e.includes(f):(f,s)=>!e(f,s);return a.pick(r,t,n)}}(I)),I}var H=k();const G=B(H);export{H as a,G as q};
