PageSourceSearch

https://app.century.tech/assets/auth0-spa-js.production.esm-Cvgoaonw.js

js century.tech collected 2026-09-24 09:16:17 UTC 111,502 bytes, 4 lines download raw bytes

1(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"[email protected]"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2f1a33b3-ec39-4504-b87b-16dea5932c31",t._sentryDebugIdIdentifier="sentry-dbid-2f1a33b3-ec39-4504-b87b-16dea5932c31")}catch{}})();var ri=function(t,e){return(ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(t,e)};function Yt(t,e){function n(){this.constructor=t}ri(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var C=function(){return(C=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function L(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function F(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(u){try{c(i.next(u))}catch(l){s(l)}}function a(u){try{c(i.throw(u))}catch(l){s(l)}}function c(u){u.done?r(u.value):new n((function(l){l(u.value)})).then(o,a)}c((i=i.apply(t,[])).next())}))}function U(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return(function(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&l[0]?i.return:l[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;switch(i=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!((r=r.length>0&&r[r.length-1])||l[0]!==6&&l[0]!==2)){o=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(l[0]===6&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=e.call(t,o)}catch(f){l=[6,f],i=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}})([c,u])}}}function de(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i,r,s=n.call(t),o=[];try{for(;(e===void 0||e-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function Le(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(de(arguments[e]));return t}var Y=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function Pe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function St(t,e){return t(e={exports:{}},e.exports),e.exports}var Dt=function(t){return t&&t.Math==Math&&t},B=Dt(typeof globalThis=="object"&&globalThis)||Dt(typeof window=="object"&&window)||Dt(typeof self=="object"&&self)||Dt(typeof Y=="object"&&Y)||(function(){return this})()||Function("return this")(),G=function(t){try{return!!t()}catch{return!0}},X=!G((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),sn={}.propertyIsEnumerable,an=Object.getOwnPropertyDescriptor,_e={f:an&&!sn.call({1:2},1)?function(t){var e=an(this,t);return!!e&&e.enumerable}:sn},dt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ei={}.toString,at=function(t){return Ei.call(t).slice(8,-1)},Ti="".split,oi=G((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return at(t)=="String"?Ti.call(t,""):Object(t)}:Object,Nt=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t},$=function(t){return oi(Nt(t))},w=function(t){return typeof t=="object"?t!==null:typeof t=="function"},Xt=function(t,e){if(!w(t))return t;var n,i;if(e&&typeof(n=t.toString)=="function"&&!w(i=n.call(t))||typeof(n=t.valueOf)=="function"&&!w(i=n.call(t))||!e&&typeof(n=t.toString)=="function"&&!w(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},Yi={}.hasOwnProperty,v=function(t,e){return Yi.call(t,e)},Je=B.document,Ni=w(Je)&&w(Je.createElement),ci=function(t){return Ni?Je.createElement(t):{}},si=!X&&!G((function(){return Object.defineProperty(ci("div"),"a",{get:function(){return 7}}).a!=7})),un=Object.getOwnPropertyDescriptor,Kt={f:X?un:function(t,e){if(t=$(t),e=Xt(e,!0),si)try{return un(t,e)}catch{}if(v(t,e))return dt(!_e.f.call(t,e),t[e])}},A=function(t){if(!w(t))throw TypeError(String(t)+" is not an object");return t},ln=Object.defineProperty,W={f:X?ln:function(t,e,n){if(A(t),e=Xt(e,!0),A(n),si)try{return ln(t,e,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},k=X?function(t,e,n){return W.f(t,e,dt(1,n))}:function(t,e,n){return t[e]=n,t},De=function(t,e){try{k(B,t,e)}catch{B[t]=e}return e},ft=B["__core-js_shared__"]||De("__core-js_shared__",{}),Ki=Function.toString;typeof ft.inspectSource!="function"&&(ft.inspectSource=function(t){return Ki.call(t)});var ie,kt,re,ai=ft.inspectSource,dn=B.WeakMap,Oi=typeof dn=="function"&&/native code/.test(ai(dn)),It=St((function(t){(t.exports=function(e,n){return ft[e]||(ft[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.8.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),zi=0,ji=Math.random(),Vt=function(t){return"Symbol("+String(t===void 0?"":t)+")_"+(++zi+ji).toString(36)},fn=It("keys"),fe=function(t){return fn[t]||(fn[t]=Vt(t))},wt={},Pi=B.WeakMap;if(Oi){var pt=ft.state||(ft.state=new Pi),_i=pt.get,Di=pt.has,Mi=pt.set;ie=function(t,e){return e.facade=t,Mi.call(pt,t,e),e},kt=function(t){return _i.call(pt,t)||{}},re=function(t){return Di.call(pt,t)}}else{var xt=fe("state");wt[xt]=!0,ie=function(t,e){return e.facade=t,k(t,xt,e),e},kt=function(t){return v(t,xt)?t[xt]:{}},re=function(t){return v(t,xt)}}var Ie,K={set:ie,get:kt,has:re,enforce:function(t){return re(t)?kt(t):ie(t,{})},getterFor:function(t){return function(e){var n;if(!w(e)||(n=kt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},D=St((function(t){var e=K.get,n=K.enforce,i=String(String).split("String");(t.exports=function(r,s,o,a){var c,u=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;
1typeof o=="function"&&(typeof s!="string"||v(o,"name")||k(o,"name",s),(c=n(o)).source||(c.source=i.join(typeof s=="string"?s:""))),r!==B?(u?!f&&r[s]&&(l=!0):delete r[s],l?r[s]=o:k(r,s,o)):l?r[s]=o:De(s,o)})(Function.prototype,"toString",(function(){return typeof this=="function"&&e(this).source||ai(this)}))})),it=B,gn=function(t){return typeof t=="function"?t:void 0},Ot=function(t,e){return arguments.length<2?gn(it[t])||gn(B[t]):it[t]&&it[t][e]||B[t]&&B[t][e]},qi=Math.ceil,$i=Math.floor,Me=function(t){return isNaN(t=+t)?0:(t>0?$i:qi)(t)},tr=Math.min,Gt=function(t){return t>0?tr(Me(t),9007199254740991):0},er=Math.max,nr=Math.min,hn=function(t){return function(e,n,i){var r,s=$(e),o=Gt(s.length),a=(function(c,u){var l=Me(c);return l<0?er(l+u,0):nr(l,u)})(i,o);if(t&&n!=n){for(;o>a;)if((r=s[a++])!=r)return!0}else for(;o>a;a++)if((t||a in s)&&s[a]===n)return t||a||0;return!t&&-1}},ui={includes:hn(!0),indexOf:hn(!1)},ir=ui.indexOf,li=function(t,e){var n,i=$(t),r=0,s=[];for(n in i)!v(wt,n)&&v(i,n)&&s.push(n);for(;e.length>r;)v(i,n=e[r++])&&(~ir(s,n)||s.push(n));return s},oe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rr=oe.concat("length","prototype"),qe={f:Object.getOwnPropertyNames||function(t){return li(t,rr)}},te={f:Object.getOwnPropertySymbols},or=Ot("Reflect","ownKeys")||function(t){var e=qe.f(A(t)),n=te.f;return n?e.concat(n(t)):e},di=function(t,e){for(var n=or(e),i=W.f,r=Kt.f,s=0;s<n.length;s++){var o=n[s];v(t,o)||i(t,o,r(e,o))}},cr=/#|\.prototype\./,zt=function(t,e){var n=ar[sr(t)];return n==lr||n!=ur&&(typeof e=="function"?G(e):!!e)},sr=zt.normalize=function(t){return String(t).replace(cr,".").toLowerCase()},ar=zt.data={},ur=zt.NATIVE="N",lr=zt.POLYFILL="P",He=zt,dr=Kt.f,Q=function(t,e){var n,i,r,s,o,a=t.target,c=t.global,u=t.stat;if(n=c?B:u?B[a]||De(a,{}):(B[a]||{}).prototype)for(i in e){if(s=e[i],r=t.noTargetGet?(o=dr(n,i))&&o.value:n[i],!He(c?i:a+(u?".":"#")+i,t.forced)&&r!==void 0){if(typeof s==typeof r)continue;di(s,r)}(t.sham||r&&r.sham)&&k(s,"sham",!0),D(n,i,s,t)}},_=!!Object.getOwnPropertySymbols&&!G((function(){return!String(Symbol())})),fi=_&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mt=It("wks"),Et=B.Symbol,fr=fi?Et:Et&&Et.withoutSetter||Vt,S=function(t){return v(Mt,t)||(_&&v(Et,t)?Mt[t]=Et[t]:Mt[t]=fr("Symbol."+t)),Mt[t]},gr=S("match"),gi=function(t){if((function(e){var n;return w(e)&&((n=e[gr])!==void 0?!!n:at(e)=="RegExp")})(t))throw TypeError("The method doesn't accept regular expressions");return t},hr=S("match"),hi=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[hr]=!1,"/./"[t](e)}catch{}}return!1},Ir=Kt.f,In="".startsWith,pr=Math.min,Ii=hi("startsWith"),yr=!(Ii||(Ie=Ir(String.prototype,"startsWith"),!Ie||Ie.writable));Q({target:"String",proto:!0,forced:!yr&&!Ii},{startsWith:function(t){var e=String(Nt(this));gi(t);var n=Gt(pr(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return In?In.call(e,i,n):e.slice(n,n+i.length)===i}});var yt,ce,pi=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t},jt=function(t,e,n){if(pi(t),e===void 0)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,s){return t.call(e,i,r,s)}}return function(){return t.apply(e,arguments)}},br=Function.call,$e=function(t,e,n){return jt(br,B[t].prototype[e],n)},se=($e("String","startsWith"),Array.isArray||function(t){return at(t)=="Array"}),Pt=function(t){return Object(Nt(t))},ae=function(t,e,n){var i=Xt(e);i in t?W.f(t,i,dt(0,n)):t[i]=n},mr=S("species"),yi=function(t,e){var n;return se(t)&&(typeof(n=t.constructor)!="function"||n!==Array&&!se(n.prototype)?w(n)&&(n=n[mr])===null&&(n=void 0):n=void 0),new(n===void 0?Array:n)(e===0?0:e)},pe=Ot("navigator","userAgent")||"",pn=B.process,yn=pn&&pn.versions,bn=yn&&yn.v8;bn?ce=(yt=bn.split("."))[0]+yt[1]:pe&&(!(yt=pe.match(/Edge\/(\d+)/))||yt[1]>=74)&&(yt=pe.match(/Chrome\/(\d+)/))&&(ce=yt[1]);var bi=ce&&+ce,vr=S("species"),mi=S("isConcatSpreadable"),Br=bi>=51||!G((function(){var t=[];return t[mi]=!1,t.concat()[0]!==t})),Cr=(function(t){return bi>=51||!G((function(){var e=[];return(e.constructor={})[vr]=function(){return{foo:1}
1},e[t](Boolean).foo!==1}))})("concat"),Fr=function(t){if(!w(t))return!1;var e=t[mi];return e!==void 0?!!e:se(t)};Q({target:"Array",proto:!0,forced:!Br||!Cr},{concat:function(t){var e,n,i,r,s,o=Pt(this),a=yi(o,0),c=0;for(e=-1,i=arguments.length;e<i;e++)if(Fr(s=e===-1?o:arguments[e])){if(c+(r=Gt(s.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,c++)n in s&&ae(a,c,s[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ae(a,c++,s)}return a.length=c,a}});var vi={};vi[S("toStringTag")]="z";var tn=String(vi)==="[object z]",Ur=S("toStringTag"),Vr=at((function(){return arguments})())=="Arguments",ge=tn?at:function(t){var e,n,i;return t===void 0?"Undefined":t===null?"Null":typeof(n=(function(r,s){try{return r[s]}catch{}})(e=Object(t),Ur))=="string"?n:Vr?at(e):(i=at(e))=="Object"&&typeof e.callee=="function"?"Arguments":i},Zr=tn?{}.toString:function(){return"[object "+ge(this)+"]"};tn||D(Object.prototype,"toString",Zr,{unsafe:!0});var ye,en=Object.keys||function(t){return li(t,oe)},Sr=X?Object.defineProperties:function(t,e){A(t);for(var n,i=en(e),r=i.length,s=0;r>s;)W.f(t,n=i[s++],e[n]);return t},Xr=Ot("document","documentElement"),Bi=fe("IE_PROTO"),be=function(){},mn=function(t){return"<script>"+t+"<\/script>"},ee=function(){try{ye=document.domain&&new ActiveXObject("htmlfile")}catch{}var t,e;ee=ye?(function(i){i.write(mn("")),i.close();var r=i.parentWindow.Object;return i=null,r})(ye):((e=ci("iframe")).style.display="none",Xr.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(mn("document.F=Object")),t.close(),t.F);for(var n=oe.length;n--;)delete ee.prototype[oe[n]];return ee()};wt[Bi]=!0;var rt=Object.create||function(t,e){var n;return t!==null?(be.prototype=A(t),n=new be,be.prototype=null,n[Bi]=t):n=ee(),e===void 0?n:Sr(n,e)},vn=qe.f,wr={}.toString,Bn=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ci={f:function(t){return Bn&&wr.call(t)=="[object Window]"?(function(e){try{return vn(e)}catch{return Bn.slice()}})(t):vn($(t))}},Fi={f:S},Gr=W.f,x=function(t){var e=it.Symbol||(it.Symbol={});v(e,t)||Gr(e,t,{value:Fi.f(t)})},Qr=W.f,Cn=S("toStringTag"),ut=function(t,e,n){t&&!v(t=n?t:t.prototype,Cn)&&Qr(t,Cn,{configurable:!0,value:e})},Fn=[].push,xr=function(t){var e=t==1,n=t==2,i=t==3,r=t==4,s=t==6,o=t==7,a=t==5||s;return function(c,u,l,f){for(var d,h,p=Pt(c),b=oi(p),I=jt(u,l,3),g=Gt(b.length),y=0,m=f||yi,V=e?m(c,g):n||o?m(c,0):void 0;g>y;y++)if((a||y in b)&&(h=I(d=b[y],y,p),t))if(e)V[y]=h;else if(h)switch(t){case 3:return!0;case 5:return d;case 6:return y;case 2:Fn.call(V,d)}else switch(t){case 4:return!1;case 7:Fn.call(V,d)}return s?-1:i||r?r:V}},he={forEach:xr(0)}.forEach,R=fe("hidden"),Un=S("toPrimitive"),Rr=K.set,Vn=K.getterFor("Symbol"),E=Object.prototype,J=B.Symbol,Rt=Ot("JSON","stringify"),Ui=Kt.f,nt=W.f,Vi=Ci.f,Ar=_e.f,M=It("symbols"),_t=It("op-symbol
1s"),me=It("string-to-symbol-registry"),ve=It("symbol-to-string-registry"),Wr=It("wks"),Be=B.QObject,Ce=!Be||!Be.prototype||!Be.prototype.findChild,ke=X&&G((function(){return rt(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a!=7}))?function(t,e,n){var i=Ui(E,e);i&&delete E[e],nt(t,e,n),i&&t!==E&&nt(E,e,i)}:nt,Fe=function(t,e){var n=M[t]=rt(J.prototype);return Rr(n,{type:"Symbol",tag:t,description:e}),X||(n.description=e),n},Ue=fi?function(t){return typeof t=="symbol"}:function(t){return Object(t)instanceof J},ue=function(t,e,n){t===E&&ue(_t,e,n),A(t);var i=Xt(e,!0);return A(n),v(M,i)?(n.enumerable?(v(t,R)&&t[R][i]&&(t[R][i]=!1),n=rt(n,{enumerable:dt(0,!1)})):(v(t,R)||nt(t,R,dt(1,{})),t[R][i]=!0),ke(t,i,n)):nt(t,i,n)},Zn=function(t,e){A(t);var n=$(e),i=en(n).concat(Te(n));return he(i,(function(r){X&&!Ee.call(n,r)||ue(t,r,n[r])})),t},Ee=function(t){var e=Xt(t,!0),n=Ar.call(this,e);return!(this===E&&v(M,e)&&!v(_t,e))&&(!(n||!v(this,e)||!v(M,e)||v(this,R)&&this[R][e])||n)},Sn=function(t,e){var n=$(t),i=Xt(e,!0);if(n!==E||!v(M,i)||v(_t,i)){var r=Ui(n,i);return!r||!v(M,i)||v(n,R)&&n[R][i]||(r.enumerable=!0),r}},Xn=function(t){var e=Vi($(t)),n=[];return he(e,(function(i){v(M,i)||v(wt,i)||n.push(i)})),n},Te=function(t){var e=t===E,n=Vi(e?_t:$(t)),i=[];return he(n,(function(r){!v(M,r)||e&&!v(E,r)||i.push(M[r])})),i};if(_||(D((J=function(){if(this instanceof J)throw TypeError("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,e=Vt(t),n=function(i){this===E&&n.call(_t,i),v(this,R)&&v(this[R],e)&&(this[R][e]=!1),ke(this,e,dt(1,i))};return X&&Ce&&ke(E,e,{configurable:!0,set:n}),Fe(e,t)}).prototype,"toString",(function(){return Vn(this).tag})),D(J,"withoutSetter",(function(t){return Fe(Vt(t),t)})),_e.f=Ee,W.f=ue,Kt.f=Sn,qe.f=Ci.f=Xn,te.f=Te,Fi.f=function(t){return Fe(S(t),t)},X&&(nt(J.prototype,"description",{configurable:!0,get:function(){return Vn(this).description}}),D(E,"propertyIsEnumerable",Ee,{unsafe:!0}))),Q({global:!0,wrap:!0,forced:!_,sham:!_},{Symbol:J}),he(en(Wr),(function(t){x(t)})),Q({target:"Symbol",stat:!0,forced:!_},{for:function(t){var e=String(t);if(v(me,e))return me[e];var n=J(e);return me[e]=n,ve[n]=e,n},keyFor:function(t){if(!Ue(t))throw TypeError(t+" is not a symbol");if(v(ve,t))return ve[t]},useSetter:function(){Ce=!0},useSimple:function(){Ce=!1}}),Q({target:"Object",stat:!0,forced:!_,sham:!X},{create:function(t,e){return e===void 0?rt(t):Zn(rt(t),e)},defineProperty:ue,defineProperties:Zn,getOwnPropertyDescriptor:Sn}),Q({target:"Object",stat:!0,forced:!_},{getOwnPropertyNames:Xn,getOwnPropertySymbols:Te}),Q({target:"Object",stat:!0,forced:G((function(){te.f(1)}))},{getOwnPropertySymbols:function(t){return te.f(Pt(t))}}),Rt){var Lr=!_||G((function(){var t=J();return Rt([t])!="[null]"||Rt({a:t})!="{}"||Rt(Object(t))!="{}"}));Q({target:"JSON",stat:!0,forced:Lr},{stringify:function(t,e,n){for(var i,r=[t],s=1;arguments.length>s;)r.push(arguments[s++]);if(i=e,(w(e)||t!==void 0)&&!Ue(t))return se(e)||(e=function(o,a){if(typeof i=="function"&&(a=i.call(this,o,a)),!Ue(a))return a}),r[1]=e,Rt.apply(null,r)}})}J.prototype[Un]||k(J.prototype,Un,J.prototype.valueOf),ut(J,"Symbol"),wt[R]=!0,x("asyncIterator");var Jr=W.f,z=B.Symbol;if(X&&typeof z=="function"&&(!("description"in z.prototype)||z().description!==void 0)){var wn={},At=function(){var t=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),e=this instanceof At?new z(t):t===void 0?z():z(t);return t===""&&(wn[e]=!0),e};di(At,z);var Ve=At.prototype=z.prototype;Ve.constructor=At;var Hr=Ve.toString,kr=String(z("test"))=="Symbol(test)",Er=/^Symbol\((.*)\)[^)]+$/;Jr(Ve,"description",{configurable:!0,get:function(){var t=w(this)?this.valueOf():this,e=Hr.call(t);if(v(wn,t))return"";var n=kr?e.slice(7,-1):e.replace(Er,"$1");return n===""?void 0:n}}),Q({global:!0,forced:!0},{Symbol:At})}x("hasInstance"),x("isConcatSpreadable"),x("iterator"),x("match"),x("matchAll"),x("replace"),x("search"),x("species"),x("split"),x("toPrimitive"),x("toStringTag"),x("unscopables"),ut(B.JSON,"JSON",!0),ut(Math,"Math",!0),Q({global:!0},{Reflect:{}}),ut(B.Reflect,"Reflect",!0);it.Symbol;var Bt,Gn,Qn,Tr=function(t){return function(e,n){var i,r,s=String(Nt(e)),o=Me(n),a=s.length;return o<0||o>=a?t?"":void 0:(i=s.charCodeAt(o))<55296||i>56319||o+1===a||(r=s.charCodeAt(o+1))<56320||r>57343?t?s.charAt(o):i:t?s.slice(o,o+2):r-56320+(i-55296<<10)+65536}},Yr={charAt:Tr(!0)},Nr=!G((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xn=fe("IE_PROTO"),Kr=Object.prototype,gt=Nr?Object.getPrototypeOf:function(t){return t=Pt(t),v(t,xn)?t[xn]:typeof t.constructor=="function"&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Kr:null},Rn=S("iterator"),Zi=!1;[].keys&&("next"in(Qn=[].keys())?(Gn=gt(gt(Qn)))!==Object.prototype&&(Bt=Gn):Zi=!0),Bt==null&&(Bt={}),v(Bt,Rn)||k(Bt,Rn,(function(){return this}));var nn={IteratorPrototype:Bt,BUGGY_SAFARI_ITERATORS:Zi},Zt={},Or=nn.IteratorPrototype,zr=function(){return this},q=Object.setPrototypeOf||("__proto__"in{}?(function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch{}return function(i,r){return A(i),(function(s){if(!w(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype")})(r),e?t.call(i,r):i.__proto__=r,i}})():void 0),Ze=nn.IteratorPrototype,qt=nn.BUGGY_SAFARI_ITERATORS,Wt=S("iterator"),jr=function(){return this},rn=function(t,e,n,i,r,s,o){(function(g,y,m){var V=y+" Iterator";g.prototype=rt(Or,{next:dt(1,m)}),ut(g,V,!1),Zt[V]=zr})(n,e,i);var a,c,u,l=function(g){if(g===r&&b)return b;if(!qt&&g in h)return h[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,h=t.prototype,p=h[Wt]||h["@@iterator"]||r&&h[r],b=!qt&&p||l(r),I=e=="Array"&&h.entries||p;if(I&&(a=gt(I.call(new t)),Ze!==Object.prototype&&a.next&&(gt(a)!==Ze&&(q?q
1(a,Ze):typeof a[Wt]!="function"&&k(a,Wt,jr)),ut(a,f,!0))),r=="values"&&p&&p.name!=="values"&&(d=!0,b=function(){return p.call(this)}),h[Wt]!==b&&k(h,Wt,b),Zt[e]=b,r)if(c={values:l("values"),keys:s?b:l("keys"),entries:l("entries")},o)for(u in c)(qt||d||!(u in h))&&D(h,u,c[u]);else Q({target:e,proto:!0,forced:qt||d},c);return c},Pr=Yr.charAt,_r=K.set,Dr=K.getterFor("String Iterator");rn(String,"String",(function(t){_r(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Dr(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=Pr(n,i),e.index+=t.length,{value:t,done:!1})}));var Ye=function(t){var e=t.return;if(e!==void 0)return A(e.call(t)).value},Mr=function(t,e,n,i){try{return i?e(A(n)[0],n[1]):e(n)}catch(r){throw Ye(t),r}},qr=S("iterator"),$r=Array.prototype,Si=function(t){return t!==void 0&&(Zt.Array===t||$r[qr]===t)},to=S("iterator"),Xi=function(t){if(t!=null)return t[to]||t["@@iterator"]||Zt[ge(t)]},wi=S("iterator"),Gi=!1;try{var eo=0,An={next:function(){return{done:!!eo++}},return:function(){Gi=!0}};An[wi]=function(){return this},Array.from(An,(function(){throw 2}))}catch{}var Qi=function(t,e){if(!Gi)return!1;var n=!1;try{var i={};i[wi]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch{}return n},no=!Qi((function(t){Array.from(t)}));Q({target:"Array",stat:!0,forced:no},{from:function(t){var e,n,i,r,s,o,a=Pt(t),c=typeof this=="function"?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,f=l!==void 0,d=Xi(a),h=0;if(f&&(l=jt(l,u>2?arguments[2]:void 0,2)),d==null||c==Array&&Si(d))for(n=new c(e=Gt(a.length));e>h;h++)o=f?l(a[h],h):a[h],ae(n,h,o);else for(s=(r=d.call(a)).next,n=new c;!(i=s.call(r)).done;h++)o=f?Mr(r,l,[i.value,h],!0):i.value,ae(n,h,o);return n.length=h,n}});it.Array.from;var H,io=typeof ArrayBuffer<"u"&&typeof DataView<"u",ro=W.f,le=B.Int8Array,Ne=le&&le.prototype,Wn=B.Uint8ClampedArray,Ln=Wn&&Wn.prototype,Ft=le&&gt(le),N=Ne&&gt(Ne),xi=Object.prototype,Jn=xi.isPrototypeOf,Hn=S("toStringTag"),kn=Vt("TYPED_ARRAY_TAG"),ht=io&&!!q&&ge(B.opera)!=="Opera",ot={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},oo=function(t){return w(t)&&v(ot,ge(t))};for(H in ot)B[H]||(ht=!1);if((!ht||typeof Ft!="function"||Ft===Function.prototype)&&(Ft=function(){throw TypeError("Incorrect invocation")},ht))for(H in ot)B[H]&&q(B[H],Ft);if((!ht||!N||N===xi)&&(N=Ft.prototype,ht))for(H in ot)B[H]&&q(B[H].prototype,N);if(ht&&gt(Ln)!==N&&q(Ln,N),X&&!v(N,Hn))for(H in ro(N,Hn,{get:function(){return w(this)?this[kn]:void 0}}),ot)B[H]&&k(B[H],kn,H);var co=function(t){if(oo(t))return t;throw TypeError("Target is not a typed array")},so=function(t){if(q){if(Jn.call(Ft,t))return t}else for(var e in ot)if(v(ot,H)){var n=B[e];if(n&&(t===n||Jn.call(n,t)))return t}throw TypeError("Target is not a typed array constructor")},ao=function(t,e,n){if(X){if(n)for(var i in ot){var r=B[i];r&&v(r.prototype,t)&&delete r.prototype[t]}N[t]&&!n||D(N,t,n?e:ht&&Ne[t]||e)}},uo=S("species"),lo=co,fo=so,go=[].slice;ao("slice",(function(t,e){for(var n=go.call(lo(this),t,e),i=(function(a,c){var u,l=A(a).constructor;return l===void 0||(u=A(l)[uo])==null?c:pi(u)})(this,this.constructor),r=0,s=n.length,o=new(fo(i))(s);s>r;)o[r]=n[r++];return o}),G((function(){new Int8Array(1).slice()})));var Ke=S("unscopables"),Oe=Array.prototype;Oe[Ke]==null&&W.f(Oe,Ke,{configurable:!0,value:rt(null)});var ne=function(t){Oe[Ke][t]=!0},ho=Object.defineProperty,Se={},En=function(t){throw t},Io=ui.includes,po=(function(t,e){if(v(Se,t))return Se[t];e||(e={});var n=[][t],i=!!v(e,"ACCESSORS")&&e.ACCESSORS,r=v(e,0)?e[0]:En,s=v(e,1)?e[1]:void 0;return Se[t]=!!n&&!G((function(){if(i&&!X)return!0;var o={length:-1};i?ho(o,1,{enumerable:!0,get:En}):o[1]=1,n.call(o,r,s)}))})("indexOf",{ACCESSORS:!0,1:0});Q({target:"Array",proto:!0,forced:!po},{includes:function(t){return Io(this,t,arguments.length>1?arguments[1]:void 0)}}),ne("includes");$e("Array","includes");Q({target:"String",proto:!0,forced:!hi("includes")},{includes:function(t){return!!~String(Nt(this)).indexOf(gi(t),arguments.length>1?arguments[1]:void 0)}});$e("String","includes");var yo=!G((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ut=St((function(t){var e=W.f,n=Vt("meta"),i=0,r=Object.isExtensible||function(){return!0},s=function(a){e(a,n,{value:{objectID:"O"+ ++i,weakData:{}}})},o=t.exports={REQUIRED:!1,fastKey:function(a,c){if(!w(a))return typeof a=="symbol"?a:(typeof a=="str
1ing"?"S":"P")+a;if(!v(a,n)){if(!r(a))return"F";if(!c)return"E";s(a)}return a[n].objectID},getWeakData:function(a,c){if(!v(a,n)){if(!r(a))return!0;if(!c)return!1;s(a)}return a[n].weakData},onFreeze:function(a){return yo&&o.REQUIRED&&r(a)&&!v(a,n)&&s(a),a}};wt[n]=!0})),Lt=(Ut.REQUIRED,Ut.fastKey,Ut.getWeakData,Ut.onFreeze,function(t,e){this.stopped=t,this.result=e}),Tn=function(t,e,n){var i,r,s,o,a,c,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=jt(e,l,1+f+h),b=function(g){return i&&Ye(i),new Lt(!0,g)},I=function(g){return f?(A(g),h?p(g[0],g[1],b):p(g[0],g[1])):h?p(g,b):p(g)};if(d)i=t;else{if(typeof(r=Xi(t))!="function")throw TypeError("Target is not iterable");if(Si(r)){for(s=0,o=Gt(t.length);o>s;s++)if((a=I(t[s]))&&a instanceof Lt)return a;return new Lt(!1)}i=r.call(t)}for(c=i.next;!(u=c.call(i)).done;){try{a=I(u.value)}catch(g){throw Ye(i),g}if(typeof a=="object"&&a&&a instanceof Lt)return a}return new Lt(!1)},Yn=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},Nn=function(t,e,n){for(var i in e)D(t,i,e[i],n);return t},Kn=S("species"),bo=W.f,On=Ut.fastKey,zn=K.set,Xe=K.getterFor,jn=((function(t,e,n){var i=t.indexOf("Map")!==-1,r=t.indexOf("Weak")!==-1,s=i?"set":"add",o=B[t],a=o&&o.prototype,c=o,u={},l=function(I){var g=a[I];D(a,I,I=="add"?function(y){return g.call(this,y===0?0:y),this}:I=="delete"?function(y){return!(r&&!w(y))&&g.call(this,y===0?0:y)}:I=="get"?function(y){return r&&!w(y)?void 0:g.call(this,y===0?0:y)}:I=="has"?function(y){return!(r&&!w(y))&&g.call(this,y===0?0:y)}:function(y,m){return g.call(this,y===0?0:y,m),this})};if(He(t,typeof o!="function"||!(r||a.forEach&&!G((function(){new o().entries().next()})))))c=n.getConstructor(e,t,i,s),Ut.REQUIRED=!0;else if(He(t,!0)){var f=new c,d=f[s](r?{}:-0,1)!=f,h=G((function(){f.has(1)})),p=Qi((function(I){new o(I)})),b=!r&&G((function(){for(var I=new o,g=5;g--;)I[s](g,g);return!I.has(-0)}));p||((c=e((function(I,g){Yn(I,c,t);var y=(function(m,V,T){var tt,O;return q&&typeof(tt=V.constructor)=="function"&&tt!==T&&w(O=tt.prototype)&&O!==T.prototype&&q(m,O),m})(new o,I,c);return g!=null&&Tn(g,y[s],{that:y,AS_ENTRIES:i}),y}))).prototype=a,a.constructor=c),(h||b)&&(l("delete"),l("has"),i&&l("get")),(b||d)&&l(s),r&&a.clear&&delete a.clear}u[t]=c,Q({global:!0,forced:c!=o},u),ut(c,t),r||n.setStrong(c,t,i)})("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,e,n,i){var r=t((function(c,u){Yn(c,r,e),zn(c,{type:e,index:rt(null),first:void 0,last:void 0,size:0}),X||(c.size=0),u!=null&&Tn(u,c[i],{that:c,AS_ENTRIES:n})})),s=Xe(e),o=function(c,u,l){var f,d,h=s(c),p=a(c,u);return p?p.value=l:(h.last=p={index:d=On(u,!0),key:u,value:l,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=p),f&&(f.next=p),X?h.size++:c.size++,d!=="F"&&(h.index[d]=p)),c},a=function(c,u){var l,f=s(c),d=On(u);if(d!=="F")return f.index[d];for(l=f.first;l;l=l.next)if(l.key==u)return l};return Nn(r.prototype,{clear:function(){for(var c=s(this),u=c.index,l=c.first;l;)l.removed=!0,l.previous&&(l.previous=l.previous.next=void 0),delete u[l.index],l=l.next;c.first=c.last=void 0,X?c.size=0:this.size=0},delete:function(c){var u=this,l=s(u),f=a(u,c);if(f){var d=f.next,h=f.previous;delete l.index[f.index],f.removed=!0,h&&(h.next=d),d&&(d.previous=h),l.first==f&&(l.first=d),l.last==f&&(l.last=h),X?l.size--:u.size--}return!!f},forEach:function(c){for(var u,l=s(this),f=jt(c,arguments.length>1?arguments[1]:void 0,3);u=u?u.next:l.first;)for(f(u.value,u.key,this);u&&u.removed;)u=u.previous},has:function(c){return!!a(this,c)}}),Nn(r.prototype,n?{get:function(c){var u=a(this,c);return u&&u.value},set:function(c,u){return o(this,c===0?0:c,u)}}:{add:function(c){return o(this,c=c===0?0:c,c)}}),X&&bo(r.prototype,"size",{get:function(){return s(this).size}}),r},setStrong:function(t,e,n){var i=e+" Iterator",r=Xe(e),s=Xe(i);rn(t,e,(function(o,a){zn(this,{type:i,target:o,state:r(o),kind:a,last:void 0})}),(function(){for(var o=s(this),a=o.kind,c=o.last;c&&c.removed;)c=c.previous;return o.target&&(o.last=c=c?c.next:o.state.first)?a=="keys"?{value:c.key,done:!1}:a=="values"?{value:c.value,done:!1}:{value:[c.key,c.value],done:!1}:(o.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),(function(o){var a=Ot(o),c=W.f;X&&a&&!a[Kn]&&c(a,Kn,{configurable:!0,get:function(){return this}})})(e)}}),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),mo=K.set,vo=K.getterFor("Array Iterator"),Ht=rn(Array,"Array",(function(t,e){mo(this,{type:"Array Iterator",target:$(t),index:0,kind:e})}),(function(){var t=vo(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:i,done:!1}:n=="values"?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}}),"values");Zt.Arguments=Zt.Array,ne("keys"),ne("values"),ne("entries");var we=S("iterator"),Pn=S("toStringTag"),Ge=Ht.values;for(var Qe in jn){var _n=B[Qe],j=_n&&_n.prototype;if(j){if(j[we]!==Ge)try{k(j,we,Ge)}catch{j[we]=Ge}if(j[Pn]||k(j,Pn,Qe),jn[Qe]){for(var bt in Ht)if(j[bt]!==Ht[bt])try{k(j,bt,Ht[bt])}catch{j[bt]=Ht[bt]}}}}it.Set;function Ri(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))}function Ai(t){return new this((function(e,n){if(!t||t.length===void 0)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(t);if(i.length===0)return e([]);var r=i.length;function s(a,c){if(c&&(typeof c=="object"||typeof c=="function")){var u=c.then;if(typeof u=="function")return void u.call(c,(function(l){s(a,l)}),(function(l){i[a]={status:"rejected",reason:l},--r==0&&e(i)}))}i[a]={status:"fulfilled",value:c},--r==0&&e(i)}for(var o=0;o<i.length;o++)s(o,i[o])}))}var Bo=setTimeout;function Dn(t){return!!(t&&t.length!==void 0)}function Co(){}function Z(t){if(!(this instanceof Z))throw new TypeError("Promises must be constructed via new");if(typeof t!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Li(t,this)}function Wi(t,e){for(;t._state===3;)t=t._value;t._state!==0?(t._handled=!0,Z._immediateFn((function(){var n=t._state===1?e.onFulfilled:e.onRejected;if(n!==null){var i;try{i=n(t._value)}catch(r){return void Tt(e.promise,r)}ze(e.promise,i)}else(t._state===1?ze:Tt)(e.promise,t._value)}))):t._deferreds.push(e)}function ze(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&(typeof e=="object"||typeof e=="function")){var n=e.then;if(e instanceof Z)return t._state=3,t._value=e,void je(t);if(typeof n=="function")return void Li((i=n,r=e,function(){i.apply(r,arguments)}),t)}t._state=1,t._value=e,je(t)}catch(s){Tt(t,s)}var i,r}function Tt(t,e){t._state=2,t._value=e,je(t)}function je(t){t._state===2&&t._deferreds.length===0&&Z._immediateFn((function(){t._handled||Z._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)Wi(t,t._deferreds[e]);t._deferreds=null}function Fo(t,e,n){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.promise=n}function Li(t,e){var n=!1;try{t((function(i){n||(n=!0,ze(e,i))}),(function(i){n||(n=!0,Tt(e,i))}))}catch(i){if(n)return;n=!0,Tt(e,i)}}Z.prototype.catch=function(t){return this.then(null,t)},Z.prototype.then=function(t,e){var n=new this.constructor(Co);return Wi(this,new Fo(t,e,n)),n},Z.prototype.finally=Ri,Z.all=function(t){return new Z((function(e,n){if(!Dn(t))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(i.length===0)return e([]);var r=i.length;function s(a,c){try{if(c&&(typeof c=="object"||typeof c=="function")){var u=c.then;if(typeof u=="function")return void u.call(c,(function(l){s(a,l)}),n)}i[a]=c,--r==0&&e(i)}catch(l){n(l)}}for(var o=0;o<i.length;o++)s(o,i[o])}))},Z.allSettled=Ai,Z.resolve=function(t){return t&&typeof t=="object"&&t.constructor===Z?t:new Z((function(e){e(t)}))}
1,Z.reject=function(t){return new Z((function(e,n){n(t)}))},Z.race=function(t){return new Z((function(e,n){if(!Dn(t))return n(new TypeError("Promise.race accepts an array"));for(var i=0,r=t.length;i<r;i++)Z.resolve(t[i]).then(e,n)}))},Z._immediateFn=typeof setImmediate=="function"&&function(t){setImmediate(t)}||function(t){Bo(t,0)},Z._unhandledRejectionFn=function(t){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var mt=(function(){if(typeof self<"u")return self;if(typeof window<"u"||typeof window<"u")return window;throw new Error("unable to locate global object")})();typeof mt.Promise!="function"?mt.Promise=Z:mt.Promise.prototype.finally?mt.Promise.allSettled||(mt.Promise.allSettled=Ai):mt.Promise.prototype.finally=Ri,(function(t){function e(){}function n(o,a){if(o=o===void 0?"utf-8":o,a=a===void 0?{fatal:!1}:a,r.indexOf(o.toLowerCase())===-1)throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+o+"') is invalid.");if(a.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function i(o){for(var a=0,c=Math.min(65536,o.length+1),u=new Uint16Array(c),l=[],f=0;;){var d=a<o.length;if(!d||f>=c-1){if(l.push(String.fromCharCode.apply(null,u.subarray(0,f))),!d)return l.join("");o=o.subarray(a),f=a=0}if((128&(d=o[a++]))==0)u[f++]=d;else if((224&d)==192){var h=63&o[a++];u[f++]=(31&d)<<6|h}else if((240&d)==224){h=63&o[a++];var p=63&o[a++];u[f++]=(31&d)<<12|h<<6|p}else(248&d)==240&&(65535<(d=(7&d)<<18|(h=63&o[a++])<<12|(p=63&o[a++])<<6|63&o[a++])&&(d-=65536,u[f++]=d>>>10&1023|55296,d=56320|1023&d),u[f++]=d)}}if(t.TextEncoder&&t.TextDecoder)return!1;var r=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(e.prototype,"encoding",{value:"utf-8"}),e.prototype.encode=function(o,a){if((a=a===void 0?{stream:!1}:a).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");a=0;for(var c=o.length,u=0,l=Math.max(32,c+(c>>>1)+7),f=new Uint8Array(l>>>3<<3);a<c;){var d=o.charCodeAt(a++);if(55296<=d&&56319>=d){if(a<c){var h=o.charCodeAt(a);(64512&h)==56320&&(++a,d=((1023&d)<<10)+(1023&h)+65536)}if(55296<=d&&56319>=d)continue}if(u+4>f.length&&(l+=8,l=(l*=1+a/o.length*2)>>>3<<3,(h=new Uint8Array(l)).set(f),f=h),(4294967168&d)==0)f[u++]=d;else{if((4294965248&d)==0)f[u++]=d>>>6&31|192;else if((4294901760&d)==0)f[u++]=d>>>12&15|224,f[u++]=d>>>6&63|128;else{if((4292870144&d)!=0)continue;f[u++]=d>>>18&7|240,f[u++]=d>>>12&63|128,f[u++]=d>>>6&63|128}f[u++]=63&d|128}}return f.slice?f.slice(0,u):f.subarray(0,u)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var s=i;typeof Buffer=="function"&&Buffer.from?s=function(o){return Buffer.from(o.buffer,o.byteOffset,o.byteLength).toString("utf-8")}:typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&(s=function(o){var a=URL.createObjectURL(new Blob([o],{type:"text/plain;charset=UTF-8"}));try{var c=new XMLHttpRequest;return c.open("GET",a,!1),c.send(),c.responseText}catch{return i(o)}finally{URL.revokeObjectURL(a)}}),n.prototype.decode=function(o,a){if((a=a===void 0?{stream:!1}:a).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return o=o instanceof Uint8Array?o:o.buffer instanceof ArrayBuffer?new Uint8Array(o.buffer):new Uint8Array(o),s(o)},t.TextEncoder=e,t.TextDecoder=n})(typeof window<"u"?window:Y),(function(){function t(I,g){if(!(I instanceof g))throw new TypeError("Cannot call a class as a function")}function e(I,g){for(var y=0;y<g.length;y++){var m=g[y];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(I,m.key,m)}}function n(I,g,y){return g&&e(I.prototype,g),I}function i(I,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(g&&g.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),g&&s(I,g)}function r(I){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(I)}
1function s(I,g){return(s=Object.setPrototypeOf||function(y,m){return y.__proto__=m,y})(I,g)}function o(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function a(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function c(I,g){return!g||typeof g!="object"&&typeof g!="function"?a(I):g}function u(I){var g=o();return function(){var y,m=r(I);if(g){var V=r(this).constructor;y=Reflect.construct(m,arguments,V)}else y=m.apply(this,arguments);return c(this,y)}}function l(I,g){for(;!Object.prototype.hasOwnProperty.call(I,g)&&(I=r(I))!==null;);return I}function f(I,g,y){return(f=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(m,V,T){var tt=l(m,V);if(tt){var O=Object.getOwnPropertyDescriptor(tt,V);return O.get?O.get.call(T):O.value}})(I,g,y||I)}var d=(function(){function I(){t(this,I),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(I,[{key:"addEventListener",value:function(g,y){g in this.listeners||(this.listeners[g]=[]),this.listeners[g].push(y)}},{key:"removeEventListener",value:function(g,y){if(g in this.listeners){for(var m=this.listeners[g],V=0,T=m.length;V<T;V++)if(m[V]===y)return void m.splice(V,1)}}},{key:"dispatchEvent",value:function(g){var y=this;if(g.type in this.listeners){for(var m=function(O){setTimeout((function(){return O.call(y,g)}))},V=this.listeners[g.type],T=0,tt=V.length;T<tt;T++)m(V[T]);return!g.defaultPrevented}}}]),I})(),h=(function(I){i(y,I);var g=u(y);function y(){var m;return t(this,y),(m=g.call(this)).listeners||d.call(a(m)),Object.defineProperty(a(m),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(m),"onabort",{value:null,writable:!0,configurable:!0}),m}return n(y,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(m){m.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,m)),f(r(y.prototype),"dispatchEvent",this).call(this,m)}}]),y})(d),p=(function(){function I(){t(this,I),Object.defineProperty(this,"signal",{value:new h,writable:!0,configurable:!0})}return n(I,[{key:"abort",value:function(){var g;try{g=new Event("abort")}catch{typeof document<"u"?document.createEvent?(g=document.createEvent("Event")).initEvent("abort",!1,!1):(g=document.createEventObject()).type="abort":g={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(g)}},{key:"toString",value:function(){return"[object AbortController]"}}]),I})();function b(I){return I.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof I.Request=="function"&&!I.Request.prototype.hasOwnProperty("signal")||!I.AbortController}typeof Symbol<"u"&&Symbol.toStringTag&&(p.prototype[Symbol.toStringTag]="AbortController",h.prototype[Symbol.toStringTag]="AbortSignal"),(function(I){b(I)&&(I.AbortController=p,I.AbortSignal=h)})(typeof self<"u"?self:Y)})();var ct=St((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=(function(){function i(){var r=this;this.locked=new Map,this.addToLocked=function(s,o){var a=r.locked.get(s);a===void 0?o===void 0?r.locked.set(s,[]):r.locked.set(s,[o]):o!==void 0&&(a.unshift(o),r.locked.set(s,a))},this.isLocked=function(s){return r.locked.has(s)},this.lock=function(s){return new Promise((function(o,a){r.isLocked(s)?r.addToLocked(s,o):(r.addToLocked(s),o())}))},this.unlock=function(s){var o=r.locked.get(s);if(o!==void 0&&o.length!==0){var a=o.pop();r.locked.set(s,o),a!==void 0&&setTimeout(a,0)}else r.locked.delete(s)}}return i.getInstance=function(){return i.instance===void 0&&(i.instance=new i),i.instance},i})();e.default=function(){return n.getInstance()}}));Pe(ct);var Uo=Pe(St((function(t,e){var n=Y&&Y.__awaiter||function(c,u,l,f){return new(l||(l=Promise))((function(d,h){function p(g){try{I(f.next(g))}catch(y){h(y)}}function b(g){try{I(f.throw(g))}catch(y){h(y)}}function I(g){g.done?d(g.value):new l((function(y){y(g.value)})).then(p,b)}I((f=f.apply(c,u||[])).next())}))},i=Y&&Y.__generator||function(c,u){var l,f,d,h,p={label:0,sent:function(){if(1&d[0])throw d[1];return d[1]},trys:[],ops:[]};return h={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function b(I){return function(g){return(function(y){if(l)throw new TypeError("Generator is already executing.");for(;p;)try{if(l=1,f&&(d=2&y[0]?f.return:y[0]?f.throw||((d=f.return)&&d.call(f),0):f.next)&&!(d=d.call(f,y[1])).done)return d;switch(f=0,d&&(y=[2&y[0],d.value]),y[0]){case 0:case 1:d=y;break;case 4:return p.label++,{value:y[1],done:!1};case 5:p.label++,f=y[1],y=[0];continue;case 7:y=p.ops.pop(),p.trys.pop();continue;default:if(d=p.trys,!((d=d.length>0&&d[d.length-1])||y[0]!==6&&y[0]!==2)){p=0;continue}if(y[0]===3&&(!d||y[1]>d[0]&&y[1]<d[3])){p.label=y[1];break}if(y[0]===6&&p.label<d[1]){p.label=d[1],d=y;break}if(d&&p.label<d[2]){p.label=d[2],p.ops.push(y);break}d[2]&&p.ops.pop(),p.trys.pop();continue}y=u.call(c,p)}catch(m){y=[6,m],f=0}finally{l=d=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}})([I,g])}}};
1Object.defineProperty(e,"__esModule",{value:!0});var r="browser-tabs-lock-key";function s(c){return new Promise((function(u){return setTimeout(u,c)}))}function o(c){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",l="",f=0;f<c;f++)l+=u[Math.floor(Math.random()*u.length)];return l}var a=(function(){function c(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+o(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(u,l){return l===void 0&&(l=5e3),n(this,void 0,void 0,(function(){var f,d,h,p,b,I;return i(this,(function(g){switch(g.label){case 0:f=Date.now()+o(4),d=Date.now()+l,h=r+"-"+u,p=window.localStorage,g.label=1;case 1:return Date.now()<d?[4,s(30)]:[3,8];case 2:return g.sent(),p.getItem(h)!==null?[3,5]:(b=this.id+"-"+u+"-"+f,[4,s(Math.floor(25*Math.random()))]);case 3:return g.sent(),p.setItem(h,JSON.stringify({id:this.id,iat:f,timeoutKey:b,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,s(30)];case 4:return g.sent(),(I=p.getItem(h))!==null&&(I=JSON.parse(I)).id===this.id&&I.iat===f?(this.acquiredIatSet.add(f),this.refreshLockWhileAcquired(h,f),[2,!0]):[3,7];case 5:return c.lockCorrector(),[4,this.waitForSomethingToChange(d)];case 6:g.sent(),g.label=7;case 7:return f=Date.now()+o(4),[3,1];case 8:return[2,!1]}}))}))},c.prototype.refreshLockWhileAcquired=function(u,l){return n(this,void 0,void 0,(function(){var f=this;return i(this,(function(d){return setTimeout((function(){return n(f,void 0,void 0,(function(){var h,p;return i(this,(function(b){switch(b.label){case 0:return[4,ct.default().lock(l)];case 1:return b.sent(),this.acquiredIatSet.has(l)?(h=window.localStorage,(p=h.getItem(u))===null?(ct.default().unlock(l),[2]):((p=JSON.parse(p)).timeRefreshed=Date.now(),h.setItem(u,JSON.stringify(p)),ct.default().unlock(l),this.refreshLockWhileAcquired(u,l),[2])):(ct.default().unlock(l),[2])}}))}))}),1e3),[2]}))}))},c.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,(function(){return i(this,(function(l){switch(l.label){case 0:return[4,new Promise((function(f){var d=!1,h=Date.now(),p=!1;function b(){if(p||(window.removeEventListener("storage",b),c.removeFromWaiting(b),clearTimeout(I),p=!0),!d){d=!0;var g=50-(Date.now()-h);g>0?setTimeout(f,g):f()}}window.addEventListener("storage",b),c.addToWaiting(b);var I=setTimeout(b,Math.max(0,u-Date.now()))}))];case 1:return l.sent(),[2]}}))}))},c.addToWaiting=function(u){this.removeFromWaiting(u),c.waiters!==void 0&&c.waiters.push(u)},c.removeFromWaiting=function(u){c.waiters!==void 0&&(c.waiters=c.waiters.filter((function(l){return l!==u})))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach((function(u){return u()}))},c.prototype.releaseLock=function(u){return n(this,void 0,void 0,(function(){return i(this,(function(l){switch(l.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,l.sent()]}}))}))},c.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,(function(){var l,f,d;return i(this,(function(h){switch(h.label){case 0:return l=window.localStorage,f=r+"-"+u,(d=l.getItem(f))===null?[2]:(d=JSON.parse(d)).id!==this.id?[3,2]:[4,ct.default().lock(d.iat)];case 1:h.sent(),this.acquiredIatSet.delete(d.iat),l.removeItem(f),ct.default().unlock(d.iat),c.notifyWaiters(),h.label=2;case 2:return[2]}}
1))}))},c.lockCorrector=function(){for(var u=Date.now()-5e3,l=window.localStorage,f=Object.keys(l),d=!1,h=0;h<f.length;h++){var p=f[h];if(p.includes(r)){var b=l.getItem(p);b!==null&&((b=JSON.parse(b)).timeRefreshed===void 0&&b.timeAcquired<u||b.timeRefreshed!==void 0&&b.timeRefreshed<u)&&(l.removeItem(p),d=!0)}}d&&c.notifyWaiters()},c.waiters=void 0,c})();e.default=a}))),Vo={timeoutInSeconds:60},Zo=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],Ji={name:"auth0-spa-js",version:"1.16.1"},Qt=(function(t){function e(n,i){var r=t.call(this,i)||this;return r.error=n,r.error_description=i,Object.setPrototypeOf(r,e.prototype),r}return Yt(e,t),e.fromPayload=function(n){return new e(n.error,n.error_description)},e})(Error),So=(function(t){function e(n,i,r,s){s===void 0&&(s=null);var o=t.call(this,n,i)||this;return o.state=r,o.appState=s,Object.setPrototypeOf(o,e.prototype),o}return Yt(e,t),e})(Qt),on=(function(t){function e(){var n=t.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,e.prototype),n}return Yt(e,t),e})(Qt),Xo=(function(t){function e(n){var i=t.call(this)||this;return i.popup=n,Object.setPrototypeOf(i,e.prototype),i}return Yt(e,t),e})(on),wo=(function(t){function e(n){var i=t.call(this,"cancelled","Popup closed")||this;return i.popup=n,Object.setPrototypeOf(i,e.prototype),i}return Yt(e,t),e})(Qt),Go=function(t,e,n){return n===void 0&&(n=60),new Promise((function(i,r){var s=window.document.createElement("iframe");s.setAttribute("width","0"),s.setAttribute("height","0"),s.style.display="none";var o,a=function(){window.document.body.contains(s)&&(window.document.body.removeChild(s),window.removeEventListener("message",o,!1))},c=setTimeout((function(){r(new on),a()}),1e3*n);o=function(u){if(u.origin==e&&u.data&&u.data.type==="authorization_response"){var l=u.source;l&&l.close(),u.data.response.error?r(Qt.fromPayload(u.data.response)):i(u.data.response),clearTimeout(c),window.removeEventListener("message",o,!1),setTimeout(a,2e3)}},window.addEventListener("message",o,!1),window.document.body.appendChild(s),s.setAttribute("src",t)}))},Qo=function(t){return new Promise((function(e,n){var i,r=setInterval((function(){t.popup&&t.popup.closed&&(clearInterval(r),clearTimeout(s),window.removeEventListener("message",i,!1),n(new wo(t.popup)))}),1e3),s=setTimeout((function(){clearInterval(r),n(new Xo(t.popup)),window.removeEventListener("message",i,!1)}),1e3*(t.timeoutInSeconds||60));i=function(o){if(o.data&&o.data.type==="authorization_response"){if(clearTimeout(s),clearInterval(r),window.removeEventListener("message",i,!1),t.popup.close(),o.data.response.error)return n(Qt.fromPayload(o.data.response));e(o.data.response)}},window.addEventListener("message",i)}))},cn=function(){return window.crypto||window.msCrypto},Hi=function(){var t=cn();return t.subtle||t.webkitSubtle},P=function(){var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",e="";return Array.from(cn().getRandomValues(new Uint8Array(43))).forEach((function(n){return e+=t[n%t.length]})),e},vt=function(t){return btoa(t)},Mn=function(t){return Object.keys(t).filter((function(e){return t[e]!==void 0})).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")},xe=function(t){return F(void 0,void 0,void 0,(function(){var e;return U(this,(function(n){switch(n.label){case 0:return e=Hi().digest({name:"SHA-256"},new TextEncoder().encode(t)),window.msCrypto?[2,new Promise((function(i,r){e.oncomplete=function(s){i(s.target.result)},e.onerror=function(s){r(s.error)},e.onabort=function(){r("The digest operation was aborted")}}))]:[4,e];case 1:return[2,n.sent()]}}))}))},qn=function(t){return(function(e){return decodeURIComponent(atob(e).split("").map((function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""))})(t.replace(/_/g,"/").replace(/-/g,"+"))},Re=function(t){var e=new Uint8Array(t);return(function(n){var i={"+":"-","/":"_","=":""};return n.replace(/[+/=]/g,(function(r){return i[r]}))}
1)(window.btoa(String.fromCharCode.apply(String,Le(Array.from(e)))))},xo=function(t,e){return F(void 0,void 0,void 0,(function(){var n,i;return U(this,(function(r){switch(r.label){case 0:return[4,(s=t,o=e,o=o||{},new Promise((function(a,c){var u=new XMLHttpRequest,l=[],f=[],d={},h=function(){return{ok:(u.status/100|0)==2,statusText:u.statusText,status:u.status,url:u.responseURL,text:function(){return Promise.resolve(u.responseText)},json:function(){return Promise.resolve(u.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([u.response]))},clone:h,headers:{keys:function(){return l},entries:function(){return f},get:function(b){return d[b.toLowerCase()]},has:function(b){return b.toLowerCase()in d}}}};for(var p in u.open(o.method||"get",s,!0),u.onload=function(){u.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(b,I,g){l.push(I=I.toLowerCase()),f.push([I,g]),d[I]=d[I]?d[I]+","+g:g})),a(h())},u.onerror=c,u.withCredentials=o.credentials=="include",o.headers)u.setRequestHeader(p,o.headers[p]);u.send(o.body||null)})))];case 1:return n=r.sent(),i={ok:n.ok},[4,n.json()];case 2:return[2,(i.json=r.sent(),i)]}var s,o}))}))},Ro=function(t,e,n){return F(void 0,void 0,void 0,(function(){var i,r;return U(this,(function(s){return i=new AbortController,e.signal=i.signal,[2,Promise.race([xo(t,e),new Promise((function(o,a){r=setTimeout((function(){i.abort(),a(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(r)}))]}))}))},Ao=function(t,e,n,i,r,s){return F(void 0,void 0,void 0,(function(){return U(this,(function(o){return[2,(a={auth:{audience:e,scope:n},timeout:r,fetchUrl:t,fetchOptions:i},c=s,new Promise((function(u,l){var f=new MessageChannel;f.port1.onmessage=function(d){d.data.error?l(new Error(d.data.error)):u(d.data)},c.postMessage(a,[f.port2])})))];var a,c}))}))},Wo=function(t,e,n,i,r,s){return s===void 0&&(s=1e4),F(void 0,void 0,void 0,(function(){return U(this,(function(o){return r?[2,Ao(t,e,n,i,s,r)]:[2,Ro(t,i,s)]}))}))};function Lo(t,e,n,i,r,s){return F(this,void 0,void 0,(function(){var o,a,c,u,l,f,d,h;return U(this,(function(p){switch(p.label){case 0:o=null,c=0,p.label=1;case 1:if(!(c<3))return[3,6];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,Wo(t,n,i,r,s,e)];case 3:return a=p.sent(),o=null,[3,6];case 4:return u=p.sent(),o=u,[3,5];case 5:return c++,[3,1];case 6:if(o)throw o.message=o.message||"Failed to fetch",o;if(l=a.json,f=l.error,d=l.error_description,h=L(l,["error","error_description"]),!a.ok)throw new Qt(f||"request_error",d||"HTTP error. Unable to fetch "+t);return[2,h]}}))}))}function $t(t,e){var n=t.baseUrl,i=t.timeout,r=t.audience,s=t.scope,o=t.auth0Client,a=L(t,["baseUrl","timeout","audience","scope","auth0Client"]);return F(this,void 0,void 0,(function(){return U(this,(function(c){switch(c.label){case 0:return[4,Lo(n+"/oauth/token",i,r||"default",s,{method:"POST",body:JSON.stringify(a),headers:{"Content-type":"application/json","Auth0-Client":btoa(JSON.stringify(o||Ji))}},e)];case 1:return[2,c.sent()]}}))}))}var Jo=function(t){return Array.from(new Set(t))},et=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Jo(t.join(" ").trim().split(/\s+/)).join(" ")},st=(function(){function t(e,n){n===void 0&&(n="@@auth0spajs@@"),this.prefix=n,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return t.prototype.toKey=function(){return this.prefix+"::"+this.client_id+"::"+this.audience+"::"+this.scope},t.fromKey=function(e){var n=de(e.split("::"),4),i=n[0],r=n[1],s=n[2];return new t({client_id:r,scope:n[3],audience:s},i)},t.fromCacheEntry=function(e){return new t({scope:e.scope,audience:e.audience,client_id:e.client_id})},t})(),Ho=(function(){function t(){}return t.prototype.set=function(e,n){localStorage.setItem(e,JSON.stringify(n))},t.prototype.get=function(e){var n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{return}},t.prototype.remove=function(e){localStorage.removeItem(e)},t.prototype.allKeys=function(){return Object.keys(window.localStorage).filter((function(e){return e.startsWith("@@auth0spajs@@")}))},t})(),ko=function(){this.enclosedCache=(function(){var t={};return{set:function(e,n){t[e]=n},get:function(e){var n=t[e];if(n)return n},remove:function(e){delete t[e]},allKeys:function(){return Object.keys(t)}}})()},Eo=(function(){function t(e,n){this.cache=e,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(n)}return t.prototype.add=function(e){var n;return F(this,void 0,void 0,(function(){var i,r;return U(this,(function(s){switch(s.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return(i=new(r.apply(Set,[void 0,((n=s.sent())===null||n===void 0?void 0:n.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:Le(i)})];case 2:return s.sent(),[2]}}))}))},t.prototype.remove=function(e){return F(this,void 0,void 0,(function(){var n,i;return U(this,(function(r){switch(r.label){case 0:return[4,this.cache.get(this.manifestKey)];
1case 1:return(n=r.sent())?((i=new Set(n.keys)).delete(e),i.size>0?[4,this.cache.set(this.manifestKey,{keys:Le(i)})]:[3,3]):[3,5];case 2:return[2,r.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 4:return[2,r.sent()];case 5:return[2]}}))}))},t.prototype.get=function(){return this.cache.get(this.manifestKey)},t.prototype.clear=function(){return this.cache.remove(this.manifestKey)},t.prototype.createManifestKeyFrom=function(e){return"@@auth0spajs@@::"+e},t})(),To=(function(){function t(e,n){this.cache=e,e.allKeys||(this.keyManifest=new Eo(this.cache,n))}return t.prototype.get=function(e,n){var i;return n===void 0&&(n=0),F(this,void 0,void 0,(function(){var r,s,o,a;return U(this,(function(c){switch(c.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=c.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(s=c.sent())?(o=this.matchExistingCacheKey(e,s),[4,this.cache.get(o)]):[2];case 3:r=c.sent(),c.label=4;case 4:return r?(a=Math.floor(Date.now()/1e3),r.expiresAt-n<a?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,6]:[3,9]):[2];case 5:return c.sent(),[2,r.body];case 6:return[4,this.cache.remove(e.toKey())];case 7:return c.sent(),[4,(i=this.keyManifest)===null||i===void 0?void 0:i.remove(e.toKey())];case 8:return c.sent(),[2];case 9:return[2,r.body]}}))}))},t.prototype.set=function(e){var n;return F(this,void 0,void 0,(function(){var i,r;return U(this,(function(s){switch(s.label){case 0:return i=new st({client_id:e.client_id,scope:e.scope,audience:e.audience}),r=this.wrapCacheEntry(e),[4,this.cache.set(i.toKey(),r)];case 1:return s.sent(),[4,(n=this.keyManifest)===null||n===void 0?void 0:n.add(i.toKey())];case 2:return s.sent(),[2]}}))}))},t.prototype.clear=function(){var e;return F(this,void 0,void 0,(function(){var n,i=this;return U(this,(function(r){switch(r.label){case 0:return[4,this.getCacheKeys()];case 1:return(n=r.sent())?(n.forEach((function(s){return F(i,void 0,void 0,(function(){return U(this,(function(o){switch(o.label){case 0:return[4,this.cache.remove(s)];case 1:return o.sent(),[2]}}))}))})),[4,(e=this.keyManifest)===null||e===void 0?void 0:e.clear()]):[2];case 2:return r.sent(),[2]}}))}))},t.prototype.clearSync=function(){var e=this,n=this.cache.allKeys();n&&n.forEach((function(i){e.cache.remove(i)}))},t.prototype.wrapCacheEntry=function(e){var n=Math.floor(Date.now()/1e3)+e.expires_in;return{body:e,expiresAt:Math.min(n,e.decodedToken.claims.exp)}},t.prototype.getCacheKeys=function(){var e;return F(this,void 0,void 0,(function(){var n;return U(this,(function(i){switch(i.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return n=(e=i.sent())===null||e===void 0?void 0:e.keys,[3,4];case 2:return[4,this.cache.allKeys()];case 3:n=i.sent(),i.label=4;case 4:return[2,n]}}))}))},t.prototype.matchExistingCacheKey=function(e,n){return n.filter((function(i){var r=st.fromKey(i),s=new Set(r.scope&&r.scope.split(" ")),o=e.scope.split(" "),a=r.scope&&o.reduce((function(c,u){return c&&s.has(u)}),!0);return r.prefix==="@@auth0spajs@@"&&r.client_id===e.client_id&&r.audience===e.audience&&a}))[0]},t})(),Yo=(function(){function t(e){this.storage=e,this.transaction=this.storage.get("a0.spajs.txs")}return t.prototype.create=function(e){this.transaction=e,this.storage.save("a0.spajs.txs",e,{daysUntilExpire:1})},t.prototype.get=function(){return this.transaction},t.prototype.remove=function(){delete this.transaction,this.storage.remove("a0.spajs.txs")},t})(),Jt=function(t){return typeof t=="number"},No=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],Ko=function(t){if(!t.id_token)throw new Error("ID token is required but missing");var e=(function(a){var c=a.split("."),u=de(c,3),l=u[0],f=u[1],d=u[2];if(c.length!==3||!l||!f||!d)throw new Error("ID token could not be decoded");var h=JSON.parse(qn(f)),p={__raw:a},b={};
1return Object.keys(h).forEach((function(I){p[I]=h[I],No.includes(I)||(b[I]=h[I])})),{encoded:{header:l,payload:f,signature:d},header:JSON.parse(qn(l)),claims:p,user:b}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'+t.iss+'", found "'+e.claims.iss+'"');if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error('Signature algorithm of "'+e.header.alg+'" is not supported. Expected the ID token to be signed with "RS256".');if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+t.aud+'" but was not one of "'+e.claims.aud.join(", ")+'"');if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'+t.aud+'", found "'+e.claims.azp+'"')}}else if(e.claims.aud!==t.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+t.aud+'" but found "'+e.claims.aud+'"');if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'+t.nonce+'", found "'+e.claims.nonce+'"')}if(t.max_age&&!Jt(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(!Jt(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Jt(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=t.leeway||60,i=new Date(Date.now()),r=new Date(0),s=new Date(0),o=new Date(0);if(o.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+n),r.setUTCSeconds(e.claims.exp+n),s.setUTCSeconds(e.claims.nbf-n),i>r)throw new Error("Expiration Time (exp) claim error in the ID token; current time ("+i+") is after expiration time ("+r+")");if(Jt(e.claims.nbf)&&i<s)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time ("+i+") is before "+s);if(Jt(e.claims.auth_time)&&i>o)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Currrent time ("+i+") is after last auth at "+o);if(t.organizationId){if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(t.organizationId!==e.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'+t.organizationId+'", found "'+e.claims.org_id+'"')}return e},lt=St((function(t,e){var n=Y&&Y.__assign||function(){return(n=Object.assign||function(c){for(var u,l=1,f=arguments.length;l<f;l++)for(var d in u=arguments[l])Object.prototype.hasOwnProperty.call(u,d)&&(c[d]=u[d]);return c}).apply(this,arguments)};function i(c,u){if(!u)return"";var l="; "+c;return u===!0?l:l+"="+u}function r(c,u,l){return encodeURIComponent(c).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return i("Expires",f.expires?f.expires.toUTCString():"")+i("Domain",f.domain)+i("Path",f.path)+i("Secure",f.secure)+i("SameSite",f.sameSite)})(l)}function s(c){for(var u={},l=c?c.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<l.length;d++){var h=l[d].split("="),p=h.slice(1).join("=");p.charAt(0)==='"'&&(p=p.slice(1,-1));
1try{u[h[0].replace(f,decodeURIComponent)]=p.replace(f,decodeURIComponent)}catch{}}return u}function o(){return s(document.cookie)}function a(c,u,l){document.cookie=r(c,u,n({path:"/"},l))}e.__esModule=!0,e.encode=r,e.parse=s,e.getAll=o,e.get=function(c){return o()[c]},e.set=a,e.remove=function(c,u){a(c,"",n(n({},u),{expires:-1}))}}));Pe(lt);lt.encode,lt.parse,lt.getAll;var Oo=lt.get,ki=lt.set,zo=lt.remove,Ct={get:function(t){var e=Oo(t);if(e!==void 0)return JSON.parse(e)},save:function(t,e,n){var i={};window.location.protocol==="https:"&&(i={secure:!0,sameSite:"none"}),i.expires=n.daysUntilExpire,ki(t,JSON.stringify(e),i)},remove:function(t){zo(t)}},jo={get:function(t){var e=Ct.get(t);return e||Ct.get("_legacy_"+t)},save:function(t,e,n){var i={};window.location.protocol==="https:"&&(i={secure:!0}),i.expires=n.daysUntilExpire,ki("_legacy_"+t,JSON.stringify(e),i),Ct.save(t,e,n)},remove:function(t){Ct.remove(t),Ct.remove("_legacy_"+t)}},Po={get:function(t){if(typeof sessionStorage<"u"){var e=sessionStorage.getItem(t);if(e!==void 0)return JSON.parse(e)}},save:function(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove:function(t){sessionStorage.removeItem(t)}};function _o(t,e,n){var i=e===void 0?null:e,r=(function(c,u){var l=atob(c);if(u){for(var f=new Uint8Array(l.length),d=0,h=l.length;d<h;++d)f[d]=l.charCodeAt(d);return String.fromCharCode.apply(null,new Uint16Array(f.buffer))}return l})(t,n!==void 0&&n),s=r.indexOf(`
2`,10)+1,o=r.substring(s)+(i?"//# sourceMappingURL="+i:""),a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}var $n,ti,ei,Ae,Do=($n="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg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gYXJndW1lbnRzW2ldO1xyXG4gICAgICAgICAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkpIHRbcF0gPSBzW3BdO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gdDtcclxuICAgIH1cclxuICAgIHJldHVybiBfX2Fzc2lnbi5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19yZXN0KHMsIGUpIHtcclxuICAgIHZhciB0ID0ge307XHJcbiAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkgJiYgZS5pbmRleE9mKHApIDwgMClcclxuICAgICAgICB0W3BdID0gc1twXTtcclxuICAgIGlmIChzICE9IG51bGwgJiYgdHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMgPT09IFwiZnVuY3Rpb25cIilcclxuICAgICAgICBmb3IgKHZhciBpID0gMCwgcCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMocyk7IGkgPCBwLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGlmIChlLmluZGV4T2YocFtpXSkgPCAwICYmIE9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChzLCBwW2ldKSlcclxuICAgICAgICAgICAgICAgIHRbcFtpXV0gPSBzW3BbaV1dO1xyXG4gICAgICAgIH1cclxuICAgIHJldHVybiB0O1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19kZWNvcmF0ZShkZWNvcmF0b3JzLCB0YXJnZXQsIGtleSwgZGVzYykge1xyXG4gICAgdmFyIGMgPSBhcmd1bWVudHMubGVuZ3RoLCByID0gYyA8IDMgPyB0YXJnZXQgOiBkZXNjID09PSBudWxsID8gZGVzYyA9IE9iamVjd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aW4gbSkgaWYgKCFleHBvcnRzLmhhc093blByb3BlcnR5KHApKSBleHBvcnRzW3BdID0gbVtwXTtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIF9fdmFsdWVzKG8pIHtcclxuICAgIHZhciBtID0gdHlwZW9mIFN5bWJvbCA9PT0gXCJmdW5jdGlvblwiICYmIG9bU3ltYm9sLml0ZXJhdG9yXSwgaSA9IDA7XHJcbiAgICBpZiAobSkgcmV0dXJuIG0uY2FsbChvKTtcclxuICAgIHJldHVybiB7XHJcbiAgICAgICAgbmV4dDogZnVuY3Rpb24gKCkge1xyXG4gICAgICAgICAgICBpZiAobyAmJiBpID49IG8ubGVuZ3RoKSBvID0gdm9pZCAwO1xyXG4gICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07XHJcbiAgICAgICAgfVxyXG4gICAgfTtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIF9fcmVhZChvLCBuKSB7XHJcbiAgICB2YXIgbSA9IHR5cGVvZiBTeW1ib2wgPT09IFwiZnVuY3Rpb25cIiAmJiBvW1N5bWJvbC5pdGVyYXRvcl07XHJcbiAgICBpZiAoIW0pIHJldHVybiBvO1xyXG4gICAgdmFyIGkgPSBtLmNhbGwobyksIHIsIGFyID0gW10sIGU7XHJcbiAgICB0cnkge1xyXG4gICAgICAgIHdoaWxlICgobiA9PT0gdm9pZCAwIHx8IG4tLSA+IDApICYmICEociA9IGkubmV4dCgpKS5kb25lKSBhci5wdXNoKHIudmFsdWUpO1xyXG4gICAgfVxyXG4gICAgY2F0Y2ggKGVycm9yKSB7IGUgPSB7IGVycm9yOiBlcnJvciB9OyB9XHJcbiAgICBmaW5hbGx5IHtcclxuICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICBpZiAociAmJiAhci5kb25lICYmIChtID0gaVtcInJldHVyblwiXSkpIG0uY2FsbChpKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZmluYWx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FlBQVksQ0FDZk8sR0FBSWYsRUFBU2UsR0FDYkosd0NBR0Y5QixFQUFLMkIsWUFBWSxDQUNmTyxJQUFJLEVBQ0pKLEtBQU0sQ0FDSkssa0JBQW1CQyxFQUFNUCxrQ0FoRnBCLElBQUNQLE1GaURILEtBRG9DN0IsWUFDekJBLEVBQUkyQixXQUFVLFNBQVVHLEVBQVNjLEdBQy9DLFNBQVNDLEVBQVV6RCxHQUFTLElBQU1JLEVBQUtTLEVBQVV2QixLQUFLVSxJQUFXLE1BQU9HLEdBQUtxRCxFQUFPckQsSUFDcEYsU0FBU3VELEVBQVMxRCxHQUFTLElBQU1JLEVBQUtTLEVBQWlCLE1BQUViLElBQVcsTUFBT0csR0FBS3FELEVBQU9yRCxJQUN2RixTQUFTQyxFQUFLdUQsR0FBVUEsRUFBTzVELEtBQU8yQyxFQUFRaUIsRUFBTzNELE9BQVMsSUFBSVksR0FBRSxTQUFVOEIsR0FBV0EsRUFBUWlCLEVBQU8zRCxVQUFXNEQsS0FBS0gsRUFBV0MsR0FDbkl0RCxHQUFNUyxFQUFZQSxFQUFVcEMsTUFBTUcsRUFBUytCLEdBQWMsS0FBS3JCIn0=",ei=!1,function(t){return Ae=Ae||_o($n,ti,ei),new Worker(Ae,t)}),We={},ni=new Uo,Mo={memory:function(){return new ko().enclosedCache},localstorage:function(){return new Ho}},ii=function(t){return Mo[t]},qo=function(){return!/Trident.*rv:11\.0/.test(navigator.userAgent)},$o=(function(){function t(e){var n,i,r;if(this.options=e,typeof window<"u"&&(function(){if(!cn())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Hi()===void 0)throw new Error(`
3      auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
4    `)})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)r=e.cache;else{if(this.cacheLocation=e.cacheLocation||"memory",!ii(this.cacheLocation))throw new Error('Invalid cac
4he location "'+this.cacheLocation+'"');r=ii(this.cacheLocation)()}this.cookieStorage=e.legacySameSiteCookie===!1?Ct:jo,this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var s,o,a=e.useCookiesForTransactions?this.cookieStorage:Po;this.scope=this.options.scope,this.transactionManager=new Yo(a),this.cacheManager=new To(r,this.options.client_id),this.domainUrl="https://"+this.options.domain,this.tokenIssuer=(s=this.options.issuer,o=this.domainUrl,s?s.startsWith("https://")?s:"https://"+s+"/":o+"/"),this.defaultScope=et("openid",((i=(n=this.options)===null||n===void 0?void 0:n.advancedOptions)===null||i===void 0?void 0:i.defaultScope)!==void 0?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=et(this.scope,"offline_access")),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&this.cacheLocation==="memory"&&qo()&&(this.worker=new Do),this.customOptions=(function(c){return c.advancedOptions,c.audience,c.auth0Client,c.authorizeTimeoutInSeconds,c.cacheLocation,c.client_id,c.domain,c.issuer,c.leeway,c.max_age,c.redirect_uri,c.scope,c.useRefreshTokens,L(c,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","client_id","domain","issuer","leeway","max_age","redirect_uri","scope","useRefreshTokens"])})(e)}return t.prototype._url=function(e){var n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ji)));return""+this.domainUrl+e+"&auth0Client="+n},t.prototype._getParams=function(e,n,i,r,s){var o=this.options,a=(o.domain,o.leeway,o.useRefreshTokens,o.useCookiesForTransactions,o.auth0Client,o.cacheLocation,o.advancedOptions,L(o,["domain","leeway","useRefreshTokens","useCookiesForTransactions","auth0Client","cacheLocation","advancedOptions"]));return C(C(C({},a),e),{scope:et(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:n,nonce:i,redirect_uri:s||this.options.redirect_uri,code_challenge:r,code_challenge_method:"S256"})},t.prototype._authorizeUrl=function(e){return this._url("/authorize?"+Mn(e))},t.prototype._verifyIdToken=function(e,n,i){return Ko({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:n,organizationId:i,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age)})},t.prototype._parseNumber=function(e){return typeof e!="string"?e:parseInt(e,10)||void 0},t.prototype.buildAuthorizeUrl=function(e){return e===void 0&&(e={}),F(this,void 0,void 0,(function(){var n,i,r,s,o,a,c,u,l,f,d,h;return U(this,(function(p){switch(p.label){case 0:return n=e.redirect_uri,i=e.appState,r=L(e,["redirect_uri","appState"]),s=vt(P()),o=vt(P()),a=P(),[4,xe(a)];case 1:return c=p.sent(),u=Re(c),l=e.fragment?"#"+e.fragment:"",f=this._getParams(r,s,o,u,n),d=this._authorizeUrl(f),h=e.organization||this.options.organization,this.transactionManager.create(C({nonce:o,code_verifier:a,appState:i,scope:f.scope,audience:f.audience||"default",redirect_uri:f.redirect_uri},h&&{organizationId:h})),[2,d+l]}}))}))},t.prototype.loginWithPopup=function(e,n){return F(this,void 0,void 0,(function(){var i,r,s,o,a,c,u,l,f,d,h,p,b;return U(this,(function(I){switch(I.label){case 0:return e=e||{},(n=n||{}).popup||(n.popup=(function(g){var y=window.screenX+(window.innerWidth-400)/2,m=window.screenY+(window.innerHeight-600)/2;return window.open(g,"auth0:authorize:popup","left="+y+",top="+m+",width=400,height=600,resizable,scrollbars=yes,status=1")})("")),i=L(e,[]),r=vt(P()),s=vt(P()),o=P(),[4,xe(o)];case 1:return a=I.sent(),c=Re(a),u=this._getParams(i,r,s,c,this.options.redirect_uri||window.location.origin),l=this._authorizeUrl(C(C({},u),{response_mode:"web_message"})),n.popup.location.href=l,[4,Qo(C(C({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(f=I.sent(),r!==f.state)throw new Error("Invalid state");return[4,$t({audience:u.audience,scope:u.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:o,code:f.code,grant_type:"authorization_code",redirect_uri:u.redirect_uri,auth0Client:this.options.auth0Client},this.worker)];case 3:return d=I.sent(),h=e.organization||this.options.organization,p=this._verifyIdToken(d.id_token,s,h),b=C(C({},d),{decodedToken:p,scope:u.scope,audience:u.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(b)];case 4:return I.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2]}}))}))},t.prototype.getUser=function(e){return e===void 0&&(e={}),F(this,void 0,void 0,(function(){var n,i,r;return U(this,(function(s){switch(s.label){case 0:return n=e.audience||this.options.audience||"default",i=et(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new st({client_id:this.options.client_id,audience:n,scope:i}))];case 1:return[2,(r=s.sent())&&r.decodedToken&&r.decodedToken.user]}}
4))}))},t.prototype.getIdTokenClaims=function(e){return e===void 0&&(e={}),F(this,void 0,void 0,(function(){var n,i,r;return U(this,(function(s){switch(s.label){case 0:return n=e.audience||this.options.audience||"default",i=et(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new st({client_id:this.options.client_id,audience:n,scope:i}))];case 1:return[2,(r=s.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},t.prototype.loginWithRedirect=function(e){return e===void 0&&(e={}),F(this,void 0,void 0,(function(){var n,i,r;return U(this,(function(s){switch(s.label){case 0:return n=e.redirectMethod,i=L(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(i)];case 1:return r=s.sent(),window.location[n||"assign"](r),[2]}}))}))},t.prototype.handleRedirectCallback=function(e){return e===void 0&&(e=window.location.href),F(this,void 0,void 0,(function(){var n,i,r,s,o,a,c,u,l,f,d;return U(this,(function(h){switch(h.label){case 0:if((n=e.split("?").slice(1)).length===0)throw new Error("There are no query params available for parsing.");if(i=(function(p){p.indexOf("#")>-1&&(p=p.substr(0,p.indexOf("#")));var b=p.split("&"),I={};return b.forEach((function(g){var y=de(g.split("="),2),m=y[0],V=y[1];I[m]=decodeURIComponent(V)})),C(C({},I),{expires_in:parseInt(I.expires_in)})})(n.join("")),r=i.state,s=i.code,o=i.error,a=i.error_description,!(c=this.transactionManager.get())||!c.code_verifier)throw new Error("Invalid state");if(this.transactionManager.remove(),o)throw new So(o,a,r,c.appState);return u={audience:c.audience,scope:c.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:c.code_verifier,grant_type:"authorization_code",code:s,auth0Client:this.options.auth0Client},c.redirect_uri!==void 0&&(u.redirect_uri=c.redirect_uri),[4,$t(u,this.worker)];case 1:return l=h.sent(),f=this._verifyIdToken(l.id_token,c.nonce,c.organizationId),d=C(C({},l),{decodedToken:f,audience:c.audience,scope:c.scope,client_id:this.options.client_id}),[4,this.cacheManager.set(d)];case 2:return h.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2,{appState:c.appState}]}}))}))},t.prototype.checkSession=function(e){return F(this,void 0,void 0,(function(){var n;return U(this,(function(i){switch(i.label){case 0:if(!this.cookieStorage.get("auth0.is.authenticated"))return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return i.sent(),[3,4];case 3:if(n=i.sent(),!Zo.includes(n.error))throw n;return[3,4];case 4:return[2]}}
4))}))},t.prototype.getTokenSilently=function(e){return e===void 0&&(e={}),F(this,void 0,void 0,(function(){var n,i,r,s=this;return U(this,(function(o){return n=C(C({audience:this.options.audience,ignoreCache:!1},e),{scope:et(this.defaultScope,this.scope,e.scope)}),i=n.ignoreCache,r=L(n,["ignoreCache"]),[2,(a=function(){return s._getTokenSilently(C({ignoreCache:i},r))},c=this.options.client_id+"::"+r.audience+"::"+r.scope,u=We[c],u||(u=a().finally((function(){delete We[c],u=null})),We[c]=u),u)];var a,c,u}))}))},t.prototype._getTokenSilently=function(e){return e===void 0&&(e={}),F(this,void 0,void 0,(function(){var n,i,r,s,o,a,c=this;return U(this,(function(u){switch(u.label){case 0:return n=e.ignoreCache,i=L(e,["ignoreCache"]),r=function(){return F(c,void 0,void 0,(function(){var d;return U(this,(function(h){switch(h.label){case 0:return[4,this.cacheManager.get(new st({scope:i.scope,audience:i.audience||"default",client_id:this.options.client_id}),60)];case 1:return[2,(d=h.sent())&&d.access_token]}}))}))},n?[3,2]:[4,r()];case 1:if(s=u.sent())return[2,s];u.label=2;case 2:return[4,(l=function(){return ni.acquireLock("auth0.lock.getTokenSilently",5e3)},f=10,f===void 0&&(f=3),F(void 0,void 0,void 0,(function(){var d;return U(this,(function(h){switch(h.label){case 0:d=0,h.label=1;case 1:return d<f?[4,l()]:[3,4];case 2:if(h.sent())return[2,!0];h.label=3;case 3:return d++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!u.sent())return[3,15];u.label=4;case 4:return u.trys.push([4,,12,14]),n?[3,6]:[4,r()];case 5:if(s=u.sent())return[2,s];u.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(i)]:[3,8];case 7:return a=u.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(i)];case 9:a=u.sent(),u.label=10;case 10:return o=a,[4,this.cacheManager.set(C({client_id:this.options.client_id},o))];case 11:return u.sent(),this.cookieStorage.save("auth0.is.authenticated",!0,{daysUntilExpire:this.sessionCheckExpiryDays}),[2,o.access_token];case 12:return[4,ni.releaseLock("auth0.lock.getTokenSilently")];case 13:return u.sent(),[7];case 14:return[3,16];case 15:throw new on;case 16:return[2]}var l,f}))}))},t.prototype.getTokenWithPopup=function(e,n){return e===void 0&&(e={}),n===void 0&&(n={}),F(this,void 0,void 0,(function(){return U(this,(function(i){switch(i.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=et(this.defaultScope,this.scope,e.scope),n=C(C({},Vo),n),[4,this.loginWithPopup(e,n)];case 1:return i.sent(),[4,this.cacheManager.get(new st({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,i.sent().access_token]}}))}))},t.prototype.isAuthenticated=function(){return F(this,void 0,void 0,(function(){return U(this,(function(e){switch(e.label){case 0:return[4,this.getUser()];case 1:return[2,!!e.sent()]}}))}))},t.prototype.buildLogoutUrl=function(e){e===void 0&&(e={}),e.client_id!==null?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var n=e.federated,i=L(e,["federated"]),r=n?"&federated":"";return this._url("/v2/logout?"+Mn(i))+r},t.prototype.logout=function(e){var n=this;e===void 0&&(e={});var i=e.localOnly,r=L(e,["localOnly"]);if(i&&r.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var s=function(){if(n.cookieStorage.remove("auth0.is.authenticated"),!i){var o=n.buildLogoutUrl(r);window.location.assign(o)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return s()}));this.cacheManager.clearSync(),s()},t.prototype._getTokenFromIFrame=function(e){return F(this,void 0,void 0,(function(){var n,i,r,s,o,a,c,u,l,f,d,h,p,b,I;return U(this,(function(g){switch(g.label){case 0:return n=vt(P()),i=vt(P()),r=P(),[4,xe(r)];case 1:s=g.sent(),o=Re(s),a=this._getParams(e,n,i,o,e.redirect_uri||this.options.redirect_uri||window.location.origin),c=this._authorizeUrl(C(C({},a),{prompt:"none",response_mode:"web_message"})),u=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,g.label=2;case 2:return g.trys.push([2,5,,6]),[4,Go(c,this.domainUrl,u)];case 3:if(l=g.sent(),n!==l.state)throw new Error("Invalid state");return f=e.scope,d=e.audience,e.redirect_uri,e.ignoreCache,e.timeoutInSeconds,h=L(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds"]),[4,$t(C(C(C({},this.customOptions),h),{scope:f,audience:d,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:l.code,grant_type:"authorization_code",redirect_uri:a.redirect_uri,auth0Client:this.options.auth0Client}),this.worker)];case 4:return p=g.sent(),b=this._verifyIdToken(p.id_token,i),[2,C(C({},p),{decodedToken:b,scope:a.scope,audience:a.audience||"default"})];case 5:throw(I=g.sent()).error==="login_required"&&this.logout({localOnly:!0}),I;case 6:return[2]}}
4))}))},t.prototype._getTokenUsingRefreshToken=function(e){return F(this,void 0,void 0,(function(){var n,i,r,s,o,a,c,u,l;return U(this,(function(f){switch(f.label){case 0:return e.scope=et(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new st({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(n=f.sent())&&n.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return[2,f.sent()];case 3:i=e.redirect_uri||this.options.redirect_uri||window.location.origin,s=e.scope,o=e.audience,e.ignoreCache,e.timeoutInSeconds,a=L(e,["scope","audience","ignoreCache","timeoutInSeconds"]),c=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null,f.label=4;case 4:return f.trys.push([4,6,,9]),[4,$t(C(C(C(C(C({},this.customOptions),a),{audience:o,scope:s,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:i}),c&&{timeout:c}),{auth0Client:this.options.auth0Client}),this.worker)];case 5:return r=f.sent(),[3,9];case 6:return(u=f.sent()).message==="The web worker is missing the refresh token"||u.message&&u.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return[2,f.sent()];case 8:throw u;case 9:return l=this._verifyIdToken(r.id_token),[2,C(C({},r),{decodedToken:l,scope:e.scope,audience:e.audience||"default"})]}}))}))},t})(),tc=function(){};function ec(t){return F(this,void 0,void 0,(function(){var e;return U(this,(function(n){switch(n.label){case 0:return[4,(e=new $o(t)).checkSession()];case 1:return n.sent(),[2,e]}}))}))}export{$o as Auth0Client,So as AuthenticationError,Qt as GenericError,ko as InMemoryCache,Ho as LocalStorageCache,wo as PopupCancelledError,Xo as PopupTimeoutError,on as TimeoutError,tc as User,ec as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.