PageSourceSearch

https://www.accelevents.com/static/oktaService-DuaxI3eN.js

js accelevents.com collected 2026-09-24 08:45:01 UTC 65,956 bytes, 16 lines download raw bytes

1import{g as ie}from"./vendor-react-nj2ukvvY.js";var te={exports:{}};/*!
2 * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
3 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4 * 
5 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6 * Unless required by applicable law or agreed to in writing, software
7 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9 * 
10 * See the License for the specific language governing permissions and limitations under the License.
11 * 
12 */var se=te.exports,oe;function ae(){return oe||(oe=1,(function(ne,X){(function(R,M){ne.exports=M()})(typeof self<"u"?self:se,function(){return(function(R){function M(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return R[t].call(n.exports,n,n.exports,M),n.l=!0,n.exports}var i={};return M.m=R,M.c=i,M.d=function(t,n,m){M.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:m})},M.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return M.d(n,"a",n),n},M.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},M.p="",M(M.s=11)})([function(R,M){var i=R.exports;i.stringToBase64Url=function(t){var n=btoa(t);return i.base64ToBase64Url(n)},i.base64ToBase64Url=function(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},i.base64UrlToBase64=function(t){return t.replace(/-/g,"+").replace(/_/g,"/")},i.base64UrlToString=function(t){var n=i.base64UrlToBase64(t);switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Not a valid Base64Url"}var m=atob(n);try{return decodeURIComponent(escape(m))}catch{return m}},i.stringToBuffer=function(t){for(var n=new Uint8Array(t.length),m=0;m<t.length;m++)n[m]=t.charCodeAt(m);return n},i.base64UrlDecode=function(t){return atob(i.base64UrlToBase64(t))},i.bind=function(t,n){var m=Array.prototype.slice.call(arguments,2);return function(){var p=Array.prototype.slice.call(arguments);return p=m.concat(p),t.apply(n,p)}},i.isAbsoluteUrl=function(t){return/^(?:[a-z]+:)?\/\//i.test(t)},i.isString=function(t){return Object.prototype.toString.call(t)==="[object String]"},i.isObject=function(t){return Object.prototype.toString.call(t)==="[object Object]"},i.isNumber=function(t){return Object.prototype.toString.call(t)==="[object Number]"},i.isoToUTCString=function(t){var n=t.match(/\d+/g),m=Date.UTC(n[0],n[1]-1,n[2],n[3],n[4],n[5]);return new Date(m).toUTCString()},i.toQueryParams=function(t){var n=[];if(t!==null)for(var m in t)t.hasOwnProperty(m)&&t[m]!==void 0&&t[m]!==null&&n.push(m+"="+encodeURIComponent(t[m]));return n.length?"?"+n.join("&"):""},i.genRandomString=function(t){for(var n="abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",m="",p=0,w=n.length;p<t;++p)m+=n[Math.floor(Math.random()*w)];return m},i.extend=function(){var t=arguments[0];return[].slice.call(arguments,1).forEach(function(n){for(var m in n)n.hasOwnProperty(m)&&n[m]!==void 0&&(t[m]=n[m])}),t},i.removeNils=function(t){var n={};for(var m in t)if(t.hasOwnProperty(m)){var p=t[m];p!=null&&(n[m]=p)}return n},i.clone=function(t){if(t){var n=JSON.stringify(t);if(n)return JSON.parse(n)}return t},i.omit=function(t){var n=Array.prototype.slice.call(arguments,1),m={};for(var p in t)t.hasOwnProperty(p)&&n.indexOf(p)==-1&&(m[p]=t[p]);return i.clone(m)},i.find=function(t,n){for(var m=t.length;m--;){var p=t[m],w=!0;for(var h in n)if(n.hasOwnProperty(h)&&p[h]!==n[h]){w=!1;break}if(w)return p}},i.getLink=function(t,n,m){if(t&&t._links){var p=i.clone(t._links[n]);return p&&p.name&&m?p.name===m?p:void 0:p}},i.getNativeConsole=function(){return typeof window<"u"?window.console:typeof console<"u"?console:void 0},i.getConsole=function(){var t=i.getNativeConsole();return t&&t.log?t:{log:function(){}}},i.warn=function(t){i.getConsole().log("[okta-auth-sdk] WARN: "+t)},i.deprecate=function(t){i.getConsole().log("[okta-auth-sdk] DEPRECATION: "+t)},i.deprecateWrap=function(t,n){return function(){return i.deprecate(t),n.apply(null,arguments)}},i.removeTrailingSlash=function(t){if(t){var n=t.replace(/^\s+|\s+$/gm,"");return n=n.replace(/\/+$/,"")}},i.isIE11OrLess=function(){return!!document.documentMode&&document.documentMode<=11},i.isFunction=function(t){return!!t&&{}.toString.call(t)==="[object Function]"},i.delay=function(t){return new Promise(function(n){setTimeout(n,t)})},i.isPromise=function(t){return t&&t.finally&&typeof t.finally=="function"}},function(R,M){function i(t,n){this.name="AuthSdkError",this.message=t,this.errorCode="INTERNAL",this.errorSummary=t,this.errorLink="INTERNAL",this.errorId="INTERNAL",this.errorCauses=[],n&&(this.xhr=n)}i.prototype=new Error,R.exports=i},function(R,M,i){var t=i(14),n=i(7),m=i(3),p=i(1),w={};w.browserHasLocalStorage=function(){try{var h=w.getLocalStorage();return w.testStorage(h)}catch{return!1}}
12,w.browserHasSessionStorage=function(){try{var h=w.getSessionStorage();return w.testStorage(h)}catch{return!1}},w.getPKCEStorage=function(h){return h=h||{},!h.preferLocalStorage&&w.browserHasSessionStorage()?n(w.getSessionStorage(),m.PKCE_STORAGE_NAME):w.browserHasLocalStorage()?n(w.getLocalStorage(),m.PKCE_STORAGE_NAME):n(w.getCookieStorage(h),m.PKCE_STORAGE_NAME)},w.getHttpCache=function(h){return w.browserHasLocalStorage()?n(w.getLocalStorage(),m.CACHE_STORAGE_NAME):w.browserHasSessionStorage()?n(w.getSessionStorage(),m.CACHE_STORAGE_NAME):n(w.getCookieStorage(h),m.CACHE_STORAGE_NAME)},w.getLocalStorage=function(){return localStorage},w.getSessionStorage=function(){return sessionStorage},w.getCookieStorage=function(h){var f=h.secure,d=h.sameSite;if(f===void 0||d===void 0)throw new p('getCookieStorage: "secure" and "sameSite" options must be provided');return{getItem:w.storage.get,setItem:function(T,_){w.storage.set(T,_,"2200-01-01T00:00:00.000Z",{secure:f,sameSite:d})}}},w.getInMemoryStorage=function(){var h={};return{getItem:function(f){return h[f]},setItem:function(f,d){h[f]=d}}},w.testStorage=function(h){var f="okta-test-storage";try{return h.setItem(f,f),h.removeItem(f),!0}catch{return!1}},w.storage={set:function(h,f,d,T){var _=T.secure,H=T.sameSite;if(_===void 0||H===void 0)throw new p('storage.set: "secure" and "sameSite" options must be provided');var F={path:T.path||"/",secure:_,sameSite:H};return Date.parse(d)&&(F.expires=new Date(d)),t.set(h,f,F),w.storage.get(h)},get:function(h){return t.get(h)},delete:function(h){return t.remove(h,{path:"/"})}},R.exports=w},function(R,M){R.exports={STATE_TOKEN_KEY_NAME:"oktaStateToken",DEFAULT_POLLING_DELAY:500,DEFAULT_MAX_CLOCK_SKEW:300,DEFAULT_CACHE_DURATION:86400,REDIRECT_OAUTH_PARAMS_NAME:"okta-oauth-redirect-params",REDIRECT_STATE_COOKIE_NAME:"okta-oauth-state",REDIRECT_NONCE_COOKIE_NAME:"okta-oauth-nonce",TOKEN_STORAGE_NAME:"okta-token-storage",CACHE_STORAGE_NAME:"okta-cache-storage",PKCE_STORAGE_NAME:"okta-pkce-storage",ACCESS_TOKEN_STORAGE_KEY:"accessToken",ID_TOKEN_STORAGE_KEY:"idToken"}},function(R,M,i){function t(f,d){d=d||{};var T=d.url,_=d.method,H=d.args,F=d.saveAuthnState,B=d.accessToken,q=d.withCredentials!==!1,K=f.options.storageUtil,N=K.storage,O=K.getHttpCache(f.options.cookies);if(d.cacheResponse){var b=O.getStorage(),u=b[T];if(u&&Date.now()/1e3<u.expiresAt)return Promise.resolve(u.response)}var c={Accept:"application/json","Content-Type":"application/json","X-Okta-User-Agent-Extended":f.userAgent};p.extend(c,f.options.headers,d.headers),B&&p.isString(B)&&(c.Authorization="Bearer "+B);var a,g,A={headers:c,data:H||void 0,withCredentials:q};return f.options.httpRequestClient(_,T,A).then(function(E){return g=E.responseText,g&&p.isString(g)&&(g=JSON.parse(g)),F&&(g.stateToken||N.delete(h.STATE_TOKEN_KEY_NAME)),g&&g.stateToken&&g.expiresAt&&N.set(h.STATE_TOKEN_KEY_NAME,g.stateToken,g.expiresAt,f.options.cookies),g&&d.cacheResponse&&O.updateStorage(T,{expiresAt:Math.floor(Date.now()/1e3)+h.DEFAULT_CACHE_DURATION,response:g}),g}).catch(function(E){var k=E.responseText||{};if(p.isString(k))try{k=JSON.parse(k)}catch{k={errorSummary:"Unknown error"}}throw E.status>=500&&(k.errorSummary="Unknown error"),f.options.transformErrorXHR&&(E=f.options.transformErrorXHR(p.clone(E))),a=new w(k,E),a.errorCode==="E0000011"&&N.delete(h.STATE_TOKEN_KEY_NAME),a})}function n(f,d,T){d=p.isAbsoluteUrl(d)?d:f.getIssuerOrigin()+d;var _={url:d,method:"GET"};return p.extend(_,T),t(f,_)}function m(f,d,T,_){d=p.isAbsoluteUrl(d)?d:f.getIssuerOrigin()+d;var H={url:d,method:"POST",args:T,saveAuthnState:!0};return p.extend(H,_),t(f,H)}var p=i(0),w=i(19),h=i(3);R.exports={get:n,post:m,httpRequest:t}},function(R,M,i){function t(){return b.genRandomString(64)}function n(){return b.genRandomString(64)}function m(a){return!(!a||!a.accessToken&&!a.idToken||!Array.isArray(a.scopes))}function p(a,g,A){a.addEventListener?a.addEventListener(g,A):a.attachEvent("on"+g,A)}function w(a,g,A){a.removeEventListener?a.removeEventListener(g,A):a.detachEvent("on"+g,A)}function h(a){var g=document.createElement("iframe");return g.style.display="none",g.src=a,document.body.appendChild(g)}function f(a,g){var A=g.popupTitle||"External Identity Provider User Authentication",E="toolbar=no, scrollbars=yes, resizable=yes, top=100, left=500, width=600, height=600";if(b.isIE11OrLess()){var k=window.open("/",A,E);return k.location.href=a,k}return window.open(a,A,E)}function d(a,g){var A=g||a.options.issuer;return O.get(a,A+"/.well-known/openid-configuration",{cacheResponse:!0})}function T(a,g,A){var E=u.getHttpCache(a.options.cookies);return d(a,g).then(function(k){var e=k.jwks_uri,r=E.getStorage(),l=r[e];if(l&&Date.now()/1e3<l.expiresAt){var I=b.find(l.response.keys,{kid:A});
12if(I)return I}return E.clearStorage(e),O.get(a,e,{cacheResponse:!0}).then(function(x){var P=b.find(x.keys,{kid:A});if(P)return P;throw new c("The key id, "+A+", was not found in the server's keys")})})}function _(a,g,A){var E=A.clientId,k=A.issuer,e=A.nonce;if(!g||!k||!E)throw new c("The jwt, iss, and aud arguments are all required");if(e&&g.nonce!==e)throw new c("OAuth flow response nonce doesn't match request nonce");var r=Math.floor(Date.now()/1e3);if(g.iss!==k)throw new c("The issuer ["+g.iss+"] does not match ["+k+"]");if(g.aud!==E)throw new c("The audience ["+g.aud+"] does not match ["+E+"]");if(g.iat>g.exp)throw new c("The JWT expired before it was issued");if(r-a.options.maxClockSkew>g.exp)throw new c("The JWT expired and is no longer valid");if(g.iat>r+a.options.maxClockSkew)throw new c("The JWT was issued in the future")}function H(a,g){if(arguments.length>2)throw new c('As of version 3.0, "getOAuthUrls" takes only a single set of options');g=g||{};var A=b.removeTrailingSlash(g.authorizeUrl)||a.options.authorizeUrl,E=b.removeTrailingSlash(g.issuer)||a.options.issuer,k=b.removeTrailingSlash(g.userinfoUrl)||a.options.userinfoUrl,e=b.removeTrailingSlash(g.tokenUrl)||a.options.tokenUrl,r=b.removeTrailingSlash(g.logoutUrl)||a.options.logoutUrl,l=b.removeTrailingSlash(g.revokeUrl)||a.options.revokeUrl,I=E.indexOf("/oauth2")>0?E:E+"/oauth2";return A=A||I+"/v1/authorize",k=k||I+"/v1/userinfo",e=e||I+"/v1/token",l=l||I+"/v1/revoke",r=r||I+"/v1/logout",{issuer:E,authorizeUrl:A,userinfoUrl:k,tokenUrl:e,revokeUrl:l,logoutUrl:r}}function F(a){var g=/\+/g,A=/([^&=]+)=?([^&]*)/g,E=a;E.charAt(0)==="#"&&E.charAt(1)==="/"&&(E=E.substring(2)),E.charAt(0)!=="#"&&E.charAt(0)!=="?"||(E=E.substring(1));for(var k,e={};k=A.exec(E);){var r=k[1],l=k[2];e[r]=r==="id_token"||r==="access_token"||r==="code"?l:decodeURIComponent(l.replace(g," "))}return e}function B(a){return/((id|access)_token=)/i.test(a)}function q(a){return/(code=)/i.test(a)}function K(a,g){var A=g.options;return a&&a.indexOf(A.redirectUri)==0}function N(a){var g=a.options;if(g.pkce||g.responseType==="code"||g.responseMode==="query"){var A=q(g.responseMode==="fragment"?window.location.hash:window.location.search);return K(window.location.href,a)&&A}return B(window.location.hash)}var O=i(4),b=i(0),u=i(2),c=i(1);R.exports={generateState:t,generateNonce:n,getWellKnown:d,getKey:T,validateClaims:_,getOAuthUrls:H,loadFrame:h,loadPopup:f,urlParamsToObject:F,isToken:m,addListener:p,removeListener:w,isLoginRedirect:N}},function(R,M){function i(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R.exports=i=function(n){return typeof n}:R.exports=i=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(t)}R.exports=i},function(R,M,i){function t(m,p){function w(){var T=m.getItem(p);T=T||"{}";try{return JSON.parse(T)}catch{throw new n("Unable to parse storage string: "+p)}}function h(T){try{var _=JSON.stringify(T);m.setItem(p,_)}catch{throw new n("Unable to set storage: "+p)}}function f(T){if(!T)return h({});var _=w();delete _[T],h(_)}function d(T,_){var H=w();H[T]=_,h(H)}if(typeof p!="string"||!p.length)throw new n('"storageName" is required');return{getStorage:w,setStorage:h,clearStorage:f,updateStorage:d}}var n=i(1);R.exports=t},function(R,M,i){R.exports=i(16)},function(R,M){function i(n,m,p,w,h,f,d){try{var T=n[f](d),_=T.value}catch(H){return void p(H)}T.done?m(_):Promise.resolve(_).then(w,h)}function t(n){return function(){var m=this,p=arguments;return new Promise(function(w,h){function f(_){i(T,w,h,f,d,"next",_)}function d(_){i(T,w,h,f,d,"throw",_)}var T=n.apply(m,p);f(void 0)})}}R.exports=t},function(R,M,i){function t(u,c){var a={};return K.extend(a,c),!a.stateToken&&u.stateToken&&(a.stateToken=u.stateToken),a}function n(u){return t(u)}function m(u,c){return c=t(u,c),q.post(u,u.getIssuerOrigin()+"/api/v1/authn",c)}function p(u,c){if(!c||!c.stateToken){var a=u.tx.exists._get(b.STATE_TOKEN_KEY_NAME);if(!a)return Promise.reject(new N("No transaction to resume"));c={stateToken:a}}return u.tx.status(c).then(function(g){return new B(u,g)})}
12function w(u,c){if(!c||!c.stateToken){var a=u.tx.exists._get(b.STATE_TOKEN_KEY_NAME);if(!a)return Promise.reject(new N("No transaction to evaluate"));c={stateToken:a}}return h(u,c).then(function(g){return new B(u,g)})}function h(u,c){return c=t(u,c),q.post(u,u.getIssuerOrigin()+"/api/v1/authn/introspect",c)}function f(u){return!!u.tx.exists._get(b.STATE_TOKEN_KEY_NAME)}function d(u,c,a,g){return q.post(u,c,a,g).then(function(A){return new B(u,A)})}function T(u,c,a){return function(g){function A(){var x={};if(typeof e=="function")try{x.autoPush=!!e()}catch{return Promise.reject(new N("AutoPush resulted in an error."))}else e!=null&&(x.autoPush=!!e);if(typeof k=="function")try{x.rememberDevice=!!k()}catch{return Promise.reject(new N("RememberDevice resulted in an error."))}else k!=null&&(x.rememberDevice=!!k);var P=l.href+K.toQueryParams(x);return q.post(u,P,n(c),{saveAuthnState:!1})}var E,k,e,r;K.isNumber(g)?E=g:K.isObject(g)&&(E=g.delay,k=g.rememberDevice,e=g.autoPush,r=g.transactionCallBack),E||E===0||(E=b.DEFAULT_POLLING_DELAY);var l=K.getLink(c,"next","poll");a.isPolling=!0;var I=0;return(function x(){return a.isPolling?A().then(function(P){if(I=0,P.factorResult&&P.factorResult==="WAITING"){if(!a.isPolling)throw new O;return typeof r=="function"&&r(P),K.delay(E).then(x)}return a.isPolling=!1,new B(u,P)}).catch(function(P){if(P.xhr&&(P.xhr.status===0||P.xhr.status===429)&&I<=4){var D=1e3*Math.pow(2,I);return I++,K.delay(D).then(x)}throw P}):Promise.reject(new O)})().catch(function(x){throw a.isPolling=!1,x})}}function _(u,c,a,g,A){if(Array.isArray(g))return function(E,k){if(!E)throw new N("Must provide a link name");var e=K.find(g,{name:E});if(!e)throw new N("No link found for that name");return _(u,c,a,e,A)(k)};if(g.hints&&g.hints.allow&&g.hints.allow.length===1)switch(g.hints.allow[0]){case"GET":return function(){return q.get(u,g.href)};case"POST":return function(E){A&&A.isPolling&&(A.isPolling=!1);var k=t(c,E);c.status!=="MFA_ENROLL"&&c.status!=="FACTOR_ENROLL"||K.extend(k,{factorType:a.factorType,provider:a.provider});var e={},r=k.autoPush;if(r!==void 0){if(typeof r=="function")try{e.autoPush=!!r()}catch{return Promise.reject(new N("AutoPush resulted in an error."))}else r!==null&&(e.autoPush=!!r);k=K.omit(k,"autoPush")}var l=k.rememberDevice;if(l!==void 0){if(typeof l=="function")try{e.rememberDevice=!!l()}catch{return Promise.reject(new N("RememberDevice resulted in an error."))}else l!==null&&(e.rememberDevice=!!l);k=K.omit(k,"rememberDevice")}else k.profile&&k.profile.updatePhone!==void 0&&(k.profile.updatePhone&&(e.updatePhone=!0),k.profile=K.omit(k.profile,"updatePhone"));var I=g.href+K.toQueryParams(e);return d(u,I,k)}}}function H(u,c,a,g){var A={};for(var E in a._links)if(a._links.hasOwnProperty(E)){var k=a._links[E];if(E==="next"&&(E=k.name),k.type)A[E]=k;else switch(E){case"poll":A.poll=T(u,c,g);break;default:var e=_(u,c,a,k,g);e&&(A[E]=e)}}return A}function F(u,c,a,g){if(a=a||c,a=K.clone(a),Array.isArray(a)){for(var A=[],E=0,k=a.length;E<k;E++)A.push(F(u,c,a[E],g));return A}var e=a._embedded||{};for(var r in e)e.hasOwnProperty(r)&&(K.isObject(e[r])||Array.isArray(e[r]))&&(e[r]=F(u,c,e[r],g));var l=H(u,c,a,g);return K.extend(e,l),a=K.omit(a,"_embedded","_links"),K.extend(a,e),a}function B(u,c){c&&(this.data=c,K.extend(this,F(u,c,c,{})),delete this.stateToken,c.status!=="RECOVERY_CHALLENGE"||c._links||(this.cancel=function(){return Promise.resolve(new B(u))}))}var q=i(4),K=i(0),N=i(1),O=i(20),b=i(3);R.exports={transactionStatus:m,resumeTransaction:p,transactionExists:f,postToTransaction:d,introspect:w}},function(R,M,i){var t=i(12),n=i(2);R.exports=i(15)(n,t)},function(R,M,i){function t(h){return h.headers.get("Content-Type")&&h.headers.get("Content-Type").toLowerCase().indexOf("application/json")>=0?h.json().catch(function(f){return{error:f,errorSummary:"Could not parse server response"}}):h.text()}function n(h,f){var d=p(f)==="object",T={responseText:d?JSON.stringify(f):f,status:h};return d&&(T.responseType="json",T.responseJSON=f),T}function m(h,f,d){var T=d.data,_=d.headers||{};return(_["Content-Type"]||_["content-type"]||"")==="application/json"&&T&&typeof T!="string"&&(T=JSON.stringify(T)),w(f,{method:h,headers:d.headers,body:T,credentials:d.withCredentials?"include":"omit"}).then(function(H){var F=!H.ok,B=H.status;return t(H).then(function(q){return n(B,q)}).then(function(q){if(F)throw q;return q})})}var p=i(6),w=i(13);R.exports=m},function(R,M){var i=(function(t){function n(){this.fetch=!1,this.DOMException=t.DOMException}return n.prototype=t,new n})(typeof self<"u"?self:this);(function(t){(function(n){function m(e){return e&&DataView.prototype.isPrototypeOf(e)}function p(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function w(e){return typeof e!="string"&&(e=String(e)),e}
vendor: 5,077 bytes, line 12
12function h(e){var r={next:function(){var l=e.shift();return{done:l===void 0,value:l}}};return a.iterable&&(r[Symbol.iterator]=function(){return r}),r}function f(e){this.map={},e instanceof f?e.forEach(function(r,l){this.append(l,r)},this):Array.isArray(e)?e.forEach(function(r){this.append(r[0],r[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(r){this.append(r,e[r])},this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function T(e){return new Promise(function(r,l){e.onload=function(){r(e.result)},e.onerror=function(){l(e.error)}})}function _(e){var r=new FileReader,l=T(r);return r.readAsArrayBuffer(e),l}function H(e){var r=new FileReader,l=T(r);return r.readAsText(e),l}function F(e){for(var r=new Uint8Array(e),l=new Array(r.length),I=0;I<r.length;I++)l[I]=String.fromCharCode(r[I]);return l.join("")}function B(e){if(e.slice)return e.slice(0);var r=new Uint8Array(e.byteLength);return r.set(new Uint8Array(e)),r.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:a.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a.arrayBuffer&&a.blob&&m(e)?(this._bodyArrayBuffer=B(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||A(e))?this._bodyArrayBuffer=B(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(_)}),this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return H(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(F(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}function K(e){var r=e.toUpperCase();return E.indexOf(r)>-1?r:e}function N(e,r){r=r||{};var l=r.body;if(e instanceof N){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,l||e._bodyInit==null||(l=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",!r.headers&&this.headers||(this.headers=new f(r.headers)),this.method=K(r.method||this.method||"GET"),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&l)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(l)}function O(e){var r=new FormData;return e.trim().split("&").forEach(function(l){if(l){var I=l.split("="),x=I.shift().replace(/\+/g," "),P=I.join("=").replace(/\+/g," ");r.append(decodeURIComponent(x),decodeURIComponent(P))}}),r}function b(e){var r=new f;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(l){var I=l.split(":"),x=I.shift().trim();if(x){var P=I.join(":").trim();r.append(x,P)}}),r}function u(e,r){r||(r={}),this.type="default",this.status=r.status===void 0?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in r?r.statusText:"OK",this.headers=new f(r.headers),this.url=r.url||"",this._initBody(e)}function c(e,r){return new Promise(function(l,I){function x(){D.abort()}var P=new N(e,r);if(P.signal&&P.signal.aborted)return I(new n.DOMException("Aborted","AbortError"));var D=new XMLHttpRequest;D.onload=function(){var y={status:D.status,statusText:D.statusText,headers:b(D.getAllResponseHeaders()||"")};y.url="responseURL"in D?D.responseURL:y.headers.get("X-Request-URL");var v="response"in D?D.response:D.responseText;l(new u(v,y))},D.onerror=function(){I(new TypeError("Network request failed"))},D.ontimeout=function(){I(new TypeError("Network request failed"))},D.onabort=function(){I(new n.DOMException("Aborted","AbortError"))},D.open(P.method,P.url,!0),P.credentials==="include"?D.withCredentials=!0:P.credentials==="omit"&&(D.withCredentials=!1),"responseType"in D&&a.blob&&(D.responseType="blob"),P.headers.forEac
12h(function(y,v){D.setRequestHeader(v,y)}),P.signal&&(P.signal.addEventListener("abort",x),D.onreadystatechange=function(){D.readyState===4&&P.signal.removeEventListener("abort",x)}),D.send(P._bodyInit===void 0?null:P._bodyInit)})}var a={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(a.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};f.prototype.append=function(e,r){e=p(e),r=w(r);var l=this.map[e];this.map[e]=l?l+", "+r:r},f.prototype.delete=function(e){delete this.map[p(e)]},f.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},f.prototype.set=function(e,r){this.map[p(e)]=w(r)},f.prototype.forEach=function(e,r){for(var l in this.map)this.map.hasOwnProperty(l)&&e.call(r,this.map[l],l,this)},f.prototype.keys=function(){var e=[];return this.forEach(function(r,l){e.push(l)}),h(e)},f.prototype.values=function(){var e=[];return this.forEach(function(r){e.push(r)}),h(e)},f.prototype.entries=function(){var e=[];return this.forEach(function(r,l){e.push([l,r])}),h(e)},a.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];N.prototype.clone=function(){return new N(this,{body:this._bodyInit})},q.call(N.prototype),q.call(u.prototype),u.prototype.clone=function(){return new u(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},u.error=function(){var e=new u(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];u.redirect=function(e,r){if(k.indexOf(r)===-1)throw new RangeError("Invalid status code");return new u(null,{status:r,headers:{location:e}})},n.DOMException=t.DOMException;try{new n.DOMException}catch{n.DOMException=function(r,l){this.message=r,this.name=l;var I=Error(r);this.stack=I.stack},n.DOMException.prototype=Object.create(Error.prototype),n.DOMException.prototype.constructor=n.DOMException}c.polyfill=!0,t.fetch||(t.fetch=c,t.Headers=f,t.Request=N,t.Response=u),n.Headers=f,n.Request=N,n.Response=u,n.fetch=c})({})})(i),delete i.fetch.polyfill,M=i.fetch,M.default=i.fetch,M.fetch=i.fetch,M.Headers=i.Headers,M.Request=i.Request,M.Response=i.Response,R.exports=M},function(R,M,i){var t,n;(function(m){var p=!1;if(t=m,(n=typeof t=="function"?t.call(M,i,M,R):t)!==void 0&&(R.exports=n),p=!0,R.exports=m(),p=!0,!p){var w=window.Cookies,h=window.Cookies=m();h.noConflict=function(){return window.Cookies=w,h}}})(function(){function m(){for(var w=0,h={};w<arguments.length;w++){var f=arguments[w];for(var d in f)h[d]=f[d]}return h}function p(w){function h(f,d,T){var _;if(typeof document<"u"){if(arguments.length>1){if(T=m({path:"/"},h.defaults,T),typeof T.expires=="number"){var H=new Date;H.setMilliseconds(H.getMilliseconds()+864e5*T.expires),T.expires=H}T.expires=T.expires?T.expires.toUTCString():"";try{_=JSON.stringify(d),/^[\{\[]/.test(_)&&(d=_)}catch{}d=w.write?w.write(d,f):encodeURIComponent(String(d)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),f=encodeURIComponent(String(f)),f=f.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),f=f.replace(/[\(\)]/g,escape);var F="";for(var B in T)T[B]&&(F+="; "+B,T[B]!==!0&&(F+="="+T[B]));return document.cookie=f+"="+d+F}f||(_={});for(var q=document.cookie?document.cookie.split("; "):[],K=/(%[0-9A-Z]{2})+/g,N=0;N<q.length;N++){var O=q[N].split("="),b=O.slice(1).join("=");this.json||b.charAt(0)!=='"'||(b=b.slice(1,-1));try{var u=O[0].replace(K,decodeURIComponent);if(b=w.read?w.read(b,u):w(b,u)||b.replace(K,decodeURIComponent),this.json)try{b=JSON.parse(b)}catch{}if(f===u){_=b;break}f||(_[u]=b)}catch{}}return _}}return h.set=h,h.get=function(f){return h.call(h,f)},h.getJSON=function(){return h.apply({json:!0},[].slice.call(arguments))},h.defaults={},h.remove=function(f,d){h(f,"",m(d,{expires:-1}))},h.withConverter=p,h}return p(function(){})})},function(R,M,i){function t(u,c){var a=c.cookies||{};return a.secure===void 0&&(a.secure=u.features.isHTTPS()),a.sameSite===void 0&&(a.sameSite=a.secure?"none":"lax"),a.secure&&!u.features.isHTTPS()&&(console.warn(`The current page is not being served with the HTTPS protocol.
13For security reasons, we strongly recommend using HTTPS.
14If you cannot use HTTPS, set "cookies.secure" option to false.`),a.secure=!1),a.sameSite!=="none"||a.secure||(a.sameSite="lax"),a}function n(u){var c=this;f.assertValidConfig(u),this.options={clientId:u.clientId,issuer:N.removeTrailingSlash(u.issuer),authorizeUrl:N.removeTrailingSlash(u.authorizeUrl),userinfoUrl:N.removeTrailingSlash(u.userinfoUrl),tokenUrl:N.removeTrailingSlash(u.tokenUrl),revokeUrl:N.removeTrailingSlash(u.revokeUrl),logoutUrl:N.removeTrailingSlash(u.logoutUrl),pkce:u.pkce!==!1,redirectUri:u.redirectUri,postLogoutRedirectUri:u.postLogoutRedirectUri,responseMode:u.responseMode,httpRequestClient:u.httpRequestClient,storageUtil:u.storageUtil,transformErrorXHR:u.transformErrorXHR,headers:u.headers,onSessionExpired:u.onSessionExpired,cookies:t(c,u)},this.userAgent=f.getUserAgent(u,"okta-auth-js/".concat("3.2.6")),u.maxClockSkew||u.maxClockSkew===0?this.options.maxClockSkew=u.maxClockSkew:this.options.maxClockSkew=d.DEFAULT_MAX_CLOCK_SKEW,this.options.ignoreSignature=!!u.ignoreSignature,c.session={close:N.bind(F.closeSession,null,c),exists:N.bind(F.sessionExists,null,c),get:N.bind(F.getSession,null,c),refresh:N.bind(F.refreshSession,null,c),setCookieAndRedirect:N.bind(F.setCookieAndRedirect,null,c)},c.tx={status:N.bind(K.transactionStatus,null,c),resume:N.bind(K.resumeTransaction,null,c),exists:N.bind(K.transactionExists,null,c),introspect:N.bind(K.introspect,null,c)},c.tx.exists._get=function(A){return T.get(A)},c.idToken={authorize:{_getLocationHref:function(){return window.location.href}}},c._tokenQueue=new O,c.token={getWithoutPrompt:N.bind(B.getWithoutPrompt,null,c),getWithPopup:N.bind(B.getWithPopup,null,c),getWithRedirect:N.bind(B.getWithRedirect,null,c),parseFromUrl:N.bind(B.parseFromUrl,null,c),decode:B.decodeToken,revoke:N.bind(B.revokeToken,null,c),renew:N.bind(B.renewToken,null,c),getUserInfo:N.bind(B.getUserInfo,null,c),verify:N.bind(B.verifyToken,null,c),isLoginRedirect:N.bind(H.isLoginRedirect,null,c)};var a=["decode","isLoginRedirect"];Object.keys(c.token).forEach(function(A){if(!(a.indexOf(A)>=0)){var E=c.token[A];c.token[A]=N.bind(O.prototype.push,c._tokenQueue,E,null)}}),c.token.getWithRedirect._setLocation=function(A){window.location=A},c.token.parseFromUrl._getHistory=function(){return window.history},c.token.parseFromUrl._getLocation=function(){return window.location},c.token.parseFromUrl._getDocument=function(){return window.document},c.fingerprint._getUserAgent=function(){return navigator.userAgent};var g=/windows phone|iemobile|wpdesktop/i;c.features.isFingerprintSupported=function(){var A=c.fingerprint._getUserAgent();return A&&!g.test(A)},c.emitter=new w,c.tokenManager=new q(c,u.tokenManager),c.tokenManager.on("error",this._onTokenManagerError,this)}var m=i(8),p=i(9),w=i(17),h=i(1),f=i(18),d=i(3),T=i(2).storage,_=i(4),H=i(5),F=i(21),B=i(22),q=i(26),K=i(10),N=i(0),O=i(28),b=n.prototype;b._onTokenManagerError=function(u){u.errorCode==="login_required"&&u.accessToken&&(this.options.onSessionExpired?this.options.onSessionExpired():console.error("Session has expired or was closed outside the application."))},b.features={},b.features.isPopupPostMessageSupported=function(){var u=document.documentMode&&document.documentMode<10;return!(!window.postMessage||u)},b.features.isTokenVerifySupported=function(){return typeof crypto<"u"&&crypto.subtle&&typeof Uint8Array<"u"},b.features.hasTextEncoder=function(){return typeof TextEncoder<"u"},b.features.isPKCESupported=function(){return b.features.isTokenVerifySupported()&&b.features.hasTextEncoder()},b.features.isHTTPS=function(){return window.location.protocol==="https:"},b.features.isLocalhost=function(){return window.location.hostname==="localhost"},b.signIn=function(u){function c(g){return delete u.sendFingerprint,K.postToTransaction(a,"/api/v1/authn",u,g)}var a=this;return u=N.clone(u||{}),u.sendFingerprint?a.fingerprint().then(function(g){return c({headers:{"X-Device-Fingerprint":g}})}):c()},b.closeSession=function(){var u=this;return u.tokenManager.clear(),u.session.close().catch(function(c){if(c.name!=="AuthApiError"||c.errorCode!=="E0000007")throw c})},b.revokeAccessToken=(function(){function u(a){return c.apply(this,arguments)}var c=p(m.mark(function a(g){var A;return m.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(A=this,g){E.next=6;break}return E.next=4,A.tokenManager.get(d.ACCESS_TOKEN_STORAGE_KEY);case 4:g=E.sent,A.tokenManager.remove(d.ACCESS_TOKEN_STORAGE_KEY);case 6:if(g){E.next=8;break}return E.abrupt("return",Promise.resolve());case 8:return E.abrupt("return",A.token.revoke(g));case 9:case"end":return E.stop()}},a,this)}));return u})(),b.signOut=(function(){var u=p(m.mark(function c(a){var g,A,E,k,e,r,l,I,x,P,D;return m.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(a=N.extend({},a),g=window.location.origin,A=window.location.href,E=a.postLogoutRedirectUri||this.options.postLogoutRedirectUri||g,k=a.accessToken,e=a.revokeAccessToken!==!1,r=a.idToken,l=this,I=H.getOAuthUrls(l).logoutUrl,r!==void 0){y.next=13;break}return y.next=12,l.tokenManager.get(d.ID_TOKEN_STORAGE_KEY);case 12:r=y.sent;case 13:if(!e||k!==void 0){y.next=17;break}return y.next=16,l.tokenManager.get(d.ACCESS_TOKEN_STORAGE_KEY);case 16:k=y.sent;case 17:if(l.tokenManager.clear(),!e||!k){y.next=21;break}return y.next=21,l.revokeAccessToken(k);case 21:if(r){y.next=23;break}return y.abrupt("return",l.closeSession().then(function(){E===A?window.location.reload():window.location.assign(E)}));case 23:x=a.state,P=r.idToken,D=I+"?id_token_hint="+encodeURIComponent(P)+"&post_logout_redirect_uri="+encodeURIComponent(E),x&&(D+="&state="+encodeURIComponent(x)),window.location.assign(D);case 28:case"end":return y.stop()}},c,this)}));return function(c){return u.apply(this,arguments)}})(),f.addSharedPrototypes(b),b.webfinger=function(u){var c="/.well-known/webfinger"+N.toQueryParams(u),a={headers:{Accept:"application/jrd+json"}};return _.get(this,c,a)},b.fingerprint=function(u){u=u||{};var c=this;if(!c.features.isFingerprintSupported())return Promise.reject(new h("Fingerprinting is not supported on this device"));var a,g,A;return new Promise(function(E,k){g=document.createElement("iframe"),g.style.display="none",A=function(e){if(e&&e.data&&e.origin===c.getIssuerOrigin()){try{var r=JSON.parse(e.data)}catch{return}if(r)return r.type==="FingerprintAvailable"?E(r.fingerprint):void(r.type==="FingerprintServiceReady"&&e.source.postMessage(JSON.stringify({type:"GetFingerprint"}),e.origin))}},H.addListener(window,"message",A),g.src=c.getIssuerOrigin()+"/auth/services/devicefingerprint",document.body.appendChild(g),a=setTimeout(function(){k(new h("Fingerprinting timed out"))},u.timeout||15e3)}).finally(function(){clearTimeout(a),H.removeListener(window,"message",A),document.body.contains(g)&&g.parentElement.removeChild(g)})},R.exports=f.buildOktaAuth(n)},function(R,M,i){var t=(function(n){function m(y,v,U,s){var o=v&&v.prototype instanceof w?v:w,S=Object.create(o.prototype),L=new q(s||[]);return S._invoke=_(y,U,L),S}function p(y,v,U){try{return{type:"normal",arg:y.call(v,U)}}catch(s){return{type:"throw",arg:s}}}function w(){}function h(){}function f(){}function d(y){["next","throw","return"].forEach(function(v){y[v]=function(U){return this._invoke(v,U)}})}function T(y){function v(o,S,L,C){var j=p(y[o],y,S);if(j.type!=="throw"){var G=j.arg,W=G.value;return W&&typeof W=="object"&&u.call(W,"__await")?Promise.resolve(W.__await).then(function(J){v("next",J,L,C)},function(J){v("throw",J,L,C)}):Promise.resolve(W).then(function(J){G.value=J,L(G)},function(J){return v("throw",J,L,C)})}C(j.arg)}function U(o,S){function L(){return new Promise(function(C,j){v(o,S,C,j)})}return s=s?s.then(L,L):L()}var s;this._invoke=U}function _(y,v,U){var s=E;return function(o,S){if(s===e)throw new Error("Generator is already running");if(s===r){if(o==="throw")throw S;return N()}for(U.method=o,U.arg=S;;){var L=U.delegate;if(L){var C=H(L,U);if(C){if(C===l)continue;return C}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(s===E)throw s=r,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);s=e;var j=p(y,v,U);if(j.type==="normal"){if(s=U.done?r:k,j.arg===l)continue;return{value:j.arg,done:U.done}}j.type==="throw"&&(s=r,U.method="throw",U.arg=j.arg)}}}function H(y,v){var U=y.iterator[v.method];if(U===O){if(v.delegate=null,v.method==="throw"){if(y.iterator.return&&
14(v.method="return",v.arg=O,H(y,v),v.method==="throw"))return l;v.method="throw",v.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var s=p(U,y.iterator,v.arg);if(s.type==="throw")return v.method="throw",v.arg=s.arg,v.delegate=null,l;var o=s.arg;return o?o.done?(v[y.resultName]=o.value,v.next=y.nextLoc,v.method!=="return"&&(v.method="next",v.arg=O),v.delegate=null,l):o:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,l)}function F(y){var v={tryLoc:y[0]};1 in y&&(v.catchLoc=y[1]),2 in y&&(v.finallyLoc=y[2],v.afterLoc=y[3]),this.tryEntries.push(v)}function B(y){var v=y.completion||{};v.type="normal",delete v.arg,y.completion=v}function q(y){this.tryEntries=[{tryLoc:"root"}],y.forEach(F,this),this.reset(!0)}function K(y){if(y){var v=y[a];if(v)return v.call(y);if(typeof y.next=="function")return y;if(!isNaN(y.length)){var U=-1,s=function o(){for(;++U<y.length;)if(u.call(y,U))return o.value=y[U],o.done=!1,o;return o.value=O,o.done=!0,o};return s.next=s}}return{next:N}}function N(){return{value:O,done:!0}}var O,b=Object.prototype,u=b.hasOwnProperty,c=typeof Symbol=="function"?Symbol:{},a=c.iterator||"@@iterator",g=c.asyncIterator||"@@asyncIterator",A=c.toStringTag||"@@toStringTag";n.wrap=m;var E="suspendedStart",k="suspendedYield",e="executing",r="completed",l={},I={};I[a]=function(){return this};var x=Object.getPrototypeOf,P=x&&x(x(K([])));P&&P!==b&&u.call(P,a)&&(I=P);var D=f.prototype=w.prototype=Object.create(I);return h.prototype=D.constructor=f,f.constructor=h,f[A]=h.displayName="GeneratorFunction",n.isGeneratorFunction=function(y){var v=typeof y=="function"&&y.constructor;return!!v&&(v===h||(v.displayName||v.name)==="GeneratorFunction")},n.mark=function(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,f):(y.__proto__=f,A in y||(y[A]="GeneratorFunction")),y.prototype=Object.create(D),y},n.awrap=function(y){return{__await:y}},d(T.prototype),T.prototype[g]=function(){return this},n.AsyncIterator=T,n.async=function(y,v,U,s){var o=new T(m(y,v,U,s));return n.isGeneratorFunction(v)?o:o.next().then(function(S){return S.done?S.value:o.next()})},d(D),D[A]="Generator",D[a]=function(){return this},D.toString=function(){return"[object Generator]"},n.keys=function(y){var v=[];for(var U in y)v.push(U);return v.reverse(),function s(){for(;v.length;){var o=v.pop();if(o in y)return s.value=o,s.done=!1,s}return s.done=!0,s}},n.values=K,q.prototype={constructor:q,reset:function(y){if(this.prev=0,this.next=0,this.sent=this._sent=O,this.done=!1,this.delegate=null,this.method="next",this.arg=O,this.tryEntries.forEach(B),!y)for(var v in this)v.charAt(0)==="t"&&u.call(this,v)&&!isNaN(+v.slice(1))&&(this[v]=O)},stop:function(){this.done=!0;var y=this.tryEntries[0],v=y.completion;if(v.type==="throw")throw v.arg;return this.rval},dispatchException:function(y){function v(j,G){return S.type="throw",S.arg=y,U.next=j,G&&(U.method="next",U.arg=O),!!G}if(this.done)throw y;for(var U=this,s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],S=o.completion;if(o.tryLoc==="root")return v("end");if(o.tryLoc<=this.prev){var L=u.call(o,"catchLoc"),C=u.call(o,"finallyLoc");
14if(L&&C){if(this.prev<o.catchLoc)return v(o.catchLoc,!0);if(this.prev<o.finallyLoc)return v(o.finallyLoc)}else if(L){if(this.prev<o.catchLoc)return v(o.catchLoc,!0)}else{if(!C)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return v(o.finallyLoc)}}}},abrupt:function(y,v){for(var U=this.tryEntries.length-1;U>=0;--U){var s=this.tryEntries[U];if(s.tryLoc<=this.prev&&u.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var o=s;break}}o&&(y==="break"||y==="continue")&&o.tryLoc<=v&&v<=o.finallyLoc&&(o=null);var S=o?o.completion:{};return S.type=y,S.arg=v,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(S)},complete:function(y,v){if(y.type==="throw")throw y.arg;return y.type==="break"||y.type==="continue"?this.next=y.arg:y.type==="return"?(this.rval=this.arg=y.arg,this.method="return",this.next="end"):y.type==="normal"&&v&&(this.next=v),l},finish:function(y){for(var v=this.tryEntries.length-1;v>=0;--v){var U=this.tryEntries[v];if(U.finallyLoc===y)return this.complete(U.completion,U.afterLoc),B(U),l}},catch:function(y){for(var v=this.tryEntries.length-1;v>=0;--v){var U=this.tryEntries[v];if(U.tryLoc===y){var s=U.completion;if(s.type==="throw"){var o=s.arg;B(U)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(y,v,U){return this.delegate={iterator:K(y),resultName:v,nextLoc:U},this.method==="next"&&(this.arg=O),l}},n})(R.exports);try{regeneratorRuntime=t}catch{Function("r","regeneratorRuntime = r")(t)}},function(R,M){function i(){}i.prototype={on:function(t,n,m){var p=this.e||(this.e={});return(p[t]||(p[t]=[])).push({fn:n,ctx:m}),this},once:function(t,n,m){function p(){w.off(t,p),n.apply(m,arguments)}var w=this;return p._=n,this.on(t,p,m)},emit:function(t){var n=[].slice.call(arguments,1),m=((this.e||(this.e={}))[t]||[]).slice(),p=0,w=m.length;for(p;p<w;p++)m[p].fn.apply(m[p].ctx,n);return this},off:function(t,n){var m=this.e||(this.e={}),p=m[t],w=[];if(p&&n)for(var h=0,f=p.length;h<f;h++)p[h].fn!==n&&p[h].fn._!==n&&w.push(p[h]);return w.length?m[t]=w:delete m[t],this}},R.exports=i},function(R,M,i){function t(d){if(!d)throw new w("No arguments passed to constructor. Required usage: new OktaAuth(args)");var T=d.issuer;if(!T)throw new w('No issuer passed to constructor. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com/oauth2/{authServerId}"})');if(!new RegExp("^http?s?://.+").test(d.issuer))throw new w('Issuer must be a valid URL. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com/oauth2/{authServerId}"})');if(T.indexOf("-admin.")!==-1)throw new w('Issuer URL passed to constructor contains "-admin" in subdomain. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com})');var _=d.userAgent;if(_&&_.template&&_.template.indexOf("$OKTA_AUTH_JS")===-1)throw new w('UserAgentTemplate must include "$OKTA_AUTH_JS" placeholder. Required usage: new OktaAuth({userAgentTemplate: "xxx $OKTA_AUTH_JS xxx"})')}function n(d){d.getIssuerOrigin=function(){return this.options.issuer.split("/oauth2/")[0]},d.forgotPassword=function(T){return h.postToTransaction(this,"/api/v1/authn/recovery/password",T)},d.unlockAccount=function(T){return h.postToTransaction(this,"/api/v1/authn/recovery/unlock",T)},d.verifyRecoveryToken=function(T){return h.postToTransaction(this,"/api/v1/authn/recovery/token",T)}}function m(d){return function(T,_){function H(F){if(!(this instanceof H))return new H(F);F&&(F.storageUtil=T,F.ajaxRequest?(f.deprecate("ajaxRequest is being deprecated, use httpRequestClient attribute instead."),F.httpRequestClient=F.ajaxRequest):F.httpRequestClient||(F.httpRequestClient=_)),f.bind(d,this)(F)}return H.prototype=d.prototype,H.prototype.constructor=H,H.features=d.prototype.features,H}}function p(d,T){var _=d.userAgent||{};return _.value?_.value:_.template?_.template.replace("$OKTA_AUTH_JS",T):T}var w=i(1),h=i(10),f=i(0);R.exports={addSharedPrototypes:n,buildOktaAuth:m,assertValidConfig:t,getUserAgent:p}},function(R,M){function i(t,n){this.name="AuthApiError",this.message=t.errorSummary,this.errorSummary=t.errorSummary,this.errorCode=t.errorCode,this.errorLink=t.errorLink,this.errorId=t.errorId,this.errorCauses=t.errorCauses,n&&(this.xhr=n)}i.prototype=new Error,R.exports=i},function(R,M){function i(){this.name="AuthPollStopError",this.message="The poll was stopped by the sdk"}i.prototype=new Error,R.exports=i},function(R,M,i){function t(d){return d.session.get().then(function(T){return T.
14status==="ACTIVE"}).catch(function(){return!1})}function n(d){return f.get(d,"/api/v1/sessions/me").then(function(T){var _=h.omit(T,"_links");return _.refresh=function(){return f.post(d,h.getLink(T,"refresh").href)},_.user=function(){return f.get(d,h.getLink(T,"user").href)},_}).catch(function(){return{status:"INACTIVE"}})}function m(d){return f.httpRequest(d,{url:d.getIssuerOrigin()+"/api/v1/sessions/me",method:"DELETE"})}function p(d){return f.post(d,"/api/v1/sessions/me/lifecycle/refresh")}function w(d,T,_){_=_||window.location.href,window.location=d.getIssuerOrigin()+"/login/sessionCookieRedirect"+h.toQueryParams({checkAccountSetupComplete:!0,token:T,redirectUrl:_})}var h=i(0),f=i(4);R.exports={sessionExists:t,getSession:n,closeSession:m,refreshSession:p,setCookieAndRedirect:w}},function(R,M,i){function t(s,o){return Promise.resolve().then(function(){if(!o||!o.accessToken)throw new x("A valid access token object is required");var S=s.options.clientId;if(!S)throw new x("A clientId must be specified in the OktaAuth constructor to revoke a token");var L=l.getOAuthUrls(s).revokeUrl,C=o.accessToken,j=r.toQueryParams({token_type_hint:"access_token",token:C}).slice(1),G=btoa(S);return e.post(s,L,j,{headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic "+G}})})}function n(s){var o,S=s.split(".");try{o={header:JSON.parse(r.base64UrlToString(S[0])),payload:JSON.parse(r.base64UrlToString(S[1])),signature:S[2]}}catch{throw new x("Malformed token")}return o}function m(s,o,S){return Promise.resolve().then(function(){if(!o||!o.idToken)throw new x("Only idTokens may be verified");var L=n(o.idToken),C={clientId:s.options.clientId,issuer:s.options.issuer,ignoreSignature:s.options.ignoreSignature};return r.extend(C,S),l.validateClaims(s,L.payload,C),C.ignoreSignature!=1&&s.features.isTokenVerifySupported()?l.getKey(s,o.issuer,L.header.kid).then(function(j){return I.verifyToken(o.idToken,j)}).then(function(j){if(!j)throw new x("The token signature is not valid");if(S&&S.accessToken&&o.claims.at_hash)return I.getOidcHash(S.accessToken).then(function(G){if(G!==o.claims.at_hash)throw new x("Token hash verification failed")})}).then(function(){return o}):o})}function p(s,o,S){var L,C;return new Promise(function(j,G){L=function(W){if(W.data&&W.data.state===S)return W.origin!==s.getIssuerOrigin()?G(new x("The request does not match client configuration")):void j(W.data)},l.addListener(window,"message",L),C=setTimeout(function(){G(new x("OAuth flow timed out"))},o||12e4)}).finally(function(){clearTimeout(C),l.removeListener(window,"message",L)})}function w(s,o,S,L){var C=U.loadMeta(s),j={clientId:o.clientId,authorizationCode:S,codeVerifier:C.codeVerifier,redirectUri:C.redirectUri};return U.getToken(s,j,L).then(function(G){return h(G,j),G}).finally(function(){U.clearMeta(s)})}function h(s,o){if(s.error||s.error_description)throw new P(s.error,s.error_description);if(s.state!==o.state)throw new x("OAuth flow response state doesn't match request state")}function f(s,o,S,L){L=L||{};var C=o.responseType;Array.isArray(C)||(C=[C]);var j=r.clone(o.scopes),G=o.clientId||s.options.clientId,W=s.options.pkce!==!1;return Promise.resolve().then(function(){return h(S,o),S.code&&W?(C=["token"],j.indexOf("openid")!==-1&&C.push("id_token"),w(s,o,S.code,L)):S}).then(function(J){var z={},V=J.expires_in,re=J.token_type,Y=J.access_token,Q=J.id_token;if(Y&&(z.accessToken={value:Y,accessToken:Y,expiresAt:Number(V)+Math.floor(Date.now()/1e3),tokenType:re,scopes:j,authorizeUrl:L.authorizeUrl,userinfoUrl:L.userinfoUrl}),Q){var ee=s.token.decode(Q),$={value:Q,idToken:Q,claims:ee.payload,expiresAt:ee.payload.exp,scopes:j,authorizeUrl:L.authorizeUrl,issuer:L.issuer,clientId:G},Z={clientId:G,issuer:L.issuer,nonce:o.nonce,accessToken:Y};return o.ignoreSignature!==void 0&&(Z.ignoreSignature=o.ignoreSignature),m(s,$,Z).then(function(){return z.idToken=$,z})}return z}).then(function(J){if(C.indexOf("token")!==-1&&!J.accessToken)throw new x('Unable to parse OAuth flow response: response type "token" was requested but "access_token" was not returned.');if(C.indexOf("id_token")!==-1&&!J.idToken)throw new x('Unable to parse OAuth flow response: response type "id_token" was requested but "id_token" was not returned.');return{tokens:J,state:S.state,code:S.code}})}function d(s){return{pkce:s.options.pkce,clientId:s.options.clientId,redirectUri:s.options.redirectUri||window.location.href,responseType:["token","id_token"],responseMode:s.options.responseMode,state:l.generateState(),nonce:l.generateNonce(),scopes:["openid","email"],ignoreSignature:s.options.ignoreSignature}}function T(s){if(!s.clientId)throw new x("A clientId must be specified in the OktaAuth constructor to get a token");if(r.isString(s.responseType)&&s.responseType.indexOf(" ")!==-1)throw new x("Multiple OAuth responseTypes must be defined as an array");var o=r.removeNils({client_id:s.clientId,code_challenge:s.codeChallenge,code_challenge_method:s.codeChallengeMethod,display:s.display,idp:s.idp,idp_scope:s.idpScope,login_hint:s.loginHint,max_age:s.maxAge,nonce:s.nonce,prompt:s.prompt,redirect_uri:s.redirectUri,response_mode:s.responseMode,response_type:s.responseType,sessionToken:s.sessionToken,state:s.state});if(["idp_scope","response_type"].forEach(function(S){Array.isArray(o[S])&&(o[S]=o[S].join(" "))}),s.responseType.indexOf("id_token")!==-1&&s.scopes.indexOf("openid")===-1)throw new x("openid scope must be specified in the scopes argument when requesting an id_token");return o.scope=s.scopes.join(" "),o}function _(s){var o=T(s);return r.toQueryParams(o)}function H(s,o){return arguments.length>2?Promise.reject(new x('As of version 3.0, "getToken" takes only a single set of options')):(o=o||{},q(s,o).then(function(S){var L={prompt:"none",responseMode:"okta_post_message",display:null}
14,C={display:"popup"};o.sessionToken?r.extend(S,L):o.idp&&r.extend(S,C);var j,G,W;switch(W=l.getOAuthUrls(s,S),G=o.codeVerifier?W.tokenUrl:W.authorizeUrl,j=G+_(S),S.sessionToken||S.display===null?"IFRAME":S.display==="popup"?"POPUP":"IMPLICIT"){case"IFRAME":var J=p(s,o.timeout,S.state),z=l.loadFrame(j);return J.then(function(Q){return f(s,S,Q,W)}).finally(function(){document.body.contains(z)&&z.parentElement.removeChild(z)});case"POPUP":var V;if(S.responseMode==="okta_post_message"){if(!s.features.isPopupPostMessageSupported())throw new x("This browser doesn't have full postMessage support");V=p(s,o.timeout,S.state)}var re={popupTitle:o.popupTitle},Y=l.loadPopup(j,re);return new Promise(function(Q,ee){var $=setInterval(function(){Y&&!Y.closed||(clearInterval($),ee(new x("Unable to parse OAuth flow response")))},100);V.then(function(Z){clearInterval($),Q(Z)}).catch(function(Z){clearInterval($),ee(Z)})}).then(function(Q){return f(s,S,Q,W)}).finally(function(){Y&&!Y.closed&&Y.close()});default:throw new x("The full page redirect flow is not supported")}}).catch(function(S){throw s.options.pkce&&U.clearMeta(s),S}))}function F(s,o){return arguments.length>2?Promise.reject(new x('As of version 3.0, "getWithoutPrompt" takes only a single set of options')):(o=r.clone(o)||{},r.extend(o,{prompt:"none",responseMode:"okta_post_message",display:null}),H(s,o))}function B(s,o){return arguments.length>2?Promise.reject(new x('As of version 3.0, "getWithPopup" takes only a single set of options')):(o=r.clone(o)||{},r.extend(o,{display:"popup",responseMode:"okta_post_message"}),H(s,o))}function q(s,o){if(l.isLoginRedirect(s))return Promise.reject(new x("The app should not attempt to call getToken on callback. Authorize flow is already in process. Use parseFromUrl() to receive tokens."));o=r.clone(o)||{};var S=d(s);if(r.extend(S,o),S.pkce===!1)return Promise.resolve(S);if(!s.features.isPKCESupported()){var L="PKCE requires a modern browser with encryption support running in a secure context.";return s.features.isHTTPS()||(L+=`
15The current page is not being served with HTTPS protocol. PKCE requires secure HTTPS protocol.`),s.features.hasTextEncoder()||(L+=`
16"TextEncoder" is not defined. To use PKCE, you may need to include a polyfill/shim for this browser.`),Promise.reject(new x(L))}return S.codeChallengeMethod||(S.codeChallengeMethod=U.DEFAULT_CODE_CHALLENGE_METHOD),S.responseType="code",l.getWellKnown(s,null).then(function(C){if((C.code_challenge_methods_supported||[]).indexOf(S.codeChallengeMethod)===-1)throw new x("Invalid code_challenge_method")}).then(function(){var C=U.generateVerifier(S.codeVerifier),j={codeVerifier:C,redirectUri:S.redirectUri};return U.saveMeta(s,j),U.computeChallenge(C)}).then(function(C){var j=r.clone(S)||{};return r.extend(j,S,{codeChallenge:C}),j})}function K(s,o,S){var L=o.responseType,C=o.state,j=o.nonce,G=o.scopes,W=o.clientId,J=o.ignoreSignature,z=JSON.stringify({responseType:L,state:C,nonce:j,scopes:G,clientId:W,urls:S,ignoreSignature:J});y.set(D.REDIRECT_OAUTH_PARAMS_NAME,z,null,s.options.cookies),v.browserHasSessionStorage()&&v.getSessionStorage().setItem(D.REDIRECT_OAUTH_PARAMS_NAME,z)}function N(s,o){return arguments.length>2?Promise.reject(new x('As of version 3.0, "getWithRedirect" takes only a single set of options')):(o=r.clone(o)||{},q(s,o).then(function(S){var L=l.getOAuthUrls(s,o),C=L.authorizeUrl+_(S);K(s,S,L),y.set(D.REDIRECT_NONCE_COOKIE_NAME,S.nonce,null,s.options.cookies),y.set(D.REDIRECT_STATE_COOKIE_NAME,S.state,null,s.options.cookies),s.token.getWithRedirect._setLocation(C)}))}function O(s,o){if(!l.isToken(o))return Promise.reject(new x("Renew must be passed a token with an array of scopes and an accessToken or idToken"));var S;return S=s.options.pkce?"code":o.accessToken?"token":"id_token",F(s,{responseType:S,scopes:o.scopes,authorizeUrl:o.authorizeUrl,userinfoUrl:o.userinfoUrl,issuer:o.issuer}).then(function(L){var C=L.tokens;return o.idToken?C.idToken:C.accessToken})}function b(s){var o=s.token.parseFromUrl._getHistory(),S=s.token.parseFromUrl._getDocument(),L=s.token.parseFromUrl._getLocation();o&&o.replaceState?o.replaceState(null,S.title,L.pathname+L.search):L.hash=""}function u(s){var o=s.token.parseFromUrl._getHistory(),S=s.token.parseFromUrl._getDocument(),L=s.token.parseFromUrl._getLocation();o&&o.replaceState?o.replaceState(null,S.title,L.pathname+L.hash):L.search=""}function c(){var s=y.get(D.REDIRECT_OAUTH_PARAMS_NAME);if(y.delete(D.REDIRECT_OAUTH_PARAMS_NAME),!s&&v.browserHasSessionStorage()){var o=v.getSessionStorage();s=o.getItem(D.REDIRECT_OAUTH_PARAMS_NAME),o.removeItem(D.REDIRECT_OAUTH_PARAMS_NAME)}return s}function a(s,o){o=o||{},r.isString(o)&&(o={url:o});var S,L=s.options.pkce?"query":"fragment",C=o.url,j=o.responseMode||s.options.responseMode||L,G=s.token.parseFromUrl._getLocation();if(!(S=j==="query"?C?C.substring(C.indexOf("?")):G.search:C?C.substring(C.indexOf("#")):G.hash))return Promise.reject(new x("Unable to parse a token from the url"));var W=c();if(!W)return Promise.reject(new x("Unable to retrieve OAuth redirect params from storage"));try{var J=JSON.parse(W),z=J.urls;delete J.urls}catch(V){return Promise.reject(new x("Unable to parse the "+D.REDIRECT_OAUTH_PARAMS_NAME+" value from storage: "+V.message))}
16return Promise.resolve(l.urlParamsToObject(S)).then(function(V){return C||(j==="query"?u(s):b(s)),f(s,J,V,z)})}function g(s,o,S){return A.apply(this,arguments)}function A(){return A=k(E.mark(function s(o,S,L){return E.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(S){C.next=4;break}return C.next=3,o.tokenManager.get(D.ACCESS_TOKEN_STORAGE_KEY);case 3:S=C.sent;case 4:if(L){C.next=8;break}return C.next=7,o.tokenManager.get(D.ID_TOKEN_STORAGE_KEY);case 7:L=C.sent;case 8:if(S&&(l.isToken(S)||S.accessToken||S.userinfoUrl)){C.next=10;break}return C.abrupt("return",Promise.reject(new x("getUserInfo requires an access token object")));case 10:if(L&&(l.isToken(L)||L.idToken)){C.next=12;break}return C.abrupt("return",Promise.reject(new x("getUserInfo requires an ID token object")));case 12:return C.abrupt("return",e.httpRequest(o,{url:S.userinfoUrl,method:"GET",accessToken:S.accessToken}).then(function(j){return j.sub===L.claims.sub?j:Promise.reject(new x("getUserInfo request was rejected due to token mismatch"))}).catch(function(j){if(j.xhr&&(j.xhr.status===401||j.xhr.status===403)){var G;if(j.xhr.headers&&r.isFunction(j.xhr.headers.get)&&j.xhr.headers.get("WWW-Authenticate")?G=j.xhr.headers.get("WWW-Authenticate"):r.isFunction(j.xhr.getResponseHeader)&&(G=j.xhr.getResponseHeader("WWW-Authenticate")),G){var W=G.match(/error="(.*?)"/)||[],J=G.match(/error_description="(.*?)"/)||[],z=W[1],V=J[1];z&&V&&(j=new P(z,V))}}throw j}));case 13:case"end":return C.stop()}},s)})),A.apply(this,arguments)}var E=i(8),k=i(9),e=i(4),r=i(0),l=i(5),I=i(23),x=i(1),P=i(24),D=i(3),y=i(2).storage,v=i(2),U=i(25);R.exports={revokeToken:t,getToken:H,getWithoutPrompt:F,getWithPopup:B,getWithRedirect:N,parseFromUrl:a,decodeToken:n,renewToken:O,getUserInfo:g,verifyToken:m,handleOAuthResponse:f,prepareOauthParams:q,_addOAuthParamsToStorage:K,_getOAuthParamsStrFromStorage:c}},function(R,M,i){function t(p){var w=new TextEncoder().encode(p);return crypto.subtle.digest("SHA-256",w).then(function(h){var f=new Uint8Array(h),d=f.slice(0,16),T=String.fromCharCode.apply(null,d);return m.stringToBase64Url(T)})}function n(p,w){w=m.clone(w);var h={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},f=["verify"];return delete w.use,crypto.subtle.importKey("jwk",w,h,!0,f).then(function(d){var T=p.split("."),_=m.stringToBuffer(T[0]+"."+T[1]),H=m.base64UrlDecode(T[2]),F=m.stringToBuffer(H);return crypto.subtle.verify(h,d,F,_)})}var m=i(0);R.exports={getOidcHash:t,verifyToken:n}},function(R,M){function i(t,n){this.name="OAuthError",this.message=n,this.errorCode=t,this.errorSummary=n}i.prototype=new Error,R.exports=i},function(R,M,i){function t(O){return("0"+O.toString(16)).substr(-2)}function n(O){var b=new Uint8Array(Math.ceil(O/2));return crypto.getRandomValues(b),Array.from(b,t).join("").slice(0,O)}function m(O){var b=O||"";return b.length<K&&(b+=n(K-b.length)),encodeURIComponent(b).slice(0,N)}function p(O,b){return b=q.extend({},O.options.cookies,b),O.options.storageUtil.getPKCEStorage(b)}function w(O,b){var u=p(O,{preferLocalStorage:!0}),c=u.getStorage();c.codeVerifier&&q.warn("saveMeta: PKCE codeVerifier exists in localStorage. This may indicate an auth flow is already in progress."),u=p(O),c=u.getStorage(),c.codeVerifier&&q.warn("saveMeta: PKCE codeVerifier exists in sessionStorage. This may indicate an auth flow is already in progress."),f(O),u.setStorage(b)}function h(O){var b=p(O,{preferLocalStorage:!0}),u=b.getStorage();if(!u.codeVerifier&&(b=p(O,{preferLocalStorage:!1}),u=b.getStorage(),!u.codeVerifier))throw new F("Could not load PKCE codeVerifier from storage. This may indicate the auth flow has already completed or multiple auth flows are executing concurrently.",null);return u}function f(O){var b=p(O);b.clearStorage(),b=p(O,{preferLocalStorage:!0}),b.clearStorage()}function d(O){var b=new TextEncoder().encode(O);return crypto.subtle.digest("SHA-256",b).then(function(u){var c=String.fromCharCode.apply(null,new Uint8Array(u));return q.stringToBase64Url(c)})}function T(O){if(!O.clientId)throw new F("A clientId must be specified in the OktaAuth constructor to get a token");if(!O.redirectUri)throw new F("The redirectUri passed to /authorize must also be passed to /token");if(!O.authorizationCode)throw new F("An authorization code (returned from /authorize) must be passed to /token");if(!O.codeVerifier)throw new F('The "codeVerifier" (generated and saved by your app) must be passed to /token')}function _(O){var b=q.removeNils({client_id:O.clientId,redirect_uri:O.redirectUri,grant_type:"authorization_code",code:O.authorizationCode,code_verifier:O.codeVerifier});return q.toQueryParams(b).slice(1)}function H(O,b,u){T(b);var c=_(b);return B.httpRequest(O,{url:u.tokenUrl,method:"POST",args:c,withCredentials:!1,headers:{"Content-Type":"application/x-www-form-urlencoded"}})}var F=i(1),B=i(4),q=i(0),K=43,N=128;R.exports={DEFAULT_CODE_CHALLENGE_METHOD:"S256",generateVerifier:m,clearMeta:f,saveMeta:w,loadMeta:h,computeChallenge:d,getToken:H}},function(R,M,i){function t(k,e){return e.expiresAt-k.options.expireEarlySeconds}function n(k,e){return t(k,e)<=k.clock.now()}function m(k,e,r){k.emitter.emit("expired",e,r)}function p(k,e){k.emitter.emit("error",e)}function w(k,e){clearTimeout(k.expireTimeouts[e]),delete k.expireTimeouts[e],delete k.renewPromise[e]}function h(k){var e=k.expireTimeouts;for(var r in e)e.hasOwnProperty(r)&&w(k,r)}function f(k,e,r,l){var I=t(e,l),x=1e3*Math.max(I-e.clock.now(),0);w(e,r);var P=setTimeout(function(){m(e,r,l)},x);e.expireTimeouts[r]=P}function d(k,e,r){try{var l=r.getStorage()}catch(P){return void p(e,P)}for(var I in l)if(l.hasOwnProperty(I)){var x=l[I];f(k,e,I,x)}}function T(k,e,r,l,I){var x=r.getStorage();
16if(!O.isObject(I)||!I.scopes||!I.expiresAt&&I.expiresAt!==0||!I.idToken&&!I.accessToken)throw new b("Token must be an Object with scopes, expiresAt, and an idToken or accessToken properties");x[l]=I,r.setStorage(x),f(k,e,l,I)}function _(k,e){return k.getStorage()[e]}function H(k,e,r,l){return new Promise(function(I,x){if(e.options.autoRenew&&A.isLoginRedirect(k))return x(new b("The app should not attempt to call authorize API on callback. Authorize flow is already in process. Use parseFromUrl() to receive tokens."));var P=_(r,l);return I(P&&n(e,P)?e.options.autoRenew?B(k,e,r,l):F(e,r,l):P)})}function F(k,e,r){w(k,r);var l=e.getStorage();delete l[r],e.setStorage(l)}function B(k,e,r,l){var I=e.renewPromise[l];if(I)return I;try{var x=_(r,l);if(!x)throw new b("The tokenManager has no token for the key: "+l)}catch(P){return Promise.reject(P)}return w(e,l),e.renewPromise[l]=k.token.renew(x).then(function(P){var D=_(r,l);if(D)return T(k,e,r,l,P),e.emitter.emit("renewed",l,P,D),P}).catch(function(P){throw P.name!=="OAuthError"&&P.name!=="AuthSdkError"||(F(e,r,l),P.tokenKey=l,P.accessToken=!!x.accessToken,p(e,P)),P}).finally(function(){delete e.renewPromise[l]}),e.renewPromise[l]}function q(k,e){h(k),e.clearStorage()}function K(k,e){e=O.extend({},E,O.removeNils(e)),e.storage!=="localStorage"||u.browserHasLocalStorage()||(O.warn("This browser doesn't support localStorage. Switching to sessionStorage."),e.storage="sessionStorage"),e.storage!=="sessionStorage"||u.browserHasSessionStorage()||(O.warn("This browser doesn't support sessionStorage. Switching to cookie-based storage."),e.storage="cookie");var r;if(N(e.storage)==="object")r=e.storage;else switch(e.storage){case"localStorage":r=localStorage;break;case"sessionStorage":r=sessionStorage;break;case"cookie":r=(function(D){var y=u.getCookieStorage(D);return{getItem:function(v){var U=y.getItem(),s={};return Object.keys(U).forEach(function(o){o.indexOf(v)===0&&(s[o.replace("".concat(v,"_"),"")]=JSON.parse(U[o]))}),JSON.stringify(s)},setItem:function(v,U){var s=JSON.parse(this.getItem(v));U=JSON.parse(U),Object.keys(U).forEach(function(o){var S=v+"_"+o,L=JSON.stringify(U[o]);y.setItem(S,L),delete s[o]}),Object.keys(s).forEach(function(o){u.storage.delete(v+"_"+o)})}}})(k.options.cookies);break;case"memory":r=u.getInMemoryStorage();break;default:throw new b("Unrecognized storage option")}var l=e.storageKey||c.TOKEN_STORAGE_NAME,I=a(r,l),x=g.create(k,e),P={clock:x,options:e,emitter:k.emitter,expireTimeouts:{},renewPromise:{}};this.add=O.bind(T,this,k,P,I),this.get=O.bind(H,this,k,P,I),this.remove=O.bind(F,this,P,I),this.clear=O.bind(q,this,P,I),this.renew=O.bind(B,this,k,P,I),this.on=O.bind(P.emitter.on,P.emitter),this.off=O.bind(P.emitter.off,P.emitter),d(k,P,I)}var N=i(6),O=i(0),b=i(1),u=i(2),c=i(3),a=i(7),g=i(27),A=i(5),E={autoRenew:!0,storage:"localStorage",expireEarlySeconds:30};R.exports=K},function(R,M,i){function t(n){this.localOffset=parseInt(n||0)}i(0).extend(t.prototype,{now:function(){return(Date.now()+this.localOffset)/1e3}}),t.create=function(){return new t(0)},R.exports=t},function(R,M,i){function t(){this.queue=[],this.running=!1}var n=i(0);n.extend(t.prototype,{push:function(){var m=this,p=Array.prototype.slice.call(arguments),w=p[0],h=p[1];return p=p.slice(2),new Promise(function(f,d){m.queue.push({method:w,thisObject:h,args:p,resolve:f,reject:d}),m.run()})},run:function(){var m=this;if(!this.running&&this.queue.length!==0){this.running=!0;var p=this.queue.shift(),w=p.method.apply(p.thisObject,p.args);n.isPromise(w)?w.then(p.resolve,p.reject).finally(function(){m.running=!1,m.run()}):(p.resolve(w),this.running=!1,this.run())}}}),R.exports=t}])})})(te)),te.exports}var ue=ae();const ce=ie(ue);class fe{constructor(X){const{targetUrl:R,clientId:M,onSuccess:i,onError:t}=X;this.oktaAuth=new ce({issuer:R,clientId:M,url:new URL(R).origin,redirectUri:window.location.origin}),this.onSuccess=i,this.onError=t}async login(){var X,R;try{const M=await this.oktaAuth.token.getWithPopup({responseType:["id_token","token"],scopes:["openid","profile","email"],redirectUri:window.location.origin,prompt:"login"});(R=(X=M==null?void 0:M.tokens)==null?void 0:X.accessToken)!=null&&R.accessToken?this.onSuccess(M.tokens.accessToken.accessToken):this.onError(null,"Error while fetching profile details, please try again!",M)}catch(M){console.log("okta login error: ",M),this.onError(null,"Error while fetching profile details, please try again!",M)}}async logout(){try{await this.oktaAuth.signOut()}catch(X){this.onError(X)}}getAuth(){return this.oktaAuth}}export{fe as O};

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