@auth0/auth0-react 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth0-provider.d.ts +1 -1
- package/dist/auth0-provider.d.ts.map +1 -1
- package/dist/auth0-react.cjs.js +31 -24
- package/dist/auth0-react.cjs.js.map +1 -1
- package/dist/auth0-react.esm.js +22 -16
- package/dist/auth0-react.esm.js.map +1 -1
- package/dist/auth0-react.js +33 -25
- package/dist/auth0-react.js.map +1 -1
- package/dist/auth0-react.min.js +13 -13
- package/dist/auth0-react.min.js.map +1 -1
- package/dist/with-auth0.d.ts.map +1 -1
- package/package.json +42 -42
- package/src/auth0-provider.tsx +1 -1
- package/src/with-auth0.tsx +11 -7
package/dist/auth0-react.min.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).reactAuth0={},e.React)}(this,(function(e,t){"use strict";
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).reactAuth0={},e.React)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};
|
|
2
2
|
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
5
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
6
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
11
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}s((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}
|
|
16
16
|
/*! *****************************************************************************
|
|
17
17
|
Copyright (c) Microsoft Corporation.
|
|
18
18
|
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
27
27
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
28
28
|
PERFORMANCE OF THIS SOFTWARE.
|
|
29
|
-
***************************************************************************** */var s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function f(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function d(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}s((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b(e,t){return e(t={exports:{}},t.exports),t.exports}var g,w,S=function(e){return e&&e.Math==Math&&e},I=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof v&&v)||function(){return this}()||Function("return this")(),k=function(e){try{return!!e()}catch(e){return!0}},T=!k((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=Function.prototype.call,E=_.bind?_.bind(_):function(){return _.apply(_,arguments)},O={}.propertyIsEnumerable,R=Object.getOwnPropertyDescriptor,C={f:R&&!O.call({1:2},1)?function(e){var t=R(this,e);return!!t&&t.enumerable}:O},K=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Z=Function.prototype,x=Z.bind,F=Z.call,U=x&&x.bind(F),W=x?function(e){return e&&U(F,e)}:function(e){return e&&function(){return F.apply(e,arguments)}},V=W({}.toString),L=W("".slice),X=function(e){return L(V(e),8,-1)},P=I.Object,A=W("".split),Y=k((function(){return!P("z").propertyIsEnumerable(0)}))?function(e){return"String"==X(e)?A(e,""):P(e)}:P,N=I.TypeError,j=function(e){if(null==e)throw N("Can't call method on "+e);return e},G=function(e){return Y(j(e))},J=function(e){return"function"==typeof e},B=function(e){return"object"==typeof e?null!==e:J(e)},z=function(e){return J(e)?e:void 0},H=function(e,t){return arguments.length<2?z(I[e]):I[e]&&I[e][t]},D=W({}.isPrototypeOf),M=H("navigator","userAgent")||"",q=I.process,Q=I.Deno,$=q&&q.versions||Q&&Q.version,ee=$&&$.v8;ee&&(w=(g=ee.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!w&&M&&(!(g=M.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=M.match(/Chrome\/(\d+)/))&&(w=+g[1]);var te=w,ne=!!Object.getOwnPropertySymbols&&!k((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&te&&te<41})),re=ne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,oe=I.Object,ie=re?function(e){return"symbol"==typeof e}:function(e){var t=H("Symbol");return J(t)&&D(t.prototype,oe(e))},ce=I.String,ae=function(e){try{return ce(e)}catch(e){return"Object"}},se=I.TypeError,ue=function(e){if(J(e))return e;throw se(ae(e)+" is not a function")},le=function(e,t){var n=e[t];return null==n?void 0:ue(n)},fe=I.TypeError,de=Object.defineProperty,he=function(e,t){try{de(I,e,{value:t,configurable:!0,writable:!0})}catch(n){I[e]=t}return t},pe=I["__core-js_shared__"]||he("__core-js_shared__",{}),ye=b((function(e){(e.exports=function(e,t){return pe[e]||(pe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ve=I.Object,me=function(e){return ve(j(e))},be=W({}.hasOwnProperty),ge=Object.hasOwn||function(e,t){return be(me(e),t)},we=0,Se=Math.random(),Ie=W(1..toString),ke=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ie(++we+Se,36)},Te=ye("wks"),_e=I.Symbol,Ee=_e&&_e.for,Oe=re?_e:_e&&_e.withoutSetter||ke,Re=function(e){if(!ge(Te,e)||!ne&&"string"!=typeof Te[e]){var t="Symbol."+e;ne&&ge(_e,e)?Te[e]=_e[e]:Te[e]=re&&Ee?Ee(t):Oe(t)}return Te[e]},Ce=I.TypeError,Ke=Re("toPrimitive"),Ze=function(e){var t=function(e,t){if(!B(e)||ie(e))return e;var n,r=le(e,Ke);if(r){if(void 0===t&&(t="default"),n=E(r,e,t),!B(n)||ie(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&J(n=e.toString)&&!B(r=E(n,e)))return r;if(J(n=e.valueOf)&&!B(r=E(n,e)))return r;if("string"!==t&&J(n=e.toString)&&!B(r=E(n,e)))return r;throw fe("Can't convert object to primitive value")}(e,t)}(e,"string");return ie(t)?t:t+""},xe=I.document,Fe=B(xe)&&B(xe.createElement),Ue=function(e){return Fe?xe.createElement(e):{}},We=!T&&!k((function(){return 7!=Object.defineProperty(Ue("div"),"a",{get:function(){return 7}}).a})),Ve=Object.getOwnPropertyDescriptor,Le={f:T?Ve:function(e,t){if(e=G(e),t=Ze(t),We)try{return Ve(e,t)}catch(e){}if(ge(e,t))return K(!E(C.f,e,t),e[t])}},Xe=I.String,Pe=I.TypeError,Ae=function(e){if(B(e))return e;throw Pe(Xe(e)+" is not an object")},Ye=I.TypeError,Ne=Object.defineProperty,je={f:T?Ne:function(e,t,n){if(Ae(e),t=Ze(t),Ae(n),We)try{return Ne(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ye("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ge=T?function(e,t,n){return je.f(e,t,K(1,n))}:function(e,t,n){return e[t]=n,e},Je=W(Function.toString);J(pe.inspectSource)||(pe.inspectSource=function(e){return Je(e)});var Be,ze,He,De=pe.inspectSource,Me=I.WeakMap,qe=J(Me)&&/native code/.test(De(Me)),Qe=ye("keys"),$e=function(e){return Qe[e]||(Qe[e]=ke(e))},et={},tt=I.TypeError,nt=I.WeakMap;if(qe||pe.state){var rt=pe.state||(pe.state=new nt),ot=W(rt.get),it=W(rt.has),ct=W(rt.set);Be=function(e,t){if(it(rt,e))throw new tt("Object already initialized");return t.facade=e,ct(rt,e,t),t},ze=function(e){return ot(rt,e)||{}},He=function(e){return it(rt,e)}}else{var at=$e("state");et[at]=!0,Be=function(e,t){if(ge(e,at))throw new tt("Object already initialized");return t.facade=e,Ge(e,at,t),t},ze=function(e){return ge(e,at)?e[at]:{}},He=function(e){return ge(e,at)}}var st={set:Be,get:ze,has:He,enforce:function(e){return He(e)?ze(e):Be(e,{})},getterFor:function(e){return function(t){var n;if(!B(t)||(n=ze(t)).type!==e)throw tt("Incompatible receiver, "+e+" required");return n}}},ut=Function.prototype,lt=T&&Object.getOwnPropertyDescriptor,ft=ge(ut,"name"),dt={EXISTS:ft,PROPER:ft&&"something"===function(){}.name,CONFIGURABLE:ft&&(!T||T&<(ut,"name").configurable)},ht=b((function(e){var t=dt.CONFIGURABLE,n=st.get,r=st.enforce,o=String(String).split("String");(e.exports=function(e,n,i,c){var a,s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet,f=c&&void 0!==c.name?c.name:n;J(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ge(i,"name")||t&&i.name!==f)&&Ge(i,"name",f),(a=r(i)).source||(a.source=o.join("string"==typeof f?f:""))),e!==I?(s?!l&&e[n]&&(u=!0):delete e[n],u?e[n]=i:Ge(e,n,i)):u?e[n]=i:he(n,i)})(Function.prototype,"toString",(function(){return J(this)&&n(this).source||De(this)}))})),pt=Math.ceil,yt=Math.floor,vt=function(e){var t=+e;return t!=t||0===t?0:(t>0?yt:pt)(t)},mt=Math.max,bt=Math.min,gt=Math.min,wt=function(e){return e>0?gt(vt(e),9007199254740991):0},St=function(e){return wt(e.length)},It=function(e){return function(t,n,r){var o,i=G(t),c=St(i),a=function(e,t){var n=vt(e);return n<0?mt(n+t,0):bt(n,t)}(r,c);if(e&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},kt={includes:It(!0),indexOf:It(!1)},Tt=kt.indexOf,_t=W([].push),Et=function(e,t){var n,r=G(e),o=0,i=[];for(n in r)!ge(et,n)&&ge(r,n)&&_t(i,n);for(;t.length>o;)ge(r,n=t[o++])&&(~Tt(i,n)||_t(i,n));return i},Ot=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rt=Ot.concat("length","prototype"),Ct={f:Object.getOwnPropertyNames||function(e){return Et(e,Rt)}},Kt={f:Object.getOwnPropertySymbols},Zt=W([].concat),xt=H("Reflect","ownKeys")||function(e){var t=Ct.f(Ae(e)),n=Kt.f;return n?Zt(t,n(e)):t},Ft=function(e,t){for(var n=xt(t),r=je.f,o=Le.f,i=0;i<n.length;i++){var c=n[i];ge(e,c)||r(e,c,o(t,c))}},Ut=/#|\.prototype\./,Wt=function(e,t){var n=Lt[Vt(e)];return n==Pt||n!=Xt&&(J(t)?k(t):!!t)},Vt=Wt.normalize=function(e){return String(e).replace(Ut,".").toLowerCase()},Lt=Wt.data={},Xt=Wt.NATIVE="N",Pt=Wt.POLYFILL="P",At=Wt,Yt=Le.f,Nt=function(e,t){var n,r,o,i,c,a=e.target,s=e.global,u=e.stat;if(n=s?I:u?I[a]||he(a,{}):(I[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(c=Yt(n,r))&&c.value:n[r],!At(s?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ft(i,o)}(e.sham||o&&o.sham)&&Ge(i,"sham",!0),ht(n,r,i,e)}},jt={};jt[Re("toStringTag")]="z";var Gt,Jt="[object z]"===String(jt),Bt=Re("toStringTag"),zt=I.Object,Ht="Arguments"==X(function(){return arguments}()),Dt=Jt?X:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=zt(e),Bt))?n:Ht?X(t):"Object"==(r=X(t))&&J(t.callee)?"Arguments":r},Mt=I.String,qt=function(e){if("Symbol"===Dt(e))throw TypeError("Cannot convert a Symbol value to a string");return Mt(e)},Qt=Re("match"),$t=I.TypeError,en=function(e){if(function(e){var t;return B(e)&&(void 0!==(t=e[Qt])?!!t:"RegExp"==X(e))}(e))throw $t("The method doesn't accept regular expressions");return e},tn=Re("match"),nn=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[tn]=!1,"/./"[e](t)}catch(e){}}return!1},rn=Le.f,on=W("".startsWith),cn=W("".slice),an=Math.min,sn=nn("startsWith"),un=!(sn||(Gt=rn(String.prototype,"startsWith"),!Gt||Gt.writable));Nt({target:"String",proto:!0,forced:!un&&!sn},{startsWith:function(e){var t=qt(j(this));en(e);var n=wt(an(arguments.length>1?arguments[1]:void 0,t.length)),r=qt(e);return on?on(t,r,n):cn(t,n,n+r.length)===r}});var ln=function(e,t){return W(I[e].prototype[t])};ln("String","startsWith");var fn=Array.isArray||function(e){return"Array"==X(e)},dn=function(e,t,n){var r=Ze(t);r in e?je.f(e,r,K(0,n)):e[r]=n},hn=function(){},pn=[],yn=H("Reflect","construct"),vn=/^\s*(?:class|function)\b/,mn=W(vn.exec),bn=!vn.exec(hn),gn=function(e){if(!J(e))return!1;try{return yn(hn,pn,e),!0}catch(e){return!1}},wn=!yn||k((function(){var e;return gn(gn.call)||!gn(Object)||!gn((function(){e=!0}))||e}))?function(e){if(!J(e))return!1;switch(Dt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bn||!!mn(vn,De(e))}:gn,Sn=Re("species"),In=I.Array,kn=function(e,t){return new(function(e){var t;return fn(e)&&(t=e.constructor,(wn(t)&&(t===In||fn(t.prototype))||B(t)&&null===(t=t[Sn]))&&(t=void 0)),void 0===t?In:t}(e))(0===t?0:t)},Tn=Re("species"),_n=Re("isConcatSpreadable"),En=I.TypeError,On=te>=51||!k((function(){var e=[];return e[_n]=!1,e.concat()[0]!==e})),Rn=("concat",te>=51||!k((function(){var e=[];return(e.constructor={})[Tn]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Cn=function(e){if(!B(e))return!1;var t=e[_n];return void 0!==t?!!t:fn(e)};Nt({target:"Array",proto:!0,forced:!On||!Rn},{concat:function(e){var t,n,r,o,i,c=me(this),a=kn(c,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Cn(i=-1===t?c:arguments[t])){if(s+(o=St(i))>9007199254740991)throw En("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&dn(a,s,i[n])}else{if(s>=9007199254740991)throw En("Maximum allowed index exceeded");dn(a,s++,i)}return a.length=s,a}});var Kn=Jt?{}.toString:function(){return"[object "+Dt(this)+"]"};Jt||ht(Object.prototype,"toString",Kn,{unsafe:!0});var Zn,xn=Function.prototype,Fn=xn.apply,Un=xn.bind,Wn=xn.call,Vn="object"==typeof Reflect&&Reflect.apply||(Un?Wn.bind(Fn):function(){return Wn.apply(Fn,arguments)}),Ln=Object.keys||function(e){return Et(e,Ot)},Xn=T?Object.defineProperties:function(e,t){Ae(e);for(var n,r=G(t),o=Ln(t),i=o.length,c=0;i>c;)je.f(e,n=o[c++],r[n]);return e},Pn=H("document","documentElement"),An=$e("IE_PROTO"),Yn=function(){},Nn=function(e){return"<script>"+e+"<\/script>"},jn=function(e){e.write(Nn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gn=function(){try{Zn=new ActiveXObject("htmlfile")}catch(e){}var e,t;Gn="undefined"!=typeof document?document.domain&&Zn?jn(Zn):((t=Ue("iframe")).style.display="none",Pn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Nn("document.F=Object")),e.close(),e.F):jn(Zn);for(var n=Ot.length;n--;)delete Gn.prototype[Ot[n]];return Gn()};et[An]=!0;var Jn=Object.create||function(e,t){var n;return null!==e?(Yn.prototype=Ae(e),n=new Yn,Yn.prototype=null,n[An]=e):n=Gn(),void 0===t?n:Xn(n,t)},Bn=W([].slice),zn=Ct.f,Hn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dn={f:function(e){return Hn&&"Window"==X(e)?function(e){try{return zn(e)}catch(e){return Bn(Hn)}}(e):zn(G(e))}},Mn={f:Re},qn=I,Qn=je.f,$n=function(e){var t=qn.Symbol||(qn.Symbol={});ge(t,e)||Qn(t,e,{value:Mn.f(e)})},er=je.f,tr=Re("toStringTag"),nr=function(e,t,n){e&&!ge(e=n?e:e.prototype,tr)&&er(e,tr,{configurable:!0,value:t})},rr=W(W.bind),or=function(e,t){return ue(e),void 0===t?e:rr?rr(e,t):function(){return e.apply(t,arguments)}},ir=W([].push),cr=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,c=7==e,a=5==e||i;return function(s,u,l,f){for(var d,h,p=me(s),y=Y(p),v=or(u,l),m=St(y),b=0,g=f||kn,w=t?g(s,m):n||c?g(s,0):void 0;m>b;b++)if((a||b in y)&&(h=v(d=y[b],b,p),e))if(t)w[b]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:ir(w,d)}else switch(e){case 4:return!1;case 7:ir(w,d)}return i?-1:r||o?o:w}},ar=[cr(0),cr(1),cr(2),cr(3),cr(4),cr(5),cr(6),cr(7)][0],sr=$e("hidden"),ur=Re("toPrimitive"),lr=st.set,fr=st.getterFor("Symbol"),dr=Object.prototype,hr=I.Symbol,pr=hr&&hr.prototype,yr=I.TypeError,vr=I.QObject,mr=H("JSON","stringify"),br=Le.f,gr=je.f,wr=Dn.f,Sr=C.f,Ir=W([].push),kr=ye("symbols"),Tr=ye("op-symbols"),_r=ye("string-to-symbol-registry"),Er=ye("symbol-to-string-registry"),Or=ye("wks"),Rr=!vr||!vr.prototype||!vr.prototype.findChild,Cr=T&&k((function(){return 7!=Jn(gr({},"a",{get:function(){return gr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=br(dr,t);r&&delete dr[t],gr(e,t,n),r&&e!==dr&&gr(dr,t,r)}:gr,Kr=function(e,t){var n=kr[e]=Jn(pr);return lr(n,{type:"Symbol",tag:e,description:t}),T||(n.description=t),n},Zr=function(e,t,n){e===dr&&Zr(Tr,t,n),Ae(e);var r=Ze(t);return Ae(n),ge(kr,r)?(n.enumerable?(ge(e,sr)&&e[sr][r]&&(e[sr][r]=!1),n=Jn(n,{enumerable:K(0,!1)})):(ge(e,sr)||gr(e,sr,K(1,{})),e[sr][r]=!0),Cr(e,r,n)):gr(e,r,n)},xr=function(e,t){Ae(e);var n=G(t),r=Ln(n).concat(Vr(n));return ar(r,(function(t){T&&!E(Fr,n,t)||Zr(e,t,n[t])})),e},Fr=function(e){var t=Ze(e),n=E(Sr,this,t);return!(this===dr&&ge(kr,t)&&!ge(Tr,t))&&(!(n||!ge(this,t)||!ge(kr,t)||ge(this,sr)&&this[sr][t])||n)},Ur=function(e,t){var n=G(e),r=Ze(t);if(n!==dr||!ge(kr,r)||ge(Tr,r)){var o=br(n,r);return!o||!ge(kr,r)||ge(n,sr)&&n[sr][r]||(o.enumerable=!0),o}},Wr=function(e){var t=wr(G(e)),n=[];return ar(t,(function(e){ge(kr,e)||ge(et,e)||Ir(n,e)})),n},Vr=function(e){var t=e===dr,n=wr(t?Tr:G(e)),r=[];return ar(n,(function(e){!ge(kr,e)||t&&!ge(dr,e)||Ir(r,kr[e])})),r};if(ne||(pr=(hr=function(){if(D(pr,this))throw yr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?qt(arguments[0]):void 0,t=ke(e),n=function(e){this===dr&&E(n,Tr,e),ge(this,sr)&&ge(this[sr],t)&&(this[sr][t]=!1),Cr(this,t,K(1,e))};return T&&Rr&&Cr(dr,t,{configurable:!0,set:n}),Kr(t,e)}).prototype,ht(pr,"toString",(function(){return fr(this).tag})),ht(hr,"withoutSetter",(function(e){return Kr(ke(e),e)})),C.f=Fr,je.f=Zr,Le.f=Ur,Ct.f=Dn.f=Wr,Kt.f=Vr,Mn.f=function(e){return Kr(Re(e),e)},T&&(gr(pr,"description",{configurable:!0,get:function(){return fr(this).description}}),ht(dr,"propertyIsEnumerable",Fr,{unsafe:!0}))),Nt({global:!0,wrap:!0,forced:!ne,sham:!ne},{Symbol:hr}),ar(Ln(Or),(function(e){$n(e)})),Nt({target:"Symbol",stat:!0,forced:!ne},{for:function(e){var t=qt(e);if(ge(_r,t))return _r[t];var n=hr(t);return _r[t]=n,Er[n]=t,n},keyFor:function(e){if(!ie(e))throw yr(e+" is not a symbol");if(ge(Er,e))return Er[e]},useSetter:function(){Rr=!0},useSimple:function(){Rr=!1}}),Nt({target:"Object",stat:!0,forced:!ne,sham:!T},{create:function(e,t){return void 0===t?Jn(e):xr(Jn(e),t)},defineProperty:Zr,defineProperties:xr,getOwnPropertyDescriptor:Ur}),Nt({target:"Object",stat:!0,forced:!ne},{getOwnPropertyNames:Wr,getOwnPropertySymbols:Vr}),Nt({target:"Object",stat:!0,forced:k((function(){Kt.f(1)}))},{getOwnPropertySymbols:function(e){return Kt.f(me(e))}}),mr){var Lr=!ne||k((function(){var e=hr();return"[null]"!=mr([e])||"{}"!=mr({a:e})||"{}"!=mr(Object(e))}));Nt({target:"JSON",stat:!0,forced:Lr},{stringify:function(e,t,n){var r=Bn(arguments),o=t;if((B(t)||void 0!==e)&&!ie(e))return fn(t)||(t=function(e,t){if(J(o)&&(t=E(o,this,e,t)),!ie(t))return t}),r[1]=t,Vn(mr,null,r)}})}if(!pr[ur]){var Xr=pr.valueOf;ht(pr,ur,(function(e){return E(Xr,this)}))}nr(hr,"Symbol"),et[sr]=!0,$n("asyncIterator");var Pr=je.f,Ar=I.Symbol,Yr=Ar&&Ar.prototype;if(T&&J(Ar)&&(!("description"in Yr)||void 0!==Ar().description)){var Nr={},jr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:qt(arguments[0]),t=D(Yr,this)?new Ar(e):void 0===e?Ar():Ar(e);return""===e&&(Nr[t]=!0),t};Ft(jr,Ar),jr.prototype=Yr,Yr.constructor=jr;var Gr="Symbol(test)"==String(Ar("test")),Jr=W(Yr.toString),Br=W(Yr.valueOf),zr=/^Symbol\((.*)\)[^)]+$/,Hr=W("".replace),Dr=W("".slice);Pr(Yr,"description",{configurable:!0,get:function(){var e=Br(this),t=Jr(e);if(ge(Nr,e))return"";var n=Gr?Dr(t,7,-1):Hr(t,zr,"$1");return""===n?void 0:n}}),Nt({global:!0,forced:!0},{Symbol:jr})}$n("hasInstance"),$n("isConcatSpreadable"),$n("iterator"),$n("match"),$n("matchAll"),$n("replace"),$n("search"),$n("species"),$n("split"),$n("toPrimitive"),$n("toStringTag"),$n("unscopables"),nr(I.JSON,"JSON",!0),nr(Math,"Math",!0),Nt({global:!0},{Reflect:{}}),nr(I.Reflect,"Reflect",!0),qn.Symbol;var Mr,qr,Qr,$r=W("".charAt),eo=W("".charCodeAt),to=W("".slice),no=function(e){return function(t,n){var r,o,i=qt(j(t)),c=vt(n),a=i.length;return c<0||c>=a?e?"":void 0:(r=eo(i,c))<55296||r>56319||c+1===a||(o=eo(i,c+1))<56320||o>57343?e?$r(i,c):r:e?to(i,c,c+2):o-56320+(r-55296<<10)+65536}},ro={codeAt:no(!1),charAt:no(!0)},oo=!k((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),io=$e("IE_PROTO"),co=I.Object,ao=co.prototype,so=oo?co.getPrototypeOf:function(e){var t=me(e);if(ge(t,io))return t[io];var n=t.constructor;return J(n)&&t instanceof n?n.prototype:t instanceof co?ao:null},uo=Re("iterator"),lo=!1;[].keys&&("next"in(Qr=[].keys())?(qr=so(so(Qr)))!==Object.prototype&&(Mr=qr):lo=!0),(null==Mr||k((function(){var e={};return Mr[uo].call(e)!==e})))&&(Mr={}),J(Mr[uo])||ht(Mr,uo,(function(){return this}));var fo={IteratorPrototype:Mr,BUGGY_SAFARI_ITERATORS:lo},ho={},po=fo.IteratorPrototype,yo=function(){return this},vo=I.String,mo=I.TypeError,bo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=W(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ae(n),function(e){if("object"==typeof e||J(e))return e;throw mo("Can't set "+vo(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),go=dt.PROPER,wo=dt.CONFIGURABLE,So=fo.IteratorPrototype,Io=fo.BUGGY_SAFARI_ITERATORS,ko=Re("iterator"),To=function(){return this},_o=function(e,t,n,r,o,i,c){!function(e,t,n){var r=t+" Iterator";e.prototype=Jn(po,{next:K(1,n)}),nr(e,r,!1),ho[r]=yo}(n,t,r);var a,s,u,l=function(e){if(e===o&&y)return y;if(!Io&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[ko]||h["@@iterator"]||o&&h[o],y=!Io&&p||l(o),v="Array"==t&&h.entries||p;if(v&&(a=so(v.call(new e)))!==Object.prototype&&a.next&&(so(a)!==So&&(bo?bo(a,So):J(a[ko])||ht(a,ko,To)),nr(a,f,!0)),go&&"values"==o&&p&&"values"!==p.name&&(wo?Ge(h,"name","values"):(d=!0,y=function(){return E(p,this)})),o)if(s={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},c)for(u in s)(Io||d||!(u in h))&&ht(h,u,s[u]);else Nt({target:t,proto:!0,forced:Io||d},s);return h[ko]!==y&&ht(h,ko,y,{name:o}),ho[t]=y,s},Eo=ro.charAt,Oo=st.set,Ro=st.getterFor("String Iterator");_o(String,"String",(function(e){Oo(this,{type:"String Iterator",string:qt(e),index:0})}),(function(){var e,t=Ro(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Eo(n,r),t.index+=e.length,{value:e,done:!1})}));var Co=function(e,t,n){var r,o;Ae(e);try{if(!(r=le(e,"return"))){if("throw"===t)throw n;return n}r=E(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ae(r),n},Ko=function(e,t,n,r){try{return r?t(Ae(n)[0],n[1]):t(n)}catch(t){Co(e,"throw",t)}},Zo=Re("iterator"),xo=Array.prototype,Fo=function(e){return void 0!==e&&(ho.Array===e||xo[Zo]===e)},Uo=Re("iterator"),Wo=function(e){if(null!=e)return le(e,Uo)||le(e,"@@iterator")||ho[Dt(e)]},Vo=I.TypeError,Lo=function(e,t){var n=arguments.length<2?Wo(e):t;if(ue(n))return Ae(E(n,e));throw Vo(ae(e)+" is not iterable")},Xo=I.Array,Po=Re("iterator"),Ao=!1;try{var Yo=0,No={next:function(){return{done:!!Yo++}},return:function(){Ao=!0}};No[Po]=function(){return this},Array.from(No,(function(){throw 2}))}catch(s){}var jo=function(e,t){if(!t&&!Ao)return!1;var n=!1;try{var r={};r[Po]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Go=!jo((function(e){Array.from(e)}));Nt({target:"Array",stat:!0,forced:Go},{from:function(e){var t=me(e),n=wn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=or(o,r>2?arguments[2]:void 0));var c,a,s,u,l,f,d=Wo(t),h=0;if(!d||this==Xo&&Fo(d))for(c=St(t),a=n?new this(c):Xo(c);c>h;h++)f=i?o(t[h],h):t[h],dn(a,h,f);else for(l=(u=Lo(t,d)).next,a=n?new this:[];!(s=E(l,u)).done;h++)f=i?Ko(u,o,[s.value,h],!0):s.value,dn(a,h,f);return a.length=h,a}}),qn.Array.from;var Jo,Bo,zo,Ho="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Do=je.f,Mo=I.Int8Array,qo=Mo&&Mo.prototype,Qo=I.Uint8ClampedArray,$o=Qo&&Qo.prototype,ei=Mo&&so(Mo),ti=qo&&so(qo),ni=Object.prototype,ri=I.TypeError,oi=Re("toStringTag"),ii=ke("TYPED_ARRAY_TAG"),ci=ke("TYPED_ARRAY_CONSTRUCTOR"),ai=Ho&&!!bo&&"Opera"!==Dt(I.opera),si=!1,ui={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},li={BigInt64Array:8,BigUint64Array:8},fi=function(e){if(!B(e))return!1;var t=Dt(e);return ge(ui,t)||ge(li,t)};for(Jo in ui)(zo=(Bo=I[Jo])&&Bo.prototype)?Ge(zo,ci,Bo):ai=!1;for(Jo in li)(zo=(Bo=I[Jo])&&Bo.prototype)&&Ge(zo,ci,Bo);if((!ai||!J(ei)||ei===Function.prototype)&&(ei=function(){throw ri("Incorrect invocation")},ai))for(Jo in ui)I[Jo]&&bo(I[Jo],ei);if((!ai||!ti||ti===ni)&&(ti=ei.prototype,ai))for(Jo in ui)I[Jo]&&bo(I[Jo].prototype,ti);if(ai&&so($o)!==ti&&bo($o,ti),T&&!ge(ti,oi))for(Jo in si=!0,Do(ti,oi,{get:function(){return B(this)?this[ii]:void 0}}),ui)I[Jo]&&Ge(I[Jo],ii,Jo);var di={NATIVE_ARRAY_BUFFER_VIEWS:ai,TYPED_ARRAY_CONSTRUCTOR:ci,TYPED_ARRAY_TAG:si&&ii,aTypedArray:function(e){if(fi(e))return e;throw ri("Target is not a typed array")},aTypedArrayConstructor:function(e){if(J(e)&&(!bo||D(ei,e)))return e;throw ri(ae(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(T){if(n)for(var r in ui){var o=I[r];if(o&&ge(o.prototype,e))try{delete o.prototype[e]}catch(e){}}ti[e]&&!n||ht(ti,e,n?t:ai&&qo[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(T){if(bo){if(n)for(r in ui)if((o=I[r])&&ge(o,e))try{delete o[e]}catch(e){}if(ei[e]&&!n)return;try{return ht(ei,e,n?t:ai&&ei[e]||t)}catch(e){}}for(r in ui)!(o=I[r])||o[e]&&!n||ht(o,e,t)}},isView:function(e){if(!B(e))return!1;var t=Dt(e);return"DataView"===t||ge(ui,t)||ge(li,t)},isTypedArray:fi,TypedArray:ei,TypedArrayPrototype:ti},hi=I.TypeError,pi=Re("species"),yi=di.TYPED_ARRAY_CONSTRUCTOR,vi=di.aTypedArrayConstructor,mi=di.aTypedArray;(0,di.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Bn(mi(this),e,t),r=vi(function(e,t){var n,r=Ae(e).constructor;return void 0===r||null==(n=Ae(r)[pi])?t:function(e){if(wn(e))return e;throw hi(ae(e)+" is not a constructor")}(n)}(this,this[yi])),o=0,i=n.length,c=new r(i);i>o;)c[o]=n[o++];return c}),k((function(){new Int8Array(1).slice()})));var bi=Re("unscopables"),gi=Array.prototype;null==gi[bi]&&je.f(gi,bi,{configurable:!0,value:Jn(null)});var wi=function(e){gi[bi][e]=!0},Si=kt.includes;Nt({target:"Array",proto:!0},{includes:function(e){return Si(this,e,arguments.length>1?arguments[1]:void 0)}}),wi("includes"),ln("Array","includes");var Ii=W("".indexOf);Nt({target:"String",proto:!0,forced:!nn("includes")},{includes:function(e){return!!~Ii(qt(j(this)),qt(en(e)),arguments.length>1?arguments[1]:void 0)}}),ln("String","includes");var ki=st.set,Ti=st.getterFor("Array Iterator");_o(Array,"Array",(function(e,t){ki(this,{type:"Array Iterator",target:G(e),index:0,kind:t})}),(function(){var e=Ti(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),ho.Arguments=ho.Array,wi("keys"),wi("values"),wi("entries");var _i=k((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ei=Object.isExtensible,Oi=k((function(){Ei(1)}))||_i?function(e){return!!B(e)&&(!_i||"ArrayBuffer"!=X(e))&&(!Ei||Ei(e))}:Ei,Ri=!k((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ci=b((function(e){var t=je.f,n=!1,r=ke("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},c=e.exports={enable:function(){c.enable=function(){},n=!0;var e=Ct.f,t=W([].splice),o={};o[r]=1,e(o).length&&(Ct.f=function(n){for(var o=e(n),i=0,c=o.length;i<c;i++)if(o[i]===r){t(o,i,1);break}return o},Nt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Dn.f}))},fastKey:function(e,t){if(!B(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ge(e,r)){if(!Oi(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ge(e,r)){if(!Oi(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Ri&&n&&Oi(e)&&!ge(e,r)&&i(e),e}};et[r]=!0}));Ci.enable,Ci.fastKey,Ci.getWeakData,Ci.onFreeze;var Ki=I.TypeError,Zi=function(e,t){this.stopped=e,this.result=t},xi=Zi.prototype,Fi=function(e,t,n){var r,o,i,c,a,s,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=or(t,l),y=function(e){return r&&Co(r,"normal",e),new Zi(!0,e)},v=function(e){return f?(Ae(e),h?p(e[0],e[1],y):p(e[0],e[1])):h?p(e,y):p(e)};if(d)r=e;else{if(!(o=Wo(e)))throw Ki(ae(e)+" is not iterable");if(Fo(o)){for(i=0,c=St(e);c>i;i++)if((a=v(e[i]))&&D(xi,a))return a;return new Zi(!1)}r=Lo(e,o)}for(s=r.next;!(u=E(s,r)).done;){try{a=v(u.value)}catch(e){Co(r,"throw",e)}if("object"==typeof a&&a&&D(xi,a))return a}return new Zi(!1)},Ui=I.TypeError,Wi=function(e,t){if(D(t,e))return e;throw Ui("Incorrect invocation")},Vi=function(e,t,n){for(var r in t)ht(e,r,t[r],n);return e},Li=Re("species"),Xi=je.f,Pi=Ci.fastKey,Ai=st.set,Yi=st.getterFor;function Ni(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function ji(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var c=n.then;if("function"==typeof c)return void c.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var c=0;c<r.length;c++)i(c,r[c])}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",c=I.Set,a=c&&c.prototype,s=c,u={},l=function(e){var t=W(a[e]);ht(a,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!B(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!B(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!B(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(At(e,!J(c)||!(o||a.forEach&&!k((function(){(new c).entries().next()})))))s=n.getConstructor(t,e,r,i),Ci.enable();else if(At(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,h=k((function(){f.has(1)})),p=jo((function(e){new c(e)})),y=!o&&k((function(){for(var e=new c,t=5;t--;)e[i](t,t);return!e.has(-0)}));p||((s=t((function(e,t){Wi(e,a);var n=function(e,t,n){var r,o;return bo&&J(r=t.constructor)&&r!==n&&B(o=r.prototype)&&o!==n.prototype&&bo(e,o),e}(new c,e,s);return null!=t&&Fi(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=s),(h||y)&&(l("delete"),l("has"),r&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}u.Set=s,Nt({global:!0,forced:s!=c},u),nr(s,e),o||n.setStrong(s,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,o){Wi(e,i),Ai(e,{type:t,index:Jn(null),first:void 0,last:void 0,size:0}),T||(e.size=0),null!=o&&Fi(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,c=Yi(t),a=function(e,t,n){var r,o,i=c(e),a=s(e,t);return a?a.value=n:(i.last=a={index:o=Pi(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),T?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},s=function(e,t){var n,r=c(e),o=Pi(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Vi(i,{clear:function(){for(var e=c(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,T?e.size=0:this.size=0},delete:function(e){var t=this,n=c(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),T?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=c(this),r=or(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Vi(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),T&&Xi(i,"size",{get:function(){return c(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Yi(t),i=Yi(r);_o(e,t,(function(e,t){Ai(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(e){var t=H(e),n=je.f;T&&t&&!t[Li]&&n(t,Li,{configurable:!0,get:function(){return this}})}(t)}}),qn.Set;var Gi=setTimeout,Ji="undefined"!=typeof setImmediate?setImmediate:null;function Bi(e){return Boolean(e&&void 0!==e.length)}function zi(){}function Hi(e){if(!(this instanceof Hi))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],ec(e,this)}function Di(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,Hi._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void qi(t.promise,e)}Mi(t.promise,r)}else(1===e._state?Mi:qi)(t.promise,e._value)}))):e._deferreds.push(t)}function Mi(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof Hi)return e._state=3,e._value=t,void Qi(e);if("function"==typeof n)return void ec((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,Qi(e)}catch(t){qi(e,t)}var r,o}function qi(e,t){e._state=2,e._value=t,Qi(e)}function Qi(e){2===e._state&&0===e._deferreds.length&&Hi._immediateFn((function(){e._handled||Hi._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)Di(e,e._deferreds[t]);e._deferreds=null}function $i(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function ec(e,t){var n=!1;try{e((function(e){n||(n=!0,Mi(t,e))}),(function(e){n||(n=!0,qi(t,e))}))}catch(e){if(n)return;n=!0,qi(t,e)}}Hi.prototype.catch=function(e){return this.then(null,e)},Hi.prototype.then=function(e,t){var n=new this.constructor(zi);return Di(this,new $i(e,t,n)),n},Hi.prototype.finally=Ni,Hi.all=function(e){return new Hi((function(t,n){if(!Bi(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,(function(t){i(e,t)}),n)}r[e]=c,0==--o&&t(r)}catch(e){n(e)}}for(var c=0;c<r.length;c++)i(c,r[c])}))},Hi.allSettled=ji,Hi.resolve=function(e){return e&&"object"==typeof e&&e.constructor===Hi?e:new Hi((function(t){t(e)}))},Hi.reject=function(e){return new Hi((function(t,n){n(e)}))},Hi.race=function(e){return new Hi((function(t,n){if(!Bi(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)Hi.resolve(e[r]).then(t,n)}))},Hi._immediateFn="function"==typeof Ji&&function(e){Ji(e)}||function(e){Gi(e,0)},Hi._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var tc=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"function"!=typeof tc.Promise?tc.Promise=Hi:(tc.Promise.prototype.finally||(tc.Promise.prototype.finally=Ni),tc.Promise.allSettled||(tc.Promise.allSettled=ji)),function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===o.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function r(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],i=0;;){var c=t<e.length;if(!c||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!c)return o.join("");e=e.subarray(t),i=t=0}if(0==(128&(c=e[t++])))r[i++]=c;else if(192==(224&c)){var a=63&e[t++];r[i++]=(31&c)<<6|a}else if(224==(240&c)){a=63&e[t++];var s=63&e[t++];r[i++]=(31&c)<<12|a<<6|s}else 240==(248&c)&&(65535<(c=(7&c)<<18|(a=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(c-=65536,r[i++]=c>>>10&1023|55296,c=56320|1023&c),r[i++]=c)}}if(e.TextEncoder&&e.TextDecoder)return!1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(o>>>3<<3);t<n;){var c=e.charCodeAt(t++);if(55296<=c&&56319>=c){if(t<n){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,c=((1023&c)<<10)+(1023&a)+65536)}if(55296<=c&&56319>=c)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(a=new Uint8Array(o)).set(i),i=a),0==(4294967168&c))i[r++]=c;else{if(0==(4294965248&c))i[r++]=c>>>6&31|192;else if(0==(4294901760&c))i[r++]=c>>>12&15|224,i[r++]=c>>>6&63|128;else{if(0!=(4292870144&c))continue;i[r++]=c>>>18&7|240,i[r++]=c>>>12&63|128,i[r++]=c>>>6&63|128}i[r++]=63&c|128}}return i.slice?i.slice(0,r):i.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=r;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{URL.revokeObjectURL(t)}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n}("undefined"!=typeof window?window:v),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?i(e):t}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var l=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),f=function(t){r(s,t);var c=a(s);function s(){var t;return e(this,s),(t=c.call(this)).listeners||l.call(i(t)),Object.defineProperty(i(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(i(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(s,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),u(o(s.prototype),"dispatchEvent",this).call(this,e)}}]),s}(l),d=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new f,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(d.prototype[Symbol.toStringTag]="AbortController",f.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=d,e.AbortSignal=f)}("undefined"!=typeof self?self:v)}();var nc=b((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}}));m(nc);var rc=m(b((function(e,t){var n=v&&v.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(c,a)}s((r=r.apply(e,t||[])).next())}))},r=v&&v.__generator||function(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function c(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}var a=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(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),void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,a){return void 0===a&&(a=5e3),n(this,void 0,void 0,(function(){var n,s,u,l,f,d;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+c(4),s=Date.now()+a,u=o+"-"+t,l=window.localStorage,r.label=1;case 1:return Date.now()<s?[4,i(30)]:[3,8];case 2:return r.sent(),null!==l.getItem(u)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),l.setItem(u,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(d=l.getItem(u))&&(d=JSON.parse(d)).id===this.id&&d.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(u,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(s)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+c(4),[3,1];case 8:return[2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var o=this;return r(this,(function(i){return setTimeout((function(){return n(o,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return[4,nc.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(nc.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),nc.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(nc.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){var r=!1,o=Date.now(),i=!1;function c(){if(i||(window.removeEventListener("storage",c),e.removeFromWaiting(c),clearTimeout(a),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n()}}window.addEventListener("storage",c),e.addToWaiting(c);var a=setTimeout(c,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,c;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(c=n.getItem(i))?[2]:(c=JSON.parse(c)).id!==this.id?[3,2]:[4,nc.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItem(i),nc.default().unlock(c.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,c=0;c<r.length;c++){var a=r[c];if(a.includes(o)){var s=n.getItem(a);null!==s&&(void 0===(s=JSON.parse(s)).timeRefreshed&&s.timeAcquired<t||void 0!==s.timeRefreshed&&s.timeRefreshed<t)&&(n.removeItem(a),i=!0)}}i&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=a}))),oc={timeoutInSeconds:60},ic=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],cc={name:"auth0-spa-js",version:"1.19.3"},ac=function(){return Date.now()},sc=function(e){function t(n,r){var o=e.call(this,r)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return u(t,e),t.fromPayload=function(e){return new t(e.error,e.error_description)},t}(Error),uc=function(e){function t(n,r,o,i){void 0===i&&(i=null);var c=e.call(this,n,r)||this;return c.state=o,c.appState=i,Object.setPrototypeOf(c,t.prototype),c}return u(t,e),t}(sc),lc=function(e){function t(){var n=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,t.prototype),n}return u(t,e),t}(sc),fc=function(e){function t(n){var r=e.call(this)||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return u(t,e),t}(lc),dc=function(e){function t(n){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return u(t,e),t}(sc),hc=function(e){function t(n,r,o){var i=e.call(this,n,r)||this;return i.mfa_token=o,Object.setPrototypeOf(i,t.prototype),i}return u(t,e),t}(sc),pc=function(e){return new Promise((function(t,n){var r,o=setInterval((function(){e.popup&&e.popup.closed&&(clearInterval(o),clearTimeout(i),window.removeEventListener("message",r,!1),n(new dc(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new fc(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(c){if(c.data&&"authorization_response"===c.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),c.data.response.error)return n(sc.fromPayload(c.data.response));t(c.data.response)}},window.addEventListener("message",r)}))},yc=function(){return window.crypto||window.msCrypto},vc=function(){var e=yc();return e.subtle||e.webkitSubtle},mc=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(yc().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},bc=function(e){return btoa(e)},gc=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},wc=function(e){return d(void 0,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:return t=vc().digest({name:"SHA-256"},(new TextEncoder).encode(e)),window.msCrypto?[2,new Promise((function(e,n){t.oncomplete=function(t){e(t.target.result)},t.onerror=function(e){n(e.error)},t.onabort=function(){n("The digest operation was aborted")}}))]:[4,t];case 1:return[2,n.sent()]}}))}))},Sc=function(e){return function(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(e.replace(/_/g,"/").replace(/-/g,"+"))},Ic=function(e){var t=new Uint8Array(e);return function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))}(window.btoa(String.fromCharCode.apply(String,y([],p(Array.from(t)),!1))))},kc=function(e,t){return d(void 0,void 0,void 0,(function(){var n,r;return h(this,(function(o){switch(o.label){case 0:return[4,(i=e,c=t,c=c||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],a={},s=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:s,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in n.open(c.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){r.push(t=t.toLowerCase()),o.push([t,n]),a[t]=a[t]?a[t]+","+n:n})),e(s())},n.onerror=t,n.withCredentials="include"==c.credentials,c.headers)n.setRequestHeader(u,c.headers[u]);n.send(c.body||null)})))];case 1:return n=o.sent(),r={ok:n.ok},[4,n.json()];case 2:return[2,(r.json=o.sent(),r)]}var i,c}))}))},Tc=function(e,t,n){return d(void 0,void 0,void 0,(function(){var r,o;return h(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([kc(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},_c=function(e,t,n,r,o,i,c){return d(void 0,void 0,void 0,(function(){return h(this,(function(a){return[2,(s={auth:{audience:t,scope:n},timeout:o,fetchUrl:e,fetchOptions:r,useFormData:c},u=i,new Promise((function(e,t){var n=new MessageChannel;n.port1.onmessage=function(n){n.data.error?t(new Error(n.data.error)):e(n.data)},u.postMessage(s,[n.port2])})))];var s,u}))}))},Ec=function(e,t,n,r,o,i,c){return void 0===c&&(c=1e4),d(void 0,void 0,void 0,(function(){return h(this,(function(a){return o?[2,_c(e,t,n,r,c,o,i)]:[2,Tc(e,r,c)]}))}))};function Oc(e,t,n,r,o,i,c){return d(this,void 0,void 0,(function(){var a,s,u,l,d,p,y,v,m;return h(this,(function(h){switch(h.label){case 0:a=null,u=0,h.label=1;case 1:if(!(u<3))return[3,6];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,Ec(e,n,r,o,i,c,t)];case 3:return s=h.sent(),a=null,[3,6];case 4:return l=h.sent(),a=l,[3,5];case 5:return u++,[3,1];case 6:if(a)throw a.message=a.message||"Failed to fetch",a;if(d=s.json,p=d.error,y=d.error_description,v=f(d,["error","error_description"]),!s.ok){if(m=y||"HTTP error. Unable to fetch "+e,"mfa_required"===p)throw new hc(p,m,v.mfa_token);throw new sc(p||"request_error",m)}return[2,v]}}))}))}function Rc(e,t){var n=e.baseUrl,r=e.timeout,o=e.audience,i=e.scope,c=e.auth0Client,a=e.useFormData,s=f(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return d(this,void 0,void 0,(function(){var e;return h(this,(function(u){switch(u.label){case 0:return e=a?gc(s):JSON.stringify(s),[4,Oc(n+"/oauth/token",r,o||"default",i,{method:"POST",body:e,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(c||cc))}},t,a)];case 1:return[2,u.sent()]}}))}))}var Cc=function(e){return Array.from(new Set(e))},Kc=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cc(e.join(" ").trim().split(/\s+/)).join(" ")},Zc=function(){function e(e,t){void 0===t&&(t="@@auth0spajs@@"),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return e.prototype.toKey=function(){return this.prefix+"::"+this.client_id+"::"+this.audience+"::"+this.scope},e.fromKey=function(t){var n=p(t.split("::"),4),r=n[0],o=n[1],i=n[2];return new e({client_id:o,scope:n[3],audience:i},r)},e.fromCacheEntry=function(t){return new e({scope:t.scope,audience:t.audience,client_id:t.client_id})},e}(),xc=function(){function e(){}return e.prototype.set=function(e,t){localStorage.setItem(e,JSON.stringify(t))},e.prototype.get=function(e){var t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}},e.prototype.remove=function(e){localStorage.removeItem(e)},e.prototype.allKeys=function(){return Object.keys(window.localStorage).filter((function(e){return e.startsWith("@@auth0spajs@@")}))},e}(),Fc=function(){var e;this.enclosedCache=(e={},{set:function(t,n){e[t]=n},get:function(t){var n=e[t];if(n)return n},remove:function(t){delete e[t]},allKeys:function(){return Object.keys(e)}})},Uc=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||ac}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),d(this,void 0,void 0,(function(){var r,o,i,c,a;return h(this,(function(s){switch(s.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=s.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=s.sent())?(i=this.matchExistingCacheKey(e,o),[4,this.cache.get(i)]):[2];case 3:r=s.sent(),s.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return c=s.sent(),a=Math.floor(c/1e3),r.expiresAt-t<a?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return s.sent(),[2,r.body];case 7:return[4,this.cache.remove(e.toKey())];case 8:return s.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return s.sent(),[2];case 10:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return d(this,void 0,void 0,(function(){var n,r;return h(this,(function(o){switch(o.label){case 0:return n=new Zc({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=o.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return o.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return d(this,void 0,void 0,(function(){var n,r=this;return h(this,(function(o){switch(o.label){case 0:return[4,this.getCacheKeys()];case 1:return(n=o.sent())?[4,n.filter((function(t){return!e||t.includes(e)})).reduce((function(e,t){return d(r,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return n.sent(),[4,this.cache.remove(t)];case 2:return n.sent(),[2]}}))}))}),Promise.resolve())]:[2];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.clear()];case 3:return o.sent(),[2]}}))}))},e.prototype.clearSync=function(e){var t=this,n=this.cache.allKeys();n&&n.filter((function(t){return!e||t.includes(e)})).forEach((function(e){t.cache.remove(e)}))},e.prototype.wrapCacheEntry=function(e){return d(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return t=o.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return d(this,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return t=null===(e=n.sent())||void 0===e?void 0:e.keys,[3,4];case 2:return[4,this.cache.allKeys()];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}}))}))},e.prototype.matchExistingCacheKey=function(e,t){return t.filter((function(t){var n=Zc.fromKey(t),r=new Set(n.scope&&n.scope.split(" ")),o=e.scope.split(" "),i=n.scope&&o.reduce((function(e,t){return e&&r.has(t)}),!0);return"@@auth0spajs@@"===n.prefix&&n.client_id===e.client_id&&n.audience===e.audience&&i}))[0]},e}(),Wc=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="a0.spajs.txs."+this.clientId,this.transaction=this.storage.get(this.storageKey)}return e.prototype.create=function(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove(this.storageKey)},e}(),Vc=function(e){return"number"==typeof e},Lc=["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"],Xc=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=p(t,3),r=n[0],o=n[1],i=n[2];if(3!==t.length||!r||!o||!i)throw new Error("ID token could not be decoded");var c=JSON.parse(Sc(o)),a={__raw:e},s={};return Object.keys(c).forEach((function(e){a[e]=c[e],Lc.includes(e)||(s[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Sc(r)),claims:a,user:s}}(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'+e.iss+'", found "'+t.claims.iss+'"');if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'+t.header.alg+'" is not supported. Expected the ID token to be signed with "RS256".');if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but was not one of "'+t.claims.aud.join(", ")+'"');if(t.claims.aud.length>1){if(!t.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(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'+e.aud+'", found "'+t.claims.azp+'"')}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'+e.aud+'" but found "'+t.claims.aud+'"');if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'+e.nonce+'", found "'+t.claims.nonce+'"')}if(e.max_age&&!Vc(t.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(!Vc(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Vc(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=e.leeway||60,r=new Date(e.now||Date.now()),o=new Date(0),i=new Date(0),c=new Date(0);if(c.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),o.setUTCSeconds(t.claims.exp+n),i.setUTCSeconds(t.claims.nbf-n),r>o)throw new Error("Expiration Time (exp) claim error in the ID token; current time ("+r+") is after expiration time ("+o+")");if(Vc(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time ("+r+") is before "+i);if(Vc(t.claims.auth_time)&&r>c)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 ("+r+") is after last auth at "+c);if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'+e.organizationId+'", found "'+t.claims.org_id+'"')}return t},Pc=b((function(e,t){var n=v&&v.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function o(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),c=i.slice(1).join("=");'"'===c.charAt(0)&&(c=c.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=c.replace(r,decodeURIComponent)}catch(e){}}return t}function c(){return i(document.cookie)}function a(e,t,r){document.cookie=o(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=c,t.get=function(e){return c()[e]},t.set=a,t.remove=function(e,t){a(e,"",n(n({},t),{expires:-1}))}}));m(Pc),Pc.encode,Pc.parse,Pc.getAll;var Ac=Pc.get,Yc=Pc.set,Nc=Pc.remove,jc={get:function(e){var t=Ac(e);if(void 0!==t)return JSON.parse(t)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),Yc(e,JSON.stringify(t),r)},remove:function(e){Nc(e)}},Gc={get:function(e){return jc.get(e)||jc.get("_legacy_"+e)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),Yc("_legacy_"+e,JSON.stringify(t),r),jc.save(e,t,n)},remove:function(e){jc.remove(e),jc.remove("_legacy_"+e)}},Jc={get:function(e){if("undefined"!=typeof sessionStorage){var t=sessionStorage.getItem(e);if(void 0!==t)return JSON.parse(t)}},save:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove:function(e){sessionStorage.removeItem(e)}};var Bc,zc=("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7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dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",null,!1,function(e){return Bc=Bc||function(e,t,n){var r=void 0===t?null:t,o=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),o=0,i=n.length;o<i;++o)r[o]=n.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),i=o.indexOf("\n",10)+1,c=o.substring(i)+(r?"//# sourceMappingURL="+r:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQogICAgQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIF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WzMsNV07Y2FzZSA0OnJldHVybiB3PXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOncubWVzc2FnZX0pLFsyXTtjYXNlIDU6cmV0dXJuIHY/WzQsdi5qc29uKCldOihkJiZkLmFib3J0KCksaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KSxbMl0pO2Nhc2UgNjpyZXR1cm4ocj10LnNlbnQoKSkucmVmcmVzaF90b2tlbj8oZnVuY3Rpb24oZSxyLHQpe25bbyhyLHQpXT1lfShyLnJlZnJlc2hfdG9rZW4scyxwKSxkZWxldGUgci5yZWZyZXNoX3Rva2VuKTpmdW5jdGlvbihlLHIpe2RlbGV0ZSBuW28oZSxyKV19KHMscCksaC5wb3N0TWVzc2FnZSh7b2s6di5vayxqc29uOnJ9KSxbMyw4XTtjYXNlIDc6cmV0dXJuIGc9dC5zZW50KCksaC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3JfZGVzY3JpcHRpb246Zy5tZXNzYWdlfX0pLFszLDhdO2Nhc2UgODpyZXR1cm5bMl19dmFyIG0sayxTLF99KSl9KSl9KSl9KCk7Cgo=",null,false),new Worker(Bc,e)}),Hc={},Dc=function(){function e(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}return e.prototype.add=function(e){var t;return d(this,void 0,void 0,(function(){var n,r;return h(this,(function(o){switch(o.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return(n=new(r.apply(Set,[void 0,(null===(t=o.sent())||void 0===t?void 0:t.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:y([],p(n),!1)})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return d(this,void 0,void 0,(function(){var t,n;return h(this,(function(r){switch(r.label){case 0:return[4,this.cache.get(this.manifestKey)];case 1:return(t=r.sent())?((n=new Set(t.keys)).delete(e),n.size>0?[4,this.cache.set(this.manifestKey,{keys:y([],p(n),!1)})]:[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]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return"@@auth0spajs@@::"+e},e}(),Mc=new rc,qc={memory:function(){return(new Fc).enclosedCache},localstorage:function(){return new xc}},Qc=function(e){return qc[e]},$c=function(){function e(e){var t,n,r;if(this.options=e,"undefined"!=typeof window&&function(){if(!yc())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===vc())throw new Error("\n 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.\n ")}(),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",!Qc(this.cacheLocation))throw new Error('Invalid cache location "'+this.cacheLocation+'"');r=Qc(this.cacheLocation)()}this.cookieStorage=!1===e.legacySameSiteCookie?jc:Gc,this.orgHintCookieName="auth0."+this.options.client_id+".organization_hint",this.isAuthenticatedCookieName=function(e){return"auth0."+e+".is.authenticated"}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var o,i=e.useCookiesForTransactions?this.cookieStorage:Jc;this.scope=this.options.scope,this.transactionManager=new Wc(i,this.options.client_id),this.nowProvider=this.options.nowProvider||ac,this.cacheManager=new Uc(r,r.allKeys?null:new Dc(r,this.options.client_id),this.nowProvider),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:"https://"+o),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://"+e+"/":t+"/"}(this.options.issuer,this.domainUrl),this.defaultScope=Kc("openid",void 0!==(null===(n=null===(t=this.options)||void 0===t?void 0:t.advancedOptions)||void 0===n?void 0:n.defaultScope)?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=Kc(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&!/Trident.*rv:11\.0/.test(navigator.userAgent)&&(this.worker=new zc),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.redirect_uri,e.scope,e.useRefreshTokens,e.useCookiesForTransactions,e.useFormData,f(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","client_id","domain","issuer","leeway","max_age","redirect_uri","scope","useRefreshTokens","useCookiesForTransactions","useFormData"])}(e)}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||cc)));return""+this.domainUrl+e+"&auth0Client="+t},e.prototype._getParams=function(e,t,n,r,o){var i=this.options;i.useRefreshTokens,i.useCookiesForTransactions,i.useFormData,i.auth0Client,i.cacheLocation,i.advancedOptions,i.detailedResponse,i.nowProvider,i.authorizeTimeoutInSeconds,i.legacySameSiteCookie,i.sessionCheckExpiryDays,i.domain,i.leeway;var c=f(i,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway"]);return l(l(l({},c),e),{scope:Kc(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:n,redirect_uri:o||this.options.redirect_uri,code_challenge:r,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?"+gc(e))},e.prototype._verifyIdToken=function(e,t,n){return d(this,void 0,void 0,(function(){var r;return h(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return r=o.sent(),[2,Xc({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:r})]}}))}))},e.prototype._parseNumber=function(e){return"string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e):this.cookieStorage.remove(this.orgHintCookieName)},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,d,p,y;return h(this,(function(h){switch(h.label){case 0:return t=e.redirect_uri,n=e.appState,r=f(e,["redirect_uri","appState"]),o=bc(mc()),i=bc(mc()),c=mc(),[4,wc(c)];case 1:return a=h.sent(),s=Ic(a),u=e.fragment?"#"+e.fragment:"",d=this._getParams(r,o,i,s,t),p=this._authorizeUrl(d),y=e.organization||this.options.organization,this.transactionManager.create(l({nonce:i,code_verifier:c,appState:n,scope:d.scope,audience:d.audience||"default",redirect_uri:d.redirect_uri,state:o},y&&{organizationId:y})),[2,p+u]}}))}))},e.prototype.loginWithPopup=function(e,t){return d(this,void 0,void 0,(function(){var n,r,o,i,c,a,s,u,d,p,y,v,m;return h(this,(function(h){switch(h.label){case 0:return e=e||{},(t=t||{}).popup||(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup","left="+t+",top="+n+",width=400,height=600,resizable,scrollbars=yes,status=1")}()),n=f(e,[]),r=bc(mc()),o=bc(mc()),i=mc(),[4,wc(i)];case 1:return c=h.sent(),a=Ic(c),s=this._getParams(n,r,o,a,this.options.redirect_uri||window.location.origin),u=this._authorizeUrl(l(l({},s),{response_mode:"web_message"})),t.popup.location.href=u,[4,pc(l(l({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(d=h.sent(),r!==d.state)throw new Error("Invalid state");return[4,Rc({audience:s.audience,scope:s.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:i,code:d.code,grant_type:"authorization_code",redirect_uri:s.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},this.worker)];case 3:return p=h.sent(),y=e.organization||this.options.organization,[4,this._verifyIdToken(p.id_token,o,y)];case 4:return v=h.sent(),m=l(l({},p),{decodedToken:v,scope:s.scope,audience:s.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 5:return h.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(v.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=Kc(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Zc({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.user]}}))}))},e.prototype.getIdTokenClaims=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=Kc(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new Zc({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},e.prototype.loginWithRedirect=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r;return h(this,(function(o){switch(o.label){case 0:return t=e.redirectMethod,n=f(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return r=o.sent(),window.location[t||"assign"](r),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,f;return h(this,(function(d){switch(d.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(n=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=p(e.split("="),2),r=t[0],o=t[1];n[r]=decodeURIComponent(o)})),n.expires_in&&(n.expires_in=parseInt(n.expires_in)),n}(t.join("")),r=n.state,o=n.code,i=n.error,c=n.error_description,!(a=this.transactionManager.get()))throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new uc(i,c,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Error("Invalid state");return s={audience:a.audience,scope:a.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData},void 0!==a.redirect_uri&&(s.redirect_uri=a.redirect_uri),[4,Rc(s,this.worker)];case 1:return u=d.sent(),[4,this._verifyIdToken(u.id_token,a.nonce,a.organizationId)];case 2:return f=d.sent(),[4,this.cacheManager.set(l(l(l(l({},u),{decodedToken:f,audience:a.audience,scope:a.scope}),u.scope?{oauthTokenScope:u.scope}:null),{client_id:this.options.client_id}))];case 3:return d.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this._processOrgIdHint(f.claims.org_id),[2,{appState:a.appState}]}}))}))},e.prototype.checkSession=function(e){return d(this,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return[2];this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),this.cookieStorage.remove("auth0.is.authenticated")}n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return n.sent(),[3,4];case 3:if(t=n.sent(),!ic.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o=this;return h(this,(function(i){return t=l(l({audience:this.options.audience,ignoreCache:!1},e),{scope:Kc(this.defaultScope,this.scope,e.scope)}),n=t.ignoreCache,r=f(t,["ignoreCache"]),[2,(c=function(){return o._getTokenSilently(l({ignoreCache:n},r))},a=this.options.client_id+"::"+r.audience+"::"+r.scope,s=Hc[a],s||(s=c().finally((function(){delete Hc[a],s=null})),Hc[a]=s),s)];var c,a,s}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return h(this,(function(p){switch(p.label){case 0:return t=e.ignoreCache,n=f(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 1:if(r=p.sent())return[2,r];p.label=2;case 2:return[4,(y=function(){return Mc.acquireLock("auth0.lock.getTokenSilently",5e3)},v=10,void 0===v&&(v=3),d(void 0,void 0,void 0,(function(){var e;return h(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<v?[4,y()]:[3,4];case 2:if(t.sent())return[2,!0];t.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!p.sent())return[3,15];p.label=4;case 4:return p.trys.push([4,,12,14]),t?[3,6]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 5:if(r=p.sent())return[2,r];p.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(n)]:[3,8];case 7:return i=p.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(n)];case 9:i=p.sent(),p.label=10;case 10:return o=i,[4,this.cacheManager.set(l({client_id:this.options.client_id},o))];case 11:return p.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays}),e.detailedResponse?(c=o.id_token,a=o.access_token,s=o.oauthTokenScope,u=o.expires_in,[2,l(l({id_token:c,access_token:a},s?{scope:s}:null),{expires_in:u})]):[2,o.access_token];case 12:return[4,Mc.releaseLock("auth0.lock.getTokenSilently")];case 13:return p.sent(),[7];case 14:return[3,16];case 15:throw new lc;case 16:return[2]}var y,v}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),d(this,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=Kc(this.defaultScope,this.scope,e.scope),t=l(l({},oc),t),[4,this.loginWithPopup(e,t)];case 1:return n.sent(),[4,this.cacheManager.get(new Zc({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,n.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return[4,this.getUser()];case 1:return[2,!!e.sent()]}}))}))},e.prototype.buildLogoutUrl=function(e){void 0===e&&(e={}),null!==e.client_id?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var t=e.federated,n=f(e,["federated"]),r=t?"&federated":"";return this._url("/v2/logout?"+gc(n))+r},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,r=f(e,["localOnly"]);if(n&&r.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var o=function(){if(t.cookieStorage.remove(t.orgHintCookieName),t.cookieStorage.remove(t.isAuthenticatedCookieName),!n){var e=t.buildLogoutUrl(r);window.location.assign(e)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return o()}));this.cacheManager.clearSync(),o()},e.prototype._getTokenFromIFrame=function(e){return d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,d,p,y,v,m,b,g,w;return h(this,(function(h){switch(h.label){case 0:return t=bc(mc()),n=bc(mc()),r=mc(),[4,wc(r)];case 1:o=h.sent(),i=Ic(o),c=f(e,["detailedResponse"]),a=this._getParams(c,t,n,i,e.redirect_uri||this.options.redirect_uri||window.location.origin),(s=this.cookieStorage.get(this.orgHintCookieName))&&!a.organization&&(a.organization=s),u=this._authorizeUrl(l(l({},a),{prompt:"none",response_mode:"web_message"})),d=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h.label=2;case 2:if(h.trys.push([2,6,,7]),window.crossOriginIsolated)throw new sc("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return[4,(S=u,I=this.domainUrl,k=d,void 0===k&&(k=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,o=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1))},i=setTimeout((function(){t(new lc),o()}),1e3*k);r=function(n){if(n.origin==I&&n.data&&"authorization_response"===n.data.type){var c=n.source;c&&c.close(),n.data.response.error?t(sc.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3)}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",S)})))];case 3:if(p=h.sent(),t!==p.state)throw new Error("Invalid state");return y=e.scope,v=e.audience,m=f(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,Rc(l(l(l({},this.customOptions),m),{scope:y,audience:v,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:p.code,grant_type:"authorization_code",redirect_uri:a.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 4:return b=h.sent(),[4,this._verifyIdToken(b.id_token,n)];case 5:return g=h.sent(),this._processOrgIdHint(g.claims.org_id),[2,l(l({},b),{decodedToken:g,scope:a.scope,oauthTokenScope:b.scope,audience:a.audience||"default"})];case 6:throw"login_required"===(w=h.sent()).error&&this.logout({localOnly:!0}),w;case 7:return[2]}var S,I,k}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return d(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return h(this,(function(d){switch(d.label){case 0:return e.scope=Kc(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new Zc({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=d.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return[2,d.sent()];case 3:n=e.redirect_uri||this.options.redirect_uri||window.location.origin,o=e.scope,i=e.audience,c=f(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),a="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,d.label=4;case 4:return d.trys.push([4,6,,9]),[4,Rc(l(l(l(l(l({},this.customOptions),c),{audience:i,scope:o,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),a&&{timeout:a}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData}),this.worker)];case 5:return r=d.sent(),[3,9];case 6:return"The web worker is missing the refresh token"===(s=d.sent()).message||s.message&&s.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return[2,d.sent()];case 8:throw s;case 9:return[4,this._verifyIdToken(r.id_token)];case 10:return u=d.sent(),[2,l(l({},r),{decodedToken:u,scope:e.scope,oauthTokenScope:r.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,n=e.audience,r=e.client_id,o=e.getDetailedEntry,i=void 0!==o&&o;return d(this,void 0,void 0,(function(){var e,o,c,a,s;return h(this,(function(u){switch(u.label){case 0:return[4,this.cacheManager.get(new Zc({scope:t,audience:n,client_id:r}),60)];case 1:return(e=u.sent())&&e.access_token?i?(o=e.id_token,c=e.access_token,a=e.oauthTokenScope,s=e.expires_in,[2,l(l({id_token:o,access_token:c},a?{scope:a}:null),{expires_in:s})]):[2,e.access_token]:[2]}}))}))},e}(),ea={isAuthenticated:!1,isLoading:!0},ta=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},na=o(o({},ea),{buildAuthorizeUrl:ta,buildLogoutUrl:ta,getAccessTokenSilently:ta,getAccessTokenWithPopup:ta,getIdTokenClaims:ta,loginWithRedirect:ta,loginWithPopup:ta,logout:ta,handleRedirectCallback:ta}),ra=t.createContext(na),oa=function(e){function t(t,n){var r=e.call(this,n||t)||this;return r.error=t,r.error_description=n,r}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),ia=/[?&]code=[^&]+/,ca=/[?&]state=[^&]+/,aa=/[?&]error=[^&]+/,sa=function(e){return function(t){return"error"in t?new oa(t.error,t.error_description):t instanceof Error?t:new Error(e)}},ua=sa("Login failed"),la=sa("Get access token failed"),fa=function(e,t){var n,r;switch(t.type){case"LOGIN_POPUP_STARTED":return o(o({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return o(o({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return(null===(n=e.user)||void 0===n?void 0:n.updated_at)===(null===(r=t.user)||void 0===r?void 0:r.updated_at)?e:o(o({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return o(o({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return o(o({},e),{isLoading:!1,error:t.error})}},da=function(e){if(e){var t=e.redirectUri,n=i(e,["redirectUri"]);return o(o({},n),{redirect_uri:t})}},ha=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},pa=function(){return t.useContext(ra)},ya=function(){return n.createElement(n.Fragment,null)},va=function(){return"".concat(window.location.pathname).concat(window.location.search)};e.Auth0Context=ra,e.Auth0Provider=function(e){var r=e.children,s=e.skipRedirectCallback,u=e.onRedirectCallback,l=void 0===u?ha:u,f=i(e,["children","skipRedirectCallback","onRedirectCallback"]),d=t.useState((function(){return new $c(function(e){var t=e.clientId,n=e.redirectUri,r=e.maxAge,c=i(e,["clientId","redirectUri","maxAge"]);return o(o({},c),{client_id:t,redirect_uri:n,max_age:r,auth0Client:{name:"auth0-react",version:"1.9.0"}})}(f))}))[0],h=t.useReducer(fa,ea),p=h[0],y=h[1];t.useEffect((function(){c(void 0,void 0,void 0,(function(){var e,t,n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),void 0===o&&(o=window.location.search),!ia.test(o)&&!aa.test(o)||!ca.test(o)||s?[3,2]:[4,d.handleRedirectCallback()];case 1:return e=r.sent().appState,l(e),[3,4];case 2:return[4,d.checkSession()];case 3:r.sent(),r.label=4;case 4:return[4,d.getUser()];case 5:return t=r.sent(),y({type:"INITIALISED",user:t}),[3,7];case 6:return n=r.sent(),y({type:"ERROR",error:ua(n)}),[3,7];case 7:return[2]}var o}))}))}),[d,l,s]);var v=t.useCallback((function(e){return d.buildAuthorizeUrl(da(e))}),[d]),m=t.useCallback((function(e){return d.buildLogoutUrl(e)}),[d]),b=t.useCallback((function(e){return d.loginWithRedirect(da(e))}),[d]),g=t.useCallback((function(e,t){return c(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:y({type:"LOGIN_POPUP_STARTED"}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,d.loginWithPopup(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),y({type:"ERROR",error:ua(n)}),[2];case 4:return[4,d.getUser()];case 5:return r=o.sent(),y({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[d]),w=t.useCallback((function(e){void 0===e&&(e={});var t=d.logout(e);if(e.localOnly){if(t&&"function"==typeof t.then)return t.then((function(){return y({type:"LOGOUT"})}));y({type:"LOGOUT"})}return t}),[d]),S=t.useCallback((function(e){return c(void 0,void 0,void 0,(function(){var t,n,r,o;return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,d.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw n=i.sent(),la(n);case 3:return r=y,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return r.apply(void 0,[(o.user=i.sent(),o)]),[7];case 5:return[2,t]}}))}))}),[d]),I=t.useCallback((function(e,t){return c(void 0,void 0,void 0,(function(){var n,r,o,i;return a(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,5]),[4,d.getTokenWithPopup(e,t)];case 1:return n=c.sent(),[3,5];case 2:throw r=c.sent(),la(r);case 3:return o=y,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return o.apply(void 0,[(i.user=c.sent(),i)]),[7];case 5:return[2,n]}}))}))}),[d]),k=t.useCallback((function(e){return d.getIdTokenClaims(e)}),[d]),T=t.useCallback((function(e){return c(void 0,void 0,void 0,(function(){var t,n,r;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,d.handleRedirectCallback(e)];case 1:return[2,o.sent()];case 2:throw t=o.sent(),la(t);case 3:return n=y,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,d.getUser()];case 4:return n.apply(void 0,[(r.user=o.sent(),r)]),[7];case 5:return[2]}}))}))}),[d]),_=t.useMemo((function(){return o(o({},p),{buildAuthorizeUrl:v,buildLogoutUrl:m,getAccessTokenSilently:S,getAccessTokenWithPopup:I,getIdTokenClaims:k,loginWithRedirect:b,loginWithPopup:g,logout:w,handleRedirectCallback:T})}),[p,v,m,S,I,k,b,g,w,T]);return n.createElement(ra.Provider,{value:_},r)},e.InMemoryCache=Fc,e.LocalStorageCache=xc,e.OAuthError=oa,e.User=function(){},e.useAuth0=pa,e.withAuth0=function(e){return function(t){return n.createElement(ra.Consumer,null,(function(r){return n.createElement(e,o({},t,{auth0:r}))}))}},e.withAuthenticationRequired=function(e,r){return void 0===r&&(r={}),function(i){var s=this,u=pa(),l=u.user,f=u.isAuthenticated,d=u.isLoading,h=u.loginWithRedirect,p=r.returnTo,y=void 0===p?va:p,v=r.onRedirecting,m=void 0===v?ya:v,b=r.claimCheck,g=void 0===b?function(){return!0}:b,w=r.loginOptions,S=f&&g(l);return t.useEffect((function(){if(!d&&!S){var e=o(o({},w),{appState:o(o({},w&&w.appState),{returnTo:"function"==typeof y?y():y})});c(s,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,h(e)];case 1:return t.sent(),[2]}}))}))}}),[d,S,h,w,y]),S?n.createElement(e,o({},i)):m()}},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
29
|
+
***************************************************************************** */var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function h(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,a)}s((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function v(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e,t){return e(t={exports:{}},t.exports),t.exports}var w,S,I=function(e){return e&&e.Math==Math&&e},k=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof m&&m)||function(){return this}()||Function("return this")(),T=function(e){try{return!!e()}catch(e){return!0}},_=!T((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=!T((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),C=Function.prototype.call,K=E?C.bind(C):function(){return C.apply(C,arguments)},O={}.propertyIsEnumerable,x=Object.getOwnPropertyDescriptor,Z={f:x&&!O.call({1:2},1)?function(e){var t=x(this,e);return!!t&&t.enumerable}:O},U=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},W=Function.prototype,R=W.bind,G=W.call,X=E&&R.bind(G,G),F=E?function(e){return e&&X(e)}:function(e){return e&&function(){return G.apply(e,arguments)}},V=F({}.toString),P=F("".slice),L=function(e){return P(V(e),8,-1)},j=k.Object,A=F("".split),Y=T((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"==L(e)?A(e,""):j(e)}:j,N=k.TypeError,J=function(e){if(null==e)throw N("Can't call method on "+e);return e},B=function(e){return Y(J(e))},z=function(e){return"function"==typeof e},M=function(e){return"object"==typeof e?null!==e:z(e)},H=function(e){return z(e)?e:void 0},D=function(e,t){return arguments.length<2?H(k[e]):k[e]&&k[e][t]},q=F({}.isPrototypeOf),Q=D("navigator","userAgent")||"",$=k.process,ee=k.Deno,te=$&&$.versions||ee&&ee.version,ne=te&&te.v8;ne&&(S=(w=ne.split("."))[0]>0&&w[0]<4?1:+(w[0]+w[1])),!S&&Q&&(!(w=Q.match(/Edge\/(\d+)/))||w[1]>=74)&&(w=Q.match(/Chrome\/(\d+)/))&&(S=+w[1]);var re=S,oe=!!Object.getOwnPropertySymbols&&!T((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&re&&re<41})),ie=oe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ce=k.Object,ae=ie?function(e){return"symbol"==typeof e}:function(e){var t=D("Symbol");return z(t)&&q(t.prototype,ce(e))},se=k.String,ue=function(e){try{return se(e)}catch(e){return"Object"}},le=k.TypeError,fe=function(e){if(z(e))return e;throw le(ue(e)+" is not a function")},de=function(e,t){var n=e[t];return null==n?void 0:fe(n)},he=k.TypeError,pe=Object.defineProperty,ye=function(e,t){try{pe(k,e,{value:t,configurable:!0,writable:!0})}catch(n){k[e]=t}return t},ve=k["__core-js_shared__"]||ye("__core-js_shared__",{}),me=g((function(e){(e.exports=function(e,t){return ve[e]||(ve[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),be=k.Object,ge=function(e){return be(J(e))},we=F({}.hasOwnProperty),Se=Object.hasOwn||function(e,t){return we(ge(e),t)},Ie=0,ke=Math.random(),Te=F(1..toString),_e=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Te(++Ie+ke,36)},Ee=me("wks"),Ce=k.Symbol,Ke=Ce&&Ce.for,Oe=ie?Ce:Ce&&Ce.withoutSetter||_e,xe=function(e){if(!Se(Ee,e)||!oe&&"string"!=typeof Ee[e]){var t="Symbol."+e;oe&&Se(Ce,e)?Ee[e]=Ce[e]:Ee[e]=ie&&Ke?Ke(t):Oe(t)}return Ee[e]},Ze=k.TypeError,Ue=xe("toPrimitive"),We=function(e){var t=function(e,t){if(!M(e)||ae(e))return e;var n,r=de(e,Ue);if(r){if(void 0===t&&(t="default"),n=K(r,e,t),!M(n)||ae(n))return n;throw Ze("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&z(n=e.toString)&&!M(r=K(n,e)))return r;if(z(n=e.valueOf)&&!M(r=K(n,e)))return r;if("string"!==t&&z(n=e.toString)&&!M(r=K(n,e)))return r;throw he("Can't convert object to primitive value")}(e,t)}(e,"string");return ae(t)?t:t+""},Re=k.document,Ge=M(Re)&&M(Re.createElement),Xe=function(e){return Ge?Re.createElement(e):{}},Fe=!_&&!T((function(){return 7!=Object.defineProperty(Xe("div"),"a",{get:function(){return 7}}).a})),Ve=Object.getOwnPropertyDescriptor,Pe={f:_?Ve:function(e,t){if(e=B(e),t=We(t),Fe)try{return Ve(e,t)}catch(e){}if(Se(e,t))return U(!K(Z.f,e,t),e[t])}},Le=_&&T((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),je=k.String,Ae=k.TypeError,Ye=function(e){if(M(e))return e;throw Ae(je(e)+" is not an object")},Ne=k.TypeError,Je=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,ze={f:_?Le?function(e,t,n){if(Ye(e),t=We(t),Ye(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Be(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Je(e,t,n)}:Je:function(e,t,n){if(Ye(e),t=We(t),Ye(n),Fe)try{return Je(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ne("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Me=_?function(e,t,n){return ze.f(e,t,U(1,n))}:function(e,t,n){return e[t]=n,e},He=F(Function.toString);z(ve.inspectSource)||(ve.inspectSource=function(e){return He(e)});var De,qe,Qe,$e=ve.inspectSource,et=k.WeakMap,tt=z(et)&&/native code/.test($e(et)),nt=me("keys"),rt=function(e){return nt[e]||(nt[e]=_e(e))},ot={},it=k.TypeError,ct=k.WeakMap;if(tt||ve.state){var at=ve.state||(ve.state=new ct),st=F(at.get),ut=F(at.has),lt=F(at.set);De=function(e,t){if(ut(at,e))throw new it("Object already initialized");return t.facade=e,lt(at,e,t),t},qe=function(e){return st(at,e)||{}},Qe=function(e){return ut(at,e)}}else{var ft=rt("state");ot[ft]=!0,De=function(e,t){if(Se(e,ft))throw new it("Object already initialized");return t.facade=e,Me(e,ft,t),t},qe=function(e){return Se(e,ft)?e[ft]:{}},Qe=function(e){return Se(e,ft)}}var dt={set:De,get:qe,has:Qe,enforce:function(e){return Qe(e)?qe(e):De(e,{})},getterFor:function(e){return function(t){var n;if(!M(t)||(n=qe(t)).type!==e)throw it("Incompatible receiver, "+e+" required");return n}}},ht=Function.prototype,pt=_&&Object.getOwnPropertyDescriptor,yt=Se(ht,"name"),vt={EXISTS:yt,PROPER:yt&&"something"===function(){}.name,CONFIGURABLE:yt&&(!_||_&&pt(ht,"name").configurable)},mt=g((function(e){var t=vt.CONFIGURABLE,n=dt.get,r=dt.enforce,o=String(String).split("String");(e.exports=function(e,n,i,c){var a,s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet,f=c&&void 0!==c.name?c.name:n;z(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Se(i,"name")||t&&i.name!==f)&&Me(i,"name",f),(a=r(i)).source||(a.source=o.join("string"==typeof f?f:""))),e!==k?(s?!l&&e[n]&&(u=!0):delete e[n],u?e[n]=i:Me(e,n,i)):u?e[n]=i:ye(n,i)})(Function.prototype,"toString",(function(){return z(this)&&n(this).source||$e(this)}))})),bt=Math.ceil,gt=Math.floor,wt=function(e){var t=+e;return t!=t||0===t?0:(t>0?gt:bt)(t)},St=Math.max,It=Math.min,kt=function(e,t){var n=wt(e);return n<0?St(n+t,0):It(n,t)},Tt=Math.min,_t=function(e){return e>0?Tt(wt(e),9007199254740991):0},Et=function(e){return _t(e.length)},Ct=function(e){return function(t,n,r){var o,i=B(t),c=Et(i),a=kt(r,c);if(e&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Kt={includes:Ct(!0),indexOf:Ct(!1)},Ot=Kt.indexOf,xt=F([].push),Zt=function(e,t){var n,r=B(e),o=0,i=[];for(n in r)!Se(ot,n)&&Se(r,n)&&xt(i,n);for(;t.length>o;)Se(r,n=t[o++])&&(~Ot(i,n)||xt(i,n));return i},Ut=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wt=Ut.concat("length","prototype"),Rt={f:Object.getOwnPropertyNames||function(e){return Zt(e,Wt)}},Gt={f:Object.getOwnPropertySymbols},Xt=F([].concat),Ft=D("Reflect","ownKeys")||function(e){var t=Rt.f(Ye(e)),n=Gt.f;return n?Xt(t,n(e)):t},Vt=function(e,t,n){for(var r=Ft(t),o=ze.f,i=Pe.f,c=0;c<r.length;c++){var a=r[c];Se(e,a)||n&&Se(n,a)||o(e,a,i(t,a))}},Pt=/#|\.prototype\./,Lt=function(e,t){var n=At[jt(e)];return n==Nt||n!=Yt&&(z(t)?T(t):!!t)},jt=Lt.normalize=function(e){return String(e).replace(Pt,".").toLowerCase()},At=Lt.data={},Yt=Lt.NATIVE="N",Nt=Lt.POLYFILL="P",Jt=Lt,Bt=Pe.f,zt=function(e,t){var n,r,o,i,c,a=e.target,s=e.global,u=e.stat;if(n=s?k:u?k[a]||ye(a,{}):(k[a]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(c=Bt(n,r))&&c.value:n[r],!Jt(s?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vt(i,o)}(e.sham||o&&o.sham)&&Me(i,"sham",!0),mt(n,r,i,e)}},Mt={};Mt[xe("toStringTag")]="z";var Ht,Dt="[object z]"===String(Mt),qt=xe("toStringTag"),Qt=k.Object,$t="Arguments"==L(function(){return arguments}()),en=Dt?L:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Qt(e),qt))?n:$t?L(t):"Object"==(r=L(t))&&z(t.callee)?"Arguments":r},tn=k.String,nn=function(e){if("Symbol"===en(e))throw TypeError("Cannot convert a Symbol value to a string");return tn(e)},rn=xe("match"),on=k.TypeError,cn=function(e){if(function(e){var t;return M(e)&&(void 0!==(t=e[rn])?!!t:"RegExp"==L(e))}(e))throw on("The method doesn't accept regular expressions");return e},an=xe("match"),sn=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[an]=!1,"/./"[e](t)}catch(e){}}return!1},un=Pe.f,ln=F("".startsWith),fn=F("".slice),dn=Math.min,hn=sn("startsWith"),pn=!(hn||(Ht=un(String.prototype,"startsWith"),!Ht||Ht.writable));zt({target:"String",proto:!0,forced:!pn&&!hn},{startsWith:function(e){var t=nn(J(this));cn(e);var n=_t(dn(arguments.length>1?arguments[1]:void 0,t.length)),r=nn(e);return ln?ln(t,r,n):fn(t,n,n+r.length)===r}});var yn=function(e,t){return F(k[e].prototype[t])};yn("String","startsWith");var vn=Array.isArray||function(e){return"Array"==L(e)},mn=function(e,t,n){var r=We(t);r in e?ze.f(e,r,U(0,n)):e[r]=n},bn=function(){},gn=[],wn=D("Reflect","construct"),Sn=/^\s*(?:class|function)\b/,In=F(Sn.exec),kn=!Sn.exec(bn),Tn=function(e){if(!z(e))return!1;try{return wn(bn,gn,e),!0}catch(e){return!1}},_n=function(e){if(!z(e))return!1;switch(en(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return kn||!!In(Sn,$e(e))}catch(e){return!0}};_n.sham=!0;var En=!wn||T((function(){var e;return Tn(Tn.call)||!Tn(Object)||!Tn((function(){e=!0}))||e}))?_n:Tn,Cn=xe("species"),Kn=k.Array,On=function(e,t){return new(function(e){var t;return vn(e)&&(t=e.constructor,(En(t)&&(t===Kn||vn(t.prototype))||M(t)&&null===(t=t[Cn]))&&(t=void 0)),void 0===t?Kn:t}(e))(0===t?0:t)},xn=xe("species"),Zn=xe("isConcatSpreadable"),Un=k.TypeError,Wn=re>=51||!T((function(){var e=[];return e[Zn]=!1,e.concat()[0]!==e})),Rn=("concat",re>=51||!T((function(){var e=[];return(e.constructor={})[xn]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Gn=function(e){if(!M(e))return!1;var t=e[Zn];return void 0!==t?!!t:vn(e)};zt({target:"Array",proto:!0,forced:!Wn||!Rn},{concat:function(e){var t,n,r,o,i,c=ge(this),a=On(c,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Gn(i=-1===t?c:arguments[t])){if(s+(o=Et(i))>9007199254740991)throw Un("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&mn(a,s,i[n])}else{if(s>=9007199254740991)throw Un("Maximum allowed index exceeded");mn(a,s++,i)}return a.length=s,a}});var Xn=Dt?{}.toString:function(){return"[object "+en(this)+"]"};Dt||mt(Object.prototype,"toString",Xn,{unsafe:!0});var Fn,Vn=Function.prototype,Pn=Vn.apply,Ln=Vn.call,jn="object"==typeof Reflect&&Reflect.apply||(E?Ln.bind(Pn):function(){return Ln.apply(Pn,arguments)}),An=Object.keys||function(e){return Zt(e,Ut)},Yn={f:_&&!Le?Object.defineProperties:function(e,t){Ye(e);for(var n,r=B(t),o=An(t),i=o.length,c=0;i>c;)ze.f(e,n=o[c++],r[n]);return e}},Nn=D("document","documentElement"),Jn=rt("IE_PROTO"),Bn=function(){},zn=function(e){return"<script>"+e+"<\/script>"},Mn=function(e){e.write(zn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hn=function(){try{Fn=new ActiveXObject("htmlfile")}catch(e){}var e,t;Hn="undefined"!=typeof document?document.domain&&Fn?Mn(Fn):((t=Xe("iframe")).style.display="none",Nn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zn("document.F=Object")),e.close(),e.F):Mn(Fn);for(var n=Ut.length;n--;)delete Hn.prototype[Ut[n]];return Hn()};ot[Jn]=!0;var Dn=Object.create||function(e,t){var n;return null!==e?(Bn.prototype=Ye(e),n=new Bn,Bn.prototype=null,n[Jn]=e):n=Hn(),void 0===t?n:Yn.f(n,t)},qn=k.Array,Qn=Math.max,$n=Rt.f,er="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tr={f:function(e){return er&&"Window"==L(e)?function(e){try{return $n(e)}catch(e){return function(e,t,n){for(var r=Et(e),o=kt(void 0,r),i=kt(r,r),c=qn(Qn(i-o,0)),a=0;o<i;o++,a++)mn(c,a,e[o]);return c.length=a,c}(er)}}(e):$n(B(e))}},nr=F([].slice),rr={f:xe},or=k,ir=ze.f,cr=function(e){var t=or.Symbol||(or.Symbol={});Se(t,e)||ir(t,e,{value:rr.f(e)})},ar=ze.f,sr=xe("toStringTag"),ur=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Se(e,sr)&&ar(e,sr,{configurable:!0,value:t})},lr=F(F.bind),fr=function(e,t){return fe(e),void 0===t?e:E?lr(e,t):function(){return e.apply(t,arguments)}},dr=F([].push),hr=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,c=7==e,a=5==e||i;return function(s,u,l,f){for(var d,h,p=ge(s),y=Y(p),v=fr(u,l),m=Et(y),b=0,g=f||On,w=t?g(s,m):n||c?g(s,0):void 0;m>b;b++)if((a||b in y)&&(h=v(d=y[b],b,p),e))if(t)w[b]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:dr(w,d)}else switch(e){case 4:return!1;case 7:dr(w,d)}return i?-1:r||o?o:w}},pr=[hr(0),hr(1),hr(2),hr(3),hr(4),hr(5),hr(6),hr(7)][0],yr=rt("hidden"),vr=xe("toPrimitive"),mr=dt.set,br=dt.getterFor("Symbol"),gr=Object.prototype,wr=k.Symbol,Sr=wr&&wr.prototype,Ir=k.TypeError,kr=k.QObject,Tr=D("JSON","stringify"),_r=Pe.f,Er=ze.f,Cr=tr.f,Kr=Z.f,Or=F([].push),xr=me("symbols"),Zr=me("op-symbols"),Ur=me("string-to-symbol-registry"),Wr=me("symbol-to-string-registry"),Rr=me("wks"),Gr=!kr||!kr.prototype||!kr.prototype.findChild,Xr=_&&T((function(){return 7!=Dn(Er({},"a",{get:function(){return Er(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=_r(gr,t);r&&delete gr[t],Er(e,t,n),r&&e!==gr&&Er(gr,t,r)}:Er,Fr=function(e,t){var n=xr[e]=Dn(Sr);return mr(n,{type:"Symbol",tag:e,description:t}),_||(n.description=t),n},Vr=function(e,t,n){e===gr&&Vr(Zr,t,n),Ye(e);var r=We(t);return Ye(n),Se(xr,r)?(n.enumerable?(Se(e,yr)&&e[yr][r]&&(e[yr][r]=!1),n=Dn(n,{enumerable:U(0,!1)})):(Se(e,yr)||Er(e,yr,U(1,{})),e[yr][r]=!0),Xr(e,r,n)):Er(e,r,n)},Pr=function(e,t){Ye(e);var n=B(t),r=An(n).concat(Yr(n));return pr(r,(function(t){_&&!K(Lr,n,t)||Vr(e,t,n[t])})),e},Lr=function(e){var t=We(e),n=K(Kr,this,t);return!(this===gr&&Se(xr,t)&&!Se(Zr,t))&&(!(n||!Se(this,t)||!Se(xr,t)||Se(this,yr)&&this[yr][t])||n)},jr=function(e,t){var n=B(e),r=We(t);if(n!==gr||!Se(xr,r)||Se(Zr,r)){var o=_r(n,r);return!o||!Se(xr,r)||Se(n,yr)&&n[yr][r]||(o.enumerable=!0),o}},Ar=function(e){var t=Cr(B(e)),n=[];return pr(t,(function(e){Se(xr,e)||Se(ot,e)||Or(n,e)})),n},Yr=function(e){var t=e===gr,n=Cr(t?Zr:B(e)),r=[];return pr(n,(function(e){!Se(xr,e)||t&&!Se(gr,e)||Or(r,xr[e])})),r};if(oe||(Sr=(wr=function(){if(q(Sr,this))throw Ir("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?nn(arguments[0]):void 0,t=_e(e),n=function(e){this===gr&&K(n,Zr,e),Se(this,yr)&&Se(this[yr],t)&&(this[yr][t]=!1),Xr(this,t,U(1,e))};return _&&Gr&&Xr(gr,t,{configurable:!0,set:n}),Fr(t,e)}).prototype,mt(Sr,"toString",(function(){return br(this).tag})),mt(wr,"withoutSetter",(function(e){return Fr(_e(e),e)})),Z.f=Lr,ze.f=Vr,Yn.f=Pr,Pe.f=jr,Rt.f=tr.f=Ar,Gt.f=Yr,rr.f=function(e){return Fr(xe(e),e)},_&&(Er(Sr,"description",{configurable:!0,get:function(){return br(this).description}}),mt(gr,"propertyIsEnumerable",Lr,{unsafe:!0}))),zt({global:!0,wrap:!0,forced:!oe,sham:!oe},{Symbol:wr}),pr(An(Rr),(function(e){cr(e)})),zt({target:"Symbol",stat:!0,forced:!oe},{for:function(e){var t=nn(e);if(Se(Ur,t))return Ur[t];var n=wr(t);return Ur[t]=n,Wr[n]=t,n},keyFor:function(e){if(!ae(e))throw Ir(e+" is not a symbol");if(Se(Wr,e))return Wr[e]},useSetter:function(){Gr=!0},useSimple:function(){Gr=!1}}),zt({target:"Object",stat:!0,forced:!oe,sham:!_},{create:function(e,t){return void 0===t?Dn(e):Pr(Dn(e),t)},defineProperty:Vr,defineProperties:Pr,getOwnPropertyDescriptor:jr}),zt({target:"Object",stat:!0,forced:!oe},{getOwnPropertyNames:Ar,getOwnPropertySymbols:Yr}),zt({target:"Object",stat:!0,forced:T((function(){Gt.f(1)}))},{getOwnPropertySymbols:function(e){return Gt.f(ge(e))}}),Tr){var Nr=!oe||T((function(){var e=wr();return"[null]"!=Tr([e])||"{}"!=Tr({a:e})||"{}"!=Tr(Object(e))}));zt({target:"JSON",stat:!0,forced:Nr},{stringify:function(e,t,n){var r=nr(arguments),o=t;if((M(t)||void 0!==e)&&!ae(e))return vn(t)||(t=function(e,t){if(z(o)&&(t=K(o,this,e,t)),!ae(t))return t}),r[1]=t,jn(Tr,null,r)}})}if(!Sr[vr]){var Jr=Sr.valueOf;mt(Sr,vr,(function(e){return K(Jr,this)}))}ur(wr,"Symbol"),ot[yr]=!0,cr("asyncIterator");var Br=ze.f,zr=k.Symbol,Mr=zr&&zr.prototype;if(_&&z(zr)&&(!("description"in Mr)||void 0!==zr().description)){var Hr={},Dr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:nn(arguments[0]),t=q(Mr,this)?new zr(e):void 0===e?zr():zr(e);return""===e&&(Hr[t]=!0),t};Vt(Dr,zr),Dr.prototype=Mr,Mr.constructor=Dr;var qr="Symbol(test)"==String(zr("test")),Qr=F(Mr.toString),$r=F(Mr.valueOf),eo=/^Symbol\((.*)\)[^)]+$/,to=F("".replace),no=F("".slice);Br(Mr,"description",{configurable:!0,get:function(){var e=$r(this),t=Qr(e);if(Se(Hr,e))return"";var n=qr?no(t,7,-1):to(t,eo,"$1");return""===n?void 0:n}}),zt({global:!0,forced:!0},{Symbol:Dr})}cr("hasInstance"),cr("isConcatSpreadable"),cr("iterator"),cr("match"),cr("matchAll"),cr("replace"),cr("search"),cr("species"),cr("split"),cr("toPrimitive"),cr("toStringTag"),cr("unscopables"),ur(k.JSON,"JSON",!0),ur(Math,"Math",!0),zt({global:!0},{Reflect:{}}),ur(k.Reflect,"Reflect",!0),or.Symbol;var ro,oo,io,co=F("".charAt),ao=F("".charCodeAt),so=F("".slice),uo=function(e){return function(t,n){var r,o,i=nn(J(t)),c=wt(n),a=i.length;return c<0||c>=a?e?"":void 0:(r=ao(i,c))<55296||r>56319||c+1===a||(o=ao(i,c+1))<56320||o>57343?e?co(i,c):r:e?so(i,c,c+2):o-56320+(r-55296<<10)+65536}},lo={codeAt:uo(!1),charAt:uo(!0)},fo=!T((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ho=rt("IE_PROTO"),po=k.Object,yo=po.prototype,vo=fo?po.getPrototypeOf:function(e){var t=ge(e);if(Se(t,ho))return t[ho];var n=t.constructor;return z(n)&&t instanceof n?n.prototype:t instanceof po?yo:null},mo=xe("iterator"),bo=!1;[].keys&&("next"in(io=[].keys())?(oo=vo(vo(io)))!==Object.prototype&&(ro=oo):bo=!0),(null==ro||T((function(){var e={};return ro[mo].call(e)!==e})))&&(ro={}),z(ro[mo])||mt(ro,mo,(function(){return this}));var go={IteratorPrototype:ro,BUGGY_SAFARI_ITERATORS:bo},wo={},So=go.IteratorPrototype,Io=function(){return this},ko=k.String,To=k.TypeError,_o=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=F(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ye(n),function(e){if("object"==typeof e||z(e))return e;throw To("Can't set "+ko(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Eo=vt.PROPER,Co=vt.CONFIGURABLE,Ko=go.IteratorPrototype,Oo=go.BUGGY_SAFARI_ITERATORS,xo=xe("iterator"),Zo=function(){return this},Uo=function(e,t,n,r,o,i,c){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Dn(So,{next:U(1,n)}),ur(e,o,!1),wo[o]=Io}(n,t,r);var a,s,u,l=function(e){if(e===o&&y)return y;if(!Oo&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[xo]||h["@@iterator"]||o&&h[o],y=!Oo&&p||l(o),v="Array"==t&&h.entries||p;if(v&&(a=vo(v.call(new e)))!==Object.prototype&&a.next&&(vo(a)!==Ko&&(_o?_o(a,Ko):z(a[xo])||mt(a,xo,Zo)),ur(a,f,!0)),Eo&&"values"==o&&p&&"values"!==p.name&&(Co?Me(h,"name","values"):(d=!0,y=function(){return K(p,this)})),o)if(s={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},c)for(u in s)(Oo||d||!(u in h))&&mt(h,u,s[u]);else zt({target:t,proto:!0,forced:Oo||d},s);return h[xo]!==y&&mt(h,xo,y,{name:o}),wo[t]=y,s},Wo=lo.charAt,Ro=dt.set,Go=dt.getterFor("String Iterator");Uo(String,"String",(function(e){Ro(this,{type:"String Iterator",string:nn(e),index:0})}),(function(){var e,t=Go(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Wo(n,r),t.index+=e.length,{value:e,done:!1})}));var Xo=function(e,t,n){var r,o;Ye(e);try{if(!(r=de(e,"return"))){if("throw"===t)throw n;return n}r=K(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ye(r),n},Fo=function(e,t,n,r){try{return r?t(Ye(n)[0],n[1]):t(n)}catch(t){Xo(e,"throw",t)}},Vo=xe("iterator"),Po=Array.prototype,Lo=function(e){return void 0!==e&&(wo.Array===e||Po[Vo]===e)},jo=xe("iterator"),Ao=function(e){if(null!=e)return de(e,jo)||de(e,"@@iterator")||wo[en(e)]},Yo=k.TypeError,No=function(e,t){var n=arguments.length<2?Ao(e):t;if(fe(n))return Ye(K(n,e));throw Yo(ue(e)+" is not iterable")},Jo=k.Array,Bo=xe("iterator"),zo=!1;try{var Mo=0,Ho={next:function(){return{done:!!Mo++}},return:function(){zo=!0}};Ho[Bo]=function(){return this},Array.from(Ho,(function(){throw 2}))}catch(u){}var Do=function(e,t){if(!t&&!zo)return!1;var n=!1;try{var r={};r[Bo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},qo=!Do((function(e){Array.from(e)}));zt({target:"Array",stat:!0,forced:qo},{from:function(e){var t=ge(e),n=En(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=fr(o,r>2?arguments[2]:void 0));var c,a,s,u,l,f,d=Ao(t),h=0;if(!d||this==Jo&&Lo(d))for(c=Et(t),a=n?new this(c):Jo(c);c>h;h++)f=i?o(t[h],h):t[h],mn(a,h,f);else for(l=(u=No(t,d)).next,a=n?new this:[];!(s=K(l,u)).done;h++)f=i?Fo(u,o,[s.value,h],!0):s.value,mn(a,h,f);return a.length=h,a}}),or.Array.from;var Qo,$o,ei,ti="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,ni=ze.f,ri=k.Int8Array,oi=ri&&ri.prototype,ii=k.Uint8ClampedArray,ci=ii&&ii.prototype,ai=ri&&vo(ri),si=oi&&vo(oi),ui=Object.prototype,li=k.TypeError,fi=xe("toStringTag"),di=_e("TYPED_ARRAY_TAG"),hi=_e("TYPED_ARRAY_CONSTRUCTOR"),pi=ti&&!!_o&&"Opera"!==en(k.opera),yi=!1,vi={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},mi={BigInt64Array:8,BigUint64Array:8},bi=function(e){if(!M(e))return!1;var t=en(e);return Se(vi,t)||Se(mi,t)};for(Qo in vi)(ei=($o=k[Qo])&&$o.prototype)?Me(ei,hi,$o):pi=!1;for(Qo in mi)(ei=($o=k[Qo])&&$o.prototype)&&Me(ei,hi,$o);if((!pi||!z(ai)||ai===Function.prototype)&&(ai=function(){throw li("Incorrect invocation")},pi))for(Qo in vi)k[Qo]&&_o(k[Qo],ai);if((!pi||!si||si===ui)&&(si=ai.prototype,pi))for(Qo in vi)k[Qo]&&_o(k[Qo].prototype,si);if(pi&&vo(ci)!==si&&_o(ci,si),_&&!Se(si,fi))for(Qo in yi=!0,ni(si,fi,{get:function(){return M(this)?this[di]:void 0}}),vi)k[Qo]&&Me(k[Qo],di,Qo);var gi={NATIVE_ARRAY_BUFFER_VIEWS:pi,TYPED_ARRAY_CONSTRUCTOR:hi,TYPED_ARRAY_TAG:yi&&di,aTypedArray:function(e){if(bi(e))return e;throw li("Target is not a typed array")},aTypedArrayConstructor:function(e){if(z(e)&&(!_o||q(ai,e)))return e;throw li(ue(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(_){if(n)for(var o in vi){var i=k[o];if(i&&Se(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}si[e]&&!n||mt(si,e,n?t:pi&&oi[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(_){if(_o){if(n)for(r in vi)if((o=k[r])&&Se(o,e))try{delete o[e]}catch(e){}if(ai[e]&&!n)return;try{return mt(ai,e,n?t:pi&&ai[e]||t)}catch(e){}}for(r in vi)!(o=k[r])||o[e]&&!n||mt(o,e,t)}},isView:function(e){if(!M(e))return!1;var t=en(e);return"DataView"===t||Se(vi,t)||Se(mi,t)},isTypedArray:bi,TypedArray:ai,TypedArrayPrototype:si},wi=k.TypeError,Si=xe("species"),Ii=gi.TYPED_ARRAY_CONSTRUCTOR,ki=gi.aTypedArrayConstructor,Ti=gi.aTypedArray;(0,gi.exportTypedArrayMethod)("slice",(function(e,t){for(var n=nr(Ti(this),e,t),r=ki(function(e,t){var n,r=Ye(e).constructor;return void 0===r||null==(n=Ye(r)[Si])?t:function(e){if(En(e))return e;throw wi(ue(e)+" is not a constructor")}(n)}(this,this[Ii])),o=0,i=n.length,c=new r(i);i>o;)c[o]=n[o++];return c}),T((function(){new Int8Array(1).slice()})));var _i=xe("unscopables"),Ei=Array.prototype;null==Ei[_i]&&ze.f(Ei,_i,{configurable:!0,value:Dn(null)});var Ci=function(e){Ei[_i][e]=!0},Ki=Kt.includes;zt({target:"Array",proto:!0},{includes:function(e){return Ki(this,e,arguments.length>1?arguments[1]:void 0)}}),Ci("includes"),yn("Array","includes");var Oi=F("".indexOf);zt({target:"String",proto:!0,forced:!sn("includes")},{includes:function(e){return!!~Oi(nn(J(this)),nn(cn(e)),arguments.length>1?arguments[1]:void 0)}}),yn("String","includes");var xi=ze.f,Zi=dt.set,Ui=dt.getterFor("Array Iterator");Uo(Array,"Array",(function(e,t){Zi(this,{type:"Array Iterator",target:B(e),index:0,kind:t})}),(function(){var e=Ui(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var Wi=wo.Arguments=wo.Array;if(Ci("keys"),Ci("values"),Ci("entries"),_&&"values"!==Wi.name)try{xi(Wi,"name",{value:"values"})}catch(u){}var Ri=T((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Gi=Object.isExtensible,Xi=T((function(){Gi(1)}))||Ri?function(e){return!!M(e)&&(!Ri||"ArrayBuffer"!=L(e))&&(!Gi||Gi(e))}:Gi,Fi=!T((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vi=g((function(e){var t=ze.f,n=!1,r=_e("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},c=e.exports={enable:function(){c.enable=function(){},n=!0;var e=Rt.f,t=F([].splice),o={};o[r]=1,e(o).length&&(Rt.f=function(n){for(var o=e(n),i=0,c=o.length;i<c;i++)if(o[i]===r){t(o,i,1);break}return o},zt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tr.f}))},fastKey:function(e,t){if(!M(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Se(e,r)){if(!Xi(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Se(e,r)){if(!Xi(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Fi&&n&&Xi(e)&&!Se(e,r)&&i(e),e}};ot[r]=!0}));Vi.enable,Vi.fastKey,Vi.getWeakData,Vi.onFreeze;var Pi=k.TypeError,Li=function(e,t){this.stopped=e,this.result=t},ji=Li.prototype,Ai=function(e,t,n){var r,o,i,c,a,s,u,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=fr(t,l),y=function(e){return r&&Xo(r,"normal",e),new Li(!0,e)},v=function(e){return f?(Ye(e),h?p(e[0],e[1],y):p(e[0],e[1])):h?p(e,y):p(e)};if(d)r=e;else{if(!(o=Ao(e)))throw Pi(ue(e)+" is not iterable");if(Lo(o)){for(i=0,c=Et(e);c>i;i++)if((a=v(e[i]))&&q(ji,a))return a;return new Li(!1)}r=No(e,o)}for(s=r.next;!(u=K(s,r)).done;){try{a=v(u.value)}catch(e){Xo(r,"throw",e)}if("object"==typeof a&&a&&q(ji,a))return a}return new Li(!1)},Yi=k.TypeError,Ni=function(e,t){if(q(t,e))return e;throw Yi("Incorrect invocation")},Ji=function(e,t,n){for(var r in t)mt(e,r,t[r],n);return e},Bi=xe("species"),zi=ze.f,Mi=Vi.fastKey,Hi=dt.set,Di=dt.getterFor;function qi(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function Qi(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var c=n.then;if("function"==typeof c)return void c.call(n,(function(t){i(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var c=0;c<r.length;c++)i(c,r[c])}))}!function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",c=k.Set,a=c&&c.prototype,s=c,u={},l=function(e){var t=F(a[e]);mt(a,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!M(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!M(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!M(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Jt(e,!z(c)||!(o||a.forEach&&!T((function(){(new c).entries().next()})))))s=n.getConstructor(t,e,r,i),Vi.enable();else if(Jt(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,h=T((function(){f.has(1)})),p=Do((function(e){new c(e)})),y=!o&&T((function(){for(var e=new c,t=5;t--;)e[i](t,t);return!e.has(-0)}));p||((s=t((function(e,t){Ni(e,a);var n=function(e,t,n){var r,o;return _o&&z(r=t.constructor)&&r!==n&&M(o=r.prototype)&&o!==n.prototype&&_o(e,o),e}(new c,e,s);return null!=t&&Ai(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=s),(h||y)&&(l("delete"),l("has"),r&&l("get")),(y||d)&&l(i),o&&a.clear&&delete a.clear}u.Set=s,zt({global:!0,forced:s!=c},u),ur(s,e),o||n.setStrong(s,e,r)}("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,o){Ni(e,i),Hi(e,{type:t,index:Dn(null),first:void 0,last:void 0,size:0}),_||(e.size=0),null!=o&&Ai(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,c=Di(t),a=function(e,t,n){var r,o,i=c(e),a=s(e,t);return a?a.value=n:(i.last=a={index:o=Mi(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),_?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},s=function(e,t){var n,r=c(e),o=Mi(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Ji(i,{clear:function(){for(var e=c(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,_?e.size=0:this.size=0},delete:function(e){var t=this,n=c(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),_?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=c(this),r=fr(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Ji(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),_&&zi(i,"size",{get:function(){return c(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Di(t),i=Di(r);Uo(e,t,(function(e,t){Hi(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(e){var t=D(e),n=ze.f;_&&t&&!t[Bi]&&n(t,Bi,{configurable:!0,get:function(){return this}})}(t)}}),or.Set;var $i=setTimeout,ec="undefined"!=typeof setImmediate?setImmediate:null;function tc(e){return Boolean(e&&void 0!==e.length)}function nc(){}function rc(e){if(!(this instanceof rc))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],uc(e,this)}function oc(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,rc._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void cc(t.promise,e)}ic(t.promise,r)}else(1===e._state?ic:cc)(t.promise,e._value)}))):e._deferreds.push(t)}function ic(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof rc)return e._state=3,e._value=t,void ac(e);if("function"==typeof n)return void uc((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,ac(e)}catch(t){cc(e,t)}var r,o}function cc(e,t){e._state=2,e._value=t,ac(e)}function ac(e){2===e._state&&0===e._deferreds.length&&rc._immediateFn((function(){e._handled||rc._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)oc(e,e._deferreds[t]);e._deferreds=null}function sc(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function uc(e,t){var n=!1;try{e((function(e){n||(n=!0,ic(t,e))}),(function(e){n||(n=!0,cc(t,e))}))}catch(e){if(n)return;n=!0,cc(t,e)}}rc.prototype.catch=function(e){return this.then(null,e)},rc.prototype.then=function(e,t){var n=new this.constructor(nc);return oc(this,new sc(e,t,n)),n},rc.prototype.finally=qi,rc.all=function(e){return new rc((function(t,n){if(!tc(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function i(e,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,(function(t){i(e,t)}),n)}r[e]=c,0==--o&&t(r)}catch(e){n(e)}}for(var c=0;c<r.length;c++)i(c,r[c])}))},rc.allSettled=Qi,rc.resolve=function(e){return e&&"object"==typeof e&&e.constructor===rc?e:new rc((function(t){t(e)}))},rc.reject=function(e){return new rc((function(t,n){n(e)}))},rc.race=function(e){return new rc((function(t,n){if(!tc(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)rc.resolve(e[r]).then(t,n)}))},rc._immediateFn="function"==typeof ec&&function(e){ec(e)}||function(e){$i(e,0)},rc._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var lc=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"function"!=typeof lc.Promise?lc.Promise=rc:(lc.Promise.prototype.finally||(lc.Promise.prototype.finally=qi),lc.Promise.allSettled||(lc.Promise.allSettled=Qi)),function(e){function t(){}function n(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,-1===o.indexOf(e.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}function r(e){for(var t=0,n=Math.min(65536,e.length+1),r=new Uint16Array(n),o=[],i=0;;){var c=t<e.length;if(!c||i>=n-1){if(o.push(String.fromCharCode.apply(null,r.subarray(0,i))),!c)return o.join("");e=e.subarray(t),i=t=0}if(0==(128&(c=e[t++])))r[i++]=c;else if(192==(224&c)){var a=63&e[t++];r[i++]=(31&c)<<6|a}else if(224==(240&c)){a=63&e[t++];var s=63&e[t++];r[i++]=(31&c)<<12|a<<6|s}else 240==(248&c)&&(65535<(c=(7&c)<<18|(a=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(c-=65536,r[i++]=c>>>10&1023|55296,c=56320|1023&c),r[i++]=c)}}if(e.TextEncoder&&e.TextDecoder)return!1;var o=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var n=e.length,r=0,o=Math.max(32,n+(n>>>1)+7),i=new Uint8Array(o>>>3<<3);t<n;){var c=e.charCodeAt(t++);if(55296<=c&&56319>=c){if(t<n){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,c=((1023&c)<<10)+(1023&a)+65536)}if(55296<=c&&56319>=c)continue}if(r+4>i.length&&(o+=8,o=(o*=1+t/e.length*2)>>>3<<3,(a=new Uint8Array(o)).set(i),i=a),0==(4294967168&c))i[r++]=c;else{if(0==(4294965248&c))i[r++]=c>>>6&31|192;else if(0==(4294901760&c))i[r++]=c>>>12&15|224,i[r++]=c>>>6&63|128;else{if(0!=(4292870144&c))continue;i[r++]=c>>>18&7|240,i[r++]=c>>>12&63|128,i[r++]=c>>>6&63|128}i[r++]=63&c|128}}return i.slice?i.slice(0,r):i.subarray(0,r)},Object.defineProperty(n.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(n.prototype,"fatal",{value:!1}),Object.defineProperty(n.prototype,"ignoreBOM",{value:!1});var i=r;"function"==typeof Buffer&&Buffer.from?i=function(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf-8")}:"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&(i=function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/plain;charset=UTF-8"}));try{var n=new XMLHttpRequest;return n.open("GET",t,!1),n.send(),n.responseText}catch(t){return r(e)}finally{URL.revokeObjectURL(t)}}),n.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");return e=e instanceof Uint8Array?e:e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer):new Uint8Array(e),i(e)},e.TextEncoder=t,e.TextDecoder=n}("undefined"!=typeof window?window:m),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var f=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),d=function(t){r(a,t);var i=s(a);function a(){var t;return e(this,a),(t=i.call(this)).listeners||f.call(c(t)),Object.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(a,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),l(o(a.prototype),"dispatchEvent",this).call(this,e)}}]),a}(f),h=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(h.prototype[Symbol.toStringTag]="AbortController",d.prototype[Symbol.toStringTag]="AbortSignal"),function(e){(function(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController})(e)&&(e.AbortController=h,e.AbortSignal=d)}("undefined"!=typeof self?self:m)}();var fc=g((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){var e=this;this.locked=new Map,this.addToLocked=function(t,n){var r=e.locked.get(t);void 0===r?void 0===n?e.locked.set(t,[]):e.locked.set(t,[n]):void 0!==n&&(r.unshift(n),e.locked.set(t,r))},this.isLocked=function(t){return e.locked.has(t)},this.lock=function(t){return new Promise((function(n,r){e.isLocked(t)?e.addToLocked(t,n):(e.addToLocked(t),n())}))},this.unlock=function(t){var n=e.locked.get(t);if(void 0!==n&&0!==n.length){var r=n.pop();e.locked.set(t,n),void 0!==r&&setTimeout(r,0)}else e.locked.delete(t)}}return e.getInstance=function(){return void 0===e.instance&&(e.instance=new e),e.instance},e}();t.default=function(){return n.getInstance()}}));b(fc);var dc=g((function(e,t){var n=m&&m.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function c(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(c,a)}s((r=r.apply(e,t||[])).next())}))},r=m&&m.__generator||function(e,t){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,r=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!((o=(o=c.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(e){return new Promise((function(t){return setTimeout(t,e)}))}function c(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}var a=function(){function e(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+c(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),void 0===e.waiters&&(e.waiters=[])}return e.prototype.acquireLock=function(t,a){return void 0===a&&(a=5e3),n(this,void 0,void 0,(function(){var n,s,u,l,f,d;return r(this,(function(r){switch(r.label){case 0:n=Date.now()+c(4),s=Date.now()+a,u=o+"-"+t,l=window.localStorage,r.label=1;case 1:return Date.now()<s?[4,i(30)]:[3,8];case 2:return r.sent(),null!==l.getItem(u)?[3,5]:(f=this.id+"-"+t+"-"+n,[4,i(Math.floor(25*Math.random()))]);case 3:return r.sent(),l.setItem(u,JSON.stringify({id:this.id,iat:n,timeoutKey:f,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return r.sent(),null!==(d=l.getItem(u))&&(d=JSON.parse(d)).id===this.id&&d.iat===n?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(u,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(s)];case 6:r.sent(),r.label=7;case 7:return n=Date.now()+c(4),[3,1];case 8:return[2,!1]}}))}))},e.prototype.refreshLockWhileAcquired=function(e,t){return n(this,void 0,void 0,(function(){var o=this;return r(this,(function(i){return setTimeout((function(){return n(o,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return[4,fc.default().lock(t)];case 1:return r.sent(),this.acquiredIatSet.has(t)?(n=window.localStorage,null===(o=n.getItem(e))?(fc.default().unlock(t),[2]):((o=JSON.parse(o)).timeRefreshed=Date.now(),n.setItem(e,JSON.stringify(o)),fc.default().unlock(t),this.refreshLockWhileAcquired(e,t),[2])):(fc.default().unlock(t),[2])}}))}))}),1e3),[2]}))}))},e.prototype.waitForSomethingToChange=function(t){return n(this,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return[4,new Promise((function(n){var r=!1,o=Date.now(),i=!1;function c(){if(i||(window.removeEventListener("storage",c),e.removeFromWaiting(c),clearTimeout(a),i=!0),!r){r=!0;var t=50-(Date.now()-o);t>0?setTimeout(n,t):n()}}window.addEventListener("storage",c),e.addToWaiting(c);var a=setTimeout(c,Math.max(0,t-Date.now()))}))];case 1:return n.sent(),[2]}}))}))},e.addToWaiting=function(t){this.removeFromWaiting(t),void 0!==e.waiters&&e.waiters.push(t)},e.removeFromWaiting=function(t){void 0!==e.waiters&&(e.waiters=e.waiters.filter((function(e){return e!==t})))},e.notifyWaiters=function(){void 0!==e.waiters&&e.waiters.slice().forEach((function(e){return e()}))},e.prototype.releaseLock=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this.releaseLock__private__(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.releaseLock__private__=function(t){return n(this,void 0,void 0,(function(){var n,i,c;return r(this,(function(r){switch(r.label){case 0:return n=window.localStorage,i=o+"-"+t,null===(c=n.getItem(i))?[2]:(c=JSON.parse(c)).id!==this.id?[3,2]:[4,fc.default().lock(c.iat)];case 1:r.sent(),this.acquiredIatSet.delete(c.iat),n.removeItem(i),fc.default().unlock(c.iat),e.notifyWaiters(),r.label=2;case 2:return[2]}}))}))},e.lockCorrector=function(){for(var t=Date.now()-5e3,n=window.localStorage,r=Object.keys(n),i=!1,c=0;c<r.length;c++){var a=r[c];if(a.includes(o)){var s=n.getItem(a);null!==s&&(void 0===(s=JSON.parse(s)).timeRefreshed&&s.timeAcquired<t||void 0!==s.timeRefreshed&&s.timeRefreshed<t)&&(n.removeItem(a),i=!0)}}i&&e.notifyWaiters()},e.waiters=void 0,e}();t.default=a})),hc=b(dc),pc={timeoutInSeconds:60},yc=["login_required","consent_required","interaction_required","account_selection_required","access_denied"],vc={name:"auth0-spa-js",version:"1.21.0"},mc=function(){return Date.now()},bc=function(e){function t(n,r){var o=e.call(this,r)||this;return o.error=n,o.error_description=r,Object.setPrototypeOf(o,t.prototype),o}return l(t,e),t.fromPayload=function(e){return new t(e.error,e.error_description)},t}(Error),gc=function(e){function t(n,r,o,i){void 0===i&&(i=null);var c=e.call(this,n,r)||this;return c.state=o,c.appState=i,Object.setPrototypeOf(c,t.prototype),c}return l(t,e),t}(bc),wc=function(e){function t(){var n=e.call(this,"timeout","Timeout")||this;return Object.setPrototypeOf(n,t.prototype),n}return l(t,e),t}(bc),Sc=function(e){function t(n){var r=e.call(this)||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return l(t,e),t}(wc),Ic=function(e){function t(n){var r=e.call(this,"cancelled","Popup closed")||this;return r.popup=n,Object.setPrototypeOf(r,t.prototype),r}return l(t,e),t}(bc),kc=function(e){function t(n,r,o){var i=e.call(this,n,r)||this;return i.mfa_token=o,Object.setPrototypeOf(i,t.prototype),i}return l(t,e),t}(bc),Tc=function(e){return new Promise((function(t,n){var r,o=setInterval((function(){e.popup&&e.popup.closed&&(clearInterval(o),clearTimeout(i),window.removeEventListener("message",r,!1),n(new Ic(e.popup)))}),1e3),i=setTimeout((function(){clearInterval(o),n(new Sc(e.popup)),window.removeEventListener("message",r,!1)}),1e3*(e.timeoutInSeconds||60));r=function(c){if(c.data&&"authorization_response"===c.data.type){if(clearTimeout(i),clearInterval(o),window.removeEventListener("message",r,!1),e.popup.close(),c.data.response.error)return n(bc.fromPayload(c.data.response));t(c.data.response)}},window.addEventListener("message",r)}))},_c=function(){return window.crypto||window.msCrypto},Ec=function(){var e=_c();return e.subtle||e.webkitSubtle},Cc=function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.",t="";return Array.from(_c().getRandomValues(new Uint8Array(43))).forEach((function(n){return t+=e[n%e.length]})),t},Kc=function(e){return btoa(e)},Oc=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},xc=function(e){return h(void 0,void 0,void 0,(function(){var t;return p(this,(function(n){switch(n.label){case 0:return t=Ec().digest({name:"SHA-256"},(new TextEncoder).encode(e)),window.msCrypto?[2,new Promise((function(e,n){t.oncomplete=function(t){e(t.target.result)},t.onerror=function(e){n(e.error)},t.onabort=function(){n("The digest operation was aborted")}}))]:[4,t];case 1:return[2,n.sent()]}}))}))},Zc=function(e){return function(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(e.replace(/_/g,"/").replace(/-/g,"+"))},Uc=function(e){var t=new Uint8Array(e);return function(e){var t={"+":"-","/":"_","=":""};return e.replace(/[+/=]/g,(function(e){return t[e]}))}(window.btoa(String.fromCharCode.apply(String,v([],y(Array.from(t)),!1))))},Wc=function(e,t){return h(void 0,void 0,void 0,(function(){var n,r;return p(this,(function(o){switch(o.label){case 0:return[4,(i=e,c=t,c=c||{},new Promise((function(e,t){var n=new XMLHttpRequest,r=[],o=[],a={},s=function(){return{ok:2==(n.status/100|0),statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(n.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:s,headers:{keys:function(){return r},entries:function(){return o},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in n.open(c.method||"get",i,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){r.push(t=t.toLowerCase()),o.push([t,n]),a[t]=a[t]?a[t]+","+n:n})),e(s())},n.onerror=t,n.withCredentials="include"==c.credentials,c.headers)n.setRequestHeader(u,c.headers[u]);n.send(c.body||null)})))];case 1:return n=o.sent(),r={ok:n.ok},[4,n.json()];case 2:return[2,(r.json=o.sent(),r)]}var i,c}))}))},Rc=function(e,t,n){return h(void 0,void 0,void 0,(function(){var r,o;return p(this,(function(i){return r=new AbortController,t.signal=r.signal,[2,Promise.race([Wc(e,t),new Promise((function(e,t){o=setTimeout((function(){r.abort(),t(new Error("Timeout when executing 'fetch'"))}),n)}))]).finally((function(){clearTimeout(o)}))]}))}))},Gc=function(e,t,n,r,o,i,c){return h(void 0,void 0,void 0,(function(){return p(this,(function(a){return[2,(s={auth:{audience:t,scope:n},timeout:o,fetchUrl:e,fetchOptions:r,useFormData:c},u=i,new Promise((function(e,t){var n=new MessageChannel;n.port1.onmessage=function(n){n.data.error?t(new Error(n.data.error)):e(n.data)},u.postMessage(s,[n.port2])})))];var s,u}))}))},Xc=function(e,t,n,r,o,i,c){return void 0===c&&(c=1e4),h(void 0,void 0,void 0,(function(){return p(this,(function(a){return o?[2,Gc(e,t,n,r,c,o,i)]:[2,Rc(e,r,c)]}))}))};function Fc(e,t,n,r,o,i,c){return h(this,void 0,void 0,(function(){var a,s,u,l,f,h,y,v,m;return p(this,(function(p){switch(p.label){case 0:a=null,u=0,p.label=1;case 1:if(!(u<3))return[3,6];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,Xc(e,n,r,o,i,c,t)];case 3:return s=p.sent(),a=null,[3,6];case 4:return l=p.sent(),a=l,[3,5];case 5:return u++,[3,1];case 6:if(a)throw a.message=a.message||"Failed to fetch",a;if(f=s.json,h=f.error,y=f.error_description,v=d(f,["error","error_description"]),!s.ok){if(m=y||"HTTP error. Unable to fetch ".concat(e),"mfa_required"===h)throw new kc(h,m,v.mfa_token);throw new bc(h||"request_error",m)}return[2,v]}}))}))}function Vc(e,t){var n=e.baseUrl,r=e.timeout,o=e.audience,i=e.scope,c=e.auth0Client,a=e.useFormData,s=d(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);return h(this,void 0,void 0,(function(){var e;return p(this,(function(u){switch(u.label){case 0:return e=a?Oc(s):JSON.stringify(s),[4,Fc("".concat(n,"/oauth/token"),r,o||"default",i,{method:"POST",body:e,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(c||vc))}},t,a)];case 1:return[2,u.sent()]}}))}))}var Pc=function(e){return Array.from(new Set(e))},Lc=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Pc(e.join(" ").trim().split(/\s+/)).join(" ")},jc=function(){function e(e,t){void 0===t&&(t="@@auth0spajs@@"),this.prefix=t,this.client_id=e.client_id,this.scope=e.scope,this.audience=e.audience}return e.prototype.toKey=function(){return"".concat(this.prefix,"::").concat(this.client_id,"::").concat(this.audience,"::").concat(this.scope)},e.fromKey=function(t){var n=y(t.split("::"),4),r=n[0],o=n[1],i=n[2];return new e({client_id:o,scope:n[3],audience:i},r)},e.fromCacheEntry=function(t){return new e({scope:t.scope,audience:t.audience,client_id:t.client_id})},e}(),Ac=function(){function e(){}return e.prototype.set=function(e,t){localStorage.setItem(e,JSON.stringify(t))},e.prototype.get=function(e){var t=window.localStorage.getItem(e);if(t)try{return JSON.parse(t)}catch(e){return}},e.prototype.remove=function(e){localStorage.removeItem(e)},e.prototype.allKeys=function(){return Object.keys(window.localStorage).filter((function(e){return e.startsWith("@@auth0spajs@@")}))},e}(),Yc=function(){var e;this.enclosedCache=(e={},{set:function(t,n){e[t]=n},get:function(t){var n=e[t];if(n)return n},remove:function(t){delete e[t]},allKeys:function(){return Object.keys(e)}})},Nc=function(){function e(e,t,n){this.cache=e,this.keyManifest=t,this.nowProvider=n,this.nowProvider=this.nowProvider||mc}return e.prototype.get=function(e,t){var n;return void 0===t&&(t=0),h(this,void 0,void 0,(function(){var r,o,i,c,a;return p(this,(function(s){switch(s.label){case 0:return[4,this.cache.get(e.toKey())];case 1:return(r=s.sent())?[3,4]:[4,this.getCacheKeys()];case 2:return(o=s.sent())?(i=this.matchExistingCacheKey(e,o))?[4,this.cache.get(i)]:[3,4]:[2];case 3:r=s.sent(),s.label=4;case 4:return r?[4,this.nowProvider()]:[2];case 5:return c=s.sent(),a=Math.floor(c/1e3),r.expiresAt-t<a?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},[4,this.cache.set(e.toKey(),r)]):[3,7]:[3,10];case 6:return s.sent(),[2,r.body];case 7:return[4,this.cache.remove(e.toKey())];case 8:return s.sent(),[4,null===(n=this.keyManifest)||void 0===n?void 0:n.remove(e.toKey())];case 9:return s.sent(),[2];case 10:return[2,r.body]}}))}))},e.prototype.set=function(e){var t;return h(this,void 0,void 0,(function(){var n,r;return p(this,(function(o){switch(o.label){case 0:return n=new jc({client_id:e.client_id,scope:e.scope,audience:e.audience}),[4,this.wrapCacheEntry(e)];case 1:return r=o.sent(),[4,this.cache.set(n.toKey(),r)];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.add(n.toKey())];case 3:return o.sent(),[2]}}))}))},e.prototype.clear=function(e){var t;return h(this,void 0,void 0,(function(){var n,r=this;return p(this,(function(o){switch(o.label){case 0:return[4,this.getCacheKeys()];case 1:return(n=o.sent())?[4,n.filter((function(t){return!e||t.includes(e)})).reduce((function(e,t){return h(r,void 0,void 0,(function(){return p(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return n.sent(),[4,this.cache.remove(t)];case 2:return n.sent(),[2]}}))}))}),Promise.resolve())]:[2];case 2:return o.sent(),[4,null===(t=this.keyManifest)||void 0===t?void 0:t.clear()];case 3:return o.sent(),[2]}}))}))},e.prototype.clearSync=function(e){var t=this,n=this.cache.allKeys();n&&n.filter((function(t){return!e||t.includes(e)})).forEach((function(e){t.cache.remove(e)}))},e.prototype.wrapCacheEntry=function(e){return h(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return t=o.sent(),n=Math.floor(t/1e3)+e.expires_in,r=Math.min(n,e.decodedToken.claims.exp),[2,{body:e,expiresAt:r}]}}))}))},e.prototype.getCacheKeys=function(){var e;return h(this,void 0,void 0,(function(){var t;return p(this,(function(n){switch(n.label){case 0:return this.keyManifest?[4,this.keyManifest.get()]:[3,2];case 1:return t=null===(e=n.sent())||void 0===e?void 0:e.keys,[3,4];case 2:return[4,this.cache.allKeys()];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}}))}))},e.prototype.matchExistingCacheKey=function(e,t){return t.filter((function(t){var n=jc.fromKey(t),r=new Set(n.scope&&n.scope.split(" ")),o=e.scope.split(" "),i=n.scope&&o.reduce((function(e,t){return e&&r.has(t)}),!0);return"@@auth0spajs@@"===n.prefix&&n.client_id===e.client_id&&n.audience===e.audience&&i}))[0]},e}(),Jc=function(){function e(e,t){this.storage=e,this.clientId=t,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId),this.transaction=this.storage.get(this.storageKey)}return e.prototype.create=function(e){this.transaction=e,this.storage.save(this.storageKey,e,{daysUntilExpire:1})},e.prototype.get=function(){return this.transaction},e.prototype.remove=function(){delete this.transaction,this.storage.remove(this.storageKey)},e}(),Bc=function(e){return"number"==typeof e},zc=["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"],Mc=function(e){if(!e.id_token)throw new Error("ID token is required but missing");var t=function(e){var t=e.split("."),n=y(t,3),r=n[0],o=n[1],i=n[2];if(3!==t.length||!r||!o||!i)throw new Error("ID token could not be decoded");var c=JSON.parse(Zc(o)),a={__raw:e},s={};return Object.keys(c).forEach((function(e){a[e]=c[e],zc.includes(e)||(s[e]=c[e])})),{encoded:{header:r,payload:o,signature:i},header:JSON.parse(Zc(r)),claims:a,user:s}}(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(e.iss,'", found "').concat(t.claims.iss,'"'));if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if("RS256"!==t.header.alg)throw new Error('Signature algorithm of "'.concat(t.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!t.claims.aud||"string"!=typeof t.claims.aud&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but was not one of "').concat(t.claims.aud.join(", "),'"'));if(t.claims.aud.length>1){if(!t.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(t.claims.azp!==e.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(e.aud,'", found "').concat(t.claims.azp,'"'))}}else if(t.claims.aud!==e.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(e.aud,'" but found "').concat(t.claims.aud,'"'));if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(e.nonce,'", found "').concat(t.claims.nonce,'"'))}if(e.max_age&&!Bc(t.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(!Bc(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Bc(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");var n=e.leeway||60,r=new Date(e.now||Date.now()),o=new Date(0),i=new Date(0),c=new Date(0);if(c.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),o.setUTCSeconds(t.claims.exp+n),i.setUTCSeconds(t.claims.nbf-n),r>o)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(r,") is after expiration time (").concat(o,")"));if(Bc(t.claims.nbf)&&r<i)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Currrent time (".concat(r,") is before ").concat(i));if(Bc(t.claims.auth_time)&&r>c)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 (".concat(r,") is after last auth at ").concat(c));if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(e.organizationId,'", found "').concat(t.claims.org_id,'"'))}return t},Hc=g((function(e,t){var n=m&&m.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function o(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function i(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var i=n[o].split("="),c=i.slice(1).join("=");'"'===c.charAt(0)&&(c=c.slice(1,-1));try{t[i[0].replace(r,decodeURIComponent)]=c.replace(r,decodeURIComponent)}catch(e){}}return t}function c(){return i(document.cookie)}function a(e,t,r){document.cookie=o(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=c,t.get=function(e){return c()[e]},t.set=a,t.remove=function(e,t){a(e,"",n(n({},t),{expires:-1}))}}));b(Hc),Hc.encode,Hc.parse,Hc.getAll;var Dc=Hc.get,qc=Hc.set,Qc=Hc.remove,$c={get:function(e){var t=Dc(e);if(void 0!==t)return JSON.parse(t)},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0,sameSite:"none"}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),(null==n?void 0:n.cookieDomain)&&(r.domain=n.cookieDomain),qc(e,JSON.stringify(t),r)},remove:function(e){Qc(e)}},ea={get:function(e){return $c.get(e)||$c.get("".concat("_legacy_").concat(e))},save:function(e,t,n){var r={};"https:"===window.location.protocol&&(r={secure:!0}),(null==n?void 0:n.daysUntilExpire)&&(r.expires=n.daysUntilExpire),qc("".concat("_legacy_").concat(e),JSON.stringify(t),r),$c.save(e,t,n)},remove:function(e){$c.remove(e),$c.remove("".concat("_legacy_").concat(e))}},ta={get:function(e){if("undefined"!=typeof sessionStorage){var t=sessionStorage.getItem(e);if(void 0!==t)return JSON.parse(t)}},save:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove:function(e){sessionStorage.removeItem(e)}};var na,ra=("Lyogcm9sbHVwLXBsdWdpbi13ZWIt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1lc3NhZ2Uoe29rOnYub2ssanNvbjpyfSksWzMsOF07Y2FzZSA3OnJldHVybiBnPXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yX2Rlc2NyaXB0aW9uOmcubWVzc2FnZX19KSxbMyw4XTtjYXNlIDg6cmV0dXJuWzJdfXZhciBtLGssUyxffSkpfSkpfSkpfSgpOwoK",null,!1,function(e){return na=na||function(e,t,n){var r=void 0===t?null:t,o=function(e,t){var n=atob(e);if(t){for(var r=new Uint8Array(n.length),o=0,i=n.length;o<i;++o)r[o]=n.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(r.buffer))}return n}(e,void 0!==n&&n),i=o.indexOf("\n",10)+1,c=o.substring(i)+(r?"//# sourceMappingURL="+r:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Ci8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICAgQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uCgogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55CiAgICBwdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuCgogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgKICAgIFJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWQog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KHUsZSh7fSxmKSldKV07Y2FzZSAzOnJldHVybiB2PXQuc2VudCgpLFszLDVdO2Nhc2UgNDpyZXR1cm4gdz10LnNlbnQoKSxoLnBvc3RNZXNzYWdlKHtlcnJvcjp3Lm1lc3NhZ2V9KSxbMl07Y2FzZSA1OnJldHVybiB2P1s0LHYuanNvbigpXTooZCYmZC5hYm9ydCgpLGgucG9zdE1lc3NhZ2Uoe2Vycm9yOiJUaW1lb3V0IHdoZW4gZXhlY3V0aW5nICdmZXRjaCcifSksWzJdKTtjYXNlIDY6cmV0dXJuKHI9dC5zZW50KCkpLnJlZnJlc2hfdG9rZW4/KGZ1bmN0aW9uKGUscix0KXtuW28ocix0KV09ZX0oci5yZWZyZXNoX3Rva2VuLHMscCksZGVsZXRlIHIucmVmcmVzaF90b2tlbik6ZnVuY3Rpb24oZSxyKXtkZWxldGUgbltvKGUscildfShzLHApLGgucG9zdE1lc3NhZ2Uoe29rOnYub2ssanNvbjpyfSksWzMsOF07Y2FzZSA3OnJldHVybiBnPXQuc2VudCgpLGgucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yX2Rlc2NyaXB0aW9uOmcubWVzc2FnZX19KSxbMyw4XTtjYXNlIDg6cmV0dXJuWzJdfXZhciBtLGssUyxffSkpfSkpfSkpfSgpOwoK",null,false),new Worker(na,e)}),oa={},ia=function(){function e(e,t){this.cache=e,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}return e.prototype.add=function(e){var t;return h(this,void 0,void 0,(function(){var n,r;return p(this,(function(o){switch(o.label){case 0:return r=Set.bind,[4,this.cache.get(this.manifestKey)];case 1:return(n=new(r.apply(Set,[void 0,(null===(t=o.sent())||void 0===t?void 0:t.keys)||[]]))).add(e),[4,this.cache.set(this.manifestKey,{keys:v([],y(n),!1)})];case 2:return o.sent(),[2]}}))}))},e.prototype.remove=function(e){return h(this,void 0,void 0,(function(){var t,n;return p(this,(function(r){switch(r.label){case 0:return[4,this.cache.get(this.manifestKey)];case 1:return(t=r.sent())?((n=new Set(t.keys)).delete(e),n.size>0?[4,this.cache.set(this.manifestKey,{keys:v([],y(n),!1)})]:[3,3]):[3,5];case 2:case 4:return[2,r.sent()];case 3:return[4,this.cache.remove(this.manifestKey)];case 5:return[2]}}))}))},e.prototype.get=function(){return this.cache.get(this.manifestKey)},e.prototype.clear=function(){return this.cache.remove(this.manifestKey)},e.prototype.createManifestKeyFrom=function(e){return"".concat("@@auth0spajs@@","::").concat(e)},e}(),ca=new hc,aa={memory:function(){return(new Yc).enclosedCache},localstorage:function(){return new Ac}},sa=function(e){return aa[e]},ua=function(){function e(e){var t,n,r,o;if(this.options=e,"undefined"!=typeof window&&function(){if(!_c())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(void 0===Ec())throw new Error("\n 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.\n ")}(),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",!sa(this.cacheLocation))throw new Error('Invalid cache location "'.concat(this.cacheLocation,'"'));r=sa(this.cacheLocation)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=!1===e.legacySameSiteCookie?$c:ea,this.orgHintCookieName=(o=this.options.client_id,"auth0.".concat(o,".organization_hint")),this.isAuthenticatedCookieName=function(e){return"auth0.".concat(e,".is.authenticated")}(this.options.client_id),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;var i,c=e.useCookiesForTransactions?this.cookieStorage:ta;this.scope=this.options.scope,this.transactionManager=new Jc(c,this.options.client_id),this.nowProvider=this.options.nowProvider||mc,this.cacheManager=new Nc(r,r.allKeys?null:new ia(r,this.options.client_id),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:"https://".concat(i)),this.tokenIssuer=function(e,t){return e?e.startsWith("https://")?e:"https://".concat(e,"/"):"".concat(t,"/")}(this.options.issuer,this.domainUrl),this.defaultScope=Lc("openid",void 0!==(null===(n=null===(t=this.options)||void 0===t?void 0:t.advancedOptions)||void 0===n?void 0:n.defaultScope)?this.options.advancedOptions.defaultScope:"openid profile email"),this.options.useRefreshTokens&&(this.scope=Lc(this.scope,"offline_access")),"undefined"!=typeof window&&window.Worker&&this.options.useRefreshTokens&&"memory"===this.cacheLocation&&!/Trident.*rv:11\.0/.test(navigator.userAgent)&&(this.worker=new ra),this.customOptions=function(e){return e.advancedOptions,e.audience,e.auth0Client,e.authorizeTimeoutInSeconds,e.cacheLocation,e.client_id,e.domain,e.issuer,e.leeway,e.max_age,e.redirect_uri,e.scope,e.useRefreshTokens,e.useCookiesForTransactions,e.useFormData,d(e,["advancedOptions","audience","auth0Client","authorizeTimeoutInSeconds","cacheLocation","client_id","domain","issuer","leeway","max_age","redirect_uri","scope","useRefreshTokens","useCookiesForTransactions","useFormData"])}(e)}return e.prototype._url=function(e){var t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||vc)));return"".concat(this.domainUrl).concat(e,"&auth0Client=").concat(t)},e.prototype._getParams=function(e,t,n,r,o){var i=this.options;i.useRefreshTokens,i.useCookiesForTransactions,i.useFormData,i.auth0Client,i.cacheLocation,i.advancedOptions,i.detailedResponse,i.nowProvider,i.authorizeTimeoutInSeconds,i.legacySameSiteCookie,i.sessionCheckExpiryDays,i.domain,i.leeway,i.httpTimeoutInSeconds;var c=d(i,["useRefreshTokens","useCookiesForTransactions","useFormData","auth0Client","cacheLocation","advancedOptions","detailedResponse","nowProvider","authorizeTimeoutInSeconds","legacySameSiteCookie","sessionCheckExpiryDays","domain","leeway","httpTimeoutInSeconds"]);return f(f(f({},c),e),{scope:Lc(this.defaultScope,this.scope,e.scope),response_type:"code",response_mode:"query",state:t,nonce:n,redirect_uri:o||this.options.redirect_uri,code_challenge:r,code_challenge_method:"S256"})},e.prototype._authorizeUrl=function(e){return this._url("/authorize?".concat(Oc(e)))},e.prototype._verifyIdToken=function(e,t,n){return h(this,void 0,void 0,(function(){var r;return p(this,(function(o){switch(o.label){case 0:return[4,this.nowProvider()];case 1:return r=o.sent(),[2,Mc({iss:this.tokenIssuer,aud:this.options.client_id,id_token:e,nonce:t,organizationId:n,leeway:this.options.leeway,max_age:this._parseNumber(this.options.max_age),now:r})]}}))}))},e.prototype._parseNumber=function(e){return"string"!=typeof e?e:parseInt(e,10)||void 0},e.prototype._processOrgIdHint=function(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays}):this.cookieStorage.remove(this.orgHintCookieName)},e.prototype.buildAuthorizeUrl=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l,h,y;return p(this,(function(p){switch(p.label){case 0:return t=e.redirect_uri,n=e.appState,r=d(e,["redirect_uri","appState"]),o=Kc(Cc()),i=Kc(Cc()),c=Cc(),[4,xc(c)];case 1:return a=p.sent(),s=Uc(a),u=e.fragment?"#".concat(e.fragment):"",l=this._getParams(r,o,i,s,t),h=this._authorizeUrl(l),y=e.organization||this.options.organization,this.transactionManager.create(f({nonce:i,code_verifier:c,appState:n,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o},y&&{organizationId:y})),[2,h+u]}}))}))},e.prototype.loginWithPopup=function(e,t){return h(this,void 0,void 0,(function(){var n,r,o,i,c,a,s,u,l,h,y,v,m;return p(this,(function(p){switch(p.label){case 0:if(e=e||{},!(t=t||{}).popup&&(t.popup=function(e){var t=window.screenX+(window.innerWidth-400)/2,n=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup","left=".concat(t,",top=").concat(n,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))}(),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");return n=d(e,[]),r=Kc(Cc()),o=Kc(Cc()),i=Cc(),[4,xc(i)];case 1:return c=p.sent(),a=Uc(c),s=this._getParams(n,r,o,a,this.options.redirect_uri||window.location.origin),u=this._authorizeUrl(f(f({},s),{response_mode:"web_message"})),t.popup.location.href=u,[4,Tc(f(f({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}))];case 2:if(l=p.sent(),r!==l.state)throw new Error("Invalid state");return[4,Vc({audience:s.audience,scope:s.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:i,code:l.code,grant_type:"authorization_code",redirect_uri:s.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},this.worker)];case 3:return h=p.sent(),y=e.organization||this.options.organization,[4,this._verifyIdToken(h.id_token,o,y)];case 4:return v=p.sent(),m=f(f({},h),{decodedToken:v,scope:s.scope,audience:s.audience||"default",client_id:this.options.client_id}),[4,this.cacheManager.set(m)];case 5:return p.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(v.claims.org_id),[2]}}))}))},e.prototype.getUser=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=Lc(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new jc({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.user]}}))}))},e.prototype.getIdTokenClaims=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:return t=e.audience||this.options.audience||"default",n=Lc(this.defaultScope,this.scope,e.scope),[4,this.cacheManager.get(new jc({client_id:this.options.client_id,audience:t,scope:n}))];case 1:return[2,(r=o.sent())&&r.decodedToken&&r.decodedToken.claims]}}))}))},e.prototype.loginWithRedirect=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:return t=e.redirectMethod,n=d(e,["redirectMethod"]),[4,this.buildAuthorizeUrl(n)];case 1:return r=o.sent(),window.location[t||"assign"](r),[2]}}))}))},e.prototype.handleRedirectCallback=function(e){return void 0===e&&(e=window.location.href),h(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l;return p(this,(function(d){switch(d.label){case 0:if(0===(t=e.split("?").slice(1)).length)throw new Error("There are no query params available for parsing.");if(n=function(e){e.indexOf("#")>-1&&(e=e.substr(0,e.indexOf("#")));var t=e.split("&"),n={};return t.forEach((function(e){var t=y(e.split("="),2),r=t[0],o=t[1];n[r]=decodeURIComponent(o)})),n.expires_in&&(n.expires_in=parseInt(n.expires_in)),n}(t.join("")),r=n.state,o=n.code,i=n.error,c=n.error_description,!(a=this.transactionManager.get()))throw new Error("Invalid state");if(this.transactionManager.remove(),i)throw new gc(i,c,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Error("Invalid state");return s={audience:a.audience,scope:a.scope,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},void 0!==a.redirect_uri&&(s.redirect_uri=a.redirect_uri),[4,Vc(s,this.worker)];case 1:return u=d.sent(),[4,this._verifyIdToken(u.id_token,a.nonce,a.organizationId)];case 2:return l=d.sent(),[4,this.cacheManager.set(f(f(f(f({},u),{decodedToken:l,audience:a.audience,scope:a.scope}),u.scope?{oauthTokenScope:u.scope}:null),{client_id:this.options.client_id}))];case 3:return d.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(l.claims.org_id),[2,{appState:a.appState}]}}))}))},e.prototype.checkSession=function(e){return h(this,void 0,void 0,(function(){var t;return p(this,(function(n){switch(n.label){case 0:if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return[2];this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getTokenSilently(e)];case 2:return n.sent(),[3,4];case 3:if(t=n.sent(),!yc.includes(t.error))throw t;return[3,4];case 4:return[2]}}))}))},e.prototype.getTokenSilently=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r,o=this;return p(this,(function(i){return t=f(f({audience:this.options.audience,ignoreCache:!1},e),{scope:Lc(this.defaultScope,this.scope,e.scope)}),n=t.ignoreCache,r=d(t,["ignoreCache"]),[2,(c=function(){return o._getTokenSilently(f({ignoreCache:n},r))},a="".concat(this.options.client_id,"::").concat(r.audience,"::").concat(r.scope),s=oa[a],s||(s=c().finally((function(){delete oa[a],s=null})),oa[a]=s),s)];var c,a,s}))}))},e.prototype._getTokenSilently=function(e){return void 0===e&&(e={}),h(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return p(this,(function(l){switch(l.label){case 0:return t=e.ignoreCache,n=d(e,["ignoreCache"]),t?[3,2]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 1:if(r=l.sent())return[2,r];l.label=2;case 2:return[4,(y=function(){return ca.acquireLock("auth0.lock.getTokenSilently",5e3)},v=10,void 0===v&&(v=3),h(void 0,void 0,void 0,(function(){var e;return p(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<v?[4,y()]:[3,4];case 2:if(t.sent())return[2,!0];t.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))})))];case 3:if(!l.sent())return[3,15];l.label=4;case 4:return l.trys.push([4,,12,14]),t?[3,6]:[4,this._getEntryFromCache({scope:n.scope,audience:n.audience||"default",client_id:this.options.client_id,getDetailedEntry:e.detailedResponse})];case 5:if(r=l.sent())return[2,r];l.label=6;case 6:return this.options.useRefreshTokens?[4,this._getTokenUsingRefreshToken(n)]:[3,8];case 7:return i=l.sent(),[3,10];case 8:return[4,this._getTokenFromIFrame(n)];case 9:i=l.sent(),l.label=10;case 10:return o=i,[4,this.cacheManager.set(f({client_id:this.options.client_id},o))];case 11:return l.sent(),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),e.detailedResponse?(c=o.id_token,a=o.access_token,s=o.oauthTokenScope,u=o.expires_in,[2,f(f({id_token:c,access_token:a},s?{scope:s}:null),{expires_in:u})]):[2,o.access_token];case 12:return[4,ca.releaseLock("auth0.lock.getTokenSilently")];case 13:return l.sent(),[7];case 14:return[3,16];case 15:throw new wc;case 16:return[2]}var y,v}))}))},e.prototype.getTokenWithPopup=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),h(this,void 0,void 0,(function(){return p(this,(function(n){switch(n.label){case 0:return e.audience=e.audience||this.options.audience,e.scope=Lc(this.defaultScope,this.scope,e.scope),t=f(f({},pc),t),[4,this.loginWithPopup(e,t)];case 1:return n.sent(),[4,this.cacheManager.get(new jc({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 2:return[2,n.sent().access_token]}}))}))},e.prototype.isAuthenticated=function(){return h(this,void 0,void 0,(function(){return p(this,(function(e){switch(e.label){case 0:return[4,this.getUser()];case 1:return[2,!!e.sent()]}}))}))},e.prototype.buildLogoutUrl=function(e){void 0===e&&(e={}),null!==e.client_id?e.client_id=e.client_id||this.options.client_id:delete e.client_id;var t=e.federated,n=d(e,["federated"]),r=t?"&federated":"";return this._url("/v2/logout?".concat(Oc(n)))+r},e.prototype.logout=function(e){var t=this;void 0===e&&(e={});var n=e.localOnly,r=d(e,["localOnly"]);if(n&&r.federated)throw new Error("It is invalid to set both the `federated` and `localOnly` options to `true`");var o=function(){if(t.cookieStorage.remove(t.orgHintCookieName),t.cookieStorage.remove(t.isAuthenticatedCookieName),!n){var e=t.buildLogoutUrl(r);window.location.assign(e)}};if(this.options.cache)return this.cacheManager.clear().then((function(){return o()}));this.cacheManager.clearSync(),o()},e.prototype._getTokenFromIFrame=function(e){return h(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u,l,h,y,v,m,b,g,w;return p(this,(function(p){switch(p.label){case 0:return t=Kc(Cc()),n=Kc(Cc()),r=Cc(),[4,xc(r)];case 1:o=p.sent(),i=Uc(o),c=d(e,["detailedResponse"]),a=this._getParams(c,t,n,i,e.redirect_uri||this.options.redirect_uri||window.location.origin),(s=this.cookieStorage.get(this.orgHintCookieName))&&!a.organization&&(a.organization=s),u=this._authorizeUrl(f(f({},a),{prompt:"none",response_mode:"web_message"})),p.label=2;case 2:if(p.trys.push([2,6,,7]),window.crossOriginIsolated)throw new bc("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");return l=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,[4,(S=u,I=this.domainUrl,k=l,void 0===k&&(k=60),new Promise((function(e,t){var n=window.document.createElement("iframe");n.setAttribute("width","0"),n.setAttribute("height","0"),n.style.display="none";var r,o=function(){window.document.body.contains(n)&&(window.document.body.removeChild(n),window.removeEventListener("message",r,!1))},i=setTimeout((function(){t(new wc),o()}),1e3*k);r=function(n){if(n.origin==I&&n.data&&"authorization_response"===n.data.type){var c=n.source;c&&c.close(),n.data.response.error?t(bc.fromPayload(n.data.response)):e(n.data.response),clearTimeout(i),window.removeEventListener("message",r,!1),setTimeout(o,2e3)}},window.addEventListener("message",r,!1),window.document.body.appendChild(n),n.setAttribute("src",S)})))];case 3:if(h=p.sent(),t!==h.state)throw new Error("Invalid state");return y=e.scope,v=e.audience,m=d(e,["scope","audience","redirect_uri","ignoreCache","timeoutInSeconds","detailedResponse"]),[4,Vc(f(f(f({},this.customOptions),m),{scope:y,audience:v,baseUrl:this.domainUrl,client_id:this.options.client_id,code_verifier:r,code:h.code,grant_type:"authorization_code",redirect_uri:a.redirect_uri,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:m.timeout||this.httpTimeoutMs}),this.worker)];case 4:return b=p.sent(),[4,this._verifyIdToken(b.id_token,n)];case 5:return g=p.sent(),this._processOrgIdHint(g.claims.org_id),[2,f(f({},b),{decodedToken:g,scope:a.scope,oauthTokenScope:b.scope,audience:a.audience||"default"})];case 6:throw"login_required"===(w=p.sent()).error&&this.logout({localOnly:!0}),w;case 7:return[2]}var S,I,k}))}))},e.prototype._getTokenUsingRefreshToken=function(e){return h(this,void 0,void 0,(function(){var t,n,r,o,i,c,a,s,u;return p(this,(function(l){switch(l.label){case 0:return e.scope=Lc(this.defaultScope,this.options.scope,e.scope),[4,this.cacheManager.get(new jc({scope:e.scope,audience:e.audience||"default",client_id:this.options.client_id}))];case 1:return(t=l.sent())&&t.refresh_token||this.worker?[3,3]:[4,this._getTokenFromIFrame(e)];case 2:return[2,l.sent()];case 3:n=e.redirect_uri||this.options.redirect_uri||window.location.origin,o=e.scope,i=e.audience,c=d(e,["scope","audience","ignoreCache","timeoutInSeconds","detailedResponse"]),a="number"==typeof e.timeoutInSeconds?1e3*e.timeoutInSeconds:null,l.label=4;case 4:return l.trys.push([4,6,,9]),[4,Vc(f(f(f(f(f({},this.customOptions),c),{audience:i,scope:o,baseUrl:this.domainUrl,client_id:this.options.client_id,grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),a&&{timeout:a}),{auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs}),this.worker)];case 5:return r=l.sent(),[3,9];case 6:return"The web worker is missing the refresh token"===(s=l.sent()).message||s.message&&s.message.indexOf("invalid refresh token")>-1?[4,this._getTokenFromIFrame(e)]:[3,8];case 7:return[2,l.sent()];case 8:throw s;case 9:return[4,this._verifyIdToken(r.id_token)];case 10:return u=l.sent(),[2,f(f({},r),{decodedToken:u,scope:e.scope,oauthTokenScope:r.scope,audience:e.audience||"default"})]}}))}))},e.prototype._getEntryFromCache=function(e){var t=e.scope,n=e.audience,r=e.client_id,o=e.getDetailedEntry,i=void 0!==o&&o;return h(this,void 0,void 0,(function(){var e,o,c,a,s;return p(this,(function(u){switch(u.label){case 0:return[4,this.cacheManager.get(new jc({scope:t,audience:n,client_id:r}),60)];case 1:return(e=u.sent())&&e.access_token?i?(o=e.id_token,c=e.access_token,a=e.oauthTokenScope,s=e.expires_in,[2,f(f({id_token:o,access_token:c},a?{scope:a}:null),{expires_in:s})]):[2,e.access_token]:[2]}}))}))},e}(),la={isAuthenticated:!1,isLoading:!0},fa=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},da=i(i({},la),{buildAuthorizeUrl:fa,buildLogoutUrl:fa,getAccessTokenSilently:fa,getAccessTokenWithPopup:fa,getIdTokenClaims:fa,loginWithRedirect:fa,loginWithPopup:fa,logout:fa,handleRedirectCallback:fa}),ha=t.createContext(da),pa=function(e){function t(t,n){var r=e.call(this,n||t)||this;return r.error=t,r.error_description=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),ya=/[?&]code=[^&]+/,va=/[?&]state=[^&]+/,ma=/[?&]error=[^&]+/,ba=function(e){return function(t){return"error"in t?new pa(t.error,t.error_description):t instanceof Error?t:new Error(e)}},ga=ba("Login failed"),wa=ba("Get access token failed"),Sa=function(e,t){var n,r;switch(t.type){case"LOGIN_POPUP_STARTED":return i(i({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return i(i({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return(null===(n=e.user)||void 0===n?void 0:n.updated_at)===(null===(r=t.user)||void 0===r?void 0:r.updated_at)?e:i(i({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return i(i({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return i(i({},e),{isLoading:!1,error:t.error})}},Ia=function(e){if(e){var t=e.redirectUri,n=c(e,["redirectUri"]);return i(i({},n),{redirect_uri:t})}},ka=function(e){window.history.replaceState({},document.title,(null==e?void 0:e.returnTo)||window.location.pathname)},Ta=function(){return t.useContext(ha)},_a=function(){return r.default.createElement(r.default.Fragment,null)},Ea=function(){return"".concat(window.location.pathname).concat(window.location.search)};e.Auth0Context=ha,e.Auth0Provider=function(e){var n=e.children,o=e.skipRedirectCallback,u=e.onRedirectCallback,l=void 0===u?ka:u,f=c(e,["children","skipRedirectCallback","onRedirectCallback"]),d=t.useState((function(){return new ua(function(e){var t=e.clientId,n=e.redirectUri,r=e.maxAge,o=c(e,["clientId","redirectUri","maxAge"]);return i(i({},o),{client_id:t,redirect_uri:n,max_age:r,auth0Client:{name:"auth0-react",version:"1.10.0"}})}(f))}))[0],h=t.useReducer(Sa,la),p=h[0],y=h[1];t.useEffect((function(){a(void 0,void 0,void 0,(function(){var e,t,n;return s(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),void 0===i&&(i=window.location.search),!ya.test(i)&&!ma.test(i)||!va.test(i)||o?[3,2]:[4,d.handleRedirectCallback()];case 1:return e=r.sent().appState,l(e),[3,4];case 2:return[4,d.checkSession()];case 3:r.sent(),r.label=4;case 4:return[4,d.getUser()];case 5:return t=r.sent(),y({type:"INITIALISED",user:t}),[3,7];case 6:return n=r.sent(),y({type:"ERROR",error:ga(n)}),[3,7];case 7:return[2]}var i}))}))}),[d,l,o]);var v=t.useCallback((function(e){return d.buildAuthorizeUrl(Ia(e))}),[d]),m=t.useCallback((function(e){return d.buildLogoutUrl(e)}),[d]),b=t.useCallback((function(e){return d.loginWithRedirect(Ia(e))}),[d]),g=t.useCallback((function(e,t){return a(void 0,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:y({type:"LOGIN_POPUP_STARTED"}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,d.loginWithPopup(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),y({type:"ERROR",error:ga(n)}),[2];case 4:return[4,d.getUser()];case 5:return r=o.sent(),y({type:"LOGIN_POPUP_COMPLETE",user:r}),[2]}}))}))}),[d]),w=t.useCallback((function(e){void 0===e&&(e={});var t=d.logout(e);if(e.localOnly){if(t&&"function"==typeof t.then)return t.then((function(){return y({type:"LOGOUT"})}));y({type:"LOGOUT"})}return t}),[d]),S=t.useCallback((function(e){return a(void 0,void 0,void 0,(function(){var t,n,r,o;return s(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,5]),[4,d.getTokenSilently(e)];case 1:return t=i.sent(),[3,5];case 2:throw n=i.sent(),wa(n);case 3:return r=y,o={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return r.apply(void 0,[(o.user=i.sent(),o)]),[7];case 5:return[2,t]}}))}))}),[d]),I=t.useCallback((function(e,t){return a(void 0,void 0,void 0,(function(){var n,r,o,i;return s(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,5]),[4,d.getTokenWithPopup(e,t)];case 1:return n=c.sent(),[3,5];case 2:throw r=c.sent(),wa(r);case 3:return o=y,i={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,d.getUser()];case 4:return o.apply(void 0,[(i.user=c.sent(),i)]),[7];case 5:return[2,n]}}))}))}),[d]),k=t.useCallback((function(e){return d.getIdTokenClaims(e)}),[d]),T=t.useCallback((function(e){return a(void 0,void 0,void 0,(function(){var t,n,r;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,5]),[4,d.handleRedirectCallback(e)];case 1:return[2,o.sent()];case 2:throw t=o.sent(),wa(t);case 3:return n=y,r={type:"HANDLE_REDIRECT_COMPLETE"},[4,d.getUser()];case 4:return n.apply(void 0,[(r.user=o.sent(),r)]),[7];case 5:return[2]}}))}))}),[d]),_=t.useMemo((function(){return i(i({},p),{buildAuthorizeUrl:v,buildLogoutUrl:m,getAccessTokenSilently:S,getAccessTokenWithPopup:I,getIdTokenClaims:k,loginWithRedirect:b,loginWithPopup:g,logout:w,handleRedirectCallback:T})}),[p,v,m,S,I,k,b,g,w,T]);return r.default.createElement(ha.Provider,{value:_},n)},e.InMemoryCache=Yc,e.LocalStorageCache=Ac,e.OAuthError=pa,e.User=function(){},e.useAuth0=Ta,e.withAuth0=function(e){return function(t){return r.default.createElement(ha.Consumer,null,(function(n){return r.default.createElement(e,i({},t,{auth0:n}))}))}},e.withAuthenticationRequired=function(e,n){return void 0===n&&(n={}),function(o){var c=this,u=Ta(),l=u.user,f=u.isAuthenticated,d=u.isLoading,h=u.loginWithRedirect,p=n.returnTo,y=void 0===p?Ea:p,v=n.onRedirecting,m=void 0===v?_a:v,b=n.claimCheck,g=void 0===b?function(){return!0}:b,w=n.loginOptions,S=f&&g(l);return t.useEffect((function(){if(!d&&!S){var e=i(i({},w),{appState:i(i({},w&&w.appState),{returnTo:"function"==typeof y?y():y})});a(c,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return[4,h(e)];case 1:return t.sent(),[2]}}))}))}}),[d,S,h,w,y]),S?r.default.createElement(e,i({},o)):m()}},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
30
30
|
//# sourceMappingURL=auth0-react.min.js.map
|