import{c as et}from"./default-i18n.DXRQgkn2.js";import{l as ct}from"./helpers.CXsRrhc8.js";var Y={},tt={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */tt.exports;(function(s,n){(function(t){var y=n&&!n.nodeType&&n,l=s&&!s.nodeType&&s,g=typeof et=="object"&&et;(g.global===g||g.window===g||g.self===g)&&(t=g);var m,e=2147483647,x=36,d=1,j=26,S=38,b=700,f=72,P=128,k="-",A=/^xn--/,G=/[^\x20-\x7E]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=x-d,u=Math.floor,v=String.fromCharCode,z;function q(h){throw new RangeError(c[h])}function I(h,r){for(var a=h.length,i=[];a--;)i[a]=r(h[a]);return i}function D(h,r){var a=h.split("@"),i="";a.length>1&&(i=a[0]+"@",h=a[1]),h=h.replace(o,".");var p=h.split("."),w=I(p,r).join(".");return i+w}function J(h){for(var r=[],a=0,i=h.length,p,w;a=55296&&p<=56319&&a65535&&(r-=65536,a+=v(r>>>10&1023|55296),r=56320|r&1023),a+=v(r),a}).join("")}function N(h){return h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:x}function K(h,r){return h+22+75*(h<26)-((r!=0)<<5)}function W(h,r,a){var i=0;for(h=a?u(h/b):h>>1,h+=u(h/r);h>F*j>>1;i+=x)h=u(h/F);return u(i+(F+1)*h/(h+S))}function Z(h){var r=[],a=h.length,i,p=0,w=P,C=f,_,T,U,$,O,M,L,B,V;for(_=h.lastIndexOf(k),_<0&&(_=0),T=0;T<_;++T)h.charCodeAt(T)>=128&&q("not-basic"),r.push(h.charCodeAt(T));for(U=_>0?_+1:0;U=a&&q("invalid-input"),L=N(h.charCodeAt(U++)),(L>=x||L>u((e-p)/O))&&q("overflow"),p+=L*O,B=M<=C?d:M>=C+j?j:M-C,!(Lu(e/V)&&q("overflow"),O*=V;i=r.length+1,C=W(p-$,i,$==0),u(p/i)>e-w&&q("overflow"),w+=u(p/i),p%=i,r.splice(p++,0,w)}return Q(r)}function H(h){var r,a,i,p,w,C,_,T,U,$,O,M=[],L,B,V,st;for(h=J(h),L=h.length,r=P,a=0,w=f,C=0;C=r&&O<_&&(_=O);for(B=i+1,_-r>u((e-a)/B)&&q("overflow"),a+=(_-r)*B,r=_,C=0;Ce&&q("overflow"),O==r){for(T=a,U=x;$=U<=w?d:U>=w+j?j:U-w,!(T<$);U+=x)st=T-$,V=x-$,M.push(v(K($+st%V,0))),T=u(st/V);M.push(v(K(T,0))),w=W(a,B,i==p),a=0,++i}++a,++r}return M.join("")}function ft(h){return D(h,function(r){return A.test(r)?Z(r.slice(4).toLowerCase()):r})}function ut(h){return D(h,function(r){return G.test(r)?"xn--"+H(r):r})}if(m={version:"1.4.1",ucs2:{decode:J,encode:Q},decode:Z,encode:H,toASCII:ut,toUnicode:ft},y&&l)if(s.exports==y)l.exports=m;else for(z in m)m.hasOwnProperty(z)&&(y[z]=m[z]);else t.punycode=m})(et)})(tt,tt.exports);var pt=tt.exports,lt=pt;function R(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var mt=/^([a-z0-9.+-]+:)/i,xt=/:[0-9]*$/,yt=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,gt=["<",">",'"',"`"," ","\r",` `," "],dt=["{","}","|","\\","^","`"].concat(gt),ht=["'"].concat(dt),nt=["%","/","?",";","#"].concat(ht),at=["/","?","#"],bt=255,it=/^[+a-z0-9A-Z_-]{0,63}$/,vt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ct={javascript:!0,"javascript:":!0},ot={javascript:!0,"javascript:":!0},X={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},rt=ct;function E(s,n,t){if(s&&typeof s=="object"&&s instanceof R)return s;var y=new R;return y.parse(s,n,t),y}R.prototype.parse=function(s,n,t){if(typeof s!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof s);var y=s.indexOf("?"),l=y!==-1&&y127?u+="x":u+=F[v];if(!u.match(it)){var q=o.slice(0,f),I=o.slice(f+1),D=F.match(vt);D&&(q.push(D[1]),I.unshift(D[2])),I.length&&(e="/"+I.join(".")+e),this.hostname=q.join(".");break}}}this.hostname.length>bt?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=lt.toASCII(this.hostname));var J=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+J,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),e[0]!=="/"&&(e="/"+e))}if(!Ct[j])for(var f=0,c=ht.length;f0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.hostname=u.shift(),t.host=t.hostname)}return t.search=s.search,t.query=s.query,(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!o.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var v=o.slice(-1)[0],z=(t.host||s.host||o.length>1)&&(v==="."||v==="..")||v==="",q=0,I=o.length;I>=0;I--)v=o[I],v==="."?o.splice(I,1):v===".."?(o.splice(I,1),q++):q&&(o.splice(I,1),q--);if(!A&&!G)for(;q--;q)o.unshift("..");A&&o[0]!==""&&(!o[0]||o[0].charAt(0)!=="/")&&o.unshift(""),z&&o.join("/").substr(-1)!=="/"&&o.push("");var D=o[0]===""||o[0]&&o[0].charAt(0)==="/";if(F){t.hostname=D?"":o.length?o.shift():"",t.host=t.hostname;var u=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.hostname=u.shift(),t.host=t.hostname)}return A=A||t.host&&o.length,A&&!D&&o.unshift(""),o.length>0?t.pathname=o.join("/"):(t.pathname=null,t.path=null),(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=s.auth||t.auth,t.slashes=t.slashes||s.slashes,t.href=t.format(),t};R.prototype.parseHost=function(){var s=this.host,n=xt.exec(s);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),s=s.substr(0,s.length-n.length)),s&&(this.hostname=s)};Y.parse=E;Y.resolve=qt;Y.resolveObject=Ot;Y.format=At;Y.Url=R;export{Y as u};