PageSourceSearch

https://my.dnb.com/vendor-node_modules_okta_okta-signin-widget_dis…_exports_default_js.391add787cc30523fa96.js

js dnb.com collected 2026-09-24 09:07:30 UTC 1,291,246 bytes, 2 lines download raw bytes

1/*! For license information please see vendor-node_modules_okta_okta-signin-widget_dist_esm_src_exports_exports_default_js.391add787cc30523fa96.js.LICENSE.txt */
2(self.webpackChunkmarketplace_portal_ui=self.webpackChunkmarketplace_portal_ui||[]).push([["vendor-node_modules_okta_okta-signin-widget_dist_esm_src_exports_exports_default_js"],{31581(e,t,n){"use strict";n.d(t,{A:()=>MS});var o={};n.r(o),n.d(o,{ACCESS_TOKEN_STORAGE_KEY:()=>Y,CACHE_STORAGE_NAME:()=>$,DEFAULT_CACHE_DURATION:()=>q,DEFAULT_CODE_CHALLENGE_METHOD:()=>te,DEFAULT_MAX_CLOCK_SKEW:()=>V,DEFAULT_POLLING_DELAY:()=>j,IDX_API_VERSION:()=>ne,IDX_RESPONSE_STORAGE_NAME:()=>G,ID_TOKEN_STORAGE_KEY:()=>J,IOS_MAX_RETRY_COUNT:()=>F,MAX_VERIFIER_LENGTH:()=>ee,MIN_VERIFIER_LENGTH:()=>Z,ORIGINAL_URI_STORAGE_NAME:()=>K,PKCE_STORAGE_NAME:()=>H,REFERRER_PATH_STORAGE_KEY:()=>X,REFRESH_TOKEN_STORAGE_KEY:()=>Q,SHARED_TRANSACTION_STORAGE_NAME:()=>W,STATE_TOKEN_KEY_NAME:()=>U,TOKEN_STORAGE_NAME:()=>B,TRANSACTION_STORAGE_NAME:()=>z});var i={};n.r(i),n.d(i,{getUserAgent:()=>pe,hasTextEncoder:()=>ge,isBrowser:()=>ce,isDPoPSupported:()=>we,isFingerprintSupported:()=>de,isHTTPS:()=>ve,isIE11OrLess:()=>ue,isIOS:()=>_e,isLocalhost:()=>be,isPKCESupported:()=>ye,isPopupPostMessageSupported:()=>he,isTokenVerifySupported:()=>me});var r={};n.r(r),n.d(r,{AuthenticatorEnrollmentData:()=>tn,AuthenticatorVerificationData:()=>en,ChallengeAuthenticator:()=>Vt,ChallengePoll:()=>qt,EnrollAuthenticator:()=>Mt,EnrollPoll:()=>Ut,EnrollProfile:()=>$t,EnrollmentChannelData:()=>Ft,GenericRemediator:()=>dt,Identify:()=>Ht,ReEnrollAuthenticator:()=>zt,ReEnrollAuthenticatorWarning:()=>Wt,RedirectIdp:()=>Kt,Remediator:()=>ut,ResetAuthenticator:()=>Bt,SelectAuthenticatorAuthenticate:()=>Yt,SelectAuthenticatorEnroll:()=>Jt,SelectAuthenticatorUnlockAccount:()=>Qt,SelectEnrollProfile:()=>Xt,SelectEnrollmentChannel:()=>jt,Skip:()=>nn});var a={};n.r(a),n.d(a,{atob:()=>re,base64ToBase64Url:()=>Ln,base64UrlDecode:()=>Fn,base64UrlToBase64:()=>Mn,base64UrlToBuffer:()=>Vn,base64UrlToString:()=>Un,btoa:()=>ae,bufferToBase64Url:()=>qn,getOidcHash:()=>Bn,stringToBase64Url:()=>Dn,stringToBuffer:()=>jn,verifyToken:()=>$n,webcrypto:()=>se});var s={};n.r(s),n.d(s,{buildCredentialCreationOptions:()=>fi,buildCredentialRequestOptions:()=>mi,getAssertion:()=>yi,getAttestation:()=>gi});var l,c,u,p={};function d(e){return e&&(e.key||e.id)}function h(){var e="undefined"!=typeof window?window.console:"undefined"!=typeof console?console:void 0;return e&&e.log?e:{log:function(){},warn:function(){},group:function(){},groupEnd:function(){}}}function f(e){h().warn("[okta-auth-sdk] WARN: "+e)}function m(e){var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];null!=o&&(t[n]=o)}return t}function g(e){if(e){var t=JSON.stringify(e);if(t)return JSON.parse(t)}return e}function y(e,...t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1==t.indexOf(o)&&(n[o]=e[o]);return g(n)}function v(e,t){for(var n=e.length;n--;){var o=e[n],i=!0;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&o[r]!==t[r]){i=!1;break}if(i)return o}}function b(e,t,n){if(e&&e._links){var o=g(e._links[t]);return o&&o.name&&n?o.name===n?o:void 0:o}}n.r(p),n.d(p,{addEmail:()=>Ki,addPhone:()=>tr,deleteEmail:()=>Gi,deletePassword:()=>cr,deletePhone:()=>nr,enrollPassword:()=>sr,getEmail:()=>Wi,getEmailChallenge:()=>Ji,getEmails:()=>zi,getPassword:()=>ar,getPhone:()=>er,getPhones:()=>Zi,getProfile:()=>Fi,getProfileSchema:()=>qi,sendEmailChallenge:()=>Yi,sendPhoneChallenge:()=>or,updatePassword:()=>lr,updateProfile:()=>Vi,verifyEmailChallenge:()=>Qi,verifyPhoneChallenge:()=>ir}),function(e){e.SUCCESS="SUCCESS",e.PENDING="PENDING",e.FAILURE="FAILURE",e.TERMINAL="TERMINAL",e.CANCELED="CANCELED"}(l||(l={})),function(e){e.OKTA_PASSWORD="okta_password",e.OKTA_EMAIL="okta_email",e.PHONE_NUMBER="phone_number",e.GOOGLE_AUTHENTICATOR="google_otp",e.SECURITY_QUESTION="security_question",e.OKTA_VERIFY="okta_verify",e.WEBAUTHN="webauthn"}(c||(c={})),function(e){e.PASSWORD_RECOVERY="recover-password",e.REGISTRATION="enroll-profile",e.SOCIAL_IDP="redirect-idp",e.ACCOUNT_UNLOCK="unlock-account"}(u||(u={}));
2class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}function _(e){return"[object String]"===Object.prototype.toString.call(e)}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e){return!!e&&"[object Function]"==={}.toString.call(e)}class S extends w{constructor(e,t,n){var o;super(null!==(o=t.error)&&void 0!==o?o:S.UNKNOWN_ERROR),this.name="WWWAuthError",this.resp=null,this.scheme=e,this.parameters=t,n&&(this.resp=n)}get error(){return this.parameters.error}get errorCode(){return this.error}get error_description(){return this.parameters.error_description}get errorDescription(){return this.error_description}get errorSummary(){return this.errorDescription}get realm(){return this.parameters.realm}static parseHeader(e){var t;if(!e)return null;const n=/(?:,|, )?([a-zA-Z0-9!#$%&'*+\-.^_`|~]+)=(?:"([a-zA-Z0-9!#$%&'*+\-.,^_`|~ /:]+)"|([a-zA-Z0-9!#$%&'*+\-.^_`|~/:]+))/g,o=e.indexOf(" "),i=e.slice(0,o),r=e.slice(o+1),a={};let s;for(;null!==(s=n.exec(r));)a[s[1]]=null!==(t=s[2])&&void 0!==t?t:s[3];return new S(i,a)}static getWWWAuthenticateHeader(e={}){var t;return x(null==e?void 0:e.get)?e.get("WWW-Authenticate"):null!==(t=e["www-authenticate"])&&void 0!==t?t:e["WWW-Authenticate"]}}function T(e){for(var t="",n=0;n<e;++n)t+="abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[Math.floor(61*Math.random())];return t}function E(e){return new Promise(function(t){setTimeout(t,e)})}function C(e,t){const n=e.split(t);return[n[0],n.splice(1,n.length).join(t)]}function O(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)}function A(e){var t=[];if(null!==e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&void 0!==e[n]&&null!==e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.length?"?"+t.join("&"):""}function P(e){if(e){var t=e.replace(/^\s+|\s+$/gm,"");return t.replace(/\/+$/,"")}}S.UNKNOWN_ERROR="UNKNOWN_WWW_AUTH_ERROR";class N extends w{constructor(e,t){super(e),this.name="AuthSdkError",this.errorCode="INTERNAL",this.errorSummary=e,this.errorLink="INTERNAL",this.errorId="INTERNAL",this.errorCauses=[],t&&(this.xhr=t)}}function R(){return T(64)}function I(e,t={}){return P(t.issuer)||e.options.issuer}function D(e,t={}){const n=I(e,t);return n.indexOf("/oauth2")>0?n:n+"/oauth2"}function L(e,t){if(arguments.length>2)throw new N('As of version 3.0, "getOAuthUrls" takes only a single set of options');var n=P((t=t||{}).authorizeUrl)||e.options.authorizeUrl,o=I(e,t),i=P(t.userinfoUrl)||e.options.userinfoUrl,r=P(t.tokenUrl)||e.options.tokenUrl,a=P(t.logoutUrl)||e.options.logoutUrl,s=P(t.revokeUrl)||e.options.revokeUrl,l=D(e,t);return{issuer:o,authorizeUrl:n=n||l+"/v1/authorize",userinfoUrl:i=i||l+"/v1/userinfo",tokenUrl:r=r||l+"/v1/token",revokeUrl:s=s||l+"/v1/revoke",logoutUrl:a=a||l+"/v1/logout"}}function M(e,t){const n={issuer:e.options.issuer,urls:L(e,t),clientId:t.clientId,redirectUri:t.redirectUri,responseType:t.responseType,responseMode:t.responseMode,scopes:t.scopes,state:t.state,nonce:t.nonce,ignoreSignature:t.ignoreSignature,acrValues:t.acrValues,extraParams:t.extraParams};return!1===t.pkce?n:Object.assign(Object.assign({},n),{codeVerifier:t.codeVerifier,codeChallengeMethod:t.codeChallengeMethod,codeChallenge:t.codeChallenge})}const U="oktaStateToken",j=500,F=3,V=300,q=86400,B="okta-token-storage",$="okta-cache-storage",H="okta-pkce-storage",z="okta-transaction-storage",W="okta-shared-transaction-storage",K="okta-original-uri-storage",G="okta-idx-response-storage",Y="accessToken",J="idToken",Q="refreshToken",X="referrerPath",Z=43,ee=128,te="S256",ne="1.0.0";class oe extends w{constructor(e,t,n){super(e.errorSummary),this.name="AuthApiError",this.errorSummary=e.errorSummary,this.errorCode=e.errorCode,this.errorLink=e.errorLink,this.errorId=e.errorId,this.errorCauses=e.errorCauses,t&&(this.xhr=t),n&&(this.meta=n)}}class ie extends w{constructor(e,t,n){super(t),this.resp=null,this.name="OAuthError",this.errorCode=e,this.errorSummary=t,this.error=e,this.error_description=t,n&&(this.resp=n)}}const re=function(e){return atob(e)},ae=function(e){return btoa(e)},se="undefined"==typeof crypto?null:crypto,le=/windows phone|iemobile|wpdesktop/i;function ce(){return"undefined"!=typeof document&&"undefined"!=typeof window}function ue(){if(!ce())return!1;const e=document.documentMode;return!!e&&e<=11}function pe(){return navigator.userAgent}function de(){const e=pe();return e&&!le.test(e)}function he(){if(!ce())return!1;const e=document.documentMode;var t=e&&e<10;return void 0!==window.postMessage&&!t}function fe(){return null!=se&&void 0!==se.subtle&&"undefined"!=typeof Uint8Array}function me(){return fe()}function ge(){return"undefined"!=typeof TextEncoder}function ye(){return me()&&ge()}function ve(){return!!ce()&&"https:"===window.location.protocol}function be(){return ce()&&"localhost"===window.location.hostname}function we(){return!ue()&&void 0!==window.indexedDB&&ge()&&fe()}function _e(){return ce()&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}let ke,xe=0;function Se(e,t){var n;if(t=t||{}
2,e.options.httpRequestInterceptors)for(const n of e.options.httpRequestInterceptors)n(t);var o=t.url,i=t.method,r=t.args,a=t.saveAuthnState,s=t.accessToken,l=!0===t.withCredentials,c=e.options.storageUtil.storage,u=e.storageManager.getHttpCache(e.options.cookies),p=t.pollingIntent,d=null!==(n=e.options.pollDelay)&&void 0!==n?n:0;if(t.cacheResponse){var h=u.getStorage()[o];if(h&&Date.now()/1e3<h.expiresAt)return Promise.resolve(h.response)}var f=e._oktaUserAgent.getHttpHeader(),y=Object.assign({Accept:"application/json","Content-Type":"application/json"},f);Object.assign(y,e.options.headers,t.headers),y=m(y),s&&_(s)&&(y.Authorization="Bearer "+s);var v,b,w,k={headers:y,data:r||void 0,withCredentials:l};if(p&&ce()&&d>0){let t,n,r,a=0;n=()=>{const e=Date.now()-xe;return e<d?new Promise(n=>setTimeout(()=>{document.hidden?n(t()):n()},d-e)):Promise.resolve()},t=()=>{if(document.hidden){let e;return new Promise(t=>{e=()=>{document.hidden||(document.removeEventListener("visibilitychange",e),t(n()))},document.addEventListener("visibilitychange",e)})}return n()};const s=()=>e.options.httpRequestClient(i,o,k).catch(e=>{if("Load failed"===(null==e?void 0:e.message)&&a<F)return a++,r();throw e});r=()=>t().then(s),w=r()}else w=e.options.httpRequestClient(i,o,k);return w.then(function(n){return(b=n.responseText)&&_(b)&&(b=JSON.parse(b))&&"object"==typeof b&&!b.headers&&(Array.isArray(b)?b.forEach(e=>{e.headers=n.headers}):b.headers=n.headers),a&&(b.stateToken||c.delete(U)),b&&b.stateToken&&b.expiresAt&&c.set(U,b.stateToken,b.expiresAt,e.options.cookies),b&&t.cacheResponse&&u.updateStorage(o,{expiresAt:Math.floor(Date.now()/1e3)+q,response:b}),b}).catch(function(t){throw v=((e,t)=>{var n;if(t instanceof Error)return new oe({errorSummary:t.message});let o,i=t,r={};if(i.responseText&&_(i.responseText))try{r=JSON.parse(i.responseText)}catch(e){r={errorSummary:"Unknown error"}}i.status>=500&&(r.errorSummary="Unknown error"),e.options.transformErrorXHR&&(i=e.options.transformErrorXHR(g(i)));const a=null!==(n=S.getWWWAuthenticateHeader(null==i?void 0:i.headers))&&void 0!==n?n:"";if(o=r.error&&r.error_description?new ie(r.error,r.error_description,i):new oe(r,i,{wwwAuthHeader:a}),a&&(null==i?void 0:i.status)>=400&&(null==i?void 0:i.status)<500){const e=S.parseHeader(a);if(403===i.status&&"insufficient_authentication_context"===(null==e?void 0:e.error)){const{max_age:t,acr_values:n}=e.parameters;o=new oe({errorSummary:e.error,errorCauses:[{errorSummary:e.errorDescription}]},i,Object.assign({max_age:+t},n&&{acr_values:n}))}else"DPoP"===(null==e?void 0:e.scheme)&&(o=e)}return o})(e,t),"E0000011"===v.errorCode&&c.delete(U),v})}function Te(e,t,n){var o={url:t=O(t)?t:e.getIssuerOrigin()+t,method:"GET"};return Object.assign(o,n),Se(e,o)}function Ee(e,t,n,o){var i={url:t=O(t)?t:e.getIssuerOrigin()+t,method:"POST",args:n,saveAuthnState:!0};return Object.assign(i,o),Se(e,i)}ce()&&(xe=Date.now(),ke=()=>{document.hidden||(xe=Date.now())},document.addEventListener("visibilitychange",ke));var Ce,Oe=n(51504),Ae=n(18987),Pe=n(74945),Ne=n.n(Pe);function Re(e){return e&&e.accessToken}function Ie(e){return e&&e.idToken}function De(e){return e&&e.refreshToken}async function Le(e,t={}){const n=await e.token.prepareTokenParams(t),o=M(e,n);let{flow:i="default",withCredentials:r=!0,activationToken:a,recoveryToken:s,maxAge:l,acrValues:c}=Object.assign(Object.assign({},e.options),t);return Object.assign(Object.assign({},o),{flow:i,withCredentials:r,activationToken:a,recoveryToken:s,maxAge:l,acrValues:c})}function Me(e,t){const n=Ue(e,t);return!!(null==n?void 0:n.interactionHandle)}function Ue(e,t){let n;t=m(t),t=Object.assign(Object.assign({},e.options),t);try{n=e.transactionManager.load(t)}catch(e){}if(n)return qe(n,t)?n:void f("Saved transaction meta does not match the current configuration. This may indicate that two apps are sharing a storage key.")}async function je(e,t){t=m(t);return Ue(e,t=Object.assign(Object.assign({},e.options),t))||Le(e,t)}function Fe(e,t){e.transactionManager.save(t,{muteWarning:!0})}function Ve(e){e.transactionManager.clear()}function qe(e,t={}){if(!1===function(e,t){return!["issuer","clientId","redirectUri","state","codeChallenge","codeChallengeMethod","activationToken","recoveryToken"].some(n=>{const o=t[n];if(o&&o!==e[n])return!0})}(e,t))return!1;const{flow:n}=t;return!1!==function(e,t){return!(t&&"default"!==t&&"proceed"!==t)||t===e.flow}(e,n)}function Be(e){return{meta:e,interactionHandle:e.interactionHandle,state:e.state}}async function $e(e,t={}){let n=Ue(e,t=m(t));if(null==n?void 0:n.interactionHandle)return Be(n);n=await Le(e,Object.assign(Object.assign({},n),t));const o=D(e);let{clientId:i,redirectUri:r,state:a,scopes:s,withCredentials:l,codeChallenge:c,codeChallengeMethod:u,activationToken:p,recoveryToken:d,maxAge:h,acrValues:f,nonce:g}=n;const y=t.clientSecret||e.options.clientSecret;l=null==l||l;const v=`${o}/v1/interact`,b=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({client_id:i,scope:s.join(" "),redirect_uri:r,code_challenge:c,code_challenge_method:u,state:a},p&&{activation_token:p}),d&&{recovery_token:d}),y&&{client_secret:y}),h&&{max_age:h}),f&&{acr_values:f}),g&&{nonce:g}),w=(await Se(e,{method:"POST",url:v,headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:l,args:b})).interaction_handle,_=Object.assign(Object.assign({},n),{interactionHandle:w,withCredentials:l,state:a,scopes:s,recoveryToken:d,activationToken:p});return Fe(e,_),Be(_)}function He(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}!function(e){e.ACCESS="accessToken",e.ID="idToken",e.REFRESH="refreshToken"}(Ce||(Ce={})),"function"==typeof SuppressedError&&SuppressedError;const ze=function(e){return!1!==e.mutable},We=function(e){var t,n;const o={},i=[],r={};if(!e.value)return i.push(e),{defaultParamsForAction:o,neededParamsForAction:i,immutableParamsForAction:r};for(let a of e.value)ze(a)?(i.push(a),null!==(t=a.value)&&void 0!==t&&t&&(o[a.name]=a.value)):r[a.name]=null!==(n=a.value)&&void 0!==n?n:"";return{defaultParamsForAction:o,neededParamsForAction:i,immutableParamsForAction:r}},Ke=function(e,{actionDefinition:t,defaultParamsForAction:n={},immutableParamsForAction:o={},toPersist:i={}}){const r=t.href;return async function(a={}){var s,l;const c={"Content-Type":"application/json",Accept:t.accepts||"application/ion+json"},u=JSON.stringify(Object.assign(Object.assign(Object.assign({},n),a),o));try{const n={url:r,method:t.method,headers:c,args:u,withCredentials:null===(s=null==i?void 0:i.withCredentials)||void 0===s||s};("poll"===t.name||(null===(l=t.name)||void 0===l?void 0:l.endsWith("-poll")))&&(n.pollingIntent=!0);const o=await Se(e,n);return e.idx.makeIdxResponse(Object.assign({},o),i,!0)}catch(t){if(!(t instanceof oe&&(null==t?void 0:t.xhr)))throw t;const n=t.xhr,o=n.responseJSON||JSON.parse(n.responseText),r=n.headers["WWW-Authenticate"]||n.headers["www-authenticate"],a=e.idx.makeIdxResponse(Object.assign({},o),i,!1);return 401===n.status&&'Oktadevicejwt realm="Okta Device"'===r&&(a.stepUp=!0),a}}},Ge=function(e,t,n){const o=Ke,{defaultParams:i,neededParams:r,immutableParams:a}=function(e){e=Array.isArray(e)?e:[e];const t=[],n={},o={};for(let i of e){const{defaultParamsForAction:e,neededParamsForAction:r,immutableParamsForAction:a}=We(i);t.push(r),n[i.name]=e,o[i.name]=a}return{defaultParams:n,neededParams:t,immutableParams:o}}(t),s=o(e,{actionDefinition:t,defaultParamsForAction:i[t.name],immutableParamsForAction:a[t.name],toPersist:n});return s.neededParams=r,s},Ye=/\$?(?<step>\w+)|(?:\[(?<index>\d+)\])/g,Je={remediation:!0,context:!0},Qe=(e,t)=>{Object.keys(t).forEach(n=>{if("relatesTo"===n){const o=Array.isArray(t[n])?t[n][0]:t[n];if("string"==typeof o){const i=function({path:e,json:t}){var n,o,i;const r=[];let a;for(;null!==(a=Ye.exec(e));){const e=null!==(o=null===(n=null==a?void 0:a.groups)||void 0===n?void 0:n.step)&&void 0!==o?o:null===(i=null==a?void 0:a.groups)||void 0===i?void 0:i.index;e&&r.push(e)}if(r.length<1)return;const s=r.pop();let l=t;for(const e of r)if(Object.prototype.hasOwnProperty.call(l,e)){if("object"!=typeof l[e])return;l=l[e]}return l[s]}({path:o,json:e});if(i)return void(t[n]=i);throw new N(`Cannot resolve relatesTo: ${o}`)}}
2Array.isArray(t[n])&&t[n].forEach(t=>Qe(e,t))})},Xe=function(e,t,n={}){var o;const i=(null===(o=t.remediation)||void 0===o?void 0:o.value)||[];i.forEach(e=>{var n;if("launch-authenticator"!==e.name||"authenticatorChallenge"!==(null===(n=null==e?void 0:e.relatesTo)||void 0===n?void 0:n[0])||(null==t?void 0:t.authenticatorChallenge))return Qe(t,e);delete e.relatesTo});const r=i.map(t=>((e,t,n)=>{if(t.rel){const o=function(e,t,n={}){return t.reduce((t,o)=>Object.assign(Object.assign({},t),{[o.name]:Ge(e,o,n)}),{})}(e,[t],n),i=o[t.name];return Object.assign(Object.assign({},t),{action:i})}return t})(e,t,n)),{context:a,actions:s}=function(e,t,n={}){const o={},i={};return Object.keys(t).filter(e=>!Je[e]).forEach(r=>{if("object"!=typeof t[r]||!t[r])return void(i[r]=t[r]);if(t[r].rel)return void(o[t[r].name]=Ge(e,t[r],n));const a=t[r],{value:s,type:l}=a,c=He(a,["value","type"]);i[r]=Object.assign({type:l},c),"object"===l?(i[r].value={},Object.entries(s).forEach(([t,a])=>{a.rel?o[`${r}-${t.name||t}`]=Ge(e,a,n):i[r].value[t]=a})):i[r].value=s}),{context:i,actions:o}}(e,t,n);return{remediations:r,context:a,actions:s}};var Ze={makeIdxState:function(e,t,n,o){var i,r,a;const s=t,{remediations:l,context:c,actions:u}=Xe(e,t,n);return{proceed:async function(e,t={}){const n=l.find(t=>t.name===e);return n?"function"!=typeof n.action?Promise.reject(`Current remediation cannot make form submit action: [${e}]`):n.action(t):Promise.reject(`Unknown remediation choice: [${e}]`)},neededToProceed:[...l],actions:u,context:c,rawIdxState:s,interactionCode:null===(a=null===(r=null===(i=s.successWithInteractionCode)||void 0===i?void 0:i.value)||void 0===r?void 0:r.find(e=>"interaction_code"===e.name))||void 0===a?void 0:a.value,toPersist:n,requestDidSucceed:o}}};const et=function(e){switch(e){case"1.0.0":return Ze;case void 0:case null:throw new Error("Api version is required");default:throw new Error(`Unknown api version: ${e}.  Use an exact semver version.`)}};function tt(e){if(!e)throw new Error("version is required");if((null!=e?e:"").replace(/[^0-9a-zA-Z._-]/,"")!==e||!e)throw new Error("invalid version supplied - version is required and uses semver syntax");et(e)}function nt(e,t,n,o){var i;const r=null!==(i=null==t?void 0:t.version)&&void 0!==i?i:ne;tt(r);const{makeIdxState:a}=et(r);return a(e,t,n,o)}function ot(e){return e&&e.version}function it(e){return e instanceof ie}async function rt(e,t={}){var n;let o,i;const r=e.transactionManager.loadIdxResponse(t);if(r&&(o=r.rawIdxResponse,i=r.requestDidSucceed),!o){const r=t.version||ne,a=function(e,t={}){return I(e,t).split("/oauth2")[0]}(e),{interactionHandle:s,stateHandle:l}=t,c=null===(n=t.withCredentials)||void 0===n||n;try{i=!0,tt(r);const t=`${a}/idp/idx/introspect`,n=l?{stateToken:l}:{interactionHandle:s},u={"Content-Type":`application/ion+json; okta-version=${r}`,Accept:`application/ion+json; okta-version=${r}`};o=await Se(e,{method:"POST",url:t,headers:u,withCredentials:c,args:n})}catch(e){if(!(e instanceof oe&&e.xhr&&ot(e.xhr.responseJSON)))throw e;o=e.xhr.responseJSON,i=!1}}const{withCredentials:a}=t;return nt(e,o,{withCredentials:a},i)}function at(e){return e.charAt(0).toUpperCase()+e.substring(1)}function st(e){return e.value.find(({name:e})=>"authenticator"===e)}function lt(e){let t;if(d(e))t=e;else{if("string"!=typeof e)throw new Error("Invalid format for authenticator");t={key:e}}return t}function ct(e,t){return!!(e&&t&&(e.id&&t.id?e.id===t.id:e.key&&t.key&&e.key===t.key))}class ut{constructor(e,t={},n={}){this.values=Object.assign({},t),this.options=Object.assign({},n),this.formatAuthenticators(),this.remediation=e}formatAuthenticators(){if(this.values.authenticators=this.values.authenticators||[],this.values.authenticators=this.values.authenticators.map(e=>lt(e)),this.values.authenticator){const e=lt(this.values.authenticator);this.values.authenticators.some(t=>ct(e,t))||this.values.authenticators.push(e)}this.values.authenticatorsData=this.values.authenticators.reduce((e,t)=>("object"==typeof t&&Object.keys(t).length>1&&e.push(t),e),this.values.authenticatorsData||[])}getName(){return this.remediation.name}canRemediate(e){var t,n;return!(t=this.remediation,null===(n=t.value)||void 0===n?void 0:n.reduce((e,t)=>
2(t.required&&e.push(t.name),e),[])).find(e=>!this.hasData(e))}getData(e){if(!e){let e=(t=this.remediation,null===(n=t.value)||void 0===n?void 0:n.map(e=>e.name)).reduce((e,t)=>(e[t]=this.getData(t),e),{});return e}var t,n;if("function"==typeof this[`map${at(e)}`]){const t=this[`map${at(e)}`](this.remediation.value.find(({name:t})=>t===e));if(t)return t}if(this.map&&this.map[e]){const t=this.map[e];for(let e=0;e<t.length;e++){let n=this.values[t[e]];if(n)return n}}return this.values[e]}hasData(e){return!!this.getData(e)}getNextStep(e,t){const n=this.getName(),o=this.getInputs(),i=this.getAuthenticator(),r=null==i?void 0:i.type;return Object.assign(Object.assign({name:n,inputs:o},r&&{type:r}),i&&{authenticator:i})}getInputs(){const e=[];return(this.remediation.value||[]).forEach(t=>{let n,{name:o,type:i,visible:r,messages:a}=t;if(!1!==r){if("function"==typeof this[`getInput${at(o)}`])n=this[`getInput${at(o)}`](t);else if("object"!==i){let e;const i=(this.map?this.map[o]:null)||[];e=1===i.length?i[0]:i.find(e=>Object.keys(this.values).includes(e)),e&&(n=Object.assign(Object.assign({},t),{name:e}))}n||(n=t),Array.isArray(n)?n.forEach(t=>e.push(t)):(a&&(n.messages=a),e.push(n))}}),e}static getMessages(e){var t,n;if(e.value)return null===(n=null===(t=e.value[0])||void 0===t?void 0:t.form)||void 0===n?void 0:n.value.reduce((e,t)=>(t.messages&&(e=[...e,...t.messages.value]),e),[])}getValuesAfterProceed(){const e=[...this.remediation.value||[],...this.getInputs()];for(const t of e)delete this.values[t.name];return this.values}getAuthenticator(){var e,t;const n=null===(e=this.remediation.relatesTo)||void 0===e?void 0:e.value;if(!n)return;const o=st(this.remediation);if(!o)return n;const i=o.form.value.find(({name:e})=>"id"===e).value,r=null===(t=o.form.value.find(({name:e})=>"enrollmentId"===e))||void 0===t?void 0:t.value;return Object.assign(Object.assign({},n),{id:i,enrollmentId:r})}}function pt(e){if(Array.isArray(e))return e.map(e=>"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:pt(e));const t={};for(const[n,o]of Object.entries(e))if(null!=o)if("object"==typeof o){const e=Object.keys(o);if(["value","form"].includes(n)&&1===e.length&&["value","form"].includes(e[0])){const e=pt(o);Object.entries(e).forEach(([e,n])=>{t[e]=n})}else t[n]=pt(o)}else t[n]=o;return t}class dt extends ut{canRemediate(){return!("function"!=typeof this.remediation.action||"poll"!==this.remediation.name&&!this.remediation.name.endsWith("-poll")&&!this.options.step)}getData(){return this.getInputs().reduce((e,{name:t})=>(e[t]=this.values[t],e),{})}getNextStep(e,t){const n=this.getName(),o=this.getInputs(),i=this.remediation,{href:r,method:a,rel:s,accepts:l,produces:c,value:u,action:p}=i,d=He(i,["href","method","rel","accepts","produces","value","action"]);return p?Object.assign(Object.assign(Object.assign({},d),!!o.length&&{inputs:o}),{action:async t=>e.idx.proceed(Object.assign({step:n},t))}):Object.assign({},this.remediation)}getInputs(){return(this.remediation.value||[]).filter(({name:e})=>"stateHandle"!==e).map(pt).map(e=>(e.type=e.type||"string",e))}}const ht={remediators:{},getFlowSpecification:function(e,t="default"){return{remediators:{}}}};function ft(e){const{neededToProceed:t,interactionCode:n}=e;return!t.length&&!n}function mt(e){if(e&&Array.isArray(e))return e.reduce((e,t)=>{if(t.messages&&(e=[...e,...t.messages.value]),t.form){const n=mt(t.form.value)||[];e=[...e,...n]}if(t.options){let n=[];t.options.forEach(e=>{e.value&&"string"!=typeof e.value&&(n=[...n,e.value])});const o=mt(n)||[];e=[...e,...o]}return e},[])}function gt(e,t){var n;let o=[];const{rawIdxState:i,neededToProceed:r}=e,a=null===(n=i.messages)||void 0===n?void 0:n.value.map(e=>e);if(a&&(o=[...o,...a]),!t.useGenericRemediator)for(let e of r){const t=mt(e.value);t&&(o=[...o,...t])}const s={};return o=o.reduce((e,t)=>{var n;const o=null===(n=t.i18n)||void 0===n?void 0:n.key;return o&&s[o]&&t.message===s[o].message?e:(s[o]=t,e=[...e,t])},[]),o}function yt(e,t){const{useGenericRemediator:n,remediators:o}=t;if(e)return n?dt:o[e.name]}function vt(e,t,n){const o=n.remediators,i=n.useGenericRemediator,{neededToProceed:r,context:a}=e;let s;if(n.step){const e=r.find(({name:e})=>e===n.step);if(e){const o=yt(e,n);return o?new o(e,t,n):void 0}return void f(`step "${n.step}" did not match any remediations`)}const l=[];
2if(i)l.push(new dt(r[0],t,n));else for(let e of r)if(Object.keys(o).includes(e.name)){if(s=new(yt(e,n))(e,t,n),s.canRemediate(a))return s;l.push(s)}return l[0]}function bt(e,t,n){const o=t.getNextStep(e,n.context),i=function(e){return e.neededToProceed.some(({name:e})=>"skip"===e)}(n),r=function(e){return Object.keys(e.actions).some(e=>e.includes("resend"))}(n);return Object.assign(Object.assign(Object.assign({},o),i&&{canSkip:i}),r&&{canResend:r})}function wt(e,t,n={}){const o=ft(t),i=gt(t,n);if(o)return{idxResponse:t,terminal:o,messages:i};{const o=vt(t,{},n),r=o&&bt(e,o,t);return Object.assign({idxResponse:t,messages:i},r&&{nextStep:r})}}function _t(e){return Object.assign(Object.assign({},e),{resend:void 0})}function kt(e,t){let n=e.actions||[];return n=n.filter(e=>"string"==typeof e?e!==t:e.name!==t),Object.assign(Object.assign({},e),{actions:n})}async function xt(e,t,n,o){let{neededToProceed:i,interactionCode:r}=t;const{flow:a}=o;if(r)return{idxResponse:t};const s=vt(t,n,o),l=function(e,t){return Object.keys(t.actions).find(t=>!!e.resend&&t.includes("-resend"))}(n,t),c=[...o.actions||[],...l&&[l]||[]];if(c)for(let r of c){let a={};"string"!=typeof r&&(a=r.params||{},r=r.name);let s=_t(n),l=kt(o,r);if("function"==typeof t.actions[r])return!1===(t=await t.actions[r](a)).requestDidSucceed?wt(e,t,o):"cancel"===r?{idxResponse:t,canceled:!0}:xt(e,t,s,l);const c=i.find(({name:e})=>e===r);if(c)return!1===(t=await t.proceed(r,a)).requestDidSucceed?wt(e,t,o):xt(e,t,n,l)}const u=ft(t);if(u)return{idxResponse:t,terminal:u};if(!s){if(o.step)return n=function(e,t,n){const o=(e.neededToProceed||[]).find(e=>e.name===t);return o?o.value.reduce((e,t)=>{const{name:o,value:i}=t;return e[o]="stateHandle"===o?i:n[o],e},{}):(f(`filterValuesForRemediation: "${t}" did not match any remediations`),n)}(t,o.step,n),!1===(t=await t.proceed(o.step,n)).requestDidSucceed?wt(e,t,o):{idxResponse:t};if("default"===a)return{idxResponse:t};throw new N(`\n      No remediation can match current flow, check policy settings in your org.\n      Remediations: [${i.reduce((e,t)=>e?e+" ,"+t.name:t.name,"")}]\n    `)}if(!s.canRemediate())return{idxResponse:t,nextStep:bt(e,s,t)};const p=s.getName(),d=s.getData();return!1===(t=await t.proceed(p,d)).requestDidSucceed?wt(e,t,o):(n=s.getValuesAfterProceed(),!(o=Object.assign(Object.assign({},o),{step:void 0})).useGenericRemediator||t.interactionCode||ft(t)?xt(e,t,n,o):{idxResponse:t,nextStep:bt(e,vt(t,n,o),t)})}function St(e){const t=Object.assign({},e);return["flow","remediators","actions","withCredentials","step","useGenericRemediator","exchangeCodeForTokens"].forEach(e=>{delete t[e]}),t}async function Tt(e,t={}){var n;let o={options:t,values:St(t)};o=function(e,t){var n,o,i,r;let{options:a}=t;a=Object.assign(Object.assign({},e.options.idx),a);let{flow:s,withCredentials:c,remediators:u,actions:p}=a;const d=l.PENDING;if(s=s||(null===(o=(n=e.idx).getFlow)||void 0===o?void 0:o.call(n))||"default",s){null===(r=(i=e.idx).setFlow)||void 0===r||r.call(i,s);const t=function(e,t="default"){return ht.getFlowSpecification(e,t)}(e,s);c=void 0!==c?c:t.withCredentials,u=u||t.remediators,p=p||t.actions}return Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},a),{flow:s,withCredentials:c,remediators:u,actions:p}),status:d})}(e,o),o=await async function(e,t){const{options:n}=t,{stateHandle:o,withCredentials:i,version:r,state:a,scopes:s,recoveryToken:l,activationToken:c,maxAge:u,acrValues:p,nonce:d,useGenericRemediator:h}=n;let f,m=Ue(e,{state:a,recoveryToken:l,activationToken:c});if(o)f=await rt(e,{withCredentials:i,version:r,stateHandle:o,useGenericRemediator:h});else{let t=null==m?void 0:m.interactionHandle;if(!t){e.transactionManager.clear();const n=await $e(e,{withCredentials:i,state:a,scopes:s,activationToken:c,recoveryToken:l,maxAge:u,acrValues:p,nonce:d});t=n.interactionHandle,m=n.meta}f=await rt(e,{withCredentials:i,version:r,interactionHandle:t,useGenericRemediator:h})}return Object.assign(Object.assign({},t),{idxResponse:f,meta:m})}(e,o),o=await async function(e,t){let{idxResponse:n,options:o,values:i}=t;const{autoRemediate:r,remediators:a,actions:s,flow:l,step:c,useGenericRemediator:u}=o;if(!1===r||!(a||s||c))return t;i=Object.assign(Object.assign({},i),{stateHandle:n.rawIdxState.stateHandle});const{idxResponse:p,nextStep:d,canceled:h}=await xt(e,n,i,{remediators:a,actions:s,flow:l,step:c,useGenericRemediator:u});return n=p,Object.assign(Object.assign({},t),{idxResponse:n,nextStep:d,canceled:h})}(e,o),o=await async function(e,t){let{options:n,idxResponse:o,canceled:i,status:r}=t;const{exchangeCodeForTokens:a}=n;let s,c,p,d,h,f,m=!1,g=!1,y=!0;if(o&&(m=!(!o.requestDidSucceed&&!o.stepUp),p=function(e){const t=[],{actions:n,neededToProceed:o}=e;return n["currentAuthenticator-recover"]&&t.push(u.PASSWORD_RECOVERY),o.some(({name:e})=>"select-enroll-profile"===e)&&t.push(u.REGISTRATION),o.some(({name:e})=>"redirect-idp"===e)&&t.push(u.SOCIAL_IDP),o.some(({name:e})=>"unlock-account"===e)&&t.push(u.ACCOUNT_UNLOCK),t}(o),d=function(e,t,n){var o;const i=[],r=Object.values(ht.remediators).reduce((e,t)=>
2(t.remediationName&&(e[t.remediationName]=t),e),{});for(let o of t.neededToProceed){const a=yt(o,{useGenericRemediator:n,remediators:r});if(a){const n=new a(o);i.push(n.getNextStep(e,t.context))}}for(const[n]of Object.entries(t.actions||{})){let r={name:n,action:async t=>e.idx.proceed({actions:[{name:n,params:t}]})};if(n.startsWith("currentAuthenticator")){const[e,i]=C(n,"-"),a=t.rawIdxState[e].value[i],s=He(a,["href","method","rel","accepts","produces"]),l=null===(o=a.value)||void 0===o?void 0:o.filter(e=>"stateHandle"!==e.name);r=Object.assign(Object.assign(Object.assign({},s),l&&{value:l}),r)}i.push(r)}return i}(e,o,n.useGenericRemediator),h=gt(o,n),f=ft(o)),f){r=l.TERMINAL;const e=Object.keys(o.actions).length>0,t=!!h.find(e=>"ERROR"===e.class);e||t||!0!==o.requestDidSucceed?m=!!e:g=!0,y=!1}else i?(r=l.CANCELED,g=!0):(null==o?void 0:o.interactionCode)&&(s=o.interactionCode,!1===a?(r=l.SUCCESS,g=!1):(c=await async function(e,t){let{meta:n,idxResponse:o}=t;const{interactionCode:i}=o,{clientId:r,codeVerifier:a,ignoreSignature:s,redirectUri:l,urls:c,scopes:u}=n;return(await e.token.exchangeCodeForTokens({interactionCode:i,clientId:r,codeVerifier:a,ignoreSignature:s,redirectUri:l,scopes:u},c)).tokens}(e,t),r=l.SUCCESS,g=!0));return Object.assign(Object.assign({},t),{status:r,interactionCode:s,tokens:c,shouldSaveResponse:m,shouldClearTransaction:g,clearSharedStorage:y,enabledFeatures:p,availableSteps:d,messages:h,terminal:f})}(e,o);const{idxResponse:i,meta:r,shouldSaveResponse:a,shouldClearTransaction:s,clearSharedStorage:c,status:p,enabledFeatures:d,availableSteps:h,tokens:f,nextStep:m,messages:g,error:y,interactionCode:v}=o;if(s)e.transactionManager.clear({clearSharedStorage:c});else if(Fe(e,Object.assign({},r)),a){const{rawIdxState:t,requestDidSucceed:o}=i;e.transactionManager.saveIdxResponse({rawIdxResponse:t,requestDidSucceed:o,stateHandle:null===(n=i.context)||void 0===n?void 0:n.stateHandle,interactionHandle:null==r?void 0:r.interactionHandle})}const{actions:b,context:w,neededToProceed:_,proceed:k,rawIdxState:x,requestDidSucceed:S,stepUp:T}=i||{};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({status:p},r&&{meta:r}),d&&{enabledFeatures:d}),h&&{availableSteps:h}),f&&{tokens:f}),m&&{nextStep:m}),g&&g.length&&{messages:g}),y&&{error:y}),T&&{stepUp:T}),{interactionCode:v,actions:b,context:w,neededToProceed:_,proceed:k,rawIdxState:x,requestDidSucceed:S})}async function Et(e,t={}){return t.password&&!t.authenticator&&(t.authenticator=c.OKTA_PASSWORD),Tt(e,Object.assign(Object.assign({},t),{flow:"authenticate"}))}class Ct{constructor(e){this.meta=e}}class Ot extends Ct{canVerify(e){return!!(e.credentials||e.verificationCode||e.otp)}mapCredentials(e){const{credentials:t,verificationCode:n,otp:o}=e;if(t||n||o)return t||{passcode:n||o}}getInputs(e){var t;return Object.assign(Object.assign({},null===(t=e.form)||void 0===t?void 0:t.value[0]),{name:"verificationCode",type:"string",required:e.required})}}class At extends Ot{mapCredentials(e){const{verificationCode:t}=e;if(t)return{totp:t}}}class Pt extends Ct{canVerify(e){return!!(e.credentials||e.password||e.passcode)}mapCredentials(e){const{credentials:t,password:n,passcode:o,revokeSessions:i}=e;if(t||n||o)return t||{passcode:o||n,revokeSessions:i}}getInputs(e){var t,n;const o=[Object.assign(Object.assign({},null===(t=e.form)||void 0===t?void 0:t.value[0]),{name:"password",type:"string",required:e.required})];return(null===(n=e.form)||void 0===n?void 0:n.value.find(e=>"revokeSessions"===e.name))&&o.push({name:"revokeSessions",type:"boolean",label:"Sign me out of all other devices",required:!1}),o}}class Nt extends Ct{canVerify(e){const{credentials:t}=e;if(t&&t.questionKey&&t.answer)return!0;const{questionKey:n,question:o,answer:i}=e;return!(!n||!i)||!(!o||!i)}mapCredentials(e){const{questionKey:t,question:n,answer:o}=e;if(o&&(t||n))return{questionKey:n?"custom":t,question:n,answer:o}}getInputs(){return[{name:"questionKey",type:"string",required:!0},{name:"question",type:"string",label:"Create a security question"},{name:"answer",type:"string",label:"Answer",required:!0}]}}class Rt extends Ct{canVerify(e){const{credentials:t}=e;if(t&&t.answer)return!0;const{answer:n}=e;return!!n}mapCredentials(e){const{answer:t}=e;if(t)return{questionKey:this.meta.contextualData.enrolledQuestion.questionKey,answer:t}}getInputs(){return[{name:"answer",type:"string",label:"Answer",required:!0}]}}class It extends Ct{canVerify(e){const{credentials:t}=e,n=t||e,{clientData:o,attestation:i}=n;return!(!o||!i)}mapCredentials(e){const{credentials:t,clientData:n,attestation:o,transports:i}=e;if(t||n||o)return t||Object.assign({clientData:n,attestation:o},i&&{transports:i})}getInputs(){return[{name:"clientData",type:"string",required:!0,visible:!1,label:"Client Data"},{name:"attestation",type:"string",required:!0,visible:!1,label:"Attestation"}]}}class Dt extends Ct{canVerify(e){const{credentials:t}=e,n=t||e,{clientData:o,authenticatorData:i,signatureData:r}=n;return!!(o&&i&&r)}mapCredentials(e){const{credentials:t,authenticatorData:n,clientData:o,signatureData:i}=e;if(t||n||o||i)return t||{authenticatorData:n,clientData:o,signatureData:i}}getInputs(){return[{name:"authenticatorData",type:"string",label:"Authenticator Data",required:!0,visible:!1},{name:"clientData",type:"string",label:"Client Data",required:!0,visible:!1},{name:"signatureData",type:"string",label:"Signature Data",required:!0,visible:!1}]}}class Lt extends ut{constructor(e,t={}){super(e,t),this.authenticator=function(e){var t,n;const o=e.relatesTo,i=(null==o?void 0:o.value)||{};switch(i.key){case c.OKTA_PASSWORD:return new Pt(i);case c.SECURITY_QUESTION:return(null===(t=i.contextualData)||void 0===t?void 0:t.enrolledQuestion)?new Rt(i):new Nt(i);case c.OKTA_VERIFY:return new At(i);case c.WEBAUTHN:return(null===(n=i.contextualData)||void 0===n?void 0:n.challengeData)?new Dt(i):new It(i);default:return new Ot(i)}}(e)}getNextStep(e,t){var n;const o=super.getNextStep(e,t),i=null===(n=null==t?void 0:t.authenticatorEnrollments)||void 0===n?void 0:n.value;return Object.assign(Object.assign({},o),{authenticatorEnrollments:i})}canRemediate(){return this.authenticator.canVerify(this.values)}mapCredentials(){return this.authenticator.mapCredentials(this.values)}
2getInputCredentials(e){return this.authenticator.getInputs(e)}getValuesAfterProceed(){return this.values=super.getValuesAfterProceed(),Object.keys(this.values).filter(e=>"credentials"!==e).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}class Mt extends Lt{}Mt.remediationName="enroll-authenticator";class Ut extends ut{canRemediate(){return!!this.values.startPolling||"enroll-poll"===this.options.step}getNextStep(e,t){const n=super.getNextStep(e,t);let o=this.getAuthenticator();return!o&&(null==t?void 0:t.currentAuthenticator)&&(o=t.currentAuthenticator.value),Object.assign(Object.assign({},n),{authenticator:o,poll:{required:!0,refresh:this.remediation.refresh}})}getValuesAfterProceed(){return Object.keys(this.values).filter(e=>"startPolling"!==e).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}Ut.remediationName="enroll-poll";class jt extends ut{canRemediate(){if(this.values.channel)return!0;if(this.values.authenticator){const{id:e,channel:t}=this.values.authenticator;if(e&&t)return!0}return!1}getNextStep(e,t){const n=super.getNextStep(e,t),o=t.currentAuthenticator.value;return Object.assign(Object.assign({},n),{authenticator:o})}getData(){var e;return{authenticator:{id:this.remediation.value[0].value.form.value[0].value,channel:(null===(e=this.values.authenticator)||void 0===e?void 0:e.channel)||this.values.channel},stateHandle:this.values.stateHandle}}getValuesAfterProceed(){this.values=super.getValuesAfterProceed(),delete this.values.authenticators;const e=this.values.channel?"channel":"authenticator";return Object.keys(this.values).filter(t=>t!==e).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}jt.remediationName="select-enrollment-channel";class Ft extends ut{getInputEmail(){return[{name:"email",type:"string",required:!0,label:"Email"}]}getInputPhoneNumber(){return[{name:"phoneNumber",type:"string",required:!0,label:"Phone Number"}]}canRemediate(){return Boolean(this.values.email||this.values.phoneNumber)}getNextStep(e,t){const n=super.getNextStep(e,t),o=t.currentAuthenticator.value;return Object.assign(Object.assign({},n),{authenticator:o})}getData(){return{stateHandle:this.values.stateHandle,email:this.values.email,phoneNumber:this.values.phoneNumber}}getValuesAfterProceed(){return Object.keys(this.values).filter(e=>!["email","phoneNumber"].includes(e)).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}Ft.remediationName="enrollment-channel-data";class Vt extends Lt{}Vt.remediationName="challenge-authenticator";class qt extends Ut{canRemediate(){return!!this.values.startPolling||"challenge-poll"===this.options.step}}qt.remediationName="challenge-poll";class Bt extends Lt{}Bt.remediationName="reset-authenticator";class $t extends ut{constructor(e,t={},n={}){super(e,t,n),this.authenticator=null,this.getCredentialsFromRemediation()&&(this.authenticator=this.authenticator=new Pt({}))}canRemediate(){if(this.authenticator&&!this.authenticator.canVerify(this.values))return!1;const e=this.getData().userProfile;return!!e&&this.remediation.value.find(({name:e})=>"userProfile"===e).form.value.reduce((t,n)=>(n.required&&(t=t&&!!e[n.name]),t),!0)}getCredentialsFromRemediation(){return this.remediation.value.find(({name:e})=>"credentials"===e)}mapUserProfile({form:{value:e}}){const t=e.map(({name:e})=>e).reduce((e,t)=>this.values[t]?Object.assign(Object.assign({},e),{[t]:this.values[t]}):e,{});if(0!==Object.keys(t).length)return t}mapCredentials(){const e=this.authenticator&&this.authenticator.mapCredentials(this.values);if(e)return e}getInputUserProfile(e){return[...e.form.value]}getInputCredentials(e){return[...e.form.value]}getErrorMessages(e){return e.value[0].form.value.reduce((e,t)=>(t.messages&&e.push(t.messages.value[0].message),e),[])}}$t.remediationName="enroll-profile";class Ht extends ut{constructor(){super(...arguments),this.map={identifier:["username"]}}canRemediate(){const{identifier:e}=this.getData();return!!e}mapCredentials(){const{credentials:e,password:t}=this.values;if(e||t)return e||{passcode:t}}getInputCredentials(e){return Object.assign(Object.assign({},e.form.value[0]),{name:"password",required:e.required})}}Ht.remediationName="identify";class zt extends ut{mapCredentials(){const{newPassword:e}=this.values;if(e)return{passcode:e}}getInputCredentials(e){const t="password"===this.getAuthenticator().type?"newPassword":"verificationCode";return Object.assign(Object.assign({},e.form.value[0]),{name:t})}}zt.remediationName="reenroll-authenticator";class Wt extends zt{}Wt.remediationName="reenroll-authenticator-warning";class Kt extends ut{canRemediate(){return!1}getNextStep(){const{name:e,type:t,idp:n,href:o}=this.remediation;return{name:e,type:t,idp:n,href:o}}}Kt.remediationName="redirect-idp";class Gt extends ut{findMatchedOption(e,t){let n;for(let o of e)if(n=t.find(({relatesTo:e})=>e.key&&e.key===o.key),n)break;return n}canRemediate(e){var t,n;const{authenticators:o,authenticator:i}=this.values,r=st(this.remediation),{options:a}=r;if(!o||!o.length)return!1;if(d(i)&&i.id)return!0;const s=this.findMatchedOption(o,a);if(s){const o=(null==e?void 0:e.currentAuthenticator)&&(null==e?void 0:e.currentAuthenticator.value.id)===(null===(t=s.relatesTo)||void 0===t?void 0:t.id),i=(null==e?void 0:e.currentAuthenticatorEnrollment)&&(null==e?void 0:e.currentAuthenticatorEnrollment.value.id)===(null===(n=s.relatesTo)||void 0===n?void 0:n.id);return!o&&!i}return!1}mapAuthenticator(e){const{authenticators:t,authenticator:n}=this.values;if(d(n)&&n.id)return this.selectedAuthenticator=n,n;const{options:o}=e,i=function(e,t){let n;for(let o of e)if(n=t.find(({relatesTo:e})=>e.key&&e.key===o.key),n)break;return n}(t,o);return this.selectedAuthenticator=i.relatesTo,this.selectedOption=i,{id:null==i?void 0:i.value.form.value.find(({name:e})=>"id"===e).value}}getInputAuthenticator(e){return{name:"authenticator",type:"string",options:e.options.map(({label:e,relatesTo:t})=>({label:e,value:t.key}))}}getValuesAfterProceed(){this.values=super.getValuesAfterProceed();const e=this.values.authenticators.filter(e=>!0!==ct(e,this.selectedAuthenticator));return Object.assign(Object.assign({},this.values),{authenticators:e})}}class Yt extends Gt{constructor(e,t={},n={}){var o;super(e,t,n);const i="recoverPassword"===this.options.flow;(null===(o=st(e).options)||void 0===o?void 0:o.some(({relatesTo:e})=>(null==e?void 0:e.key)===c.OKTA_PASSWORD))&&(i||this.values.password)&&(this.values.authenticators=[...this.values.authenticators||[],{key:c.OKTA_PASSWORD}])}}Yt.remediationName="select-authenticator-authenticate";class Jt extends Gt{}Jt.remediationName="select-authenticator-enroll";class Qt extends Gt{constructor(){super(...arguments),this.map={identifier:["username"]}}canRemediate(){return!!this.getData("identifier")&&super.canRemediate()}mapAuthenticator(e){var t,n,o;const i=super.mapAuthenticator(e),r=null===(t=this.selectedOption)||void 0===t?void 0:t.value.form.value.find(({name:e})=>"methodType"===e),a=this.values.methodType||(null==r?void 0:r.value)||(null===(o=null===(n=null==r?void 0:r.options)||void 0===n?void 0:n[0])||void 0===o?void 0:o.value);return a?Object.assign(Object.assign({},i),{methodType:a}):i}getInputUsername(){return{name:"username",type:"string"}}}Qt.remediationName="select-authenticator-unlock-account";class Xt extends ut{canRemediate(){return!0}}Xt.remediationName="select-enroll-profile";class Zt extends ut{constructor(e,t={}){super(e,t),this.authenticator=this.getAuthenticator(),this.formatAuthenticatorData()}formatAuthenticatorData(){if(this.getAuthenticatorData())this.values.authenticatorsData=this.values.authenticatorsData.map(e=>ct(this.authenticator,e)?this.mapAuthenticatorDataFromValues(e):e);else{const e=this.mapAuthenticatorDataFromValues();e&&this.values.authenticatorsData.push(e)}}getAuthenticatorData(){return this.values.authenticatorsData.find(e=>ct(this.authenticator,e))}canRemediate(){return this.values.authenticatorsData.some(e=>ct(this.authenticator,e))}mapAuthenticatorDataFromValues(e){let{methodType:t,authenticator:n}=this.values;!t&&d(n)&&(t=null==n?void 0:n.methodType);const{id:o,enrollmentId:i}=this.authenticator,r=Object.assign(Object.assign({id:o,enrollmentId:i},e&&e),t&&{methodType:t});return r.methodType?r:null}getAuthenticatorFromRemediation(){return this.remediation.value.find(({name:e})=>"authenticator"===e)}getValuesAfterProceed(){this.values=super.getValuesAfterProceed();const e=this.values.authenticatorsData.filter(e=>!0!==ct(this.authenticator,e));return Object.assign(Object.assign({},this.values),{authenticatorsData:e})}}class en extends Zt{mapAuthenticator(){return this.getAuthenticatorData()}getInputAuthenticator(){const e=this.getAuthenticatorFromRemediation(),t=e.form.value.find(({name:e})=>"methodType"===e);return t&&t.options?{name:"methodType",type:"string",required:!0,options:t.options}:[...e.form.value]}getValuesAfterProceed(){return this.values=super.getValuesAfterProceed(),Object.keys(this.values).filter(e=>"authenticator"!==e).reduce((e,t)=>
2Object.assign(Object.assign({},e),{[t]:this.values[t]}),{})}}en.remediationName="authenticator-verification-data";class tn extends Zt{mapAuthenticator(){const e=this.getAuthenticatorData();return{id:st(this.remediation).form.value.find(({name:e})=>"id"===e).value,methodType:e.methodType,phoneNumber:e.phoneNumber}}getInputAuthenticator(e){return[{name:"methodType",type:"string"},{name:"phoneNumber",label:"Phone Number",type:"string"}].map(t=>{const n=e.form.value.find(e=>e.name===t.name);return Object.assign(Object.assign({},n),t)})}mapAuthenticatorDataFromValues(e){e=super.mapAuthenticatorDataFromValues(e);const{phoneNumber:t}=this.values;if(e||t)return Object.assign(Object.assign({},e&&e),t&&{phoneNumber:t})}}tn.remediationName="authenticator-enrollment-data";class nn extends ut{canRemediate(){return!!this.values.skip||"skip"===this.options.step}}nn.remediationName="skip";const on={identify:Ht,"select-authenticator-authenticate":Yt,"select-authenticator-enroll":Jt,"authenticator-enrollment-data":tn,"authenticator-verification-data":en,"enroll-authenticator":Mt,"challenge-authenticator":Vt,"challenge-poll":qt,"reenroll-authenticator":zt,"reenroll-authenticator-warning":Wt,"enroll-poll":Ut,"select-enrollment-channel":jt,"enrollment-channel-data":Ft,"redirect-idp":Kt,skip:nn},rn={identify:Ht,"identify-recovery":Ht,"select-authenticator-authenticate":Yt,"select-authenticator-enroll":Jt,"challenge-authenticator":Vt,"authenticator-verification-data":en,"authenticator-enrollment-data":tn,"reset-authenticator":Bt,"reenroll-authenticator":zt,"reenroll-authenticator-warning":Wt,"enroll-poll":Ut},an={"select-enroll-profile":Xt,"enroll-profile":$t,"authenticator-enrollment-data":tn,"select-authenticator-enroll":Jt,"enroll-poll":Ut,"select-enrollment-channel":jt,"enrollment-channel-data":Ft,"enroll-authenticator":Mt,skip:nn},sn={identify:Ht,"select-authenticator-unlock-account":Qt,"select-authenticator-authenticate":Yt,"challenge-authenticator":Vt,"challenge-poll":qt,"authenticator-verification-data":en,"reenroll-authenticator-warning":Wt};function ln(e,t="default"){let n,o,i=!0;switch(t){case"register":case"signup":case"enrollProfile":n=an,i=!1;break;case"recoverPassword":case"resetPassword":n=rn,o=["currentAuthenticator-recover","currentAuthenticatorEnrollment-recover"],i=!1;break;case"unlockAccount":n=sn,i=!1,o=["unlock-account"];break;default:n=on}return{flow:t,remediators:n,actions:o,withCredentials:i}}async function cn(e,t){const n=ln(0,e.transactionManager.load().flow);return Tt(e,Object.assign(Object.assign(Object.assign({},t),n),{actions:["cancel"]}))}function un(e){var t=/\+/g,n=/([^&=]+)=?([^&]*)/g,o=e||"";"#"===o.charAt(0)&&"/"===o.charAt(1)&&(o=o.substring(2)),"#"!==o.charAt(0)&&"?"!==o.charAt(0)||(o=o.substring(1));for(var i,r={};i=n.exec(o);){var a=i[1],s=i[2];r[a]="id_token"===a||"access_token"===a||"code"===a?s:decodeURIComponent(s.replace(t," "))}return r}class pn extends w{constructor(e,t){super(`Enter the OTP code in the originating client: ${t}`),this.name="EmailVerifyCallbackError",this.state=e,this.otp=t}}function dn(e){return"EmailVerifyCallbackError"===e.name}function hn(e){return/(otp=)/i.test(e)&&/(state=)/i.test(e)}function fn(e){return un(e)}async function mn(e,t){if(hn(t)){const{state:n,otp:o}=fn(t);if(e.idx.canProceed({state:n}))return await e.idx.proceed({state:n,otp:o});throw new pn(n,o)}}function gn(e,t={}){return!(!Ue(e,t)&&!t.stateHandle)}async function yn(e,t={}){if(!gn(e,t))throw new N("Unable to proceed: saved transaction could not be loaded");let{flow:n,state:o}=t;if(!n){const t=Ue(e,{state:o});n=null==t?void 0:t.flow}return Tt(e,Object.assign(Object.assign({},t),{flow:n}))}async function vn(e,t={}){var n;const{withCredentials:o,exchangeCodeForTokens:i}=t;let r=await yn(e,{startPolling:!0,withCredentials:o,exchangeCodeForTokens:i});const a=Ue(e);let s=null===(n=null==a?void 0:a.remediations)||void 0===n?void 0:n.find(e=>e.includes("poll"));return(null==s?void 0:s.length)||f("No polling remediations available at the current IDX flow stage"),Number.isInteger(t.refresh)?new Promise(function(n,o){setTimeout(async function(){var t,i;try{const o=null===(i=null===(t=r.nextStep)||void 0===t?void 0:t.poll)||void 0===i?void 0:i.refresh;n(o?vn(e,{refresh:o}):r)}catch(e){o(e)}},t.refresh)}):r}async function bn(e,t={}){return e.transactionManager.clear(),Tt(e,Object.assign({exchangeCodeForTokens:!1},t))}async function wn(e,t={}){if(!Me(e)){const{enabledFeatures:n}=await bn(e,Object.assign(Object.assign({},t),{flow:"register",autoRemediate:!1}));if(!t.activationToken&&n&&!n.includes(u.REGISTRATION))throw new N("Registration is not supported based on your current org configuration.")}return Tt(e,Object.assign(Object.assign({},t),{flow:"register"}))}async function _n(e,t={}){const n=ln(0,"recoverPassword");return Tt(e,Object.assign(Object.assign({},t),n))}async function kn(e,t){const n=e.transactionManager.load();if(!n)throw new N("No transaction data was found in storage");const{codeVerifier:o,state:i}=n,{searchParams:r}=new URL(t),a=r.get("state"),s=r.get("interaction_code"),l=r.get("error");
2if(l)throw new ie(l,r.get("error_description"));if(a!==i)throw new N("State in redirect uri does not match with transaction state");if(!s)throw new N("Unable to parse interaction_code from the url");const{tokens:c}=await e.token.exchangeCodeForTokens({interactionCode:s,codeVerifier:o});e.tokenManager.setTokens(c)}async function xn(e,t={}){if(t.flow="unlockAccount",!Me(e)){const{enabledFeatures:n}=await bn(e,Object.assign(Object.assign({},t),{autoRemediate:!1}));if(n&&!n.includes(u.ACCOUNT_UNLOCK))throw new N("Self Service Account Unlock is not supported based on your current org configuration.")}return Tt(e,Object.assign({},t))}function Sn(e){return"OAuthError"===e.name&&"interaction_required"===e.errorCode}function Tn(e){return e.pkce||"code"===e.responseType||"query"===e.responseMode}function En(e){return Tn(e)&&"fragment"!==e.responseMode?window.location.search:window.location.hash}function Cn(e){if(!function(e,t){var n=t.options;return!(!e||!n.redirectUri)&&0===e.indexOf(n.redirectUri)}(window.location.href,e))return!1;var t,n=Tn(e.options),o=En(e.options);if(function(e){return/[?&#]error=/.test(e)||/[?&#]error_description/.test(e)}(o))return!0;if(n){var i=function(e){return/[?&#]code=/.test(e)}(o)||function(e){return/[?&#]interaction_code=/.test(e)}(o);return i}return t=window.location.hash,/[?&#](id|access)_token=/.test(t)}function On(e,t){if(!t){if(!Cn(e))return!1;t=En(e.options)}return/(error=interaction_required)/i.test(t)}function An(e){class t{constructor(...t){const n=new e(t.length&&t[0]||{});this.options=m(n),this.emitter=new Oe,this.features=i}}return t.features=i,t.constants=o,t.features=t.prototype.features=i,Object.assign(t,{constants:o}),t}function Pn(e,t){return class extends e{constructor(...e){super(...e);const{storageManager:n,cookies:o,storageUtil:i}=this.options;this.storageManager=new t(n,o,i)}clearStorage(){}}}class Nn{constructor(){this.environments=["okta-auth-js/7.14.2"],this.maybeAddNodeEnvironment()}addEnvironment(e){this.environments.push(e)}getHttpHeader(){return{"X-Okta-User-Agent-Extended":this.environments.join(" ")}}getVersion(){return"7.14.2"}maybeAddNodeEnvironment(){if(ce()||!process||!process.versions)return;const{node:e}=process.versions;this.environments.push(`nodejs/${e}`)}}function Rn(e,t,n){e.options.headers=e.options.headers||{},e.options.headers[t]=n}function In(e){return class extends e{constructor(...e){super(...e),this._oktaUserAgent=new Nn,this.http={setRequestHeader:Rn.bind(null,this)}}setHeaders(e){this.options.headers=Object.assign({},this.options.headers,e)}getIssuerOrigin(){return this.options.issuer.split("/oauth2/")[0]}webfinger(e){return Te(this,"/.well-known/webfinger"+A(e),{headers:{Accept:"application/jrd+json"}})}}}function Dn(e){return Ln(ae(e))}function Ln(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Mn(e){return e.replace(/-/g,"+").replace(/_/g,"/")}function Un(e){var t=Mn(e);switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new N("Not a valid Base64Url")}var n=re(t);try{return decodeURIComponent(escape(n))}catch(e){return n}}function jn(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Fn(e){return re(Mn(e))}function Vn(e){return Uint8Array.from(Fn(e),e=>e.charCodeAt(0))}function qn(e){return ae(new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),""))}function Bn(e){var t=(new TextEncoder).encode(e);return se.subtle.digest("SHA-256",t).then(function(e){var t=new Uint8Array(e).slice(0,16);return Dn(String.fromCharCode.apply(null,t))})}function $n(e,t){t=g(t);var n={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};return delete t.use,se.subtle.importKey("jwk",t,n,!0,["verify"]).then(function(t){var o=e.split("."),i=jn(o[0]+"."+o[1]),r=jn(Fn(o[2]));return se.subtle.verify(n,t,r,i)})}class Hn{constructor(e={quiet:!1}){this.queue=[],this.running=!1,this.options=e}push(e,t,...n){return new Promise((o,i)=>{this.queue.length>0&&!1!==this.options.quiet&&f("Async method is being called but another async method is already running. The new method will be delayed until the previous method completes."),this.queue.push({method:e,thisObject:t,args:n,resolve:o,reject:i}),this.run()})}run(){if(!this.running&&0!==this.queue.length){this.running=!0;var e,t=this.queue.shift(),n=t.method.apply(t.thisObject,t.args);(e=n)&&e.finally&&"function"==typeof e.finally?n.then(t.resolve,t.reject).finally(()=>{this.running=!1,this.run()}):(t.resolve(n),this.running=!1,this.run())}}}function zn(e){return("0"+e.toString(16)).substr(-2)}var Wn={DEFAULT_CODE_CHALLENGE_METHOD:te,generateVerifier:function(e){var t=e||"";return t.length<Z&&(t+=function(e){var t=new Uint8Array(Math.ceil(e/2));return se.getRandomValues(t),Array.from(t,zn).join("").slice(0,e)}(Z-t.length)),encodeURIComponent(t).slice(0,ee)},computeChallenge:function(e){var t=(new TextEncoder).encode(e);return se.subtle.digest("SHA-256",t).then(function(e){return Dn(String.fromCharCode.apply(null,new Uint8Array(e)))})}};function Kn(e){var t,n=e.split(".");try{t={header:JSON.parse(Un(n[0])),payload:JSON.parse(Un(n[1])),signature:n[2]}}catch(e){throw new N("Malformed token")}return t}function Gn(e){const{pkce:t,clientId:n,redirectUri:o,responseType:i,responseMode:r,scopes:a,acrValues:s,maxAge:l,state:c,ignoreSignature:u,dpop:p}=e.options,d=ce()?window.location.href:void 0;return m({pkce:t,clientId:n,redirectUri:o||d,responseType:i||["token","id_token"],responseMode:r,state:c||R(),nonce:T(64),scopes:a||["openid","email"],acrValues:s,maxAge:l,ignoreSignature:u,dpop:p})}const Yn="DPoPKeys";function Jn(e){return(it(e)||function(e){return e instanceof S}(e))&&"use_dpop_nonce"===e.errorCode}function Qn(e=32){return[...se.getRandomValues(new Uint8Array(e))].map(e=>e.toString(16)).join("")}async function Xn(e,...t){const n=await new Promise((e,t)=>
2{try{const n=window.indexedDB.open("OktaAuthJs",1);n.onerror=function(){t(n.error)},n.onupgradeneeded=function(){n.result.createObjectStore(Yn)},n.onsuccess=function(){const o=n.result,i=o.transaction(Yn,"readwrite");i.onerror=function(){t(i.error)};const r=i.objectStore(Yn);e(r),i.oncomplete=function(){o.close()}}}catch(e){t(e)}});return new Promise((o,i)=>{const r=n[e](...t);r.onsuccess=function(){o(r)},r.onerror=function(){i(r.error)}})}async function Zn(e){if(e){const t=await Xn("get",e);if(t.result)return t.result}throw new N("Unable to locate dpop key pair required for refresh"+(e?` (${e})`:""))}async function eo(e){await Xn("delete",e)}async function to(e,t){var n;let o=!1;const{accessToken:i,refreshToken:r}=t;"access"===e&&i&&"DPoP"===i.tokenType&&!r&&(o=!0),"refresh"===e&&r&&!i&&(o=!0);const a=null!==(n=null==i?void 0:i.dpopPairId)&&void 0!==n?n:null==r?void 0:r.dpopPairId;o&&a&&await eo(a)}async function no({keyPair:e,url:t,method:n,nonce:o,accessToken:i}){const{kty:r,crv:a,e:s,n:l,x:c,y:u}=await se.subtle.exportKey("jwk",e.publicKey),p={alg:"RS256",typ:"dpop+jwt",jwk:{kty:r,crv:a,e:s,n:l,x:c,y:u}},d={htm:n,htu:t,iat:Math.floor(Date.now()/1e3),jti:Qn()};return o&&(d.nonce=o),i&&(d.ath=await async function(e){const t=(new TextEncoder).encode(e),n=await se.subtle.digest("SHA-256",t);return ae(String.fromCharCode.apply(null,new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}(i)),async function(e,t,n){const o=Dn(JSON.stringify(e)),i=Dn(JSON.stringify(t));return`${o}.${i}.${Ln(qn(await se.subtle.sign({name:n.algorithm.name},n,jn(`${o}.${i}`))))}`}(p,d,e.privateKey)}async function oo(e,{url:t,data:n,nonce:o,dpopKeyPair:i}){var r,a;const s="POST",l={"Content-Type":"application/x-www-form-urlencoded"};if(e.options.dpop){if(!i)throw new N("DPoP is configured but no key pair was provided");const e=await async function({keyPair:e,url:t,method:n,nonce:o}){const i={keyPair:e,url:t,method:n};return o&&(i.nonce=o),no(i)}({url:t,method:s,nonce:o,keyPair:i});l.DPoP=e}try{return await Se(e,{url:t,method:s,args:n,headers:l})}catch(s){if(Jn(s)&&!o){const o=null===(r=s.resp)||void 0===r?void 0:r.headers["dpop-nonce"];if(!o)throw new oe({errorSummary:"No `dpop-nonce` header found when required"},null!==(a=s.resp)&&void 0!==a?a:void 0);return oo(e,{url:t,data:n,dpopKeyPair:i,nonce:o})}throw s}}function io(e,t){return Te(e,(t||e.options.issuer)+"/.well-known/openid-configuration",{cacheResponse:!0})}async function ro(e,t,n){if(!t||!t.idToken)throw new N("Only idTokens may be verified");const o=Kn(t.idToken),i=(null==n?void 0:n.issuer)||e.options.issuer,{issuer:r}=await io(e,i),a=Object.assign({clientId:e.options.clientId,ignoreSignature:e.options.ignoreSignature},n,{issuer:r});if(function(e,t,n){const o=n.clientId,i=n.issuer,r=n.nonce,a=n.acrValues;if(!t||!i||!o)throw new N("The jwt, iss, and aud arguments are all required");if(r&&t.nonce!==r)throw new N("OAuth flow response nonce doesn't match request nonce");const s=Math.floor(Date.now()/1e3);if(t.iss!==i)throw new N("The issuer ["+t.iss+"] does not match ["+i+"]");if(Array.isArray(t.aud)&&t.aud.indexOf(o)<0||!Array.isArray(t.aud)&&t.aud!==o)throw new N("The audience ["+t.aud+"] does not match ["+o+"]");if(a&&t.acr!==a)throw new N("The acr ["+t.acr+"] does not match acr_values ["+a+"]");if(t.iat>t.exp)throw new N("The JWT expired before it was issued");if(!e.options.ignoreLifetime){if(s-e.options.maxClockSkew>t.exp)throw new N("The JWT expired and is no longer valid");if(t.iat>s+e.options.maxClockSkew)throw new N("The JWT was issued in the future")}}(e,o.payload,a),1==a.ignoreSignature||!e.features.isTokenVerifySupported())return t;const s=await function(e,t,n){var o=e.storageManager.getHttpCache(e.options.cookies);return io(e,t).then(function(t){var i=t.jwks_uri,r=o.getStorage()[i];if(r&&Date.now()/1e3<r.expiresAt){var a=v(r.response.keys,{kid:n});if(a)return a}return o.clearStorage(i),Te(e,i,{cacheResponse:!0}).then(function(e){var t=v(e.keys,{kid:n});if(t)return t;throw new N("The key id, "+n+", was not found in the server's keys")})})}(e,t.issuer,o.header.kid);if(!await $n(t.idToken,s))throw new N("The token signature is not val
2id");if(n&&n.accessToken&&t.claims.at_hash&&await Bn(n.accessToken)!==t.claims.at_hash)throw new N("Token hash verification failed");return t}async function ao(e,t,n,o){var i,r;if(!1!==e.options.pkce&&(n.code||n.interaction_code))return e.token.exchangeCodeForTokens(Object.assign({},t,{authorizationCode:n.code,interactionCode:n.interaction_code}),o);t=t||Gn(e),o=o||L(e,t);let a,s=t.responseType||[];Array.isArray(s)||"none"===s||(s=[s]),a=n.scope?n.scope.split(" "):g(t.scopes);const l=t.clientId||e.options.clientId;if(function(e,t){if(e.error&&e.error_description)throw new ie(e.error,e.error_description);if(e.state!==t.state)throw new N("OAuth flow response state doesn't match request state")}(n,t),t.dpop){const{allowBearerTokens:t}=null!==(r=null===(i=e.options)||void 0===i?void 0:i.dpopOptions)&&void 0!==r?r:{allowBearerTokens:!1};if(!t&&"DPoP"!==n.token_type)throw new N('Unable to parse OAuth flow response: DPoP was configured but "token_type" was not DPoP')}const c={},u=n.expires_in,p=n.token_type,d=n.access_token,h=n.id_token,f=n.refresh_token,m=Math.floor(Date.now()/1e3);if(d){const n=e.token.decode(d);c.accessToken={accessToken:d,claims:n.payload,expiresAt:Number(u)+m,tokenType:p,scopes:a,authorizeUrl:o.authorizeUrl,userinfoUrl:o.userinfoUrl},t.dpopPairId&&(c.accessToken.dpopPairId=t.dpopPairId),t.extraParams&&(c.accessToken.extraParams=t.extraParams)}if(f&&(c.refreshToken={refreshToken:f,expiresAt:Number(u)+m,scopes:a,tokenUrl:o.tokenUrl,authorizeUrl:o.authorizeUrl,issuer:o.issuer},t.dpopPairId&&(c.refreshToken.dpopPairId=t.dpopPairId),t.extraParams&&(c.refreshToken.extraParams=t.extraParams)),h){const n=e.token.decode(h),i={idToken:h,claims:n.payload,expiresAt:n.payload.exp-n.payload.iat+m,scopes:a,authorizeUrl:o.authorizeUrl,issuer:o.issuer,clientId:l};t.extraParams&&(i.extraParams=t.extraParams);const r={clientId:l,issuer:o.issuer,nonce:t.nonce,accessToken:d,acrValues:t.acrValues};void 0!==t.ignoreSignature&&(r.ignoreSignature=t.ignoreSignature),await ro(e,i,r),c.idToken=i}if(-1!==s.indexOf("token")&&!c.accessToken)throw new N('Unable to parse OAuth flow response: response type "token" was requested but "access_token" was not returned.');if(-1!==s.indexOf("id_token")&&!c.idToken)throw new N('Unable to parse OAuth flow response: response type "id_token" was requested but "id_token" was not returned.');return{tokens:c,state:n.state,code:n.code,responseType:s}}async function so(e,t,n){n=n||L(e,t),t=Object.assign({},Gn(e),g(t));const{authorizationCode:o,interactionCode:i,codeVerifier:r,clientId:a,redirectUri:s,scopes:l,ignoreSignature:c,state:u,acrValues:p,dpop:d,dpopPairId:h,extraParams:f}=t,y={clientId:a,redirectUri:s,authorizationCode:o,interactionCode:i,codeVerifier:r,dpop:d},v=["token"];-1!==l.indexOf("openid")&&v.push("id_token");const b={clientId:a,redirectUri:s,scopes:l,responseType:v,ignoreSignature:c,acrValues:p,extraParams:f};try{if(d)if(h){const e=await Zn(h);y.dpopKeyPair=e,b.dpop=d,b.dpopPairId=h}else{const{keyPair:e,keyPairId:t}=await async function(){const e=Qn(4),t=await async function(){const e={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};return se.subtle.generateKey(e,!1,["sign","verify"])}();return await async function(e,t){return await Xn("add",t,e),t}(e,t),{keyPair:t,keyPairId:e}}();y.dpopKeyPair=e,b.dpop=d,b.dpopPairId=t}const t=await async function(e,t,n){!function(e){if(!e.clientId)throw new N("A clientId must be specified in the OktaAuth constructor to get a token");if(!e.redirectUri)throw new N("The redirectUri passed to /authorize must also be passed to /token");if(!e.authorizationCode&&!e.interactionCode)throw new N("An authorization code (returned from /authorize) must be passed to /token");if(!e.codeVerifier)throw new N('The "codeVerifier" (generated and saved by your app) must be passed to /token')}(t);var o=function(e,t){var n=m({client_id:t.clientId,redirect_uri:t.redirectUri,grant_type:t.interactionCode?"interaction_code":"authorization_code",code_verifier:t.codeVerifier});t.interactionCode?n.interaction_code=t.interactionCode:t.authorizationCode&&(n.code=t.authorizationCode);const{clientSecret:o}=e.options;return o&&(n.client_secret=o),A(n).slice(1)}(e,t);return oo(e,{url:n.tokenUrl,data:o,dpopKeyPair:null==t?void 0:t.dpopKeyPair})}(e,y,n),i=await ao(e,b,t,n);return i.code=o,i.state=u,i}finally{e.transactionManager.clear()}}const lo=12e4;function co(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)}function uo(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)}function po(e,t){var n=t.popupTitle||"External Identity Provider User Authentication";return window.open(e,n,"toolbar=no, scrollbars=yes, resizable=yes, top=100, left=500, width=600, height=600")}
2function ho(e,t,n){var o,i;return new Promise(function(r,a){o=function(t){if(t.data&&t.data.state===n)return t.origin!==e.getIssuerOrigin()?a(new N("The request does not match client configuration")):void r(t.data)},co(window,"message",o),i=setTimeout(function(){a(new N("OAuth flow timed out"))},t||lo)}).finally(function(){clearTimeout(i),uo(window,"message",o)})}async function fo(e,t={}){const n=Gn(e);if((t=Object.assign(Object.assign({},n),t)).dpop&&!e.features.isDPoPSupported())throw new N("DPoP has been configured, but is not supported by browser");return!1===t.pkce?t:async function(e,t){let{codeVerifier:n,codeChallenge:o,codeChallengeMethod:i}=t;return o=o||e.options.codeChallenge,o||(function(e){if(!e.features.isPKCESupported()){var t="PKCE requires a modern browser with encryption support running in a secure context.";throw e.features.isHTTPS()||(t+="\nThe current page is not being served with HTTPS protocol. PKCE requires secure HTTPS protocol."),e.features.hasTextEncoder()||(t+='\n"TextEncoder" is not defined. To use PKCE, you may need to include a polyfill/shim for this browser.'),new N(t)}}(e),n=n||Wn.generateVerifier(),o=await Wn.computeChallenge(n)),i=await async function(e,t){if(t=t||e.options.codeChallengeMethod||te,-1===((await io(e)).code_challenge_methods_supported||[]).indexOf(t))throw new N("Invalid code_challenge_method");return t}(e,i),Object.assign(Object.assign({},t),{responseType:"code",codeVerifier:n,codeChallenge:o,codeChallengeMethod:i})}(e,t)}function mo(e){var t=function(e){if(!e.clientId)throw new N("A clientId must be specified in the OktaAuth constructor to get a token");if(_(e.responseType)&&-1!==e.responseType.indexOf(" "))throw new N("Multiple OAuth responseTypes must be defined as an array");var t={client_id:e.clientId,code_challenge:e.codeChallenge,code_challenge_method:e.codeChallengeMethod,display:e.display,idp:e.idp,idp_scope:e.idpScope,login_hint:e.loginHint,max_age:e.maxAge,nonce:e.nonce,prompt:e.prompt,redirect_uri:e.redirectUri,response_mode:e.responseMode,response_type:e.responseType,sessionToken:e.sessionToken,state:e.state,acr_values:e.acrValues,enroll_amr_values:e.enrollAmrValues};if(t=m(t),["idp_scope","response_type","enroll_amr_values"].forEach(function(e){Array.isArray(t[e])&&(t[e]=t[e].join(" "))}),-1!==e.responseType.indexOf("id_token")&&-1===e.scopes.indexOf("openid"))throw new N("openid scope must be specified in the scopes argument when requesting an id_token");return e.scopes&&(t.scope=e.scopes.join(" ")),t}(e);return A(Object.assign(Object.assign({},t),e.extraParams&&Object.assign({},e.extraParams)))}function go(e,t){if(arguments.length>2)return Promise.reject(new N('As of version 3.0, "getToken" takes only a single set of options'));const n=(t=t||{}).popupWindow;return t.popupWindow=void 0,fo(e,t).then(function(o){var i,r,a,s;switch(t.sessionToken?Object.assign(o,{prompt:"none",responseMode:"okta_post_message",display:null}):t.idp&&Object.assign(o,{display:"popup"}),r=L(e,o),i=(t.codeVerifier?r.tokenUrl:r.authorizeUrl)+mo(o),o.sessionToken||null===o.display?"IFRAME":"popup"===o.display?t.idpPopup?"IDP_POPUP":"POPUP":"IMPLICIT"){case"IFRAME":var l=ho(e,t.timeout,o.state),c=(a=i,(s=document.createElement("iframe")).style.display="none",s.src=a,document.body.appendChild(s));return l.then(function(t){return ao(e,o,t,r)}).finally(function(){var e;document.body.contains(c)&&(null===(e=c.parentElement)||void 0===e||e.removeChild(c))});case"POPUP":var u;if("okta_post_message"===o.responseMode){if(!e.features.isPopupPostMessageSupported())throw new N("This browser doesn't have full postMessage support");u=ho(e,t.timeout,o.state)}return n&&n.location.assign(i),new Promise(function(e,t){var o=setInterval(function(){n&&!n.closed||(clearInterval(o),t(new N("Unable to parse OAuth flow response")))},100);u.then(function(t){clearInterval(o),e(t)}).catch(function(e){clearInterval(o),t(e)})}).then(function(t){return ao(e,o,t,r)}).finally(function(){n&&!n.closed&&n.close()});case"IDP_POPUP":var p=function(e,t,n,o){let i;return new Promise((e,r)=>{n.onmessage=t=>{if(t.isTrusted&&t.data)return"object"==typeof t.data&&o===t.data.state?e(Object.assign({},t.data)):void r(new N("Unable to complete auth code exchange"))},i=setTimeout(function(){r(new N("OAuth flow timed out"))},t||lo)}).finally(()=>{clearTimeout(i),n.close()})}(0,t.timeout,t.channel,o.state);if(!n)throw new N("Unable to open popup window");return n.location.assign(i),p.then(function(t){return ao(e,o,t,r)});default:throw new N("The full page redirect flow is not supported")}})}function yo(e,t){return arguments.length>2?Promise.reject(new N('As of version 3.0, "getWithoutPrompt" takes only a single set of options')):(t=g(t)||{},Object.assign(t,{prompt:"none",responseMode:"okta_post_message",display:null}),go(e,t))}function vo(e,t){if(arguments.length>2)return Promise.reject(new N('As of version 3.0, "getWithPopup" takes only a single set of options'));const{initialPath:n}
2=t,o=He(t,["initialPath"]),i=po(null!=n?n:"/",o);return t=g(o)||{},Object.assign(o,{display:"popup",responseMode:"okta_post_message",popupWindow:i}),go(e,o)}function bo(e,t){try{if(!BroadcastChannel)throw new N("Modern browser with `BroadcastChannel` support is required to use this method");if(!t.redirectUri)throw new N("`redirectUri` is a required param for `getWithIDPPopup`");t.state||(t.state=R());const n=po("/",t),o=new BroadcastChannel(`popup-callback:${t.state}`);let i;t=g(t)||{},Object.assign(t,{display:"popup",responseMode:"query",popupWindow:n,idpPopup:!0,channel:o});return{promise:new Promise((n,o)=>(i=o,go(e,t).then(e=>n(e)).catch(e=>o(e)))),cancel:()=>{o.close(),i(new N("Popup flow canceled"))}}}catch(e){return{promise:Promise.reject(e),cancel:()=>{}}}}async function wo(e,t){if(arguments.length>2)return Promise.reject(new N('As of version 3.0, "getWithRedirect" takes only a single set of options'));t=g(t)||{};const n=await fo(e,t),o=M(e,n),i=o.urls.authorizeUrl+mo(n);e.transactionManager.save(o),e.options.setLocation?e.options.setLocation(i):window.location.assign(i)}function _o(e){var t=e.options.pkce?"query":"fragment";return e.options.responseMode||t}function ko(e,t){_(t=t||{})&&(t={url:t});var n,o=t.url,i=t.responseMode||_o(e),r=e.token.parseFromUrl._getLocation();if(!(n="query"===i?o?o.substring(o.indexOf("?")):r.search:o?o.substring(o.indexOf("#")):r.hash))throw new N("Unable to parse a token from the url");return un(n)}async function xo(e,t){_(t=t||{})&&(t={url:t});const n=ko(e,t),o=n.state,i=e.transactionManager.load({state:o});if(!i){if(e.options.pkce)throw new N("Could not load PKCE codeVerifier from storage. This may indicate the auth flow has already completed or multiple auth flows are executing concurrently.",void 0);throw new N("Unable to retrieve OAuth redirect params from storage")}const r=i.urls;return delete i.urls,t.url||function(e,t){"query"===(t.responseMode||_o(e))?function(e){var t=e.token.parseFromUrl._getHistory(),n=e.token.parseFromUrl._getDocument(),o=e.token.parseFromUrl._getLocation();t&&t.replaceState?t.replaceState(null,n.title,o.pathname+o.hash):o.search=""}(e):function(e){var t=e.token.parseFromUrl._getHistory(),n=e.token.parseFromUrl._getDocument(),o=e.token.parseFromUrl._getLocation();t&&t.replaceState?t.replaceState(null,n.title,o.pathname+o.search):o.hash=""}(e)}(e,t),ao(e,i,n,r).catch(t=>{throw Sn(t)||e.transactionManager.clear({state:o}),t}).then(t=>(e.transactionManager.clear({state:o}),t))}async function So(e,t,n){const{clientId:o,dpop:i}=e.options;if(!o)throw new N("A clientId must be specified in the OktaAuth constructor to renew tokens");try{const r=Object.assign({},t,{clientId:o});n.extraParams&&(r.extraParams=n.extraParams);const a=Object.assign({},r);if(i){const e=await Zn(null==n?void 0:n.dpopPairId);a.dpopKeyPair=e,r.dpop=i,r.dpopPairId=n.dpopPairId}const s=await async function(e,t,n){const o=Object.entries({client_id:t.clientId,grant_type:"refresh_token",scope:n.scopes.join(" "),refresh_token:n.refreshToken}).map(function([e,t]){return e+"="+encodeURIComponent(t)}).join("&");let i=n.tokenUrl;return t.extraParams&&Object.keys(t.extraParams).length>=1&&(i+=A(t.extraParams)),oo(e,{url:i,data:o,dpopKeyPair:null==t?void 0:t.dpopKeyPair})}(e,a,n),l=L(e,t),{tokens:c}=await ao(e,r,s,l),{refreshToken:u}=c;return u&&!function(e,t){return e.refreshToken===t.refreshToken}(u,n)&&e.tokenManager.updateRefreshToken(u),c}catch(t){throw it(r=t)&&"invalid_grant"===r.errorCode&&"The refresh token is invalid or expired."===r.errorSummary&&e.tokenManager.removeRefreshToken(),t}var r}function To(){throw new N("Renew must be passed a token with an array of scopes and an accessToken or idToken")}function Eo(e,t){return Ie(e)?t.idToken:Re(e)?t.accessToken:void To()}async function Co(e,t){Ie(t)||Re(t)||To();let n=e.tokenManager.getTokensSync();if(n.refreshToken)return n=await So(e,{scopes:t.scopes},n.refreshToken),Eo(t,n);var o;o=e.options.pkce?"code":Re(t)?"token":"id_token";const{scopes:i,authorizeUrl:r,userinfoUrl:a,issuer:s,dpopPairId:l,extraParams:c}=t;return yo(e,{responseType:o,scopes:i,authorizeUrl:r,userinfoUrl:a,issuer:s,dpopPairId:l,extraParams:c}).then(function(e){return Eo(t,e.tokens)})}async function Oo(e,t){var n;const o=null!==(n=null==t?void 0:t.tokens)&&void 0!==n?n:e.tokenManager.getTokensSync();if(o.refreshToken)return So(e,t||{},o.refreshToken);if(!o.accessToken&&!o.idToken)throw new N("renewTokens() was called but there is no existing token");const i=o.accessToken||{},r=o.idToken||{},a=i.scopes||r.scopes;
2if(!a)throw new N("renewTokens: invalid tokens: could not read scopes");const s=i.authorizeUrl||r.authorizeUrl;if(!s)throw new N("renewTokens: invalid tokens: could not read authorizeUrl");const l=i.userinfoUrl||e.options.userinfoUrl,c=r.issuer||e.options.issuer,u=null==i?void 0:i.dpopPairId,p=(null==i?void 0:i.extraParams)||(null==r?void 0:r.extraParams);if(t=Object.assign({scopes:a,authorizeUrl:s,userinfoUrl:l,issuer:c,dpopPairId:u,extraParams:p},t),e.options.pkce)t.responseType="code";else{const{responseType:n}=Gn(e);t.responseType=n}return yo(e,t).then(e=>e.tokens)}async function Ao(e,t){let n="",o="";if(t&&(n=t.accessToken,o=t.refreshToken),!n&&!o)throw new N("A valid access or refresh token object is required");var i=e.options.clientId,r=e.options.clientSecret;if(!i)throw new N("A clientId must be specified in the OktaAuth constructor to revoke a token");return Ee(e,L(e).revokeUrl,A({token_type_hint:o?"refresh_token":"access_token",token:o||n}).slice(1),{headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic "+ae(r?`${i}:${r}`:i)}})}const Po={accessToken:"access_token",idToken:"id_token",refreshToken:"refresh_token"};async function No(e,t,n){var o;let i,r=e.options.clientId,a=e.options.clientSecret;if(n||(n=e.tokenManager.getTokens()[t]),!n)throw new N(`unable to find ${t} in storage or fn params`);if(i=t!==Ce.ACCESS?null==n?void 0:n.issuer:null===(o=null==n?void 0:n.claims)||void 0===o?void 0:o.iss,i=i||e.options.issuer,!r)throw new N("A clientId must be specified in the OktaAuth constructor to introspect a token");if(!i)throw new N("Unable to find issuer");const{introspection_endpoint:s}=await io(e,i),l=ae(a?`${r}:${a}`:r);return Ee(e,s,A({token_type_hint:Po[t],token:n[t]}).slice(1),{headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic "+l}})}function Ro(e,t){const n=function(e,t){return function(e){if(!(e=Object.assign(Object.assign({},e),{responseType:"none",prompt:"enroll_authenticator",maxAge:0})).enrollAmrValues)throw new N("enroll_amr_values must be specified");if(!e.acrValues)throw new N("acr_values must be specified");return delete e.scopes,delete e.nonce,e}(Object.assign(Object.assign({},function(e){const{clientId:t,redirectUri:n,responseMode:o,state:i}=e.options,r=ce()?window.location.href:void 0;return m({clientId:t,redirectUri:n||r,responseMode:o,state:i||R(),responseType:"none",prompt:"enroll_authenticator"})}(e)),t))}(e,t=g(t)||{}),o=function(e,t){return{issuer:e.options.issuer,urls:L(e,t),clientId:t.clientId,redirectUri:t.redirectUri,responseType:t.responseType,responseMode:t.responseMode,state:t.state,acrValues:t.acrValues,enrollAmrValues:t.enrollAmrValues}}(e,n),i=o.urls.authorizeUrl+mo(n);e.transactionManager.save(o),e.options.setLocation?e.options.setLocation(i):window.location.assign(i)}function Io(e,t){const n=e=>Hn.prototype.push.bind(t,e,null),o=n(wo.bind(null,e)),i=n(xo.bind(null,e)),r=Object.assign(i,{_getHistory:function(){return window.history},_getLocation:function(){return window.location},_getDocument:function(){return window.document}}),a={prepareTokenParams:fo.bind(null,e),exchangeCodeForTokens:so.bind(null,e),getWithoutPrompt:yo.bind(null,e),getWithPopup:vo.bind(null,e),getWithIDPPopup:bo.bind(null,e),getWithRedirect:o,parseFromUrl:r,decode:Kn,revoke:Ao.bind(null,e),renew:Co.bind(null,e),renewTokensWithRefresh:So.bind(null,e),renewTokens:Oo.bind(null,e),getUserInfo:(t,n)=>async function(e,t,n){if(t||(t=(await e.tokenManager.getTokens()).accessToken),n||(n=(await e.tokenManager.getTokens()).idToken),!t||!Re(t))return Promise.reject(new N("getUserInfo requires an access token object"));if(!n||!Ie(n))return Promise.reject(new N("getUserInfo requires an ID token object"));const o={url:t.userinfoUrl,method:"GET",accessToken:t.accessToken};if(e.options.dpop){const n=await e.getDPoPAuthorizationHeaders(Object.assign(Object.assign({},o),{accessToken:t}));o.headers=n,delete o.accessToken}return Se(e,o).then(e=>e.sub===n.claims.sub?e:Promise.reject(new N("getUserInfo request was rejected due to token mismatch"))).catch(function(t){var n;if(t instanceof S&&!e.options.dpop){const{error:e,errorDescription:n}=t;throw new ie(e,n)}if(!e.options.dpop){let e=t;if(t instanceof oe&&(null===(n=null==t?void 0:t.meta)||void 0===n?void 0:n.wwwAuthHeader)&&(e=S.parseHeader(t.meta.wwwAuthHeader)),e instanceof S){const{error:t,errorDescription:n}=e;throw new ie(t,n)}}throw t})}
2(e,t,n),verify:ro.bind(null,e),isLoginRedirect:Cn.bind(null,e),introspect:No.bind(null,e)};return["getWithoutPrompt","getWithPopup","revoke","renew","renewTokensWithRefresh","renewTokens"].forEach(e=>{a[e]=n(a[e])}),a}function Do(e,t){if(!Ie(e)&&!Re(e)&&!De(e))throw new N("Token must be an Object with scopes, expiresAt, and one of: an idToken, accessToken, or refreshToken property");if("accessToken"===t&&!Re(e))throw new N("invalid accessToken");if("idToken"===t&&!Ie(e))throw new N("invalid idToken");if("refreshToken"===t&&!De(e))throw new N("invalid refreshToken")}class Lo{constructor(e){this.localOffset=parseInt(e||0)}static create(){return new Lo(0)}now(){return(Date.now()+this.localOffset)/1e3}}const Mo="expired",Uo="renewed",jo="added",Fo="removed",Vo="set_storage",qo={autoRenew:!0,autoRemove:!0,syncStorage:!0,clearPendingRemoveTokens:!0,storage:void 0,expireEarlySeconds:30,storageKey:B};class Bo{constructor(e,t={}){if(this.sdk=e,this.emitter=e.emitter,!this.emitter)throw new N("Emitter should be initialized before TokenManager");t=Object.assign({},qo,m(t)),be()||(t.expireEarlySeconds=qo.expireEarlySeconds),this.options=t;const n=m({storageKey:t.storageKey,secure:t.secure});"object"==typeof t.storage?n.storageProvider=t.storage:t.storage&&(n.storageType=t.storage),this.storage=e.storageManager.getTokenStorage(Object.assign(Object.assign({},n),{useSeparateCookies:!0})),this.clock=Lo.create(),this.state={expireTimeouts:{},renewPromise:null}}on(e,t,n){n?this.emitter.on(e,t,n):this.emitter.on(e,t)}off(e,t){t?this.emitter.off(e,t):this.emitter.off(e)}start(){this.options.clearPendingRemoveTokens&&this.clearPendingRemoveTokens(),this.setExpireEventTimeoutAll(),this.state.started=!0}stop(){this.clearExpireEventTimeoutAll(),this.state.started=!1}isStarted(){return!!this.state.started}getOptions(){return g(this.options)}getExpireTime(e){const t=this.options.expireEarlySeconds||0;return e.expiresAt-t}hasExpired(e){return this.getExpireTime(e)<=this.clock.now()}emitExpired(e,t){this.emitter.emit(Mo,e,t)}emitRenewed(e,t,n){this.emitter.emit(Uo,e,t,n)}emitAdded(e,t){this.emitter.emit(jo,e,t)}emitRemoved(e,t){this.emitter.emit(Fo,e,t)}emitError(e){this.emitter.emit("error",e)}clearExpireEventTimeout(e){clearTimeout(this.state.expireTimeouts[e]),delete this.state.expireTimeouts[e],this.state.renewPromise=null}clearExpireEventTimeoutAll(){var e=this.state.expireTimeouts;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.clearExpireEventTimeout(t)}setExpireEventTimeout(e,t){if(!De(t)){var n=this.getExpireTime(t),o=1e3*Math.max(n-this.clock.now(),0);this.clearExpireEventTimeout(e);var i=setTimeout(()=>{this.emitExpired(e,t)},o);this.state.expireTimeouts[e]=i}}setExpireEventTimeoutAll(){var e=this.storage.getStorage();for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];this.setExpireEventTimeout(t,n)}}resetExpireEventTimeoutAll(){this.clearExpireEventTimeoutAll(),this.setExpireEventTimeoutAll()}add(e,t){var n=this.storage.getStorage();Do(t),n[e]=t,this.storage.setStorage(n),this.emitSetStorageEvent(),this.emitAdded(e,t),this.setExpireEventTimeout(e,t)}getSync(e){return this.storage.getStorage()[e]}async get(e){return this.getSync(e)}getTokensSync(){const e={},t=this.storage.getStorage();return Object.keys(t).forEach(n=>{const o=t[n];Re(o)?e.accessToken=o:Ie(o)?e.idToken=o:De(o)&&(e.refreshToken=o)}),e}async getTokens(){return this.getTokensSync()}getStorageKeyByType(e){const t=this.storage.getStorage();return Object.keys(t).filter(n=>{const o=t[n];return Re(o)&&"accessToken"===e||Ie(o)&&"idToken"===e||De(o)&&"refreshToken"===e})[0]}getTokenType(e){if(Re(e))return"accessToken";if(Ie(e))return"idToken";if(De(e))return"refreshToken";throw new N("Unknown token type")}emitSetStorageEvent(){if(ue()){const e=this.storage.getStorage();this.emitter.emit(Vo,e)}}getStorage(){return this.storage}setTokens(e,t,n,o){const i=(e,i)=>{const r=this.getTokenType(i);"accessToken"===r?t&&t(e,i):"idToken"===r?n&&n(e,i):"refreshToken"===r&&o&&o(e,i)},r=(e,t)=>{this.emitAdded(e,t),this.setExpireEventTimeout(e,t),i(e,t)},a=(e,t,n)=>{this.emitRenewed(e,t,n),this.clearExpireEventTimeout(e),this.setExpireEventTimeout(e,t),i(e,t)},s=(e,t)=>{this.clearExpireEventTimeout(e),this.emitRemoved(e,t),i(e,t)},l=["idToken","accessToken","refreshToken"],c=this.getTokensSync();l.forEach(t=>{const n=e[t];n&&Do(n,t)});const u=l.reduce((t,n)=>{const o=e[n];
2return o&&(t[this.getStorageKeyByType(n)||n]=o),t},{});this.storage.setStorage(u),this.emitSetStorageEvent(),l.forEach(t=>{const n=e[t],o=c[t],i=this.getStorageKeyByType(t)||t;n&&o?(s(i,o),r(i,n),a(i,n,o)):n?r(i,n):o&&s(i,o)})}remove(e){this.clearExpireEventTimeout(e);var t=this.storage.getStorage(),n=t[e];delete t[e],this.storage.setStorage(t),this.emitSetStorageEvent(),this.emitRemoved(e,n)}async renewToken(e){var t;return null===(t=this.sdk.token)||void 0===t?void 0:t.renew(e)}validateToken(e){return Do(e)}renew(e){if(this.state.renewPromise)return this.state.renewPromise;try{var t=this.getSync(e);let n=void 0!==t;if(!t&&"accessToken"===e){const e=this.getStorageKeyByType("refreshToken");n=void 0!==this.getSync(e)}if(!n)throw new N("The tokenManager has no token for the key: "+e)}catch(e){return this.emitError(e),Promise.reject(e)}return this.clearExpireEventTimeout(e),this.state.renewPromise=this.sdk.token.renewTokens().then(n=>{if(this.setTokens(n),!t&&"accessToken"===e){const t=n.accessToken;return this.emitRenewed(e,t,null),t}return n[this.getTokenType(t)]}).catch(t=>{throw this.remove(e),t.tokenKey=e,this.emitError(t),t}).finally(()=>{this.state.renewPromise=null})}clear(){const e=this.getTokensSync();this.clearExpireEventTimeoutAll(),this.storage.clearStorage(),this.emitSetStorageEvent(),Object.keys(e).forEach(t=>{this.emitRemoved(t,e[t])})}clearPendingRemoveTokens(){const e=this.storage.getStorage(),t={};Object.keys(e).forEach(n=>{e[n].pendingRemove&&(t[n]=e[n],delete e[n])}),this.storage.setStorage(e),this.emitSetStorageEvent(),Object.keys(t).forEach(e=>{this.clearExpireEventTimeout(e),this.emitRemoved(e,t[e])})}updateRefreshToken(e){const t=this.getStorageKeyByType("refreshToken")||Q;var n=this.storage.getStorage();Do(e),n[t]=e,this.storage.setStorage(n),this.emitSetStorageEvent()}removeRefreshToken(){const e=this.getStorageKeyByType("refreshToken")||Q;this.remove(e)}addPendingRemoveFlags(){const e=this.getTokensSync();Object.keys(e).forEach(t=>{e[t].pendingRemove=!0}),this.setTokens(e)}}var $o={browserHasLocalStorage:function(){try{var e=this.getLocalStorage();return this.testStorage(e)}catch(e){return!1}},browserHasSessionStorage:function(){try{var e=this.getSessionStorage();return this.testStorage(e)}catch(e){return!1}},testStorageType:function(e){var t=!1;switch(e){case"sessionStorage":t=this.browserHasSessionStorage();break;case"localStorage":t=this.browserHasLocalStorage();break;case"cookie":case"memory":t=!0;break;default:t=!1}return t},getStorageByType:function(e,t){let n;switch(e){case"sessionStorage":n=this.getSessionStorage();break;case"localStorage":n=this.getLocalStorage();break;case"cookie":n=this.getCookieStorage(t);break;case"memory":n=this.getInMemoryStorage();break;default:throw new N(`Unrecognized storage option: ${e}`)}return n},findStorageType:function(e){let t,n;return t=(e=e.slice()).shift(),n=e.length?e[0]:null,n?this.testStorageType(t)?t:(f(`This browser doesn't support ${t}. Switching to ${n}.`),this.findStorageType(e)):t},getLocalStorage:function(){return ue()&&!window.onstorage&&(window.onstorage=function(){}),localStorage},getSessionStorage:function(){return sessionStorage},getCookieStorage:function(e){const t=e.secure,n=e.sameSite,o=e.sessionCookie;if(void 0===t||void 0===n)throw new N('getCookieStorage: "secure" and "sameSite" options must be provided');const i={getItem:this.storage.get,setItem:(e,i,r="2200-01-01T00:00:00.000Z")=>{r=o?null:r,this.storage.set(e,i,r,{secure:t,sameSite:n})},removeItem:e=>{this.storage.delete(e)}};return e.useSeparateCookies?{getItem:function(e){var t=i.getItem(),n={};return Object.keys(t).forEach(o=>{0===o.indexOf(e)&&(n[o.replace(`${e}_`,"")]=JSON.parse(t[o]))}),JSON.stringify(n)},setItem:function(e,t){var n=JSON.parse(this.getItem(e));t=JSON.parse(t),Object.keys(t).forEach(o=>{var r=e+"_"+o,a=JSON.stringify(t[o]);i.setItem(r,a),delete n[o]}),Object.keys(n).forEach(t=>{i.removeItem(e+"_"+t)})},removeItem:function(e){var t=JSON.parse(this.getItem(e));Object.keys(t).forEach(t=>{i.removeItem(e+"_"+t)})}}:i},inMemoryStore:{},getInMemoryStorage:function(){return{getItem:e=>this.inMemoryStore[e],setItem:(e,t)=>
2{this.inMemoryStore[e]=t}}},testStorage:function(e){var t="okta-test-storage";try{return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}},storage:{set:function(e,t,n,o){const{sameSite:i,secure:r}=o;if(void 0===r||void 0===i)throw new N('storage.set: "secure" and "sameSite" options must be provided');var a={path:o.path||"/",secure:r,sameSite:i};return Date.parse(n)&&(a.expires=new Date(n)),Ae.A.set(e,t,a),this.get(e)},get:function(e){return arguments.length?Ae.A.get(e):Ae.A.get()},delete:function(e){return Ae.A.remove(e,{path:"/"})}}};function Ho(e,t){var n;const o=(i=e,class extends i{setOriginalUri(e,t){$o.getSessionStorage().setItem(X,e),(t=t||this.options.state)&&this.storageManager.getOriginalUriStorage().setItem(t,e)}getOriginalUri(e){if(e=e||this.options.state){const t=this.storageManager.getOriginalUriStorage().getItem(e);if(t)return t}const t=$o.getSessionStorage();return t&&t.getItem(X)||void 0}removeOriginalUri(e){if($o.getSessionStorage().removeItem(X),e=e||this.options.state){const t=this.storageManager.getOriginalUriStorage();t.removeItem&&t.removeItem(e)}}});var i;return n=class extends o{constructor(...e){super(...e),this.transactionManager=new t(Object.assign({storageManager:this.storageManager},this.options.transactionManager)),this.pkce={DEFAULT_CODE_CHALLENGE_METHOD:Wn.DEFAULT_CODE_CHALLENGE_METHOD,generateVerifier:Wn.generateVerifier,computeChallenge:Wn.computeChallenge},this._pending={handleLogin:!1},this._tokenQueue=new Hn,this.token=Io(this,this._tokenQueue),this.tokenManager=new Bo(this,this.options.tokenManager),this.endpoints={authorize:{enrollAuthenticator:Ro.bind(null,this)}}}clearStorage(){super.clearStorage(),this.tokenManager.clear()}async isAuthenticated(e={}){const{autoRenew:t,autoRemove:n}=this.tokenManager.getOptions(),o=e.onExpiredToken?"renew"===e.onExpiredToken:t,i=e.onExpiredToken?"remove"===e.onExpiredToken:n;let{accessToken:r}=this.tokenManager.getTokensSync();if(r&&this.tokenManager.hasExpired(r))if(r=void 0,o)try{r=await this.tokenManager.renew("accessToken")}catch(e){}else i&&this.tokenManager.remove("accessToken");let{idToken:a}=this.tokenManager.getTokensSync();if(a&&this.tokenManager.hasExpired(a))if(a=void 0,o)try{a=await this.tokenManager.renew("idToken")}catch(e){}else i&&this.tokenManager.remove("idToken");return!(!r||!a)}async signInWithRedirect(e={}){const{originalUri:t}=e,n=He(e,["originalUri"]);if(!this._pending.handleLogin){this._pending.handleLogin=!0;try{t&&this.setOriginalUri(t);const e=Object.assign({scopes:this.options.scopes||["openid","email","profile"]},n);await this.token.getWithRedirect(e)}finally{this._pending.handleLogin=!1}}}async getUser(){const{idToken:e,accessToken:t}=this.tokenManager.getTokensSync();return this.token.getUserInfo(t,e)}getIdToken(){const{idToken:e}=this.tokenManager.getTokensSync();return e?e.idToken:void 0}getAccessToken(){const{accessToken:e}=this.tokenManager.getTokensSync();return e?e.accessToken:void 0}getRefreshToken(){const{refreshToken:e}=this.tokenManager.getTokensSync();return e?e.refreshToken:void 0}async getOrRenewAccessToken(){var e;const{accessToken:t}=this.tokenManager.getTokensSync();if(t&&!this.tokenManager.hasExpired(t))return t.accessToken;try{const t=this.tokenManager.getStorageKeyByType("accessToken"),n=await this.tokenManager.renew(null!=t?t:"accessToken");return null!==(e=null==n?void 0:n.accessToken)&&void 0!==e?e:null}catch(e){return this.emitter.emit("error",e),null}}async storeTokensFromRedirect(){const{tokens:e,responseType:t}=await this.token.parseFromUrl();"none"!==t&&this.tokenManager.setTokens(e)}isLoginRedirect(){return Cn(this)}isPKCE(){return!!this.options.pkce}hasResponseType(e){return function(e,t){let n=!1;return n=Array.isArray(t.responseType)&&t.responseType.length?t.responseType.indexOf(e)>=0:t.responseType===e,n}(e,this.options)}isAuthorizationCodeFlow(){return this.hasResponseType("code")}async invokeApiMethod(e){if(!e.accessToken){const t=(await this.tokenManager.getTokens()).accessToken;e.accessToken=null==t?void 0:t.accessToken}return Se(this,e)}async revokeAccessToken(e){if(!e){const t=await this.tokenManager.getTokens();e=t.accessToken;const n=this.tokenManager.getStorageKeyByType("accessToken");this.tokenManager.remove(n),this.options.dpop&&await to("access",t)}return e?this.token.revoke(e):Promise.resolve(null)}async revokeRefreshToken(e){if(!e){const t=await this.tokenManager.getTokens();e=t.refreshToken;const n=this.tokenManager.getStorageKeyByType("refreshToken");this.tokenManager.remove(n),this.options.dpop&&await to("refresh",t)}return e?this.token.revoke(e):Promise.resolve(null)}getSignOutRedirectUrl(e={}){let{idToken:t,postLogoutRedirectUri:n,state:o}=e;if(t||(t=this.tokenManager.getTokensSync().idToken),!t)return"";void 0===n&&(n=this.options.postLogoutRedirectUri);const i=L(this).logoutUrl,r=t.idToken;let a=i+"?id_token_hint="+encodeURIComponent(r);return n&&(a+="&post_logout_redirect_uri="+encodeURIComponent(n)),o&&(a+="&state="+encodeURIComponent(o)),a}async signOut(e){var t;e=Object.assign({},e);const n=window.location.origin,o=window.location.href,i=null===e.postLogoutRedirectUri?null:e.postLogoutRedirectUri||this.options.postLogoutRedirectUri||n,r=null==e?void 0:e.state;let a=e.accessToken,s=e.refreshToken;const l=!1!==e.revokeAccessToken,c=!1!==e.revokeRefreshToken;c&&void 0===s&&(s=this.tokenManager.getTokensSync().refreshToken),l&&void 0===a&&(a=this.tokenManager.getTokensSync().accessToken),e.idToken||(e.idToken=this.tokenManager.getTokensSync().idToken),c&&s&&await this.revokeRefreshToken(s),l&&a&&await this.revokeAccessToken(a);const u=null!==(t=null==a?void 0:a.dpopPairId)&&void 0!==t?t:null==s?void 0:s.dpopPairId;this.options.dpop&&u&&await eo(u);const p=this.getSignOutRedirectUrl(Object.assign(Object.assign({},e),{postLogoutRedirectUri:i}));if(p)return e.clearTokensBeforeRedirect?this.tokenManager.clear():this.tokenManager.addPendingRemoveFlags(),window.location.assign(p),!0;{const e=await this.closeSession(),t=new URL(i||n);return r&&t.searchParams.append("state",r),i===o?window.location.href=t.href:window.location.assign(t.href),e}}async getDPoPAuthorizationHeaders(e){if(!this.options.dpop)throw new N("DPoP is not configured for this client instance");let{accessToken:t}=e;if(t||(t=this.tokenManager.getTokensSync().accessToken),!t)throw new N("AccessToken is required to generate a DPoP Proof");const n=await Zn(null==t?void 0:t.dpopPairId),o=await no(Object.assign(Object.assign({},e),{keyPair:n,accessToken:t.accessToken}));return{Authorization:`DPoP ${t.accessToken}`,Dpop:o}}async clearDPoPStorage(e=!1){var t,n;if(e)return async function(){await Xn("clear")}();const o=await this.tokenManager.getTokens(),i=(null===(t=o.accessToken)||void 0===t?void 0:t.dpopPairId)||
2(null===(n=o.refreshToken)||void 0===n?void 0:n.dpopPairId);i&&await eo(i)}parseUseDPoPNonceError(e){var t;const n=S.getWWWAuthenticateHeader(e);if(Jn(S.parseHeader(null!=n?n:""))){let n=null;return x(null==e?void 0:e.get)&&(n=e.get("DPoP-Nonce")),n=null!==(t=null!=n?n:e["dpop-nonce"])&&void 0!==t?t:e["DPoP-Nonce"],n}return null}},n.crypto=a,n}var zo=n(37724);const Wo={updateAuthStatePromise:null,canceledTimes:0},Ko="authStateChange";class Go{constructor(e){if(!e.emitter)throw new N("Emitter should be initialized before AuthStateManager");this._sdk=e,this._pending=Object.assign({},Wo),this._authState=null,this._logOptions={},this._prevAuthState=null,this._transformQueue=new Hn({quiet:!0}),e.tokenManager.on(jo,(e,t)=>{this._setLogOptions({event:jo,key:e,token:t}),this.updateAuthState()}),e.tokenManager.on(Fo,(e,t)=>{this._setLogOptions({event:Fo,key:e,token:t}),this.updateAuthState()})}_setLogOptions(e){this._logOptions=e}getAuthState(){return this._authState}getPreviousAuthState(){return this._prevAuthState}async updateAuthState(){const{transformAuthState:e,devMode:t}=this._sdk.options,n=e=>{const{event:t,key:n,token:o}=this._logOptions;h().group(`OKTA-AUTH-JS:updateAuthState: Event:${t} Status:${e}`),h().log(n,o),h().log("Current authState",this._authState),h().groupEnd(),this._logOptions={}},o=e=>{var o,i;i=e,(o=this._authState)&&o.isAuthenticated===i.isAuthenticated&&JSON.stringify(o.idToken)===JSON.stringify(i.idToken)&&JSON.stringify(o.accessToken)===JSON.stringify(i.accessToken)&&o.error===i.error?t&&n("unchanged"):(this._prevAuthState=this._authState,this._authState=e,this._sdk.emitter.emit(Ko,Object.assign({},e)),t&&n("emitted"))},i=e=>this._pending.updateAuthStatePromise.then(()=>{const t=this._pending.updateAuthStatePromise;return t&&t!==e?i(t):this.getAuthState()});if(this._pending.updateAuthStatePromise){if(this._pending.canceledTimes>=10)return t&&n("terminated"),i(this._pending.updateAuthStatePromise);this._pending.updateAuthStatePromise.cancel()}const r=new zo((i,a,s)=>{s.shouldReject=!1,s(()=>{this._pending.updateAuthStatePromise=null,this._pending.canceledTimes=this._pending.canceledTimes+1,t&&n("canceled")});const l=e=>{r.isCanceled?i():(o(e),i(),this._pending=Object.assign({},Wo))};this._sdk.isAuthenticated().then(()=>{if(r.isCanceled)return void i();const{accessToken:t,idToken:n,refreshToken:o}=this._sdk.tokenManager.getTokensSync(),a={accessToken:t,idToken:n,refreshToken:o,isAuthenticated:!(!t||!n)};(e?this._transformQueue.push(e,null,this._sdk,a):Promise.resolve(a)).then(e=>l(e)).catch(e=>l({accessToken:t,idToken:n,refreshToken:o,isAuthenticated:!1,error:e}))})});return this._pending.updateAuthStatePromise=r,i(r)}subscribe(e){this._sdk.emitter.on(Ko,e)}unsubscribe(e){this._sdk.emitter.off(Ko,e)}}class Yo{constructor(e,t={}){this.started=!1,this.tokenManager=e,this.options=t,this.renewTimeQueue=[],this.onTokenExpiredHandler=this.onTokenExpiredHandler.bind(this)}shouldThrottleRenew(){let e=!1;if(this.renewTimeQueue.push(Date.now()),this.renewTimeQueue.length>=10){const t=this.renewTimeQueue.shift();e=this.renewTimeQueue[this.renewTimeQueue.length-1]-t<3e4}return e}requiresLeadership(){return!!this.options.syncStorage&&ce()}processExpiredTokens(){const e=this.tokenManager.getStorage().getStorage();Object.keys(e).forEach(t=>{const n=e[t];!De(n)&&this.tokenManager.hasExpired(n)&&this.onTokenExpiredHandler(t)})}onTokenExpiredHandler(e){if(this.options.autoRenew)if(this.shouldThrottleRenew()){const e=new N("Too many token renew requests");this.tokenManager.emitError(e)}else this.tokenManager.renew(e).catch(()=>{});else this.options.autoRemove&&this.tokenManager.remove(e)}canStart(){return!(!this.options.autoRenew&&!this.options.autoRemove||this.started)}async start(){this.canStart()&&(this.tokenManager.on(Mo,this.onTokenExpiredHandler),this.tokenManager.isStarted()&&this.processExpiredTokens(),this.started=!0)}async stop(){this.started&&(this.tokenManager.off(Mo,this.onTokenExpiredHandler),this.renewTimeQueue=[],this.started=!1)}isStarted(){return this.started}}var Jo=n(72626);class Qo{constructor(e,t={}){this.started=!1,this.enablePostMessage=!0,this.tokenManager=e,this.options=t,this.onTokenAddedHandler=this.onTokenAddedHandler.bind(this),this.onTokenRemovedHandler=this.onTokenRemovedHandler.bind(this),this.onTokenRenewedHandler=this.onTokenRenewedHandler.bind(this),this.onSetStorageHandler=this.onSetStorageHandler.bind(this),this.onSyncMessageHandler=this.onSyncMessageHandler.bind(this)}requiresLeadership(){return!1}isStarted(){return this.started}canStart(){return!!this.options.syncStorage&&ce()&&!this.started}
2async start(){if(!this.canStart())return;const{syncChannelName:e}=this.options;try{this.channel=new Jo.X2(e)}catch(e){throw new N("SyncStorageService is not supported in current browser.")}this.tokenManager.on(jo,this.onTokenAddedHandler),this.tokenManager.on(Fo,this.onTokenRemovedHandler),this.tokenManager.on(Uo,this.onTokenRenewedHandler),this.tokenManager.on(Vo,this.onSetStorageHandler),this.channel.addEventListener("message",this.onSyncMessageHandler),this.started=!0}async stop(){var e,t;this.started&&(this.tokenManager.off(jo,this.onTokenAddedHandler),this.tokenManager.off(Fo,this.onTokenRemovedHandler),this.tokenManager.off(Uo,this.onTokenRenewedHandler),this.tokenManager.off(Vo,this.onSetStorageHandler),null===(e=this.channel)||void 0===e||e.removeEventListener("message",this.onSyncMessageHandler),await(null===(t=this.channel)||void 0===t?void 0:t.close()),this.channel=void 0,this.started=!1)}onTokenAddedHandler(e,t){var n;this.enablePostMessage&&(null===(n=this.channel)||void 0===n||n.postMessage({type:jo,key:e,token:t}))}onTokenRemovedHandler(e,t){var n;this.enablePostMessage&&(null===(n=this.channel)||void 0===n||n.postMessage({type:Fo,key:e,token:t}))}onTokenRenewedHandler(e,t,n){var o;this.enablePostMessage&&(null===(o=this.channel)||void 0===o||o.postMessage({type:Uo,key:e,token:t,oldToken:n}))}onSetStorageHandler(e){var t;null===(t=this.channel)||void 0===t||t.postMessage({type:Vo,storage:e})}onSyncMessageHandler(e){switch(this.enablePostMessage=!1,e.type){case Vo:this.tokenManager.getStorage().setStorage(e.storage);break;case jo:this.tokenManager.emitAdded(e.key,e.token),this.tokenManager.setExpireEventTimeout(e.key,e.token);break;case Fo:this.tokenManager.clearExpireEventTimeout(e.key),this.tokenManager.emitRemoved(e.key,e.token);break;case Uo:this.tokenManager.emitRenewed(e.key,e.token,e.oldToken)}this.enablePostMessage=!0}}class Xo{constructor(e={}){this.started=!1,this.options=e,this.onLeaderDuplicate=this.onLeaderDuplicate.bind(this),this.onLeader=this.onLeader.bind(this)}onLeaderDuplicate(){}async onLeader(){var e,t;await(null===(t=(e=this.options).onLeader)||void 0===t?void 0:t.call(e))}isLeader(){var e;return!!(null===(e=this.elector)||void 0===e?void 0:e.isLeader)}hasLeader(){var e;return!!(null===(e=this.elector)||void 0===e?void 0:e.hasLeader)}async start(){if(this.canStart()){const{electionChannelName:e}=this.options;this.channel=new Jo.X2(e),this.elector=(0,Jo.XS)(this.channel),this.elector.onduplicate=this.onLeaderDuplicate,this.elector.awaitLeadership().then(this.onLeader),this.started=!0}}async stop(){this.started&&(this.elector&&(await this.elector.die(),this.elector=void 0),this.channel&&(this.channel.postInternal=()=>Promise.resolve(),await this.channel.close(),this.channel=void 0),this.started=!1)}requiresLeadership(){return!1}isStarted(){return this.started}canStart(){return ce()&&!this.started}}const Zo=()=>Math.floor(Date.now()/1e3);class ei{constructor(e,t={}){this.started=!1,this.lastHidden=-1,this.tokenManager=e,this.options=t,this.onPageVisbilityChange=this._onPageVisbilityChange.bind(this)}_onPageVisbilityChange(){if(document.hidden)this.lastHidden=Zo();else if(this.lastHidden>0&&Zo()-this.lastHidden>=this.options.tabInactivityDuration){const{accessToken:e,idToken:t}=this.tokenManager.getTokensSync();if(e&&this.tokenManager.hasExpired(e)){const e=this.tokenManager.getStorageKeyByType("accessToken");this.tokenManager.renew(e).catch(()=>{})}else if(t&&this.tokenManager.hasExpired(t)){const e=this.tokenManager.getStorageKeyByType("idToken");this.tokenManager.renew(e).catch(()=>{})}}}async start(){this.canStart()&&document&&(document.addEventListener("visibilitychange",this.onPageVisbilityChange),this.started=!0)}async stop(){document&&(document.removeEventListener("visibilitychange",this.onPageVisbilityChange),this.started=!1)}canStart(){return ce()&&!!this.options.autoRenew&&!!this.options.renewOnTabActivation&&!this.started}requiresLeadership(){return!1}isStarted(){return this.started}}const ti="autoRenew",ni="syncStorage",oi="leaderElection",ii="renewOnTabActivation";class ri{constructor(e,t={}){this.sdk=e,this.onLeader=this.onLeader.bind(this);const{autoRenew:n,autoRemove:o,syncStorage:i}=e.tokenManager.getOptions();t.electionChannelName=t.electionChannelName||t.broadcastChannelName,this.options=Object.assign({},ri.defaultOptions,{autoRenew:n,autoRemove:o,syncStorage:i},{electionChannelName:`${e.options.clientId}-election`,syncChannelName:`${e.options.clientId}-sync`},m(t)),this.started=!1,this.services=new Map,ri.knownServices.forEac
2h(e=>{const t=this.createService(e);t&&this.services.set(e,t)})}async onLeader(){this.started&&await this.startServices()}isLeader(){var e;return null===(e=this.getService(oi))||void 0===e?void 0:e.isLeader()}isLeaderRequired(){return[...this.services.values()].some(e=>e.canStart()&&e.requiresLeadership())}async start(){this.started||(await this.startServices(),this.started=!0)}async stop(){await this.stopServices(),this.started=!1}getService(e){return this.services.get(e)}async startServices(){for(const[e,t]of this.services.entries())this.canStartService(e,t)&&await t.start()}async stopServices(){for(const e of this.services.values())await e.stop()}canStartService(e,t){let n=t.canStart()&&!t.isStarted();return e===oi?n&&(n=this.isLeaderRequired()):t.requiresLeadership()&&n&&(n=this.isLeader()),n}createService(e){const t=this.sdk.tokenManager;let n;switch(e){case oi:n=new Xo(Object.assign(Object.assign({},this.options),{onLeader:this.onLeader}));break;case ti:n=new Yo(t,Object.assign({},this.options));break;case ni:n=new Qo(t,Object.assign({},this.options));break;case ii:n=new ei(t,Object.assign({},this.options));break;default:throw new Error(`Unknown service ${e}`)}return n}}function ai(e){return e.session.get().then(function(e){return"ACTIVE"===e.status}).catch(function(){return!1})}function si(e){return Te(e,"/api/v1/sessions/me",{withCredentials:!0}).then(function(t){var n=y(t,"_links");return n.refresh=function(){return Ee(e,b(t,"refresh").href,{},{withCredentials:!0})},n.user=function(){return Te(e,b(t,"user").href,{withCredentials:!0})},n}).catch(function(){return{status:"INACTIVE"}})}function li(e){return Se(e,{url:e.getIssuerOrigin()+"/api/v1/sessions/me",method:"DELETE",withCredentials:!0})}function ci(e){return Ee(e,"/api/v1/sessions/me/lifecycle/refresh",{},{withCredentials:!0})}function ui(e,t,n){n=n||window.location.href,window.location.assign(e.getIssuerOrigin()+"/login/sessionCookieRedirect"+A({checkAccountSetupComplete:!0,token:t,redirectUrl:n}))}function pi(e){return class extends e{constructor(...e){var t;super(...e),this.session=(t=this,{close:li.bind(null,t),exists:ai.bind(null,t),get:si.bind(null,t),refresh:ci.bind(null,t),setCookieAndRedirect:ui.bind(null,t)})}closeSession(){return this.session.close().then(async()=>(this.clearStorage(),!0)).catch(function(e){if("AuthApiError"===e.name&&"E0000007"===e.errorCode)return!1;throw e})}}}function di(e,t){var n;if(!de())return Promise.reject(new N("Fingerprinting is not supported on this device"));const o=null!==(n=null==t?void 0:t.container)&&void 0!==n?n:document.body;let i,r,a;const s=new Promise(function(n,s){r=document.createElement("iframe"),r.style.display="none",a=function(t){var o;if(!((e,t)=>t.source===e.contentWindow)(r,t))return;if(!t||!t.data||t.origin!==e.getIssuerOrigin())return;let i;try{i=JSON.parse(t.data)}catch(e){return}return i?"FingerprintAvailable"===i.type?n(i.fingerprint):"FingerprintServiceReady"!==i.type?s(new N("No data")):void(null===(o=null==r?void 0:r.contentWindow)||void 0===o||o.postMessage(JSON.stringify({type:"GetFingerprint"}),t.origin)):void 0},co(window,"message",a),r.src=e.getIssuerOrigin()+"/auth/services/devicefingerprint",o.appendChild(r),i=setTimeout(function(){s(new N("Fingerprinting timed out"))},(null==t?void 0:t.timeout)||15e3)});return s.finally(function(){var e;clearTimeout(i),uo(window,"message",a),o.contains(r)&&(null===(e=r.parentElement)||void 0===e||e.removeChild(r))})}ri.knownServices=[ti,ni,oi,ii],ri.defaultOptions={autoRenew:!0,autoRemove:!0,syncStorage:!0,renewOnTabActivation:!0,tabInactivityDuration:1800};const hi=(e=[])=>{const t=[];return e.forEach(e=>{var n,o;if("webauthn"===e.key){const i={type:"public-key",id:Vn(e.credentialId)},r=null!==(n=e.transports)&&void 0!==n?n:null===(o=e.profile)||void 0===o?void 0:o.transports;Array.isArray(r)&&(i.transports=r),t.push(i)}}),t},fi=(e,t)=>({publicKey:Object.assign({rp:e.rp,user:{id:Vn(e.user.id),name:e.user.name,displayName:e.user.displayName},challenge:Vn(e.challenge),pubKeyCredParams:e.pubKeyCredParams,attestation:e.attestation,authenticatorSelection:e.authenticatorSelection,excludeCredentials:hi(t)},e.hints&&{hints:e.hints})}),mi=(e,t)=>({publicKey:Object.assign(Object.assign({challenge:Vn(e.challenge),userVerification:e.userVerification,allowCredentials:hi(t)},e.rpId&&{rpId:e.rpId}),e.hints&&{hints:e.hints})}),gi=e=>{const t=e.response,n=e.id,o=qn(t.clientDataJSON),i=qn(t.attestationObject),r=t.getTransports,a={id:n,clientData:o,attestation:i};return"function"==typeof r&&(a.transports=JSON.stringify(r.call(t))),a},yi=e=>{const t=e.response;return{id:e.id,clientData:qn(t.clientDataJSON),authenticatorData:qn(t.authenticatorData),signatureData:qn(t.signature)}};function vi(e){var t;return(t=class extends e{constructor(...e){super(...e),this.idx=function(e){var t;t={remediators:r,getFlowSpecification:ln},Object.assign(ht,t);const n=bn.bind(null,e);return{interact:$e.bind(null,e),introspect:rt.bind(null,e),makeIdxResponse:nt.bind(null,e),authenticate:Et.bind(null,e),register:wn.bind(null,e),start:n,startTransaction:n,poll:vn.bind(null,e),proceed:yn.bind(null,e),cancel:cn.bind(null,e),recoverPassword:_n.bind(null,e),handleInteractionCodeRedirect:kn.bind(null,e),isInteractionRequired:On.bind(null,e),isInteractionRequiredError:Sn,handleEmailVerifyCallback:mn.bind(null,e),isEmailVerifyCallback:hn,parseEmailVerifyCallback:fn,isEmailVerifyCallbackError:dn,getSavedTransactionMeta:Ue.bind(null,e),createTransactionMeta:Le.bind(null,e),getTransactionMeta:je.bind(null,e),saveTransactionMeta:Fe.bind(null,e),clearTransactionMeta:Ve.bind(null,e),isTransactionMetaValid:qe,setFlow:t=>{e.options.flow=t},getFlow:()=>e.options.flow,canProceed:gn.bind(null,e),unlockAccount:xn.bind(null,e)}}(this),this.fingerprint=di.bind(null,this)}}).webauthn=s,t}const bi={token:{storageTypes:["localStorage","sessionStorage","cookie"]},cache:{storageTypes:["localStorage","sessionStorage","cookie"]},transaction:{storageTypes:["sessionStorage","localStorage","cookie"]},"shared-transaction":{storageTypes:["localStorage"]},"original-uri":{storageTypes:["localStorage"]}};const wi=/application\/\w*\+?json/;
2function _i(e,t,n){var o=n.data,i=n.headers||{},r=i["Content-Type"]||i["content-type"]||"";o&&"string"!=typeof o&&(wi.test(r)?o=JSON.stringify(o):"application/x-www-form-urlencoded"===r&&(o=Object.entries(o).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join("&")));var a=(window.fetch||Pe)(t,{method:e,headers:n.headers,body:o,credentials:n.withCredentials?"include":"omit"});return a.finally||(a=Promise.resolve(a)),a.then(function(e){var t=!e.ok,n=e.status;return function(e){return e.headers.get("Content-Type")&&e.headers.get("Content-Type").toLowerCase().indexOf("application/json")>=0?e.json().catch(e=>({error:e,errorSummary:"Could not parse server response"})):e.text()}(e).then(t=>function(e,t,n){const o="object"==typeof t,i={};for(const e of n.headers.entries())i[e[0]]=e[1];const r={responseText:o?JSON.stringify(t):t,status:e,headers:i};return o&&(r.responseType="json",r.responseJSON=t),r}(n,t,e)).then(e=>{var n;if(t||(null===(n=e.responseJSON)||void 0===n?void 0:n.error))throw e;return e})})}function ki(){const e=function(){const e=function(){const e=class{constructor(e){this.devMode=!!e.devMode}};return class extends e{constructor(e){super(e),this.cookies=function(e={},t){var n=e.cookies||{};return void 0===n.secure&&(n.secure=t),void 0===n.sameSite&&(n.sameSite=n.secure?"none":"lax"),n.secure&&!t&&(f('The current page is not being served with the HTTPS protocol.\nFor security reasons, we strongly recommend using HTTPS.\nIf you cannot use HTTPS, set "cookies.secure" option to false.'),n.secure=!1),"none"!==n.sameSite||n.secure||(n.sameSite="lax"),n}(e,ve()),this.storageUtil=e.storageUtil||Object.assign({},$o,{inMemoryStore:{}}),this.storageManager=Object.assign(Object.assign({},bi),e.storageManager)}}}();return class extends e{constructor(e){super(e),this.issuer=e.issuer,this.transformErrorXHR=e.transformErrorXHR,this.headers=e.headers,this.httpRequestClient=e.httpRequestClient||_i,this.httpRequestInterceptors=e.httpRequestInterceptors,this.pollDelay=e.pollDelay}}}();return class extends e{constructor(e){super(e),function(e){var t=(e=e||{}).scopes;if(t&&!Array.isArray(t))throw new N('scopes must be a array of strings. Required usage: new OktaAuth({scopes: ["openid", "email"]})');var n=e.issuer;if(!n)throw new N('No issuer passed to constructor. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com/oauth2/{authServerId}"})');if(!new RegExp("^http?s?://.+").test(n))throw new N('Issuer must be a valid URL. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com/oauth2/{authServerId}"})');if(-1!==n.indexOf("-admin.okta"))throw new N('Issuer URL passed to constructor contains "-admin" in subdomain. Required usage: new OktaAuth({issuer: "https://{yourOktaDomain}.com})')}(e),this.issuer=P(e.issuer),this.tokenUrl=P(e.tokenUrl),this.authorizeUrl=P(e.authorizeUrl),this.userinfoUrl=P(e.userinfoUrl),this.revokeUrl=P(e.revokeUrl),this.logoutUrl=P(e.logoutUrl),this.pkce=!1!==e.pkce,this.clientId=e.clientId,this.redirectUri=e.redirectUri,ce()&&(this.redirectUri=function(e="",t){return O(e)?e:(t=P(t),"/"===e[0]?`${t}${e}`:`${t}/${e}`)}(e.redirectUri,window.location.origin)),this.responseType=e.responseType,this.responseMode=e.responseMode,this.state=e.state,this.scopes=e.scopes,this.ignoreSignature=!!e.ignoreSignature,this.codeChallenge=e.codeChallenge,this.codeChallengeMethod=e.codeChallengeMethod,this.acrValues=e.acrValues,this.maxAge=e.maxAge,this.dpop=!0===e.dpop,this.dpopOptions=Object.assign({allowBearerTokens:!1},e.dpopOptions),this.tokenManager=e.tokenManager,this.postLogoutRedirectUri=e.postLogoutRedirectUri,this.restoreOriginalUri=e.restoreOriginalUri,this.transactionManager=Object.assign({enableSharedStorage:!0},e.transactionManager),this.clientSecret=e.clientSecret,this.setLocation=e.setLocation,this.ignoreLifetime=!!e.ignoreLifetime,e.maxClockSkew||0===e.maxClockSkew?this.maxClockSkew=e.maxClockSkew:this.maxClockSkew=V}}}function xi(){const e=function(){const e=ki();return class extends e{constructor(e){super(e),this.services=e.services,this.transformAuthState=e.transformAuthState}}}();return class extends e{constructor(e){super(e),this.flow=e.flow,this.activationToken=e.activationToken,this.recoveryToken=e.recoveryToken,this.idx=e.idx}}}class Si{constructor(e,t){if(!e)throw new N('"storage" is required');if("string"!=typeof t||!t.length)throw new N('"storageName" is required');this.storageName=t,this.storageProvider=e}
2getItem(e){return this.getStorage()[e]}setItem(e,t){return this.updateStorage(e,t)}removeItem(e){return this.clearStorage(e)}getStorage(){var e=this.storageProvider.getItem(this.storageName);e=e||"{}";try{return JSON.parse(e)}catch(e){throw new N("Unable to parse storage string: "+this.storageName)}}setStorage(e){try{var t=e?JSON.stringify(e):"{}";this.storageProvider.setItem(this.storageName,t)}catch(e){throw new N("Unable to set storage: "+this.storageName)}}clearStorage(e){if(e){var t=this.getStorage();delete t[e],this.setStorage(t)}else this.storageProvider.removeItem?this.storageProvider.removeItem(this.storageName):this.setStorage()}updateStorage(e,t){var n=this.getStorage();n[e]=t,this.setStorage(n)}}function Ti(e){ce()||e.storageProvider||e.storageKey||f("Memory storage can only support simple single user use case on server side, please provide custom storageProvider or storageKey if advanced scenarios need to be supported.")}class Ei{constructor(e,t,n){this.storageManagerOptions=e,this.cookieOptions=t,this.storageUtil=n}getOptionsForSection(e,t){return Object.assign({},this.storageManagerOptions[e],t)}getStorage(e){if((e=Object.assign({},this.cookieOptions,e)).storageProvider)return e.storageProvider;let{storageType:t,storageTypes:n}=e;if("sessionStorage"===t&&(e.sessionCookie=!0),t&&n){const e=n.indexOf(t);e>=0&&(n=n.slice(e),t=void 0)}return t||(t=this.storageUtil.findStorageType(n)),this.storageUtil.getStorageByType(t,e)}getTokenStorage(e){Ti(e=this.getOptionsForSection("token",e));const t=this.getStorage(e),n=e.storageKey||B;return new Si(t,n)}getHttpCache(e){e=this.getOptionsForSection("cache",e);const t=this.getStorage(e),n=e.storageKey||$;return new Si(t,n)}}function Ci(){const e=class extends Ei{constructor(e,t,n){super(e,t,n)}getTransactionStorage(e){Ti(e=this.getOptionsForSection("transaction",e));const t=this.getStorage(e),n=e.storageKey||z;return new Si(t,n)}getSharedTansactionStorage(e){Ti(e=this.getOptionsForSection("shared-transaction",e));const t=this.getStorage(e),n=e.storageKey||W;return new Si(t,n)}getOriginalUriStorage(e){Ti(e=this.getOptionsForSection("original-uri",e));const t=this.getStorage(e),n=e.storageKey||K;return new Si(t,n)}};return class extends e{constructor(e,t,n){super(e,t,n)}getIdxResponseStorage(e){let t;if(ce())try{t=this.storageUtil.getStorageByType("memory",e)}catch(e){f("No response storage found, you may want to provide custom implementation for intermediate idx responses to optimize the network traffic")}else{const n=this.getTransactionStorage(e);n&&(t={getItem:e=>{const t=n.getStorage();return t&&t[e]?t[e]:null},setItem:(e,t)=>{const o=n.getStorage();if(!o)throw new N("Transaction has been cleared, failed to save idxState");o[e]=t,n.setStorage(o)},removeItem:e=>{const t=n.getStorage();t&&(delete t[e],n.setStorage(t))}})}return t?new Si(t,G):null}}}function Oi(e){return!(!e||"object"!=typeof e||0===Object.values(e).length)}function Ai(e){return!(!function(e){return!(!Oi(e)||!e.redirectUri&&!e.responseType)}(e)&&!function(e){return!!Oi(e)&&void 0===Object.values(e).find(e=>"string"!=typeof e)}(e))}function Pi(){const e=class{constructor(e){this.storageManager=e.storageManager,this.enableSharedStorage=!1!==e.enableSharedStorage,this.saveLastResponse=!1!==e.saveLastResponse,this.options=e}clear(e={}){const t=this.storageManager.getTransactionStorage(),n=t.getStorage();if(t.clearStorage(),this.enableSharedStorage&&!1!==e.clearSharedStorage){const t=e.state||(null==n?void 0:n.state);t&&function(e,t){const n=e.getSharedTansactionStorage(),o=n.getStorage();delete o[t],n.setStorage(o)}(this.storageManager,t)}}save(e,t={}){let n=this.storageManager.getTransactionStorage();Ai(n.getStorage())&&!t.muteWarning&&f("a saved auth transaction exists in storage. This may indicate another auth flow is already in progress."),n.setStorage(e),this.enableSharedStorage&&e.state&&function(e,t,n){const o=e.getSharedTansactionStorage(),i=o.getStorage();i[t]={dateCreated:Date.now(),transaction:n},o.setStorage(i)}(this.storageManager,e.state,e)}exists(e={}){try{return!!this.load(e)}catch(e){return!1}}load(e={}){let t;return this.enableSharedStorage&&e.state&&(function(e){const t=e.getSharedTansactionStorage(),n=t.getStorage();
2Object.keys(n).forEach(e=>{const t=n[e];Date.now()-t.dateCreated>18e5&&delete n[e]}),t.setStorage(n)}(this.storageManager),t=function(e,t){const n=e.getSharedTansactionStorage().getStorage()[t];return n&&n.transaction&&Ai(n.transaction)?n.transaction:null}(this.storageManager,e.state),Ai(t))?t:(t=this.storageManager.getTransactionStorage().getStorage(),Ai(t)?t:null)}};return class extends e{constructor(e){super(e)}clear(e={}){super.clear(e),!1!==e.clearIdxResponse&&this.clearIdxResponse()}saveIdxResponse(e){if(!this.saveLastResponse)return;const t=this.storageManager.getIdxResponseStorage();t&&t.setStorage(e)}loadIdxResponse(e){if(!this.saveLastResponse)return null;const t=this.storageManager.getIdxResponseStorage();if(!t)return null;const n=t.getStorage();if(!n||!ot(n.rawIdxResponse))return null;if(e){const{stateHandle:t,interactionHandle:o}=e;if(!e.useGenericRemediator&&t&&n.stateHandle!==t)return null;if(o&&n.interactionHandle!==o)return null}return n}clearIdxResponse(){if(!this.saveLastResponse)return;const e=this.storageManager.getIdxResponseStorage();null==e||e.clearStorage()}}}class Ni{constructor(e,t){const{res:n}=t,{headers:o}=n,i=He(n,["headers"]);
2o&&(this.headers=o),Object.keys(i).forEach(e=>{"_links"!==e&&(this[e]=i[e])})}}async function Ri(e,t,n=Ni){const{accessToken:o}=e.tokenManager.getTokensSync(),i=t.accessToken||o,r=e.getIssuerOrigin(),{url:a,method:s,payload:l}=t,c=a.startsWith(r)?a:`${r}${a}`;if(!i)throw new N("AccessToken is required to request MyAccount API endpoints.");let u=i;const p=Object.assign({headers:{Accept:"*/*;okta-version=1.0.0"},url:c,method:s},l&&{args:l});if(e.options.dpop){if("string"==typeof u)throw new N("AccessToken object must be provided when using dpop");const{Authorization:t,Dpop:n}=await e.getDPoPAuthorizationHeaders({method:s,url:c,accessToken:u});p.headers.Authorization=t,p.headers.Dpop=n}else u="string"==typeof u?u:u.accessToken,p.accessToken=u;const d=await Se(e,p);let h;return h=Array.isArray(d)?d.map(t=>new n(e,{res:t,accessToken:u})):new n(e,{res:d,accessToken:u}),h}function Ii({oktaAuth:e,accessToken:t,methodName:n,links:o},i=Ni){for(const r of["GET","POST","PUT","DELETE"])if(r.toLowerCase()===n){const n=o.self;return async o=>Ri(e,{accessToken:t,url:n.href,method:r,payload:o},i)}const r=o[n];if(!r)throw new N(`No link is found with methodName: ${n}`);return async n=>Ri(e,{accessToken:t,url:r.href,method:r.hints.allow[0],payload:n},i)}class Di extends Ni{constructor(e,t){super(e,t);const{createdAt:n,modifiedAt:o,profile:i}=t.res;this.createdAt=n,this.modifiedAt=o,this.profile=i}}class Li extends Ni{constructor(e,t){super(e,t),this.properties=t.res.properties}}var Mi,Ui,ji;!function(e){e.PRIMARY="PRIMARY",e.SECONDARY="SECONDARY"}(Mi||(Mi={})),function(e){e.VERIFIED="VERIFIED",e.UNVERIFIED="UNVERIFIED"}(Ui||(Ui={})),function(e){e.NOT_ENROLLED="NOT_ENROLLED",e.ACTIVE="ACTIVE"}(ji||(ji={}));const Fi=async(e,t)=>await Ri(e,{url:"/idp/myaccount/profile",method:"GET",accessToken:null==t?void 0:t.accessToken},Di),Vi=async(e,t)=>{const{payload:n,accessToken:o}=t;return await Ri(e,{url:"/idp/myaccount/profile",method:"PUT",payload:n,accessToken:o},Di)},qi=async(e,t)=>await Ri(e,{url:"/idp/myaccount/profile/schema",method:"GET",accessToken:null==t?void 0:t.accessToken},Li);class Bi extends Ni{constructor(e,t){super(e,t);const{res:n}=t,{id:o,profile:i,expiresAt:r,status:a}=n;this.id=o,this.expiresAt=r,this.profile=i,this.status=a}}class $i extends Ni{constructor(e,t){super(e,t);const{accessToken:n,res:o}=t,{id:i,expiresAt:r,profile:a,status:s,_links:l}=o;this.id=i,this.expiresAt=r,this.profile=a,this.status=s,this.poll=async()=>{const t=Ii({oktaAuth:e,accessToken:n,methodName:"poll",links:l},Bi);return await t()},this.verify=async t=>{const o=Ii({oktaAuth:e,accessToken:n,methodName:"verify",links:l},$i);return await o(t)}}}class Hi extends Ni{constructor(e,t){super(e,t);const{accessToken:n,res:o}=t,{id:i,profile:r,roles:a,status:s,_links:l}=o;this.id=i,this.profile=r,this.roles=a,this.status=s,this.get=async()=>{const t=Ii({oktaAuth:e,accessToken:n,methodName:"get",links:l},Hi);return await t()},this.delete=async()=>{const t=Ii({oktaAuth:e,accessToken:n,methodName:"delete",links:l});return await t()},this.challenge=async()=>{const t=Ii({oktaAuth:e,accessToken:n,methodName:"challenge",links:l},$i);return await t()},l.poll&&(this.poll=async()=>{const t=Ii({oktaAuth:e,accessToken:n,methodName:"poll",links:l},Bi);return await t()}),l.verify&&(this.verify=async t=>{const o=Ii({oktaAuth:e,accessToken:n,methodName:"verify",links:l});return await o(t)})}}const zi=async(e,t)=>await Ri(e,{url:"/idp/myaccount/emails",method:"GET",accessToken:null==t?void 0:t.accessToken},Hi),Wi=async(e,t)=>{const{id:n,accessToken:o}=t;return await Ri(e,{url:`/idp/myaccount/emails/${n}`,method:"GET",accessToken:o},Hi)},Ki=async(e,t)=>{const{accessToken:n,payload:o}=t;return await Ri(e,{url:"/idp/myaccount/emails",method:"POST",payload:o,accessToken:n},Hi)},Gi=async(e,t)=>{const{id:n,accessToken:o}=t;return await Ri(e,{url:`/idp/myaccount/emails/${n}`,method:"DELETE",accessToken:o})},Yi=async(e,t)=>{const{id:n,accessToken:o}=t;return await Ri(e,{url:`/idp/myaccount/emails/${n}/challenge`,method:"POST",accessToken:o},$i)},Ji=async(e,t)=>{const{emailId:n,challengeId:o,accessToken:i}=t;return await Ri(e,{url:`/idp/myaccount/emails/${n}/challenge/${o}`,method:"POST",accessToken:i},$i)},Qi=async(e,t)=>{const{emailId:n,challengeId:o,payload:i,accessToken:r}=t;return await Ri(e,{url:`/idp/myaccount/emails/${n}/challenge/${o}/verify`,method:"POST",payload:i,accessToken:r})};class Xi extends Ni{constructor(e,t){super(e,t);const{res:n,accessToken:o}=t,{id:i,profile:r,status:a,_links:s}=n;this.id=i,this.profile=r,this.status=a,this.get=async()=>{const t=Ii({oktaAuth:e,accessToken:o,methodName:"get",links:s},Xi);return await t()},this.delete=async()=>{const t=Ii({oktaAuth:e,accessToken:o,methodName:"delete",links:s});return await t()},this.challenge=async t=>{const n=Ii({oktaAuth:e,accessToken:o,methodName:"challenge",links:s});return await n(t)},s.verify&&(this.verify=async t=>{const n=Ii({oktaAuth:e,accessToken:o,methodName:"verify",links:s});return await n(t)})}}const Zi=async(e,t)=>await Ri(e,{url:"/idp/myaccount/phones",method:"GET",accessToken:null==t?void 0:t.accessToken},Xi),er=async(e,t)=>{const{accessToken:n,id:o}=t;return await Ri(e,{url:`/idp/myaccount/phones/${o}`,method:"GET",accessToken:n},Xi)},tr=async(e,t)=>{const{accessToken:n,payload:o}=t;return await Ri(e,{url:"/idp/myaccount/phones",method:"POST",payload:o,accessToken:n},Xi)},nr=async(e,t)=>{const{id:n,accessToken:o}=t;return await Ri(e,{url:`/idp/myaccount/phones/${n}`,method:"DELETE",accessToken:o})},or=async(e,t)=>{const{accessToken:n,id:o,payload:i}=t;return await Ri(e,{url:`/idp/myaccount/phones/${o}/challenge`,method:"POST",payload:i,accessToken:n})},ir=async(e,t)=>{const{id:n,payload:o,accessToken:i}=t;return await Ri(e,{url:`/idp/myaccount/phones/${n}/verify`,method:"POST",payload:o,accessToken:i})};class rr extends Ni{constructor(e,t){super(e,t);const{res:n,accessToken:o}=t,{id:i,status:r,created:a,lastUpdated:s,_links:l}=n;this.id=i,this.status=r,this.created=a,this.lastUpdated=s,this.status==ji.NOT_ENROLLED?this.enroll=async t=>{const n=Ii({oktaAuth:e,accessToken:o,methodName:"enroll",links:l},rr);return await n(t)}:(this.get=async()=>{const t=Ii({oktaAuth:e,accessToken:o,methodName:"get",links:l},rr);return await t()},this.update=async t=>{const n=Ii({oktaAuth:e,accessToken:o,methodName:"put",links:l},rr);return await n(t)},this.delete=async()=>{const t=Ii({oktaAuth:e,accessToken:o,methodName:"delete",links:l});return await t()})}}const ar=async(e,t)=>await Ri(e,{url:"/idp/myaccount/password",method:"GET",accessToken:null==t?void 0:t.accessToken},rr),sr=async(e,t)=>{const{accessToken:n,payload:o}=t;return await Ri(e,{url:"/idp/myaccount/password",method:"POST",payload:o,accessToken:n},rr)},lr=async(e,t)=>{const{accessToken:n,payload:o}=t;return await Ri(e,{url:"/idp/myaccount/password",method:"PUT",payload:o,accessToken:n},rr)},cr=async(e,t)=>await Ri(e,{url:"/idp/myaccount/password",method:"DELETE",accessToken:null==t?void 0:t.accessToken});function ur(e,t){var n={};
2return Object.assign(n,t),!n.stateToken&&e.stateToken&&(n.stateToken=e.stateToken),n}function pr(e,t){return t=ur(e,t),Ee(e,e.getIssuerOrigin()+"/api/v1/authn",t,{withCredentials:!0})}function dr(e){return!!fr(e)}function hr(e,t,n,o,i){return Ee(e,n,o,i=Object.assign({withCredentials:!0},i)).then(function(e){return t.createTransaction(e)})}function fr(e){return e.options.storageUtil.storage.get(U)}function mr(e,t,n,o,i,r){if(Array.isArray(i))return function(a,s){if(!a)throw new N("Must provide a link name");var l=v(i,{name:a});if(!l)throw new N("No link found for that name");return mr(e,t,n,o,l,r)(s)};if(i.hints&&i.hints.allow&&1===i.hints.allow.length)switch(i.hints.allow[0]){case"GET":return function(){return Te(e,i.href,{withCredentials:!0})};case"POST":return function(a){r&&r.isPolling&&(r.isPolling=!1);var s=ur(n,a);"MFA_ENROLL"!==n.status&&"FACTOR_ENROLL"!==n.status||Object.assign(s,{factorType:o.factorType,provider:o.provider});var l={},c=s.autoPush;if(void 0!==c){if("function"==typeof c)try{l.autoPush=!!c()}catch(e){return Promise.reject(new N("AutoPush resulted in an error."))}else null!==c&&(l.autoPush=!!c);s=y(s,"autoPush")}var u=s.rememberDevice;if(void 0!==u){if("function"==typeof u)try{l.rememberDevice=!!u()}catch(e){return Promise.reject(new N("RememberDevice resulted in an error."))}else null!==u&&(l.rememberDevice=!!u);s=y(s,"rememberDevice")}else s.profile&&void 0!==s.profile.updatePhone&&(s.profile.updatePhone&&(l.updatePhone=!0),s.profile=y(s.profile,"updatePhone"));var p=i.href+A(l);return hr(e,t,p,s)}}}class gr extends w{constructor(){super("The poll was stopped by the sdk")}}function yr(e,t,n){return function(o){var i,r,a,s,l;l=o,"[object Number]"===Object.prototype.toString.call(l)?i=o:k(o)&&(i=o.delay,r=o.rememberDevice,a=o.autoPush,s=o.transactionCallBack),i||0===i||(i=j);var c=b(t,"next","poll");n.isPolling=!0;var u=0,p=function(){return n.isPolling?function(){var n={};if("function"==typeof a)try{n.autoPush=!!a()}catch(e){return Promise.reject(new N("AutoPush resulted in an error."))}else null!=a&&(n.autoPush=!!a);if("function"==typeof r)try{n.rememberDevice=!!r()}catch(e){return Promise.reject(new N("RememberDevice resulted in an error."))}else null!=r&&(n.rememberDevice=!!r);var o=c.href+A(n);return Ee(e,o,function(e){return ur(e)}(t),{saveAuthnState:!1,withCredentials:!0,pollingIntent:!0})}().then(function(t){if(u=0,t.factorResult&&"WAITING"===t.factorResult){if(!n.isPolling)throw new gr;return"function"==typeof s&&s(t),E(i).then(p)}return n.isPolling=!1,e.tx.createTransaction(t)}).catch(function(e){if(e.xhr&&(0===e.xhr.status||429===e.xhr.status)&&u<=4){var t=1e3*Math.pow(2,u);return u++,E(t).then(p)}throw e}):Promise.reject(new gr)};return p().catch(function(e){throw n.isPolling=!1,e})}}function vr(e,t,n,o,i){if(o=g(o=o||n),Array.isArray(o)){for(var r=[],a=0,s=o.length;a<s;a++)r.push(vr(e,t,n,o[a],i));return r}var l=o._embedded||{};for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(k(l[c])||Array.isArray(l[c]))&&(l[c]=vr(e,t,n,l[c],i));var u=function(e,t,n,o,i){var r={};for(var a in o._links)if(Object.prototype.hasOwnProperty.call(o._links,a)){var s=o._links[a];if("next"===a&&(a=s.name),s.type)r[a]=s;else if("poll"===a)r.poll=yr(e,n,i);else{var l=mr(e,t,n,o,s,i);l&&(r[a]=l)}}return r}(e,t,n,o,i);return Object.assign(l,u),o=y(o,"_embedded","_links"),Object.assign(o,l),o}class br{constructor(e,t,n=null){this.data=void 0,this.status=void 0,n&&(this.data=n,Object.assign(this,vr(e,t,n,n,{})),delete this.stateToken,"RECOVERY_CHALLENGE"!==n.status||n._links||(this.cancel=function(){return Promise.resolve(t.createTransaction())}))}}function wr(e){const t={status:pr.bind(null,e),resume:n=>function(e,t,n){if(!n||!n.stateToken){var o=fr(e);if(!o)return Promise.reject(new N("No transaction to resume"));n={stateToken:o}}return pr(e,n).then(function(e){return t.createTransaction(e)})}(e,t,n),exists:dr.bind(null,e),introspect:n=>function(e,t,n){if(!n||!n.stateToken){var o=fr(e);if(!o)return Promise.reject(new N("No transaction to evaluate"));n={stateToken:o}}return function(e,t){return t=ur(e,t),Ee(e,e.getIssuerOrigin()+"/api/v1/authn/introspect",t,{withCredentials:!0})}(e,n).then(function(e){return t.createTransaction(e)})}
2(e,t,n),createTransaction:n=>new br(e,t,n),postToTransaction:(n,o,i)=>hr(e,t,n,o,i)};return t}function _r(e){return class extends e{constructor(...e){super(...e),this.authn=this.tx=wr(this),this.fingerprint=di.bind(null,this)}async signIn(e){e=g(e||{});const t=t=>(delete e.sendFingerprint,this.tx.postToTransaction("/api/v1/authn",e,t));return e.sendFingerprint?this.fingerprint().then(function(e){return t({headers:{"X-Device-Fingerprint":e}})}):t()}async signInWithCredentials(e){return this.signIn(e)}forgotPassword(e){return this.tx.postToTransaction("/api/v1/authn/recovery/password",e)}unlockAccount(e){return this.tx.postToTransaction("/api/v1/authn/recovery/unlock",e)}verifyRecoveryToken(e){const{multiOptionalFactorEnroll:t}=e,n=He(e,["multiOptionalFactorEnroll"]);return t&&(n.options={multiOptionalFactorEnroll:t}),this.tx.postToTransaction("/api/v1/authn/recovery/token",n)}}}const kr=xi(),xr=function(e,t,n){return vi(function(e,t,n){const o=function(e){return class extends e{constructor(...e){super(...e),this.authStateManager=new Go(this),this.serviceManager=new ri(this,this.options.services)}async start(){await this.serviceManager.start(),this.tokenManager.start(),this.token.isLoginRedirect()||await this.authStateManager.updateAuthState()}async stop(){this.tokenManager.stop(),await this.serviceManager.stop()}async handleRedirect(e){await this.handleLoginRedirect(void 0,e)}async handleLoginRedirect(e,t){let n=this.options.state;if(e)this.tokenManager.setTokens(e),t=t||this.getOriginalUri(this.options.state);else{if(!this.isLoginRedirect())return;try{n=(await ko(this,{})).state,t=t||this.getOriginalUri(n),await this.storeTokensFromRedirect()}catch(e){throw await this.authStateManager.updateAuthState(),e}}await this.authStateManager.updateAuthState(),this.removeOriginalUri(n);const{restoreOriginalUri:o}=this.options;o?await o(this,t):t&&window.location.replace(t)}handleIDPPopupRedirect(e=window.location.href){const t=ko(this,{responseMode:"query",url:e});if(!t.state)throw new N("Unable to parse auth code params");{const e=new BroadcastChannel(`popup-callback:${t.state}`);e.postMessage(t),e.close()}}}}(Ho(pi(In(Pn(An(t),e))),n));return o}(e,t,n))}(Ci(),kr,Pi()),Sr=(Tr=xr,class extends Tr{constructor(...e){super(...e),this.myaccount=Object.entries(p).filter(([e])=>"default"!==e).reduce((e,[t,n])=>(e[t]=n.bind(null,this),e),{})}});var Tr;_r(Sr);const Er=xi(),Cr=function(e,t,n){return Ho(pi(In(Pn(An(t),e))),n)}(Ci(),Er,Pi()),Or=_r(vi(Cr));var Ar="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr={exports:{}};Nr.exports=function(){var e="1.13.8",t="object"==typeof self&&self.self===self&&self||"object"==typeof Ar&&Ar.global===Ar&&Ar||Function("return this")()||{},n=Array.prototype,o=Object.prototype,i="undefined"!=typeof Symbol?Symbol.prototype:null,r=n.push,a=n.slice,s=o.toString,l=o.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,p=Array.isArray,d=Object.keys,h=Object.create,f=c&&ArrayBuffer.isView,m=isNaN,g=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),v=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],b=Math.pow(2,53)-1;function w(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),o=Array(n),i=0;i<n;i++)o[i]=arguments[i+t];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,arguments[0],o);case 2:return e.call(this,arguments[0],arguments[1],o)}var r=Array(t+1);for(i=0;i<t;i++)r[i]=arguments[i];return r[t]=o,e.apply(this,r)}}function _(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function k(e){return void 0===e}function x(e){return!0===e||!1===e||"[object Boolean]"===s.call(e)}function S(e){var t="[object "+e+"]";return function(e){return s.call(e)===t}}var T=S("String"),E=S("Number"),C=S("Date"),O=S("RegExp"),A=S("Error"),P=S("Symbol"),N=S("ArrayBuffer"),R=S("Function"),I=t.document&&t.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof I&&(R=function(e){return"function"==typeof e||!1});var D=R,L=S("Object"),M=u&&(!/\[native code\]/.test(String(DataView))||L(new DataView(new ArrayBuffer(8)))
vendor: 20,948 bytes, line 2
2),U="undefined"!=typeof Map&&L(new Map),j=S("DataView"),F=M?function(e){return null!=e&&D(e.getInt8)&&N(e.buffer)}:j,V=p||S("Array");function q(e,t){return null!=e&&l.call(e,t)}var B=S("Arguments");!function(){B(arguments)||(B=function(e){return q(e,"callee")})}();var $=B;function H(e){return E(e)&&m(e)}function z(e){return function(){return e}}function W(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=b}}function K(e){return function(t){return null==t?void 0:t[e]}}var G=K("byteLength"),Y=W(G),J=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,Q=c?function(e){return f?f(e)&&!F(e):Y(e)&&J.test(s.call(e))}:z(!1),X=K("length");function Z(e,t){t=function(e){for(var t={},n=e.length,o=0;o<n;++o)t[e[o]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=v.length,i=e.constructor,r=D(i)&&i.prototype||o,a="constructor";for(q(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=v[n])in e&&e[a]!==r[a]&&!t.contains(a)&&t.push(a)}function ee(e){if(!_(e))return[];if(d)return d(e);var t=[];for(var n in e)q(e,n)&&t.push(n);return y&&Z(e,t),t}function te(e,t){var n=ee(t),o=n.length;if(null==e)return!o;for(var i=Object(e),r=0;r<o;r++){var a=n[r];if(t[a]!==i[a]||!(a in i))return!1}return!0}function ne(e){return e instanceof ne?e:this instanceof ne?void(this._wrapped=e):new ne(e)}function oe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,G(e))}ne.VERSION=e,ne.prototype.value=function(){return this._wrapped},ne.prototype.valueOf=ne.prototype.toJSON=ne.prototype.value,ne.prototype.toString=function(){return String(this._wrapped)};var ie="[object DataView]";function re(e){if(!_(e))return[];var t=[];for(var n in e)t.push(n);return y&&Z(e,t),t}function ae(e){var t=X(e);return function(n){if(null==n)return!1;var o=re(n);if(X(o))return!1;for(var i=0;i<t;i++)if(!D(n[e[i]]))return!1;return e!==pe||!D(n[se])}}var se="forEach",le=["clear","delete"],ce=["get","has","set"],ue=le.concat(se,ce),pe=le.concat(ce),de=["add"].concat(le,se,"has"),he=U?ae(ue):S("Map"),fe=U?ae(pe):S("WeakMap"),me=U?ae(de):S("Set"),ge=S("WeakSet");function ye(e){for(var t=ee(e),n=t.length,o=Array(n),i=0;i<n;i++)o[i]=e[t[i]];return o}function ve(e){for(var t={},n=ee(e),o=0,i=n.length;o<i;o++)t[e[n[o]]]=n[o];return t}function be(e){var t=[];for(var n in e)D(e[n])&&t.push(n);return t.sort()}function we(e,t){return function(n){var o=arguments.length;if(t&&(n=Object(n)),o<2||null==n)return n;for(var i=1;i<o;i++)for(var r=arguments[i],a=e(r),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=r[c])}return n}}var _e=we(re),ke=we(ee),xe=we(re,!0);function Se(e){if(!_(e))return{};if(h)return h(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Te(e){return V(e)?e:[e]}function Ee(e){return ne.toPath(e)}function Ce(e,t){for(var n=t.length,o=0;o<n;o++){if(null==e)return;e=e[t[o]]}return n?e:void 0}function Oe(e,t,n){var o=Ce(e,Ee(t));return k(o)?n:o}function Ae(e){return e}function Pe(e){return e=ke({},e),function(t){return te(t,e)}}function Ne(e){return e=Ee(e),function(t){return Ce(t,e)}}function Re(e,t,n){if(void 0===t)return e;switch(n??3){case 1:return function(n){return e.call(t,n)};case 3:return function(n,o,i){return e.call(t,n,o,i)};case 4:return function(n,o,i,r){return e.call(t,n,o,i,r)}}return function(){return e.apply(t,arguments)}}function Ie(e,t,n){return null==e?Ae:D(e)?Re(e,t,n):_(e)&&!V(e)?Pe(e):Ne(e)}function De(e,t){return Ie(e,t,1/0)}function Le(e,t,n){return ne.iteratee!==De?ne.iteratee(e,t):Ie(e,t,n)}function Me(){}function Ue(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ne.toPath=Te,ne.iteratee=De;var je=Date.now||function(){return(new Date).getTime()};function Fe(e){var t=function(t){return e[t]},n="(?:"+ee(e).join("|")+")",o=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,o.test(e)?e.replace(i,t):e}}var Ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qe=Fe(Ve),Be=Fe(ve(Ve)),$e=ne.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},He=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},We=/\\|'|\r|\n|\u2028|\u2029/g;function Ke(e){return"\\"+ze[e]}var Ge=/^\s*(\w|\$)+\s*$/,Ye=0;function Je(e,t,n,o,i){if(!(o instanceof t))return e.apply(n,i);var r=Se(e.prototype),a=e.apply(r,i);return _(a)?a:r}var Qe=w(function(e,t){var n=Qe.placeholder,o=function(){for(var i=0,r=t.length,a=Array(r),s=0;s<r;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return Je(e,o,this,this,a)};return o});Qe.placeholder=ne;var Xe=w(function(e,t,n){if(!D(e))throw new TypeError("Bind must be called on a function");var o=w(function(i){return Je(e,o,t,this,n.concat(i))});return o}),Ze=W(X);function et(e,t,n){t||0===t||(t=1/0);for(var o=[],i=0,r=0,a=X(e)||0,s=[];;)if(r>=a){if(!s.length)break;var l=s.pop();r=l.i,e=l.v,a=X(e)}else{var c=e[r++];s.length>=t?o[i++]=c:Ze(c)&&(V(c)||$(c))?(s.push({i:r,v:e}),r=0,a=X(e=c)):n||(o[i++]=c)}return o}var tt=w(function(e,t){var n=(t=et(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var o=t[n];e[o]=Xe(e[o],e)}return e}),nt=w(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),ot=Qe(nt,ne,1);function it(e){return function(){return!e.apply(this,arguments)}}function rt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var at=Qe(rt,2);function st(e,t,n){t=Le(t,n);for(var o,i=ee(e),r=0,a=i.length;r<a;r++)if(t(e[o=i[r]],o,e))return o}function lt(e){return function(t,n,o){n=Le(n,o);for(var i=X(t),r=e>0?0:i-1;r>=0&&r<i;r+=e)if(n(t[r],r,t))return r;return-1}}var ct=lt(1),ut=lt(-1);function pt(e,t,n,o){for(var i=(n=Le(n,o,1))(t),r=0,a=X(e);r<a;){var s=Math.floor((r+a)/2);n(e[s])<i?r=s+1:a=s}return r}function dt(e,t,n){return function(o,i,r){var s=0,l=X(o);if("number"==typeof r)e>0?s=r>=0?r:Math.max(r+l,s):l=r>=0?Math.min(r+1,l):r+l+1;else if(n&&r&&l)return o[r=n(o,i)]===i?r:-1;if(i!=i)return(r=t(a.call(o,s,l),H))>=0?r+s:-1;for(r=e>0?s:l-1;r>=0&&r<l;r+=e)if(o[r]===i)return r;return-1}}var ht=dt(1,ct,pt),ft=dt(-1,ut);function mt(e,t,n){var o=(Ze(e)?ct:st)(e,t,n);if(void 0!==o&&-1!==o)return e[o]}function gt(e,t,n){var o,i;if(t=Re(t,n),Ze(e))for(o=0,i=e.length;o<i;o++)t(e[o],o,e);else{var r=ee(e);for(o=0,i=r.length;o<i;o++)t(e[r[o]],r[o],e)}return e}function yt(e,t,n){t=Le(t,n);for(var o=!Ze(e)&&ee(e),i=(o||e).length,r=Array(i),a=0;a<i;a++){var s=o?o[a]:a;r[a]=t(e[s],s,e)}return r}function vt(e){var t=function(t,n,o,i){var r=!Ze(t)&&ee(t),a=(r||t).length,s=e>0?0:a-1;for(i||(o=t[r?r[s]:s],s+=e);s>=0&&s<a;s+=e){var l=r?r[s]:s;o=n(o,t[l],l,t)}return o};return function(e,n,o,i){var r=arguments.length>=3;return t(e,Re(n,i,4),o,r)}}var bt=vt(1),wt=vt(-1);function _t(e,t,n){var o=[];return t=Le(t,n),gt(e,function(e,n,i){t(e,n,i)&&o.push(e)}),o}function kt(e,t,n){t=Le(t,n);for(var o=!Ze(e)&&ee(e),i=(o||e).length,r=0;r<i;r++){var a=o?o[r]:r;if(!t(e[a],a,e))return!1}return!0}function xt(e,t,n){t=Le(t,n);for(var o=!Ze(e)&&ee(e),i=(o||e).length,r=0;r<i;r++){var a=o?o[r]:r;if(t(e[a],a,e))return!0}return!1}function St(e,t,n,o){return Ze(e)||(e=ye(e)),("number"!=typeof n||o)&&(n=0),ht(e,t,n)>=0}var Tt=w(function(e,t,n){var o,i;return D(t)?i=t:(t=Ee(t),o=t.slice(0,-1),t=t[t.length-1]),yt(e,function(e){var r=i;if(!r){if(o&&o.length&&(e=Ce(e,o)),null==e)return;r=e[t]}return null==r?r:r.apply(e,n)})});function Et(e,t){return yt(e,Ne(t))}function Ct(e,t,n){var o,i,r=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=Ze(e)?e:ye(e)).length;s<l;s++)null!=(o=e[s])&&o>r&&(r=o);else t=Le(t,n),gt(e,function(e,n,o){((i=t(e,n,o))>a||i===-1/0&&r===-1/0)&&(r=e,a=i)});return r}var Ot=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function At(e){return e?V(e)?a.call(e):T(e)?e.match(Ot):Ze(e)?yt(e,Ae):ye(e):[]}function Pt(e,t,n){if(null==t||n)return Ze(e)||(e=ye(e)),e[Ue(e.length-1)];var o=At(e),i=X(o);t=Math.max(Math.min(t,i),0);for(var r=i-1,a=0;a<t;a++){var s=Ue(a,r),l=o[a];o[a]=o[s],o[s]=l}return o.slice(0,t)}function Nt(e,t){return function(n,o,i){var r=t?[[],[]]:{};return o=Le(o,i),gt(n,function(t,i){var a=o(t,i,n);e(r,t,a)}),r}}var Rt=Nt(function(e,t,n){q(e,n)?e[n].push(t):e[n]=[t]}),It=Nt(function(e,t,n){e[n]=t}),Dt=Nt(function(e,t,n){q(e,n)?e[n]++:e[n]=1}),Lt=Nt(function(e,t,n){e[n?0:1].push(t)},!0);function Mt(e,t,n){return t in n}var Ut=w(function(e,t){var n={},o=t[0];if(null==e)return n;D(o)?(t.length>1&&(o=Re(o,t[1])),t=re(e)):(o=Mt,t=et(t,!1,!1),e=Object(e));for(var i=0,r=t.length;i<r;i++){var a=t[i],s=e[a];o(s,a,e)&&(n[a]=s)}return n}),jt=w(function(e,t){var n,o=t[0];return D(o)?(o=it(o),t.length>1&&(n=t[1])):(t=yt(et(t,!1,!1),String),o=function(e,n){return!St(t,n)}),Ut(e,o,n)});function Ft(e,t,n){return a.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Vt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Ft(e,e.length-t)}function qt(e,t,n){return a.call(e,null==t||n?1:t)}var Bt=w(function(e,t){return t=et(t,!0,!0),_t(e,function(e){return!St(t,e)})}),$t=w(function(e,t){return Bt(e,t)});function Ht(e,t,n,o){x(t)||(o=n,n=t,t=!1),null!=n&&(n=Le(n,o));for(var i=[],r=[],a=0,s=X(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&r===c||i.push(l),r=c):n?St(r,c)||(r.push(c),i.push(l)):St(i,l)||i.push(l)}return i}var zt=w(function(e){return Ht(et(e,!0,!0))});function Wt(e){for(var t=e&&Ct(e,X).length||0,n=Array(t),o=0;o<t;o++)n[o]=Et(e,o);return n}var Kt=w(Wt);function Gt(e,t){return e._chain?ne(t).chain():t}function Yt(e){return gt(be(e),function(t){var n=ne[t]=e[t];ne.prototype[t]=function(){var e=[this._wrapped];return r.apply(e,arguments),Gt(this,n.apply(ne,e))}}),ne}gt(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];ne.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Gt(this,n)}}),gt(["concat","join","slice"],function(e){var t=n[e];ne.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Gt(this,e)}});var Jt=Yt({__proto__:null,VERSION:e,restArguments:w,isObject:_,isNull:function(e){return null===e},isUndefined:k,isBoolean:x,isElement:function(e){return!(!e||1!==e.nodeType)},isString:T,isNumber:E,isDate:C,isRegExp:O,isError:A,isSymbol:P,isArrayBuffer:N,isDataView:F,isArray:V,isFunction:D,isArguments:$,isFinite:function(e){return!P(e)&&g(e)&&!isNaN(parseFloat(e))},isNaN:H,isTypedArray:Q,isEmpty:function(e){if(null==e)return!0;var t=X(e);return"number"==typeof t&&(V(e)||T(e)||$(e))?0===t:0===X(ee(e))},isMatch:te,isEqual:function(e,t){for(var n=[{a:e,b:t}],o=[],r=[];n.length;){var a=n.pop();if(!0!==a){if((e=a.a)===(t=a.b)){if(0!==e||1/e==1/t)continue;return!1}if(null==e||null==t)return!1;if(e!=e){if(t!=t)continue;return!1}var l=typeof e;if("function"!==l&&"object"!==l&&"object"!=typeof t)return!1;e instanceof ne&&(e=e._wrapped),t instanceof ne&&(t=t._wrapped);var c=s.call(e);if(c!==s.call(t))return!1;if(M&&"[object Object]"==c&&F(e)){if(!F(t))return!1;c=ie}switch(c){case"[object RegExp]":case"[object String]":if(""+e==""+t)continue;return!1;case"[object Number]":n.push({a:+e,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+e==+t)continue;return!1;case"[object Symbol]":if(i.valueOf.call(e)===i.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case ie:n.push({a:oe(e),b:oe(t)});continue}var u="[object Array]"===c;if(!u&&Q(e)){if(G(e)!==G(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)continue;u=!0}if(!u){if("object"!=typeof e||"object"!=typeof t)return!1;var p=e.constructor,d=t.constructor;if(p!==d&&!(D(p)&&p instanceof p&&D(d)&&d instanceof d)&&"constructor"in e&&"constructor"in t)return!1}for(var h=o.length;h--;)if(o[h]===e){if(r[h]===t)break;return!1}if(!(h>=0))if(o.push(e),r.push(t),n.push(!0),u){if((h=e.length)!==t.length)return!1;for(;h--;)n.push({a:e[h],b:t[h]})}else{var f,m=ee(e);if(h=m.length,ee(t).length!==h)return!1;for(;h--;){if(!q(t,f=m[h]))return!1;n.push({a:e[f],b:t[f]})}}}else o.pop(),r.pop()}return!0},isMap:he,isWeakMap:fe,isSet:me,isWeakSet:ge,keys:ee,allKeys:re,values:ye,pairs:function(e){for(var t=ee(e),n=t.length,o=Array(n),i=0;i<n;i++)o[i]=[t[i],e[t[i]]];return o},invert:ve,functions:be,methods:be,extend:_e,extendOwn:ke,assign:ke,defaults:xe,create:function(e,t){var n=Se(e);return t&&ke(n,t),n},clone:function(e){return _(e)?V(e)?e.slice():_e({},e):e},tap:function(e,t){return t(e),e},get:Oe,has:function(e,t){for(var n=(t=Ee(t)).length,o=0;o<n;o++){var i=t[o];if(!q(e,i))return!1;e=e[i]}return!!n},mapObject:function(e,t,n){t=Le(t,n);for(var o=ee(e),i=o.length,r={},a=0;a<i;a++){var s=o[a];r[s]=t(e[s],s,e)}return r},identity:Ae,constant:z,noop:Me,toPath:Te,property:Ne,propertyOf:function(e){return null==e?Me:function(t){return Oe(e,t)}},matcher:Pe,matches:Pe,times:function(e,t,n){var o=Array(Math.max(0,e));t=Re(t,n,1);for(var i=0;i<e;i++)o[i]=t(i);return o},random:Ue,now:je,escape:qe,unescape:Be,templateSettings:$e,template:function(e,t,n){!t&&n&&(t=n),t=xe({},t,ne.templateSettings);var o=RegExp([(t.escape||He).source,(t.interpolate||He).source,(t.evaluate||He).source].join("|")+"|$","g"),i=0,r="__p+='";e.replace(o,function(t,n,o,a,s){return r+=e.slice(i,s).replace(We,Ke),i=s+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":o?r+="'+\n((__t=("+o+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),t}),r+="';\n";var a,s=t.variable;if(s){if(!Ge.test(s))throw new Error("variable is not a bare identifier: "+s)}else r="with(obj||{}){\n"+r+"}\n",s="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{a=new Function(s,"_",r)}catch(e){throw e.source=r,e}var l=function(e){return a.call(this,e,ne)};return l.source="function("+s+"){\n"+r+"}",l},result:function(e,t,n){var o=(t=Ee(t)).length;if(!o)return D(n)?n.call(e):n;for(var i=0;i<o;i++){var r=null==e?void 0:e[t[i]];void 0===r&&(r=n,i=o),e=D(r)?r.call(e):r}return e},uniqueId:function(e){var t=++Ye+"";return e?e+t:t},chain:function(e){var t=ne(e);return t._chain=!0,t},iteratee:De,partial:Qe,bind:Xe,bindAll:tt,memoize:function(e,t){var n=function(o){var i=n.cache,r=""+(t?t.apply(this,arguments):o);return q(i,r)||(i[r]=e.apply(this,arguments)),i[r]};return n.cache={},n},delay:nt,defer:ot,throttle:function(e,t,n){var o,i,r,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:je(),o=null,a=e.apply(i,r),o||(i=r=null)},c=function(){var c=je();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,r=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=null),s=c,a=e.apply(i,r),o||(i=r=null)):o||!1===n.trailing||(o=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(o),s=0,o=i=r=null},c},debounce:function(e,t,n){var o,i,r,a,s,l=function(){var c=je()-i;t>c?o=setTimeout(l,t-c):(o=null,n||(a=e.apply(s,r)),o||(r=s=null))},c=w(function(c){return s=this,r=c,i=je(),o||(o=setTimeout(l,t),n&&(a=e.apply(s,r))),a});return c.cancel=function(){clearTimeout(o),o=r=s=null},c},wrap:function(e,t){return Qe(t,e)},negate:it,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,o=e[t].apply(this,arguments);n--;)o=e[n].call(this,o);return o}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:rt,once:at,findKey:st,findIndex:ct,findLastIndex:ut,sortedIndex:pt,indexOf:ht,lastIndexOf:ft,find:mt,detect:mt,findWhere:function(e,t){return mt(e,Pe(t))},each:gt,forEach:gt,map:yt,collect:yt,reduce:bt,foldl:bt,inject:bt,reduceRight:wt,foldr:wt,filter:_t,select:_t,reject:function(e,t,n){return _t(e,it(Le(t)),n)},every:kt,all:kt,some:xt,any:xt,contains:St,includes:St,include:St,invoke:Tt,pluck:Et,where:function(e,t){return _t(e,Pe(t))},max:Ct,min:function(e,t,n){var o,i,r=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,l=(e=Ze(e)?e:ye(e)).length;s<l;s++)null!=(o=e[s])&&o<r&&(r=o);else t=Le(t,n),gt(e,function(e,n,o){((i=t(e,n,o))<a||i===1/0&&r===1/0)&&(r=e,a=i)});return r},shuffle:function(e){return Pt(e,1/0)},sample:Pt,sortBy:function(e,t,n){var o=0;return t=Le(t,n),Et(yt(e,function(e,n,i){return{value:e,index:o++,criteria:t(e,n,i)}}).sort(function(e,t){var n=e.criteria,o=t.criteria;if(n!==o){if(n>o||void 0===n)return 1;if(n<o||void 0===o)return-1}return e.index-t.index}),"value")},groupBy:Rt,indexBy:It,countBy:Dt,partition:Lt,toArray:At,size:function(e){return null==e?0:Ze(e)?e.length:ee(e).length},pick:Ut,omit:jt,first:Vt,head:Vt,take:Vt,initial:Ft,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:qt(e,Math.max(0,e.length-t))},rest:qt,tail:qt,drop:qt,compact:function(e){return _t(e,Boolean)},flatten:function(e,t){return et(e,t,!1)},without:$t,uniq:Ht,unique:Ht,union:zt,intersection:function(e){for(var t=[],n=arguments.length,o=0,i=X(e);o<i;o++){var r=e[o];if(!St(t,r)){var a;for(a=1;a<n&&St(arguments[a],r);a++);a===n&&t.push(r)}}return t},difference:Bt,unzip:Wt,transpose:Wt,zip:Kt,object:function(e,t){for(var n={},o=0,i=X(e);o<i;o++)t?n[e[o]]=t[o]:n[e[o][0]]=e[o][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var o=Math.max(Math.ceil((t-e)/n),0),i=Array(o),r=0;r<o;r++,e+=n)i[r]=e;return i},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],o=0,i=e.length;o<i;)n.push(a.call(e,o,o+=t));return n},mixin:Yt,default:ne});return Jt._=Jt,Jt}();var Rr=Nr.exports,Ir={defaultLanguage:"en",version:"7.45.3",supportedLanguages:["en","cs","da","de","el","es","eu","fi","fr","ht","hu","id","in","it","ja","ko","ms","nb","nl-NL","ok-PL","ok-SK","pl","pt-BR","ro","ru","sv","th","tr","uk","vi","zh-CN","zh-TW"]},Dr={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"Virgin Islands, British",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CO:"Colombia",KM:"Comoros",CG:"Congo",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CY:"Cyprus",CZ:"Czech Republic",CD:"Congo, the Democratic Republic of the",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"Timor-Leste",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KR:"Korea, Republic of",XK:"Kosovo, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",KP:"Korea, Democratic People's Republic of",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"São Tomé and Príncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serb
2ia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"Virgin Islands, U.S.",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Holy See (Vatican City State)",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},Lr={signout:"Sign Out",signin:"Sign In",signup:"Sign Up",remember:"Remember me",rememberDevice:"Trust this device","rememberDevice.timebased":"Do not challenge me on this device for the next {0}","rememberDevice.devicebased":"Do not challenge me on this device again",autoPush:"Send push automatically",unlockaccount:"Unlock account?",haveaccount:"Already have an account?",needhelp:"Need help signing in?",forgotpassword:"Forgot password?",help:"Help",retry:"Retry",iphone:"iPhone",android:"Android",goback:"Back to sign in",closeWindow:"You can close this window","country.option.label":"{0} ({1})","phone.extention.label":"Extension","select.default_value":"Select an option","select.filter.no_match":'No results found for "{0}"',"sensitive.input.show":"Show","sensitive.input.hide":"Hide","processing.alt.text":"Processing...","logo.default.alt.text":"Logo","identifier.icon.alt.text":"User","icon.title.application":"Application","icon.title.browser":"Browser","icon.title.mobileBrowser":"Mobile browser","icon.title.location":"Location","icon.title.mobileDevice":"Mobile Device","skip.to.main.content":"Skip to main content","minutes.oneMinute":"minute",minutes:"{0} minutes",hours:"{0} hours",days:"{0} days","error.config":"There was a configuration error","error.required.authParams":'Missing parameters for the configured authentication scheme - "OAUTH2"',"error.required.baseUrl":'"baseUrl" is a required widget parameter',"error.required.success":"A success handler is required","error.required.el":'"el" is a required widget parameter',"error.invalid.colors.brand":'"colors.brand" must be in six-digit hex format',"error.unsupported.browser":"Unsupported browser","error.unsupported.cors":"Unsupported browser - missing CORS support","error.unsupported.localStorage":"Unsupported browser - missing localStorage support","error.enabled.cors":"There was an error sending the request - have you enabled CORS?","error.expired.session":"Your session has expired. Please try to sign in again.","error.mfa.only.expired.session":"Unable to authenticate at this time.","error.auth.lockedOut":"Your account is locked. Please contact your administrator.","error.oauth.idToken":"There was a problem generating the id_token for the user. Please try again.","error.network.connection":"Unable to connect to the server. Please check your network connection.","error.network.policy":"Access was blocked by a network policy. Please ensure your VPN is connected and try again.","error.username.required":"Please enter a username","error.password.required":"Please enter a password","error.mfa.required":"The current sign on policy requires this client to redirect for re-authentication or MFA. Please contact your administrator.","error.unsupported.response":"There was an unsupported response from server.","error.request.timeout":"The request timed out. Please refresh the page and try again.","error.server.internal":"The server encountered an error. Please refresh the page and try again.","error.server.parse":"The server returned an unexpected response. Please refresh the page and try again.","error.jit_failure":"Unable to sign in, please try another sign in method.","error.unsynced.clock":"Unable to sign in. Please check that your device's clock is accurate and try again.","errors.E0000004":"Unable to sign in","errors.E0000069":"Your account is locked because of too many authentication attempts.","errors.E0000047":"You exceeded the maximum number of requests. Try again in a while.","errors.E0000079":"The operation is not allowed. Please refresh the page to proceed.","errors.E0000001":"Api validation failed: {0}
2","errors.E0000002":"The request was not valid: {0}","errors.E0000003":"The request body was not well-formed.","errors.E0000005":"Invalid session","errors.E0000006":"You do not have permission to perform the requested action","errors.E0000007":"Not found: {0}","errors.E0000008":"The requested path was not found","errors.E0000009":"Internal Server Error","errors.E0000010":"Service is in read only mode","errors.E0000011":"Invalid token provided","errors.E0000012":"Unsupported media type","errors.E0000013":"Invalid client app id","errors.E0000015":"You do not have permission to access the feature you are requesting","errors.E0000016":"Activation failed because the user is already active","errors.E0000017":"Password reset failed","errors.E0000018":"Bad request.  Accept and/or Content-Type headers are likely not set.","errors.E0000019":"Bad request.  Accept and/or Content-Type headers likely do not match supported values.","errors.E0000020":"Bad request.","errors.E0000021":"Bad request.  Accept and/or Content-Type headers likely do not match supported values.","errors.E0000022":"The endpoint does not support the provided HTTP method","errors.E0000023":"Operation failed because user profile is mastered under another system","errors.E0000024":"Bad request.  This operation on app metadata is not yet supported.","errors.E0000025":"App version assignment failed.","errors.E0000026":"This endpoint has been deprecated.","errors.E0000027":"Group push bad request : {0}","errors.E0000028":"The request is missing a required parameter.","errors.E0000029":"Invalid paging request.","errors.E0000030":"Bad request. Invalid date. Dates must be of the form yyyy-MM-dd''T''HH:mm:ss.SSSZZ, e.g. 2013-01-01T12:00:00.000-07:00.","errors.E0000031":"Invalid search criteria.","errors.E0000032":"Unlock is not allowed for this user.","errors.E0000033":"Bad request. Can't specify a search query and filter in the same request.","errors.E0000034":"Forgot password not allowed on specified user.","errors.E0000035":"Change password not allowed on specified user.","errors.E0000036":"Change recovery question not allowed on specified user.","errors.E0000037":"Type mismatch exception.","errors.E0000038":"This operation is not allowed in the user''s current status.","errors.E0000039":"Operation on application settings failed.","errors.E0000040":"Application label must not be the same as an existing application label.","errors.E0000041":"Credentials should not be set on this resource based on the scheme.","errors.E0000042":"Setting the error page redirect URL failed.","errors.E0000043":"Self service application assignment is not enabled.","errors.E0000044":"Self service application assignment is not supported.","errors.E0000045":"Field mapping bad request.","errors.E0000046":"Deactivate application for user forbidden.","errors.E0000048":"Entity not found exception.","errors.E0000049":"Invalid SCIM data from SCIM implementation.","errors.E0000050":"Invalid SCIM data from client.","errors.E0000051":"No response from SCIM implementation.","errors.E0000052":"Endpoint not implemented.","errors.E0000053":"Invalid SCIM filter.","errors.E0000054":"Invalid pagination properties.","errors.E0000055":"Duplicate group.","errors.E0000056":"Delete application forbidden.","errors.E0000057":"Access to this application is denied due to a policy.","errors.E0000058":"Access to this application requires MFA: {0}","errors.E0000059":"The connector configuration could not be tested. Make sure that the URL, Authentication Parameters are correct and that there is an implementation available at the URL provided.","errors.E0000060":"Unsupported operation.","errors.E0000061":"Tab error: {0}","errors.E0000062":"The specified user is already assigned to the application.","errors.E0000063":"Invalid combination of parameters specified.","errors.E0000064":"Password is expired and must be changed.","errors.E0000065":"Internal error processing app metadata.","errors.E0000066":"APNS is not configured, contact your admin","errors.E0000067":"Factors Service Error.","errors.E0000070":"Waiting for ACK","errors.E0000071":"Unsupported OS Version: {0}","errors.E0000072":"MIM policy settings have disallowed enrollment for this user","errors.E0000073":"User rejected authentication","errors.E0000074":"Factor Service Error","errors.E0000075":"Cannot modify the {0} attribute because it has a field mapping and profile push is enabled.","errors.E0000076":"Cannot modify the app user because it is mastered by an external app.","errors.E0000077":"C
2annot modify the {0} attribute because it is read-only.","errors.E0000078":"Cannot modify the {0} attribute because it is immutable.","errors.E0000081":"Cannot modify the {0} attribute because it is a reserved attribute for this application.","errors.E0000082":"Each code can only be used once. Please wait for a new code and try again.","errors.E0000083":"PassCode is valid but exceeded time window.","errors.E0000084":"App evaluation error.","errors.E0000085":"You do not have permission to access your account at this time.","errors.E0000086":"This policy cannot be activated at this time.","errors.E0000087":"The recovery question answer did not match our records.","errors.E0000090":"The role specified is already assigned to the user.","errors.E0000091":"The provided role type was not the same as required role type.","errors.E0000092":"Access to this application requires re-authentication: {0}","errors.E0000093":"Target count limit exceeded","errors.E0000094":"The provided filter is unsupported.","errors.E0000095":"Recovery not allowed for unknown user.","errors.E0000096":"This certificate has already been uploaded with kid={0}.","errors.E0000097":"There is no verified phone number on file.","errors.E0000098":"This phone number is invalid.","errors.E0000099":"Only numbers located in US and Canada are allowed.  Contact your administrator if this is a problem.","errors.E0000100":"Unable to perform search query.","errors.E0000101":"Upload failed because of a problem with your ipa file, {0}","errors.E0000102":"YubiKey cannot be deleted while assigned to an user. Please deactivate YubiKey using reset MFA and try again","errors.E0000103":"Action on device already in queue or in progress","errors.E0000104":"Device is already locked and cannot be locked again","errors.E0000105":"You have accessed an account recovery link that has expired or been previously used.","errors.E0000106":"Wait for token to change, then enter the new tokencode.","errors.E0000107":"The entity is not in the expected state for the requested transition.","errors.E0000109":"An SMS message was recently sent. Please wait 30 seconds before trying again.","errors.E0000110":"You have accessed a link that has expired or has been previously used.","errors.E0000111":"Cannot modify the {0} object because it is read-only.","errors.E0000112":"Cannot update this user because they are still being activated. Please try again in a few minutes.","errors.E0000113":"{0}.","errors.E0000114":"A user with this login already exists in the current organization.","errors.E0000115":"Upload failed, {0}","errors.E0000116":"{0}","errors.E0000119":"Your account is locked. Please contact your administrator.","errors.E0000124":"Could not create user. To create a user and expire their password immediately, a password must be specified","errors.E0000125":'Could not create user. To create a user and expire their password immediately, "activate" must be true',"errors.E0000133":"A phone call was recently made. Please wait 30 seconds before trying again.","errors.E0000207":"The username and/or the password you entered is incorrect. Please try again.","oform.next":"Next","oform.verify":"Verify","oform.send":"Send","oform.back":"Back","oform.title.authenticate":"Authenticate","oform.save":"Save","oform.cancel":"Cancel","oform.edit":"Edit","oform.previous":"Previous","oform.error.icon.ariaLabel":"Error","oform.errorbanner.title":"We found some errors. Please review the form and make corrections.","oform.errormsg.title":"Please review the form to correct the following errors:","oform.error.unexpected":"There was an unexpected internal error. Please try again.","oform.error.webfinger":"Unable to determine user identification method. Please contact your administrator for assistance.","oform.selectInput.country":"{0} selected","model.validation.field.blank":"This field cannot be left blank","model.validation.field.wrong.type":"This field is of the wrong type","model.validation.field.invalid":"This field has an invalid value","model.validation.field.value.not.allowed":"This field value is not allowed","model.validation.field.array.minItems":"This array does not have enough items","model.validation.field.array.maxItems":"This array contains too many items","model.validation.field.array.unique":"This array can only have unique values","model.validation.field.string.minLength":"This field cannot be less than the minimum required characters","model.validation.field.string.maxLength":"This field cannot exceed the maximum allowed characters","model.validation.field.invalid.format.email":"This value is not a valid email address","model.validation.field.invalid.format.uri":"This value is not a valid URI","model.validation.field.invalid.format.ipv4":"This value is not a valid IPv4 address","model.validation.field.invalid.format.hostname":"This value is not a valid hostname","model.validation.field.username":"Please check your username","schema.validation.field.value.must.string":"Value must be a string","schema.validation.field.value.must.number":"Value must be a number","schema.validation.field.value.must.integer":"Value must be an integer","schema.validation.field.value.must.object":"Value must be an object","universal-directory.profiles.attribute.source.oktamastered":"Inherit from Okta","universal-directory.profiles.attribute.source.override":"Override profile source","universal-directory.profiles.attribute.form.union.disable.display":"Combine values across groups","universal-directory.profiles.attribute.source.inherit":"Inherit from profile source","universal-directory.profiles.attribute.enduser.permission.readonly":"Read Only","universal-directory.profiles.attribute.enduser.permission.hide":"Hide","universal-directory.profiles.attribute.enduser.permission.readwrite":"Read-Write","universal-directory.profiles.attribute.form.union.enable.display":"Use Group Priority","factor.totpSoft.oktaVerify":"Okta Verify","factor.totpSoft.googleAuthenticator":"Google Authenticator","factor.totpSoft.description":"Enter single-use code from the mobile app.","factor.totpHard.rsaSecurId":"RSA SecurID","factor.totpHard.symantecVip":"Symantec VIP","factor.totpHard.description":"Enter a single-use code from a hardware token.","factor.totpHard.yubikey":"YubiKey","factor.totpHard.yubikey.description":"Insert your YubiKey and tap it to get a verification code.","factor.totpHard.yubikey.placeholder":"Click here, then tap your YubiKey","factor.oktaVerifyPush":"Okta Verify","factor.push.description":"Use a push notification sent to the mobile app.","factor.duo":"Duo Security","factor.duo.description":"Use Push Notification, SMS, or Voice call to authenticate.","factor.sms":"SMS Authentication","factor.sms.description":"Enter a single-use code sent to your mobile phone.","factor.sms.time.warning":"Haven't received an SMS? To try again, click <$1>Re-send code</$1>.","factor.call":"Voice Call Authentication","factor.call.description":"Use a phone to authenticate by following voice instructions.","factor.call.time.warning":"Haven't received a voice call? To try again, click <$1>Redial</$1>.","factor.securityQuestion":"Security Question","factor.securityQuestion.description":"Use the answer to a security question to authenticate.","factor.windowsHello":"Windows Hello","factor.windowsHello.signin.description":"Sign in to Okta using Windows Hello.","factor.windowsHello.signin.description.generic":"Sign in using Windows Hello.","factor.windowsHello.signin.description.specific":"Sign in to {0} using Windows Hello.","factor.u2f":"Security Key (U2F)","factor.u2f.description":"Use a Universal 2nd Factor (U2F) security ke
2y to sign on to Okta.","factor.u2f.description.generic":"Use a Universal 2nd Factor (U2F) security key to sign in.","factor.u2f.description.specific":"Use a Universal 2nd Factor (U2F) security key to sign in to {0}.","factor.email":"Email Authentication","factor.email.description":"Enter a verification code sent to your email.","factor.password":"Password","factor.customFactor.description":"Redirect to a third party MFA provider to sign in to Okta.","factor.customFactor.description.generic":"Redirect to a third party MFA provider to sign in.","factor.customFactor.description.specific":"Redirect to a third party MFA provider to sign in to {0}.","factor.webauthn.biometric":"Security Key or Biometric Authenticator","factor.webauthn.biometric.description":"Use a security key (USB or bluetooth) or a biometric authenticator (Windows Hello, Touch ID, etc.)","factor.hotp.description":"Enter a single-use code from an authenticator.","mfa.challenge.verify":"Verify","mfa.challenge.answer.placeholder":"Answer","mfa.challenge.answer.tooltip":"Answer","mfa.challenge.answer.showAnswer":"Show","mfa.challenge.answer.hideAnswer":"Hide","mfa.challenge.enterCode.placeholder":"Enter Code","mfa.challenge.enterCode.tooltip":"Enter Code","mfa.challenge.password.placeholder":"Password","mfa.backToFactors":"Back to factor list","mfa.enroll":"Enroll","mfa.setupOptions":"Setup Options","mfa.country":"Country/region","mfa.phoneNumber.placeholder":"Phone number","mfa.phoneNumber.ext.placeholder":"Extension","mfa.sendCode":"Send code","mfa.sent":"Sent","mfa.resendCode":"Re-send code","mfa.call":"Call","mfa.calling":"Calling","mfa.redial":"Redial","mfa.sendEmail":"Send email","mfa.resendEmail":"Re-send email","mfa.scanBarcode":"Scan QR code","mfa.altQrCode":"QR code. If you can't scan, click on the link below to select an alternative activation method","mfa.noAccessToEmail":"Can't access email","password.reset":"Reset Password","password.oldPassword.placeholder":"Old password","password.oldPassword.tooltip":"Old password","password.newPassword.placeholder":"New password","password.newPassword.tooltip":"New password","password.confirmPassword.placeholder":"Repeat password","password.confirmPassword.tooltip":"Repeat password","password.error.match":"New passwords must match","password.enroll.error.match":"Passwords must match","recovery.sms.hint":"SMS can only be used if a mobile phone number has been configured.","recovery.mobile.hint":"{0} can only be used if a mobile phone number has been configured.","recovery.sms":"SMS","recovery.call":"Voice Call","recovery.smsOrCall":"SMS or Voice Call","verify.choices.description":"Verify with one of the following factors.","email.button.send":"Send me the code","email.button.resend":"Send again","email.code.label":"Verification code","email.code.not.received":"Haven't received an email?","email.enroll.title":"Set up Email Authentication","email.enroll.description":"Send a verification code to your registered email.","email.enroll.enterCode":"Enter code","email.link.terminal.msg":"To finish signing in, return to the screen where you requested the email link.","email.mfa.title":"Verify with Email Authentication","email.mfa.description":"Send a verification code to {0}.","email.mfa.email.sent.description":"A verification code was sent to {0}. Check your email and enter the code below.","email.mfa.email.sent.description.sentText":"A verification code was sent to","email.mfa.email.sent.description.emailCodeText":"Check your email and enter the code below.","email.unregistered_email.error":"Enter the email where you received the Welcome instructions from your administrator.","enroll.choices.title":"Set up multifactor authentication","enroll.choices.description":"Your company requires multifactor authentication to add an additional layer of security when signing in to your Okta account","enroll.choices.description.generic":"Your company requires multifactor authentication to add an additional layer of security when signing in to your account","enroll.choices.description.specific":"Your company requires multifactor authentication to add an additional layer of security when signing in to your {0} account","enroll.choices.description.gracePeriod.bold":"Your company recommends setting up additional factors for authentication. Set up will be required in: <b>{0} day(s)</b>.","enroll.choices.description.gracePeriod.oneDay.bold":"Your company recommends setting up additional factors for authentication. Set up will be required in: <b>less than 1 day</b>.","enroll.choices.optional":"You can configure any additional optional factor or click finish","enroll.choices.list.setup":"Setup required","enroll.choices.list.enrolled":"Enrolled factors","enroll.choices.list.optional":"Additional optional factors","enroll.choices.setup":"Setup","enroll.choices.setup.another":"Set up another","enroll.choices.submit.finish":"Finish","enroll.choices.submit.configure":"Configure factor","enroll.choices.submit.next":"C
2onfigure next factor","enroll.choices.cardinality.setup":"({0} set up)","enroll.choices.cardinality.setup.remaining":"({0} of {1} set up)","enroll.choices.setup.skip":"Skip set up","enroll.securityQuestion.setup":"Setup secret question authentication","security.disliked_food":"What is the food you least liked as a child?","security.name_of_first_plush_toy":"What is the name of your first stuffed animal?","security.first_award":"What did you earn your first medal or award for?","security.favorite_security_question":"What is your favorite security question?","security.favorite_toy":"What is the toy/stuffed animal you liked the most as a kid?","security.first_computer_game":"What was the first computer game you played?","security.favorite_movie_quote":"What is your favorite movie quote?","security.first_sports_team_mascot":"What was the mascot of the first sports team you played on?","security.first_music_purchase":"What music album or song did you first purchase?","security.favorite_art_piece":"What is your favorite piece of art?","security.grandmother_favorite_desert":"What was your grandmother's favorite dessert?","security.first_thing_cooked":"What was the first thing you learned to cook?","security.childhood_dream_job":"What was your dream job as a child?","security.first_kiss_location":"Where did you have your first kiss?","security.place_where_significant_other_was_met":"Where did you meet your spouse/significant other?","security.favorite_vacation_location":"Where did you go for your favorite vacation?","security.new_years_two_thousand":"Where were you on New Year's Eve in the year 2000?","security.favorite_speaker_actor":"Who is your favorite speaker/orator?","security.favorite_book_movie_character":"Who is your favorite book/movie character?","security.favorite_sports_player":"Who is your favorite sports player?","enroll.password.setup":"Select a password","save.password":"Save password","enroll.sms.setup":"Receive a code via SMS to authenticate","enroll.sms.try_again":"The number you entered seems invalid. If the number is correct, please try again.","enroll.call.setup":"Follow phone call instructions to authenticate","enroll.onprem.username.placeholder":"Enter {0} username","enroll.onprem.username.tooltip":"Enter {0} username","enroll.onprem.passcode.placeholder":"Enter {0} passcode","enroll.onprem.passcode.tooltip":"Enter {0} passcode","enroll.symantecVip.subtitle":"Enter Credential ID and two consecutive generated codes","enroll.symantecVip.credentialId.placeholder":"Enter credential ID","enroll.symantecVip.credentialId.tooltip":"Enter credential ID","enroll.symantecVip.passcode1.placeholder":"Security code 1","enroll.symantecVip.passcode1.tooltip":"Security code 1","enroll.symantecVip.passcode2.placeholder":"Security code 2","enroll.symantecVip.passcode2.tooltip":"Security code 2","enroll.yubikey.title":"Setup YubiKey","enroll.yubikey.subtitle":"Insert your YubiKey into a USB port and tap it to generate a verification code","enroll.totp.title":"Setup {0}","enroll.totp.selectDevice":"Select your device type","enroll.totp.downloadApp":'Download <a href="{0}" class="inline-link">{1} from the {2}</a> onto your mobile device.',"enroll.hotp.restricted":"Contact your administrator to continue enrollment.","enroll.duo.title":"Setup Duo Security","enroll.windowsHello.title":"Enroll Windows Hello","enroll.windowsHello.subtitle":"Click below to enroll Windows Hello as a second form of authentication","enroll.windowsHello.subtitle.loading":"Please wait while Windows Hello is loading...","enroll.windowsHello.save":"Enroll Windows Hello","enroll.windowsHello.error.notWindows":"Windows Hello can only be used on Windows Edge with Windows 10. Contact your admin for assistance.","enroll.windowsHello.error.notConfiguredHtml":"Windows Hello is not configured. Select the <b>Start</b> button, then select <b>Settings</b> - <b>Accounts</b> - <b>Sign-in</b> to configure Windows Hello.","verify.windowsHello.subtitle":"Verify your identity with Windows Hello","verify.windowsHello.subtitle.loading":"Please wait while Windows Hello is loading...","verify.windowsHello.subtitle.signingIn":"Signing in to Okta...","verify.windowsHello.subtitle.signingIn.generic":"Signing in...","verify.windowsHello.subtitle.signingIn.specific":"Signing in to {0}...","verify.windowsHello.save":"Verify with Windows Hello","verify.windowsHello.error.notFound":"Your Windows Hello enrollment does not match our records. Contact your administrator for assistance.","verify.windowsHello.error.notFound.selectAnother":"Your Windows Hello enrollment does not match our records. Select another factor or contact your administrator for assistance.","enroll.u2f.title":"Setup Security Key (U2F)","enroll.u2f.save":"Register Security Key","enroll.u2f.general2":"Make sure you have a Security Key. If already inserted, remove it now.<br>If you have a Bluetooth Security Key, turn on your computer's Bluetooth.","enroll.u2f.general3":"Click the button below to register","enroll.u2f.instructions":"Insert your Security Key into a USB port on this computer. If it has a button or gold disk, tap it.","enroll.u2f.instructionsBluetooth":"If you are using a Bluetooth Security Key, press the button.","u2f.error.factorNotSupported":"Security Key (U2F) is not supported on this browser. Select another factor or contact your admin for assistance.","u2f.error.factorNotSupported.oneFactor":"Security Key (U2F) is not supported on this browser. Contact your admin for assistance.","u2f.error.other":"An unknown error has occured. Try again or select another factor.","u2f.error.other.oneFactor":"An unknown error has occured. Try again or c
2ontact your admin for assistance.","u2f.error.badRequest":"There was an error with the U2F request. Try again or select another factor.","u2f.error.badRequest.oneFactor":"There was an error with the U2F request. Try again or contact your admin for assistance.","u2f.error.unsupported":"The security key is unsupported. Select another factor.","u2f.error.unsupported.oneFactor":"The security key is unsupported. Contact your admin for assistance.","u2f.error.timeout":"You have timed out of the authentication period. Please try again.","verify.u2f.instructions":"Insert your Security Key. If it has a button or gold disk, tap it.","verify.u2f.instructionsBluetooth":"If you are using a Bluetooth Security Key, turn on your computer's Bluetooth and press the button.","verify.u2f.retry":"Retry","enroll.customFactor.subtitle":"Clicking below will redirect to MFA enrollment with {0}","enroll.customFactor.save":"Enroll","verify.customFactor.subtitle":"Clicking below will redirect to verification with {0}","verify.customFactor.subtitle.redirect":"Redirecting to {0}...","enroll.webauthn.biometric.title":"Set up security key or biometric authenticator","enroll.webauthn.save":"Enroll","enroll.webauthn.biometric.instructions":"Your browser will prompt to register a security key or biometric authenticator (Windows Hello, Touch ID, etc.). Follow the instructions to complete enrollment.","enroll.webauthn.biometric.instructions.edge":"Note: If you are enrolling a security key and Windows Hello or PIN is enabled, you will need to select '<b>Cancel</b>' in the prompt before continuing.","verify.webauthn.biometric.instructions":"Your browser or device will prompt you to verify with a security key or biometric authenticator. Follow the instructions to complete authentication.","webauthn.biometric.error.factorNotSupported":"Security key or biometric authenticator is not supported on this browser. Select another factor or contact your admin for assistance.","webauthn.biometric.error.factorNotSupported.oneFactor":"Security key or biometric authenticator is not supported on this browser. Contact your admin for assistance.","enroll.webauthn.instructions.noSupportForBiometric":"Note: Some browsers may not support biometric authenticators.","authfactor.webauthn.error":"You are currently unable to use a Security key or biometric authenticator. Try again.","passkeys.authfactor.webauthn.error":"You are currently unable to use a passkey. Try again.","enroll.totp.enterCode":"Enter code displayed from the application","enroll.totp.setupApp":"Launch {0} on your mobile device and select “Add an account”. Scan the QR code to continue.","enroll.totp.setupGoogleAuthApp":'Launch {0}, tap the "+" icon, then select "Scan a QR code".',"enroll.totp.cannotScan":"Can't scan?","enroll.totp.aria.cannotScan":"Setup without scanning a QR code.","enroll.totp.refreshBarcode":"Refresh code","enroll.totp.cannotScanBarcode":"Can't scan QR code?","enroll.totp.manualSetupInstructions":"To set up manually enter your Okta Account username and then input the following in the Secret Key Field","enroll.totp.manualSetupInstructions.generic":"To set up manually enter your Account username and then input the following in the Secret Key Field","enroll.totp.manualSetupInstructions.specific":"To set up manually enter your {0} Account username and then input the following in the Secret Key Field","enroll.totp.sharedSecretInstructions":"Enter your Okta Account username and enter the following in the Secret Key Field","enroll.totp.sharedSecretInstructions.generic":"Enter your Account username and enter the following in the Secret Key Field","enroll.totp.sharedSecretInstructions.specific":"Enter your {0} Account username and enter the following in the Secret Key Field","enroll.totp.sendSms":"Send activation link via SMS","enroll.totp.sendEmail":"Send activation link via email","enroll.totp.setupManually":"Setup manually without push notification","enroll.totp.sharedSecretInstructions.aria.secretKey":"setup key {0}","enroll.totp.enrollViaEmail.title":"Activation email sent!","enroll.totp.enrollViaEmail.msg":"Open the email from your mobile device.","enroll.totp.enrollViaSms.title":"SMS sent!","enroll.totp.enrollViaSms.msg":"View the SMS on your mobile device.","recoveryChallenge.sms.title":"Enter verification code sent via SMS","recoveryChallenge.call.title":"Enter verification code received via Voice Call","mfa.factors.dropdown.title":"Select an authentication factor","mfa.factors.dropdown.sr.text":"Select Authentication Factor - {0} Factor Selected","mfa.duoSecurity.push":"Push — {0}","mfa.duoSecurity.sms":"SMS — {0}","mfa.duoSecurity.call":"Call — {0}","mfa.switch":"Switch Factor","mfa.challenge.title":"Enter your {0} passcode","mfa.challenge.orEnterCode":"Or enter code","mfa.challenge.totp.subtitle.multiple":"Enter code from any registered {0} device.","mfa.emailVerification.checkEmail":"To finish signing in, click the link in your email.","mfa.emailVerification.title":"Sign in using a link sent to your email.","mfa.emailVerification.subtitle":"Emails will be sent to {0}","mfa.emailVerification.otc.finish":"To finish signing in, enter the code which was emailed to you.","oktaverify.send":"Send Push","oktaverify.resend":"Re-send Push","oktaverify.sent":"Push sent!","oktaverify.rejected":"You have chosen to reject this login.","oktaverify.rejected.upgradeRequired.ios":"Verification failed because your Okta Verify version is no longer supported. To sign in, please update Okta Verify on the App Store, then try again.","oktaverify.rejected.upgradeRequired.android":"Verification failed because your Okta Verify version is no longer supported. To sign in, please update Okta Verify on Google Play, then try again.","oktaverify.timeout":"Your push notification has expired.","oktaverify.warning":"Haven't received a push notification yet? Try opening the Okta Verify App on your phone.","oktaverify.numberchallenge.instruction":'On your phone, tap <span class="challenge-number">{0}</span> on Okta Verify prompt to continue.',"oktaverify.numberchallenge.explain":"This extra step helps us make sure it's really you signing in.","primaryauth.title":"Sign In","primaryauth.username.placeholder":"Username","primaryauth.username.tooltip":"Username","primaryauth.password.placeholder":"Password","primaryauth.password.tooltip":"Password","primaryauth.submit":"Sign In","primaryauth.newUser.tooltip":"This is the first time you are connecting to {0} from this browser","primaryauth.newUser.tooltip.close":"Close","oktaVerify.description":"To access this resource, your organization requires you to sign in with Okta FastPass.","oktaVerify.appDescription":"To access {0}, your organization requires you to sign in with Okta FastPass.","oktaVerify.button":"Sign in with Okta FastPass","signinWithWebAuthn.button":"Sign in with security ke
2y or biometrics","idpDiscovery.email.placeholder":"Email","password.forgot.email.or.username.placeholder":"Email or Username","password.forgot.email.or.username.tooltip":"Email or Username","password.forgot.sendText":"Reset via SMS","password.forgot.sendEmail":"Reset via Email","password.forgot.call":"Reset via Voice Call","password.forgot.emailSent.title":"Email sent!","password.forgot.emailSent.desc":"Email has been sent to {0} with instructions on resetting your password.","password.forgot.question.title":"Answer Forgotten Password Challenge","password.forgot.question.submit":"Reset Password","password.forgot.code.notReceived":"Didn't receive a code? Reset via email","password.forgot.noFactorsEnabled":"No password reset options available. Please contact your administrator.","password.reset.title":"Reset your Okta password","password.reset.title.generic":"Reset your password","password.reset.title.specific":"Reset your {0} password","password.complexity.requirements":"Password requirements: {0}.","password.complexity.history":"Your password cannot be any of your last {0} password(s).","password.complexity.minAgeMinutes":"At least {0} minute(s) must have elapsed since you last changed your password.","password.complexity.minAgeHours":"At least {0} hour(s) must have elapsed since you last changed your password.","password.complexity.minAgeDays":"At least {0} day(s) must have elapsed since you last changed your password.","password.reset.verification":"Verify with one of the following factors to reset your password.","password.reset.revokeSessions":"Sign me out of all other devices.","password.complexity.length":"at least {0} characters","password.complexity.list.element":", {0}","password.complexity.lowercase":"a lowercase letter","password.complexity.uppercase":"an uppercase letter","password.complexity.number":"a number","password.complexity.symbol":"a symbol","password.complexity.no_username":"no parts of your username","password.complexity.no_first_name":"does not include your first name","password.complexity.no_last_name":"does not include your last name","password.complexity.adRequirements":"at least 3 of the following: lowercase letter, uppercase letter, number, symbol","password.complexity.maxConsecutiveRepeatingCharacters":"maximum {0} consecutive repeating characters","password.complexity.requirements.header":"Password requirements:","password.complexity.length.description":"At least {0} characters","password.complexity.lowercase.description":"A lowercase letter","password.complexity.uppercase.description":"An uppercase letter","password.complexity.number.description":"A number","password.complexity.symbol.description":"A symbol","password.complexity.no_username.description":"No parts of your username","password.complexity.no_first_name.description":"Does not include your first name","password.complexity.no_last_name.description":"Does not include your last name","password.complexity.history.one.description":"Password can't be the same as your last password","password.complexity.adRequirements.description":"At least 3 of the following: lowercase letter, uppercase letter, number, symbol","password.complexity.maxConsecutiveRepeatingCharacters.description":"Maximum {0} consecutive repeating characters","password.complexity.history.description":"Password can't be the same as your last {0} passwords","password.complexity.minAgeMinutes.description":"At least {0} minute(s) must have elapsed since you last changed your password","password.complexity.minAgeHours.description":"At least {0} hour(s) must have elapsed since you last changed your password","password.complexity.minAgeDays.description":"At least {0} day(s) must have elapsed since you last changed your password","password.expired.submit":"Change Password","password.expired.title":"Your Okta password has expired","password.expired.title.generic":"Your password has expired","password.expired.title.specific":"Your {0} password has expired","password.expiring.later":"Remind me later","password.expiring.title":"Your password will expire in {0} days","password.expiring.today":"Your password will expire later today","password.expiring.soon":"Your password is expiring soon","password.expiring.subtitle":"When password expires you may be locked out of Okta Mobile, mobile email, and other services.","password.expiring.subtitle.generic":"When password expires you will be locked out of your account.","password.expiring.subtitle.specific":"When password expires you will be locked out of your {0} account.","password.expired.custom.submit":"Go to {0}","password.expired.custom.subtitle":"This password is set on another website. Click the button below to go there and set a new password.","password.expiring.soon.subtitle.generic":"When password expires you will be locked out of your account. This password is set on another website. Click the button below to go there and set a new password.","password.expiring.soon.subtitle.specific":"When password expires you will be locked out of your {0} account. This password is set on another website. Click the button below to go there and set a new password.","hcaptcha.footer.label":"This site is protected by hCaptcha and its <$1>Privacy Policy</$1> and <$2>Terms of Service</$2> apply.","altcha.error.label":"Verification failed. Try again later.","altcha.expired.label":"Verification expired. Try again.","altcha.label.label":"I'm not a robot","altcha.loading.label":"Loading...","altcha.reload.label":"Reload","altcha.verify.label":"Verify","altcha.verificationRequired.label":"Verification required!","altcha.verified.label":"Verified","altcha.verifying.label":"Verifying...","altcha.waitAlert.label":"Verifying... please wait.","account.unlock.title":"Unlock account","account.unlock.email.or.username.placeholder":"Email or username","account.unlock.email.or.username.tooltip":"Email or username","account.unlock.sendText":"Send SMS","account.unlock.voiceCall":"Voice Call","account.unlock.sendEmail":"Send Email","account.unlock.emailSent.title":"Email sent!","account.unlock.emailSent.de
2sc":"Email has been sent to {0} with instructions on unlocking your account.","account.unlock.question.title":"Answer Unlock Account Challenge","account.unlock.question.submit":"Unlock Account","account.unlock.unlocked.title":"Account successfully unlocked!","account.unlock.unlocked.desc":"You can log in using your existing username and password.","account.unlock.code.notReceived":"Didn't receive a code? Unlock via email","account.unlock.noFactorsEnabled":"No unlock options available. Please contact your administrator.","account.unlock.authenticatorRequired.single":"To unlock your account, select the following authenticator.","account.unlock.authenticatorRequired.multiple":"To unlock your account, select one of the following authenticators.","contact.support":"If you didn't provide a secondary email address or don't have access to email, please contact your administrator at {0}","customauth.sign.in.with.label":"Sign in with {0}","socialauth.divider.text":"OR","socialauth.facebook.label":"Sign in with Facebook","socialauth.google.label":"Sign in with Google","socialauth.linkedin.label":"Sign in with LinkedIn","socialauth.microsoft.label":"Sign in with Microsoft","socialauth.apple.label":"Sign in with Apple","socialauth.github.label":"Sign in with GitHub","socialauth.gitlab.label":"Sign in with GitLab","socialauth.yahoo.label":"Sign in with Yahoo","socialauth.line.label":"Sign in with LINE","socialauth.paypal.label":"Sign in with PayPal","socialauth.paypal_sandbox.label":"Sign in with PayPal Sandbox","socialauth.salesforce.label":"Sign in with Salesforce","socialauth.amazon.label":"Sign in with Amazon","socialauth.yahoojp.label":"Sign in with Yahoo Japan","socialauth.discord.label":"Sign in with Discord","socialauth.adobe.label":"Sign in with Adobe","socialauth.orcid.label":"Sign in with ORCiD","socialauth.spotify.label":"Sign in with Spotify","socialauth.xero.label":"Sign in with Xero","socialauth.quickbooks.label":"Sign in with Quickbooks","socialauth.popup.title":"External Identity Provider User Authentication","idps.search.label":"Search for sign in","idps.search.no.results":"No results found","idps.search.typeahead.placeholder":"Type to search","idps.search.results.count":"{0} results found","authbutton.divider.text":"or","registration.signup.label":"Don't have an account?","registration.signup.text":"Sign up","registration.complete.title":"Verification email sent","registration.complete.confirm.text":"To finish signing in, check your email.","registration.form.title":"Create Account","registration.form.submit":"Register","registration.passwordComplexity.minLength":"At least {0} character(s)","registration.passwordComplexity.minLower":"At least {0} lowercase letter(s)","registration.passwordComplexity.minUpper":"At least {0} uppercase letter(s)","registration.passwordComplexity.minNumber":"At least {0} number(s)","registration.passwordComplexity.minSymbol":"At least {0} symbol(s)","registration.passwordComplexity.excludeUsername":"Does not contain part of username","registration.passwordComplexity.excludeAttribute":"Does not contain '{0}'","registration.required.fields.label":"* indicates required field","registration.default.callbackhook.error":"We could not process your registration at this time. Please try again later.","registration.error.userName.invalidEmail":"Invalid email address","registration.error.password.passwordRequirementsNotMet":"Password requirements were not met","registration.error.password.passwordRequirementsNotMet.prefix":"Password requirements were not met:","registration.error.userName.notUniqueWithinOrg":"An account with that {0} already exists","registration.error.notUniqueWithinOrg.Email":"A user with this Email already exists","registration.error.notUniqueWithinOrg.custom":"A user with this {0} already exists","registration.error.invalidLoginEmail.Email":"'Email' must be in the form of an email address","registration.error.invalidLoginEmail.custom":"'{0}' must be in the form of an email address","registration.error.doesNotMatchPattern.Email":"Provided value for property 'Email' does not match required pattern","registration.error.doesNotMatchPattern.custom":"Provided value for property '{0}' does not match required pattern","registration.error.generic":"There was an error creating your account. Please try registering again.","registration.error.request.not.completed":"Your request could not be completed. Try again later.","registration.model.validation.field.string.too.short":"Please enter something at least {0} characters long","registration.model.validation.field.string.too.long":"Please enter something shorter than {0} characters","piv.card":"PIV Card","piv.card.insert":"Please insert your PIV card and select the user certificate.","piv.card.error":"Certificate authentication failed. Contact your admin.","piv.card.error.empty":"No certificate selected. Choose a certificate and try again.","piv.card.error.invali
2d":"Certificate validation failed. Choose another certificate and try again.","piv.cac.card":"Sign in with PIV / CAC card","piv.cac.title":"PIV / CAC card","piv.cac.card.insert":"Please insert your PIV / CAC card and select the user certificate.","piv.cac.error":"There was an error signing in. Click the button below to try again.","unsupported.oneDrive.title":"Your OneDrive version is not supported","unsupported.oneDrive.desc":"Upgrade now by installing the OneDrive for Business Next Generation Sync Client to login to Okta","unsupported.oneDrive.action":"Learn how to upgrade","unsupported.cookies.title":"Cookies are required","unsupported.cookies.desc":"Cookies are disabled on your browser. Please enable Cookies and refresh this page.","unsupported.cookies.action":"Refresh","deviceTrust.sso.text":"Sign in to access company resources","deviceTrust.sso.subtitle.2":"Your company uses Okta Mobile to get you approved to access this app.","deviceTrust.sso.button":"Sign in with Okta Mobile","deviceTrust.sso.expire.title":"Oops let's get you back on track","deviceTrust.sso.redirectText":"Verifying your identity","deviceTrust.sso.expire.subtitle":"Unfortunately the steps required to sign in took longer than expected and your attempt timed out.","deviceTrust.sso.expire.button":"Sign in using Okta Mobile","deviceTrust.universalLink.fallback.getOktaMobile.title":"Get Okta Mobile","deviceTrust.universalLink.fallback.getOktaMobile.subtitle":"Go to the {0}AppStore{1}, {0}search{1} for {0}Okta Mobile{1} and tap on {0}GET{1} Okta Mobile. Once installed, sign in to Okta Mobile and follow the instructions to secure your device.","core.auth.factor.signedNonce.error.invalidDevice":"Your device or account was invali
2dated. If this is unexpected, contact your administrator for help.","core.auth.factor.signedNonce.error":"Your device or account was invalidated. Re-enroll your account on Okta Verify and try again.","user.fail.verifyIdentity":"Couldn’t verify your identity","loopback.polling.cancel.link":"Cancel and take me to sign in","loopback.polling.cancel.link.with.form.error":"Take me to sign in","customUri.subtitle":"Launching Okta Verify...","customUri.content":'<div class="skinny-content"> If nothing prompts from the browser, <a href="#" id="launch-ov" class="link">click here</a> to launch Okta Verify, or make sure Okta Verify is installed.</div>',"customUri.title":'Click "Open Okta Verify" on the browser prompt',"customUri.required.content.prompt":"Didn’t get a prompt?","customUri.required.content.download.title":"Don’t have Okta Verify?","customUri.required.content.download.linkText":"Download here","customUri.required.content.button":"Launch Okta Verify","universalLink.title":"Sign in with Okta FastPass","universalLink.content":"If Okta Verify did not open automatically, tap Open Okta Verify.","appLink.title":"Sign in with Okta FastPass","appLink.content":"If Okta Verify did not open automatically, tap Open Okta Verify.","oktaVerify.open.button":"Open Okta Verify","oktaVerify.reopen.button":"Reopen Okta Verify","consent.required.text":"<b>{0}</b> would like to access:","consent.required.description":"By clicking Allow Access, you allow the actions listed above.","consent.required.termsOfService":"Terms of Service","consent.required.privacyPolicy":"Privacy Policy","consent.required.consentButton":"Allow Access","consent.required.cancelButton":"Don't Allow","granular.consent.scopes.title":"<$1>{0}</$1> <$2>wants to access your account</$2>","granular.consent.scopes.description":"Allowing access will share","admin.consent.group.user.group":"User and groups","admin.consent.group.resource.policy":"Resource and policies","admin.consent.group.hook":"Hooks","admin.consent.group.system":"System","polling.title":"There are too many users trying to sign in right now. We will automatically retry in {0} seconds.","poll.form.title":"Unable to complete your request","poll.form.message":"We will automatically retry in <$1>{0}</$1> seconds.","cert.authentication.title":"Certificate authentication","common.logo.alt":"aria logo","oie.authenticator.enroll.error.fail":"Unable to enroll authenticator. Try again.","oie.authenticator.verify.error.fail":"Unable to verify authenticator. Try again.","oie.configuration.error":"Something went wrong. Potential misconfiguration detected. Please contact support.","oie.auth.logo.aria.label":"Authenticator logo","oie.challenge.answer.showAnswer":"Show answer","oie.challenge.answer.hideAnswer":"Hide answer","oie.form.field.optional":"Optional","oie.form.field.optional.description":"Fields are required unless marked optional.","oie.password.label":"Password","oie.password.newPasswordLabel":"New password","oie.password.authenticator.description":"Choose a password for your account","oie.password.challenge.title":"Verify with your password","oie.password.enroll.title":"Set up password","oie.password.passwordLabel":"Enter password","oie.password.confirmPasswordLabel":"Re-enter password","oie.password.showPassword":"Show password","oie.password.showConfirmPassword":"Show re-entered password","oie.password.hidePassword":"Hide password","oie.password.hideConfirmPassword":"Hide re-entered password","oie.password.reset.verification":"Verify with one of the following security methods to reset your password.","idx.password.expiring.message":"When your password expires, you will have to change your password before you can login to your {0} account.","oie.password.incorrect.message":"Password is incorrect","oie.selfservice.reset.password.not.allowed":"Reset password is not allowed at this time. Please contact support for assistance.","password.common":"This password was found in a list of commonly used passwords. Please try another password.","idx.recovery.completed":"You can now sign in with your existing username and new password.","oie.phone.label":"Phone","oie.phone.authenticator.de
2scription":"Verify with a code sent to your phone","oie.phone.enroll.sms.label":"SMS","oie.phone.enroll.voice.label":"Voice call","oie.phone.enroll.title":"Set up phone authentication","oie.phone.enroll.call.subtitle":"Enter your phone number to receive a verification code via voice call.","oie.phone.enroll.sms.subtitle":"Enter your phone number to receive a verification code via SMS.","oie.phone.sms.primaryButton":"Receive a code via SMS","oie.phone.sms.secondaryButton":"Receive an SMS instead","oie.phone.call.primaryButton":"Receive a code via voice call","oie.phone.call.secondaryButton":"Receive a voice call instead","oie.phone.verify.sms.resendText":"Haven't received an SMS?","oie.phone.verify.sms.codeSentText":"A code was sent to","oie.phone.verify.sms.sendText":"Send a code via SMS to","oie.phone.verify.call.sendText":"Send a code via voice call to","oie.phone.verify.call.resendText":"Haven't received a call?","oie.phone.verify.call.resendLinkText":"Call again","oie.phone.verify.sms.resendLinkText":"Send again","oie.phone.verify.enterCodeText":"Enter the code below to verify.","oie.phone.verify.title":"Verify with your phone","oie.phone.alternate.title":"your phone","oie.phone.carrier.charges":"Carrier messaging charges may apply","oie.phone.invalid":"Invalid Phone Number.","oie.phone.verify.sms.sendText.with.phone.with.nickname":"Send a code via SMS to <$1>{0}</$1> <$2>({1})</$2>.","oie.phone.verify.call.sendText.with.phone.with.nickname":"Send a code via voice call to <$1>{0}</$1> <$2>({1})</$2>.","oie.phone.verify.sms.sendText.with.phone.without.nickname":"Send a code via SMS to <$1>{0}</$1>.","oie.phone.verify.call.sendText.with.phone.without.nickname":"Send a code via voice call to <$1>{0}</$1>.","oie.phone.verify.sms.sendText.without.phone":"Send a code via SMS to your phone.","oie.phone.verify.call.sendText.without.phone":"Send a code via voice call to your phone.","oie.phone.verify.sms.codeSentText.with.phone.with.nickname":"A code was sent to <$1>{0}</$1> <$2>({1})</$2>. Enter the code below to verify.","oie.phone.verify.mfa.calling.with.phone.with.nickname":"Calling <$1>{0}</$1> <$2>({1})</$2>. Enter the code below to verify.","oie.phone.verify.sms.codeSentText.with.phone.without.nickname":"A code was sent to <$1>{0}</$1>. Enter the code below to verify.","oie.phone.verify.mfa.calling.with.phone.without.nickname":"Calling <$1>{0}</$1>. Enter the code below to verify.","oie.phone.verify.sms.codeSentText.without.phone":"A code was sent to your phone. Enter the code below to verify.","oie.phone.verify.mfa.calling.without.phone":"Calling your phone. Enter the code below to verify.","oie.email.label":"Email","oie.email.authenticator.description":"Verify with a link or code sent to your email","oie.email.mfa.title":"Verify with your email","oie.email.challenge.mfa.title":"Get a verification email","oie.email.verify.primaryButton":"Send me an email","oie.email.verify.subtitle.text.with.email":'Send a verification email to <$1>{0}</$1> by clicking on "Send me an email".',"oie.email.verify.subtitle.text.with.email.and.secondary.email":'Send a verification email to <$1>{0}</$1> and <$2>{1}</$2> by clicking on "Send me an email".',"oie.email.verify.subtitle.text.without.email":'Send a verification email by clicking on "Send me an email".',"oie.email.verify.alternate.magicLinkToEmailAddress":"We sent an email to <$1>{0}</$1>. ","oie.email.verify.alternate.magicLinkToEmailAddress.with.secondary.email":"We sent an email to <$1>{0}</$1> and <$2>{1}</$2>. ","oie.email.verify.alternate.magicLinkToYourEmail":"We sent you a verification email. ","oie.email.verify.alternate.instructions":"Click the verification link in your email to continue or enter the code below.","oie.email.verify.alternate.show.verificationCode.text":"Enter a verification code instead","oie.email.verify.alternate.verificationCode.instructions":"Enter the verification code in the text box.","oie.email.enroll.subtitle":"Please check your email and enter the code below.","oie.email.return.link.expired.title":"Verify with your email","oie.profile.additional.title":"Additional Profile information","oie.profile.additional.secondemail.subtitle":"Use a second email to <$1> recover your account </$1>
2 in case you become locked out. This email must be verified after setup.","signinWithPasskeys.button":"Sign in with a passkey","signin.passkeys.error":"Could not sign in with a passkey. Try again, or sign in another way to add a passkey to your account.","signin.passkeys.error.NotSupportedError":"This browser doesn't support passkeys. Use a supported browser or sign in another way.","signin.passkeys.error.SecurityError":"The relying party ID is not a registrable domain suffix of, nor equal to the current domain. Subsequently, an attempt to fetch the .well-known/webauthn resource of the claimed RP ID failed.","signin.passkeys.error.rpIdMismatch":"Could not sign in with a passkey. The RP ID {0} is invalid for this domain.","oie.webauthn.label":"Security Key or Biometric Authenticator","oie.webauthn.passkeysRebrand.passkeys.label":"Passkey","oie.webauthn.description":"Use a security key or a biometric authenticator to sign in","oie.webauthn.passkeysRebrand.passkeys.description":"Use a passkey to sign in with biometrics or a security key.","oie.enroll.webauthn.title":"Set up security key or biometric authenticator","oie.enroll.webauthn.passkeysRebrand.passkeys.title":"Set up a passkey","oie.enroll.webauthn.passkeysRebrand.custom.title":"Set up {0}","oie.enroll.webauthn.instructions":"You will be prompted to register a security key or biometric authenticator (Windows Hello, Touch ID, Face ID, etc.). Follow the instructions to complete set up.","oie.enroll.webauthn.passkeysRebrand.instructions":"You will be prompted to register a passkey. Follow the instructions to complete set up.","oie.enroll.webauthn.uv.required.instructions":"Biometric verification or a PIN is required to setup this authenticator.","oie.enroll.webauthn.instructions.edge":"Note: If you are enrolling a security key and Windows Hello or PIN is enabled, you will need to select 'Cancel' in the prompt before continuing.","oie.enroll.webauthn.save":"Set up","oie.webauthn.error.not.supported":"Security key or biometric authenticator is not supported on this browser. Contact your admin for assistance.","oie.webauthn.passkeysRebrand.error.not.supported":"Passkeys are not supported on this browser. Contact your admin for assistance.","oie.webauthn.error.invalidPasskey":"Invalid passkey.","oie.verify.webauth.title":"Verify with Security Key or Biometric Authenticator","oie.verify.webauth.passkeysRebrand.passkeys.title":"Verify with a passkey","oie.verify.webauth.passkeysRebrand.custom.title":"Verify with {0}","oie.verify.webauthn.instructions":"You will be prompted to use a security key or biometric verification (Windows Hello, Touch ID, etc.). Follow the instructions to complete verification.","oie.verify.webauthn.passkeysRebrand.instructions":"You will be prompted to use a passkey. Follow the instructions to complete verification.","oie.verify.webauthn.instructions.additional":"Additional instructions from your administrator:","oie.verify.webauthn.uv.required.instructions":"Biometric verification or a PIN is required to sign in with this authenticator.","oie.verify.webauthn.cant.verify":"Can't verify?","oie.verify.webauthn.cant.verify.biometric.authenticator.title":"Are you trying to use a biometric authenticator?","oie.verify.webauthn.cant.verify.biometric.authenticator.description1":"Biometric authenticators (fingerprint, face recognition, PIN) will only work on the same device on which they were set up.","oie.verify.webauthn.cant.verify.biometric.authenticator.description2":"If available, set up another security method on the device you used to set up your biometric authenticator.","oie.verify.webauthn.cant.verify.security.key.title":"Are you trying to use a security key?","oie.verify.webauthn.cant.verify.security.key.description":"If you have set up a security key, insert it in a USB port when prompted by the browser and tap on the button or gold disk. Security keys can work on multiple devices.","oie.verify.webauthn.cant.verify.enrollment.step1":"Open your Okta Dashboard (e.g. yourcompany.okta.com) on the device you used to setup your security key or biometric authenticator","oie.verify.webauthn.passkeysRebrand.cant.verify.enrollment.step1":"Open your Okta Dashboard (e.g. yourcompany.okta.com) on the device you used to setup your passkey","oie.verify.webauthn.cant.verify.enrollment.step2":"Go to Settings > Security Methods","oie.verify.webauthn.cant.verify.enrollment.step3":'On Okta Verify, click "Set up"',"oie.verify.webauthn.cant.verify.enrollment.step4":"Scan the QR code using Okta Verify and follow instructions to finish enrolling your account","oie.enroll.webauthn.rk.link":'If you haven\'t set up your security ke
2y or biometric authentication, you can complete the process after you sign in using <a href="#" class="setup-webauthn-residentkey-link">this link</a>.',"oie.select.authenticator.verify.email.label":"Select Email.","oie.select.authenticator.verify.email.with.email.label":"Select Email - {0}.","oie.select.authenticator.verify.password.label":"Select Password.","oie.select.authenticator.verify.phone.label":"Select Phone.","oie.select.authenticator.verify.phone.with.phone.label":"Select Phone - {0}.","oie.select.authenticator.verify.webauthn.label":"Select Security Key or Biometric Authenticator.","oie.select.authenticator.verify.webauthn.passkeysRebrand.passkeys.label":"Select a passkey.","oie.select.authenticator.verify.webauthn.passkeysRebrand.custom.label":"Select {0}.","oie.select.authenticator.verify.security.question.label":"Select Security Question.","oie.select.authenticator.okta_verify.totp.label":"Select to enter a code from the Okta Verify app.","oie.select.authenticator.okta_verify.push.label":"Select to get a push notification to the Okta Verify app.","oie.select.authenticator.okta_verify.signed_nonce.label":"Select Okta Verify.","oie.select.authenticator.verify.okta_verify.label":"Select Okta Verify.","oie.select.authenticator.verify.named.authenticator.label":"Select {0}.","oie.select.authenticator.enroll.email.label":"Set up Email.","oie.select.authenticator.enroll.password.label":"Set up Password.","oie.select.authenticator.enroll.phone.label":"Set up Phone.","oie.select.authenticator.enroll.webauthn.label":"Set up Security Key or Biometric Authenticator.","oie.select.authenticator.enroll.webauthn.passkeysRebrand.passkeys.label":"Set up a passkey.","oie.select.authenticator.enroll.webauthn.passkeysRebrand.custom.label":"Set up {0}.","oie.select.authenticator.enroll.security.question.label":"Set up Security Question.","oie.select.authenticator.enroll.okta_verify.authenticator.label":"Set up Okta Verify.","oie.select.authenticator.enroll.named.authenticator.label":"Set up {0}.","oie.security.question.label":"Security Question","oie.security.question.enroll.title":"Set up security question","oie.security.question.challenge.title":"Verify with your Security Question","oie.security.question.questionKey.label":"Choose a security question","oie.security.question.createQuestion.label":"Create my own security question","oie.security.question.authenticator.description":"Choose a security question and answer that will be used for signing in","securityQuestion.answer.tooShort.arg":"The security question answer must be at least {0} characters in length","oie.okta_verify.label":"Okta Verify","oie.enroll.okta_verify.setup.subtitle":"To continue, you'll need an Okta Verify account on this device.","oie.enroll.okta_verify.setup.download":"If you don't have Okta Verify installed, <$1>download the app</$1>.","oie.enroll.okta_verify.setup.openOv":"Open Okta Verify and follow the steps to add your account.","oie.enroll.okta_verify.setup.signInUrl":"When prompted, choose Sign In, then enter the sign-in URL:","oie.enroll.okta_verify.setup.instructions":"Follow the instructions to set up Okta Verify on this device, then return here and refresh this page.","oie.okta_verify.authenticator.description":"Okta Verify is an authenticator app, installed on your phone or computer, used to prove your identity","oie.enroll.okta_verify.setup.title":"Set up Okta Verify","oie.enroll.okta_verify.setup.email.title":"Check your email","oie.enroll.okta_verify.setup.sms.title":"Check your text messages","oie.enroll.okta_verify.setup.skipAuth.subtitle":"To set up Okta Verify on additional devices, you can copy an existing Okta Verify account onto a new device.","oie.enroll.okta_verify.setup.skipAuth.openOv":"Open Okta Verify on any of your other Okta Verify devices (<$1>{0}</$1>).","oie.enroll.okta_verify.setup.skipAuth.openOv.suchAs":"Open Okta Verify on any of your other Okta Verify devices (Such as your <$1>{0}</$1>).","oie.enroll.okta_verify.setup.skipAuth.selectAccount":"In the app, select your account.","oie.enroll.okta_verify.setup.skipAuth.addAccount":"Choose <$1>Add Account to Another Device.</$1>","oie.enroll.okta_verify.setup.skipAuth.followInstruction":"Follow the rest of the instructions shown in Okta Verify.","oie.enroll.okta_verify.setup.skipAuth.canBeClosed":"This screen can be closed at any time.","oie.enroll.okta_verify.setup.customUri.makeSureHaveOVToContinue":"To continue, make sure you have the Okta Verify app.","oie.enroll.okta_verify.setup.customUri.setup":"Once Okta Verify is installed, return to this page and tap <$1>Set up Okta Verify</$1>.","oie.enroll.okta_verify.setup.customUri.prompt":'Click <$1>"Open Okta Verify"</$1> on the browser prompt to set up Okta Verify.',"oie.enroll.okta_verify.setup.customUri.noPrompt":"<$1>Didn't see the prompt?</$1>","oie.enroll.okta_verify.setup.customUri.makeSureHaveOV":"Make sure you have Okta Verify installed.","oie.enroll.okta_verify.setup.customUri.orMobile":"Or <$
21>set up Okta Verify on another mobile device</$1>","oie.enroll.okta_verify.setup.customUri.orOnMobile":"Or <$1>set up Okta Verify on a mobile device</$1>","oie.enroll.okta_verify.select.channel.description":"Which option do you want to try?","oie.enroll.okta_verify.select.channel.qrcode.label":"Scan a QR code","oie.enroll.okta_verify.select.channel.subtitle":"How would you like to set up Okta Verify?","oie.enroll.okta_verify.select.channel.email.label":"Email me a setup link","oie.enroll.okta_verify.select.channel.sms.label":"Text me a setup link","oie.enroll.okta_verify.select.channel.ovOnThisDevice":"Or <$1>set up Okta Verify on this device</$1>","oie.enroll.okta_verify.select.channel.title":"More options","oie.enroll.okta_verify.select.channel.title.updated":"Set up Okta Verify on another mobile device","oie.enroll.okta_verify.channel.email.label":"Email","oie.enroll.okta_verify.enroll.channel.email.title":"Set up Okta Verify via email link","oie.enroll.okta_verify.enroll.channel.email.subtitle":"Make sure you can access the email on the receiving device","oie.enroll.okta_verify.enroll.channel.sms.title":"Set up Okta Verify via SMS","oie.enroll.okta_verify.channel.email.description":"Make sure you can access the email on your mobile device.","oie.enroll.okta_verify.channel.sms.description":"Make sure you can access the text on your mobile device.","oie.enroll.okta_verify.channel.sms.description.updated":"Make sure you can access the text on the receiving device","oie.enroll.okta_verify.qrcode.title":"Set up Okta Verify via QR code","oie.enroll.okta_verify.qrcode.step1":"On your mobile device, download the Okta Verify app from the App Store (iPhone and iPad) or Google Play (Android devices).","oie.enroll.okta_verify.qrcode.step1.updated":"On your other device, download the Okta Verify app from the App Store® (iPhone® and iPad®) or on Google Play (Android® devices).","oie.enroll.okta_verify.qrcode.step2":"Open the app and follow the instructions to add your account","oie.enroll.okta_verify.qrcode.step3.updated":"When prompted, tap <$1>Scan a QR code</$1>, then scan the QR code below:","oie.enroll.okta_verify.qrcode.step3":"When prompted, tap Scan a QR code, then scan the QR code below:","oie.enroll.okta_verify.qrcode.cannotScan":"Can't scan?","oie.enroll.okta_verify.switch.channel.link.text":'Or <a href="#" class="switch-channel-link">try a different way</a> to set up Okta Verify.',"oie.enroll.okta_verify.email.info":'We sent an email to <span class="strong">{0}</span> with an Okta Verify setup link. To continue, open the link on your mobile device.',"oie.enroll.okta_verify.email.info.updated":"We sent an email to <$1>{0}</$1> with an Okta Verify setup link. To continue, open the link on your receiving device.","oie.enroll.okta_verify.email.notReceived":'Haven’t received an email? Check your spam folder or <a href="#" class="resend-link">send again</a>',"oie.enroll.okta_verify.sms.info":'We sent an SMS to <span class="strong">{0}</span> with an Okta Verify setup link. To continue, open the link on your mobile device.',"oie.enroll.okta_verify.sms.info.updated":"We sent an SMS to <$1>{0}</$1> with an Okta Verify setup link. To continue, open the link on your receiving device.","oie.enroll.okta_verify.sms.notReceived":'Haven’t received an SMS? <a href="#" class="resend-link">Send again</a>',"oie.enroll.okta_verify.setupLink":"Send me the setup link","oie.okta_verify.totp.title":"Enter a code","oie.okta_verify.totp.enterCodeText":"Enter code from Okta Verify app","oie.okta_verify.push.title":"Get a push notification","oie.okta_verify.push.sent":"Push notification sent","oie.okta_verify.push.sent.respond_to_continue":"Respond on your mobile device to continue.","oie.okta_verify.push.resend":"Resend push notification","oie.okta_verify.sendPushButton":"Send push","oie.okta_verify.signed_nonce.label":"Use Okta FastPass","oie.okta_verify.enroll.force.upgrade.title":"Update Okta Verify","oie.authenticator.app.non_fips_compliant_enrollment_device_incompatible":"The device used to set up Okta Verify does not meet your organization’s security requirements because it is not FIPS compliant. Contact your administrator for help.","oie.authenticator.app.non_fips_compliant_enrollment_app_update_required":"The Okta Verify version on the device used does not meet your organization’s security requirements. To add your account, update Okta Verify to the latest version, then try again.","oie.authenticator.app.method.push.verify.enable.biometrics":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date and biometrics are enabled for your account in Okta Verify, then try again.","oie.authenticator.app.method.push.verify.enable.biometrics.title":"Enable biometrics in Okta Verify","oie.authenticator.app.method.push.verify.enable.biometrics.description":"Your response was received, but your organization requires biometrics. Make sure you meet the following requirements, then try again:","oie.authenticator.app.method.push.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.app.method.push.verify.enable.biometrics.point2":"Okta Verify is up-to-date","oie.authenticator.app.method.push.verify.enable.biometrics.point3":"In Okta Verify, biometrics are enabled for your account","oie.authenticator.app.method.push.enroll.enable.biometrics":"Your organization requires biometrics. To proceed, ensure your device supports biometrics, then add your account and enable biometrics when prompted.","oie.authenticator.app.method.push.enroll.enable.biometrics.title":"Enable biometrics to add an account in Okta Verify","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date and biometrics are enabled for your account in Okta Verify, then try again.","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.title":"Enable biometrics in Okta Verify","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.description":"Your response was received, but your organization requires biometrics. Make sure you meet the following requirements, then try again:","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.point2":"Okta Verify is up-to-date","oie.authenticator.oktaverify.method.totp.verify.enable.biometrics.point3":"In Okta Verify, biometrics are enabled for your account","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.mobile":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date and biometrics are enabled for your account in Okta Verify, then try again.","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.desktop":"Your response was received, but your organization requires biometrics. Make sure your device supports biometrics, Okta Verify is up-to-date, biometrics are enabled for your account in Okta Verify and your device's biometric sensors are accessible, then try again.","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.title":"Biometrics needed for Okta Verify","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.description":"Your response was received, but your organization requires biometrics. Make sure you meet the following requirements, then try again:","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point2":"Okta Verify is up-to-date","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point3":"In Okta Verify, biometrics are enabled for your account","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point4":"Your device's biometric sensors are accessible","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows":"Your response was received, but your organization requires Windows Hello confirmation. Make sure Okta Verify is up-to-date and enable Windows Hello confirmation in Okta Verify, then try again.","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.title":"Enable Windows Hello or passcode confirmation in Okta Verify","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.description":"To meet your organization's requirements, tr
2y the following, then return here and sign in again:","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.point1":"Make sure Okta Verify is up-to-date","oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.point2":"In Okta Verify, enable Windows Hello or passcode confirmation for your account","oie.google_authenticator.label":"Google Authenticator","oie.google_authenticator.authenticator.description":"Enter a temporary code generated from the Google Authenticator app.","oie.enroll.google_authenticator.setup.title":"Set up Google Authenticator","oie.enroll.google_authenticator.scanBarcode.title":"Scan QR code","oie.enroll.google_authenticator.scanBarcode.description":'Launch Google Authenticator, tap the "+" icon, then select "Scan a QR code".',"oie.enroll.google_authenticator.scanBarcode.cannotScan":"Can't scan?","oie.enroll.google_authenticator.cannotScanBarcode.title":"Can't scan QR code?","oie.enroll.google_authenticator.manualSetupInstructions":"To set up manually enter your Okta Account username and then input the following in the Secret Key Field","oie.enroll.google_authenticator.enterCode.title":"Enter code displayed from application","oie.verify.google_authenticator.otp.title":"Verify with Google Authenticator","oie.verify.google_authenticator.otp.description":"Enter the temporary code generated in your Google Authenticator app","oie.google_authenticator.otp.enterCodeText":"Enter code","oie.verify.custom_otp.title":"Verify with {0}","oie.verify.custom_otp.description":"Enter the code generated on your authenticator and verify.","oie.custom_otp.description":"Enter a temporary code generated from an authenticator device.","oie.custom_otp.authenticator.default.vendorName":"Custom OTP Authenticator","oie.custom_otp.verify.passcode.label":"Enter code","oie.verify.custom_app.title":"Verify with {0}","oie.custom_app.push.sent":"Push notification sent","oie.custom_app.push.resend":"Resend push notification","oie.custom_app.push.warning":"Haven't received a push notification yet? Try opening {0} on your phone.","oie.authenticator.custom_app.method.push.verify.enable.biometrics":"Your response was received, but your organization requires biometrics—like a fingerprint or facial scan—for access. Make sure your device meets the following requirements, then try again:","oie.authenticator.custom_app.method.push.verify.enable.biometrics.title":"Enable biometrics in {0}","oie.authenticator.custom_app.method.push.verify.enable.biometrics.description":"Your response was received, but your organization requires biometrics—like a fingerprint or facial scan—for access. Make sure your device meets the following requirements, then try again:","oie.authenticator.custom_app.method.push.verify.enable.biometrics.point1":"Your device supports biometrics","oie.authenticator.custom_app.method.push.verify.enable.biometrics.point2":"{0} is up-to-date","oie.authenticator.custom_app.method.push.verify.enable.biometrics.point3":"In {0}, biometrics are enabled for your account","oie.custom_app.sendPushButton":"Send push","oie.custom_app.push.title":"Get a push notification","oie.on_prem.authenticator.description":"Verify by entering a code generated by {0}.","oie.on_prem.authenticator.default.vendorName":"Custom On-prem Authenticator","oie.on_prem.enroll.title":"Set up {0}","oie.on_prem.verify.title":"Verify with {0}","oie.numberchallenge.warning":"Haven't received a push notification yet? Try opening the Okta Verify app on your device, or <$1>resend the push notification</$1>.","oie.numberchallenge.instruction":"On your mobile device, open the Okta Verify prompt, then tap <$1>{0}</$1> in Okta Verify to continue.","oie.numberchallenge.force.upgrade.title":"Update Okta Verify","oie.authenticator.app.method.push.force.upgrade.number_challenge":"Your response was received, but your Okta Verify version is no longer supported by your organization. To verify your identity with push notifications, update Okta Verify to the latest version, then try again.","oie.rsa.authenticator.description":"Verify by entering a code generated by RSA SecurID","oie.duo.authenticator.de
2scription":"Verify your identity using Duo Security.","oie.duo.enroll.title":"Set up Duo Security","oie.duo.verify.title":"Verify with Duo Security","oie.duo.iFrameError":"Error loading Duo. Try again or contact your admin for assistance.","oie.authenticator.duo.error":"We were unable to verify with Duo. Try again.","oie.idp.authenticator.description":"Redirect to verify with {0}.","oie.idp.enroll.title":"Set up {0}","oie.idp.enroll.description":"You will be redirected to enroll in {0}","oie.idp.challenge.title":"Verify with {0}","oie.idp.challenge.description":"You will be redirected to verify with {0}","idx.identity.provider.auth.error":"There was a problem signing you into your identity provider. Please contact your administrator for help.","oie.idv.idp.title":"Verify your identity with {0}","oie.idv.idp.desc":"Verify your identity with {0} to continue and share your verification results with Okta. You may need a valid government-issued ID.","oie.idv.idp.desc.termsOfUse":"{0}'s <$1>Terms of Use</$1> and <$2>Privacy Policy</$2> will apply to {0}'s verification of your identity. ","oie.idv.idp.desc.agreement":'By clicking "Continue", I agree that {0} will share my verification results with Okta.',"oie.idv.persona":"Persona","oie.idv.clear":"Clear","oie.idv.incode":"Incode","oie.idv.customIDV":"Custom IDV","oie.symantecVip.authenticator.description":"Verify by entering a temporary code from the {0} app.","oie.symantecVip.enroll.title":"Set up {0}","oie.symantecVip.enroll.description":"From the {0} app, enter your credential ID and two consecutive generated codes","oie.symantecVip.challenge.title":"Verify with {0}","oie.symantecVip.challenge.description":"Enter the generated security code from the {0} app.","oie.symantecVip.verify.passcode.label":"Enter security code","oie.yubikey.label":"YubiKey Authenticator","oie.yubikey.authenticator.description":"Verify your identity using YubiKey","oie.yubikey.enroll.title":"Set up YubiKey","oie.yubikey.challenge.title":"Verify with YubiKey","oie.yubikey.description":"Use your YubiKey to insert a verification code.","oie.yubikey.passcode.label":"Insert then tap your YubiKey","oie.custom.app.authenticator.title":"Get a push notification","oie.custom.app.authenticator.description":"{0} is an authenticator app, installed on your phone, used to prove your identity","oie.smartcard.authenticator.description":"Use a physical smart card, such as PIV or CAC, to sign in","oie.tac.label":"Temporary Access Code","oie.verify.tac.title":"Verify with Temporary Access Code","oie.verify.tac.description":"Enter the code provided by your administrator. Contact your administrator if you need a new code.","oie.tac.authenticator.description":"Enter a code provided by your administrator to sign in","oie.select.authenticators.enroll.title":"Set up security methods","oie.select.authenticators.enroll.subtitle":"Security methods help protect your account by ensuring only you have access.","oie.select.authenticators.enroll.subtitle.custom":"Security methods help protect your {0} account by ensuring only you have access.","oie.setup.required":"Set up required","oie.setup.optional":"Set up optional","oie.setup.required.now":"Required now","oie.setup.required.soon":"Required soon","oie.setup.optional.short":"Optional","oie.setup.required.soon.description":"When the deadline passes, you won’t be able to sign in until you complete setup.","oie.setup.remind.me.later":"Remind me later","oie.optional.authenticator.button.title":"Continue","oie.verify.authenticator.button.text":"Select","oie.enroll.authenticator.button.text":"Set up","oie.enroll.authenticator.usage.text.access.recovery":"Used for access or recovery","oie.enroll.authenticator.usage.text.recovery":"Used for recovery","oie.enroll.authenticator.usage.text.access":"Used for access","oie.select.authenticators.verify.title":"Verify it's you with a security method","oie.select.authenticators.verify.subtitle":"Select from the following options","oie.success.text.signingIn":"Signing in","oie.success.text.signingIn.with.ellipsis":"Signing in...","oie.success.text.signingIn.with.appName":"Signing in to {0}","oie.success.text.signingIn.with.appName.android.ov.enrollment":'To continue, tap "Open Okta Verify"',"oie.success.text.signingIn.with.appName.and.identifier":"Signing in to {0} as {1}","oie.go.back":"Go back","oie.enroll.switch.authenticator":"Return to authenticator list","oie.enroll.skip.setup":"Skip set up","oie.enroll.skip.profile":"Skip Profile","oie.verification.switch.authenticator":"Verify with something else","oie.remember":"Keep me signed in","oie.try.again":"Try again","enroll.title.oda":"Download Okta Verify","enroll.title.oda.with.account":"Additional setup required to use Okta FastPass","enroll.title.oda.without.account":"Set up an Okta Verify account","enroll.title.mdm":"Additional setup required","enroll.subtitle.fastpass":"On this device, do you already have an Okta Verify account for {0}?","enroll.option.noaccount.fastpass":"No, I don’t have an account","enroll.option.account.fastpass":"Yes, I already have an account","enroll.explanation.p1":"To sign in using Okta Verify, you will need to set up Okta Verify on this device.","enroll.explanation.p2":'In the app, follow the instructions to add an organizational account. When prompted, choose <span class="semi-strong">Sign In</span>, then enter the <span class="semi-strong">sign-in URL</span>:',"enroll.oda.android.step1":"On Google Play, download the Okta Verify app.","enroll.oda.step1":"Open Okta Verify and follow the steps to add your account.","enroll.oda.step2":"When prompted, choose Sign In, then enter the sign-in URL:","enroll.oda.step3":"Download the Okta Verify app.","enroll.oda.step6":"Finish setting up your account in Okta Verify, then try accessing this app again.","enroll.oda.with.account.explanation":"Okta FastPass is a security method that can sign you in without needing your username.","enroll.oda.with.account.subtitile1":"Already have Okta FastPass enabled for your account?","enroll.oda.with.account.subtitile2":"Need to set up Okta FastPass for your account?","enroll.oda.with.account.step1":"Make sure your Okta Verify is up-to-date, then try signing in again.","enroll.oda.with.account.step2":"If your device has a work profile, make sure you are signing in from the same profile that Okta Verify is installed in.","enroll.oda.with.account.step3":"On certain browsers and applications, Okta FastPass is not supported.","enroll.oda.with.account.step4":"On this device, open the Okta Verify app.","enroll.oda.with.account.step5":"On the list of accounts, tap your account for {0}.","enroll.oda.with.account.step6":"Under the “Okta FastPass” section, tap Setup, then follow the instructions.","enroll.oda.with.account.step7":"After your setup is complete, return here to try signing in again.","enroll.oda.without.account.explanation":"To sign in with Okta FastPass, you’ll need to set up Okta Verify on this device.","enroll.oda.without.account.step1":'If you don’t have Okta Verify installed, <a href="{0}" target="_blank" class="download-ov-link" id="download-ov">download the app.</a>',"enroll.oda.without.account.step4":"Finish setting up your account in Okta Verify, then try signing in again.","enroll.appleStore":"the App Store","enroll.googleStore":"Google Play","enroll.copy.ios":"Apple®, App Store, and the Apple logo are trademarks of Apple Inc.","enroll.copy.android":"Google Play and the Google Play logo are trademarks of Google LLC.","enroll.explanation.mdm":"To access this app, your device needs to meet your organization's security requirements. Follow the instructions below to continue.","enroll.oda.org.copyLink":"Copy sign-in URL to clipboard","enroll.oda.org.copyLink.success":"Sign-in URL copied.","enroll.mdm.copyLink":"Copy link to clipboard","enroll.mdm.copyLink.success":"Link copied.","enroll.mdm.step.copyLink":"Tap the C
2opy Link button below.","enroll.mdm.step.pasteLink":"On this device, open your browser, then paste the copied link into the address bar.","enroll.mdm.step.followInstructions":"Follow the instructions in your browser to set up <$1>{0}</$1>.","enroll.mdm.step.relogin":"Logout and re-login and then try accessing the app again.","oie.safe.mode.title":"Authenticator set up unavailable","idx.error.server.safe.mode.enrollment.unavailable":"Set up is temporarily unavailable due to server maintenance. Try again later.","oie.primaryauth.submit":"Sign in","oie.registration.form.title":"Sign up","oie.registration.form.submit":"Sign Up","oie.registration.form.update.submit":"Submit","oie.registration.form.customize.label":"{0}","oie.registration.form.customize.buttonLabel":"{0}","oie.user.profile.login":"Username","oie.user.profile.lastname":"Last name","oie.user.profile.firstname":"First name","oie.user.profile.primary.email":"Email","oie.user.profile.secondary.email":"Secondary email","oie.user.profile.middleName":"Middle name","oie.user.profile.honorificPrefix":"Honorific prefix","oie.user.profile.honorificSuffix":"Honorific suffix","oie.user.profile.primaryEmail":"Primary email","oie.user.profile.title":"Title","oie.user.profile.displayName":"Display name","oie.user.profile.nickName":"Nickname","oie.user.profile.profileUrl":"Profile URL","oie.user.profile.mobilePhone":"Mobile phone","oie.user.profile.primaryPhone":"Primary phone","oie.user.profile.streetAddress":"Street address","oie.user.profile.city":"City","oie.user.profile.state":"State","oie.user.profile.zipCode":"ZIP Code","oie.user.profile.postalCode":"Postal code","oie.user.profile.countryCode":"Country code","oie.user.profile.postalAddress":"Postal address","oie.user.profile.preferredLanguage":"Preferred language","oie.user.profile.locale":"Locale","oie.user.profile.timezone":"Time zone","oie.user.profile.userType":"User type","oie.user.profile.employeeNumber":"Employee number","oie.user.profile.costCenter":"Cost center","oie.user.profile.organization":"Organization","oie.user.profile.division":"Division","oie.user.profile.department":"Department","oie.user.profile.managerId":"Manager ID","oie.user.profile.manager":"Manager","oie.selfservice.unlock_user.landing.to.app.success.message":"Account successfully unlocked! Verify your account with a security method to continue.","oie.selfservice.unlock_user.landing.to.app.signing.in.message":"Account successfully unlocked!","oie.selfservice.unlock_user.success.message":"You can log in using your existing username and password.","oie.selfservice.unlock_user.failed.message":"We are unable to unlock your account at this time, please contact your administrator","oie.selfservice.user.unlock.not.allowed":"Self Service Unlock is not allowed at this time. Please contact support for assistance.","oie.kmsi.title":"Keep me signed in","oie.kmsi.subtitle":"Sign in and enter security methods less frequently.","oie.kmsi.accept":"Stay signed in","oie.kmsi.reject":"Don't stay signed in","idx.session.expired":"You have been logged out due to inactivity. Refresh or return to the sign in screen.","oie.registration.is.not.enabled":"Sign up is not enabled for this organization.","oie.forgot.password.is.not.enabled":"Forgot password is not enabled for this organization.","idx.return.error":"Could not process this email link. Return to the screen where you requested it.","idx.return.stale":"This email link is out of date. Return to the screen where you requested it.","idx.invalid.forgot.password.token":"Your reset password token is no longer valid.","idx.invalid.reset.password.token":"Your reset password token is no longer valid. Contact your administrator to obtain a new token.","idx.reset.password.activating.user":"Reset password cannot be performed while the user is activating. Contact your administrator to obtain a new token.","core.system.transaction_resource_not_found":"Verification timed out. Please try again",tagsNotAllowed:"The field must not contain HTML tags","api.authn.error.PASSCODE_INVALID":"Invalid code. Try again.","oie.feature.disabled":"The requested feature is not enabled in this environment.","authfactor.challenge.suspended_factor":"This factor is suspended for your account due to too many failed attempts","oie.post.password.update.auth.failure.error":"Your password has been updated but there was a problem signing you in. Please try again or c
2ontact your administrator.","oie.assurance.unsatisfiable":'Unable to login to "{0}" at this time. For assistance, please contact your administrator.',"errors.E0000150":"You have reached the limit of sms requests, please try again later.","errors.E0000151":"You have reached the limit of call requests, please try again later.","oie.invalid.recovery.token":"The recovery token is invalid.","oie.consent.scopes.admin.title":"would like to access:","oie.consent.scopes.enduser.title":"would like to:","oie.consent.scopes.granular.title":"<$1>{0}</$1> <$2>wants to access</$2>","oie.consent.scopes.granular.description":"Allowing access will share","oie.consent.enduser.accept.label":"Yes, it's me","oie.consent.enduser.deny.label":"No, it's not me","oie.consent.enduser.title":"Did you just try to sign in?","oie.consent.enduser.email.allow.title":"Success! Return to the original tab or window","oie.consent.enduser.email.allow.description":"To continue, please return to the original browser tab or window you used to verify.","oie.consent.enduser.deny.description":"Close this window anytime.","oie.return.to.original.tab":"Close this window anytime.","idx.operation.cancelled.by.user":"Operation cancelled by user.","idx.transferred.to.new.tab":"Flow continued in a new tab.","idx.return.link.expired":"This email link has expired. To resend it, return to the screen where you requested it.","idx.return.link.otponly.your.verification.code":"Your verification code","idx.return.link.otponly.enter.code.on.page":"Enter this code on the {0} page.","idx.return.link.otponly.enter.code.on.page.sign.in":"sign-in","idx.return.link.otponly.enter.code.on.page.password.reset":"password reset","idx.return.link.otponly.enter.code.on.page.account.unlock":"account unlock","idx.return.link.otponly.enter.code.on.page.registration":"sign up","idx.return.link.otponly.enter.code.on.sign.in.page":"Enter this code on the sign-in page.","idx.return.link.otponly.enter.code.on.password.reset.page":"Enter this code on the password reset page.","idx.return.link.otponly.enter.code.on.account.unlock.page":"Enter this code on the account unlock page.","idx.return.link.otponly.enter.code.on.sign.up.page":"Enter this code on the sign up page.","idx.return.link.otponly.request":"Request from:","idx.return.link.otponly.warning.text":"If you didn’t request this code, you can ignore this message. Your account is safe and can only be accessed with this code.","idx.enter.otp.in.original.tab":"Enter the OTP in your original authentication location.","idx.return.link.otponly.app":"{0}","idx.return.link.otponly.browser.on.os":"{0} on {1}","geolocation.formatting.all":"{0}, {1}, {2}","geolocation.formatting.partial":"{0}, {1}","consent.scopes.email.label":"View your email address.","consent.scopes.profile.label":"View your profile information.","consent.scopes.phone.label":"View your phone number.","consent.scopes.address.label":"View your address.","consent.scopes.offlineAccess.label":"Keep you signed in to the app.","consent.scopes.onlineAccess.label":"Keep you signed in to the app.","consent.scopes.deviceSSO.label":"Request device secret.","consent.scopes.openid.desc":"Signals that a request is an OpenID request.","consent.scopes.profile.desc":"The exact data varies based on what profile information you have provided, such as: name, time zone, picture, or birthday.","consent.scopes.email.desc":"This allows the app to view your email address.","consent.scopes.address.desc":"This allows the app to view your address, such as: street address, city, state, and zip code.","consent.scopes.phone.desc":"This allows the app to view your phone number.","consent.scopes.offlineAccess.desc":"This keeps you signed in to the app, even when you are not using it.","consent.scopes.onlineAccess.desc":"This allows the app to access your data only when you are logged in to the application.","consent.scopes.deviceSSO.desc":"This allows you to single sign on between native client applications on your device.","consent.scopes.okta.users.manage.desc":"Allows the app to create new users and to manage all users'' profile and credentials information.","consent.scopes.okta.users.manage.self.desc":"Allows the app to manage the signed-in user''s profile and credentials.","consent.scopes.okta.users.read.desc":"Allows the app to read the existing users'' profiles and credentials.","consent.scopes.okta.users.read.self.desc":"Allows the app to read the signed-in user''s profile and credentials.","consent.scopes.okta.linkedObjects.manage.desc":"Allows the app to manage linked object definitions in your Okta organization.","consent.scopes.okta.linkedObjects.read.desc":"Allows the app to read linked object definitions in your Okta organization.","consent.scopes.okta.myAccount.manage.desc":"Allows the end-user to manage their account profile.","consent.scopes.okta.myAccount.read.desc":"Allows the end-user to read their account profile.","consent.scopes.okta.riskEvents.manage.desc":"Allows the app to publish risk events to your Okta organization.","consent.scopes.okta.clients.manage.desc":"Allows the app to manage clients in your Okta organization.","consent.scopes.okta.clients.read.desc":"Allows the app to read information about clients in your Okta organization.","consent.scopes.okta.clients.register.desc":"Allows the app to create new clients in your Okta organization.","consent.scopes.okta.authorizationServers.manage.desc":"Allows the app to create and manage Authorization Servers in your Okta organization.","consent.scopes.okta.authorizationServers.read.desc":"Allows the app to read information about Authorization Servers in your Okta organization.","consent.scopes.okta.groups.manage.desc":"Allows the app to manage existing groups in your Okta organization.","consent.scopes.okta.groups.read.desc":"Allows the app to read information about groups and their members in your Okta organization.","consent.scopes.okta.groups.register.desc":"Allows the app to create new groups in your Okta organization.","consent.scopes.okta.events.read.desc":"Allows the app to read information about deprecated Events v1 API entries in your Okta organization.","consent.scopes.okta.logs.read.desc":"Allows the app to read information about System Log entries in your Okta organization.","consent.scopes.okta.inlineHooks.manage.desc":"Allows the app to create and manage Inline Hooks in your Okta organization.","consent.scopes.okta.inlineHooks.read.desc":"Allows the app to read information about Inline Hooks in your Okta organization.","consent.scopes.okta.eventHooks.manage.desc":"Allows the app to create and manage Event Hooks in your Okta organization.","consent.scopes.okta.eventHooks.read.desc":"Allows the app to read information about Event Hooks in your Okta organization.","consent.scopes.okta.apps.manage.desc":"Allows the app to create and manage Apps in your Okta organization.","consent.scopes.okta.apps.read.desc":"Allows the app to read information about Apps in your Okta organization.","consent.scopes.okta.schemas.manage.desc":"Allows the app to create and manage Schemas in your Okta organization.","consent.scopes.okta.schemas.read.desc":"Allows the app to read information about Schemas in your Okta organization.","consent.scopes.okta.idps.manage.desc":"Allows the app to create and manage Identity Providers in your Okta organization.","consent.scopes.okta.idps.read.desc":"Allows the app to read information about Identity Providers in your Okta organization.","consent.scopes.okta.roles.manage.desc":"Allows the app to manage administrative role assignments for users in your Okta organization.","consent.scopes.okta.roles.read.desc":"Allows the app to read administrative role assignments for users in your Okta organization.","consent.scopes.okta.policies.manage.desc":"Allows the app to manage policies in your Okta organization.","consent.scopes.okta.policies.read.desc":"Allows the app to read information about policies in your Okta organization.","consent.scopes.okta.orgs.manage.desc":"Allows the app to manage organization-specific details for your Okta organization.","consent.scopes.okta.orgs.read.desc":"Allows the app to read organization-specific details about your Okta organization.","consent.scopes.okta.captchas.manage.desc":"Allows the app to create and manage CAPTCHAs in your Okta organization.","consent.scopes.okta.captchas.read.desc":"Allows the app to read information about CAPTCHAs in your Okta organization.","consent.scopes.okta.sessions.manage.desc":"Allows the app to manage all sessions in your Okta organization.","consent.scopes.okta.sessions.read.desc":"Allows the app to read all sessions in your Okta organization.","consent.scopes.okta.trustedOrigins.manage.desc":"Allows the app to manage all Trusted Origins in your Okta organization.","consent.scopes.okta.trustedOrigins.read.desc":"Allows the app to read all Trusted Origins in your Okta organization.","consent.scopes.okta.templates.manage.desc":"Allows the app to manage all custom templates in your Okta organization.","consent.scopes.okta.templates.read.desc":"Allows the app to read all custom templates in your Okta organization.","consent.scopes.okta.factors.manage.desc":"Allows the app to manage all admin operations for org factors (e.g. activate, deactivate, read).","consent.scopes.okta.factors.read.desc":"Allows the app to read org factors information.","consent.scopes.okta.authenticators.manage.desc":"Allows the app to manage all security methods (e.g. enrollments, reset).","consent.scopes.okta.authenticators.read.desc":"Allows the app to read org security method information.","consent.scopes.okta.authenticators.manage.self.desc":"Allows the app to manage users own security methods (e.g. enrollments, reset).","consent.scopes.idSnapsh
2ot.read.desc":"Allows the app to read your identity snapshot attestation.","consent.scopes.idSnapshot.manage.desc":"Allows the app to create and manage your identity snapshot attestation.","logo.for.the.app.alt.text":"Logo for the app","device.code.activate.title":"Activate your device","device.code.activate.subtitle":"Follow the instructions on your device to get an activation code","device.code.activate.label":"Activation Code","device.code.activated.success.title":"Device activated","device.code.activated.error.title":"Device not activated","idx.device.activated":"Follow the instructions on your device for next steps","idx.device.not.activated.consent.denied":"Your device cannot be activated because you did not allow access","idx.device.not.activated.internal.error":"Your device cannot be activated because of an internal error","idx.invalid.device.code":"Invalid code. Try again.","idx.operation.cancelled.on.other.device":"Access denied on other device.","idx.expired.activation.token":"Your account activation link is no longer valid. Request a new activation email below.","idx.missing.activation.token":"This can happen if you have already activated your account, or if the URL you are trying to use is invalid. Contact your administrator for further assistance.","idx.activating.inactive.user":"Your account has been temporarily suspended. Contact your administrator for further assistance.","idx.request.activation.email":"New activation link requested. If your information matches our records, you will receive a new activation link in your inbox s
2oon.","oie.activation.request.email.title.expire":"Activation link has expired","oie.activation.request.email.title.invalid":"Activation link no longer valid","oie.activation.request.email.title.suspended":"Account suspended","oie.activation.request.email.title.submitted":"Request submitted","oie.activation.request.email.button":"Request activation email","oie.browser.error.NotAllowedError":"The operation either timed out or was not allowed.","authfactor.challenge.soft_token.invalid_passcode":"Your code doesn't match our records. Please try again.","authfactor.challenge.soft_token.used_passcode":"Each code can only be used once. Please wait for a new code and try again.","oie.tooManyRequests":"Too many attempts. Try again later.",E0000010:"Server is unable to respond at the moment.","idx.error.registration.unavailable":"Registration is currently unavailable.","idx.error.user.not.assigned.to.app":"User is not assigned to this application.","idx.error.code.user_not_assigned":"You are not allowed to access this app. To request access, contact an admin.","idx.error.code.access_denied.device_assurance.remediation.title":"Your device doesn't meet the security requirements","idx.error.code.access_denied.device_assurance.remediation.explanation_one_rule":"To sign in, make the following updates. Then, access the app again.","idx.error.code.access_denied.device_assurance.remediation.explanation_multiple_rules":"To sign in, pick an option and make the updates. Then, access the app again.","idx.error.code.access_denied.device_assurance.remediation.option_index":"Option {0}:","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version":"Update to Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.at_least":"Update to at least Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.exactly":"Update to exactly Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.one_of_the_following":"Update to one of the following: Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: Android {0}","idx.error.code.access_denied.device_assurance.remediation.android.device_disk_encrypted":"Encrypt your device","idx.error.code.access_denied.device_assurance.remediation.android.use_lock_screen":"Enable lock screen","idx.error.code.access_denied.device_assurance.remediation.android.use_biometric_lock_screen":"Enable lock screen and biometrics","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version":"Update to iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.at_least":"Update to at least iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.exactly":"Update to exactly iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.one_of_the_following":"Update to one of the following: iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: iOS {0}","idx.error.code.access_denied.device_assurance.remediation.ios.use_lock_screen":"Set a passcode for the lock screen","idx.error.code.access_denied.device_assurance.remediation.ios.use_biometric_lock_screen":"Set a passcode for the lock screen and enable Touch ID or Face ID","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version":"Update to macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.at_least":"Update to at least macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.exactly":"Update to exactly macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.one_of_the_following":"Update to one of the following: macOS {0}","idx.error.code.access_denied.device_assurance.remediation.macos.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: macOS {0}
2","idx.error.code.access_denied.device_assurance.remediation.macos.use_lock_screen":"Set a passcode for the lock screen","idx.error.code.access_denied.device_assurance.remediation.macos.device_disk_encrypted":"Turn on FileVault","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version":"Update to Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.at_least":"Update to at least Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.exactly":"Update to exactly Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.one_of_the_following":"Update to one of the following: Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.upgrade_os_version.exactly_one_of_the_following":"Update to exactly one of the following: Windows {0}","idx.error.code.access_denied.device_assurance.remediation.windows.device_disk_encrypted":"Encrypt all internal disks with BitLocker","idx.error.code.access_denied.device_assurance.remediation.windows.use_biometric_lock_screen":"Enable Windows Hello for the lock screen","idx.error.code.access_denied.device_assurance.remediation.device.must.be.managed":"Use a device managed by your organization","idx.error.code.access_denied.device_assurance.remediation.additional_help_default":"For more information, follow the instructions on <$1>the help page</$1> or contact your administrator for help","idx.error.code.access_denied.device_assurance.remediation.additional_help_custom":"For more information, follow the instructions on <$1>your organization's help page</$1> or contact your administrator for help","idx.error.code.access_denied.device_assurance.remediation.chrome.antivirus":"Enable antivirus software","idx.error.code.access_denied.device_assurance.remediation.chrome.disk_encrypted":"Turn on disk encryption","idx.error.code.access_denied.device_assurance.remediation.chrome.os_firewall":"Turn on your device's firewall","idx.error.code.access_denied.device_assurance.remediation.chrome.screen_lock_secured":"Turn on automatic screen saver and screen locking when idle","idx.error.code.access_denied.device_assurance.remediation.chrome.upgrade_browser_version":"Update Chrome browser to {0}","idx.error.code.access_denied.device_assurance.remediation.chrome.chromeos.upgrade_os_version":"Update to ChromeOS {0}","idx.error.code.access_denied.device_assurance.remediation.chrome.chromeos.key_trust_level.verified_mode":"Switch your device to verified mode","idx.error.code.access_denied.device_assurance.remediation.chrome.chromeos.key_trust_level.developer_mode":"Switch your device to developer mode","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.play_protect_required":"Please ensure Google Play Protect is enabled and that a scan has been performed, then try accessing this application again","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.play_protect_scan_threshold":"There is a problem with your Google Play Protect system scan. Please open Google Play and take action on the warnings displayed","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.version_update_available":"Your device has an OS update available. Please update your device then log in again","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.disable_usb_debugging":"Turn off USB debugging from Developer Options","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.lock_screen_complexity":"Your lock screen doesn't meet complexity requirements","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.disable_network_proxy":"Your device is using a network proxy. Please disable it then try again","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.unsecured_wifi_network":"Your WiFi network isn't secure. Please disconnect and try again from your phone's mobile cellular connection","idx.error.code.access_de
2nied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required":"Install the Android Device Policy app on this device","idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required_manual_install":"Go to <$1>Settings in Okta Verify</$1> and follow the instructions to install the Android Device Policy app","idx.error.code.access_denied.device_assurance.remediation.osquery.background_activity_disabled":"Enable background activity for Okta Verify","idx.error.code.access_denied.device_assurance.remediation.osquery.sip_disabled":"Enable System Integrity Protection","idx.error.code.access_denied.device_assurance.remediation.osquery.timeout":"A temporary issue occurred while checking your device. Please try signing in again","idx.error.code.access_denied.device_assurance.remediation.android.caller_context.managed_app":"Use a managed application from the Work Profile","idx.device_assurance.grace_period.title":"Device assurance reminder","idx.device_assurance.grace_period.warning.title.due_by_date":"Your device doesn't meet the security requirements. Fix the issue by {0} to prevent lockout.","idx.device_assurance.grace_period.continue_to_app":"Continue to app","oie.enrollment.policy.grace.period.required.today":"Required today","oie.enrollment.policy.grace.period.required.in.days":"Required in {0} days","oie.enrollment.policy.grace.period.required.in.one.day":"Required in 1 day","oie.enrollment.policy.grace.period.required.in.number.of.skips":"{0} skips remaining","oie.enrollment.policy.grace.period.required.in.one.skip":"1 skip remaining","api.policy.okta.account.management.insufficient.authenticators.unable.to.sign.in":"Unable to sign in. Contact support for assistance.","chrome.lna.fastpass.requires.permission.title":"Okta FastPass requires network permission","chrome.lna.error.title":"Unable to sign in","chrome.lna.error.description.intro":"The browser is blocking communication with Okta Verify.","chrome.lna.error.description.step1":"Go to your browser's site settings","chrome.lna.error.description.step2":"Find “Local network access” or “Apps on device”","chrome.lna.error.description.step3":"Change the permission from “Block” to “Allow” and reload this page","chrome.lna.error.description.more.information":"For more information, follow the instructions on the <$1>Local app access</$1> page or contact your administrator for help."},Mr={API_RATE_LIMIT:3e4,WIDGET_LOGIN_CONTAINER_ID:"signin-container",WIDGET_CONTAINER_ID:"okta-sign-in",WIDGET_CONFIG_COLORS_ID:"okta-sign-in-config-colors",DIRECTION_BACK:"DIRECTION_BACK",RECOVERY_TYPE_PASSWORD:"PASSWORD",RECOVERY_TYPE_UNLOCK:"UNLOCK",RECOVERY_FACTOR_TYPE_SMS:"SMS",RECOVERY_FACTOR_TYPE_EMAIL:"EMAIL",RECOVERY_FACTOR_TYPE_CALL:"CALL",IOS:"ios",ANDROID:"android",ODA:"oda",MDM:"mdm",WS1:"ws1",SUCCESS:"SUCCESS",FORGOT_PASSWORD_EMAIL_SENT:"FORGOT_PASSWORD_EMAIL_SENT",UNLOCK_ACCOUNT_EMAIL_SENT:"UNLOCK_ACCOUNT_EMAIL_SENT",CONFIG_ERROR:"CONFIG_ERROR",UNSUPPORTED_BROWSER_ERROR:"UNSUPPORTED_BROWSER_ERROR",OAUTH_ERROR:"OAUTH_ERROR",AUTH_STOP_POLL_INITIATION_ERROR:"AUTH_STOP_POLL_INITIATION_ERROR",U2F_ERROR:"U2F_ERROR",WEB_AUTHN_ERROR:"WEB_AUTHN_ERROR",WEBAUTHN_ABORT_ERROR:"WEBAUTHN_ABORT_ERROR",CONFIGURED_FLOW_ERROR:"CONFIGURED_FLOW_ERROR",CHROME_LOCAL_NETWORK_ACCESS_DENIED_ERROR:"CHROME_LOCAL_NETWORK_ACCESS_DENIED_ERROR",ALL_OPTIONAL_NONE_ENROLLED:"ALL_OPTIONAL_NONE_ENROLLED",ALL_OPTIONAL_SOME_ENROLLED:"ALL_OPTIONAL_SOME_ENROLLED",HAS_REQUIRED_NONE_ENROLLED:"HAS_REQUIRED_NONE_ENROLLED",HAS_REQUIRED_SOME_REQUIRED_ENROLLED:"HAS_REQUIRED_SOME_REQUIRED_ENROLLED",HAS_REQUIRED_ALL_REQUIRED_ENROLLED:"HAS_REQUIRED_ALL_REQUIRED_ENROLLED",PRIMARY_AUTH:"PRIMARY_AUTH",FORGOT_PASSWORD:"FORGOT_PASSWORD",UNLOCK_ACCOUNT:"UNLOCK_ACCOUNT",SESSION_SSO:"SESSION_SSO",SESSION_STEP_UP:"SESSION_STEP_UP",ACTIVATION_EMAIL_SENT:"ACTIVATION_EMAIL_SENT",REGISTRATION_COMPLETE:"REGISTRATION_COMPLETE",REGISTRATION_FAILED:"REGISTRATION_FAILED",IDP_DISCOVERY:"IDP_DISCOVERY",OKTA_VERIFY_APPLE_APP_STORE_URL:"https://apps.apple.com/us/app/okta-ver
2ify/id490179405",OKTA_VERIFY_GOOGLE_PLAY_STORE_URL:"https://play.google.com/store/apps/details?id=com.okta.android.auth",LOOPBACK_CHALLENGE:"LOOPBACK",CUSTOM_URI_CHALLENGE:"CUSTOM_URI",UNIVERSAL_LINK_CHALLENGE:"UNIVERSAL_LINK",APP_LINK_CHALLENGE:"APP_LINK",CHROME_DTC:"CHROME_DTC"};class Ur extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class jr extends Ur{constructor(e){super(e||ra("error.config")),this.name=Mr.CONFIG_ERROR}}class Fr extends Ur{constructor(e){super(e||ra("error.unsupported.browser")),this.name=Mr.UNSUPPORTED_BROWSER_ERROR}}class Vr extends Ur{constructor(...e){super(...e),this.name=Mr.OAUTH_ERROR}}class qr extends Ur{constructor(...e){super(...e),this.name=Mr.REGISTRATION_FAILED}}class Br extends Ur{constructor(...e){super(...e),this.name=Mr.AUTH_STOP_POLL_INITIATION_ERROR}}class $r extends Ur{constructor(e){var t,n;super(null===(t=e.xhr)||void 0===t||null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummary),this.xhr=void 0,this.name=Mr.U2F_ERROR,this.xhr=e.xhr}}class Hr extends Ur{constructor(e){var t,n;super(null===(t=e.xhr)||void 0===t||null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummary),this.xhr=void 0,this.name=Mr.WEB_AUTHN_ERROR,this.xhr=e.xhr}}class zr extends Ur{constructor(...e){super(...e),this.name=Mr.WEBAUTHN_ABORT_ERROR}}class Wr extends Ur{constructor(e,t){super(e),this.flowSetting=void 0,this.name=Mr.CONFIGURED_FLOW_ERROR,this.flowSetting=t}}class Kr extends Ur{constructor(...e){super(...e),this.name=Mr.CHROME_LOCAL_NETWORK_ACCESS_DENIED_ERROR}}const Gr={},Yr="withCredentials"in new window.XMLHttpRequest,Jr=void 0!==window.XDomainRequest;function Qr(e,t){var n,o,i;("error"===e||null!==(n=window)&&void 0!==n&&null!==(o=n.OktaSignInDebug)&&void 0!==o&&null!==(i=o.isEnabled)&&void 0!==i&&i.call(o))&&window.console[e].apply(window.console,t)}Gr.corsIsNotSupported=function(){return!(Yr||Jr)},Gr.corsIsNotEnabled=function(e){return 0===e.status},Gr.localStorageIsNotSupported=function(){const e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!1}catch(e){return!0}},Gr.supportsPushState=function(e){return!(!(e=e||window).history||!e.history.pushState)},Gr.isIE=function(){return/(msie|trident)/i.test(navigator.userAgent)},Gr.isFirefox=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},Gr.isEdge=function(){return navigator.userAgent.toLowerCase().indexOf("edge")>-1},Gr.isSafari=function(){return navigator.userAgent.toLowerCase().indexOf("safari")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("chrome")},Gr.isMac=function(){return navigator.platform.toUpperCase().indexOf("MAC")>=0},Gr.isAndroid=function(){return/android/i.test(navigator.userAgent)&&!/windows phone/i.test(navigator.userAgent)},Gr.isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},Gr.getChromeLNAPermissionState=async function(e){if(navigator.permissions&&"function"==typeof navigator.permissions.query)try{let t;try{t=await navigator.permissions.query({name:"loopback-network"})}catch(e){t=await navigator.permissions.query({name:"local-network-access"})}e(t.state)}catch(t){if(t instanceof Kr)throw t;e(void 0)}else e(void 0)},Gr.getUserLanguages=function(){if(navigator.languages)return[...navigator.languages];const e=[];return["language","userLanguage","browserLanguage","systemLanguage"].forEach(function(t){n
2avigator[t]&&e.push(navigator[t])}),e};var Xr=function(){return Qr("info",arguments)},Zr=function(){return Qr("warn",arguments)},ea=function(){return Qr("error",arguments)};const ta="osw.languages";function na(){let e=JSON.parse(localStorage.getItem(ta));return e&&e.version===Ir.version||(e={version:Ir.version}),e}function oa(e,t,n){const o=t.replace("-","_"),i=n.rewrite(encodeURI(`/labels/json/${e}_${o}.json`));return Ne()(n.baseUrl+i,{method:"GET",headers:{Accept:"application/json"},mode:"cors"}).then(e=>e.text()).then(e=>JSON.parse(e))}var ia={login:Lr,country:Dr,courage:Lr,currentLanguage:null,isLoaded:function(e){return this.currentLanguage===e},remove:function(){this.currentLanguage=null},loadLanguage:async function(e,t,n,o){const i=function(e){if(!e)return{};const t={};return Rr.each(Rr.keys(e),function(n){t[n.toLowerCase()]=e[n]}),Rr.mapObject(t,function(e){const t={login:{},country:{}};if(!Rr.isObject(e))throw new Error('Invalid format for "i18n"');return Rr.each(e,function(e,n){const o=n.split(/^country\./);o.length>1?t.country[o[1]]=e:t.login[o[0]]=e}),t})}(t),r=e.toLowerCase(),a=await async function(e,t,n){if(e===Ir.defaultLanguage||!Rr.contains(n,e))return{};const o=!Gr.localStorageIsNotSupported();if(o){const t=na();if(t[e])return t[e]}try{const[n,i]=await Promise.all([oa("login",e,t),oa("country",e,t)]);return o&&function(e,t,n){const o=na();o[e]={login:t,country:n},localStorage.setItem(ta,JSON.stringify(o))}(e,n,i),{login:n,country:i}}catch(t){return Zr("Unable to load language: "+e),{}}}(e,n,o);this.login=Rr.extend({},Lr,a.login),this.country=Rr.extend({},Dr,a.country),this.courage=Rr.extend({},Lr,a.login),i[r]&&(Rr.extend(this.login,i[r].login),Rr.extend(this.country,i[r].country),Rr.extend(this.courage,i[r].login)),this.currentLanguage=e}};const ra=function(e,t="login",n=[],o=!1){const i=aa(t);if(!i)return sa(e,t,"bundle"),"L10N_ERROR["+t+"]";let r=i[e];try{return r=function(e,t){function n(){throw new Error("Mismatch number of variables: "+e+", "+JSON.stringify(t))}let o=e,i=e;for(let e=0,r=t.length;e<r;e++){const r=String(t[e]),a=new RegExp("\\{"+e+"\\}","g");i=i.replace(a,r),null!=r&&i!==o||n(),o=i}return/\{[\d+]\}/.test(i)&&n(),i}(r,n=n&&n.slice?n.slice(0):[]),r||(sa(e,t,"key"),"L10N_ERROR["+e+"]")}catch(n){return o||sa(e,t,"parameters"),"L10N_ERROR["+e+"]"}};function aa(e){if(!e){const e=Object.keys(ia).filter(e=>"object"==typeof e)[0];return ia[e]}const t=(e=>{if(/-/.test(e)){const t=e.split("-");return t[1]=t[1].toUpperCase(),t.join("_")}return e})((null===(n=window)||void 0===n||null===(o=n.okta)||void 0===o?void 0:o.locale)||"en");var n,o;return ia[`${e}_${t}`]||ia[e]}function sa(e,t,n){const o=la("okta-i18n-error",{detail:{type:"l10n-error",key:e,bundleName:t,reason:n}});o&&document.dispatchEvent(o)}const la=function(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);if(!window.CustomEvent){t=t||{bubbles:!1,cancelable:!1,detail:null};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}},ca={};function ua(e){const t=[e],n=e.split("-");for(;n.pop()&&n.length>0;)t.push(n.join("-"));return t}ca.transformErrorXHR=function(e){if(0===e.status&&Rr.isEmpty(e.responseJSON))return e.responseJSON={errorSummary:ra("error.network.connection","login")},e;if(!e.responseJSON){if(!e.responseText)return e.responseJSON={errorSummary:ra("error.unsupported.response","login")},e;if("string"==typeof e.responseText)try{e.responseJSON=JSON.parse(e.responseText)}catch(t){return e.responseJSON={errorSummary:ra("error.unsupported.response","login")},e}else"object"==typeof e.responseText&&(e.responseJSON=e.responseText)}if(e.responseJSON&&e.responseJSON.errorCauses&&e.responseJSON.errorCauses.length&&(e.responseJSON.errorSummary=e.responseJSON.errorCauses[0].errorSummary),!Rr.isEmpty(e.responseJSON)){const{errorCode:t}=e.responseJSON,n=t&&((e,t="login")=>{const n=aa(t);return!(null==n||!n[e])})("errors."+t,"login")?ra("errors."+t,"login",[],!0):void 0;-1===(null==n?void 0:n.indexOf("L10N_ERROR["))&&(e.responseJSON.errorSummary=n,e.responseJSON&&e.responseJSON.errorCauses&&e.responseJSON.errorCauses.length&&delete e.responseJSON.errorCauses)}return e},ca.toLower=function(e){return Rr.map(e,function(e){return e.toLowerCase()})},ca.expandLanguages=function(e){return Rr.chain(e).map(ua).flatten().uniq().value(
2)},ca.callAfterTimeout=function(e,t){return setTimeout(e,t)},ca.callAfterTimeoutOrWindowRefocus=function(e,t,n=!1){let o,i;const r=()=>{if(document.removeEventListener("visibilitychange",i),!n)return e();setTimeout(e,t)};return i=()=>{document.hidden?clearTimeout(o):r()},document.addEventListener("visibilitychange",i),o=setTimeout(r,t),()=>{clearTimeout(o),document.removeEventListener("visibilitychange",i)}},ca.debugMessage=function(e){Zr(`\n${e.replace(/^(\s)+/gm,"")}`)},ca.logConsoleError=function(e){ea(e)},ca.triggerAfterError=function(e,t={}){!t.statusCode&&t.xhr&&t.xhr.status&&(t.statusCode=t.xhr.status);const n=Rr.isFunction(e.className)?e.className():e.className,o=Rr.pick(t,"name","message","statusCode","xhr");e.trigger("afterError",{controller:n},o),Zr("controller: "+n+", error: "+o)},ca.redirect=function(e,t=window,n=!1){Gr.isAndroid()&&!n?ca.redirectWithFormGet(e):ca.changeLocation(e,t)},ca.changeLocation=function(e,t=window){e?t.location.href=e:ea(`Cannot redirect to empty URL: (${e})`)},ca.executeOnVisiblePage=function(e){if("hidden"===document.visibilityState){const t=()=>{"visible"===document.visibilityState&&(document.removeEventListener("visibilitychange",t),e())};document.addEventListener("visibilitychange",t)}else e()},ca.redirectWithFormGet=function(e){ca.redirectWithForm(e,"get")};{let e=!1;ca.getRedirectWithFormLock=function(){return e},ca.setRedirectWithFormLock=function(){e=!0}}ca.redirectWithForm=function(e,t="post"){if(!e)return void ea(`Cannot redirect to empty URL: (${e})`);if(!0===ca.getRedirectWithFormLock())return void ea("Cannot redirect with form, already in progress");const n=document.getElementById(Mr.WIDGET_CONTAINER_ID);if(!n)return void ea("Cannot find okta-sign-in container append to which a form");ca.setRedirectWithFormLock();const o=function(e="",t){const n=e.split("#"),o=n[1],i=(n[0]||"").split("?"),r=i[1];let a=i[0];o&&(a+="#"+o);const s=document.createElement("form");return s.method=t,s.style.display="none",s.action=a,r&&r.length&&r.split("&").forEach(e=>{const t=e.split("="),n=function(e,t){const n=document.createElement("input");return n.name=e,n.value=decodeURIComponent(t),n.type="hidden",n}(t[0],t[1]);s.appendChild(n)}),s.appendChild(function(){const e=document.createElement("input");return e.type="submit",e}()),s}(e,t);n.appendChild(o),o.querySelector('input[type="submit"]').click()},ca.createInputExplain=function(e,t,n,o,i){const r=o?ra(e,n,o):ra(e,n);return r!==(i?ra(t,n,i):ra(t,n))&&r},ca.isV1StateToken=function(e){return!!(e&&Rr.isString(e)&&e.startsWith("00"))},ca.getAutocompleteValue=function(e,t){return(null==e?void 0:e.get("features.disableAutocomplete"))?"off":t},ca.searchParamsToString=function(e){return Object.keys(e).filter(t=>null!=e[t]).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&")};var pa={exports:{}},da={},ha={__esModule:!0};ha.extend=va,ha.indexOf=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},ha.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return ga.test(e)?e.replace(ma,ya):e},ha.isEmpty=function(e){return!e&&0!==e||!(!_a(e)||0!==e.length)},ha.createFrame=function(e){var t=va({},e);return t._parent=e,t},ha.blockParams=function(e,t){return e.path=t,e},ha.appendContextPath=function(e,t){return(e?e+".":"")+t};var fa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},ma=/[&<>"'`=]/g,ga=/[&<>"'`=]/;function ya(e){return fa[e]}function va(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var ba=Object.prototype.toString;ha.toString=ba;var wa=function(e){return"function"==typeof e};wa(/x/)&&(ha.isFunction=wa=function(e){return"function"==typeof e&&"[object Function]"===ba.call(e)}),ha.isFunction=wa;var _a=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===ba.call(e)};ha.isArray=_a;var ka={exports:{}};!function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(e,t){var i=t&&t.loc,r=void 0,a=void 0,s=void 0,l=void 0;i&&(r=i.start.line,a=i.end.line,s=i.start.column,l=i.end.column,e
vendor: 6,448 bytes, line 2
2+=" - "+r+":"+s);for(var c=Error.prototype.constructor.call(this,e),u=0;u<n.length;u++)this[n[u]]=c[n[u]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{i&&(this.lineNumber=r,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=s,this.endColumn=l))}catch(e){}}o.prototype=new Error,t.default=o,e.exports=t.default}(ka,ka.exports);var xa={},Sa={exports:{}};!function(e,t){t.__esModule=!0;var n=ha;t.default=function(e){e.registerHelper("blockHelperMissing",function(t,o){var i=o.inverse,r=o.fn;if(!0===t)return r(this);if(!1===t||null==t)return i(this);if(n.isArray(t))return t.length>0?(o.ids&&(o.ids=[o.name]),e.helpers.each(t,o)):i(this);if(o.data&&o.ids){var a=n.createFrame(o.data);a.contextPath=n.appendContextPath(o.data.contextPath,o.name),o={data:a}}return r(t,o)})},e.exports=t.default}(Sa,Sa.exports);var Ta={exports:{}};!function(e,t){t.__esModule=!0;var n,o=ha,i=(n=ka.exports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new i.default("Must pass iterator to #each");var n,r=t.fn,a=t.inverse,s=0,l="",c=void 0,u=void 0;function p(t,n,i){c&&(c.key=t,c.index=n,c.first=0===n,c.last=!!i,u&&(c.contextPath=u+t)),l+=r(e[t],{data:c,blockParams:o.blockParams([e[t],t],[u+t,null])})}if(t.data&&t.ids&&(u=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(c=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var d=e.length;s<d;s++)s in e&&p(s,s,s===e.length-1);else if("function"==typeof Symbol&&e[Symbol.iterator]){for(var h=[],f=e[Symbol.iterator](),m=f.next();!m.done;m=f.next())h.push(m.value);for(d=(e=h).length;s<d;s++)p(s,s,s===e.length-1)}else n=void 0,Object.keys(e).forEach(function(e){void 0!==n&&p(n,s-1),n=e,s++}),void 0!==n&&p(n,s-1,!0);return 0===s&&(l=a(this)),l})},e.exports=t.default}(Ta,Ta.exports);var Ea={exports:{}};!function(e,t){t.__esModule=!0;var n,o=(n=ka.exports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default}(Ea,Ea.exports);var Ca={exports:{}};!function(e,t){t.__esModule=!0;var n,o=ha,i=(n=ka.exports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return o.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||o.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},e.exports=t.default}(Ca,Ca.exports);var Oa,Aa,Pa={exports:{}};Oa=Pa,(Aa=Pa.exports).__esModule=!0,Aa.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],n=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)t.push(arguments[o]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)})},Oa.exports=Aa.default;var Na={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t,n){return e?n.lookupProperty(e,t):e})},e.exports=t.default}(Na,Na.exports);var Ra={exports:{}};function Ia(e){return e&&e.__esModule?e:{default:e}}!function(e,t){t.__esModule=!0;var n,o=ha,i=(n=ka.exports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");o.isFunction(e)&&(e=e.call(this));var n=t.fn;if(o.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=o.createFrame(t.data)).contextPath=o.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:o.blockParams([e],[r&&r.contextPath])})})},e.exports=t.default}(Ra,Ra.exports),xa.__esModule=!0,xa.registerDefaultHelpers=function(e){Da.default(e),La.default(e),Ma.default(e),Ua.default(e),ja.default(e),Fa.default(e),Va.default(e)},xa.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))};var Da=Ia(Sa.exports),La=Ia(Ta.exports),Ma=Ia(Ea.exports),Ua=Ia(Ca.exports),ja=Ia(Pa.exports),Fa=Ia(Na.exports),Va=Ia(Ra.exports),qa={},Ba={exports:{}};!function(e,t){t.__esModule=!0;var n=ha;t.default=function(e){e.registerDecorator("inline",function(e,t,o,i){var r=e;return t.partials||(t.partials={},r=function(i,r){var a=o.partials;o.partials=n.extend({},a,t.partials);var s=e(i,r);return o.partials=a,s}),t.partials[i.args[0]]=i.fn,r})},e.exports=t.default}(Ba,Ba.exports),qa.__esModule=!0,qa.registerDefaultDecorators=function(e){Ha.default(e)};var $a,Ha=($a=Ba.exports)&&$a.__esModule?$a:{default:$a},za={exports:{}};!function(e,t){t.__esModule=!0;var n=ha,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(o.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];console[t].apply(console,i)}}};t.default=o,e.exports=t.default}(za,za.exports);var Wa={__esModule:!0,createProtoAccessControl:function(e){var t=Object.create(null);t.__proto__=!1,Ka.extend(t,e.allowedProtoProperties);var n=Object.create(null);return n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1,n.__lookupSetter__=!1,Ka.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}};Wa.resultIsAllowed=function(e,t,n){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==Ya[e]&&(Ya[e]=!0,Ga.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,n)}
vendor: 7,858 bytes, line 2
2,Wa.resetLoggedProperties=function(){Object.keys(Ya).forEach(function(e){delete Ya[e]})};var Ka=ha,Ga=function(e){return e&&e.__esModule?e:{default:e}}(za.exports),Ya=Object.create(null);function Ja(e){return e&&e.__esModule?e:{default:e}}da.__esModule=!0,da.HandlebarsEnvironment=is;var Qa=ha,Xa=Ja(ka.exports),Za=xa,es=qa,ts=Ja(za.exports),ns=Wa;da.VERSION="4.7.9",da.COMPILER_REVISION=8,da.LAST_COMPATIBLE_COMPILER_REVISION=7,da.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var os="[object Object]";function is(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},Za.registerDefaultHelpers(this),es.registerDefaultDecorators(this)}is.prototype={constructor:is,logger:ts.default,log:ts.default.log,registerHelper:function(e,t){if(Qa.toString.call(e)===os){if(t)throw new Xa.default("Arg not supported with multiple helpers");Qa.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(Qa.toString.call(e)===os)Qa.extend(this.partials,e);else{if(void 0===t)throw new Xa.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(Qa.toString.call(e)===os){if(t)throw new Xa.default("Arg not supported with multiple decorators");Qa.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){ns.resetLoggedProperties()}};var rs=ts.default.log;da.log=rs,da.createFrame=Qa.createFrame,da.logger=ts.default;var as={exports:{}};!function(e,t){function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default}(as,as.exports);var ss={},ls={__esModule:!0,wrapHelper:function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}};ss.__esModule=!0,ss.checkRevision=function(e){var t=e&&e[0]||1,n=ps.COMPILER_REVISION;if(!(t>=ps.LAST_COMPATIBLE_COMPILER_REVISION&&t<=ps.COMPILER_REVISION)){if(t<ps.LAST_COMPATIBLE_COMPILER_REVISION){var o=ps.REVISION_CHANGES[n],i=ps.REVISION_CHANGES[t];throw new us.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+i+").")}throw new us.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},ss.template=function(e,t){if(!t)throw new us.default("No environment passed to template");if(!e||!e.main)throw new us.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0],o={strict:function(e,t,n){if(!e||!(t in e))throw new us.default('"'+t+'" not defined in '+e,{loc:n});return o.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||fs.resultIsAllowed(n,o.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i]&&o.lookupProperty(e[i],t);if(null!=r)return r}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:cs.escapeExpression,invokePartial:function(n,o,i){i.hash&&(o=cs.extend({},o,i.hash),i.ids&&(i.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,o,i),i.hooks=this.hooks,i.protoAccessControl=this.protoAccessControl;var r=t.VM.invokePartial.call(this,n,o,i);if(null==r&&t.compile&&(i.partials[i.name]=t.compile(n,e.compilerOptions,t),r=i.partials[i.name](o,i)),null!=r){if(i.indent){for(var a=r.split("\n"),s=0,l=a.length;s<l&&(a[s]||s+1!==l);s++)a[s]=i.indent+a[s];r=a.join("\n")}return r}throw new us.default("The partial "+i.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,o,i){var r=this.programs[e],a=this.fn(e);return t||i||o||n?r=ms(this,e,a,t,n,o,i):r||(r=this.programs[e]=ms(this,e,a)),r},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=cs.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.data;i._setup(n),!n.partial&&e.useData&&(r=function(e,t){return t&&"root"in t||((t=t?ps.createFrame(t):{}).root=e),t}(t,r));var a=void 0,s=e.useBlockParams?[]:void 0;function l(t){return""+e.main(o,t,o.helpers,o.partials,r,s,a)}return e.useDepths&&(a=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(l=vs(e.main,l,o,n.depths||[],r,s))(t,n)}return i.isTop=!0,i._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var r={};bs(r,t.helpers,o),bs(r,i.helpers,o),o.helpers=r,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=cs.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=fs.createProtoAccessControl(i);var a=i.allowCallsToHelperMissing||n;ds.moveHelperToHooks(o,"helperMissing",a),ds.moveHelperToHooks(o,"blockHelperMissing",a)}},i._child=function(t,n,i,r){if(e.useBlockParams&&!i)throw new us.default("must pass block params");if(e.useDepths&&!r)throw new us.default("must pass parent depths");return ms(o,t,e[t],n,0,i,r)},i},ss.wrapProgram=ms,ss.resolvePartial=function(e,t,n){return e?e.call||n.name||(n.name=e,e=ys(n.partials,e)):e="@partial-block"===n.name?ys(n.data,"partial-block"):ys(n.partials,n.name),e},ss.invokePartial=function(e,t,n){var o=ys(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var i=void 0;if(n.fn&&n.fn!==gs&&function(){n.data=ps.createFrame(n.data);var e=n.fn;i=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=ps.createFrame(n.data),n.data["partial-block"]=o,e(t,n)},e.partials&&(n.partials=cs.extend({},n.partials,e.partials))}(),void 0===e&&i&&(e=i),void 0===e)throw new us.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},ss.noop=gs;var cs=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(ha),us=function(e){return e&&e.__esModule?e:{default:e}}(ka.exports),ps=da,ds=xa,hs=ls,fs=Wa;function ms(e,t,n,o,i,r,a){function s(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;return!a||t==a[0]||t===e.nullContext&&null===a[0]||(s=[t].concat(a)),n(e,t,e.helpers,e.partials,i.data||o,r&&[i.blockParams].concat(r),s)}return(s=vs(n,s,e,a,o,r)).program=t,s.depth=a?a.length:0,s.blockParams=i||0,s}function gs(){return""}function ys(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function vs(e,t,n,o,i,r){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],i,r,o),cs.extend(t,a)}return t}function bs(e,t,n){t&&Object.keys(t).forEach(function(o){var i=t[o];e[o]=function(e,t){var n=t.lookupProperty;return hs.wrapHelper(e,function(e){return e.lookupProperty=n,e})}(i,n)})}var ws={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default}
2(ws,ws.exports),function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=o(da),r=n(as.exports),a=n(ka.exports),s=o(ha),l=o(ss),c=n(ws.exports);function u(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=r.default,e.Exception=a.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=l,e.template=function(t){return l.template(t,e)},e}var p=u();p.create=u,c.default(p),p.default=p,t.default=p,e.exports=t.default}(pa,pa.exports);var _s=Pr(pa.exports);const ks=Rr.memoize(function(e){window.okta&&window.okta.isLogCourageTemplateUtilUsage&&Rr.isString(e)}),xs=Rr.memoize(function(e){return!_s.parseWithoutProcessing(e).body.every(({type:e})=>"ContentStatement"===e)});Rr.mixin({resultCtx:function(e,t,n,o){let i=Rr.isObject(e)?e[t]:void 0;return Rr.isFunction(i)&&(i=i.call(n||e)),i||(Rr.isUndefined(o)?i:o)},isInteger:function(e){return Rr.isNumber(e)&&e%1==0},template:function(e,t){if(!xs(e)){const t=()=>e;return t.source="",t}ks(e);const n=_s.compile(e);if(t)return n(t);const o=function(e){return n(e)};return o.source="",o}});const Ss=Rr;var Ts={},Es=n(74692),Cs=n.n(Es);!function(e,t){const n=Cs();!function(){var e,o="object"==typeof self&&self.self===self&&self||"object"==typeof Ar&&Ar.global===Ar&&Ar,i=Nr.exports;try{e=n}catch(e){}!function(e,t,n,o){var i=e.Backbone,r=Array.prototype.slice;t.VERSION="1.4.0",t.$=o,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var a,s=t.Events={},l=/\s+/,c=function(e,t,o,i,r){var a,s=0;if(o&&"object"==typeof o){void 0!==i&&"context"in r&&void 0===r.context&&(r.context=i);for(a=n.keys(o);s<a.length;s++)t=c(e,t,a[s],o[a[s]],r)}else if(o&&l.test(o))for(a=o.split(l);s<a.length;s++)t=e(t,a[s],i,r);else t=e(t,o,i,r);return t};s.on=function(e,t,n){return this._events=c(u,this._events||{},e,t,{context:n,ctx:this,listening:a}),a&&((this._listeners||(this._listeners={}))[a.id]=a,a.interop=!1),this},s.listenTo=function(e,t,o){if(!e)return this;var i=e._listenId||(e._listenId=n.uniqueId("l")),r=this._listeningTo||(this._listeningTo={}),s=a=r[i];s||(this._listenId||(this._listenId=n.uniqueId("l")),s=a=r[i]=new g(this,e));var l=p(e,t,o,this);if(a=void 0,l)throw l;return s.interop&&s.on(t,o),this};var u=function(e,t,n,o){if(n){var i=e[t]||(e[t]=[]),r=o.context,a=o.ctx,s=o.listening;s&&s.count++,i.push({callback:n,context:r,ctx:r||a,listening:s})}return e},p=function(e,t,n,o){try{e.on(t,n,o)}catch(e){return e}};s.off=function(e,t,n){return this._events?(this._events=c(d,this._events,e,t,{context:n,listeners:this._listeners}),this):this},s.stopListening=function(e,t,o){var i=this._listeningTo;if(!i)return this;for(var r=e?[e._listenId]:n.keys(i),a=0;a<r.length;a++){var s=i[r[a]];if(!s)break;s.obj.off(t,o,this),s.interop&&s.off(t,o)}return n.isEmpty(i)&&(this._listeningTo=void 0),this};var d=function(e,t,o,i){if(e){var r,a=i.context,s=i.listeners,l=0;if(t||a||o){for(r=t?[t]:n.keys(e);l<r.length;l++){var c=e[t=r[l]];if(!c)break;for(var u=[],p=0;p<c.length;p++){var d=c[p];if(o&&o!==d.callback&&o!==d.callback._callback||a&&a!==d.context)u.push(d);else{var h=d.listening;h&&h.off(t,o)}}u.length?e[t]=u:delete e[t]}return e}for(r=n.keys(s);l<r.length;l++)s[r[l]].cleanup()}};s.once=function(e,t,n){var o=c(h,{},e,t,this.off.bind(this));return"string"==typeof e&&null==n&&(t=void 0),this.on(o,t,n)},s.listenToOnce=function(e,t,n){var o=c(h,{},t,n,this.stopListening.bind(this,e));return this.listenTo(e,o)};var h=function(e,t,o,i){if(o){var r=e[t]=n.once(function(){i(t,r),o.apply(this,arguments)});r._callback=o}return e};s.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),o=0;o<t;o++)n[o]=arguments[o+1];return c(f,this._events,e,void 0,n),this};var f=function(e,t,n,o){if(e){var i=e[t],r=e.all;i&&r&&(r=r.slice()),i&&m(i,o),r&&m(r,[t].concat(o))}return e},m=function(e,t){var n,o=-1,i=e.length,r=t[0],a=t[1],s=t[2];switch(t.length){case 0:for(;++o<i;)(n=e[o]).callback.call(n.ctx);return;case 1:for(;++o<i;)(n=e[o]).callback.call(n.ctx,r);return;case 2:for(;++o<i;)(n=e[o]).callback.call(n.ctx,r,a);return;case 3:for(;++o<i;)(n=e[o]).callback.call(n.ctx,r,a,s);return;default:for(;++o<i;)(n=e[o]).callback.apply(n.ctx,t);return}},g=function(e,t){this.id=e._listenId,this.listener=e,this.obj=t,this.interop=!0,this.count=0,this._events=void 0};g.prototype.on=s.on,g.prototype.off=function(e,t){var n;this.interop?(this._events=c(d,this._events,e,t,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},s.bind=s.on,s.unbind=s.off,n.extend(t,s);var y=t.Model=function(e,t){var o=e||{};t||(t={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(o=this.parse(o,t)||{});var i=n.result(this,"defaults");o=n.defaults(n.extend({},i,o),i),this.set(o,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(y.prototype,s,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,o){if(null==e)return this;var i;if("object"==typeof e?(i=e,o=t):(i={})[e]=t,o||(o={}
2),!this._validate(i,o))return!1;var r=o.unset,a=o.silent,s=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,p=this._previousAttributes;for(var d in i)t=i[d],n.isEqual(c[d],t)||s.push(d),n.isEqual(p[d],t)?delete u[d]:u[d]=t,r?delete c[d]:c[d]=t;if(this.idAttribute in i&&(this.id=this.get(this.idAttribute)),!a){s.length&&(this._pending=o);for(var h=0;h<s.length;h++)this.trigger("change:"+s[h],this,c[s[h]],o)}if(l)return this;if(!a)for(;this._pending;)o=this._pending,this._pending=!1,this.trigger("change",this,o);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var o in this.attributes)t[o]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,o=this._changing?this._previousAttributes:this.attributes,i={};for(var r in e){var a=e[r];n.isEqual(o[r],a)||(i[r]=a,t=!0)}return!!t&&i},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,o=e.success;return e.success=function(n){var i=e.parse?t.parse(n,e):n;if(!t.set(i,e))return!1;o&&o.call(e.context,t,n,e),t.trigger("sync",t,n,e)},H(this,e),this.sync("read",this,e)},save:function(e,t,o){var i;null==e||"object"==typeof e?(i=e,o=t):(i={})[e]=t;var r=(o=n.extend({validate:!0,parse:!0},o)).wait;if(i&&!r){if(!this.set(i,o))return!1}else if(!this._validate(i,o))return!1;var a=this,s=o.success,l=this.attributes;o.success=function(e){a.attributes=l;var t=o.parse?a.parse(e,o):e;if(r&&(t=n.extend({},i,t)),t&&!a.set(t,o))return!1;s&&s.call(o.context,a,e,o),a.trigger("sync",a,e,o)},H(this,o),i&&r&&(this.attributes=n.extend({},l,i));var c=this.isNew()?"create":o.patch?"patch":"update";"patch"!==c||o.attrs||(o.attrs=i);var u=this.sync(c,this,o);return this.attributes=l,u},destroy:function(e){e=e?n.clone(e):{};var t=this,o=e.success,i=e.wait,r=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){i&&r(),o&&o.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var a=!1;return this.isNew()?n.defer(e.success):(H(this,e),a=this.sync("delete",this,e)),i||r(),a},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||$();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var o=this.validationError=this.validate(e,t)||null;return!o||(this.trigger("invalid",this,o,n.extend(t,{validationError:o})),!1)}});var v=t.Collection=function(e,t){t||(t={}),this.preinitialize.apply(this,arguments),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},_=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var o,i=Array(e.length-n),r=t.length;for(o=0;o<i.length;o++)i[o]=e[o+n];for(o=0;o<r;o++)e[o+n]=t[o];for(o=0;o<i.length;o++)e[o+r+n]=i[o]};n.extend(v.prototype,s,{model:y,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,w))},remove:function(e,t){t=n.extend({},t);var o=!n.isArray(e);e=o?[e]:e.slice();var i=this._removeModels(e,t);return!t.silent&&i.length&&(t.changes={added:[],merged:[],removed:i},this.trigger("update",this,t)),o?i[0]:i}
2,set:function(e,t){if(null!=e){(t=n.extend({},b,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var o=!n.isArray(e);e=o?[e]:e.slice();var i=t.at;null!=i&&(i=+i),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);var r,a,s=[],l=[],c=[],u=[],p={},d=t.add,h=t.merge,f=t.remove,m=!1,g=this.comparator&&null==i&&!1!==t.sort,y=n.isString(this.comparator)?this.comparator:null;for(a=0;a<e.length;a++){r=e[a];var v=this.get(r);if(v){if(h&&r!==v){var w=this._isModel(r)?r.attributes:r;t.parse&&(w=v.parse(w,t)),v.set(w,t),c.push(v),g&&!m&&(m=v.hasChanged(y))}p[v.cid]||(p[v.cid]=!0,s.push(v)),e[a]=v}else d&&(r=e[a]=this._prepareModel(r,t))&&(l.push(r),this._addReference(r,t),p[r.cid]=!0,s.push(r))}if(f){for(a=0;a<this.length;a++)p[(r=this.models[a]).cid]||u.push(r);u.length&&this._removeModels(u,t)}var k=!1,x=!g&&d&&f;if(s.length&&x?(k=this.length!==s.length||n.some(this.models,function(e,t){return e!==s[t]}),this.models.length=0,_(this.models,s,0),this.length=this.models.length):l.length&&(g&&(m=!0),_(this.models,l,i??this.length),this.length=this.models.length),m&&this.sort({silent:!0}),!t.silent){for(a=0;a<l.length;a++)null!=i&&(t.index=i+a),(r=l[a]).trigger("add",r,this,t);(m||k)&&this.trigger("sort",this,t),(l.length||u.length||c.length)&&(t.changes={added:l,removed:u,merged:c},this.trigger("update",this,t))}return o?e[0]:e}},reset:function(e,t){t=t?n.clone(t):{};for(var o=0;o<this.models.length;o++)this._removeReference(this.models[o],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return r.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var o=t.length;return n.isFunction(t)&&(t=t.bind(this)),1===o||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){var t=(e=n.extend({parse:!0},e)).success,o=this;return e.success=function(n){var i=e.reset?"reset":"set";o[i](n,e),t&&t.call(e.context,o,n,e),o.trigger("sync",o,n,e)},H(this,e),this.sync("read",this,e)},create:function(e,t){var o=(t=t?n.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;o||this.add(e,t);var i=this,r=t.success;return t.success=function(e,t,n){o&&i.add(e,n),r&&r.call(n.context,e,t,n)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},values:function(){return new x(this,S)},keys:function(){return new x(this,T)},entries:function(){return new x(this,E)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;(t=t?n.clone(t):{}).collection=this;var o=new this.model(e,t);return o.validationError?(this.trigger("invalid",this,o.validationError,t),!1):o},_removeModels:function(e,t){for(var n=[],o=0;o<e.length;o++){var i=this.get(e[o]);if(i){var r=this.indexOf(i);this.models.splice(r,1),this.length--,delete this._byId[i.cid];var a=this.modelId(i.attributes);null!=a&&delete this._byId[a],t.silent||(t.index=r,i.trigger("remove",i,this,t)),n.push(i),this._removeReference(i,t)}}return n},_isModel:function(e){return e instanceof y},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes);null!=n&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes);null!=n&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,o){if(t){if(("add"===e||"remove"===e)&&n!==this)return;if("destroy"===e&&this.remove(t,o),"change"===e){var i=this.modelId(t.previousAttributes()),r=this.modelId(t.attributes);i!==r&&(null!=i&&delete this._byId[i],null!=r&&(this._byId[r]=t))}}this.trigger.apply(this,arguments)}});var k="function"==typeof Symbol&&Symbol.iterator;k&&(v.prototype[k]=v.prototype.values);var x=function(e,t){this._collection=e,this._kind=t,this._index=0},S=1,T=2,E=3;k&&(x.prototype[k]=function(){return this}),x.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e,t=this._collection.at(this._index);if(this._index++,this._kind===S)e=t;else{var n=this._collection.modelId(t.attributes);e=this._kind===T?n:[n,t]}return{value:e,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};
2var C=t.View=function(e){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(e,A)),this._ensureElement(),this.initialize.apply(this,arguments)},O=/^(\S+)\s*(.*)$/,A=["model","collection","el","id","attributes","className","tagName","events"];n.extend(C.prototype,s,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=n.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var o=e[t];if(n.isFunction(o)||(o=this[o]),o){var i=t.match(O);this.delegate(i[1],i[2],o.bind(this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});var P=function(e,t,o,i){n.each(o,function(n,o){t[o]&&(e.prototype[o]=function(e,t,n,o){switch(t){case 1:return function(){return e[n](this[o])};case 2:return function(t){return e[n](this[o],t)};case 3:return function(t,i){return e[n](this[o],N(t,this),i)};case 4:return function(t,i,r){return e[n](this[o],N(t,this),i,r)};default:return function(){var t=r.call(arguments);return t.unshift(this[o]),e[n].apply(e,t)}}}(t,n,o,i))})},N=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?R(e):n.isString(e)?function(t){return t.get(e)}:e},R=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}};n.each([[v,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(e){var t=e[0],o=e[1],i=e[2];t.mixin=function(e){var o=n.reduce(n.functions(e),function(e,t){return e[t]=0,e},{});P(t,e,o,i)},P(t,n,o,i)}),t.sync=function(e,o,i){var r=I[e];n.defaults(i||(i={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var a={type:r,dataType:"json"};if(i.url||(a.url=n.result(o,"url")||$()),null!=i.data||!o||"create"!==e&&"update"!==e&&"patch"!==e||(a.contentType="application/json",a.data=JSON.stringify(i.attrs||o.toJSON(i))),i.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),i.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){a.type="POST",i.emulateJSON&&(a.data._method=r);var s=i.beforeSend;i.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",r),s)return s.apply(this,arguments)}}"GET"===a.type||i.emulateJSON||(a.processData=!1);var l=i.error;i.error=function(e,t,n){i.textStatus=t,i.errorThrown=n,l&&l.call(i.context,e,t,n)};var c=i.xhr=t.ajax(n.extend(a,i));return o.trigger("request",o,c,i),c};var I={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var D=t.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},L=/\((.*?)\)/g,M=/(\(\?)?:\w+/g,U=/\*\w+/g,j=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(D.prototype,s,{preinitialize:function(){},initialize:function(){},route:function(e,o,i){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(o)&&(i=o,o=""),i||(i=this[o]);var r=this;return t.history.route(e,function(n){var a=r._extractParameters(e,n);!1!==r.execute(i,a,o)&&(r.trigger.apply(r,["route:"+o].concat(a)),r.trigger("route",o,a),t.history.trigger("route",r,o,a))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(j,"\\$&").replace(L,"(?:$1)?").replace(M,function(e,t){return t?e:"([^/?]+)"}).replace(U,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var o=e.exec(t).slice(1);return n.map(o,function(e,t){return t===o.length-1?e||null:e?decodeURIComponent(e):null})}});var F=t.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},V=/^[#\/]|\s+$/g,q=/^\/+|\/+$/g,B=/#.*$/;F.started=!1,n.extend(F.prototype,s,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(V,"")},start:function(e){if(F.started)throw new Error("Backbone.history has already been started");if(F.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||
2!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(q,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var o=document.body,i=o.insertBefore(this.iframe,o.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var r=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?r("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?r("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),F.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!F.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var o=n+e;e=e.replace(B,"");var i=this.decodeFragment(e);if(this.fragment!==i){if(this.fragment=i,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,o);else{if(!this._wantsHashChange)return this.location.assign(o);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;t.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var o=e.href.replace(/(javascript:|#).*$/,"");e.replace(o+"#"+t)}else e.hash="#"+t}}),t.history=new F;y.extend=v.extend=D.extend=C.extend=F.extend=function(e,t){var o,i=this;return o=e&&n.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)},n.extend(o,i,t),o.prototype=n.create(i.prototype,e),o.prototype.constructor=o,o.__super__=i.prototype,o};var $=function(){throw new Error('A "url" property or function must be specified')},H=function(e,t){var n=t.error;t.error=function(o){n&&n.call(t.context,e,o,t),e.trigger("error",e,o,t)}}}(o,t,i,e)}()}(0,Ts);var Os=Ts,As="__STATE__",Ps="FETCH_DATA",Ns="PAGINATION_DATA",Rs="DEFAULT_PARAMS",Is="LINK_BY_HEADER";function Ds(e){return'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.substring(1,e.length-1):e}const Ls={params:{},preinitialize:function(e,t){const n=new Os.Model,o=Ss.defaults(t&&t.params||{},Ss.result(this,"params")||{});n.set(Rs,o),this[As]=n,Ss.isFunction(this.model)&&0===this.model.length&&!0!==this.model.isCourageModel&&(this.model=Ss.result(this,"model")),Os.Collection.prototype.preinitialize.apply(this,arguments)},sync:function(e,t,n){var o=this,i=n.success;return n.success=function(e,t,n){(function(e,t){try{var n=function(e){for(var t=/[^()<>@,;:"/[\]?={} \t]+=(([^()<>@,;:"/[\]?={} \t]+)|("[^"]*"))/g,n=e.match(/<[^>]*>\s*(\s*;\s*[^()<>@,;:"/[\]?={} \t]+=(([^()<>@,;:"/[\]?={} \t]+)|("[^"]*")))*(,|$)/g),o={},i=0;i<n.length;i++){var r=n[i].split(">"),a=r[0].substring(1),s={href:void 0,rel:void 0};s.href=a;for(var l=r[1].match(t),c=0;c<l.length;c++){var u=l[c].split("=");s[u[0]]=Ds(u[1])}void 0!==s.rel&&(o[s.rel]=s)}return o}(t.getResponseHeader("link"));e[As].set(Is,!0),e.setPagination(n.next.href)}catch(t){e[As].get(Is)&&e.setPagination(null)}})(o,n),i.apply(null,arguments)},Os.Collection.prototype.sync.call(this,e,t,n)},fetch:function(e){e||(e={});var t=this[As],n=t.get("XHR");return e.data=Ss.extend({},t.get(Rs),e.data||{}),e.fromFetch=!0,t.set(Ps,e.data),n&&n.abort&&!1!==e.abort&&n.abort(),n=Os.Collection.prototype.fetch.call(this,e),t.set("XHR",n),n},setPagination:function(e,t){Ss.isString(e)&&e&&(e=function(e){for(var t={},n=e&&e.split("?")[1],o=n&&n.split("#")[0],i=o?o.split("&"):[],r=0;r<i.length;r++){var a=decodeURIComponent(i[r]).replace(/\+/g," ").split("=");t[a.shift()]=a.join("=")}return t}(e)),Ss.isObject(e)&&!Ss.isArray(e)&&Ss.size(e)?t&&t.fromFetch&&(e=Ss.extend({},this.getFetchData(),e)):e=null,this[As].set(Ns,e)},getFetchData:function(){return this[As].get(Ps)||{}},getPaginationData:function(){return this[As].get(Ns)||{}},hasMore:function(){return Ss.size(this.getPaginationData())>0},fetchMore:function(){if(!this.hasMore())throw new Error("Invalid Request");return this.fetch({data:this.getPaginationData(),add:!0,remove:!1,update:!0})},reset:function(e,t){return t||(t={}),t.fromFetch||this.setPagination(null),Os.Collection.prototype.reset.apply(this,arguments)},where:function(e,t){return Ss.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0})},create:function(e,t){return t||(t={}),Ss.result(e,"urlRoot")||(t.url=Ss.result(this,"url")),Os.Collection.prototype.create.call(this,e,t)},_reset:function(){Os.Collection.prototype._reset.call(this),this._byId=Object.create(null)}},Ms=Os.Collection.extend(Ls);Ms.isCourageCollection=!0;const Us={secureJSON:!1,constructor:function(){Ms.apply(this,arguments),Ss.result(this,"secureJSON")&&(this.sync=Ss.wrap(this.sync,function(e,t,n,o){return e.call(this,t,n,Ss.extend({dataType:"secureJSON"},o))}))},sync:function(e,t,n){const{scopes:o=[],authParams:i}=t;return n??={},n.scopes=o,n.authParams=i,Ms.prototype.sync.call(this,e,t,n)}};var js=Ms.extend(Us);let Fs;function Vs(e,t,n,o){var i=Ss.contains(t,n);return o||(o={}),i||!Ss.isObject(e)||Ss.isArray(e)||Ss.isFunction(e)?void 0!==n&&(o[n]=e):Ss.each(e,function(e,i){Vs(e,t,n?n+"."+i:i,o)}),o}function qs(e,t){var n={};return n[e.name]=t,n}function Bs(e,t){var n;return n=Ss.isString(e)?{type:e}:Ss.isArray(e)?{type:e[0],required:e[1],value:e[2]}:Ss.clone(e),Ss.defaults(n,{required:!1,name:t}),n}function $s(e,t,n){if(!t.test(e))return n}var Hs={email:function(e){return $s(e,/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Fs.ERROR_INVALID_FORMAT_EMAIL)},uri:function(e){return $s(e,/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,Fs.ERROR_INVALID_FORMAT_URI)},ipv4:function(e){return $s(e,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Fs.ERROR_INVALID_FORMAT_IPV4)},hostname:function(e){return $s(e,/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/,Fs.ERROR_INVALID_FORMAT_HOSTNAME)}};function zs(e,t){var n,o,i,r=Ss.partial(qs,e),a=!Ss.isUndefined(t)&&!Ss.isNull(t);if(Array.isArray(e.validate)){const n=[];let o,i=!1;
2return e.validate.forEach(e=>{o=!!t&&("regex"===e.type.toLowerCase()&&new RegExp(e.value.pattern,e.value.flags||"").test(t)),i=i||!o,n.push({message:e.hasOwnProperty("message")?e.message:"",passed:o})}),i?r(n):void 0}if(e.required&&(!a||Ss.isNull(t)||""===t))return r(Fs.ERROR_BLANK);if(n=Ss["is"+(i=e.type,i.toLowerCase().replace(/\b[a-z]/g,function(e){return e.toUpperCase()}))],a&&"any"!==e.type&&(!Ss.isFunction(n)||!n(t)))return r(Fs.ERROR_WRONG_TYPE);if(t&&"string"===e.type){var s=function(e,t){var n=Ss.partial(qs,e),o=function(e,t){var n=Hs[e.format];if(e.format&&!n)throw new TypeError(e.format+" is not a supported string format");return n&&n(t)}(e,t);return o?n(o):t&&e.minLength&&t.length<e.minLength?n(Fs.ERROR_STRING_STRING_MIN_LENGTH):t&&e.maxLength&&t.length>e.maxLength?n(Fs.ERROR_STRING_STRING_MAX_LENGTH):void 0}(e,t);if(s)return s}if(a&&e.values&&!Ss.contains(e.values,t))return r(Fs.ERROR_NOT_ALLOWED);if(Ss.isFunction(e.validate)){var l=e.validate(t);if(Ss.isString(l)&&l)return r(l);if(!1===l)return r(Fs.ERROR_INVALID)}return a&&"array"===e.type&&(o=function(e,t){if(e.minItems&&t.length<e.minItems)return"model.validation.field.array.minItems";if(e.maxItems&&t.length>e.maxItems)return"model.validation.field.array.maxItems";if(e.uniqueItems&&t.length>Ss.uniq(t).length)return Fs.ERROR_IARRAY_UNIQUE;if(e.items)for(var n=Bs(e.items,"placeholder"),o=0;o<t.length;o++){var i=zs(n,t[o]);if(i)return i.placeholder}}(e,t))?r(o):void 0}const Ws={props:{},derived:{},local:{},flat:!0,defaults:{},preinitialize:function(e,...t){this.options=e||{};var n=this.__schema__={},o=[];n.computedProperties={},n.props=Ss.clone(Ss.result(this,"props")||{}),n.derived=Ss.clone(Ss.result(this,"derived")||{}),n.local=Ss.clone(Ss.result(this,"local")||{});var i={};if(Ss.each(Ss.extend({},n.props,n.local),function(e,t){var n=Bs(e,t);Ss.isUndefined(n.value)||(i[t]=n.value),"object"===n.type&&o.push(t)},this),Ss.size(i)){var r=Ss.result(this,"defaults");this.defaults=function(){return Ss.defaults({},i,r)}}this.validate=Ss.wrap(this.validate,function(e){var t=Ss.rest(arguments),n=Ss.extend(this._validateSchema.apply(this,t),e.apply(this,t));return Ss.size(n)&&n||void 0}),this.parse=Ss.wrap(this.parse,function(e){var t=e.apply(this,Ss.rest(arguments));return Ss.result(this,"flat")&&(t=Vs(t,o)),t}),Os.Model.prototype.preinitialize.call(this,e,...t)},constructor:function(){Os.Model.apply(this,arguments);var e=this.__schema__;Ss.each(e.derived,function(t,n){e.computedProperties[n]=this.__getDerivedValue(n);var o=function(e){return e&&e.type||e.deps}(t)&&t.deps||[];o.length&&this.on("cache:clear change:"+o.join(" change:"),function(){var t=this.__getDerivedValue(n);t!==e.computedProperties[n]&&(e.computedProperties[n]=t,this.trigger("change:"+n,this,t))},this)},this),this.on("sync",function(){this.__syncedData=this.toJSON()},this)},validate:function(){},allows:function(){return!0},getPropertySchema:function(e){var t=this.__schema__;return Ss.reduce([t.props,t.local],function(t,n){return t||Bs(n[e],e)},null)},set:function(e,t){var n;"object"==typeof e?n=e:(n={})[e]=t,Ss.each(n,function(e,t){if(Ss.has(this.__schema__.derived,t))throw new Error(`overriding derived properties is not supported: ${t}`)},this);var o=[];if(Ss.each(n,function(e,t){this.allows(t)||o.push(t)},this),o.length)throw new Error(`field not allowed: ${o.join(", ")}`);return Os.Model.prototype.set.apply(this,arguments)},get:function(e){var t=this.__schema__;return Ss.has(t.derived,e)?!1!==t.derived[e].cache?t.computedProperties[e]:this.__getDerivedValue(e):Os.Model.prototype.get.apply(this,arguments)},toJSON:function(e){e||(e={});var t,n=Ss.clone(Os.Model.prototype.toJSON.apply(this,arguments)),o=this.__schema__;return e.verbose?Ss.each(o.derived,function(e,t){n[t]=this.get(t)},this):n=Ss.omit(n,Ss.keys(o.local)),this.flat&&(t=n,Ss.each(t,function(e,t,n){if(-1!==t.indexOf(".")){for(var o,i=n,r=t.split(".");void 0!==(o=r.shift());)i[o]||(i[o]=r.length?{}:e),i=i[o];delete n[t]}}),n=t),n},reset:function(e){this.clear(e),this.set(Ss.result(this,"defaults"),e)},isSynced:function(){return Ss.isEqual(this.__syncedData,this.toJSON())},validateField:function(e){var t=e&&this.getPropertySchema(e);return t&&zs(t,this.get(e))},_validateSchema:function(){var e=this.__schema__;return Ss.reduce(Ss.extend({},e.props,e.local),function(e,t,n){return Ss.extend(e,this.validateField(n)||{})},{},this)},__getDerivedValue:function(e){var t=this.__schema__.derived[e];if(Ss.isString(t)){var n=t;t={deps:[n],fn:function(){return this.get(n)}}}var o=t.deps||[];return t.fn.apply(this,Ss.map(o,this.get,this))}};Fs=Os.Model.extend(Ws,{ERROR_BLANK:"model.validation.field.blank",ERROR_WRONG_TYPE:"model.validation.field.wrong.type",ERROR_NOT_ALLOWED:"model.validation.field.value.not.allowed",ERROR_INVALID:"model.validation.field.invalid",ERROR_IARRAY_UNIQUE:"model.validation.field.array.unique",ERROR_INVALID_FORMAT_EMAIL:"model.validation.field.invalid.format.email",ERROR_INVALID_FORMAT_URI:"model.validation.field.invalid.format.uri",ERROR_INVALID_FORMAT_IPV4:"model.validation.field.invalid.format.ipv4",ERROR_INVALID_FORMAT_HOSTNAME:"model.validation.field.invalid.format.hostname",ERROR_STRING_STRING_MIN_LENGTH:"model.validation.field.string.minLength",ERROR_STRING_STRING_MAX_LENGTH:"model.validation.field.string.maxLength"}),Fs.isCourageModel=!0;var Ks=Fs,Gs=Ks.extend({secureJSON:!1,_builtInLocalProps:{__edit__:"boolean",__pending__:"boolean"},preinitialize:function(){this.local=Ss.defaults({},Ss.result(this,"local"),this._builtInLocalProps),Ks.prototype.preinitialize.apply(this,arguments)},constructor:function(){Ks.apply(this,arguments),Ss.result(this,"secureJSON")&&(this.sync=Ss.wrap(this.sync,function(e,t,n,o){return e.call(this,t,n,Ss.extend({dataType:"secureJSON"},o))}))},sync:function(e,t,n){n??={};const{scopes:o=[],authParams:i}=t;return n.scopes=o,n.authParams=i,Ks.prototype.sync.apply(this,[e,t,n])}});const Ys={flat:!1,constructor:function(){Gs.apply(this,arguments),this.on("sync",this._setSynced)},allows:function(){return!function(e){const t=Ss.omit(e.local,Ss.keys(e._builtInLocalProps));return Ss.size(e.props)+Ss.size(t)>0}(this)||Gs.prototype.allows.apply(this,arguments)},set:function(e,t){let n;return"object"==typeof e?n=e:(n={})[e]=t,Ss(n).each(function(e,t){e&&Ss.isArray(e.__attributes)&&this.on("change:"+e.__attributes.join(" change:"),function(){const e=this.get(t);e!==this.__schema__.computedProperties[t]&&(this.__schema__.computedProperties[t]=e,this.trigger("change:"+t,e))},this)},this),Gs.prototype.set.apply(this,arguments)},get:function(){const e=Gs.prototype.get.apply(this,arguments);return Ss.isFunction(e)?e.apply(this,Ss.map(e.__attributes||[],this.get,this)):e},toJSON:function(e){e||(e={});const t=Gs.prototype.toJSON.apply(this,arguments);return Ss(t).each(function(n,o){"function"==typeof n&&(e.verbose?t[o]=this.get(o):delete t[o])},this),e.verbose||Ss(t).each(function(e,n){/^__\w+__$/.test(n)&&delete t[n]}),t},sanitizeAttributes:function(e){const t={};return Ss.each(e,function(e,n){Ss.isFunction(e)||(t[n]=e)}),t},reset:function(e){this.clear(e),this.set(this.sanitizeAttributes(this.defaults),e)},clear:function(e){const t={};return Ss.each(this.sanitizeAttributes(this.attributes),function(e,n){t[n]=void 0}),this.set(t,Ss.extend({},e,{unset:!0}))},_setSynced:function(e){this._syncedData=e&&Ss.isFunction(e.toJSON)?e.toJSON():{}},_getSynced:function(){return this._syncedData},isSynced:function(){return Ss.isEqual(this._getSynced(),this.toJSON())}};var Js=Gs.extend(Ys,{ComputedProperty:function(e,t){return t||"function"!=typeof e?t.__attributes=e:t=e,t}});const Qs={};class Xs{constructor(){}get(){}getAll(){}}var Zs;!function(e){e[e.hostAppName=0]="hostAppName",e[e.isOidcEnabled=1]="isOidcEnabled"}(Zs||(Zs={}));const el=new Xs("@okta/courage",Zs);let tl;function nl(e,...t){window.console&&window.okta&&window.okta.debug&&window.console[e](...t)}el.get(Zs.hostAppName),el.get(Zs.isOidcEnabled);var ol,il={trace:function(...e){return nl("trace",...e)},dir:function(...e){return nl("dir",...e)},time:function(...e){return nl("time",...e)},timeEnd:function(...e){return nl("timeEnd",...e)},group:function(...e){return nl("group",...e)},groupEnd:function(...e){return nl("groupEnd",...e)},assert:function(...e){return nl("assert",...e)},log:function(...e){return nl("log",...e)},info:function(...e){return nl("info",...e)},warn:function(...e){return nl("warn",...e)},error:function(...e){return nl("error",...e)}};!function(e){e[e.isJqueryOidcEnabled=0]="isJqueryOidcEnabled"}(ol||(ol={}));const rl=new Xs("@okta/dll-common",ol),al=Cs().ajax;Cs().ajax=function(e,t){if(!rl.get(ol.isJqueryOidcEnabled))return al.call(Cs(),e,t);let n,o=!0,i=e,r=[],a="GET";if(e&&"object"==typeof e&&void 0===t?(o=void 0!==e.async?e.async:o,i=e.url,a=e.type||e.method||a,r=e.scopes||r,n=e.authParams||n):t&&"object"==typeof t&&("string"!=typeof e&&t.url&&(i=t.url),o=void 0!==t.async?t.async:o,a=t.type||t.method||a,r=t.scopes||r,n=t.authParams||n),!1===o||0===r.length)return 0===r.length&&il.warn("No scopes provided for OIDC request headers. Proceeding without Authorization headers."),!1===o&&(r.length>0&&il.warn("Cannot fetch OIDC request headers for synchronous requests. Please make the request asynchronous (async: true) to use OIDC scopes."),il.warn("Cannot fetch OIDC request headers for synchronous requests. Proceeding without Authorization headers.")),al.call(Cs(),e,t);const s=Cs().Deferred();let l=null,c=!1;return s.abort=function(){c=!0,l&&"function"==typeof l.abort?l.abort():s.reject(null,"abort")},(async(e,t,n,o)=>(tl||(tl={getOAuth2Headers:()=>({})}),tl.getOAuth2Headers(e,t,n,o)))(r,i,a,n).then(n=>{const o={};for(const e in n)Object.hasOwn(Qs,e.toLowerCase())&&(o[e]=n[e]);t?t.headers={...t.headers||{},...o}:"object"==typeof e&&(e.headers={...e.headers||{},...o}),l="object"==typeof e&&void 0===t?al.call(Cs(),e):al.call(Cs(),e,t),s.abort=function(){l&&"function"==typeof l.abort&&l.abort()},c&&"function"==typeof l.abort&&l.abort(),l.pipe(s.resolve,s.reject)}).catch(e=>{s.reject(null,"Failed to fetch OIDC request headers",e),t&&"function"==typeof t.error&&t.error(null,"Failed to fetch OIDC request headers",e)}),s},Cs().ajaxSetup({beforeSend:function(e){e.setRequestHeader("X-Okta-XsrfToken",Cs()("#_xsrfToken").text())},converters:{"text secureJSON":function(e){return"while(1){};"===e.substring(0,11)&&(e=e.substring(11)),JSON.parse(e)}}});const sl=Cs();window.jQueryCourage=sl;const ll={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#039;":"'","&#x2F;":"/"},cl=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@(?!-)((\[?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\]?)|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,ul=e=>{if(/-/.test(e)){const t=e.split("-");return t[1]=t[1].toUpperCase(),t.join("_")}return e};function pl(){return window&&window.okta&&window.okta.locale?window.okta.isEnableBcp47OktaUi?window.okta.locale:window.okta.locale.toLowerCase():"en"}function dl(e){if(!e)return ia[Ss.keys(ia)[0]];const t=ul(pl());return ia[`${e}_${t}`]||ia[e]}function hl(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");
2return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}function fl(e,t,n){if(window.CustomEvent||(window.CustomEvent=hl),"function"==typeof window.CustomEvent){const o=new CustomEvent("okta-i18n-error",{detail:{type:"l10n-error",key:e,bundleName:t,reason:n}});document.dispatchEvent(o)}}const ml={getRawLocale:function(){return pl()},getParsedLocale:function(){return ul(pl())},isLocaleBundleExist:function(e,t){const n=ul(t);return!!ia[`${e}_${n}`]},sprintf:function(){const e=Array.prototype.slice.apply(arguments);let t=e.shift(),n=t;function o(){throw new Error("Mismatch number of variables: "+arguments[0]+", "+JSON.stringify(e))}for(var i=0,r=e.length;i<r;i++){const r=e[i],a=new RegExp("\\{"+i+"\\}","g");t=t.replace(a,r),null!=r&&t!==n||o(),n=t}return/\{[\d+]\}/.test(t)&&o(),t},parseQuery:function(e){const t={},n=decodeURIComponent(e.replace(/\+/g," ")).split("&");for(var o=0;o<n.length;o++){const e=n[o].split("=");t[e.shift()]=e.join("=")}return t},encodeJSObject:function(e){return encodeURIComponent(JSON.stringify(e))},decodeJSObject:function(e){try{return JSON.parse(decodeURIComponent(e))}catch(e){return null}},unescapeHtml:function(e){return String(e).replace(/&[\w#\d]{2,};/g,function(e){return ll[e]||e})},getTemplate:function(e,t){const n=dl(t);return n?n[e]?n[e]:(fl(e,t,"key"),"L10N_ERROR["+e+"]"):(fl(e,t,"bundle"),"L10N_ERROR["+t+"]")},localize:function(e,t,n){const o=dl(t);if(!o)return fl(e,t,"bundle"),"L10N_ERROR["+t+"]";let i=o[e];try{return(n=n&&n.slice?n.slice(0):[]).unshift(i),i=ml.sprintf.apply(null,n),i||(fl(e,t,"key"),"L10N_ERROR["+e+"]")}catch(n){return fl(e,t,"parameters"),"L10N_ERROR["+e+"]"}},parseFloat:function(e){const t=+e;return"string"==typeof e&&t===parseFloat(e)?t:e},parseInt:function(e){const t=+e;return Ss.isString(e)&&t===parseInt(e,10)?t:e},parseObject:function(e){if(!Ss.isString(e))return e;try{const t=JSON.parse(e);return sl.isPlainObject(t)?t:e}catch(t){return e}},randomString:function(e){if(void 0===e)e=Ss.random(61);else if(0===e)return"";const t=[];for(;e--;)t.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"[Ss.random(60)]);return t.join("")},endsWith:function(e,t){return(e+="").length>=(t+="").length&&e.substring(e.length-t.length)===t},isEmail:function(e){const t=sl.trim(e);return!Ss.isEmpty(t)&&cl.test(t)}},gl=ml.localize,yl={STRING:"string",NUMBER:"number",INTEGER:"integer",BOOLEAN:"boolean",OBJECT:"object",FORMATDISPLAYTYPE:{"date-time":"date",uri:"uri",email:"email","country-code":"country-code","language-code":"language-code",country_code:"country_code",language_code:"language_code",locale:"locale",timezone:"timezone","ref-id":"reference"},ARRAYDISPLAYTYPE:{arrayofobject:"arrayofobject",arrayofstring:"arrayofstring",arrayofnumber:"arrayofnumber",arrayofinteger:"arrayofinteger","arrayofref-id":"arrayofref-id"},DISPLAYTYPES:{date:{type:"string",format:"date-time"},uri:{type:"string",format:"uri"},email:{type:"string",format:"email"},"country-code":{type:"string",format:"country-code"},"language-code":{type:"string",format:"language-code"},country_code:{type:"string"},language_code:{type:"string"},locale:{type:"string",format:"locale"},timezone:{type:"string",format:"timezone"},string:{type:"string"},number:{type:"number"},boolean:{type:"boolean"},integer:{type:"integer"},reference:{type:"string",format:"ref-id"},arrayofobject:{type:"array",items:{type:"object"}},arrayofstring:{type:"array",items:{type:"string"}},arrayofnumber:{type:"array",items:{type:"number"}},arrayofinteger:{type:"array",items:{type:"integer"}},"arrayofref-id":{type:"array",items:{type:"string",format:"ref-id"}},image:{type:"image"},password:{type:"string"}},SUPPORTSMINMAX:["string","number","integer","password"],SUPPORTENUM:["string","number","integer","object","arrayofstring","arrayofnumber","arrayofinteger","arrayofobject"],DATATYPE:{string:"string",number:"number",boolean:"boolean",integer:"integer",date:"datetime",object:"object",arrayofobject:"object array",arrayofstring:"string array",arrayofnumber:"number array",arrayofinteger:"integer array","arrayofref-id":"reference array","country-code":"country code","language-code":"language code",country_code:"country code",language_code:"language code",reference:"reference",timezone:"timezone",image:"image"},MUTABILITY:{READONLY:"READ_ONLY",WRITEONLY:"WRITE_ONLY",READWRITE:"READ_WRITE",IMMUTABLE:"IMMUTABLE"},SCOPE:{NONE:"NONE",SELF:"SELF",SYSTEM:"SYSTEM"},DISPLAYSCOPE:{SELF:"User personal",SYSTEM:"System",NA:"None"},UNION:{DISABLE:"DISABLE",ENABLE:"ENABLE"},UNION_OPTIONS:{DISABLE:gl("universal-directory.profiles.attribute.form.union.enable.display","courage"),ENABLE:gl("universal-directory.profiles.attribute.form.union.disable.display","courage")},PERMISSION:{HIDE:"HIDE",READ_ONLY:"READ_ONLY",WRITE_ONLY:"WRITE_ONLY",READ_WRITE:"READ_WRITE"},ENDUSER_ATTRIBUTE_PERMISSION_OPTIONS:{HIDE:gl("universal-directory.profiles.attribute.enduser.permission.hide","courage"),READ_ONLY:gl("universal-directory.profiles.attribute.enduser.permission.readonly","courage"),READ_WRITE:gl("universal-directory.profiles.attribute.enduser.permission.readwrite","courage")},ATTRIBUTE_LEVEL_MASTERING_OPTIONS:{INHERIT:gl("universal-directory.profiles.attribute.source.inherit","courage"),OKTA_MASTERED:gl("universal-directory.profiles.attribute.source.oktamastered","courage"),OVERRIDE:gl("universal-directory.profiles.attribute.source.override","courage")},USERNAMETYPE:{NONE:"non-username",OKTA_TO_APP:"okta-to-app-username",OKTA_TO_AD:"okta-to-ad-username",APP_TO_OKTA:"app-to-okta-username",IDP_TO_OKTA:"idp-to-okta-username"},LOGINPATTERNFORMAT:{EMAIL:"EMAIL",CUSTOM:"CUSTOM",NONE:"NONE"},UNIQUENESS:{NOT_UNIQUE:"NOT_UNIQUE",PENDING_UNIQUENESS:"PENDING_UNIQUENESS",UNIQUE_VALIDATED:"UNIQUE_VALIDATED"},getDisplayType:function(e,t,n,o){let i;return e&&(i=t?this.FORMATDISPLAYTYPE[t]:n?this.ARRAYDISPLAYTYPE[e+"of"+n]:e),i||(i=void 0===o?"":o),i},getSourceUsernameType:function(e,t,n){let o=this.USERNAMETYPE.NONE;return"oktaToApp"===e?"userName"===t?o=this.USERNAMETYPE.OKTA_TO_APP:"cn"===t&&(o=this.USERNAMETYPE.OKTA_TO_AD):"appToOkta"===e&&"login"===t&&(o="saml_idp"===n?this.USERNAMETYPE.IDP_TO_OKTA:this.USERNAMETYPE.APP_TO_OKTA),o},isArrayDataType:function(e){return Ss.contains(Ss.values(this.ARRAYDISPLAYTYPE),e)},isObjectDataType:function(e){return this.DATATYPE.object===e}},vl="name",bl="_enum_";function wl(e){return kl(e)?Ss.reduce(e,function(e,t,n){return e[Tl(n)]=t.title,e},{}):{}}function _l(e){return Ss.all(e,sl.isPlainObject)?kl(e)?e:function(e){const t=Ss.partial(Ss.has,Ss,vl);return Ss.all(e,t)?Ss.chain(e).filter(function(e){return sl.isPlainObject(e)&&Ss.has(e,vl)}).map(function(e){return{const:e,title:e[vl]}}
2).value():xl(e)}(e):xl(e)}function kl(e){return Ss.isArray(e)&&Ss.all(e,function(e){return Ss.has(e,"const")&&Ss.has(e,"title")})}function xl(e){return Ss.map(e,function(e){return{const:e,title:Sl(e)}})}function Sl(e){return Ss.isObject(e)?JSON.stringify(e):Ss.isNumber(e)?e+"":e}function Tl(e){return`${bl}${e}`}function El(e){const t=Ss.findIndex(this.options.params.enumOneOf,function(t){return Ss.isObject(e)?Ss.isEqual(t.const,e):t.const===e});return t>-1?Tl(t):e}function Cl(e){if(!Ss.isString(e)||0!==e.indexOf(bl))return e;const t=e.replace(bl,""),n=this.options.params&&Ss.isArray(this.options.params.enumOneOf)?this.options.params.enumOneOf[t]:null;return Ss.has(n,"const")?n.const:n}function Ol(e){return Ss.map(e,Cl.bind(this))}function Al(e){return Ss.map(e,El.bind(this))}var Pl={getEnumInputOptions:function(e){const t=_l(e.enumValues),n={name:e.name,label:e.title,readOnly:e.readOnly,customExplain:e.explain,params:{enumOneOf:t},options:wl(t)};return yl.isArrayDataType(e.displayType)?(n.type="checkboxset",n.to=Ol,n.from=Al):(n.type="select",n.to=Cl,n.from=El),n.input=null,n},getDropdownOptions:function(e){return Ss.isArray(e)?wl(_l(e)):{}},convertToOneOf:_l,isConstraintValueMatchType:function(e,t){switch(t){case yl.STRING:return function(e){return Ss.isString(e)}(e);case yl.NUMBER:return function(e){return Ss.isNumber(e)||Ss.isNumber(ml.parseFloat(sl.trim(e)))}(e);case yl.INTEGER:return function(e){const t=Ss.isNumber(e)?e:ml.parseInt(sl.trim(e));return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}(e);case yl.OBJECT:return function(e){if(Ss.isObject(e)&&!Ss.isArray(e))return!0;const t=ml.parseObject(sl.trim(e));return Ss.isObject(t)&&!Ss.isArray(t)}(e)}}};const Nl=ml.localize,Rl=yl.STRING,Il=yl.NUMBER,Dl=yl.INTEGER,Ll=yl.OBJECT,Ml=Js.extend({defaults:{description:void 0,minLength:void 0,maxLength:void 0,format:void 0},parse:function(e){if(Ss.isString(e.format)){const t=/^\/(.+)\/$/.exec(e.format);t&&(e.format=t[1])}return e}}),Ul=js.extend({model:Ml}),jl=Ul.extend({_type:"allOf"}),Fl=Ul.extend({_type:"oneOf"}),Vl=Ul.extend({_type:"noneOf"}),ql={string:Nl("schema.validation.field.value.must.string","courage"),number:Nl("schema.validation.field.value.must.number","courage"),integer:Nl("schema.validation.field.value.must.integer","courage"),object:Nl("schema.validation.field.value.must.object","courage")},Bl=/[^a-zA-Z0-9-]/,$l={between:"_checkBetweenConstraints",greaterThan:"_checkGreaterThanConstraint",lessThan:"_checkLessThanConstraint",equals:"_checkEqualsConstraint"},Hl=Js.extend({idAttribute:"name",local:{__oneOf__:{type:"array",minItems:1}},defaults:{name:"",title:void 0,type:void 0,description:void 0,required:!1,format:void 0,union:void 0,subSchemas:void 0,settings:{permissions:{SELF:yl.PERMISSION.READ_ONLY}},unique:void 0,__metadata__:void 0,__isSensitive__:Js.ComputedProperty(["settings"],function(e){return!(!e||!e.sensitive)}),__unique__:!1,__isUniqueValidated__:Js.ComputedProperty(["unique"],function(e){return e===yl.UNIQUENESS.UNIQUE_VALIDATED}),__isPendingUniqueness__:Js.ComputedProperty(["unique"],function(e){return e===yl.UNIQUENESS.PENDING_UNIQUENESS}),__isUniqueness__:Js.ComputedProperty(["__isUniqueValidated__","__isPendingUniqueness__"],function(e,t){return e||t}),__canBeSensitive__:Js.ComputedProperty(["__metadata__"],function(e){return!(!e||!e.sensitivizable)}),__userPermission__:yl.PERMISSION.READ_ONLY,__displayType__:void 0,__displayTypeLabel__:Js.ComputedProperty(["__displayType__"],function(e){return yl.DATATYPE[e]||e}),__supportsMinMax__:!1,__isReadOnly__:Js.ComputedProperty(["mutability"],function(e){return e===yl.MUTABILITY.READONLY}),__isWriteOnly__:Js.ComputedProperty(["mutability"],function(e){return e===yl.MUTABILITY.WRITEONLY}),__displayScope__:void 0,__isScopeSelf__:Js.ComputedProperty(["scope"],function(e){return e===yl.SCOPE.SELF}),__isNoneScopeArrayType__:Js.ComputedProperty(["__isScopeSelf__","__displayType__"],function(e,t){return!e&&yl.isArrayDataType(t)}),__isImported__:Js.ComputedProperty(["externalName"],function(e){return!!e}),__isFromBaseSchema__:Js.ComputedProperty(["__schemaMeta__"],function(e){return e&&"base"
2===e.name}),__enumDefined__:!1,__supportEnum__:Js.ComputedProperty(["__displayType__"],function(e){return Ss.contains(yl.SUPPORTENUM,e)}),__isNumberTypeEnum__:Js.ComputedProperty(["__displayType__"],function(e){return Ss.contains([yl.NUMBER,yl.ARRAYDISPLAYTYPE.arrayofnumber],e)}),__isIntegerTypeEnum__:Js.ComputedProperty(["__displayType__"],function(e){return Ss.contains([yl.INTEGER,yl.ARRAYDISPLAYTYPE.arrayofinteger],e)}),__isObjectTypeEnum__:Js.ComputedProperty(["__displayType__"],function(e){return Ss.contains([yl.OBJECT,yl.ARRAYDISPLAYTYPE.arrayofobject],e)}),__isStringTypeEnum__:Js.ComputedProperty(["__displayType__"],function(e){return Ss.contains([yl.STRING,yl.ARRAYDISPLAYTYPE.arrayofstring],e)}),__enumConstraintType__:Js.ComputedProperty(["__isStringTypeEnum__","__isNumberTypeEnum__","__isIntegerTypeEnum__","__isObjectTypeEnum__"],function(e,t,n,o){return e?Rl:t?Il:n?Dl:o?Ll:void 0}),__isEnumDefinedAndSupported__:Js.ComputedProperty(["__enumDefined__","__supportEnum__"],function(e,t){return e&&t}),__isLoginOfBaseSchema__:Js.ComputedProperty(["__isFromBaseSchema__","name"],function(e,t){return e&&"login"===t}),__isLoginFormatRestrictionToEmail__:Js.ComputedProperty(["__loginFormatRestriction__"],function(e){return e===yl.LOGINPATTERNFORMAT.EMAIL})},initialize:function(){Js.prototype.initialize.apply(this,arguments),this.listenTo(this,"change:__displayType__",this._updateTypeFormatConstraints),this.listenTo(this,"change:type change:format change:items",this._updateDisplayType),this.listenTo(this,"change:__minVal__ change:__maxVal__",this._updateMinMax),this.listenTo(this,"change:__equals__",this._convertEqualsToMinMax),this.listenTo(this,"change:__constraint__",this._setConstraintText),this._setConstraintText(),this._setLoginPattern()},parse:function(e){return"object"===(e=Ss.clone(e)).type&&"image"===e.extendedType&&(e.type="image"),e.__displayType__=yl.getDisplayType(e.type,e.format,e.items?e.items.format?e.items.format:e.items.type:void 0),this._setRangeConstraints(e),e.__supportsMinMax__=-1!==yl.SUPPORTSMINMAX.indexOf(e.__displayType__),e.__displayScope__=yl.DISPLAYSCOPE[e.scope]||yl.DISPLAYSCOPE.NA,e.settings&&e.settings.permissions&&e.settings.permissions.SELF&&(e.__userPermission__=e.settings.permissions.SELF),this._setMasterOverride(e),this._setSubSchemas(e),this._setUniqueness(e),e}
2,validate:function(){const e=this._validateLoginFormatRestriction();if(e)return e;const t=this._validateEnumOneOf();if(t)return t;if(!this.get("__supportsMinMax__")||!this.get("__constraint__"))return;const n=this.get("__constraint__"),o=this[$l[n]];return Ss.isFunction(o)?o.call(this):void il.warn("No constraint handler found for: "+n)},_checkBetweenConstraints:function(){const e=this.get("__minVal__"),t=this.get("__maxVal__");if(!e&&!t)return;if(!e)return{__minVal__:Nl("schema.validation.field.enter.minimum.number","courage")};if(!t)return{__maxVal__:Nl("schema.validation.field.enter.maximum.number","courage")};let n=this._checkIntegerConstraints("__minVal__","Min value");return n||(n=this._checkIntegerConstraints("__maxVal__","Max value"),n||(+e>=+t?{__maxVal__:Nl("schema.validation.field.maximum.must.be.greater.than.minimum","courage")}:void 0))},_checkGreaterThanConstraint:function(){if(!this.get("__minVal__"))return;return this._checkIntegerConstraints("__minVal__","Constraint")||void 0},_checkLessThanConstraint:function(){if(!this.get("__maxVal__"))return;return this._checkIntegerConstraints("__maxVal__","Constraint")||void 0},_checkEqualsConstraint:function(){if(!this.get("__equals__"))return;return this._checkIntegerConstraints("__equals__","Constraint")||void 0},_checkIntegerConstraints:function(e,t){const n=this.get(e),o={};return isNaN(n)?("Min value"===t?o[e]=Nl("schema.validation.field.minimum.value.must.be.number","courage"):"Max value"===t?o[e]=Nl("schema.validation.field.maximum.value.must.be.number","courage"):"Constraint"===t&&(o[e]=Nl("schema.validation.field.constraint.must.be.number","courage")),o):+n<0?("Min value"===t?o[e]=Nl("schema.validation.field.minimum.number.must.be.greater.than.zero","courage"):"Max value"===t?o[e]=Nl("schema.validation.field.maximum.number.must.be.greater.than.zero","courage"):"Constraint"===t&&(o[e]=Nl("schema.validation.field.number.must.be.greater.than.zero","courage")),o):void 0},_setMasterOverride:function(e){if(e.settings&&e.settings.masterOverride&&e.settings.masterOverride){const t=e.settings.masterOverride.value;Ss.isArray(t)&&!Ss.isEmpty(t)?(e.__masterOverrideType__="OVERRIDE",e.__masterOverrideValue__=t||[]):e.__masterOverrideType__=e.settings.masterOverride.type}else e.__masterOverrideType__="INHERIT"},_setRangeConstraints:function(e){e.__displayType__===Rl?(e.__minVal__=e.minLength,e.__maxVal__=e.maxLength):e.__displayType__!==Dl&&e.__displayType__!==Il||(e.__minVal__=e.minimum,e.__maxVal__=e.maximum),e.__minVal__&&e.__maxVal__?e.__minVal__===e.__maxVal__?(e.__constraint__="equals",e.__equals__=e.__minVal__):e.__constraint__="between":!e.__minVal__&&e.__maxVal__?e.__constraint__="lessThan":!e.__maxVal__&&e.__minVal__&&(e.__constraint__="greaterThan")},_setSubSchemas:function(e){e.allOf?e.subSchemas=new jl(e.allOf,{parse:!0}):e.oneOf?e.subSchemas=new Fl(e.oneOf,{parse:!0}):e.noneOf&&(e.subSchemas=new Vl(e.noneOf,{parse:!0}))},_setUniqueness:function(e){const t=e&&e.unique;e.__unique__=!(!t||t!==yl.UNIQUENESS.UNIQUE_VALIDATED&&t!==yl.UNIQUENESS.PENDING_UNIQUENESS)},_setLoginPattern:function(){if(!this.get("__isLoginOfBaseSchema__"))return;const e=this.get("pattern");".+"===e?this.set("__loginFormatRestriction__",yl.LOGINPATTERNFORMAT.NONE):e?(this.set("__loginFormatRestriction__",yl.LOGINPATTERNFORMAT.CUSTOM),this.set("__loginFormatRestrictionCustom__",this._extractLoginPattern(e))):this.set("__loginFormatRestriction__",yl.LOGINPATTERNFORMAT.EMAIL)},_updateDisplayType:function(){const e=this.get("type");if(e===Rl&&this.get("format"))this.set("__displayType__",yl.FORMATDISPLAYTYPE[this.get("format")]);else{const t=this.get("items"),n=t&&(t.format?t.format:t.type);e&&n?this.set("__displayType__",yl.ARRAYDISPLAYTYPE[function(e,t){return e+"of"+t}(e,n)]):this.set("__displayType__",e)}},_validateEnumOneOf:function(){if(!this.get("__isEnumDefinedAndSupported__"))return;const e=this.get("__oneOf__")||[];if(Ss.isEmpty(e))return{__oneOf__:Nl("model.validation.field.blank","courage")};if(!this._isValidateOneOfConstraint(e)){const e=this.get("__enumConstraintType__");return{__oneOf__:ql[e]}}},_isValidateOneOfConstraint:function(e){const t=this.get("__enumConstraintType__");return Ss.all(e,function(e){return Pl.isConstraintValueMatchType(e.const,t)})},_validateLoginFormatRestriction:function(){if(!this.get("__isLoginOfBaseSchema__"))return;const e=this.get("__loginFormatRestriction__"),t=this.get("__loginFormatRestrictionCustom__")||"";return e===yl.LOGINPATTERNFORMAT.CUSTOM&&""===t.trim()?{__loginFormatRestrictionCustom__:Nl("model.validation.field.blank","courage")}:void 0},toJSON:function(){let e=Js.prototype.toJSON.apply(this,arguments);return e.settings={permissions:{}},e.settings.permissions.SELF=this.get("__userPermission__"),this.get("__isSensitive__")&&(e.settings.sensitive=this.get("__isSensitive__")),"image"===this.get("type")&&(e.type="object",e.extendedType="image"),e=this._enumAssignment(e),e=this._attributeOverrideToJson(e),e=this._normalizeUnionValue(e),e=this._patternAssignment(e),e=this._uniquenessAssignment(e),e},_attributeOverrideToJson:function(e){const t=this.get("__masterOverrideType__"),n=this.get("__masterOverrideValue__");return"OKTA_MASTERED"===t?e.settings.masterOverride={type:"OKTA_MASTERED"}:"OVERRIDE"===t&&(e.settings.masterOverride={type:"ORDERED_LIST",value:[]},n instanceof js?Ss.each(n.toJSON(),function(t){e.settings.masterOverride.value.push(t.id)}):n instanceof Array&&(e.settings.masterOverride.value=n),Ss.isEmpty(e.settings.masterOverride.value)&&delete e.settings.masterOverride),"INHERIT"===t&&delete e.settings.masterOverride,e},_normalizeUnionValue:function(e){return this.get("__isNoneScopeArrayType__")||(e.union=void 0),e},_enumAssignment:function(e){if(!this.get("__isEnumDefinedAndSupported__"))return e;const t=this._getEnumOneOfWithTitleCheck();return"array"===this.get("type")?(delete e.items.enum,e.items.oneOf=t):(delete e.enum,e.oneOf=t),e},_patternAssignment:function(e){if(!this.get("__isLoginOfBaseSchema__")||!this.get("__loginFormatRestriction__"))return e;switch(this.get("__loginFormatRestriction__")){case yl.LOGINPATTERNFORMAT.EMAIL:delete e.pattern;break;case yl.LOGINPATTERNFORMAT.CUSTOM:e.pattern=this._buildLoginPattern(this.get("__loginFormatRestrictionCustom__"));break;case yl.LOGINPATTERNFORMAT.NONE:e.pattern=".+"}return e},_uniquenessAssignment:function(e){return this.get("__unique__")?this.get("__isUniqueness__")||(e.unique=yl.UNIQUENESS.UNIQUE_VALIDATED):delete e.unique,e},_escapedRegexChar:function(e,t){const n=e.charAt(t);return Bl.test(n)?"\\"+n:n},_buildLoginPattern:function(e){let t="";for(var n=0;n<e.length;n++)t+=this._escapedRegexChar(e,n);return"["+t+"]+"},_extractLoginPattern:function(e){const t=e.match(/^\[(.*)\]\+/);return t?t[1].replace(/\\(.)/g,"$1"):e},_getEnumOneOfWithTitleCheck:function(){const e=this.get("__oneOf__");return Ss.map(e,function(e){return""!==sl.trim(e.title)||(e.title=Ss.isString(e.const)?e.const:JSON.stringify(e.const)),e})},_updateTypeFormatConstraints:function(){const e=this.get("__displayType__");this.unset("format",{silent:!0}),this.unset("items",{silent:!0}),this.set(yl.DISPLAYTYPES[e]),e!==Il&&e!==Dl&&(this.unset("minimum"),this.unset("maximum")),e!==Rl&&(this.unset("minLength"),this.unset("maxLength")),this.unset("__minVal__"),this.unset("__maxVal__"),this.unset("__equals__"),this.set("__supportsMinMax__",-1!==yl.SUPPORTSMINMAX.indexOf(this.get("__displayType__")))},_updateMinMax:function(){let e,t;const n=this.get("__displayType__");n===Rl?(e="minLength",t="maxLength"):n!==Dl&&n!==Il||(e="minimum",t="maximum"),this.get("__minVal__")?this.set(e,parseInt(this.get("__minVal__"),10)):this.unset(e),this.get("__maxVal__")?this.set(t,parseInt(this.get("__maxVal__"),10)):this.unset(t)},_convertEqualsToMinMax:function(){const e=this.get("__equals__");e&&(this.set("__minVal__",e),this.set("__maxVal__",e))},_setConstraintText:function(){const e=this.get("__constraint__"),t=this.get("__minVal__"),n=this.get("__maxVal__"),o=this.get("__equals__");switch(e){case"between":this.set("__constraintText__","Between "+t+" and "+n);break;case"greaterThan":this.set("__constraintText__","Greater than "+t);break;case"lessThan":this.set("__constraintText__","Less than "+n);break;case"equals":this.set("__constraintText__","Equals "+o);break;default:this.set("__constraintText__","")}},cleanup:function(){"lessThan"===this.get("__constraint__")?this.unset("__minVal__"):"greaterThan"===this.get("__constraint__")&&this.unset("__maxVal__"),this.get("scope")!==yl.SCOPE.SYSTEM&&(!0===this.get("__isScopeSelf__")?this.set({scope:yl.SCOPE.SELF},{silent:!0}):this.unset("scope")),this.get("__unique__")||this.unset("unique")},isEnumType:function(){return!!this.getEnumValues()},getEnumValues:function(){return this.get("oneOf")||this.get("enum")||this.get("items")&&this.get("items").oneOf||this.get("items")&&this.get("items").enum},detectHasEnumDefined:function(){const e=this.getEnumValues();e&&(this.set("__oneOf__",Pl.convertToOneOf(e)),this.set("__enumDefined__",!0))}});var zl={Model:Hl,Collection:js.extend({model:Hl,clone:function(){return new this.constructor(this.toJSON({verbose:!0}),{parse:!0})},areAllReadOnly:function(){return Ss.all(this.pluck("__isReadOnly__"))},createModelProperties:function(){return this.reduce(function(e,t){const n=t.get("type");return e[t.id]=Ss.clone(yl.DISPLAYTYPES[n]),-1!==yl.SUPPORTSMINMAX.indexOf(n)&&(e[t.id].minLength=t.get("minLength"),e[t.id].maxLength=t.get("maxLength")),"string"===n&&(e[t.id].format=t.get("format")),e},{})}})};const Wl=function(e){const t=Ss.pick(e,"id","name","displayName"),n=Ss.map(e.schema.properties,function(e,t){return Ss.extend({name:t},e)});return Ss.each(n,function(e){e.__schemaMeta__=t,e.__metadata&&(e.__metadata__=e.__metadata,delete e.__metadata)}),n},Kl=Js.extend({defaults:{id:void 0,displayName:void 0,name:void 0},constructor:function(){this.properties=new zl.Collection,Js.apply(this,arguments)},getProperties:function(){return this.properties},clone:function(){const e=Js.prototype.clone.apply(this,arguments);return e.getProperties().set(this.getProperties().toJSON({verbose:!0})),e},parse:function(e){const t=Wl(e);return this.properties.set(t,{parse:!0}),Ss.omit(e,"schema")},trimProperty:function(e){return Ss.omit(e,"name")},toJSON:function(){const e=Js.prototype.toJSON.apply(this,arguments);return e.schema={properties:{}},this.getProperties().each(function(t){const n=t.toJSON();e.schema.properties[n.name]=this.trimProperty(n)},this),e},save:function(){return this.getProperties().each(function(e){e.cleanup()}),Js.prototype.save.apply(this,arguments)}}),Gl=js.extend({model:Kl});var Yl={parseProperties:Wl,Model:Kl,Collection:Gl};const Jl={local:function(){const e=window.okta&&window.okta.settings||{},t=window.okta&&window.okta.theme||"";return{orgId:["string",!1,e.orgId],orgName:["string",!1,e.orgName],serverStatus:["string",!1,e.serverStatus],persona:["string",!1,e.persona],isDeveloperConsole:["boolean",!1,e.isDeveloperConsole],isPreview:["boolean",!1,e.isPreview],permissions:["array",!0,e.permissions||[]],theme:["string",!1,t]}},constructor:function(){Gs.apply(this,arguments),this.features=window._features||[]},hasFeature:function(e){return Ss.contains(this.features,e)}
2,hasAnyFeature:function(e){return Ss.some(e,this.hasFeature,this)},hasPermission:function(e){return Ss.contains(this.get("permissions"),e)},isDsTheme:function(){return"dstheme"===this.get("theme")}};var Ql=Gs.extend(Jl),Xl="__children__",Zl="__rendered__",ec="__parent__",tc="__children_definitions__",nc="__add_to_container__";function oc(e,t){for(var n=0;n<e[Xl].length;n++)if(t.cid===e[Xl][n].cid)return n}function ic(){}let rc;const ac={preinitialize:function(e){this.options=e||{},Ss.extend(this,Ss.pick(this.options,"state","settings")),this[Xl]=[],this[Zl]=!1,this[ec]=null,this[tc]=this.children,this.__original_initialize__=this.initialize,this.initialize=ic},constructor:function(e,...t){Os.View.call(this,e),Ss.each(Ss.result(this,tc),function(e){this.add.apply(this,Ss.isArray(e)?e:[e])},this),delete this[tc];const n=Ss.result(this,"autoRender");if(n&&this.model){var o=Ss.isArray(n)?Ss.map(n,function(e){return"change:"+e}).join(" "):"change";this.listenTo(this.model,o,function(){this.render()})}var i,r;this.initialize=this.__original_initialize__,this.initialize.call(this,e,...t),i=this,r=/^(?!(?:delegate|undelegate|_))([a-zA-Z0-9]+)(?:Events)$/,Ss.each(Ss.allKeys(i),function(e){var t=e.match(r);if(t){var n=Ss.result(i,e),o=i.options[t[1]]||i[t[1]];o&&Ss.isObject(n)&&Ss.isFunction(o.trigger)&&Ss.each(n,function(e,t){var n=Ss.isFunction(e)?[e]:Ss.reduce(e.split(/\s+/),(e,t)=>(Ss.isFunction(i[t])&&e.push(i[t]),e),[]);Ss.each(n,function(e){i.listenTo(o,t,e)})})}})},unregister:function(e){this.stopListening(e);var t=oc(this,e);Ss.isNumber(t)&&this[Xl].splice(t,1)},autoRender:!1,template:null,children:[],add:function(e,t,n,o,i){var r,a={},s=Ss.toArray(arguments);if(Ss.isFunction(e)&&(!e.prototype||!e.prototype.render))throw new Error("Type passed to add() is not a View");if(Ss.isObject(t)?(t=(a=t).selector,n=a.bubble,o=a.prepend,i=a.options):Ss.isObject(n)&&(n=(a=n).bubble,o=a.prepend,i=a.options),Ss.isString(e)&&(r=e,e=rc.extend({constructor:function(){try{var e=Os.$(r);if(1!==e.length)throw new Error("invalid Element");var t=/&(\w+|#x\d+);/g;if(e.prop("outerHTML").replace(t," ").length!==r.replace(t," ").length)throw new Error("invalid Element");this.template=e.html(),this.el=e.empty()[0]}catch(e){this.template=r}rc.apply(this,arguments)}})),e.prototype&&e.prototype instanceof rc){var l=Ss.omit(Ss.extend({},this.options,i),"el");return s[0]=new e(l),this.add.apply(this,s)}if(Ss.isNumber(oc(this,e)))throw new Error("Duplicate child");return e[ec]=this,e[nc]=function(t){return function(){if(t&&1!==e[ec].$(t).length)throw new Error("Invalid selector: "+t);var n=t?this[ec].$(t):this[ec].$el;this.render(),this.delegateEvents(),o?n.prepend(this.el):n.append(this.el)}}.call(e,t),n&&this.listenTo(e,"all",function(){this.trigger.apply(this,arguments)}),this.rendered()&&e[nc](),this[Xl].push(e),this},removeChildren:function(){return this.each(function(e){e.remove()}),this},remove:function(){return this.removeChildren(),this[ec]&&this[ec].unregister(this),Os.View.prototype.remove.apply(this,arguments)},compileTemplate:function(e){return Ss.template(e,void 0)},renderTemplate:function(e){if(Ss.isString(e)&&(e=this.compileTemplate(e)),Ss.isFunction(e))return e(this.getTemplateData())},getTemplateData:function(){var e=this.model&&this.model.toJSON({verbose:!0})||{},t=Ss.omit(this.options,["state","settings","model","collection"]);return Ss.defaults({},e,t)},render:function(){return this.preRender(),function(e){e[Zl]=!0;var t=e.renderTemplate(e.template);t?e.$el.html(t):e.length&&e.$el.empty(),e.each(function(e){e[nc]()})}(this),this.postRender(),this},preRender:ic,postRender:ic,rendered:function(){return this[Zl]},getChildren:function(){return this.toArray()},at:function(e){return this.getChildren()[e]},invoke:function(e){var t=Ss.toArray(arguments);return this.each(function(n){n.size()&&n.invoke.apply(n,t),Ss.isFunction(n[e])&&n[e].apply(n,t.slice(1))}),this}};rc=Os.View.extend(ac),Ss.each(["each","map","reduce","reduceRight","find","filter","reject","every","some","contains","toArray","size","first","initial","rest","last","without","indexOf","shuffle","lastIndexOf","isEmpty","chain","where","findWhere"],function(e){rc.prototype[e]=function(){var t=Ss.toArray(arguments);return t.unshift(Ss.toArray(this[Xl])),Ss[e].apply(Ss,t)}}),rc.isCourageView=!0;var sc=rc,lc={tpl:Ss.memoize(function(e){return xs(e)?(ks(e),function(t){return _s.compile(e)(t)}):()=>e}),logIfStringTemplate:ks};const cc=Ss.clone(Os.Events),uc={constructor:function(e,...t){sc.call(this,e,...t),this.module&&this.$el.attr("data-view",this.module.id)},empty:function(){return this.removeChildren()},compileTemplate:lc.tpl,broadcast:function(){return cc.trigger.apply(cc,arguments),this},listen:function(e,t){return cc.off(e,t),this.listenTo(cc,e,t),this},notify:function(e,t,n){return this.broadcast("notification",Ss.defaults({message:t,level:e},n)),this},confirm:function(e,t,n,o){let i;return i="object"==typeof e?e:2===arguments.length&&Ss.isFunction(t)?{title:"Okta",subtitle:e,ok:t}
2:{title:e,subtitle:t,ok:n,cancelFn:o},Ss.isFunction(i.ok)&&(i.ok=Ss.bind(i.ok,this)),Ss.isFunction(i.cancelFn)&&(i.cancelFn=Ss.bind(i.cancelFn,this)),this.broadcast("confirmation",i),this},alert:function(e){return Ss.isString(e)&&(e={subtitle:e}),this.confirm(Ss.extend({},e,{noCancelButton:!0})),this}};var pc=sc.extend(uc,{decorate:function(e){const t=e.extend({});return Ss.defaults(t.prototype,uc),t}});const dc={level:"success",hide:!0,fade:400,delay:3e3,width:0,dismissable:!1};var hc=pc.extend({className:"infobox infobox-confirm infobox-confirm-fixed",events:{"click .infobox-dismiss-link":function(e){e.preventDefault(),this.fadeOut()}},template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="infobox-dismiss-link" title="'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"courage",code:"component.dismiss"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:108}}}))+'" href="#"><span class="dismiss-icon"></span></a>'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<h3>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:220},end:{line:1,column:229}}}):r)+"</h3>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=p(n,"if").call(s,null!=t?p(t,"dismissable"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:164}}}))?r:"")+'<span class="icon '+u(typeof(a=null!=(a=p(n,"level")||(null!=t?p(t,"level"):t))?a:l)===c?a.call(s,{name:"level",hash:{},data:i,loc:{start:{line:1,column:182},end:{line:1,column:191}}}):a)+'-16"></span>'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"title"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:203},end:{line:1,column:241}}}))?r:"")+"<p>"+u(typeof(a=null!=(a=p(n,"message")||(null!=t?p(t,"message"):t))?a:l)===c?a.call(s,{name:"message",hash:{},data:i,loc:{start:{line:1,column:244},end:{line:1,column:255}}}):a)+"</p>"},useData:!0}),getNotificationOffsetTop:function(){const e=document.querySelector('div[slot="banners"]');return e?84+e.offsetHeight:84},initialize:function(){if(this.options=Ss.defaults({},this.options,dc),!this.options.message)switch(this.options.level){case"success":this.options.message=ml.localize("notification.default.message.success","courage");break;case"error":this.options.message=ml.localize("notification.default.message.error","courage");break;case"warning":this.options.message=ml.localize("notification.default.message.warning","courage")}this.$el.addClass("infobox-"+this.options.level),this.$el.css("top",this.getNotificationOffsetTop()+"px"),this.options.width&&this.$el.width(this.options.width)},getTemplateData:function(){return Ss.extend(Ss.pick(this.options,"level","message","title"),{dismissable:!1===this.options.hide||!0===this.options.dismissable})},postRender:function(){this.options.hide&&Ss.delay(Ss.bind(this.fadeOut,this),this.options.delay)},fadeOut:function(){this.$el.fadeOut(this.options.fade,Ss.bind(this.remove,this))}});function fc(e,t){const n=Ss.result(e,"root")||"";return n&&Ss.isString(t)?[n,t].join("/").replace(/\/{2,}/g,"/"):t}const mc={root:"",listen:hc.prototype.listen,constructor:function(e={}){this.el=e.el,this.settings=new Ql(Ss.omit(e,"el")),e.root&&(this.root=e.root),Os.Router.apply(this,arguments),this.listen("notification",this._notify),this.listen("confirmation",this._confirm)},_confirm:function(e={}){const t=new(void Ss.pick(e,"title","subtitle","save","ok","cancel","cancelFn","noCancelButton","noSubmitButton","content","danger","type","closeOnOverlayClick","buttonOrder"))({model:this.settings});return t.render(),t},_notify:function(e){const t=new hc(e);return sl("#content").prepend(t.render().el),t},render:function(e,t){this.unload(),t=Ss.extend(Ss.pick(this,"settings","el"),t||{}),this.controller=new e(t),this.controller.render()},start:function(...e){sl(function(){Os.History.started?il.error("History has already been started"):Os.history.start(...e)})},unload:function(){this.controller&&(this.stopListening(this.controller),this.stopListening(this.controller.state),this.controller.remove())},route:function(e,t,n){return Os.Router.prototype.route.call(this,fc(this,e),t,n)},navigate:function(e,t){return Os.Router.prototype.navigate.call(this,fc(this,e),t)}};var gc=Os.Router.extend(mc),yc=Gs.extend({invoke:function(){const e=Ss.toArray(arguments);e.unshift("__invoke__"),this.trigger.apply(this,e)}});const vc={preinitialize:function(e={}){if(this.state=Ss.result(this,"state"),!(this.state instanceof yc||e.state instanceof yc)){const t=Ss.defaults(function(e){const t={};return Ss.each(e,function(e,n){Ss.isNull(e)||(t[n]=e)}),t}(e.state),this.state||{});this.state=new yc(t),delete e.state}e.settings||(e.settings=new Ql(Ss.omit(e||{},"el")),this.listen("notification",gc.prototype._notify),this.listen("confirmation",gc.prototype._confirm)),pc.prototype.preinitialize.call(this,e)},constructor:function(e={}){let t;pc.call(this,e),this.listenTo(this.state,"__invoke__",function(){const e=Ss.toArray(arguments),t=e.shift();Ss.isFunction(this[t])&&this[t].apply(this,e)}),this.View&&this.View.isCourageView?t=this.View:Ss.result(this,"View")&&Ss.result(this,"View").isCourageView&&(t=Ss.result(this,"View")),t&&this.add(new t(this.toJSON()))},state:{},View:null,render:function(){const e=arguments,t=this;return sl(function(){pc.prototype.render.apply(t,e)}),this},toJSON:function(e){return Ss.extend(Ss.pick(this,"state","settings","collection","model"),e||{})},remove:function(){return this.removeChildren(),this.stopListening(),this.$el.empty(),this}};var bc=pc.extend(vc);function wc(e,t){const n=this.model.get(t);return Ss.isFunction(e)?e.call(this,n):e===n}var _c=function(e,t,n){e.model&&Ss.isObject(t)&&Ss.size(t)&&Ss.isFunction(n)&&function(e,t,n){const o=Ss.bind(n,e,e,t);e.render=Ss.wrap(e.render,function(t){const n=t.call(e);return o({animate:!1}),n}),e.listenTo(e.model,function(e){return"change:"+Ss.keys(e).join(" change:")}
2(t),function(){o({animate:!0})})}(e,t,function(e,t,o){const i=Ss.every(Ss.map(t,wc,e));n.call(e,i,o)})};const kc={click:function(e){e.preventDefault(),e.stopPropagation()}};var xc=pc.extend({attributes:function(){const e=this.__getAttribute("attrs");return Ss.extend({"data-se":"button"},e)},tagName:"a",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"icon")||(null!=t?a(t,"icon"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:i,loc:{start:{line:1,column:30},end:{line:1,column:38}}}):r)+'"></span>'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:67},end:{line:1,column:76}}}):r)},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"icon"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:54}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"title"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:54},end:{line:1,column:83}}}))?r:"")},useData:!0}),visible:!0,enabled:!0,enableWhen:{},showWhen:{},constructor:function(e){this.options=e||{};const t=this.getTemplateData();this.disabled=!1,pc.apply(this,arguments),this.$el.addClass("link-button"),t.icon&&(this.$el.addClass("link-button-icon"),t.title||this.$el.addClass("icon-only"))},getTemplateData:function(){return{href:this.__getAttribute("href"),title:this.__getAttribute("title"),icon:this.__getAttribute("icon")}},initialize:function(){_c(this,Ss.resultCtx(this,"enableWhen",this),this.toggle),_c(this,Ss.resultCtx(this,"showWhen",this),this.toggleVisible)},render:function(){pc.prototype.render.apply(this,arguments),Ss.result(this,"enabled")||this.toggle(!1),Ss.result(this,"visible")||this.toggleVisible(!1);const e=this.getTemplateData();return this.$el.attr("href",e.href||"#"),this},__getAttribute:function(e,t){let n=Ss.resultCtx(this.options,e,this);return Ss.isUndefined(n)&&(n=Ss.result(this,e)),Ss.isUndefined(n)?t:n},enable:function(){this.toggle(!0)},disable:function(){this.toggle(!1)},show:function(){this.toggleVisible(!0)},hide:function(){this.toggleVisible(!1)},toggle:function(e){const t=!!e&&Ss.result(this,"enabled");this.disabled=!t,this.$el.toggleClass("link-button-disabled btn-disabled disabled",this.disabled),this.delegateEvents(this.disabled?kc:null)},toggleVisible:function(e){const t=!e||!Ss.result(this,"visible");this.$el.toggleClass("hide",t)}});function Sc(e){const t=Ss.extend(e.click?{click:e.click}:{},e.events||{}),n={};return Ss.each(t,function(t,o){n[o]=function(n){e.href||(n.preventDefault(),n.stopPropagation()),this.disabled&&"click"===o||t.apply(this,arguments)}}),n}var Tc=function(e){return(e=Ss.clone(e)).attrs=e.attributes,delete e.attributes,xc.extend(Ss.extend(e,{events:Sc(e)}))};function Ec(e){this.options=Ss.clone(e||{}),this.cid=Ss.uniqueId("class"),this.initialize.apply(this,arguments)}Ss.extend(Ec.prototype,Os.Events,{initialize:function(){}}),Ec.extend=Os.Model.extend;var Cc={exports:{}};!function(e){e.exports=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}return function t(n){function o(t,i,r){var a;if(arguments.length>1){if("number"==typeof(r=e({path:"/"},o.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
2URIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",i,r.expires&&"; expires="+r.expires.toUTCString(),r.path&&"; path="+r.path,r.domain&&"; domain="+r.domain,r.secure?"; secure":""].join("")}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u<l.length;u++){var p=l[u].split("="),d=p[0].replace(c,decodeURIComponent),h=p.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{if(h=n.read?n.read(h,d):n(h,d)||h.replace(c,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===d){a=h;break}t||(a[d]=h)}catch(e){}}return a}return o.get=o.set=o,o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(t,n){o(t,"",e(n,{expires:-1}))},o.withConverter=t,o}(function(){})}()}(Cc);var Oc=Cc.exports;const Ac=/^https/.test(window.location.href);var Pc={setCookie:function(e,t,n){Oc.set(e,t,Ss.defaults(n||{},{secure:Ac,path:"/"}))},getCookie:function(){return Oc.get.apply(Oc,arguments)},removeCookie:function(){return Oc.remove.apply(Oc,arguments)}},Nc=n(28187);const Rc=n.n(Nc)(),Ic=["success","error","target","text"],Dc=Ec.extend({initialize:function(e,t){let n,o,i;t=Ss.pick(t||{},Ic),Ss.isString(e)&&(n=e),Ss.isElement(e)&&(n=e),e instanceof sl&&(n=e.selector),e instanceof sc&&(n=e.el),Ss.isFunction(t.target)&&(o=t.target),Ss.isElement(t.target)&&(o=Ss.constant(t.target)),Ss.isString(t.text)?i=Ss.constant(t.text):Ss.isFunction(t.text)&&(i=t.text),this.__instance=new Rc(n,{target:o,text:i}),this.done=Ss.partial(this.__setCallback,"success"),this.error=Ss.partial(this.__setCallback,"error"),this.done(t.success),this.error(t.error)},__setCallback:function(e,t){if(Ss.isFunction(t))return this.__instance.on(e,t),this.__instance}});var Lc={attach:function(e,t){return new Dc(e,t)}},Mc={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ENTER:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,SPACE:32,BACKSPACE:8,__isKey:function(e,t){return(e.which||e.keyCode)===this[t]},isEnter:function(e){return this.__isKey(e,"ENTER")},isEsc:function(e){return this.__isKey(e,"ESC")},isSpaceBar:function(e){return this.__isKey(e,"SPACE")}},Uc={redirect:function(e){window.location=e},reloadPage:function(){window.location.reload()},constantError:function(e){return function(){throw new Error(e)}},getUrlQueryString:function(e){Ss.isObject(e)||(e={});const t=Ss.without(Ss.map(e,function(e,t){if(null!=e)return t+"="+encodeURIComponent(e)}),void 0).join("&");return Ss.isEmpty(t)?"":"?"+t},isABaseView:function(e){return e instanceof pc||e.prototype instanceof pc||e===pc},isSafari:function(){return/^((?!chrome|android|crios).)*safari/i.test(navigator.userAgent)}};const jc=_s.Utils.escapeExpression;_s.Utils.escapeExpression=function(e){return jc(e).replace(/&#x3D;/g,"=")};const Fc=_s.Utils.escapeExpression;function Vc(e){return e&&e.replace(/^\s+|\s+$/g,"")}_s.registerHelper("i18n",function(e){let t;const n=Vc(e.hash.code),o=Vc(e.hash.bundle),i=Vc(e.hash.arguments),r=Object.keys(e.hash).filter(e=>e.match(/^\$\d+/)).map(t=>({tag:t,value:e.hash[t]}));i&&(t=Ss.map(Vc(i).split(";"),function(e){let t;return e=Vc(e),Ss.each(e.split("."),e=>{t=t?t[e]:this[e]}),t},this));const a=ml.localize(n,o,t);if(r.length<1)return a;let s=Fc(a);try{return r.forEach(e=>{s=function(e,t,n){const o=Fc(`<${t}>`),i=Fc(`</${t}>`),[r,a]=n.split(t);if(!e.includes(o)&&!e.includes(i))throw Error(`Parsed tag "${t}" is not present in "${e}"`);if(!n.includes(t))throw Error(`Parsed tag "${t}" is not present in "${n}"`);if(!r||!a)throw Error(`Template value "${n}" must contain beginning and closing tags`);return e.replace(o,r).replace(i,a)}(s,e.tag,e.value)}),new _s.SafeString(s)}catch(e){return il.error(e.toString()),a}});var qc=sc.extend({constructor:function(){if(sc.apply(this,arguments),!this.collection)throw new Error("Missing collection");this.listenTo(this.collection,"reset sort",this.reset),this.listenTo(this.collection,"add",this.addItem),this.fetchCollection?this.collection.fetch():this.collection.each(this.addItem,this)},item:null,itemSelector:null,reset:function(){return this.removeChildren(),this.collection.each((e,t)=>{this.addItem(e,t)}),this},addItem:function(e){var t=this.add(this.item,this.itemSelector,{options:{model:e}}).last();return this.state&&this.state.get("trackItemAdded")&&this.state.trigger("itemAdded",t),t.listenTo(e,"destroy remove",t.remove),this},addShowMore:Ss.noop}),Bc=pc.decorate(qc);const $c=_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"icon")||(null!=t?a(t,"icon"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:i,loc:{start:{line:1,column:96},end:{line:1,column:104}}}):r)+'"></span>'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:133},end:{line:1,column:142}}}):r)},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="option-subtitle">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:i,loc:{start:{line:1,column:192},end:{line:1,column:204}}}):r)+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="" class="icon-16 '+u(typeof(a=null!=(a=p(n,"className")||(null!=t?p(t,"className"):t))?a:l)===c?a.call(s,{name:"className",hash:{},data:i,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):a)+'" data-se="'+u(typeof(a=null!=(a=p(n,"seleniumId")||(null!=t?p(t,"seleniumId"):t))?a:l)===c?a.call(s,{name:"seleniumId",hash:{}
2,data:i,loc:{start:{line:1,column:50},end:{line:1,column:64}}}):a)+'">'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"icon"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:66},end:{line:1,column:120}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"title"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:120},end:{line:1,column:149}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:149},end:{line:1,column:215}}}))?r:"")+"</a>"},useData:!0}),Hc=pc.extend({tagName:"li",events:{click:function(e){e.preventDefault(),this.action&&this.action.call(this)}},constructor:function(){pc.apply(this,arguments),this.$el.addClass("okta-dropdown-option option")},render:function(){return this.$el.html($c({icon:Ss.result(this,"icon"),className:Ss.result(this,"className")||"",title:Ss.result(this,"title"),subtitle:Ss.result(this,"subtitle"),seleniumId:Ss.result(this,"seleniumId")})),Ss.result(this,"disabled")&&this.disable(),this},disable:function(){this.$el.addClass("option-disabled"),this.$el.find("a").attr("tabindex","-1")}});var zc=pc.extend({events:{"click a.option-selected":function(e){e.preventDefault(),Ss.result(this,"disabled")&&e.stopPropagation()},"click .dropdown-disabled":function(e){e.preventDefault(),e.stopPropagation()}},items:[],constructor:function(){const e=this.className;this.className=null,pc.apply(this,arguments),this.className=e,this.$el.addClass("dropdown more-actions float-l"),Ss.each(Ss.result(this,"items"),function(e){this.addOption(e,this.options)},this)},template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"icon")||(null!=t?a(t,"icon"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"icon",hash:{},data:i,loc:{start:{line:1,column:176},end:{line:1,column:184}}}):r)+'"></span>'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="off-screen">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"screenReaderText")||(null!=t?a(t,"screenReaderText"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"screenReaderText",hash:{},data:i,loc:{start:{line:1,column:249},end:{line:1,column:269}}}):r)+"</span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link-button '+u(typeof(a=null!=(a=p(n,"className")||(null!=t?p(t,"className"):t))?a:l)===c?a.call(s,{name:"className",hash:{},data:i,loc:{start:{line:1,column:31},end:{line:1,column:44}}}):a)+' link-button-icon option-selected center" aria-expanded="false" aria-controls="okta-dropdown-options">'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"icon"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:146},end:{line:1,column:200}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"screenReaderText"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:200},end:{line:1,column:283}}}))?r:"")+'<span class="option-selected-text">'+u(typeof(a=null!=(a=p(n,"title")||(null!=t?p(t,"title"):t))?a:l)===c?a.call(s,{name:"title",hash:{},data:i,loc:{start:{line:1,column:318},end:{line:1,column:327}}}):a)+'</span><span class="icon-dm"></span></a><div id="okta-dropdown-options" class="options clearfix"><ul class="okta-dropdown-list options-wrap clearfix"></ul></div>'},useData:!0}),getTemplateData:function(){const e=[Ss.result(this,"className")||"",Ss.result(this,"disabled")?"dropdown-disabled":""];return{icon:Ss.result(this,"icon"),className:sl.trim(e.join(" ")),title:Ss.result(this,"title"),screenReaderText:Ss.result(this,"screenReaderText")}},addOption:function(e,t){this.add(Hc.extend(e),"ul.options-wrap",{options:t||{}})}});const Wc=["model","id","inputId","type","label","sublabel","tooltip","name","group"],Kc=["wide","multi","input","label-top","explain","explain-top","customExplain","model","name","type","autoRender","multirowError"],Gc=["model","name","label-top","readOnly","events","initialize","showWhen","bindings","render","className","data-se","toggleWhen","group"],Yc=["model","name","inputId","type","input","placeholder","label","readOnly","read","disabled","readModeString","options","deps","from","to","autoRender","inlineValidation","validateOnlyIfDirty","ariaLabel","params","autoComplete","sortByKey"],Jc=Ss.uniq(Ss.union(Wc,Kc,Gc,Yc,["errorField"])),Qc=["•         ","•  •      ","•  •  •   ","•  •  •  •","   •  •  •","      •  •","         •","          ","          ","          "];function Xc(e){if(e&&!e.__edit__)return Ss.extend({__edit__:Ss.constant(!0)},e)}var Zc={LABEL_OPTIONS:Wc,CONTAINER_OPTIONS:Kc,WRAPPER_OPTIONS:Gc,INPUT_OPTIONS:Yc,generateInputOptions:function e(t,n,o){t=Ss.clone(t),Ss.contains(["list","group"],t.type)&&(t.params=Ss.defaults({create:o,inputs:Ss.map(Ss.isArray(t.input)?t.input:[t.input],function(t){return Ss.first(e(t,n,o))})},t.params||{}),delete t.input);const i=Ss.isArray(t.input)?Ss.clone(t.input):[t];return Ss.map(i,function(e){const o=Ss.defaults({model:n.model},e,Ss.omit(t,"input","inputs"),n.options,{id:Ss.uniqueId("input"),readOnly:n.isReadOnly(),read:n.hasReadMode()});return n.isReadOnly()&&(o.read=o.readOnly=!0),o})},changeEventString:function(e){return"change:"+e.join(" change:")}
2,createReadFormButton:function(e){let t,n,o;return"cancel"===e.type?(n=o=ml.localize("oform.cancel","courage"),t=function(){this.model.trigger("form:cancel")}):(n=ml.localize("oform.edit","courage"),o=n+" "+e.formTitle,t=function(){this.model.set("__edit__",!0)}),pc.extend({tagName:"a",className:e.className,attributes:{href:"#","aria-label":o},template:function(){return Ss.escape(n)},events:{click:function(e){e.preventDefault(),t.call(this)}}})},createButton:function(e){switch((e=Ss.clone(e)).type){case"save":Ss.defaults(e,{className:"button-primary"});break;case"cancel":Ss.defaults(e,{className:"button-clear",text:ml.localize("oform.cancel","courage"),action:function(){this.model.trigger("form:cancel")}});break;case"previous":Ss.defaults(e,{text:ml.localize("oform.previous","courage"),action:function(){this.model.trigger("form:previous")}})}return function(e){let t,n,o;return e=Ss.pick(e||{},"action","id","className","text","type"),pc.extend({tagName:"input",className:"button",events:{click:function(){e.action&&!this.disabled()&&e.action.call(this)},keyup:function(t){Mc.isEnter(t)&&e.action&&!this.disabled()&&e.action.call(this)}},disabled:function(){return!0===this.$el.prop("disabled")},disable:function(){this.$el.prop("disabled",!0),this.$el.addClass("btn-disabled")},enable:function(){this.$el.prop("disabled",!1),this.$el.removeClass("btn-disabled")},initialize:function(){const o=this;this.$el.attr("type","save"===e.type?"submit":"button"),this.$el.val(e.text),e.id&&this.$el.attr("id",e.id),e.className&&this.$el.addClass(e.className),e.type&&this.$el.attr("data-type",e.type),this.$el.mousedown(function(){o.model.set("__pending__",!0)}),this.$el.mouseup(function(){o.model.set("__pending__",!1)}),this.listenTo(this.model,"form:set-saving-state",function(){this.disable(),"save"===e.type&&(clearTimeout(t),t=setTimeout(Ss.bind(this.__changeSaveText,this),1e3))}),this.listenTo(this.model,"form:clear-saving-state",function(){this.enable(),"save"===e.type&&(clearTimeout(t),clearInterval(n),this.$el.val(e.text))})},__changeSaveText:function(){o=0,clearInterval(n),n=setInterval(Ss.bind(this.__showLoadingText,this),200)},__showLoadingText:function(){this.$el.val(Qc[o++%Qc.length])}})}(e)},validateInput:function e(t,n){if(t||(t={}),"label"===t.type)return void(t.label||il.warn('A label input must have a "label" parameter',t));if("button"===t.type)return t.title||t.icon||il.warn('A button input must have a "title" and/or an "icon" parameter',t),void(t.click||t.href||il.warn('A button input must have a "click" and/or an "href" parameter',t));if(t.name||t.input||il.warn('Missing "name" or "input" parameters',t),Ss.isArray(t.name)&&Ss.isArray(t.input))throw new Error('Not allowed to have both "name" and "input" defined as array.');if("list"!==t.type&&t.name&&n&&n.allows){let e=[];Ss.isArray(t.name)?e=t.name:e.push(t.name),Ss.each(e,function(e){if(!n.allows(e))throw new Error("field not allowed: "+t.name)})}Ss.isArray(t.input)&&"list"!==t.type&&Ss.each(t.input,function(t){e(t,n)});const o=Ss.keys(t),i=Ss.intersection(o,Jc);if(Ss.size(i)!==Ss.size(t)){const e=Ss.clone(Jc);il.warn("Invalid input parameters",Ss.without(o,...e),t)}},applyShowWhen:function(e,t){_c(e,Xc(t),function(t,n){n.animate?e.$el["slide"+(t?"Down":"Up")](200,function(t){return function(){e.$el.toggle(t),e.model.trigger("form:resize")}}(t)):e.$el.toggle(t)})},applyToggleWhen:function(e,t){_c(e,Xc(t),function(t,n){e.$el.toggle(t),e.model.trigger("form:resize"),n.animate&&e.render()})}},eu=pc.extend({el:'<span class="o-form-toggle" data-type="header-btn"></span>',formTitle:"",modelEvents:{"change:__edit__":"toggle"},initialize:function(){this.addButton()},addButton:function(){this.model.get("__edit__")?this.add(Zc.createReadFormButton({type:"cancel"})):this.add(Zc.createReadFormButton({type:"edit",formTitle:this.formTitle,className:"disable-in-read-only"}))},toggle:function(){this.removeChildren(),this.addButton()}});const tu={className:function(){return"o-form-button-bar"},buttonOrder:["previous","save","cancel"],initialize:function(e){const t={previous:{type:"previous"},save:{type:"save",text:Ss.resultCtx(e,"save",this),id:Ss.resultCtx(e,"saveId",this),className:Ss.resultCtx(e,"saveClassName",this)},cancel:{type:"cancel",text:Ss.resultCtx(e,"cancel",this)}};
2this.__getButtonOrder(e).forEach(e=>{this.addButton(t[e])})},addButton:function(e,t){return this.add(Zc.createButton(e),t)},__getButtonOrder:function(e){const t=Ss.resultCtx(e,"buttonOrder",this,this.buttonOrder),n=[];return e.noSubmitButton&&n.push("save"),e.noCancelButton&&n.push("cancel"),e.hasPrevStep||n.push("previous"),Ss.without(t,...n)}};var nu=pc.extend(tu),ou=pc.extend({template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"errorSummary")||(null!=t?a(t,"errorSummary"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"errorSummary",hash:{},data:i,loc:{start:{line:1,column:130},end:{line:1,column:146}}}):r)+"</p>"},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"courage",code:"oform.errorbanner.title"},data:i,loc:{start:{line:1,column:161},end:{line:1,column:217}}}))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span>'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"errorSummary"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:107},end:{line:1,column:228}}}))?r:"")+"</div>"},useData:!0}),modelEvents:{"form:clear-errors":"remove"}});const iu=/^([\S]+): (.+)$/;var ru={getResponseJSON:function(e){try{return e.responseJSON||JSON.parse(e.responseText)}catch(e){}},parseErrorSummary:function(e){const t=e.match(iu);if(t)return[t[1],t[2]]},parseErrorCauseObject:function(e){if(e.property&&e.errorSummary){const t=e.reason?ml.localize(e.reason):void 0,n=e.errorSummary;return[e.property,-1===(null==t?void 0:t.indexOf("L10N_ERROR["))?t:n]}},parseErrors:function(e){const t=this.getResponseJSON(e);return Ss.map(t&&t.errorCauses||[],function(e){return(""+e.errorSummary).replace(iu,"$2")})},parseFieldErrors:function(e){const t=this.getResponseJSON(e),n={};return t?Ss.each(t.errorCauses||[],function(e){let t=[];if(t=e.property&&e.errorSummary?this.parseErrorCauseObject(e):e.location&&e.errorSummary?[e.location,e.errorSummary]:this.parseErrorSummary(e&&e.errorSummary||""),t){const e=t[0],o=t[1];n[e]||(n[e]=[]),n[e].push(o)}},this):Ss.isObject(e)&&Ss.size(e)&&Ss.each(e,function(e,t){n[t]=[e]}),Ss.size(n)?n:void 0}};const au=Uc.isABaseView;var su=pc.extend({attributes:function(){return{"data-se":"o-form-input-container"}},className:function(){let e="o-form-input";return this.options.wide&&(e+=" o-form-wide"),Ss.contains([1,2,3,4],this.options.multi)&&(e+=" o-form-multi-input-"+this.options.multi,Ss.isArray(this.options.input))&&Ss.find(this.options.input,function(e){return Ss.contains(["text+select","select+text"],e.options.type)})&&(e+=" o-form-multi-input-group-"+this.options.multi),e},_getNames:function(){const e=Ss.isArray(this.options.name)?this.options.name:[this.options.name];return"group"===this.options.type?e.push.apply(e,Ss.pluck(this.options.input[0].options.params.inputs,"name")):Ss.isArray(this.options.name)?this.options.input&&this.options.input.options&&this.options.input.options.name&&e.push(this.options.input.options.name):this.options.input&&(Ss.isArray(this.options.input)?Ss.each(this.options.input,function(t){e.push(t.options.name)}):e.push(this.options.input.options.name)),Ss.uniq(Ss.compact(e))},_getInputElement:function(){const e=Array.isArray(this.options.input)?Ss.last(this.options.input):this.options.input,t=e&&e.options&&e.options.inputId,n=t?this.$("#"+t):null;return n&&n.length?n:null},constructor:function(){pc.apply(this,arguments);const e=this.options["explain-top"]&&this.options["label-top"];this.options.input&&(Ss.isArray(this.options.input)?Ss.each(this.options.input,function(t){this.add(t,{prepend:!e})},this):this.add(this.options.input,{prepend:!e})),this.__setExplain(this.options);const t=this._getNames();this.listenTo(this.model,"form:field-error",function(n,o){Ss.contains(t,n)&&this.__setError(o,e)}),this.listenTo(this.model,"form:clear-errors change:"+t.join(" change:"),this.__clearError),this.listenTo(this.model,"form:clear-error:"+t.join(" form:clear-error:"),this.__clearError),Ss.resultCtx(this.options,"autoRender",this)&&this.listenTo(this.model,"change:"+this.options.name,this.render),this.__errorState=!1},__setExplain:function(e){let t;if(e.customExplain)return il.warn("Deprecated - use explain instead of customExplain"),void this.add(this.options.customExplain);
2t=e.explain,Ss.isFunction(t)&&!au(t)&&(t=Ss.resultCtx(this.options,"explain",this)),t&&(au(t)?(this.template=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<p class="o-form-explain"></p>'},useData:!0}),this.add(t," > .o-form-explain")):this.template=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"explain")||(null!=t?a(t,"explain"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"explain",hash:{},data:i,loc:{start:{line:1,column:26},end:{line:1,column:37}}}):r)+"</p>"},useData:!0}))},__setError:function(e,t){this.__errorState=!0,this.$el.addClass("o-form-has-errors");const n=Ss.uniqueId("input-container-error"),o=this.__getHTMLForError(Ss.flatten(e),n),i=this.$(".o-form-explain").not(".o-form-input-error").first();i.length&&!t?i.before(o):this.$el.append(o);const r=this._getInputElement()||this.$el;r.attr("aria-describedby",n),r.attr("aria-invalid",!0)},__getHTMLForError:function(e,t){const n=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p id="'+c(typeof(r=null!=(r=u(n,"errorId")||(null!=t?u(t,"errorId"):t))?r:s)===l?r.call(a,{name:"errorId",hash:{},data:i,loc:{start:{line:1,column:7},end:{line:1,column:18}}}):r)+'" class="okta-form-input-error o-form-input-error o-form-explain" role="alert"><span class="icon icon-16 error-16-small" role="img" aria-label="'+c(typeof(r=null!=(r=u(n,"iconLabel")||(null!=t?u(t,"iconLabel"):t))?r:s)===l?r.call(a,{name:"iconLabel",hash:{},data:i,loc:{start:{line:1,column:162},end:{line:1,column:175}}}):r)+'"></span>'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:i,loc:{start:{line:1,column:184},end:{line:1,column:192}}}):r)+"</p>"},useData:!0}),o=ml.localize("oform.error.icon.ariaLabel","courage");if(this.options.multirowError){let i="";return e.forEach(e=>{i+=n({errorId:t,iconLabel:o,text:e})}),i}return n({errorId:t,iconLabel:o,text:e.join(", ")})},__clearError:function(){if(this.__errorState){this.$(".o-form-input-error").remove();const e=this._getInputElement()||this.$el;e.attr("aria-describedby",null),e.attr("aria-invalid",null),this.$el.removeClass("o-form-has-errors"),this.__errorState=!1,Ss.defer(()=>{this.model.trigger("form:resize")})}},focus:function(){return this.each(function(e){if(e.focus)return e.focus()}),this}});const lu={};function cu(e){return Ss.isFunction(e)?Ss.isFunction(e.prototype.editMode)&&Ss.isFunction(e.prototype.readMode):Ss.isObject(e)&&Ss.isFunction(e.editMode)&&Ss.isFunction(e.readMode)}var uu={isBaseInput:cu,register:function(e,t){lu[e]=t},get:function(e){const t=lu[e.type];return t&&(cu(t)?t:t(e))},unregister:function(e){delete lu[e]}};function pu(e,t){return uu.isBaseInput(e)&&e.prototype?new e(Ss.omit(t,"input")):e}var du=function(e){if((e=Ss.clone(e)).input)return pu(e.input,e);const t=uu.get(e);if(!t)throw new Error("unknown input: "+e.type);return pu(t,e)},hu=function(e){return!!e.input||!!uu.get(e)};!function(e,t,n){Cs().fn.qtip||function(o){var i,r,a,s,l,c=!0,u=!1,p=null,d="x",h="y",f="width",m="height",g="top",y="left",v="bottom",b="right",w="center",_="shift",k={},x="qtip",S="data-hasqtip",T="data-qtip-id",E=["ui-widget","ui-tooltip"],C="."+x,O="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),A=x+"-fixed",P=x+"-default",N=x+"-focus",R=x+"-hover",I=x+"-disabled",D="_replacedByqTip",L="oldtitle",M={ie:function(){var e,n;for(e=4,n=t.createElement("div");(n.innerHTML="\x3c!--[if gt IE "+e+"]><i></i><![endif]--\x3e")&&n.getElementsByTagName("i")[0];e+=1);return e>4?e:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||u};function U(e,t,n,i){this.id=n,this.target=e,this.tooltip=p,this.elements={target:e},this._id=x+"-"+n,this.timers={img:{}},this.options=t,this.plugins={},this.cache={event:{},target:o(),disabled:u,attr:i,onTooltip:u,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=u}function j(e){return e===p||"object"!==o.type(e)}function F(e){return!(o.isFunction(e)||e&&e.attr||e.length||"object"===o.type(e)&&(e.jquery||e.then))}function V(e){var t,n,i,r;return j(e)?u:(j(e.metadata)&&(e.metadata={type:e.metadata}),"content"in e&&(j(t=e.content)||t.jquery||t.done?(n=F(t)?u:t,t=e.content={text:n}):n=t.text,"ajax"in t&&(i=t.ajax,r=i&&i.once!==u,delete t.ajax,t.text=function(e,t){var a=n||o(this).attr(t.options.content.attr)||"Loading...",s=o.ajax(o.extend({},i,{context:t})).then(i.success,p,i.error).then(function(e){return e&&r&&t.set("content.text",e),e}
vendor: 22,162 bytes, line 2
2,function(e,n,o){t.destroyed||0===e.status||t.set("content.text",n+": "+o)});return r?a:(t.set("content.text",a),s)}),"title"in t&&(o.isPlainObject(t.title)&&(t.button=t.title.button,t.title=t.title.text),F(t.title||u)&&(t.title=u))),"position"in e&&j(e.position)&&(e.position={my:e.position,at:e.position}),"show"in e&&j(e.show)&&(e.show=e.show.jquery?{target:e.show}:e.show===c?{ready:c}:{event:e.show}),"hide"in e&&j(e.hide)&&(e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide}),"style"in e&&j(e.style)&&(e.style={classes:e.style}),o.each(k,function(){this.sanitize&&this.sanitize(e)}),e)}function q(e,t){for(var n,o=0,i=e,r=t.split(".");i=i[r[o++]];)o<r.length&&(n=i);return[n||e,r.pop()]}function B(e,t){var n,o,i;for(n in this.checks)if(this.checks.hasOwnProperty(n))for(o in this.checks[n])this.checks[n].hasOwnProperty(o)&&(i=new RegExp(o,"i").exec(e))&&(t.push(i),("builtin"===n||this.plugins[n])&&this.checks[n][o].apply(this.plugins[n]||this,t))}(r=U.prototype)._when=function(e){return o.when.apply(o,e)},r.render=function(e){if(this.rendered||this.destroyed)return this;var t=this,n=this.options,r=this.cache,a=this.elements,s=n.content.text,l=n.content.title,p=n.content.button,d=n.position,h=[];return o.attr(this.target[0],"aria-describedby",this._id),r.posClass=this._createPosClass((this.position={my:d.my,at:d.at}).my),this.tooltip=a.tooltip=o("<div/>",{id:this._id,class:[x,P,n.style.classes,r.posClass].join(" "),width:n.style.width||"",height:n.style.height||"",tracking:"mouse"===d.target&&d.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":u,"aria-describedby":this._id+"-content","aria-hidden":c}).toggleClass(I,this.disabled).attr(T,this.id).data(x,this).appendTo(d.container).append(a.content=o("<div />",{class:x+"-content",id:this._id+"-content","aria-atomic":c})),this.rendered=-1,this.positioning=c,l&&(this._createTitle(),o.isFunction(l)||h.push(this._updateTitle(l,u))),p&&this._createButton(),o.isFunction(s)||h.push(this._updateContent(s,u)),this.rendered=c,this._setWidget(),o.each(k,function(e){var n;"render"===this.initialize&&(n=this(t))&&(t.plugins[e]=n)}),this._unassignEvents(),this._assignEvents(),this._when(h).then(function(){t._trigger("render"),t.positioning=u,t.hiddenDuringWait||!n.show.ready&&!e||t.toggle(c,r.event,u),t.hiddenDuringWait=u}),i.api[this.id]=this,this},r.destroy=function(e){if(this.destroyed)return this.target;function t(){if(!this.destroyed){this.destroyed=c;var e,t=this.target,n=t.attr(L);for(e in this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),o.each(this.plugins,function(){this.destroy&&this.destroy()}),this.timers)this.timers.hasOwnProperty(e)&&clearTimeout(this.timers[e]);t.removeData(x).removeAttr(T).removeAttr(S).removeAttr("aria-describedby"),this.options.suppress&&n&&t.attr("title",n).removeAttr(L),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=p,delete i.api[this.id]}}return e===c&&"hide"!==this.triggering||!this.rendered?t.call(this):(this.tooltip.one("tooltiphidden",o.proxy(t,this)),!this.triggering&&this.hide()),this.target},s=r.checks={builtin:{"^id$":function(e,t,n,r){var a=n===c?i.nextid:n,s=x+"-"+a;a!==u&&a.length>0&&!o("#"+s).length?(this._id=s,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):e[t]=r},"^prerender":function(e,t,n){n&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(e,t,n){this._updateContent(n)},"^content.attr$":function(e,t,n,o){this.options.content.text===this.target.attr(o)&&this._updateContent(this.target.attr(n))},"^content.title$":function(e,t,n){if(!n)return this._removeTitle();n&&!this.elements.title&&this._createTitle(),this._updateTitle(n)},"^content.button$":function(e,t,n){this._updateButton(n)},"^content.title.(text|button)$":function(e,t,n){this.set("content."+t,n)},"^position.(my|at)$":function(e,t,n){"string"==typeof n&&(this.position[t]=e[t]=new a(n,"at"===t))},"^position.container$":function(e,t,n){this.rendered&&this.tooltip.appendTo(n)},"^show.ready$":function(e,t,n){n&&(!this.rendered&&this.render(c)||this.toggle(c))},"^style.classes$":function(e,t,n,o){this.rendered&&this.tooltip.removeClass(o).addClass(n)},"^style.(width|height)":function(e,t,n){this.rendered&&this.tooltip.css(t,n)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(e,t,n){this.rendered&&this.tooltip.toggleClass(P,!!n)},"^events.(render|show|move|hide|focus|blur)$":function(e,t,n){this.rendered&&this.tooltip[(o.isFunction(n)?"":"un")+"bind"]("tooltip"+t,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var e=this.options.position;this.tooltip.attr("tracking","mouse"===e.target&&e.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},r.get=function(e){if(this.destroyed)return this;var t=q(this.options,e.toLowerCase()),n=t[0][t[1]];return n.precedance?n.string():n};var $=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,H=/^prerender|show\.ready/i;r.set=function(e,t){if(this.destroyed)return this;var n,i=this.rendered,r=u,a=this.options;return"string"==typeof e?(n=e,(e={})[n]=t):e=o.extend({},e),o.each(e,function(t,n){if(i&&H.test(t))delete e[t];else{var s,l=q(a,t.toLowerCase());s=l[0][l[1]],l[0][l[1]]=n&&n.nodeType?o(n):n,r=$.test(t)||r,e[t]=[l[0],l[1],n,s]}}),V(a),this.positioning=c,o.each(e,o.proxy(B,this)),this.positioning=u,this.rendered&&this.tooltip[0].offsetWidth>0&&r&&this.reposition("mouse"===a.position.target?p:this.cache.event),this},r._update=function(e,t){var n=this,i=this.cache;return this.rendered&&e?(o.isFunction(e)&&(e=e.call(this.elements.target,i.event,this)||""),o.isFunction(e.then)?(i.waiting=c,e.then(function(e){return i.waiting=u,n._update(e,t)},p,function(e){return n._update(e,t)})):e===u||!e&&""!==e?u:(e.jquery&&e.length>0?t.empty().append(e.css({display:"block",visibility:"visible"})):t.html(e),this._waitForContent(t).then(function(e){n.rendered&&n.tooltip[0].offsetWidth>0&&n.reposition(i.event,!e.length)}))):u},r._waitForContent=function(e){var t=this.cache;return t.waiting=c,(o.fn.imagesLoaded?e.imagesLoaded():(new o.Deferred).resolve([])).done(function(){t.waiting=u}).promise()},r._updateContent=function(e,t){this._update(e,this.elements.content,t)},r._updateTitle=function(e,t){this._update(e,this.elements.title,t)===u&&this._removeTitle(u)},r._createTitle=function(){var e=this.elements,t=this._id+"-title";e.titlebar&&this._removeTitle(),e.titlebar=o("<div />",{class:x+"-titlebar "+(this.options.style.widget?W("header"):"")}).append(e.title=o("<div />",{id:t,class:x+"-title","aria-atomic":c})).insertBefore(e.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(e){o(this).toggleClass("ui-state-active ui-state-focus","down"===e.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(e){o(this).toggleClass("ui-state-hover","mouseover"===e.type)}),this.options.content.button&&this._createButton()},r._removeTitle=function(e){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=p,e!==u&&this.reposition())},r._createPosClass=function(e){return x+"-pos-"+(e||this.options.position.my).abbrev()},r.reposition=function(n,i){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=c;var r,a,s,l,p=this.cache,d=this.tooltip,h=this.options.position,f=h.target,m=h.my,_=h.at,x=h.viewport,S=h.container,T=h.adjust,E=T.method.split(" "),C=d.outerWidth(u),O=d.outerHeight(u),A=0,P=0,N=d.css("position"),R={left:0,top:0},I=d[0].offsetWidth>0,D=n&&"scroll"===n.type,L=o(e),U=S[0].ownerDocument,j=this.mouse;if(o.isArray(f)&&2===f.length)_={x:y,y:g},R={left:f[0],top:f[1]};else if("mouse"===f)_={x:y,y:g},(!T.mouse||this.options.hide.distance)&&p.origin&&p.origin.pageX?n=p.origin:!n||n&&("resize"===n.type||"scroll"===n.type)?n=p.event:j&&j.pageX&&(n=j),"static"!==N&&(R=S.offset()),U.body.offsetWidth!==(e.innerWidth||U.documentElement.clientWidth)&&(a=o(t.body).offset()),R={left:n.pageX-R.left+(a&&a.left||0),top:n.pageY-R.top+(a&&a.top||0)},T.mouse&&D&&j&&(R.left-=(j.scrollX||0)-L.scrollLeft(),R.top-=(j.scrollY||0)-L.scrollTop());else{if("event"===f?n&&n.target&&"scroll"!==n.type&&"resize"!==n.type?p.target=o(n.target):n.target||(p.target=this.elements.target):"event"!==f&&(p.target=o(f.jquery?f:this.elements.target)),f=p.target,0===(f=o(f).eq(0)).length)return this;f[0]===t||f[0]===e?(A=M.iOS?e.innerWidth:f.width(),P=M.iOS?e.innerHeight:f.height(),f[0]===e&&(R={top:(x||f).scrollTop(),left:(x||f).scrollLeft()})):k.imagemap&&f.is("area")?r=k.imagemap(this,f,_,k.viewport?E:u):k.svg&&f&&f[0].ownerSVGElement?r=k.svg(this,f,_,k.viewport?E:u):(A=f.outerWidth(u),P=f.outerHeight(u),R=f.offset()),r&&(A=r.width,P=r.height,a=r.offset,R=r.position),R=this.reposition.offset(f,R,S),(M.iOS>3.1&&M.iOS<4.1||M.iOS>=4.3&&M.iOS<4.33||!M.iOS&&"fixed"===N)&&(R.left-=L.scrollLeft(),R.top-=L.scrollTop()),(!r||r&&r.adjustable!==u)&&(R.left+=_.x===b?A:_.x===w?A/2:0,R.top+=_.y===v?P:_.y===w?P/2:0)}return R.left+=T.x+(m.x===b?-C:m.x===w?-C/2:0),R.top+=T.y+(m.y===v?-O:m.y===w?-O/2:0),k.viewport?(s=R.adjusted=k.viewport(this,R,h,A,P,C,O),a&&s.left&&(R.left+=a.left),a&&s.top&&(R.top+=a.top),s.my&&(this.position.my=s.my)):R.adjusted={left:0,top:0},p.posClass!==(l=this._createPosClass(this.position.my))&&(p.posClass=l,d.removeClass(p.posClass).addClass(l)),this._trigger("move",[R,x.elem||x],n)?(delete R.adjusted,i===u||!I||isNaN(R.left)||isNaN(R.top)||"mouse"===f||!o.isFunction(h.effect)?d.css(R):o.isFunction(h.effect)&&(h.effect.call(d,this,o.extend({},R)),d.queue(function(e){o(this).css({opacity:"",height:""}),M.ie&&this.style.removeAttribute("filter"),e()})),this.positioning=u,this):this},r.reposition.offset=function(e,n,i){if(!i[0])return n;var r,a,s,l,c=o(e[0].ownerDocument),u=!!M.ie&&"CSS1Compat"!==t.compatMode,p=i[0];function d(e,t){n.left+=t*e.scrollLeft(),n.top+=t*e.scrollTop()}do{"static"!==(a=o.css(p,"position"))&&("fixed"===a?(s=p.getBoundingClientRect(),d(c,-1)):((s=o(p).position()).left+=parseFloat(o.css(p,"borderLeftWidth"))||0,s.top+=parseFloat(o.css(p,"borderTopWidth"))||0),n.left-=s.left+(parseFloat(o.css(p,"marginLeft"))||0),n.top-=s.top+(parseFloat(o.css(p,"marginTop"))||0),r||"hidden"===(l=o.css(p,"overflow"))||"visible"===l||"BODY"===o.prop(p,"tagName")||(r=o(p)))}while(p=p.offsetParent);return r&&(r[0]!==c[0]||u)&&d(r,1),n};var z=(a=r.reposition.Corner=function(e,t){e=(""+e).replace(/([A-Z])/," $1").replace(/middle/gi,w).toLowerCase(),this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(e.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!t;var n=e.charAt(0);this.precedance="t"===n||"b"===n?h:d}).prototype;function W(e){return E.concat("").join(e?"-"+e+" ":" ")}function K(e,t){if(t>0)return setTimeout(o.proxy(e,this),t);e.call(this)}function G(e){this.tooltip.hasClass(I)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=K.call(this,function(){this.toggle(c,e)},this.options.show.delay))}function Y(e){if(!this.tooltip.hasClass(I)&&!this.destroyed){var t=o(e.relatedTarget),n=t.closest(C)[0]===this.tooltip[0],i=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&"mouse"===this.options.position.target&&n||this.options.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(n||i))try{e.preventDefault(),e.stopImmediatePropagation()}catch(e){}else this.timers.hide=K.call(this,function(){this.toggle(u,e)},this.options.hide.delay,this)}}function J(e){!this.tooltip.hasClass(I)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=K.call(this,function(){this.hide(e)},this.options.hide.inactive))}function Q(e){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(e)}function X(e,n,r){o(t.body).delegate(e,(n.split?n:n.join("."+x+" "))+"."+x,function(){var e=i.api[o.attr(this,T)];e&&!e.disabled&&r.apply(e,arguments)})}z.invert=function(e,t){this[e]=this[e]===y?b:this[e]===b?y:t||this[e]},z.string=function(e){var t=this.x,n=this.y,o=t!==n?"center"===t||"center"!==n&&(this.precedance===h||this.forceY)?[n,t]:[t,n]:[t];return!1!==e?o.join(" "):o},z.abbrev=function(){var e=this.string(!1);return e[0].charAt(0)+(e[1]&&e[1].charAt(0)||"")},z.clone=function(){return new a(this.string(),this.forceY)},r.toggle=function(e,n){var i=this.cache,r=this.options,a=this.tooltip;if(n){if(/over|enter/.test(n.type)&&i.event&&/out|leave/.test(i.event.type)&&r.show.target.add(n.target).length===r.show.target.length&&a.has(n.relatedTarget).length)return this;i.event=o.event.fix(n)}if(this.waiting&&!e&&(this.hiddenDuringWait=c),!this.rendered)return e?this.render(1):this;if(this.destroyed||this.disabled)return this;var s,d,h,f=e?"show":"hide",m=this.options[f],g=this.options.position,y=this.options.content,v=this.tooltip.css("width"),b=this.tooltip.is(":visible"),w=e||1===m.target.length,_=!n||m.target.length<2||i.target[0]===n.target;return(typeof e).search("boolean|number")&&(e=!b),d=(s=!a.is(":animated")&&b===e&&_)?p:!!this._trigger(f,[90]),this.destroyed||(d!==u&&e&&this.focus(n),!d||s||(o.attr(a[0],"aria-hidden",!e),e?(this.mouse&&(i.origin=o.event.fix(this.mouse)),o.isFunction(y.text)&&this._updateContent(y.text,u),o.isFunction(y.title)&&this._updateTitle(y.title,u),!l&&"mouse"===g.target&&g.adjust.mouse&&(o(t).bind("mousemove."+x,this._storeMouse),l=c),v||a.css("width",a.outerWidth(u)),this.reposition(n,arguments[2]),v||a.css("width",""),m.solo&&("string"==typeof m.solo?o(m.solo):o(C,m.solo)).not(a).not(m.target).qtip("hide",new o.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete i.origin,l&&!o(C+'[tracking="true"]:visible',m.solo).not(a).length&&(o(t).unbind("mousemove."+x),l=u),this.blur(n)),h=o.proxy(function(){e?(M.ie&&a[0].style.removeAttribute("filter"),a.css("overflow",""),"string"==typeof m.autofocus&&o(this.options.show.autofocus,a).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):a.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(e?"visible":"hidden")},this),m.effect===u||w===u?(a[f](),h()):o.isFunction(m.effect)?(a.stop(1,1),m.effect.call(a,this),a.queue("fx",function(e){h(),e()})):a.fadeTo(90,e?1:0,h),e&&m.target.trigger("qtip-"+this.id+"-inactive"))),this},r.show=function(e){return this.toggle(c,e)},r.hide=function(e){return this.toggle(u,e)},r.focus=function(e){if(!this.rendered||this.destroyed)return this;var t=o(C),n=this.tooltip,r=parseInt(n[0].style.zIndex,10),a=i.zindex+t.length;return n.hasClass(N)||this._trigger("focus",[a],e)&&(r!==a&&(t.each(function(){this.style.zIndex>r&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+N).qtip("blur",e)),n.addClass(N)[0].style.zIndex=a),this},r.blur=function(e){return!this.rendered||this.destroyed||(this.tooltip.removeClass(N),this._trigger("blur",[this.tooltip.css("zIndex")],e)),this},r.disable=function(e){return this.destroyed||("toggle"===e?e=!(this.rendered?this.tooltip.hasClass(I):this.disabled):"boolean"!=typeof e&&(e=c),this.rendered&&this.tooltip.toggleClass(I,e).attr("aria-disabled",e),this.disabled=!!e),this},r.enable=function(){return this.disable(u)},r._createButton=function(){var e=this,t=this.elements,n=t.tooltip,i=this.options.content.button,r="string"==typeof i?i:"Close tooltip";t.button&&t.button.remove(),i.jquery?t.button=i:t.button=o("<a />",{class:"qtip-close "+(this.options.style.widget?"":x+"-icon"),title:r,"aria-label":r}).prepend(o("<span />",{class:"ui-icon ui-icon-close",html:"&times;"})),t.button.appendTo(t.titlebar||n).attr("role","button").click(function(t){return n.hasClass(I)||e.hide(t),u})},r._updateButton=function(e){if(!this.rendered)return u;var t=this.elements.button;e?this._createButton():t.remove()},r._setWidget=function(){var e=this.options.style.widget,t=this.elements,n=t.tooltip,o=n.hasClass(I);n.removeClass(I),I=e?"ui-state-disabled":"qtip-disabled",n.toggleClass(I,o),n.toggleClass("ui-helper-reset "+W(),e).toggleClass(P,this.options.style.def&&!e),t.content&&t.content.toggleClass(W("content"),e),t.titlebar&&t.titlebar.toggleClass(W("header"),e),t.button&&t.button.toggleClass(x+"-icon",!e)},r._storeMouse=function(e){return(this.mouse=o.event.fix(e)).type="mousemove",this},r._bind=function(e,t,n,i,r){if(e&&n&&t.length){var a="."+this._id+(i?"-"+i:"");return o(e).bind((t.split?t:t.join(a+" "))+a,o.proxy(n,r||this)),this}},r._unbind=function(e,t){return e&&o(e).unbind("."+this._id+(t?"-"+t:"")),this},r._trigger=function(e,t,n){var i=new o.Event("tooltip"+e);return i.originalEvent=n&&o.extend({},n)||this.cache.event||p,this.triggering=e,this.tooltip.trigger(i,[this].concat(t||[])),this.triggering=u,!i.isDefaultPrevented()},r._bindEvents=function(e,t,n,i,r,a){var s=n.filter(i).add(i.filter(n)),l=[];s.length&&(o.each(t,function(t,n){var i=o.inArray(n,e);i>-1&&l.push(e.splice(i,1)[0])}),l.length&&(this._bind(s,l,function(e){(this.rendered&&this.tooltip[0].offsetWidth>0?a:r).call(this,e)}),n=n.not(s),i=i.not(s))),this._bind(n,e,r),this._bind(i,t,a)},r._assignInitialEvents=function(e){var t=this.options,n=t.show.target,i=t.hide.target,r=t.show.event?o.trim(""+t.show.event).split(" "):[],a=t.hide.event?o.trim(""+t.hide.event).split(" "):[];function s(e){if(this.disabled||this.destroyed)return u;this.cache.event=e&&o.event.fix(e),this.cache.target=e&&o(e.target),clearTimeout(this.timers.show),this.timers.show=K.call(this,function(){this.render("object"==typeof e||t.show.ready)},t.prerender?0:t.show.delay)}this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(t.show.event)&&!/mouse(out|leave)/i.test(t.hide.event)&&a.push("mouseleave"),this._bind(n,"mousemove",function(e){this._storeMouse(e),this.cache.onTarget=c}),this._bindEvents(r,a,n,i,s,function(){if(!this.timers)return u;clearTimeout(this.timers.show)}),(t.show.ready||t.prerender)&&s.call(this,e)},r._assignEvents=function(){var n=this,r=this.options,a=r.position,s=this.tooltip,l=r.show.target,c=r.hide.target,p=a.container,d=a.viewport,h=o(t),f=o(e),m=r.show.event?o.trim(""+r.show.event).split(" "):[],g=r.hide.event?o.trim(""+r.hide.event).split(" "):[];o.each(r.events,function(e,t){n._bind(s,"toggle"===e?["tooltipshow","tooltiphide"]:["tooltip"+e],t,null,s)}),/mouse(out|leave)/i.test(r.hide.event)&&"window"===r.hide.leave&&this._bind(h,["mouseout","blur"],function(e){/select|option/.test(e.target.nodeName)||e.relatedTarget||this.hide(e)}),r.hide.fixed?c=c.add(s.addClass(A)):/mouse(over|enter)/i.test(r.show.event)&&this._bind(c,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+r.hide.event).indexOf("unfocus")>-1&&this._bind(p.closest("html"),["mousedown","touchstart"],function(e){var t=o(e.target),n=this.rendered&&!this.tooltip.hasClass(I)&&this.tooltip[0].offsetWidth>0,i=t.parents(C).filter(this.tooltip[0]).length>0;t[0]===this.target[0]||t[0]===this.tooltip[0]||i||this.target.has(t[0]).length||!n||this.hide(e)}),"number"==typeof r.hide.inactive&&(this._bind(l,"qtip-"+this.id+"-inactive",J,"inactive"),this._bind(c.add(s),i.inactiveEvents,J)),this._bindEvents(m,g,l,c,G,Y),this._bind(l.add(s),"mousemove",function(e){if("number"==typeof r.hide.distance){var t=this.cache.origin||{},n=this.options.hide.distance,o=Math.abs;(o(e.pageX-t.pageX)>=n||o(e.pageY-t.pageY)>=n)&&this.hide(e)}this._storeMouse(e)}),"mouse"===a.target&&a.adjust.mouse&&(r.hide.event&&this._bind(l,["mouseenter","mouseleave"],function(e){if(!this.cache)return u;this.cache.onTarget="mouseenter"===e.type}),this._bind(h,"mousemove",function(e){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(I)&&this.tooltip[0].offsetWidth>0&&this.reposition(e)})),(a.adjust.resize||d.length)&&this._bind(o.event.special.resize?d:f,"resize",Q),a.adjust.scroll&&this._bind(f.add(a.container),"scroll",Q)},r._unassignEvents=function(){var n=this.options,i=n.show.target,r=n.hide.target,a=o.grep([this.elements.target[0],this.rendered&&this.tooltip[0],n.position.container[0],n.position.viewport[0],n.position.container.closest("html")[0],e,t],function(e){return"object"==typeof e});i&&i.toArray&&(a=a.concat(i.toArray())),r&&r.toArray&&(a=a.concat(r.toArray())),this._unbind(a)._unbind(a,"destroy")._unbind(a,"inactive")},o(function(){X(C,["mouseenter","mouseleave"],function(e){var t="mouseenter"===e.type,n=o(e.currentTarget),i=o(e.relatedTarget||e.target),r=this.options;t?(this.focus(e),n.hasClass(A)&&!n.hasClass(I)&&clearTimeout(this.timers.hide)):"mouse"===r.position.target&&r.position.adjust.mouse&&r.hide.event&&r.show.target&&!i.closest(r.show.target[0]).length&&this.hide(e),n.toggleClass(R,t)}),X("["+T+"]",O,J)}),i=o.fn.qtip=function(e,r,s){var l=(""+e).toLowerCase(),d=p,h=o.makeArray(arguments).slice(1),f=h[h.length-1],m=this[0]?o.data(this[0],x):p;return!arguments.length&&m||"api"===l?m:"string"==typeof e?(this.each(function(){var e=o.data(this,x);if(!e)return c;if(f&&f.timeStamp&&(e.cache.event=f),!r||"option"!==l&&"options"!==l)e[l]&&e[l].apply(e,h);else{if(s===n&&!o.isPlainObject(r))return d=e.get(r),u;e.set(r,s)}}),d!==p?d:this):"object"!=typeof e&&arguments.length?void 0:(m=V(o.extend(c,{},e)),this.each(function(e){var n,r;if(r=!(r=o.isArray(m.id)?m.id[e]:m.id)||r===u||r.length<1||i.api[r]?i.nextid++:r,(n=function(e,n,r){var s,l,d,h,f,m=o(t.body),g=e[0]===t?m:e,y=e.metadata?e.metadata(r.metadata):p,v="html5"===r.metadata.type&&y?y[r.metadata.name]:p,b=e.data(r.metadata.name||"qtipopts");try{b="string"==typeof b?o.parseJSON(b):b}catch(e){}if(l=(h=o.extend(c,{},i.defaults,r,"object"==typeof b?V(b):p,V(v||y))).position,h.id=n,"boolean"==typeof h.content.text){if(d=e.attr(h.content.attr),h.content.attr===u||!d)return u;h.content.text=d}if(l.container.length||(l.container=m),l.target===u&&(l.target=g),h.show.target===u&&(h.show.target=g),h.show.solo===c&&(h.show.solo=l.container.closest("body")),h.hide.target===u&&(h.hide.target=g),h.position.viewport===c&&(h.position.viewport=l.container),l.container=l.container.eq(0),l.at=new a(l.at,c),l.my=new a(l.my),e.data(x))if(h.over
vendor: 4,735 bytes, line 2
2write)e.qtip("destroy",!0);else if(h.overwrite===u)return u;return e.attr(S,n),h.suppress&&(f=e.attr("title"))&&e.removeAttr("title").attr(L,f).attr("title",""),s=new U(e,h,n,!!d),e.data(x,s),s}(o(this),r,m))===u)return c;i.api[r]=n,o.each(k,function(){"initialize"===this.initialize&&this(n)}),n._assignInitialEvents(f)}))},o.qtip=U,i.api={},o.each({attr:function(e,t){if(this.length){var n=this[0],i="title",r=o.data(n,"qtip");if(e===i&&r&&r.options&&"object"==typeof r&&"object"==typeof r.options&&r.options.suppress)return arguments.length<2?o.attr(n,L):(r&&r.options.content.attr===i&&r.cache.attr&&r.set("content.text",t),this.attr(L,t))}return o.fn["attr"+D].apply(this,arguments)},clone:function(e){var t=o.fn["clone"+D].apply(this,arguments);return e||t.filter("["+L+"]").attr("title",function(){return o.attr(this,L)}).removeAttr(L),t}},function(e,t){if(!t||o.fn[e+D])return c;var n=o.fn[e+D]=o.fn[e];o.fn[e]=function(){return t.apply(this,arguments)||n.apply(this,arguments)}}),o.ui||(o["cleanData"+D]=o.cleanData,o.cleanData=function(e){for(var t,n=0;(t=o(e[n])).length;n++)if(t.attr(S))try{t.triggerHandler("removeqtip")}catch(e){}o["cleanData"+D].apply(this,arguments)}),i.version="3.0.3-5-g",i.nextid=0,i.inactiveEvents=O,i.zindex=15e3,i.defaults={prerender:u,id:u,overwrite:c,suppress:c,content:{text:c,attr:"title",title:u,button:u},position:{my:"top left",at:"bottom right",target:u,container:u,viewport:u,adjust:{x:0,y:0,mouse:c,scroll:c,resize:c,method:"flipinvert flipinvert"},effect:function(e,t){o(this).animate(t,{duration:200,queue:u})}},show:{target:u,event:"mouseenter",effect:c,delay:90,solo:u,ready:u,autofocus:u},hide:{target:u,event:"mouseleave",effect:c,delay:0,fixed:u,inactive:u,leave:"window",distance:u},style:{classes:"",widget:u,width:u,height:u,def:c},events:{render:p,move:p,show:p,hide:p,toggle:p,visible:p,hidden:p,focus:p,blur:p}};var Z,ee,te,ne,oe,ie="margin",re="border",ae="color",se="background-color",le="transparent",ce=" !important",ue=!!t.createElement("canvas").getContext,pe=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;function de(e){return e.charAt(0).toUpperCase()+e.slice(1)}var he,fe={},me=["Webkit","O","Moz","ms"];function ge(e,t){return Math.ceil(parseFloat(function(e,t){var o,i,r=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+me.join(r+" ")+r).split(" "),s=0;if(fe[t])return e.css(fe[t]);for(;o=a[s++];)if((i=e.css(o))!==n)return fe[t]=o,i}(e,t)))}function ye(e,t){this._ns="tip",this.options=t,this.offset=t.offset,this.size=[t.width,t.height],this.qtip=e,this.init(e)}ue?(ne=e.devicePixelRatio||1,oe=(he=t.createElement("canvas").getContext("2d")).backingStorePixelRatio||he.webkitBackingStorePixelRatio||he.mozBackingStorePixelRatio||he.msBackingStorePixelRatio||he.oBackingStorePixelRatio||1,te=ne/oe):ee=function(e,t,n){return"<qtipvml:"+e+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(n||"")+'" />'},o.extend(ye.prototype,{init:function(e){var t,n;n=this.element=e.elements.tip=o("<div />",{class:x+"-tip"}).prependTo(e.tooltip),ue?((t=o("<canvas />").appendTo(this.element)[0].getContext("2d")).lineJoin="miter",t.miterLimit=1e5,t.save()):(t=ee("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(t+t),e._bind(o("*",n).add(n),["click","mousedown"],function(e){e.stopPropagation()},this._ns)),e._bind(e.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(e){var t=this.qtip.elements.titlebar;return t&&(e.y===g||e.y===w&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(c))},_parseCorner:function(e){var t=this.qtip.options.position.my;return e===u||t===u?e=u:e===c?e=new a(t.string()):e.string||((e=new a(e)).fixed=c),e},_parseWidth:function(e,t,n){var o=this.qtip.elements,i=re+de(t)+"Width";return(n?ge(n,i):ge(o.content,i)||ge(this._useTitle(e)&&o.titlebar||o.content,i)||ge(o.tooltip,i))||0},_parseRadius:function(e){var t=this.qtip.elements,n=re+de(e.y)+de(e.x)+"Radius";return M.ie<9?0:ge(this._useTitle(e)&&t.titlebar||t.content,n)||ge(t.tooltip,n)||0},_invalidColour:function(e,t,n){var o=e.css(t);return!o||n&&o===e.css(n)||pe.test(o)?u:o},_parseColours:function(e){var t=this.qtip.elements,n=this.element.css("cssText",""),i=re+de(e[e.precedance])+de(ae),r=this._useTitle(e)&&t.titlebar||t.content,a=this._invalidColour,s=[];return s[0]=a(n,se)||a(r,se)||a(t.content,se)||a(t.tooltip,se)||n.css(se),s[1]=a(n,i,ae)||a(r,i,ae)||a(t.content,i,ae)||a(t.tooltip,i,ae)||t.tooltip.css(i),o("*",n).add(n).css("cssText",se+":"+le+ce+";
2"+re+":0"+ce+";"),s},_calculateSize:function(e){var t,n,o=e.precedance===h,i=this.options.width,r=this.options.height,a="c"===e.abbrev(),s=(o?i:r)*(a?.5:1),l=Math.pow,c=Math.round,u=Math.sqrt(l(s,2)+l(r,2)),p=[this.border/s*u,this.border/r*u];return p[2]=Math.sqrt(l(p[0],2)-l(this.border,2)),p[3]=Math.sqrt(l(p[1],2)-l(this.border,2)),n=[c((t=(u+p[2]+p[3]+(a?0:p[0]))/u)*i),c(t*r)],o?n:n.reverse()},_calculateTip:function(e,t,n){n=n||1;var o=(t=t||this.size)[0]*n,i=t[1]*n,r=Math.ceil(o/2),a=Math.ceil(i/2),s={br:[0,0,o,i,o,0],bl:[0,0,o,0,0,i],tr:[0,i,o,0,o,i],tl:[0,0,0,i,o,i],tc:[0,i,r,0,o,i],bc:[0,0,o,0,r,i],rc:[0,0,o,a,0,i],lc:[o,0,o,i,0,a]};return s.lt=s.br,s.rt=s.bl,s.lb=s.tr,s.rb=s.tl,s[e.abbrev()]},_drawCoords:function(e,t){e.beginPath(),e.moveTo(t[0],t[1]),e.lineTo(t[2],t[3]),e.lineTo(t[4],t[5]),e.closePath()},create:function(){var e=this.corner=(ue||M.ie)&&this._parseCorner(this.options.corner);return this.enabled=!!this.corner&&"c"!==this.corner.abbrev(),this.enabled&&(this.qtip.cache.corner=e.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,n){if(!this.enabled)return this;var i,r,s,l,p,_,k,x,S=this.qtip.elements,T=this.element,E=T.children(),C=this.options,O=this.size,A=C.mimic,P=Math.round;t||(t=this.qtip.cache.corner||this.corner),A===u?A=t:((A=new a(A)).precedance=t.precedance,"inherit"===A.x?A.x=t.x:"inherit"===A.y?A.y=t.y:A.x===A.y&&(A[t.precedance]=t[t.precedance])),r=A.precedance,t.precedance===d?this._swapDimensions():this._resetDimensions(),(i=this.color=this._parseColours(t))[1]!==le?(x=this.border=this._parseWidth(t,t[t.precedance]),C.border&&x<1&&!pe.test(i[1])&&(i[0]=i[1]),this.border=x=C.border!==c?C.border:x):this.border=x=0,k=this.size=this._calculateSize(t),T.css({width:k[0],height:k[1],lineHeight:k[1]+"px"}),_=t.precedance===h?[P(A.x===y?x:A.x===b?k[0]-O[0]-x:(k[0]-O[0])/2),P(A.y===g?k[1]-O[1]:0)]:[P(A.x===y?k[0]-O[0]:0),P(A.y===g?x:A.y===v?k[1]-O[1]-x:(k[1]-O[1])/2)],ue?((s=E[0].getContext("2d")).restore(),s.save(),s.clearRect(0,0,6e3,6e3),l=this._calculateTip(A,O,te),p=this._calculateTip(A,this.size,te),E.attr(f,k[0]*te).attr(m,k[1]*te),E.css(f,k[0]).css(m,k[1]),this._drawCoords(s,p),s.fillStyle=i[1],s.fill(),s.translate(_[0]*te,_[1]*te),this._drawCoords(s,l),s.fillStyle=i[0],s.fill()):(l="m"+(l=this._calculateTip(A))[0]+","+l[1]+" l"+l[2]+","+l[3]+" "+l[4]+","+l[5]+" xe",_[2]=x&&/^(r|b)/i.test(t.string())?8===M.ie?2:1:0,E.css({coordsize:k[0]+x+" "+k[1]+x,antialias:""+(A.string().indexOf(w)>-1),left:_[0]-_[2]*Number(r===d),top:_[1]-_[2]*Number(r===h),width:k[0]+x,height:k[1]+x}).each(function(e){var t=o(this);t[t.prop?"prop":"attr"]({coordsize:k[0]+x+" "+k[1]+x,path:l,fillcolor:i[0],filled:!!e,stroked:!e}).toggle(!(!x&&!e)),!e&&t.html(ee("stroke",'weight="'+2*x+'px" color="'+i[1]+'" miterlimit="1000" joinstyle="miter"'))})),e.opera&&setTimeout(function(){S.tip.css({display:"inline-block",visibility:"visible"})},1),n!==u&&this.calculate(t,k)},calculate:function(e,t){if(!this.enabled)return u;var n,i,r=this,a=this.qtip.elements,s=this.element,l=this.options.offset,c={};return e=e||this.corner,n=e.precedance,t=t||this._calculateSize(e),i=[e.x,e.y],n===d&&i.reverse(),o.each(i,function(o,i){var s,u,p;i===w?(c[s=n===h?y:g]="50%",c[ie+"-"+s]=-Math.round(t[n===h?0:1]/2)+l):(s=r._parseWidth(e,i,a.tooltip),u=r._parseWidth(e,i,a.content),p=r._parseRadius(e),c[i]=Math.max(-r.border,o?u:l+(p>s?p:-s)))}),c[e[n]]-=t[n===d?0:1],s.css({margin:"",top:"",bottom:"",left:"",right:""}).css(c),c},reposition:function(e,t,o){if(this.enabled){var i,r,a=t.cache,s=this.corner.clone(),l=o.adjusted,p=t.options.position.adjust.method.split(" "),f=p[0],m=p[1]||p[0],k={left:u,top:u,x:0,y:0},x={};this.corner.fixed!==c&&(S(f,d,h,y,b),S(m,h,d,g,v),s.string()===a.corner.string()&&a.cornerTop===l.top&&a.cornerLeft===l.left||this.update(s,u)),(i=this.calculate(s)).right!==n&&(i.left
vendor: 8,551 bytes, line 2
2=-i.right),i.bottom!==n&&(i.top=-i.bottom),i.user=this.offset,k.left=f===_&&!!l.left,k.left&&T(d,y,b),k.top=m===_&&!!l.top,k.top&&T(h,g,v),this.element.css(x).toggle(!(k.x&&k.y||s.x===w&&k.y||s.y===w&&k.x)),o.left-=i.left.charAt?i.user:f!==_||k.top||!k.left&&!k.top?i.left+this.border:0,o.top-=i.top.charAt?i.user:m!==_||k.left||!k.left&&!k.top?i.top+this.border:0,a.cornerLeft=l.left,a.cornerTop=l.top,a.corner=s.clone()}function S(e,t,n,o,i){e===_&&s.precedance===t&&l[o]&&s[n]!==w?s.precedance=s.precedance===d?h:d:e!==_&&l[o]&&(s[t]=s[t]===w?l[o]>0?o:i:s[t]===o?i:o)}function T(e,t,a){s[e]===w?x[ie+"-"+t]=k[e]=i[ie+"-"+t]-l[t]:(r=i[a]!==n?[l[t],-i[t]]:[-l[t],i[t]],(k[e]=Math.max(r[0],r[1]))>r[0]&&(o[t]-=l[t],k[t]=u),x[i[a]!==n?a:t]=k[e])}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),(Z=k.tip=function(e){return new ye(e,e.options.style.tip)}).initialize="render",Z.sanitize=function(e){if(e.style&&"tip"in e.style){var t=e.style.tip;"object"!=typeof t&&(t=e.style.tip={corner:t}),/string|boolean/i.test(typeof t.corner)||(t.corner=c)}},s.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(e){this.size=[e.width,e.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},o.extend(c,i.defaults,{style:{tip:{corner:c,mimic:u,width:6,height:6,border:c,offset:0}}});var ve,be,we="qtip-modal",_e="."+we;function ke(e,t){this.options=t,this._ns="-modal",this.qtip=e,this.init(e)}be=function(){var e,n,i,r=this,a={};function s(e){a.length<1&&e.length?e.not("body").blur():a.first().focus()}function l(t){if(i.is(":visible")){var n=o(t.target),r=e.tooltip,a=n.closest(C);(a.length<1?u:parseInt(a[0].style.zIndex,10)>parseInt(r[0].style.zIndex,10))||n.closest(C)[0]===r[0]||s(n)}}o.extend(r,{init:function(){return i=r.elem=o("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return u}}).hide(),o(t.body).bind("focusin"+_e,l),o(t).bind("keydown"+_e,function(t){e&&e.options.show.modal.escape&&27===t.keyCode&&e.hide(t)}),i.bind("click"+_e,function(t){e&&e.options.show.modal.blur&&e.hide(t)}),r},update:function(t){e=t,a=t.options.show.modal.stealfocus!==u?t.tooltip.find("*").filter(function(){return function(e){if(o.expr[":"].focusable)return o.expr[":"].focusable;var t,n,i,r=!isNaN(o.attr(e,"tabindex")),a=e.nodeName&&e.nodeName.toLowerCase();return"area"===a?(n=(t=e.parentNode).name,!(!e.href||!n||"map"!==t.nodeName.toLowerCase())&&!!(i=o("img[usemap=#"+n+"]")[0])&&i.is(":visible")):/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a&&e.href||r}(this)}):[]},toggle:function(a,l,d){var h=a.tooltip,f=a.options.show.modal,m=f.effect,g=l?"show":"hide",y=i.is(":visible"),v=o(_e).filter(":visible:not(:animated)").not(h);return r.update(a),l&&f.stealfocus!==u&&s(o(":focus")),i.toggleClass("blurs",f.blur),l&&i.appendTo(t.body),i.is(":animated")&&y===l&&n!==u||!l&&v.length||(i.stop(c,u),o.isFunction(m)?m.call(i,l):m===u?i[g]():i.fadeTo(parseInt(d,10)||90,l?1:0,function(){l||i.hide()}),l||i.queue(function(e){i.css({left:"",top:""}),o(_e).length||i.detach(),e()}),n=l,e.destroyed&&(e=p)),r}}),r.init()},be=new be,o.extend(ke.prototype,{init:function(e){var t=e.tooltip;if(!this.options.on)return this;e.elements.overlay=be.elem,t.addClass(we).css("z-index",i.modal_zindex+o(_e).length),e._bind(t,["tooltipshow","tooltiphide"],function(e,n,i){var r=e.originalEvent;if(e.target===t[0])if(r&&"tooltiphide"===e.type&&/mouse(leave|enter)/.test(r.type)&&o(r.relatedTarget).closest(be.elem[0]).length)try{e.preventDefault()}catch(e){}else(!r||r&&"tooltipsolo"!==r.type)&&this.toggle(e,"tooltipshow"===e.type,i)},this._ns,this),e._bind(t,"tooltipfocus",function(e,n){if(!e.isDefaultPrevented()&&e.target===t[0]){var r=o(_e),a=i.modal_zindex+r.length,s=parseInt(t[0].style.zIndex,10);be.elem[0].style.zIndex=a-1,r.each(function(){this.style.zIndex>s&&(this.style.zIndex-=1)}),r.filter("."+N).qtip("blur",e.originalEvent),t.addClass(N)[0].style.zIndex=a,be.update(n);try{e.preventDefault()}catch(e){}}},this._ns,this),e._bind(t,"tooltiphide",function(e){e.target===t[0]&&o(_e).filter(":visible").not(t).last().qtip("focus",e)},this._ns,this)},toggle:function(e,t,n){if(e&&e.isDefaultPrevented())return this;be.toggle(this.qtip,!!t,n)},destroy:function(){this.qtip.tooltip.removeClass(we),this.qtip._unbind(this.qtip.tooltip,this._ns),be.toggle(this.qtip,u),delete this.qtip.elements.overlay}}),(ve=k.modal=function(e){return new ke(e,e.options.show.modal)}).sanitize=function(e){e.show&&("object"!=typeof e.show.modal?e.show.modal={on:!!e.show.modal}:void 0===e.show.modal.on&&(e.show.modal.on=c))},i.modal_zindex=i.zindex-200,ve.initialize="render",s.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},o.extend(c,i.defaults,{show:{modal:{on:u,effect:c,blur:c,stealfocus:c,escape:c}}}),k.viewport=function(n,o,i,r,a,s,l){var c,p,k,x,S,T,E,C,O=i.target,A=n.elements.tooltip,P=i.my,N=i.at,R=i.adjust,I=R.method.split(" "),D=I[0],L=I[1]||I[0],M=i.viewport,U=i.container,j={left:0,top:0};if(!M.jquery||O[0]===e||O[0]===t.body||"none"===R.method)return j;function F(e,t,n,i,r,a,s,l,c){var u=o[r],d=P[e],h=N[e],m=n===_,g=d===r?c:d===a?-c:-c/2,y=h===r?l:h===a?-l:-l/2,v=E[r]+C[r]-(x?0:k[r]),b=v-u,O=u+c-(s===f?S:T)-v,A=g-(P.precedance===e||d===P[t]?y:0)-(h===w?l/2:0);return m?(A=(d===r?1:-1)*g,o[r]+=b>0?b:O>0?-O:0,o[r]=Math.max(-k[r]+C[r],u-A,Math.min(Math.max(-k[r]+C[r]+(s===f?S:T),u+A),o[r],"center"===d?u-g:1e9))):(i*="flipinvert"===n?2:0,b>0&&(d!==r||O>0)?(o[r]-=A+i,p.invert(e,r)):O>0&&(d!==a||b>0)&&(o[r]-=(d===w?-A:A)+i,p.invert(e,a)),o[r]<E[r]&&-o[r]>O&&(o[r]=u,p=P.clone())),o[r]-u}return k=U.offset()||j,x="static"===U.css("position"),c="fixed"===A.css("position"),S=M[0]===e?M.width():M.outerWidth(u),T=M[0]===e?M.height():M.outerHeight(u),E={left:c?0:M.scrollLeft(),top:c?0:M.scrollTop()},C=M.offset()||j,"shift"===D&&"shift"===L||(p=P.clone()),{left:"none"!==D?F(d,h,D,R.x,y,b,f,r,s):0,top:"none"!==L?F(h,d,L,R.y,g,v,m,a,l):0,my:p}},k.polys={polygon:function(e,t){var n,o,i,r={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:u},a=0,s=[],l=1,c=1,p=0,d=0;for(a=e.length;a--;)(n=[parseInt(e[--a],10),parseInt(e[a+1],10)])[0]>r.position.right&&(r.position.right=n[0]),n[0]<r.position.left&&(r.position.left=n[0]),n[1]>r.position.bottom&&(r.position.bottom=n[1]),n[1]<r.position.top&&(r.position.top=n[1]),s.push(n);if(o=r.width=Math.abs(r.position.right-r.position.left),i=r.height=Math.abs(r.position.bottom-r.position.top),"c"===t.abbrev())r.position={left:r.position.left+r.width/2,top:r.position.top+r.height/2};else{for(;o>0&&i>0&&l>0&&c>0;)for(o=Math.floor(o/2),i=Math.floor(i/2),t.x===y?l=o:t.x===b?l=r.width-o:l+=Math.floor(o/2),t.y===g?c=i:t.y===v?c=r.height-i:c+=Math.floor(i/2),a=s.length;a--&&!(s.length<2);)p=s[a][0]-r.position.left,d=s[a][1]-r.position.top,(t.x===y&&p>=l||t.x===b&&p<=l||t.x===w&&(p<l||p>r.width-l)||t.y===g&&d>=c||t.y===v&&d<=c||t.y===w&&(d<c||d>r.height-c))&&s.splice(a,1);r.position={left:s[0][0],top:s[0][1]}}return r},rect:function(e,t,n,o){return{width:Math.abs(n-e),height:Math.abs(o-t),position:{left:Math.min(e,n),top:Math.min(t,o)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:1/4,bl:3/4,rc:2,lc:1,c:0},ellipse:function(e,t,n,o,i){var r=k.polys._angles[i.abbrev()],a=0===r?0:n*Math.cos(r*Math.PI),s=o*Math.sin(r*Math.PI);return{width:2*n-Math.abs(a),height:2*o-Math.abs(s),position:{left:e+a,top:t+s},adjustable:u}},circle:function(e,t,n,o){return k.polys.ellipse(e,t,n,n,o)}},k.svg=function(e,n,i){for(var r,a,s,l,c,p,d,h,f,m=n[0],g=o(m.ownerSVGElement),y=m.ownerDocument,v=(parseInt(n.css("stroke-width"),10)||0)/2;!m.getBBox;)m=m.parentNode;if(!m.getBBox||!m.parentNode)return u;switch(m.nodeName){case"ellipse":case"circle":h=k.polys.ellipse(m.cx.baseVal.value,m.cy.baseVal.value,(m.rx||m.r).baseVal.value+v,(m.ry||m.r).baseVal.value+v,i);break;case"line":case"polygon":case"polyline":for(h=[],p=-1,l=(d=m.points||[{x:m.x1.baseVal.value,y:m.y1.baseVal.value},{x:m.x2.baseVal.value,y:m.y2.baseVal.value}]).numberOfItems||d.length;++p<l;)c=d.getItem?d.getItem(p):d[p],h.push.apply(h,[c.x,c.y]);h=k.polys.polygon(h,i);break;default:h={width:(h=m.getBBox()).width,height:h.height,position:{left:h.x,top:h.y}}}return f=h.position,(g=g[0]).createSVGPoint&&(a=m.getScreenCTM(),(d=g.createSVGPoint()).x=f.left,d.y=f.to
2p,s=d.matrixTransform(a),f.left=s.x,f.top=s.y),y!==t&&"mouse"!==e.position.target&&(r=o((y.defaultView||y.parentWindow).frameElement).offset())&&(f.left+=r.left,f.top+=r.top),y=o(y),f.left+=y.scrollLeft(),f.top+=y.scrollTop(),h},k.imagemap=function(e,t,n){t.jquery||(t=o(t));var i,r,a,s,l,c=(t.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),p=o('img[usemap="#'+t.parent("map").attr("name")+'"]'),d=o.trim(t.attr("coords")).replace(/,$/,"").split(",");if(!p.length)return u;if("polygon"===c)s=k.polys.polygon(d,n);else{if(!k.polys[c])return u;for(a=-1,l=d.length,r=[];++a<l;)r.push(parseInt(d[a],10));s=k.polys[c].apply(this,r.concat(n))}return(i=p.offset()).left+=Math.ceil((p.outerWidth(u)-p.width())/2),i.top+=Math.ceil((p.outerHeight(u)-p.height())/2),s.position.left+=i.left,s.position.top+=i.top,s};function xe(e){this._ns="ie6",this.qtip=e,this.init(e)}o.extend(xe.prototype,{_scroll:function(){var t=this.qtip.elements.overlay;t&&(t[0].style.top=o(e).scrollTop()+"px")},init:function(n){var i=n.tooltip;o("select, object").length<1&&(this.bgiframe=n.elements.bgiframe=o('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>').appendTo(i),n._bind(i,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=o("<div/>",{id:x+"-rcontainer"}).appendTo(t.body),n.elements.overlay&&n.elements.overlay.addClass("qtipmodal-ie6fix")&&(n._bind(e,["scroll","resize"],this._scroll,this._ns,this),n._bind(i,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var e,t,n=this.qtip.tooltip,o={height:n.outerHeight(u),width:n.outerWidth(u)},i=this.qtip.plugins.tip,r=this.qtip.elements.tip;t={left:-(t=parseInt(n.css("borderLeftWidth"),10)||0),top:-t},i&&r&&(t[(e="x"===i.corner.precedance?[f,y]:[m,g])[1]]-=r[e[0]]()),this.bgiframe.css(t).css(o)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var e,t,n,o,i=this.qtip.tooltip,r=this.qtip.options.style,a=this.qtip.options.position.container;return this.qtip.drawing=1,r.height&&i.css(m,r.height),r.width?i.css(f,r.width):(i.css(f,"").appendTo(this.redrawContainer),(t=i.width())%2<1&&(t+=1),e=((n=i.css("maxWidth")||"")+(o=i.css("minWidth")||"")).indexOf("%")>-1?a.width()/100:0,t=(n=(n.indexOf("%")>-1?e:1*parseInt(n,10))||t)+(o=(o.indexOf("%")>-1?e:1*parseInt(o,10))||0)?Math.min(Math.max(t,o),n):t,i.css(f,Math.round(t)).appendTo(a)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([e,this.qtip.tooltip],this._ns)}}),(k.ie6=function(e){return 6===M.ie?new xe(e):u}).initialize="render",s.ie6={"^content|style$":function(){this.redraw()}}}(Cs())}(window,document);var fu=pc.extend({className:"okta-form-label o-form-label",attributes:{"data-se":"o-form-label"},constructor:function(e){Ss.defaults(e,{inputId:e.id}),delete e.id,pc.apply(this,arguments)},template:_s.template({0:function(e,t,n,o,i){return"<legend>"},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<label for="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"inputId")||(null!=t?a(t,"inputId"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:61},end:{line:1,column:72}}}):r)+'"></label>'},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:i,loc:{start:{line:1,column:116},end:{line:1,column:125}}}):r)},3:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:167},end:{line:1,column:178}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:i,loc:{start:{line:1,column:180},end:{line:1,column:189}}}):r)+"&nbsp;</label>"},4:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"sublabel")||(null!=t?a(t,"sublabel"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"sublabel",hash:{},data:i,loc:{start:{line:1,column:256},end:{line:1,column:268}}}):r)+"</span>"},5:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="o-form-tooltip icon-16 icon-only form-help-16" title="'+e.escapeExpression(e.lambda(null!=(r=null!=t?a(t,"tooltip"):t)?a(r,"text"):r,t))+'"></span>'},6:function(e,t,n,o,i){return"</legend>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"group"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:28}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"_isLabelView"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:28},end:{line:1,column:89}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"_isRadioOrCheckbox"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:89},end:{line:1,column:132}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"_standardLabel"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:132},end:{line:1,column:210}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"sublabel"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:210},end:{line:1,column:282}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"tooltip"):t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:282},end:{line:1,column:397}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"group"):t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:397},end:{line:1,column:426}}}))?r:"")},useData:!0}
2),getTemplateData:function(){const e={label:""};return Ss.each(["inputId","label","sublabel","tooltip","group"],function(t){e[t]=Ss.resultCtx(this.options,t,this)},this),this._isLabelView(e.label)?e._isLabelView=!0:Ss.contains(["radio","checkbox"],this.options.type)||!e.label?e._isRadioOrCheckbox=!0:e._standardLabel=!0,e.tooltip&&Ss.isString(e.tooltip)&&(e.tooltip={text:e.tooltip}),e},_isLabelView:function(e){return!Ss.isUndefined(e)&&e instanceof pc},postRender:function(){const e=this.getTemplateData();this._isLabelView(e.label)&&(this.removeChildren(),this.add(e.label,"label")),e.tooltip&&this.$(".o-form-tooltip").qtip(Ss.extend({style:{classes:"qtip-custom qtip-shadow"},position:{my:window.okta&&"dstheme"===window.okta.theme?"bottom center":"bottom left",at:"top center"},hide:{fixed:!0},show:{delay:0}},e.tooltip.options))}});function mu(e,t){e.apply(this,Ss.map(t.split(/\s+/),function(e){return this.model.get(e)},this))}function gu(e,t){Ss.isFunction(e)&&e.call(t)}var yu=pc.extend({tagName:function(){return this.options.group?"fieldset":"div"},className:function(){let e="o-form-fieldset";return this.options["label-top"]&&(e+=" o-form-label-top"),this.options.readOnly&&(e+=" o-form-read-mode"),e},attributes:function(){return{"data-se":this.options["data-se"]||"o-form-fieldset"}},constructor:function(e){e.className&&(this.inputWrapperClassName=this.className,this.optionsClassName=e.className,e.className=function(){return Ss.result(this,"inputWrapperClassName","")+" "+Ss.result(this,"optionsClassName")}),pc.apply(this,arguments),Ss.each(e.events||{},function(e,t){this.listenTo(this.model,t,e)},this),Ss.each(e.bindings||{},function(e,t){this.listenTo(this.model,Zc.changeEventString(t.split(/\s+/)),Ss.bind(mu,this,e,t))},this),Zc.applyShowWhen(this,e.showWhen),Zc.applyToggleWhen(this,e.toggleWhen),gu(e.initialize,this)},postRender:function(){Ss.each(this.options.bindings||{},mu,this),gu(this.options.render,this)},getLabel:function(){return this.size()>1?this.at(0):null},getInput:function(){return this.getInputContainer()},getInputContainer:function(){return this.at(this.size()>1?1:0)},getInputs:function(){return this.getInputContainer().toArray()},focus:function(){return this.getInput().focus()}});const vu=_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 class="o-form-title-bar" data-se="o-form-title-bar">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:75},end:{line:1,column:84}}}):r)+"</h2>"},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"title"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:192},end:{line:1,column:288}}}))?r:""},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 data-se="o-form-head" class="okta-form-title o-form-head">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:267},end:{line:1,column:276}}}):r)+"</h2>"},3:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="okta-form-subtitle o-form-explain" data-se="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:i,loc:{start:{line:1,column:385},end:{line:1,column:397}}}):r)+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=l(n,"if").call(s,null!=t?l(t,"hasReadMode"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:96}}}
2))?r:"")+'<div data-se="o-form-content" class="o-form-content '+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"layout")||(null!=t?l(t,"layout"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"layout",hash:{},data:i,loc:{start:{line:1,column:148},end:{line:1,column:158}}}):a)+' clearfix">'+(null!=(r=l(n,"unless").call(s,null!=t?l(t,"hasReadMode"):t,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:169},end:{line:1,column:299}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:299},end:{line:1,column:408}}}))?r:"")+'<div class="o-form-error-container" data-se="o-form-error-container"></div><div class="o-form-fieldset-container" data-se="o-form-fieldset-container"></div></div>'},useData:!0}),bu=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 class="o-form-head">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:24},end:{line:1,column:33}}}):r)+"</h2>"},useData:!0}),wu="auto"===sl("<div>").css({"pointer-events":"auto"})[0].style.pointerEvents;function _u(e){if(!wu&&this.$el.hasClass("o-form-saving")){const t=sl(e.currentTarget);t.css("display","none");const n=document.elementFromPoint(e.clientX,e.clientY);return t.css("display","block"),e.target=n,sl(n).trigger(e),!1}}const ku={submit:function(e){e.preventDefault(),this.__save()}};Ss.each(["click","dblclick","mousedown","mouseup"],function(e){ku[e+" .o-form-input"]=_u});const xu=function(e,t){e||(e="");let n=[];return Ss.isString(e)&&(n=e.split(" ")),n=Ss.union(n,t),n.join(" ")};var Su,Tu=pc.extend({constructor:function(e){e||(e={}),this.options=e,e.settings?this.settings=e.settings:this.settings=e.settings=new Ql,this.id=Ss.uniqueId("form"),this.tagName="form",Ss.defaults(this.events,ku),Ss.defaults(this.attributes,function(e){e||(e={});const t=e&&e.collection||{};return{method:"POST",action:Ss.result(e,"urlRoot")||Ss.result(t,"url")||window.location.pathname,"data-se":"o-form",slot:"content"}}(e.model)),this.__buttons=[],this.__errorFields={},this.__saveModelState(e.model);const t=Ss.result(this,"step");if(t){if(!this.save){const e=Ss.result(this,"totalSteps");this.save=e&&t!==e?ml.localize("oform.button.next","courage"):ml.localize("oform.button.finish","courage")}this.className=Ss.result(this,"className")+" wizard"}this.className=Ss.result(this,"className")+" o-form",this.__toolbar=this.__createToolbar(e),pc.call(this,e),Ss.each(Ss.result(this,"inputs")||[],function(e){this.__addLayoutItem(e)},this),this.add(this.__toolbar,""),this.listenTo(this.model,"change:__edit__",this.__applyMode),this.listenTo(this.model,"invalid error",Ss.throttle(function(e,t,n){this.__showErrors(e,t,!1!==n)},100,{trailing:!1})),this.listenTo(this.model,"form:resize",function(){this.trigger("resize")}),this.listenTo(this.model,"form:cancel",Ss.throttle(this.__cancel,100,{trailing:!1})),this.listenTo(this.model,"form:previous",Ss.throttle(this.__previous,100,{trailing:!1})),this.__save=Ss.throttle(this.__save,200,{trailing:!1}),this.listenTo(this.model,"form:save",function(){this.$el.submit()}),this.listenTo(this.model,"sync",function(){this.model.get("__edit__")&&this.model.set("__edit__",!1,{silent:!0}),this.__saveModelState(this.model),this.render()});let n=this.getAttribute("hasSavingState");if(this.getAttribute("autoSave")?(this.listenTo(this,"save",function(e){const t=e.save();t&&t.done&&t.done(()=>{this.trigger("saved",e)})}),Ss.isUndefined(n)&&(n=!0)):this.getAttribute("autoFetchAndSave")&&this.listenTo(this,"save",function(e){Ss.isUndefined(n)&&(n=!0),this.fetchAndSave(e)}),n){const e=this.getAttribute("customSavingState",{});this.listenTo(this.model,xu(e.start||"",["request"]),this.__setSavingState),this.listenTo(this.model,xu(e.stop||"",["error","sync"]),this.__clearSavingState)}},fetchAndSave:async function(e=this.model,t=this.model){const n=this.__originalModel,o={...e.attributes};await t.fetch();const i=t.attributes,r=Ss.uniq([...Object.keys(n),...Object.keys(o)]),a={};
2r.forEach(e=>{Ss.isEqual(n[e],o[e])||(a[e]=o[e])});const s={...i,...a};e.set(s);const l=e.save();return l&&l.done&&l.done(()=>{this.trigger("saved",e)}),l},__createToolbar:function(e){const t=!0===this.getAttribute("danger")?"button-error":"button-primary",n=Ss.result(this,"step"),o=new nu(Ss.extend({save:this.save||ml.localize("oform.save","courage"),saveId:this.saveId,saveClassName:t,cancel:this.cancel||ml.localize("oform.cancel","courage"),noCancelButton:this.noCancelButton||!1,noSubmitButton:this.noSubmitButton||!1,buttonOrder:this.buttonOrder,hasPrevStep:n&&n>1},e||this.options));return Ss.each(this.__buttons,function(e){o.addButton.apply(o,e)}),o},className:"",attributes:{},events:{},inputs:[],template:null,read:!1,readOnly:!1,noButtonBar:!1,noCancelButton:!1,noSubmitButton:!1,buttonOrder:["previous","save","cancel"],save:null,cancel:null,danger:!1,layout:"",step:void 0,totalSteps:void 0,title:null,subtitle:null,autoSave:!1,autoFetchAndSave:!1,scrollOnError:!0,showErrors:!0,resizeSelector:".o-form-content",getAttribute:function(e,t){let n=Ss.resultCtx(this.options,e,this);return Ss.isUndefined(n)&&(n=Ss.result(this,e)),Ss.isUndefined(n)?t:n},hasReadMode:function(){return!!this.getAttribute("read")},isReadOnly:function(){return!!this.getAttribute("readOnly")},hasButtonBar:function(){return!(this.getAttribute("noButtonBar")||this.isReadOnly())},render:function(){if(this.__readModeBar&&this.__readModeBar.remove(),this.hasReadMode()&&!this.isReadOnly()){const e=eu.extend({formTitle:this.getAttribute("title","")});this.__readModeBar=this.add(e,".o-form-title-bar").last()}const e=vu({layout:this.getAttribute("layout",""),title:this.getAttribute("title","",!0),subtitle:this.getAttribute("subtitle","",!0),hasReadMode:this.hasReadMode()});return this.$el.html(e),delete this.template,pc.prototype.render.apply(this,arguments),this.__applyMode(),this},__setSavingState:function(){this.model.trigger("form:set-saving-state"),this.$el.addClass("o-form-saving")},__clearSavingState:function(){this.model.trigger("form:clear-saving-state"),this.$el.removeClass("o-form-saving")},__toggleToolbar:function(){this.__toolbar&&this.__toolbar.remove(),this.hasButtonBar()&&this._editMode()&&(this.__toolbar=this.__createToolbar(),this.add(this.__toolbar,"")),this.trigger("resize")},__cancel:function(){const e=this.model.get("__edit__");let t;this.model.clear({silent:!0}),t=this.model.sanitizeAttributes?this.model.sanitizeAttributes(this.__originalModel):Ss.clone(this.__originalModel),this.model.set(t,{silent:!0}),this.trigger("cancel",this.model),this.model.trigger("cache:clear"),e&&(this.model.set("__edit__",!1,{silent:!0}),this.model.trigger("change:__edit__",this.model,!1)),this.clearErrors()},isValid:function(){let e;const t=this;function n(e){return Ss.reduce(e,function(e,n){return Ss.extend(e,t.model.validateField(n))},{})}return Ss.isUndefined(this.validate)?this.model.isValid():(Ss.isFunction(this.validate)?e=this.validate():Ss.isArray(this.validate)?e=n(this.validate):"local"===this.validate&&(e=n(this.getInputs().map(function(e){return e.options.name}))),!!Ss.isEmpty(e)||(this.model.trigger("invalid",this.model,e),!1))},__save:function(){this.clearErrors(),this.isValid()&&this.trigger("save",this.model)},__previous:function(){this.trigger("previous",this.model)},__applyMode:function(){this.clearErrors(),this.__toggleToolbar(),this._editMode()?(this.$el.addClass("o-form-edit-mode"),this.$el.removeClass("o-form-read-mode"),this.$(".o-form-content").removeClass("rounded-btm-4"),this.focus()):(this.$el.removeClass("o-form-edit-mode"),this.$el.addClass("o-form-read-mode"),this.$(".o-form-content").addClass("rounded-btm-4"))},_editMode:function(){return this.model.get("__edit__")||!this.hasReadMode()},parseErrorMessage:Ss.identity,_handleErrorScroll:function(){if(!this.getAttribute("scrollOnError"))return;const e=sl("#"+this.id+" .o-form-error-container");if(e.length){let t,n=e.scrollParent();n[0]===document?(n=sl("html, body"),t=e.offset().top):t=n.scrollTop()+e.offset().top-n.offset().top,n.animate({scrollTop:t},400)}},__showErrors:function(e,t,n){if(this.trigger("error",e),!this.getAttribute("showErrors"))return;let o,i=ru.getResponseJSON(t);const r=ru.parseFieldErrors(t);Ss.size(r)?Ss.each(r,function(e,t){this.model.trigger("form:field-error",this.__errorFields[t]||t,Ss.map(e,function(e){return/^model\.validation/.test(e)?ml.localize(e,"courage"):e}))},this):(i=this.parseErrorMessage(i),o=function(e={}){return Array.isArray(e.errorCauses)&&e.errorCauses.length>0?e.errorCauses[0].errorSummary:e.errorSummary}(i)),n&&(this.$(".o-form-error-container").addClass("o-form-has-errors"),this.add(ou,".o-form-error-container",{options:{errorSummary:o}})),this._handleErrorScroll(),this.model.trigger("form:resize")},clearErrors:function(){this.$(".o-form-error-container").removeClass("o-form-has-errors"),this.model.trigger("form:clear-errors"),this.model.trigger("form:resize")},toggle:function(){return this.model.set("__edit__",!this.hasReadMode()||!this.model.get("__edit__")),this},__addLayoutItem:function(e){hu(e)?this.addInput(e):this.__addNonInputLayoutItem(e)},__addNonInputLayoutItem:function(e){const t=Ss.omit(e,"type");switch(e.type){case"sectionTitle":this.addSectionTitle(e.title,Ss.omit(t,"title"));break;case"divider":this.addDivider(t);break;default:throw new Error("unknown input: "+e.type)}},addButton:function(e,t){this.__toolbar&&this.__toolbar.addButton(e,t),this.__buttons.push([e,t])},addDivider:function(e){return this.add('<div class="okta-form-divider form-divider"></div>'),Zc.applyShowWhen(this.last(),e&&e.showWhen),Zc.applyToggleWhen(this.last(),e&&e.toggleWhen),this},addSectionTitle:function(e,t){return this.add(bu({title:e})),Zc.applyShowWhen(this.last(),t&&t.showWhen),Zc.applyToggleWhen(this.last(),t&&t.toggleWhen),this},addInput:function(e){e=Ss.clone(e),Zc.validateInput(e,this.model);const t=Zc.generateInputOptions(e,this,this.__createInput).reverse();Ss.isEmpty(this.getInputs().toArray())&&Ss.extend(t[0],{validateOnlyIfDirty:!0});const n=Ss.map(t,this.__createInput,this);Ss.each(t,function(e){e.errorField&&(this.__errorFields[e.errorField]=e.name)},this);const o={inputId:Ss.last(n).options.inputId,input:n,multi:t.length>1?t.length:void 0};Ss.extend(o,Ss.omit(this.options,"input"),Ss.omit(e,"input"));const i=this.__createWrapper(o);!1!==o.label&&i.add(this.__createLabel(o)),i.add(this._createContainer(o)),i.type=o.type||o.input.type||"custom";const r=[i].concat(Ss.rest(arguments));return this.add.apply(this,r)},__createInput:function(e){return e=Ss.pick(e,Zc.INPUT_OPTIONS),du(e)},__createWrapper:function(e){return e=Ss.pick(e,Zc.WRAPPER_OPTIONS),new yu(e)},__createLabel:function(e){return e=Ss.pick(e,Zc.LABEL_OPTIONS),new fu(e)},_createContainer:function(e){return e=Ss.pick(e,Zc.CONTAINER_OPTIONS),new su(e)},__saveModelState:function(e){this.__originalModel=sl.extend(!0,{},e.attributes)},add:function(...e){return void 0===e[1]&&(e[1]="> div.o-form-content > .o-form-fieldset-container"),pc.prototype.add.apply(this,e)},focus:function(){const e=this.getInputs().first();return e&&e.focus&&e.focus(),this},disable:function(){return this.invoke("disable"),this},enable:function(){this.invoke("enable")},contentHeight:function(e){const t=this.$(".o-form-content");
2if(!Ss.isNumber(e))return t.height();t.css("max-height",e)},getInputs:function(){return Ss(this.filter(function(e){return e instanceof yu}))}});Su=Cs(),function(){var e;(e=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,o,i,r,a;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,children:0,disabled:e.disabled}),a=[],o=0,i=(r=e.childNodes).length;o<i;o++)n=r[o],a.push(this.add_option(n,t,e.disabled));return a},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(t){var n,o,i,r,a;for(o=new e,i=0,r=(a=t.childNodes).length;i<r;i++)n=a[i],o.add_node(n);return o.parsed},this.SelectParser=e}.call(window),function(){var e;e=function(){function e(t,n){this.form_field=t,this.options=null!=n?n:{},e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.finish_setup())}return e.prototype.set_default_values=function(){var e=this;return this.click_test_action=function(t){return e.test_active_click(t)},this.activate_action=function(t){return e.activate_field(t)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=this.options.single_backstroke_delete||!1,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},e.prototype.input_blur=function(e){var t=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return t.blur_test()},100)},e.prototype.result_add_option=function(e){var t,n;return e.dom_id=this.container_id+"_o_"+e.array_index,t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),n=""!==e.style.cssText&&""!==e.style?' style="'+e.style+'"':"",'<li id="'+e.dom_id+'" class="'+t.join(" ")+'"'+n+">"+e.html+"</li>"},e.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build()},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(n=this.form_field.options).length;e<t;e++)n[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keyup_checker=function(e){var t,n;switch(t=null!=(n=e.which)?n:e.keyCode,this.search_field_scale(),t){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(e.preventDefault(),this.results_showing)return this.result_select(e);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},e.prototype.generate_field_id=function(){var e;return e=this.generate_random_id(),this.form_field.id=e,e},e.prototype.generate_random_char=function(){var e;return e=Math.floor(36*Math.random()),"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".substring(e,e+1)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.browser_is_supported=function(){var e;return"Microsoft Internet Explorer"!==window.navigator.appName||null!==(e=document.documentMode)&&e>=8},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),this.AbstractChosen=e}.call(window),function(){var e,t,n,o={}.hasOwnProperty,i=(n=this).AbstractChosen;(e=Su).fn.extend({chosen:function(n){return i.browser_is_supported()?this.each(function(o){var i;if(!(i=e(this)).hasClass("chzn-done"))return i.data("chosen",new t(this,n))}):this}}),t=function(t){function i(){return i.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(i,t),i.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chzn-rtl")},i.prototype.finish_setup=function(){return this.form_field_jq.addClass("chzn-done")},i.prototype.set_up_html=function(){var t,n;return this.container_id=this.form_field.id.length?this.form_field.id.replace(/[^\w]/g,"_"):this.generate_field_id(),this.container_id+="_chzn",(t=["chzn-container"]).push("chzn-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chzn-rtl"),n={id:this.container_id,class:t.join(" "),title:this.form_field.title},this.container=e("<div></div>",n),this.container[0].style.width=this.container_width(),this.is_multiple?this.container.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop"><ul class="chzn-results"></ul></div>'):this.container.html('<a href="#" class="chzn-single chzn-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chzn-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("liszt:ready",{chosen:this})},i.prototype.register_observers=function(){var e=this;return this.container.mousedown(function(t){e.container_mousedown(t)}),this.container.mouseup(function(t){e.container_mouseup(t)}),this.container.mouseenter(function(t){e.mouse_enter(t)}),this.container.mouseleave(function(t){e.mouse_leave(t)}),this.search_results.mouseup(function(t){e.search_results_mouseup(t)}),this.search_results.mouseover(function(t){e.search_results_mouseover(t)}),this.search_results.mouseout(function(t){e.search_results_mouseout(t)}),this.search_results.bind("mousewheel DOMMouseScroll",function(t){e.search_results_mousewheel(t)}),this.form_field_jq.bind("liszt:updated",function(t){e.results_update_field(t)}),this.form_field_jq.bind("liszt:activate",function(t){e.activate_field(t)}),this.form_field_jq.bind("liszt:open",function(t){e.container_mousedown(t)}),this.search_field.blur(function(t){e.input_blur(t)}),this.search_field.keyup(function(t){e.keyup_checker(t)}),this.search_field.keydown(function(t){e.keydown_checker(t)}),this.search_field.focus(function(t){e.input_focus(t)}),this.is_multiple?this.search_choices.click(function(t){e.choices_click(t)}):this.container.click(function(e){e.preventDefault()})},i.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus",this.activate_action),this.close_field()):(this.container.removeClass("chzn-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus",this.activate_action))},i.prototype.container_mousedown=function(t){if(!this.is_disabled&&(t&&"mousedown"===t.type&&!this.results_showing&&t.preventDefault(),null==t||!e(t.target).hasClass("search-choice-close")))return this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chzn-single").length||(t.preventDefault(),this.results_toggle(
2)):(this.is_multiple&&this.search_field.val(""),e(document).click(this.click_test_action),this.results_show()),this.activate_field()},i.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},i.prototype.search_results_mousewheel=function(e){var t,n,o;if(null!=(t=-(null!=(n=e.originalEvent)?n.wheelDelta:void 0)||(null!=(o=e.originialEvent)?o.detail:void 0)))return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},i.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chzn-container-active"))return this.close_field()},i.prototype.close_field=function(){return e(document).unbind("click",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chzn-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},i.prototype.activate_field=function(){return this.container.addClass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},i.prototype.test_active_click=function(t){return e(t.target).parents("#"+this.container_id).length?this.active_field=!0:this.close_field()},i.prototype.results_build=function(){var e,t,o,i,r;for(this.parsing=!0,this.selected_option_count=null,this.results_data=n.SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.selected_item.addClass("chzn-default").find("span").text(this.default_text),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chzn-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chzn-container-single-nosearch"))),e="",o=0,i=(r=this.results_data).length;o<i;o++)(t=r[o]).group?e+=this.result_add_group(t):t.empty||(e+=this.result_add_option(t),t.selected&&this.is_multiple?this.choice_build(t):t.selected&&!this.is_multiple&&(this.selected_item.removeClass("chzn-default").find("span").text(t.text),this.allow_single_deselect&&this.single_deselect_control_build()));return this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.search_results.html(e),this.parsing=!1},i.prototype.result_add_group=function(t){return t.dom_id=this.container_id+"_g_"+t.array_index,'<li id="'+t.dom_id+'" class="group-result">'+e("<div></div>").text(t.label).html()+"</li>"},i.prototype.result_do_highlight=function(e){var t,n,o,i,r;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),i=(o=parseInt(this.search_results.css("maxHeight"),10))+(r=this.search_results.scrollTop()),(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=i)return this.search_results.scrollTop(t-o>0?t-o:0);if(n<r)return this.search_results.scrollTop(n)}},i.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},i.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(this.container.addClass("chzn-with-drop"),this.form_field_jq.trigger("liszt:showing_dropdown",{chosen:this}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results())},i.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chzn-with-drop"),this.form_field_jq.trigger("liszt:hiding_dropdown",{chosen:this})),this.results_showing=!1},i.prototype.set_tab_index=function(e){var t;if(this.form_field_jq.attr("tabindex"))return t=this.form_field_jq.attr("tabindex"),this.form_field_jq.attr("tabindex",-1),this.search_field.attr("tabindex",t)},i.prototype.set_label_behavior=function(){var t=this;if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.click(function(e){return t.is_multiple?t.container_mousedown(e):t.activate_field()})},i.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},i.prototype.search_results_mouseup=function(t){var n;if((n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},i.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},i.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result"))return this.result_clear_highlight()},i.prototype.choice_build=function(t){var n,o,i=this;return n=e("<li></li>",{class:"search-choice"}).html("<span>"+t.html+"</span>"),t.disabled?n.addClass("search-choice-disabled"):((o=e("<a></a>",{href:"#",class:"search-choice-close",rel:t.array_index})).click(function(e){return i.choice_destroy_link_click(e)}),n.append(o)),this.search_container.before(n)},i.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},i.prototype.choice_destroy=function(e){if(this.result_deselect(e.attr("rel")))return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},i.prototype.results_reset=function(){if(this.form_field.options[0].selected=!0,this.selected_option_count=null,this.selected_item.find("span").text(this.default_text),this.is_multiple||this.selected_item.addClass("chzn-default"),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field)return this.results_hide()},i.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},i.prototype.result_select=function(e){var t,n,o,i;if(this.result_highlight)return n=(t=this.result_highlight).attr("id"),this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):(this.search_results.find(".result-selected").removeClass("result-selected"),this.result_single_selected=t,this.selected_item.removeClass("chzn-default")),t.addClass("result-selected"),i=n.substr(n.lastIndexOf("_")+1),(o=this.results_data[i]).selected=!0,this.form_field.options[o.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(o):(this.selected_item.find("span").first().text(o.text),this.allow_single_deselect&&this.single_deselect_control_build()),(e.metaKey||e.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[o.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())},i.prototype.result_activate=function(e,t){return t.disabled?e.addClass("disabled-result"):this.is_multiple&&t.selected?e.addClass("result-selected"):e.addClass("active-result")},i.prototype.result_deactivate=function(e){return e.removeClass("active-result result-selected disabled-result")},i.prototype.result_deselect=function(t){var n;return n=this.results_data[t],!this.form_field.options[n.options_index].disabled&&(n.selected=!1,this.form_field.options[n.options_index].selected=!1,this.selected_option_count=null,e("#"+this.container_id+"_o_"+t).removeClass("result-selected").addClass("active-result").show(),this.result_clear_highlight(),this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[n.options_index].value}),this.search_field_scale(),!0)},i.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chzn-single-with-deselect")},i.prototype.winnow_results=function(){var t,n,o,i,r,a,s,l,c,u,p,d,h,f,m,g,y,v;
2for(this.no_results_clear(),c=0,u=this.search_field.val()===this.default_text?"":e("<div></div>").text(e.trim(this.search_field.val())).html(),a=this.search_contains?"":"^",r=new RegExp(a+u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),h=new RegExp(u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),f=0,g=(v=this.results_data).length;f<g;f++)if(!(n=v[f]).empty)if(n.group)e("#"+n.dom_id).css("display","none");else{if(t=!1,l=n.dom_id,s=e("#"+l),r.test(n.html))t=!0,c+=1;else if(this.enable_split_word_search&&(n.html.indexOf(" ")>=0||0===n.html.indexOf("["))&&(i=n.html.replace(/\[|\]/g,"").split(" ")).length)for(m=0,y=i.length;m<y;m++)o=i[m],r.test(o)&&(t=!0,c+=1);t?(u.length?(p=n.html.search(h),d=(d=n.html.substr(0,p+u.length)+"</em>"+n.html.substr(p+u.length)).substr(0,p)+"<em>"+d.substr(p)):d=n.html,s.html(d),this.result_activate(s,n),null!=n.group_array_index&&e("#"+this.results_data[n.group_array_index].dom_id).css("display","list-item")):(this.result_highlight&&l===this.result_highlight.attr("id")&&this.result_clear_highlight(),this.result_deactivate(s))}return c<1&&u.length?this.no_results(u):this.winnow_results_set_highlight()},i.prototype.winnow_results_set_highlight=function(){var e,t;if(!this.result_highlight&&null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},i.prototype.no_results=function(t){var n;return(n=e('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>')).find("span").first().html(t),this.search_results.append(n)},i.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},i.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},i.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},i.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},i.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},i.prototype.keydown_checker=function(e){var t,n;switch(t=null!=(n=e.which)?n:e.keyCode,this.search_field_scale(),8!==t&&this.pending_backstroke&&this.clear_backstroke(),t){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},i.prototype.search_field_scale=function(){var t,n,o,i,r,a,s;if(this.is_multiple){for(r=0,o="position:absolute; left: -1000px; top: -1000px; display:none;",a=0,s=(i=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"]).length;a<s;a++)o+=(n=i[a])+":"+this.search_field.css(n)+";";return(t=e("<div></div>",{style:o})).text(this.search_field.val()),e("body").append(t),r=t.width()+25,t.remove(),this.f_width||(this.f_width=this.container.outerWidth()),r>this.f_width-10&&(r=this.f_width-10),this.search_field.css({width:r+"px"})}},i.prototype.generate_random_id=function(){var t;for(t="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();e("#"+t).length>0;)t+=this.generate_random_char();return t},i}(i),n.Chosen=t}.call(window);function Eu(e,t){return Ss.resultCtx(e.options,t,e)||Ss.result(e,t)}const Cu={"click .infobox-dismiss-link":function(e){e.preventDefault(),this.$el.fadeOut(400,()=>{this.trigger("dismissed"),this.remove()})}},Ou=_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};
2return'<a data-se="dismiss-link" class="infobox-dismiss-link" title="'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"courage",code:"component.dismiss"},data:i,loc:{start:{line:1,column:81},end:{line:1,column:131}}}))+'" href="#"><span data-se="icon" class="dismiss-icon"></span></a>'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h3 data-se="header">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:286},end:{line:1,column:295}}}):r)+"</h3>"},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p data-se="sub-header">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:i,loc:{start:{line:1,column:347},end:{line:1,column:359}}}):r)+"</p>"},3:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul data-se="list" class="bullets">'+(null!=(r=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"bullets"):t,{name:"each",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:420},end:{line:1,column:483}}}))?r:"")+"</ul>"},4:function(e,t,n,o,i){return'<li data-se="list-item">'+e.escapeExpression(e.lambda(t,t))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=l(n,"if").call(s,null!=t?l(t,"dismissible"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:202}}}))?r:"")+'<span data-se="icon" class="icon '+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"icon")||(null!=t?l(t,"icon"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"icon",hash:{},data:i,loc:{start:{line:1,column:235},end:{line:1,column:243}}}):a)+'"></span>'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"title"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:252},end:{line:1,column:307}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:307},end:{line:1,column:370}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"bullets"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:370},end:{line:1,column:495}}}))?r:"")},useData:!0}),Au=pc.extend({attributes:{"data-se":"callout"},content:null,size:"standard",type:"info",dismissible:!1,title:null,subtitle:null,bullets:null,constructor:function(){this.events=Ss.defaults(this.events||{},Cu),pc.apply(this,arguments),this.$el.addClass(function(e){let t="infobox clearfix infobox-"+Eu(e,"type");switch(Eu(e,"size")){case"standard":t+="";break;case"slim":t+=" infobox-slim";break;case"compact":t+=" infobox-compact";break;case"large":t+=" infobox-md"}return Eu(e,"dismissible")&&(t+=" infobox-dismiss"),t}(this)),this.template=Ou;const e=Eu(this,"content");e&&this.add(e)},getTemplateData:function(){let e=Eu(this,"type");switch("tip"===e&&(e="light-bulb"),Eu(this,"size")){case"slim":e="";break;case"large":e=[e,"-","24"].join("");break;default:e=[e,"-","16"].join("")}return{icon:e,title:Eu(this,"title"),subtitle:Eu(this,"subtitle"),bullets:Eu(this,"bullets"),dismissible:Eu(this,"dismissible")}}});var Pu=function(e){return new Au(e)};const Nu={tagName:"span",attributes:function(){return{"data-se":"o-form-input-"+this.getNameString()}},defaultPlaceholder:"",constructor:function(e){delete(e=Ss.defaults(e||{},{inputId:e.id||Ss.uniqueId("input"),placeholder:this.defaultPlaceholder,inlineValidation:!0,validateOnlyIfDirty:!1})).id;const t=this;Ss.each({enable:"removeClass",disable:"addClass"},function(e,n){t[n]=Ss.wrap(t[n],function(n){n.apply(t,arguments),t.$el[e]("o-form-disabled")})}),pc.call(this,e),!0!==Ss.result(e,"readOnly")&&!0===Ss.result(e,"read")&&this.listenTo(this.model,"change:__edit__",this.render),Ss.isFunction(this.focus)&&
2(this.focus=Ss.debounce(Ss.bind(this.focus,this),50)),Ss.result(e,"validateOnlyIfDirty")||this.addInlineValidation(),this.addModelListeners(),this.$el.addClass("o-form-input-name-"+this.getNameString())},addAriaLabel:function(){const e=this.options.ariaLabel;e&&this.$(":input").attr("aria-label",e)},addInlineValidation:function(){Ss.result(this.options,"inlineValidation")&&this.$el.on("focusout",":input",Ss.bind(this.validate,this))},toModelValue:function(){let e=this.val();return Ss.isFunction(this.to)&&(e=this.to.call(this,e)),Ss.isFunction(this.options.to)&&(e=this.options.to.call(this,e)),e},__getDependencyCalloutBtn:function(e){const t=this,n=Ss.clone(e),o=n.click||function(){};return n.click=function(){sl(window).one("focus.dependency",function(){t.__showInputDependencies()}),o.call(t)},new(pc.extend({children:[Tc(n)]}))},getCalloutParent:function(){return this.$('input[value="'+this.getModelValue()+'"]').parent()},__getCalloutMsgContainer:function(e){return pc.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="o-form-explain">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"msg")||(null!=t?a(t,"msg"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"msg",hash:{},data:i,loc:{start:{line:1,column:29},end:{line:1,column:36}}}):r)+"</span>"},useData:!0}),getTemplateData:function(){return{msg:e}}})},showCallout:function(e,t){const n=Ss.clone(e);n.className="dependency-callout",n.btn&&(n.content=this.__getDependencyCalloutBtn(n.btn),delete n.btn);const o=Pu(n);t||o.add(this.__getCalloutMsgContainer(ml.localize("dependency.callout.msg","courage"))),this.getCalloutParent().append(o.render().el),"success"===n.type&&Ss.delay(function(){o.$el.fadeOut(800)},1e3)},removeCallout:function(){this.$el.find(".dependency-callout").remove()},__evaluateCalloutObject:function(e,t){let n;return n=e?{title:ml.localize("dependency.action.completed","courage"),size:"large",type:"success"}:{title:ml.localize("dependency.action.required","courage",[t]),size:"large",type:"warning"},n},__handleDependency:function(e,t){const n=this,o=Ss.isFunction(t)?t(e):Ss.extend({},t,n.__evaluateCalloutObject(e.resolved,t.title));n.removeCallout(),n.showCallout(o,e.resolved)},__showInputDependencies:function(){const e=this,t=e.options.deps[e.getModelValue()];t&&Ss.isFunction(t.func)?t.func().done(function(n){e.__handleDependency({resolved:!0,data:n},t.callout)}).fail(function(n){e.__handleDependency({resolved:!1,data:n},t.callout)}):e.removeCallout()},_isEdited:!1,hasIMESupport:!1,update:function(e){var t,n;if(!this._isEdited&&Ss.result(this.options,"validateOnlyIfDirty")&&(this._isEdited=!0,this.addInlineValidation()),this.model.set(this.options.name,this.toModelValue()),this.options.deps&&this.__showInputDependencies(),this.hasIMESupport&&null!==(t=window)&&void 0!==t&&null!==(n=t.okta)&&void 0!==n&&n.enableIMESupport){if(this.isComposing)return;e&&Mc.isEnter(e)&&this.model.trigger("form:save")}},isEditMode:function(){return!Ss.result(this.options,"readOnly")&&(!0!==Ss.result(this.options,"read")||!0===this.model.get("__edit__"))},render:function(){this.preRender();const e=this.options.params;return this.options.params=Ss.resultCtx(this.options,"params",this),this.isEditMode()?(this.editMode(),this.applyEnabledState()):this.readMode(),this.options.params=e,this.addAriaLabel(),this.postRender(),this},applyEnabledState:function(){Ss.resultCtx(this.options,"disabled",this)?this.disable():this.enable()},validate:function(){if(!this.model.get("__pending__")&&this.isEditMode()&&Ss.isFunction(this.model.validateField)){const e=this.model.validateField(this.options.name);e&&Ss.delay(function(){this.model.trigger("form:clear-error:"+this.options.name),this.model.trigger("invalid",this.model,e,!1)}.bind(this),100)}},addModelListeners:function(){this.listenTo(this.model,"form:field-error",function(e){this.options.name===e&&this.__markError()}),this.listenTo(this.model,"form:clear-errors change:"+this.options.name,this.__clearError),this.listenTo(this.model,"form:clear-error:"+this.options.name,this.__clearError)},val:function(){throw new Error("val() is an abstract method")},focus:function(){throw new Error("focus() is an abstract method")},defaultValue:function(){return""},editMode:function(){const e=Ss.extend({},this.options,{value:this.getModelValue()});return this.$el.html(this.template(e)),this.options.multi&&this.$el.removeClass("margin-r"),this},readMode:function(){return this.$el.text(this.getReadModeString()),this.$el.removeClass("error-field"),this.options.multi&&this.$el.addClass("margin-r"),this},getReadModeString:function(){return Ss.resultCtx(this.options,"readModeString",this)||this.toStringValue()},getModelValue:function(){let e=this.model.get(this.options.name);return Ss.isFunction(this.from)&&(e=this.from.call(this,e)),Ss.isFunction(this.options.from)&&(e=this.options.from.call(this,e)),e},toStringValue:function(){let e=this.getModelValue();return this.options.options&&(e=this.options.options[e]),(Number.isInteger(e)||"boolean"==typeof e)&&(e=String(e)),e||this.defaultValue()},resize:function(){this.model.trigger("form:resize")},disable:function(){this.$(":input").prop("disabled",!0)},enable:function(){this.$(":input").prop("disabled",!1)},changeType:function(e){this.$(":input").prop("type",e),this.options.type=e}
2,getNameString:function(){return Ss.isArray(this.options.name)?this.options.name.join("-"):this.options.name},getParams:function(e){const t=e||this.options||{};return Ss.clone(Ss.resultCtx(t,"params",this)||{})},getParam:function(e,t){const n=Ss.resultCtx(this.getParams(),e,this);return Ss.isUndefined(n)?t:n},getParamOrAttribute:function(e){return this.getParam(e)||Ss.result(this,e)},__markError:function(){this.$el.addClass("o-form-has-errors")},__clearError:function(){this.$el.removeClass("o-form-has-errors")}};var Ru=pc.extend(Nu);const Iu=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<select id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:12},end:{line:1,column:23}}}):r)+'" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:31},end:{line:1,column:39}}}):r)+'"></select>'},useData:!0}),Du=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<option value="'+c(typeof(r=null!=(r=u(n,"key")||(null!=t?u(t,"key"):t))?r:s)===l?r.call(a,{name:"key",hash:{},data:i,loc:{start:{line:1,column:15},end:{line:1,column:22}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:s)===l?r.call(a,{name:"value",hash:{},data:i,loc:{start:{line:1,column:24},end:{line:1,column:33}}}):r)+"</option>"},useData:!0}),Lu=Uc.isSafari;function Mu(e){return this.params.autoWidth?e.call(this):Ss.defer(Ss.bind(e,this))}function Uu(e,t,n){const o=n.offset();e.css({left:o.left,top:o.top});const i=sl(window),r=t.outerHeight(),a=r+t.offset().top-i.scrollTop(),s=i.height()-20,l=Math.min(r+s-a,240);t.css("max-height",l)}var ju=Ru.extend({className:"o-form-select",events:{"change select":"update","keyup .chzn-search > :text":function(e){Mc.isEsc(e)&&(this.$(".chzn-search > :text").val(""),e.stopPropagation())}},constructor:function(){this.template=Iu,this.option=this.option||Du,Ru.apply(this,arguments),this.params=this.options.params||{}},editMode:function(){this.$el.html(Iu(this.options)),this.$select=this.$("select"),this.appendOptions();const e=this.getModelValue();return e?this.$select.val(e):this.$("option:first-child").prop("selected",!0),this.$el.addClass("o-form-control"),!1!==this.params.chosen&&this.__applyChosen(),this},appendOptions:function(){if(!this.getOptions())return;const e=this.getOptions(),t=Object.keys(e);this.applySortByKey(t),t.forEach(t=>{this.$select.append(this.option({key:t,value:e[t]}))})},applySortByKey:function(e){const t=this.options.sortByKey;t&&(t instanceof Function&&e.sort(t),"asc"===t&&e.sort(),"desc"===t&&(e.sort(),e.reverse()))},__applyChosen:function(e){let t=this.options.wide?"100%":this.params.width||"62%";this.params.autoWidth&&(t=function(e){e.$select.hide();const t=sl(e.$select[0]).hide();sl("body").append(t);const n=e.params.width=1.2*t.width()+"px";return e.$el.append(t.show()),n}(this)),Mu.call(this,function(){const n=this.getParam("searchThreshold",10);Ss.result(this.options,"autoRender")||!1===e||this.update(),this.$select.chosen({width:t,disable_search_threshold:n,placeholder_text:this.options.placeholder,search_contains:!0,no_results_text:this.params.noResultsText});const o=this.options&&this.options.options&&Object.keys(this.options.options).length>n;this.accessibilityUpdate(o,this.params),function(e,t){const n=e.next(".chzn-container"),o=n.clone(),i=n.find(".chzn-results"),r=n.find(".chzn-search input[type=text]");r.on("keyup",()=>{!function(e,t,n){const o=n.find(".active-result.highlighted");if(t.find("#"+e.attr("id")+"_txt").attr("aria-activedescendant",o.attr("id")),n.find("[aria-selected=true]").attr("aria-selected","false"),o.attr("aria-selected","true"),Lu()){const t=ml.localize("oform.selectInput.country","courage",[o.text()]),n=e.attr("id");""!==t&&sl(`#${n}_aria_div_id`).text(t)}const i=n.find("li.no-results");i.length&&i.attr("role","alert")}(e,n,i)}),n.addClass("closed"),o.css("visibility","hidden"),o.removeAttr("id"),o.find("li").removeAttr("id");const a={left:n.css("left"),top:n.css("top"),position:n.css("position"),float:n.css("float"),"z-index":n.css("z-index")};i.hide();const s=Ss.debounce(function(){Uu(n,i,o)},10);e.off(".fixChosen"),e.on("liszt:showing_dropdown.fixChosen",function(){n.width(n.width()),e.after(o),n.css({position:"absolute",float:"none","z-index":5e4,top:-999999}),sl("body").append(n),sl(".chzn-search > :text").prop("placeholder",t),i.show(),Uu(n,i,o),e.parents().scroll(s),sl(window).on("resize scroll",s)}),e.on("liszt:showing_dropdown",function(){n.removeClass("closed")}),e.on("liszt:hiding_dropdown.fixChosen remove.fixChosen",function(){e.parents().off("scroll",s),sl(window).off("resize scroll",s),n.css(a),i.hide(),n.addClass("closed"),i.css("max-height",240),o.remove(),e.after(n)}),e.on("liszt:hiding_dropdown.fixChosen",function(){r.focus()})}(this.$select,this.searchPlaceholder),this.params.autoWidth&&this.$el.width(0),this.model.trigger("form:resize")})},val:function(){return this.$select&&this.$select.val()},focus:function(){if(this.$select)return this.$select.focus()},toStringValue:function(){const e=this.getModelValue();let t=e;const n=this.getOptions();return Ss.isEmpty(n)||(t=n[e]),Ss.isUndefined(t)&&(t=this.defaultValue()),t||""},getOptions:function(){let e=this.options.options;return Ss.isFunction(e)&&(e=e.call(this)),Ss.isObject(e)?e:{}},remove:function(){return this.$select&&this.$select.trigger("remove"),Ru.prototype.remove.apply(this,arguments)},createAriaLiveNode:function(e){const t=this.$select.next(".chzn-container");sl("<div></div>").attr("role","log").attr("aria-live","polite").attr("id",e).attr("aria-relevant","additions").attr("aria-atomic","fal
2se").attr("class","off-screen").insertAfter(t)},accessibilityUpdate:function(e,t){const n=this.$select.attr("id")+"_txt",o=this.$select.attr("id")+"_aria_div_id",i=this.$select.attr("id")+"_ul";if(Lu()&&this.createAriaLiveNode(o),this.$("ul[class=chzn-results]").attr("role","listbox").attr("id",i),e?this.$("input[type=text]").attr("id",n).attr("aria-autocomplete","list").attr("aria-activedescendant","").attr("role","combobox").attr("aria-expanded","true").attr("aria-controls",i):this.$("input[type=text]").attr("id",n).attr("role","listbox"),t&&t.aria&&t.aria.label){const e=t.aria.label.trim();this.$("input[type=text]").attr("id",n).attr("aria-label",e),this.$("ul[class=chzn-results]").attr("aria-label",e)}else{const e=this.$el.parent().prev(".o-form-label").find("label").text().trim();this.$("input[type=text]").attr("id",n).attr("aria-label",e),this.$("ul[class=chzn-results]").attr("aria-label",e)}this.$(".chzn-results .active-result").attr("role","option").attr("aria-selected","false")}});const Fu={undefined:"undefined",true:"true",false:"false"},Vu=function(e){return e?"true":!1===e?"false":"undefined"},qu=function(e){switch(e){case"undefined":default:return null;case"true":return!0;case"false":return!1}};var Bu=ju.extend({initialize:function(){this.options.options=Fu,this.options.from=Vu,this.options.to=qu}});const $u=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="o-form-input-group-controls"><span class="input-fix o-form-control"><input type="text" class="o-form-text" name="'+c(typeof(r=null!=(r=u(n,"key")||(null!=t?u(t,"key"):t))?r:s)===l?r.call(a,{name:"key",hash:{},data:i,loc:{start:{line:1,column:125},end:{line:1,column:132}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"key")||(null!=t?u(t,"key"):t))?r:s)===l?r.call(a,{name:"key",hash:{},data:i,loc:{start:{line:1,column:138},end:{line:1,column:145}}}):r)+'" value="'+c(typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:s)===l?r.call(a,{name:"value",hash:{},data:i,loc:{start:{line:1,column:154},end:{line:1,column:163}}}):r)+'" placeholder="'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:i,loc:{start:{line:1,column:178},end:{line:1,column:193}}}):r)+'"/></span><a href="#" class="link-button link-button-icon icon-only"><span class="icon clear-input-16 "></span></a></div><p class="o-form-input-error o-form-explain"><span class="icon icon-16 error-16-small"></span>'+c(typeof(r=null!=(r=u(n,"errorExplain")||(null!=t?u(t,"errorExplain"):t))?r:s)===l?r.call(a,{name:"errorExplain",hash:{},data:i,loc:{start:{line:1,column:408},end:{line:1,column:424}}}):r)+"</p>"},useData:!0}),Hu="o-form-has-errors",zu="updateArray";var Wu=pc.extend({tagName:"div",className:"o-form-input-group",events:{"click a":function(e){e.preventDefault(),this.remove()},"keyup input":function(){this.update()}},isEditMode:function(){return!this.options.readOnly&&(!0!==this.options.read||!0===this.model.get("__edit__"))},initialize:function(){this.template=$u(Ss.extend(this.options,{placeholder:this.getPlaceholderText(),errorExplain:this.getErrorExplainText()})),this.update=Ss.debounce(this.update,this.options.debounceDelay||200)},render:function(){return this.isEditMode()?this.$el.html(this.template):(this.$el.text(this.options.value),this.$("a").hide()),this},remove:function(){this.trigger(zu,null),this.$el.slideUp(()=>{pc.prototype.remove.call(this,arguments)})},update:function(){let e=this.$("input").val();const t=Ss.object([yl.DATATYPE.number,yl.DATATYPE.integer],[ml.parseFloat,this.parseInt]);Ss.has(t,this.options.itemType)&&(e=t[this.options.itemType](e),Ss.isNumber(e)?this.clearInvalid():this.markInvalid()),this.trigger(zu,e)},markInvalid:function(){this.$el.addClass(Hu)},clearInvalid:function(){this.$el.removeClass(Hu)},getPlaceholderText:function(){let e;switch(this.options.itemType.toLowerCase()){case"string":e=ml.localize("placeholder.text.string","courage");break;case"number":e=ml.localize("placeholder.text.number","courage");break;case"integer":e=ml.localize("placeholder.text.integer","courage");break;default:e=""}return e},getErrorExplainText:function(){let e;switch(this.options.itemType.toLowerCase()){case"string":e=ml.localize("string.item.type.error.message","courage");break;case"number":e=ml.localize("number.item.type.error.message","courage");break;case"integer":e=ml.localize("integer.item.type.error.message","courage");break;default:e=""}return e},parseInt:function(e){if(/^-?\d+$/.test(e)){const t=parseInt(e,10);return Ss.isNaN(t)?e:t}return e}}),Ku=Ru.extend({className:"array-input",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="array-inputs-button link-button">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{}
2,{name:"i18n",hash:{bundle:"courage",code:"oform.add.another"},data:i,loc:{start:{line:1,column:52},end:{line:1,column:102}}}))+"</a>"},useData:!0}),params:{itemType:"string"},events:{"click .array-inputs-button":function(e){e.preventDefault(),this.isEditMode()&&this.addNewElement()}},initialize:function(e){e||(e={}),this.params=Ss.defaults(e.params||{},this.params),this.uniqueIdPrefix="array"},from:function(e){return Ss.isArray(e)?e:[]},editMode:function(){return this._setArrayObject(),this.$el.html(this.template),Ss.each(this.arrayObject,Ss.bind(this._addDeletableBox,this)),this},readMode:function(){this.editMode(),this.$(".array-inputs-button").addClass("link-button-disabled")},val:function(){let e=Ss.values(this.arrayObject);return Ss.contains([yl.DATATYPE.number,yl.DATATYPE.integer],this.params.itemType)&&(e=Ss.filter(e,Ss.isNumber)),e},focus:function(){},addNewElement:function(){const e=Ss.uniqueId(this.uniqueIdPrefix);this.arrayObject[e]="",this._addDeletableBox("",e),this.update()},_addDeletableBox:function(e,t){const n=new Wu(Ss.extend(Ss.pick(this.options,"read","readOnly","model"),{key:t,value:e,itemType:this.params.itemType}));return this.listenTo(n,"updateArray",function(e){Ss.isNull(e)?(delete this.arrayObject[t],this.stopListening(n)):this.arrayObject[t]=e,this.update()}),n.render().$el.hide(),this.$(".array-inputs-button").before(n.el),n.$el.slideDown(),n},_setArrayObject:function(){const e=this.model.get(this.options.name);if(this.arrayObject={},Ss.isArray(e)&&!Ss.isEmpty(e)){const t=[],n=this;Ss(e.length).times(function(){t.push(Ss.uniqueId(n.uniqueIdPrefix))}),this.arrayObject=Ss.object(t,e)}}});function Gu(e){const t=ml.parseFloat(e);return""===e?null:t}function Yu(e){return Ss.object(e,e)}function Ju(e){const t=e.get("items");return t?t.objectName:e.get("objectName")}function Qu(e,t,n){const o=e.get("name"),i=n.__nestedProperty__;let r=t[o];const a=n.get(o);let s;i&&e.set("__fieldNamePrefix__",i);const l=t[Ju(e)];r&&a&&(r=Ss.union(r,a)),l&&l.length?s=l:r&&r.length&&(s=r),e.set("__possibleValues__",s)}function Xu(e,t,n){return e.each(function(e){Qu(e,t,n)}),e}function Zu(e,t){return e.filter(function(e){return function(e,t){const n=Ju(e),o=t[n];return!n||!Ss(o).isEmpty()}(e,t)})}var ep={createInputOptions:function(e){const t=function(e){let t={};const n=e.get("name"),o=e.get("__displayType__"),i=e.get("__possibleValues__"),r=e.get("__fieldNamePrefix__");if(r&&(t.name=r+n,t.errorField=n),e.isEnumType()){const n={displayType:o,title:e.get("title"),enumValues:e.getEnumValues()};t=Ss.extend({},Pl.getEnumInputOptions(n),t)}else(function(e){return e&&e.indexOf("array")>=0})(o)&&i&&(t.type="checkboxset",t.input=null,t.options=Yu(i));return t}(e),n=function(e){const t=e.get("__displayType__"),n=e.get("__possibleValues__"),o=e.get("name"),i={type:"text",name:o,label:e.get("title")||o};switch(t){case"arrayofstring":i.input=Ku,i.params={itemType:"string"};break;case"arrayofnumber":i.input=Ku,i.params={itemType:"number"};break;case"arrayofinteger":i.input=Ku,i.params={itemType:"integer"};break;case"arrayofobject":i.input=Ku,i.params={itemType:e.get("items").type};break;case"arrayofref-id":i.input=Ku,i.params={itemType:e.get("items").format};break;case"boolean":i.input=Bu;break;case"integer":case"number":i.to=Gu;break;case"reference":i.type="select",i.options=Yu(n);break;case"image":i.readOnly=!0,i.from=function(e){return Ss.isEmpty(e)?"":ml.localize("user.profile.image.image_set","courage")};break;case"password":i.type="password";break;case"date":i.type="date";break;case"uri":case"country-code":case"country_code":case"language-code":case"language_code":case"email":case"locale":case"timezone":case"string":case"object":break;default:throw new Error(`unknown type: ${t}`)}return i}(e);return t.params&&n.params&&(t.params=Ss.defaults(t.params,n.params)),Ss.defaults(t,n)},hasValidSchemaProps:function(e,t){return!Ss.isEmpty(e)&&!!Zu(e,t).length},prepareSchema:function(e,t,n){return e.reset(Zu(e,t)),Xu(e,t,n)},augmentSchemaProps:Xu,augmentSchemaProp:Qu};!function(){var e=Cs(),t=e;e.fn.customInput=function(){return t(this).each(function(){if(t(this).is("[type=checkbox],[type=radio]")){var e=t(this),n=e.siblings('label[for="'+e.attr("id")+'"]:first');n.length||(n=e.closest('label[for="'+e.attr("id")+'"]:first')),e.add(n).wrapAll('<div class="custom-'+e.attr("type")+'"></div>'),n.hover(function(){t(this).addClass("hover")},function(){t(this).removeClass("hover")}),e.bind("updateState",function(){e.is(":checked")?n.addClass("checked"):n.removeClass("checked checkedHover checkedFocus")}
2).trigger("updateState").click(function(){t('input[name="'+t(this).attr("name")+'"]').trigger("updateState")}).focus(function(){n.addClass("focus"),e.is(":checked")&&t(this).addClass("checkedFocus")}).blur(function(){n.removeClass("focus checkedFocus")})}})}}();var tp=Ru.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="checkbox" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:29},end:{line:1,column:37}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:43},end:{line:1,column:54}}}):r)+'"/><label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:69},end:{line:1,column:80}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:100},end:{line:1,column:108}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:i,loc:{start:{line:1,column:110},end:{line:1,column:125}}}):r)+"</label>"},useData:!0}),events:{"change :checkbox":"update",keyup:function(e){e.preventDefault(),Mc.isSpaceBar(e)?this.$(":checkbox").click():Mc.isEnter(e)&&this.model.trigger("form:save")}},editMode:function(){let e=Ss.resultCtx(this.options,"placeholder",this);return""===e?e=Ss.resultCtx(this.options,"label",this):!1===e&&(e=""),this.$el.html(this.template(Ss.extend(Ss.omit(this.options,"placeholder"),{placeholder:e}))),this.$(":checkbox").prop("checked",this.getModelValue()||!1),this.$("input").customInput(),this.model.trigger("form:resize"),this},readMode:function(){return this.editMode(),this.$(":checkbox").prop("disabled",!0),this},val:function(){return this.$(":checkbox").prop("checked")},focus:function(){return this.$(":checkbox").focus()}});!function(){var e,t,n=Cs(),o="placeholder"in document.createElement("input"),i="placeholder"in document.createElement("textarea"),r=n.fn,a=n.valHooks;function s(e,t){var o=this,i=n(o);if(o.value==i.attr("placeholder")&&i.hasClass("placeholder"))if(i.data("placeholder-password")){if(i=i.hide().next().show().attr("id",i.removeAttr("id").data("placeholder-id")),!0===e)return i[0].value=t;i.focus()}else o.value="",i.removeClass("placeholder"),o==document.activeElement&&o.select()}function l(){var e,t,o,i=this,r=n(i),a=this.id;if(""==i.value){if("password"==i.type){if(!r.data("placeholder-textinput")){try{e=r.clone().attr({type:"text"})}catch(i){e=n("<input>").attr(n.extend((t={}
2,o=/^jQuery\d+$/,n.each(this.attributes,function(e,n){n.specified&&!o.test(n.name)&&(t[n.name]=n.value)}),t),{type:"text"}))}e.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":a}).bind("focus.placeholder",s),r.data({"placeholder-textinput":e,"placeholder-id":a}).before(e)}r=r.removeAttr("id").hide().prev().attr("id",a).show()}r.addClass("placeholder"),r[0].value=r.attr("placeholder")}else r.removeClass("placeholder")}o&&i?(t=r.placeholder=function(){return this}).input=t.textarea=!0:((t=r.placeholder=function(){return this.filter((o?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":s,"blur.placeholder":l}).data("placeholder-enabled",!0).trigger("blur.placeholder"),this}).input=o,t.textarea=i,e={get:function(e){var t=n(e);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,t){var o=n(e);return o.data("placeholder-enabled")?(""==t?(e.value=t,e!=document.activeElement&&l.call(e)):o.hasClass("placeholder")&&s.call(e,!0,t)||(e.value=t),o):e.value=t}},o||(a.input=e),i||(a.textarea=e),n(function(){n(document).delegate("form","submit.placeholder",function(){var e=n(".placeholder",this).each(s);setTimeout(function(){e.each(l)},10)})}),n(window).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))}();const np="okta-form-input-field input-fix";var op=Ru.extend({template:_s.template({0:function(e,t,n,o,i){return'<span class="input-tooltip icon form-help-16"></span>'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon input-icon '+e.escapeExpression(e.lambda(null!=(r=null!=t?a(t,"params"):t)?a(r,"icon"):r,t))+'"></span>'},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"autoComplete")||(null!=t?a(t,"autoComplete"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"autoComplete",hash:{},data:i,loc:{start:{line:1,column:333},end:{line:1,column:349}}}):r)},3:function(e,t,n,o,i){return"off"},4:function(e,t,n,o,i){return'<span class="input-icon-divider"></span>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=p(n,"if").call(s,null!=(r=null!=t?p(t,"params"):t)?p(r,"innerTooltip"):r,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:87}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=(r=null!=t?p(t,"params"):t)?p(r,"icon"):r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:87},end:{line:1,column:166}}}))?r:"")+'<input type="'+u(typeof(a=null!=(a=p(n,"type")||(null!=t?p(t,"type"):t))?a:l)===c?a.call(s,{name:"type",hash:{},data:i,loc:{start:{line:1,column:179},end:{line:1,column:187}}}):a)+'" placeholder="'+u(typeof(a=null!=(a=p(n,"placeholder")||(null!=t?p(t,"placeholder"):t))?a:l)===c?a.call(s,{name:"placeholder",hash:{},data:i,loc:{start:{line:1,column:202},end:{line:1,column:217}}}):a)+'" name="'+u(typeof(a=null!=(a=p(n,"name")||(null!=t?p(t,"name"):t))?a:l)===c?a.call(s,{name:"name",hash:{},data:i,loc:{start:{line:1,column:225},end:{line:1,column:233}}}):a)+'" id="'+u(typeof(a=null!=(a=p(n,"inputId")||(null!=t?p(t,"inputId"):t))?a:l)===c?a.call(s,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:239},end:{line:1,column:250}}}):a)+'" value="'+u(typeof(a=null!=(a=p(n,"value")||(null!=t?p(t,"value"):t))?a:l)===c?a.call(s,{name:"value",hash:{},data:i,loc:{start:{line:1,column:259},end:{line:1,column:268}}}):a)+'" aria-label="'+u(typeof(a=null!=(a=p(n,"placeholder")||(null!=t?p(t,"placeholder"):t))?a:l)===c?a.call(s,{name:"placeholder",hash:{},data:i,loc:{start:{line:1,column:282},end:{line:1,column:297}}}):a)+'" autocomplete="'+(null!=(r=p(n,"if").call(s,null!=t?p(t,"autoComplete"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:313},end:{line:1,column:367}}}))?r:"")+'" />'+(null!=(r=p(n,"if").call(s,null!=(r=null!=t?p(t,"params"):t)?p(r,"iconDivider"):r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:371},end:{line:1,column:444}}}))?r:"")},useData:!0}
2),events:{"input input":"update","change input":"update","keydown input":"update","compositionend input":function(){this.isComposing=!1},"compositionstart input":function(){this.isComposing=!0},"keyup input":function(e){!Mc.isEnter(e)||window.okta&&window.okta.enableIMESupport?Mc.isEsc(e)&&this.model.trigger("form:cancel"):this.model.trigger("form:save")}},hasIMESupport:!0,constructor:function(){Ru.apply(this,arguments),this.$el.addClass("o-form-control")},editMode:function(){this.$el.addClass(np),Ru.prototype.editMode.apply(this,arguments),this.$("input").placeholder()},readMode:function(){Ru.prototype.readMode.apply(this,arguments),this.$el.addClass("no-translate"),"password"===this.options.type&&this.$el.text("********"),this.$el.removeClass(np)},val:function(){let e=this.$('input[type="'+this.options.type+'"]').val();return"password"!==this.options.type&&(e=sl.trim(e)),e},focus:function(){return this.$("input").focus()},postRender:function(){const{params:e}=this.options;if(e&&e.innerTooltip){const t=function(e){return function(e){const t=e.title,n=e.text;return t&&n&&t!==n}(e)?e:{text:e.text||e}}(e.innerTooltip);this.$(".input-tooltip").qtip({content:t,style:{classes:"okta-tooltip qtip-custom qtip-shadow"},position:{my:"bottom left",target:"mouse",adjust:{method:"flip",mouse:!0,y:-5,x:5},viewport:sl("body")}})}}});const ip=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<span class="password-toggle"><span class="eyeicon visibility-16 button-show"></span><span class="eyeicon visibility-off-16 button-hide"></span></span>'},useData:!0});var rp=op.extend({initialize:function(){this.__showPasswordToggle()&&(this.events["click .password-toggle .button-show"]="__showPassword",this.events["click .password-toggle .button-hide"]="__hidePassword"),this.delegateEvents()},postRender:function(){this.isEditMode()&&this.__showPasswordToggle()&&(this.$el.append(ip),this.$el.find('input[type="password"]').addClass("password-with-toggle")),op.prototype.postRender.apply(this,arguments)},val:function(){return this.$('input[type="'+this.options.type+'"]').val()},__showPasswordToggle:function(){return this.options.params&&this.options.params.showPasswordToggle},__showPassword:function(){this.$("input").attr("spellcheck",!1),op.prototype.changeType.apply(this,["text"]),this.$(".password-toggle .button-show").hide(),this.$(".password-toggle .button-hide").show(),this.passwordToggleTimer=Ss.delay(()=>{this.__hidePassword()},3e4)},__hidePassword:function(){op.prototype.changeType.apply(this,["password"]),this.$(".password-toggle .button-show").show(),this.$(".password-toggle .button-hide").hide(),this.passwordToggleTimer&&clearTimeout(this.passwordToggleTimer)}});const ap=Uc.isABaseView,sp=pc.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="radio" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:26},end:{line:1,column:34}}}):r)+'" data-se-name="'+c(typeof(r=null!=(r=u(n,"realName")||(null!=t?u(t,"realName"):t))?r:s)===l?r.call(a,{name:"realName",hash:{},data:i,loc:{start:{line:1,column:50},end:{line:1,column:62}}}):r)+'" value="'+c(typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:s)===l?r.call(a,{name:"value",hash:{},data:i,loc:{start:{line:1,column:71},end:{line:1,column:80}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"optionId")||(null!=t?u(t,"optionId"):t))?r:s)===l?r.call(a,{name:"optionId",hash:{},data:i,loc:{start:{line:1,column:86},end:{line:1,column:98}}}):r)+'"><label for="'+c(typeof(r=null!=(r=u(n,"optionId")||(null!=t?u(t,"optionId"):t))?r:s)===l?r.call(a,{name:"optionId",hash:{},data:i,loc:{start:{line:1,column:112},end:{line:1,column:124}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"realName")||(null!=t?u(t,"realName"):t))?r:s)===l?r.call(a,{name:"realName",hash:{},data:i,loc:{start:{line:1,column:144},end:{line:1,column:156}}}):r)+'" class="radio-label">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:i,loc:{start:{line:1,column:178},end:{line:1,column:187}}}):r)+"</label>"},useData:!0}
2),initialize:function(e){let t;t=e.explain,Ss.isFunction(t)&&!ap(t)&&(t=Ss.resultCtx(this.options,"explain",this)),t&&(ap(t)?(this.add('<p class="o-form-explain"></p>',".radio-label"),this.add(t,".o-form-explain")):this.add(pc.extend({className:"o-form-explain",tagName:"p",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"explain")||(null!=t?a(t,"explain"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"explain",hash:{},data:i,loc:{start:{line:1,column:0},end:{line:1,column:11}}}):r)},useData:!0})}),".radio-label"))}});var lp=Ru.extend({events:{"change :radio":"update",keyup:function(e){Mc.isSpaceBar(e)?sl(e.target).click():Mc.isEnter(e)&&this.model.trigger("form:save")}},editMode:function(){const e=[];this.$el.empty(),Ss.each(this.options.options,function(t,n){const o={optionId:Ss.uniqueId("option"),name:this.options.inputId,realName:this.options.name,value:n};Ss.isObject(t)||(t={label:t}),Ss.extend(o,t),e.push(new sp(o).render().el)},this),this.$el.append(e);let t=this.getModelValue();return t&&this.$(":radio[value="+t+"]").prop("checked",!0),this.$("input").customInput(),this.model.trigger("form:resize"),!0===this.getParam("inline")&&this.$("div.custom-radio").addClass("inline"),this},readMode:function(){return this.editMode(),this.$(":radio").prop("disabled",!0),this},val:function(){return this.$(":radio:checked").val()},focus:function(){return this.$("label:eq(0)").focus()}});const cp=Ru.extend({tagName:"span",initialize:function(){this.$el.text(this.getModelValue())},editMode:function(){this.toggle(!0)},readMode:function(){this.toggle(!1)},getModelValue:function(){return this.options.label},toggle:function(e){this.$el.toggleClass("o-form-label-inline",e),this.$el.toggleClass("o-form-control",!e)},focus:Ss.noop}),up=pc.extend({getParams:Ru.prototype.getParams,getParam:Ru.prototype.getParam,className:function(){let e;return this.getParam("noBaseClasses")?"":(e="text"===this.getParam("display")?"o-form-input-group-subtle":"o-form-input-group",t=this.getParam("inputs"),Ss.filter(t||[],function(e){return!Ss.contains(["label","button","select"],e.type)}).length>1&&(e+=" o-form-input-group-2"),e);var t},initialize:function(){Ss.each(this.getParam("inputs"),function(e){switch(e.type){case"label":this.add(cp,{options:e});break;case"button":this.add(function(e){return Tc(Ss.defaults({getReadModeString:Ss.constant(" "),focus:Ss.noop},Ss.pick(e,"click","title","href","icon")))}(e));break;default:e=Ss.defaults({model:this.model,params:Ss.extend({autoWidth:!0},e.params||{})},e),this.add(this.getParams().create(e))}},this)},focus:function(){this.first().focus()}});var pp=Ru.extend({constructor:function(e){this.inputGroupView=new up(e),Ru.apply(this,arguments)},editMode:function(){this.inputGroupView.remove(),this.inputGroupView=new up(this.options),this.$el.html(this.inputGroupView.render().el)},readMode:function(){this.getParam("useChildInputsReadMode")?this.editMode():Ru.prototype.readMode.apply(this,arguments)},toStringValue:function(){const e=this.inputGroupView.map(function(e){return e.getReadModeString()});return e.length&&Ss.every(e)?e.join(" "):" "},focus:function(){this.inputGroupView.focus()}},{LabelInput:cp,InputGroupView:up});sl.fn.scrollParent=function(e){const t=this.css("position"),n="absolute"===t,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){const e=sl(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&i.length?i:sl(this[0].ownerDocument||document)};const dp=bc.extend({render:function(...e){return pc.prototype.render.apply(this,e),this}}),hp=ju.extend({editMode:function(){return this.params=Object.assign({chosen:!1},this.params),ju.prototype.editMode.apply(this,arguments)},appendOptions:function(){if(!this.getOptions())return;const e=this.getOptions(),t=Object.keys(e);this.applySortByKey(t),t.forEach(t=>{t?this.$select.append(this.option({key:t,value:e[t]}
2)):this.$select.prepend(this.option({key:"",value:ml.localize("select.default_value","login")}))}),Ss.defer(Ss.bind(this.update,this))},remove:function(){return Ru.prototype.remove.apply(this,arguments)}});sc.prototype.compileTemplate=function(e){const t=function(){return e};return t.source="",t};const fp={"input input":"update","change input":"update","keydown input":"update","keyup input":function(e){Mc.isEsc(e)&&this.model.trigger("form:cancel")}},mp=op.extend({events:fp}),gp=rp.extend({events:fp}),yp=Tu.extend({scrollOnError:function(){const{settings:e}=this.options;return!1!==e.get("features.scrollOnError")}}),vp=ml.localize,bp=Tc,wp=Pu,_p=uu.register,kp=js,xp=pc,Sp=gc,Tp={util:{Util:Uc,Cookie:Pc,Clipboard:Lc,Logger:il,Class:Ec,Keys:Mc},views:{components:{BaseDropDown:zc,Notification:hc},forms:{helpers:{FormUtil:Zc,SchemaFormFactory:ep},components:{Toolbar:nu},inputs:{TextBox:mp,PasswordBox:gp,CheckBox:tp,Radio:lp,Select:hp,InputGroup:pp}}},models:{BaseSchema:Yl,SchemaProperty:zl}};_p("text",mp),_p("password",gp),_p("checkbox",tp),_p("radio",lp),_p("select",hp),_p("group",pp);var Ep=n(33231),Cp=n.n(Ep);const Op=["OAuthError","AuthSdkError","AuthPollStopError","AuthApiError"];var Ap=Gs.extend({doTransaction:function(e,t){const n=this;return e.call(this,this.appState.get("transaction")).then(function(e){return n.trigger("setTransaction",e),e}).catch(function(e){if("AuthPollStopError"!==e.name&&e.name!==Mr.AUTH_STOP_POLL_INITIATION_ERROR&&e.name!==Mr.WEBAUTHN_ABORT_ERROR&&(n.trigger("error",n,e.xhr),n.trigger("setTransactionError",e),t||-1===Ss.indexOf(Op,e.name)))throw e})},manageTransaction:function(e){const t=this,n=e.call(this,this.appState.get("transaction"),Ss.bind(this.setTransaction,this));return Cp().isPromiseAlike(n)?n.catch(function(e){"AuthPollStopError"!==e.name&&e.name!==Mr.AUTH_STOP_POLL_INITIATION_ERROR&&e.name!==Mr.WEBAUTHN_ABORT_ERROR&&(t.trigger("error",t,e.xhr),t.trigger("setTransactionError",e))}):Cp().resolve(n)},startTransaction:function(e){const t=this,n=e.call(this,this.settings.getAuthClient());return Cp().isPromiseAlike(n)?n.then(function(e){return t.trigger("setTransaction",e),e}).catch(function(e){throw t.trigger("error",t,e.xhr),t.trigger("setTransactionError",e),e}):Cp().resolve(n)},setTransaction:function(e){this.appState.set("transaction",e)}}),Pp=dp.extend({addListeners:function(){this.listenTo(this.model,"save",function(){const e=Ss.find(this.getChildren(),function(e){return e instanceof yp});e.disableSubmitButton&&!e.disableSubmitButton()||this.toggleButtonState(!0)}),this.listenTo(this.model,"error",function(){this.toggleButtonState(!1)}),this.addModelListeners(this.model)},addModelListeners:function(e){const t=e=>{this.options.appState.set("transaction",e)},n=e=>{this.options.appState.set("transactionError",e)};this.listenTo(e,"setTransaction",t),this.listenTo(e,"setTransactionError",n);const o=e.get("backupFactor");o&&(this.listenTo(o,"setTransaction",t),this.listenTo(o,"setTransactionError",n))},fetchInitialData:function(){return Cp()()},trapAuthResponse:function(){return!1},toJSON:function(){const e=dp.prototype.toJSON.apply(this,arguments);return Ss.extend(Ss.pick(this.options,"appState"),e)},toggleButtonState:function(e){this.$el.find(".button").toggleClass("link-button-disabled",e).prop("disabled",e)},postRenderAnimation:function(){this.trigger("pageRendered",{page:this.className}),this.trigger("afterRender",{controller:this.className})}});const Np="INPUT",Rp="BUTTON",Ip="DIVIDER",Dp="TOOLBAR",Lp="VIEW";function Mp(e){return function(t,n){return{type:e,viewOptions:t,addOptions:n}}}var Up={Input:Mp(Np),Button:Mp(Rp),Divider:Mp(Ip),Toolbar:Mp(Dp),View:Mp(Lp),INPUT:Np,BUTTON:Rp,DIVIDER:Ip,TOOLBAR:Dp,VIEW:Lp};let{Toolbar:jp}=Tp.views.forms.components,{FormUtil:Fp}=Tp.views.forms.helpers;const Vp=yp.extend({layout:"o-form-theme",noCancelButton:!0,constructor:function(e){yp.call(this,e),Ss.each(Ss.result(this,"formChildren")||[],function(e){switch(e.type){case Up.INPUT:this.addInput(Ss.extend({label:!1,"label-top":!0},e.viewOptions));break;case Up.BUTTON:this.add(bp(Ss.extend({model:this.model},e.viewOptions)),e.addOptions),Fp.applyShowWhen(this.last(),e.viewOptions&&e.viewOptions.showWhen);break;case Up.DIVIDER:this.addDivider(e.viewOptions);break;case Up.TOOLBAR:this.add(jp,{options:e.viewOptions}),Fp.applyShowWhen(this.last(),e.viewOptions&&e.viewOptions.showWhen);break;case Up.VIEW:this.add(e.viewOptions.View,e.addOptions),Fp.applyShowWhen(this.last(),e.viewOptions.showWhen);break;default:throw new Error("Unrecognized child type: "+e.type)}},this)}});var qp=Pp.extend({constructor:function(){const e=this.initialize;if(this.initialize=function(){},Pp.apply(this,arguments),this.Model&&this.Form){const e=Ap.extend(Ss.extend({parse:function(e){return this.settings=e.settings,this.appState=e.appState,Ss.omit(e,["settings","appState"])}},Ss.result(this,"Model")));this.model=new e({settings:this.settings,appState:this.options.appState},{parse:!0});const t=Vp.extend(Ss.result(this,"Form",this));this.form=new t(this.toJSON()),this.add(this.form)}this.Footer&&this.addFooter(this.Footer),this.addListeners(),e.apply(this,arguments)},addFooter:function(e,t){this.footer=new e(Ss.extend(this.toJSON(),t||{})),this.add(this.footer)},toJSON:function(){const e=Pp.prototype.toJSON.apply(this,arguments);return Ss.extend(Ss.pick(this.options,"appState"),e)},back:function(){this.footer&&this.footer.back&&this.footer.back()}}),Bp=qp.extend({className:"account-unlocked",Model:function(){return{local:{userFullName:["string",!1,this.options.appState.get("userFullName")]}}},Form:{title:Ss.partial(vp,"account.unlock.unlocked.title","login"),subtitle:Ss.partial(vp,"account.unlock.unlocked.desc","login"),noButtonBar:!0,attributes:{"data-se":"account-unlocked"},formChildren:function(){return[Up.Button({title:vp("goback","login"),className:"button button-primary button-wide",attributes:{"data-se":"back-button"},click:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")}})]}}}),$p=n(24417),Hp=n.n($p),zp=n(16231),Wp=n.n(zp);const Kp={MILLISECOND:"milliseconds",SECOND:"seconds",MINUTE:"minutes",HOUR:"hours",DAY:"days"},Gp=Object.keys(Kp),Yp=function(e){const t=Gp.filter(t=>Kp[t]===e);return 1===t.length?t[0]:e};var Jp=(e,t,n=!0)=>{try{if(!(e instanceof Date)||isNaN(e.valueOf()))return null;if(null===t)return null;n&&e.setMinutes(0,0,0);const o={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};
2return e.toLocaleString(t,o)}catch(e){return null}};const Qp={},Xp={OKTA_VERIFY:{label:"factor.totpSoft.oktaVerify",description:"factor.totpSoft.description",iconClassName:"mfa-okta-verify",sortOrder:1},OKTA_VERIFY_PUSH:{label:"factor.oktaVerifyPush",description:"factor.push.description",iconClassName:"mfa-okta-verify",sortOrder:1},U2F:{label:"factor.u2f",description:e=>e?"factor.u2f.description.specific":"factor.u2f.description.generic",iconClassName:"mfa-u2f",sortOrder:2},WEBAUTHN:{label:"factor.webauthn.biometric",description:"factor.webauthn.biometric.description",iconClassName:"mfa-webauthn",sortOrder:2},WINDOWS_HELLO:{label:"factor.windowsHello",description:e=>e?"factor.windowsHello.signin.description.specific":"factor.windowsHello.signin.description.generic",iconClassName:"mfa-windows-hello",sortOrder:3},YUBIKEY:{label:"factor.totpHard.yubikey",description:"factor.totpHard.yubikey.description",iconClassName:"mfa-yubikey",sortOrder:4},GOOGLE_AUTH:{label:"factor.totpSoft.googleAuthenticator",description:"factor.totpSoft.description",iconClassName:"mfa-google-auth",sortOrder:5},CUSTOM_HOTP:{label:"",description:"factor.hotp.description",iconClassName:"mfa-hotp",sortOrder:6},SMS:{label:"factor.sms",description:"factor.sms.description",iconClassName:"mfa-okta-sms",sortOrder:7},CALL:{label:"factor.call",description:"factor.call.description",iconClassName:"mfa-okta-call",sortOrder:8},EMAIL:{label:"factor.email",description:"factor.email.description",iconClassName:"mfa-okta-email",sortOrder:9},QUESTION:{label:"factor.securityQuestion",description:"factor.securityQuestion.description",iconClassName:"mfa-okta-security-question",sortOrder:10},DUO:{label:"factor.duo",description:"factor.duo.description",iconClassName:"mfa-duo",sortOrder:11},SYMANTEC_VIP:{label:"factor.totpHard.symantecVip",description:"factor.totpHard.description",iconClassName:"mfa-symantec",sortOrder:12},RSA_SECURID:{label:"factor.totpHard.rsaSecurId",description:"factor.totpHard.description",iconClassName:"mfa-rsa",sortOrder:13},ON_PREM:{label:"",description:"factor.totpHard.description",iconClassName:"mfa-onprem",sortOrder:14},PASSWORD:{label:"factor.password",description:"",iconClassName:"mfa-okta-password",sortOrder:15},CUSTOM_CLAIMS:{label:"",description:"factor.customFactor.description",iconClassName:"mfa-custom-factor",sortOrder:16},GENERIC_SAML:{label:"",description:e=>e?"factor.customFactor.description.specific":"factor.customFactor.description.generic",iconClassName:"mfa-custom-factor",sortOrder:17},GENERIC_OIDC:{label:"",description:e=>e?"factor.customFactor.description.specific":"factor.customFactor.description.generic",iconClassName:"mfa-custom-factor",sortOrder:18}},Zp=function(e,t){return e.age&&e.age.minAgeMinutes>0?function(e){let n;switch(e.unit){case"DAY":n=t.age.days.i18n;break;case"HOUR":n=t.age.hours.i18n;break;case"MINUTE":n=t.age.minutes.i18n}return ra(n,"login",[e.time])}(function(e,t){const n={days:0,hours:0,minutes:0,seconds:0,milliseconds:0},o=Kp[t]||t;let i;try{const t=Hp()(Object.assign(n,{[o]:e}));i=Wp()(t)}catch(e){i={}}const r=Object.keys(i).reduce((e,t)=>(0!==i[t]&&(e[t]=i[t]),e),{});let a,s;return 1===Object.keys(r).length?Object.keys(r).forEach(e=>{s=r[e],a=e}):(s=e,a=o),{time:s,unit:Yp(a)}}(e.age.minAgeMinutes,"MINUTE")):null},ed=function(e,t,n){const o={complexity:[],history:[],age:[]};o.complexity=function(e,t){if(e.complexity){const n=t.complexity,o=function(e){const t=e.excludeAttributes;return e.excludeFirstName=Rr.contains(t,"firstName"),e.excludeLastName=Rr.contains(t,"lastName"),Rr.omit(e,"excludeAttributes")}(e.complexity);let i=o;if(o.useADComplexityRequirements){const e=["minLength","useADComplexityRequirements","excludeUsername","excludeFirstName","excludeLastName","excludeAttributes"];i=Rr.pick(o,e)}const r=Rr.map(i,function(e,t){if(e<=0)return;const o=n[t];return o.args?ra(o.i18n,"login",[e]):ra(o.i18n,"login")});return Rr.compact(r)}return[]}(e,t);const i=function(e,t,n){return e.age&&e.age.historyCount>0?n?1===e.age.historyCount?ra(t.history.one.i18n,"login"):ra(t.history.many.i18n,"login",[e.age.historyCount]):ra(t.history.i18n,"login",[e.age.historyCount]):null}(e,t,n);i&&o.history.push(i);const r=Zp(e,t);return r&&o.age.push(r),o};Qp.getFactorName=function(e,t){return"OKTA"===e&&"token:software:totp"===t?"OKTA_VERIFY":"OKTA"===e&&"push"===t?"OKTA_VERIFY_PUSH":"GOOGLE"===e?"GOOGLE_AUTH":"SYMANTEC"===e&&"token"===t?"SYMANTEC_VIP":"RSA"===e&&"token"===t?"RSA_SECURID":"DEL_OATH"===e&&"token"===t?"ON_PREM":"DUO"===e&&"web"===t?"DUO":"YUBICO"===e&&"token:hardware"===t?"YUBIKEY":"OKTA"===e&&"sms"===t?"SMS":"OKTA"===e&&"call"===t?"CALL":"OKTA"===e&&"question"===t?"QUESTION":"OKTA"===e&&"email"===t?"EMAIL":"OKTA"===e&&"password"===t?"PASSWORD":"GENERIC_SAML"===e&&"assertion:saml2"===t?"GENERIC_SAML":"GENERIC_OIDC"===e&&"assertion:oidc"===t?"GENERIC_OIDC":Qp.getFactorNameForFactorType.call(this,t)},Qp.getFactorNameForFactorType=function(e){return"u2f"===e?"U2F":"token:software:totp"===e?"OKTA_VERIFY":"webauthn"===e?this.settings.get("features.webauthn")?"WEBAUTHN":"WINDOWS_HELLO":"token:hotp"===e?"CUSTOM_HOTP":"claims_provider"===e?"CUSTOM_CLAIMS":void 0},Qp.isOktaVerify=function(e,t){return"OKTA"===e&&("token:software:totp"===t||"push"===t)},Qp.getFactorLabel=function(e,t){const n=Xp[Qp.getFactorName.apply(this,[e,t])].label;return ra(n,"login")},Qp.getFactorDescription=function(e,t){const n=Xp[Qp.getFactorName.apply(this,[e,t])].description;if(Rr.isFunction(n)){const e=this.settings.get("brandName"),t=n(e);return e?ra(t,"login",[e]):ra(t,"login")}return n?ra(n,"login"):""},Qp.getFactorIconClassName=function(e,t){return Xp[Qp.getFactorName.apply(this,[e,t])].iconClassName},Qp.getFactorSortOrder=function(e,t){return Xp[Qp.getFactorName.apply(this,[e,t])].sortOrder},Qp.getRememberDeviceValue=function(e){return e&&e.get("rememberDeviceByDefault")},Qp.getSecurityQuestionLabel=function(e){const t=ra("security."+e.question);return t.indexOf("L10N_ERROR")<0?t:e.questionText},Qp.removeRequirementsFromError=function(e,t){const n=this.getPasswordComplexityDescription(t);return e.errorCauses&&e.errorCauses.length>0&&Rr.isString(e.errorCauses[0].errorSummary)&&(e.errorCauses[0].errorSummary=e.errorCauses[0].errorSummary.replace(n,"").trim()),e},Qp.getPasswordComplexityDescriptionForHtmlList=function(e){const t=ed(e,{complexity:{minLength:{i18n:"password.complexity.length.description",args:!0},minLowerCase:{i18n:"password.complexity.lowercase.description"},minUpperCase:{i18n:"password.complexity.uppercase.description"},minNumber:{i18n:"password.complexity.number.description"},minSymbol:{i18n:"password.complexity.symbol.description"},excludeUsername:{i18n:"password.complexity.no_username.description"}
2,excludeFirstName:{i18n:"password.complexity.no_first_name.description"},excludeLastName:{i18n:"password.complexity.no_last_name.description"},useADComplexityRequirements:{i18n:"password.complexity.adRequirements.description"},maxConsecutiveRepeatingCharacters:{i18n:"password.complexity.maxConsecutiveRepeatingCharacters.description",args:!0}},history:{one:{i18n:"password.complexity.history.one.description"},many:{i18n:"password.complexity.history.description"}},age:{minutes:{i18n:"password.complexity.minAgeMinutes.description"},hours:{i18n:"password.complexity.minAgeHours.description"},days:{i18n:"password.complexity.minAgeDays.description"}}},!0);return Rr.union(t.complexity,t.history,t.age)},Qp.getPasswordComplexityDescription=function(e){const t=[],n=ed(e,{complexity:{minLength:{i18n:"password.complexity.length",args:!0},minLowerCase:{i18n:"password.complexity.lowercase"},minUpperCase:{i18n:"password.complexity.uppercase"},minNumber:{i18n:"password.complexity.number"},minSymbol:{i18n:"password.complexity.symbol"},excludeUsername:{i18n:"password.complexity.no_username"},excludeFirstName:{i18n:"password.complexity.no_first_name"},excludeLastName:{i18n:"password.complexity.no_last_name"},useADComplexityRequirements:{i18n:"password.complexity.adRequirements"},maxConsecutiveRepeatingCharacters:{i18n:"password.complexity.maxConsecutiveRepeatingCharacters",args:!0}},history:{i18n:"password.complexity.history"},age:{minutes:{i18n:"password.complexity.minAgeMinutes"},hours:{i18n:"password.complexity.minAgeHours"},days:{i18n:"password.complexity.minAgeDays"}}},!1);let o=n.complexity;return o.length>0&&(o=Rr.reduce(o,function(e,t){return e?e+ra("password.complexity.list.element","login",[t]):t}),t.push(ra("password.complexity.requirements","login",[o]))),t.push(n.history[0]),t.push(n.age[0]),Rr.compact(t).join(" ")},Qp.getCardinalityText=function(e,t,n){if(n){if(e)return 1===n.enrolled?"":ra("enroll.choices.cardinality.setup","login",[n.enrolled]);if(t&&n.maximum>1)return ra("enroll.choices.cardinality.setup.remaining","login",[n.enrolled,n.minimum])}return""},Qp.findFactorInFactorsArray=function(e,t,n){let o=e.findWhere({provider:t,factorType:n});return void 0===o&&(o=e.findWhere({factorType:n})),o};const{TextBox:td}=Tp.views.forms.inputs;var nd=td.extend({postRender:function(){"number"===this.options.type&&this.$("input").attr({pattern:"[0-9]*",inputmode:"numeric"}),td.prototype.postRender.apply(this,arguments)},focus:function(){if(!Gr.isIE())return td.prototype.focus.apply(this,arguments)}});const od={title:function(){const e=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return vp("enroll.totp.title","login",[e])},subtitle:Ss.partial(vp,"enroll.totp.enterCode","login"),autoSave:!0,noButtonBar:!0,attributes:{"data-se":"step-sendcode"},formChildren:function(){return[Up.Input({label:vp("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("mfa.challenge.enterCode.tooltip","mfa.challenge.enterCode.placeholder","login"),"explain-top":!0,name:"passCode",input:nd,type:"tel"}),Up.Toolbar({noCancelButton:!0,save:vp("oform.verify","login")})]}};var id=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"mfa.backToFactors"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:106}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.options.appState.trigger("backToFactors"),this.back()}},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.get("prevLink")?this.model.doTransaction(function(e){return e.prev()}):this.options.appState.trigger("navigate","signin/enroll")}}),rd=qp.extend({className:"activate-totp",Model:function(){return{props:{factorId:["string",!0,this.options.appState.get("activatedFactorId")],passCode:["string",!0]},local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},save:function(){return this.doTransaction(function(e){return e.activate({passCode:this.get("passCode")})})}}},Form:od,Footer:id}),ad=xp.extend({className:"scope-item",template:_s.template({0:function(e,t,n,o,i){return'<span class="scope-item-tooltip icon form-help-16" />'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="scope-item-text no-translate">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"name")||(null!=t?l(t,"name"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:i,loc:{start:{line:1,column:40},end:{line:1,column:48}}}):a)+"</p>
2"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"description"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:52},end:{line:1,column:131}}}))?r:"")},useData:!0}),postRender:function(){this.$(".scope-item-tooltip").qtip({content:{text:Ss.escape(this.options.description)},style:{classes:"okta-tooltip qtip-custom qtip-shadow"},position:{my:"bottom left",target:"mouse"}})}});const sd={groups:"user",myAccount:"user",users:"user",apps:"resource",authenticators:"resource",authorizationServers:"resource",clients:"resource",domains:"resource",factors:"resource",idps:"resource",linkedObjects:"resource",policies:"resource",templates:"resource",eventHooks:"hook",inlineHooks:"hook",events:"system",logs:"system",orgs:"system",roles:"system",schemas:"system",sessions:"system",trustedOrigins:"system"},ld=({name:e=""})=>{const t=e.split(".")[1];return sd[t]||"system"},cd=xp.extend({className:"scope-group",events:{click:"expandScopes"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="scope-group--header"><h3>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"groupName")||(null!=t?a(t,"groupName"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"groupName",hash:{},data:i,loc:{start:{line:1,column:37},end:{line:1,column:50}}}):r)+'</h3><span class="scope-group--toggle"><svg class="caret" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="path" fill-rule="evenodd" clip-rule="evenodd" d="M5.99967 4.66663L10.2663 8.66663L11.333 7.66663L5.99967 2.66663L0.666342 7.73636L1.73301 8.66663L5.99967 4.66663Z" fill="#A0A7AC"></path></svg></span></div>'},useData:!0}),expandScopes:function(){this.$el.toggleClass("scope-group--is-expanded"),this.$(".caret").toggleClass("caret--is-rotated")},preRender:function(){Ss.chain(this.options.scopes).sortBy(({name:e})=>e).each(({name:e,displayName:t,description:n})=>{this.add(ad,{options:{name:t||e,description:n}})})}});var ud=xp.extend({className:"scope-list detail-row",postRender:function(){const e=this.model.get("scopes"),t=Ss.groupBy(e,ld),n={user:vp("admin.consent.group.user.group","login"),resource:vp("admin.consent.group.resource.policy","login"),hook:vp("admin.consent.group.hook","login"),system:vp("admin.consent.group.system","login")};Ss.each(n,(e,n)=>{const o=t[n];Array.isArray(o)&&this.add(cd,{options:{groupName:e,scopes:o}})})}});const pd=_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"clientURI")||(null!=t?a(t,"clientURI"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"clientURI",hash:{},data:i,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" target="_blank">'},1:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"customLogo")||(null!=t?c(t,"customLogo"):t))?r:s)?r.call(a,{name:"customLogo",hash:{},data:i,loc:{start:{line:1,column:149},end:{line:1,column:163}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:i,loc:{start:{line:1,column:170},end:{line:1,column:216}}}))+'" aria-hidden="true" />'},2:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"defaultLogo")||(null!=t?c(t,"defaultLogo"):t))?r:s)?r.call(a,{name:"defaultLogo",hash:{},data:i,loc:{start:{line:1,column:290},end:{line:1,column:305}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:i,loc:{start:{line:1,column:312},end:{line:1,column:358}}}))+'" aria-hidden="true" />'},3:function(e,t,n,o,i){return"</a>"},4:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="issuer"><span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"issuer")||(null!=t?a(t,"issuer"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"issuer",hash:{}
2,data:i,loc:{start:{line:1,column:566},end:{line:1,column:576}}}):r)+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:89},end:{line:1,column:388}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:388},end:{line:1,column:416}}}))?r:"")+'<h1><span class="title-text">'+(null!=(r=(s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{arguments:"appName",bundle:"login",code:"consent.required.text"},data:i,loc:{start:{line:1,column:445},end:{line:1,column:519}}}))?r:"")+"</span>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"issuer"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:526},end:{line:1,column:596}}}))?r:"")+"</h1>"},useData:!0}),dd={props:{scopes:["array",!0]},save:function(){return this.doTransaction(function(e){return e.consent({consent:{scopes:Ss.pluck(this.get("scopes"),"name")}})})},cancel:function(){var e=this;return this.doTransaction(function(e){return e.cancel()}).then(function(){var t=e.settings.get("consent.cancel");Ss.isFunction(t)&&t()})}},hd=xp.extend({className:"consent-title detail-row",template:pd,getTemplateData:function(){var e=this.options.appState;return{appName:e.escape("targetLabel"),customLogo:e.get("targetLogo")&&e.get("targetLogo").href,defaultLogo:e.get("defaultAppLogo"),clientURI:e.get("targetClientURI")&&e.get("targetClientURI").href,issuer:e.get("issuer")}}}),fd={noCancelButton:!1,buttonOrder:["cancel","save"],autoSave:!0,save:Ss.partial(vp,"consent.required.consentButton","login"),cancel:Ss.partial(vp,"consent.required.cancelButton","login"),formChildren:[Up.View({View:hd}),Up.View({View:ud})]},md=qp.extend({Model:dd,Form:fd,className:"admin-consent-required",initialize:function(){this.model.set("scopes",this.options.appState.get("scopes")),this.listenTo(this.form,"cancel",()=>{this.model.cancel()})}});class gd{constructor(){this.inline=!0}}class yd{constructor(){this.terminal=!0}}class vd extends Vr{constructor(e,t){super(e.message),this.errorType=void 0,this.orginalError=void 0,this.errorDetails=void 0,this.errorType=new t,this.orginalError=e,this.errorDetails={errorSummary:this.getErrorSummary(),errorCode:e.errorCode,errorCauses:"errorCauses"in e?e.errorCauses:void 0}}getErrorSummary(){return this.orginalError.errorSummary}is(e){var t;return Boolean(null===(t=Object.getOwnPropertyDescriptor(this.errorType,e))||void 0===t?void 0:t.value)}}class bd extends vd{}class wd extends vd{}class _d extends bd{constructor(e){super(e,yd)}getErrorSummary(){return ra("error.unsynced.clock","login")}}class kd extends bd{constructor(e){super(e,gd)}}class xd extends bd{constructor(e){super(e,gd)}
2getErrorSummary(){return ra("error.jit_failure","login")}}class Sd extends wd{constructor(e){super(e,gd)}getErrorSummary(){return ra("error.mfa.required","login")}}function Td(e){switch(e.errorCode){case"access_denied":return new kd(e);case"jit_failure_missing_fields":case"jit_failure_invalid_login_format":case"jit_failure_values_not_match_pattern":case"jit_failure_values_too_long":case"jit_failure_invalid_locale":return new xd(e);case"login_required":const t="The client specified not to prompt, but the client app requires re-authentication or MFA.";if(e.message===t)return new Sd(e);case"INTERNAL":const n="The JWT was issued in the future";if(e.message===n)return new _d(e);default:return new bd(e,Object)}}const Ed={},Cd=["responseType","scopes","state","nonce","idp","idpScope","display","prompt","maxAge","loginHint"];Ed.AUTH_PARAMS=Cd,Ed.getTokens=function(e,t,n){function o(t){e.callGlobalSuccess(Mr.SUCCESS,t)}function i(t){const o=Td(t);o.is("terminal")?(n.model.appState.set("flashError",o),n.model.appState.trigger("navigate","signin/error")):o.is("inline")&&(n.model.trigger("error",n.model,{responseJSON:{errorSummary:o.errorDetails.errorSummary}}),n.model.appState.trigger("removeLoading")),o.is("terminal")||ca.triggerAfterError(n,o,e),o instanceof wd&&e.callGlobalError(o)}const r=e.getAuthClient(),a=r.isAuthorizationCodeFlow()&&!r.isPKCE(),s=e.toJSON({verbose:!0}),l={};Rr.extend(l,Rr.pick(s,"clientId","redirectUri"),Rr.pick(s.authParams,Cd),t),l.popupTitle=ra("socialauth.popup.title","login"),l.timeout=s.oAuthTimeout,"always"===s.redirect||a?r.token.getWithRedirect(l).catch(i):l.sessionToken?r.token.getWithoutPrompt(l).then(o).catch(i):(s.initialPopupPath&&(l.initialPath=s.initialPopupPath),r.token.getWithPopup(l).then(o).catch(i))};const Od={},Ad=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/verify/"+c(typeof(r=null!=(r=u(n,"provider")||(null!=t?u(t,"provider"):t))?r:s)===l?r.call(a,{name:"provider",hash:{},data:i,loc:{start:{line:1,column:14},end:{line:1,column:26}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorType")||(null!=t?u(t,"factorType"):t))?r:s)===l?r.call(a,{name:"factorType",hash:{},data:i,loc:{start:{line:1,column:27},end:{line:1,column:41}}}):r)},useData:!0}),Pd=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/verify/"+c(typeof(r=null!=(r=u(n,"provider")||(null!=t?u(t,"provider"):t))?r:s)===l?r.call(a,{name:"provider",hash:{},data:i,loc:{start:{line:1,column:14},end:{line:1,column:26}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorType")||(null!=t?u(t,"factorType"):t))?r:s)===l?r.call(a,{name:"factorType",hash:{},data:i,loc:{start:{line:1,column:27},end:{line:1,column:41}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorIndex")||(null!=t?u(t,"factorIndex"):t))?r:s)===l?r.call(a,{name:"factorIndex",hash:{},data:i,loc:{start:{line:1,column:42},end:{line:1,column:57}}}):r)},useData:!0}),Nd=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/verify/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"factorType")||(null!=t?a(t,"factorType"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"factorType",hash:{},data:i,loc:{start:{line:1,column:14},end:{line:1,column:28}}}):r)},useData:!0}),Rd=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/enroll/"+c(typeof(r=null!=(r=u(n,"provider")||(null!=t?u(t,"provider"):t))?r:s)===l?r.call(a,{name:"provider",hash:{},data:i,loc:{start:{line:1,column:14},end:{line:1,column:26}}}):r)+"/"+c(typeof(r=null!=(r=u(n,"factorType")||(null!=t?u(t,"factorType"):t))?r:s)===l?r.call(a,{name:"factorType",hash:{},data:i,loc:{start:{line:1,column:27},end:{line:1,column:41}}}):r)},useData:!0}
2),Id=_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"step")||(null!=t?a(t,"step"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"step",hash:{},data:i,loc:{start:{line:1,column:63},end:{line:1,column:71}}}):r)},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/enroll-activate/"+u(typeof(a=null!=(a=p(n,"provider")||(null!=t?p(t,"provider"):t))?a:l)===c?a.call(s,{name:"provider",hash:{},data:i,loc:{start:{line:1,column:23},end:{line:1,column:35}}}):a)+"/"+u(typeof(a=null!=(a=p(n,"factorType")||(null!=t?p(t,"factorType"):t))?a:l)===c?a.call(s,{name:"factorType",hash:{},data:i,loc:{start:{line:1,column:36},end:{line:1,column:50}}}):a)+(null!=(r=p(n,"if").call(s,null!=t?p(t,"step"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:50},end:{line:1,column:78}}}))?r:"")},useData:!0}),Dd=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/recovery/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"recoveryToken")||(null!=t?a(t,"recoveryToken"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"recoveryToken",hash:{},data:i,loc:{start:{line:1,column:16},end:{line:1,column:33}}}):r)},useData:!0}),Ld=_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"token")||(null!=t?a(t,"token"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"token",hash:{},data:i,loc:{start:{line:1,column:39},end:{line:1,column:48}}}):r)},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/refresh-auth-state"+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"token"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:25},end:{line:1,column:55}}}))?r:"")},useData:!0}),Md=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"signin/okta/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"username")||(null!=t?a(t,"username"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"username",hash:{},data:i,loc:{start:{line:1,column:12},end:{line:1,column:24}}}):r)},useData:!0}),Ud=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression(typeof(a=null!=(a=u(n,"baseUrl")||(null!=t?u(t,"baseUrl"):t))?a:l)===c?a.call(s,{name:"baseUrl",hash:{},data:i,loc:{start:{line:1,column:0},end:{line:1,column:11}}}):a)+"/login/sessionCookieRedirect?checkAccountSetupComplete=true&token="+(null!=(r=typeof(a=null!=(a=u(n,"token")||(null!=t?u(t,"token"):t))?a:l)===c?a.call(s,{name:"token",hash:{},data:i,loc:{start:{line:1,column:77},end:{line:1,column:88}}}):a)?r:"")+"&redirectUrl="+(null!=(r=typeof(a=null!=(a=u(n,"redirectUrl")||(null!=t?u(t,"redirectUrl"):t))?a:l)===c?a.call(s,{name:"redirectUrl",hash:{},data:i,loc:{start:{line:1,column:101},end:{line:1,column:118}}}):a)?r:"")},useData:!0}),jd=["DEVICE_ACTIVATED","DEVICE_NOT_ACTIVATED_CONSENT_DENIED","DEVICE_NOT_ACTIVATED"];Od.isHostBackgroundChromeTab=function(){return!!(navigator.userAgent.match(/Android/)&&navigator.userAgent.match(/Chrome/)&&document.hidden)},Od.isDocumentVisible=function(){return"visible"===document.visibilityState},Od.createVerifyUrl=function(e,t,n){return e&&n?Pd({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t),factorIndex:encodeURIComponent(n)}):e?Ad({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t)}):Nd({factorType:encodeURIComponent(t)})},Od.createEnrollFactorUrl=function(e,t){return Rd({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t)})},Od.createActivateFactorUrl=function(e,t,n){return Id({provider:encodeURIComponent(e.toLowerCase()),factorType:encodeURIComponent(t),step:!!n&&encodeURIComponent(n)})},Od.createRecoveryUrl=function(e){return Dd({recoveryToken:encodeURIComponent(e)})},Od.createRefreshUrl=function(e){const t=e?encodeURIComponent(e):null;return Ld({token:t})},Od.createSigninUrl=function(e){return e?Md({username:encodeURIComponent(e)}):"signin"},Od.routeAfterAuthStatusChangeError=function(e,t){if(t){if(!t.xhr||!Gr.corsIsNotEnabled(t.xhr))return"E0000011"===t.errorCode?(e.appState.set("flashError",t),e.controller.state.set("navigateDir",Mr.DIRECTION_BACK),void(e.settings.get("features.mfaOnlyFlow")?e.navigate("signin/error",{trigger:!0}):e.navigate("",{trigger:!0}))):void ca.triggerAfterError(e.controller,t);e.settings.callGlobalError(new Fr(vp("error.enabled.cors")))}},Od.routeAfterAuthStatusChange=function(e,t){t&&t.status?(e.appState.setAuthResponse(t),e.controller&&e.controller.trapAuthResponse(t)||Od.handleResponseStatus(e,t)):e.appState.clearLastAuthResponse()},Od.handleResponseStatus=function(e,t){switch(t.status){case"SUCCESS":return void function(e,t){var n,o,i,r,a;if(t.recoveryType===Mr.RECOVERY_TYPE_UNLOCK)return void e.navigate("signin/account-unlocked",{trigger:!0});if(Ss.contains(jd,null===(n=t._embedded)||void 0===n?void 0:n.deviceActivationStatus))return void e.navigate("signin/device-activate-complete",{trigger:!0});if(e.settings.get("oauth2Enabled"))return void Ed.getTokens(e.settings,{sessionToken:t.sessionToken},e.controller);const s={user:t._embedded.user,type:t.type||Mr.SESSION_SSO};t.relayState&&(s.relayState=t.relayState);const l=e.settings.get("redirectUtilFn"),c=(null==t||null===(o=t._links)||void 0===o||null===(i=o.original)||void 0===i?void 0:i.href)||(null==t||null===(r=t._links)||void 0===r||null===(a=r.next)||void 0===a?void 0:a.href);if(t.type===Mr.SESSION_STEP_UP){var u,p;const e=null==t||null===(u=t._links)||void 0===u||null===(p=u.next)||void 0===p?void 0:p.href;s.stepUp={url:e,finish:function(){l(e)}}}else c?s.next=function(){l(c)}:s.type=Mr.SESSION_SSO,t.sessionToken&&(s.session={token:t.sessionToken,setCookieAndRedirect:function(n){if(n&&ca.debugMessage('\n              Passing a "redirectUri" to "setCookieAndRedirect" is strongly discouraged.\n              It is recommended to set a "redirectUri" option in the config object passed to the widget constructor.\n            '),!(n=n||e.settings.get("redirectUri")))throw new jr('"redirectUri" is required');l(Ud({baseUrl:e.settings.get("baseUrl"),token:encodeURIComponent(t.sessionToken),redirectUrl:encodeURIComponent(n)}))}});
2Od.isHostBackgroundChromeTab()?document.addEventListener("visibilitychange",function t(){Od.isDocumentVisible()&&(document.removeEventListener("visibilitychange",t),e.settings.callGlobalSuccess(Mr.SUCCESS,s))}):e.settings.callGlobalSuccess(Mr.SUCCESS,s)}(e,t);case"ADMIN_CONSENT_REQUIRED":return void e.navigate("signin/admin-consent",{trigger:!0});case"CONSENT_REQUIRED":return void e.navigate("signin/consent",{trigger:!0});case"DEVICE_ACTIVATE":return void e.navigate("signin/device-activate",{trigger:!0});case"FACTOR_REQUIRED":case"FACTOR_CHALLENGE":case"MFA_REQUIRED":{const t=e.appState.get("lastFailedChallengeFactorData");t&&t.factor&&(e.appState.get("factors").lastUsedFactor=t.factor);const n=e.appState.get("factors").getDefaultFactor(),o=Od.createVerifyUrl(n.get("provider"),n.get("factorType"));return e.navigate(o,{trigger:!0}),void e.appState.clearLastFailedChallengeFactorData()}case"POLL":{const t="signin/poll";return void e.navigate(t,{trigger:!0})}case"MFA_CHALLENGE":return e.appState.get("isFactorResultFailed")&&e.appState.setLastFailedChallengeFactorData(),void e.appState.get("transaction").prev().then(function(t){e.appState.set("transaction",t)});case"MFA_ENROLL":case"FACTOR_ENROLL":return void e.navigate("signin/enroll",{trigger:!0});case"MFA_ENROLL_ACTIVATE":case"FACTOR_ENROLL_ACTIVATE":{const t=Od.createActivateFactorUrl(e.appState.get("activatedFactorProvider"),e.appState.get("activatedFactorType"));return void e.navigate(t,{trigger:!0})}case"PASSWORD_WARN":case"PASSWORD_EXPIRED":return void(e.settings.get("features.customExpiredPassword")&&!e.appState.get("isPwdManagedByOkta")?e.navigate("signin/custom-password-expired",{trigger:!0}):e.navigate("signin/password-expired",{trigger:!0}));case"RECOVERY_CHALLENGE":{const n=t.factorType.toLowerCase()===Mr.RECOVERY_FACTOR_TYPE_EMAIL.toLowerCase(),o=t.recoveryType===Mr.RECOVERY_TYPE_PASSWORD,i=t.recoveryType===Mr.RECOVERY_TYPE_UNLOCK;return void(o&&n?e.navigate("signin/recovery-emailed",{trigger:!0}):i&&n?e.navigate("signin/unlock-emailed",{trigger:!0}):e.navigate("signin/recovery-challenge",{trigger:!0}))}case"RECOVERY":return void e.navigate("signin/recovery-question",{trigger:!0});case"PASSWORD_RESET":return void e.navigate("signin/password-reset",{trigger:!0});case"LOCKED_OUT":if(e.settings.get("features.selfServiceUnlock"))e.navigate("signin/unlock",{trigger:!0});else{const t=vp("error.auth.lockedOut","login"),n={responseJSON:{errorCauses:[],errorSummary:t,errorCode:"E0000119"}},o={name:"AuthApiError",message:t,xhr:n};e.controller.model.appState.trigger("removeLoading"),e.controller.model.trigger("error",e.controller.model,n),ca.triggerAfterError(e.controller,o)}return;case"PROFILE_REQUIRED":return void e.navigate("signin/enroll-user",{trigger:!0});case"UNAUTHENTICATED":if(e.appState.get("promptForFactorInUnauthenticated")){const t=e.appState.get("factors").getDefaultFactor(),n=Od.createVerifyUrl(t.get("provider"),t.get("factorType"));return void e.navigate(n,{trigger:!0})}return e.appState.get("usingDeviceFlow")?void e.navigate("signin/idp-discovery-check",{trigger:!0}):void e.navigate("",{trigger:!0});default:throw new Error("Unknown status: "+t.status)}};var Fd=xp.extend({className:"scan-instructions clearfix",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="scan-instructions-details-wrapper"><div class="scan-instructions-details"><p>'+c(typeof(r=null!=(r=u(n,"instructions")||(null!=t?u(t,"instructions"):t))?r:s)===l?r.call(a,{name:"instructions",hash:{},data:i,loc:{start:{line:1,column:89},end:{line:1,column:105}}}):r)+'</p></div></div><div class="scan-instructions-qrcode-wrapper"><div class="qrcode-wrap"><img data-se="qrcode" alt="'+c(typeof(r=null!=(r=u(n,"altQRCode")||(null!=t?u(t,"altQRCode"):t))?r:s)===l?r.call(a,{name:"altQRCode",hash:{},data:i,loc:{start:{line:1,column:219},end:{line:1,column:232}}}):r)+'" class="qrcode-image" src="'+c(typeof(r=null!=(r=u(n,"qrcode")||(null!=t?u(t,"qrcode"):t))?r:s)===l?r.call(a,{name:"qrcode",hash:{},data:i,loc:{start:{line:1,column:260},end:{line:1,column:270}}}):r)+'"><div data-se="qrcode-success" class="qrcode-success"></div>
2<div data-se="qrcode-error" class="qrcode-error"></div></div><a href="#" data-type="manual-setup" data-se="manual-setup" class="link manual-setup" aria-label="'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.aria.cannotScan"},data:i,loc:{start:{line:1,column:490},end:{line:1,column:549}}}))+'">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.cannotScan"},data:i,loc:{start:{line:1,column:551},end:{line:1,column:604}}}))+'</a><a href="#" data-type="refresh-qrcode" data-se="refresh-qrcode" class="link refresh-qrcode">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.refreshBarcode"},data:i,loc:{start:{line:1,column:700},end:{line:1,column:757}}}))+"</a></div>"},useData:!0}),events:{'click [data-type="manual-setup"]':function(e){e.preventDefault();const t=Od.createActivateFactorUrl(this.model.get("__provider__"),this.model.get("__factorType__"),"manual");"push"===this.model.get("__factorType__")?this.model.doTransaction(function(e){return e.prev().then(function(e){return Ss.findWhere(e.factors,{factorType:"push",provider:"OKTA"}).enroll()})}).then(()=>{this.options.appState.trigger("navigate",t)}):this.options.appState.trigger("navigate",t)},'click [data-type="refresh-qrcode"]':function(e){e.preventDefault(),this.model.trigger("errors:clear");const t=this;this.model.doTransaction(function(e){return this.appState.get("isWaitingForActivation")?e.poll():e.activate()}).then(function(e){const n=e.data;"MFA_ENROLL_ACTIVATE"!==n.status&&"FACTOR_ENROLL_ACTIVATE"!==n.status||"WAITING"!==n.factorResult||Ss.defer(Ss.bind(t.render,t))})}},initialize:function(){this.listenTo(this.options.appState,"change:lastAuthResponse",function(){this.options.appState.get("isMfaEnrollActivate")?this.$el.toggleClass("qrcode-expired",!this.options.appState.get("isWaitingForActivation")):this.options.appState.get("isSuccessResponse")&&this.$el.addClass("qrcode-success")}),this.listenTo(this.model,"error",function(){this.options.appState.get("isMfaEnrollActivate")&&this.$el.toggleClass("qrcode-expired",!0)})},getTemplateData:function(){const e=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));let t;return t="GOOGLE"===this.model.get("__provider__")?vp("enroll.totp.setupGoogleAuthApp","login",[e]):vp("enroll.totp.setupApp","login",[e]),{instructions:t,qrcode:this.options.appState.get("qrcode"),altQRCode:vp("mfa.altQrCode","login")}}}),Vd=qp.extend({className:"barcode-push",Model:function(){return{local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){const e=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return vp("enroll.totp.title","login",[e])},noButtonBar:!0,attributes:{"data-se":"step-scan"},className:"barcode-scan",initialize:function(){this.listenTo(this.model,"error errors:clear",function(){this.clearErrors()})},formChildren:[Up.View({View:Fd})]},Footer:id,initialize:function(){this.pollForEnrollment().catch(()=>{})},pollForEnrollment:function(){return this.model.doTransaction(function(e){return e.poll(6e3)})},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return!0}}),qd=qp.extend({className:"barcode-totp",Model:function(){return{local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){const e=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return vp("enroll.totp.title","login",[e])},save:Ss.partial(vp,"oform.next","login"),noCancelButton:!0,attributes:{"data-se":"step-scan"},className:"barcode-scan",formChildren:[Up.View({View:Fd})]},Footer:id,initialize:function(){this.listenTo(this.form,"save",function(){const e=Od.createActivateFactorUrl(this.model.get("__provider__"),this.model.get("__factorType__"),"activate");this.options.appState.trigger("navigate",e)})}}),Bd=xp.extend({className:"scope-item",template:_s.template({0:function(e,t,n,o,i){return'<span class="scope-item-tooltip icon form-help-16"></span>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="'+u(typeof(a=null!=(a=p(n,"classNames")||(null!=t?p(t,"classNames"):t))?a:l)===c?a.call(s,{name:"classNames",hash:{},data:i,loc:{start:{line:1,column:12},end:{line:1,column:26}}}):a)+'"><p>
2'+u(typeof(a=null!=(a=p(n,"name")||(null!=t?p(t,"name"):t))?a:l)===c?a.call(s,{name:"name",hash:{},data:i,loc:{start:{line:1,column:31},end:{line:1,column:39}}}):a)+"</p></div>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"description"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:49},end:{line:1,column:133}}}))?r:"")},useData:!0}),getTemplateData:function(){const{name:e,description:t,isCustomized:n}=this.options,o="scope-item-text";return{classNames:"openid"===e||n?`${o} no-translate`:o,name:e,description:t}},postRender:function(){this.$(".scope-item-tooltip").qtip({content:{text:Ss.escape(this.options.description)},style:{classes:"okta-tooltip qtip-custom qtip-shadow"},position:{my:"bottom right",target:"mouse"}})}}),$d=xp.extend({className:"scope-list detail-row",postRender:function(){this.model.get("scopes").forEach(e=>{this.add(Bd,{options:{name:e.displayName||e.name,description:e.description,isCustomized:e.isCustomized}})})}}),Hd=Tp.views.forms.inputs.CheckBox.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="checkbox" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:29},end:{line:1,column:37}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:43},end:{line:1,column:54}}}):r)+'"/><label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:69},end:{line:1,column:80}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:100},end:{line:1,column:108}}}):r)+'"><b>'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:i,loc:{start:{line:1,column:113},end:{line:1,column:128}}}):r)+"</b><p>"+c(typeof(r=null!=(r=u(n,"desc")||(null!=t?u(t,"desc"):t))?r:s)===l?r.call(a,{name:"desc",hash:{},data:i,loc:{start:{line:1,column:135},end:{line:1,column:143}}}):r)+"</p></label>"},useData:!0}),enable:function(){this.options.options.optional&&this.$(":input").prop("disabled",!1)},editMode:function(){if(this.$el.html(this.template(Ss.extend(Ss.omit(this.options,"placeholder"),{placeholder:this.options.placeholder||this.options.name,desc:this.options.options.description}))),this.$(":checkbox").prop("checked",this.getModelValue()||!1),this.$("input").customInput(),this.model.trigger("form:resize"),!this.options.options.optional){const e=this.$("input").get(0);this.$(e.parentElement).addClass("o-form-read-mode"),this.$(":checkbox").prop("disabled",!0)}return("openid"===this.options.name||this.options.options.isCustomized)&&(this.$("label > b").addClass("no-translate"),this.options.options.isCustomized&&this.$("label > p").addClass("no-translate")),this}}),zd=xp.extend({tagName:"a",className:"skip-to-content-link",attributes:{href:`#${Mr.WIDGET_CONTAINER_ID}`},initialize:function(){this.$el.append(vp("skip.to.main.content","login"))}});const Wd=_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"clientURI")||(null!=t?a(t,"clientURI"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"clientURI",hash:{},data:i,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" target="_blank">'},1:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"customLogo")||(null!=t?c(t,"customLogo"):t))?r:s)?r.call(a,{name:"customLogo",hash:{},data:i,loc:{start:{line:1,column:149},end:{line:1,column:163}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:i,loc:{start:{line:1,column:170},end:{line:1,column:216}}}))+'" aria-hidden="true" />'},2:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+l("function"==typeof(r=null!=(r=c(n,"defaultLogo")||(null!=t?c(t,"defaultLogo"):t))?r:s)?r.call(a,{name:"defaultLogo",hash:{},data:i,loc:{start:{line:1,column:290},end:{line:1,column:305}}}):r)+'" alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"common.logo.alt"},data:i,loc:{start:{line:1,column:312},end:{line:1,column:358}}}))+'" aria-hidden="true" />'},3:function(e,t,n,o,i){return"</a>"},4:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="issuer"><span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"issuer")||(null!=t?a(t,"issuer"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"issuer",hash:{},data:i,loc:{start:{line:1,column:624},end:{line:1,column:634}}}):r)+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:89},end:{line:1,column:388}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:388},end:{line:1,column:416}}}))?r:"")+'<h1><span class="title-text">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$2:"<p>$2</p>",$1:"<b class='no-translate'>$1</b>",arguments:"appName",bundle:"login",code:"granular.consent.scopes.title"},data:i,loc:{start:{line:1,column:445}
2,end:{line:1,column:577}}}))+"</span>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"issuer"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:584},end:{line:1,column:654}}}))?r:"")+"</h1>"},useData:!0}),Kd=e=>Up.View({View:xp.extend({className:"consent-title detail-row",template:e,getTemplateData:function(){const e=this.options.appState;return{appName:e.escape("targetLabel"),customLogo:e.get("targetLogo")&&e.get("targetLogo").href,defaultLogo:e.get("defaultAppLogo"),clientURI:e.get("targetClientURI")&&e.get("targetClientURI").href}}})}),Gd=Up.View({View:xp.extend({className:"consent-description detail-row",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"consent.required.description"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:62}}}))+"</p>"},useData:!0})})}),Yd=Up.View({View:xp.extend({className:"consent-description",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"granular.consent.scopes.description"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:69}}}))+"</p>"},useData:!0})})}),Jd=e=>"optional"in e.get("scopes")[0];var Qd=qp.extend({className:"consent-required",initialize:function(){this.model.set("expiresAt",this.options.appState.get("expiresAt")),this.model.set("scopes",this.options.appState.get("scopes")),this.listenTo(this.form,"cancel",Ss.bind(this.model.cancel,this.model));const e=new zd;sl(`#${Mr.WIDGET_LOGIN_CONTAINER_ID}`).prepend(e.render().$el),Jd(this.options.appState)&&(this.$el.addClass("granular-consent").removeClass("consent-required"),this.form.cancel=Ss.partial(vp,"oform.cancel","login"),Ss.forEach(this.options.appState.get("scopes"),e=>{this.model.set(e.name,!0)}))},postRender:function(){qp.prototype.postRender.apply(this,arguments),this.$(".o-form-button-bar .button-primary").removeClass("button-primary")},Model:{props:{expiresAt:["string",!0],scopes:["array",!0]},save:function(){return this.doTransaction(function(e){let t=Ss.pluck(this.get("scopes"),"name"),n={expiresAt:this.get("expiresAt")};return Jd(this)?n.optedScopes=Ss.reduce(t,(e,t)=>(e[t]=this.get(t),e),{}):n.scopes=t,e.consent({consent:n})})},cancel:function(){const e=this;return this.doTransaction(function(e){return e.cancel()}).then(function(){const t=e.settings.get("consent.cancel");Ss.isFunction(t)&&t()})}},Form:{noCancelButton:!1,buttonOrder:["cancel","save"],autoSave:!0,save:Ss.partial(vp,"consent.required.consentButton","login"),cancel:Ss.partial(vp,"consent.required.cancelButton","login"),formChildren:function(){return Jd(this.options.appState)?[Kd(Wd),Yd].concat((()=>{const e=this.options.appState.get("scopes").slice().sort((e,t)=>t.optional-e.optional);return Ss.map(e,({name:e,displayName:t,description:n,optional:o,isCustomized:i})=>Up.Input({name:e,input:Hd,placeholder:t,label:!1,modelType:"boolean",required:!0,options:{description:n,optional:o,isCustomized:i}}))})()):[Kd(pd),Up.View({View:new $d({model:this.model})}),Gd]}},Footer:xp.extend({className:"consent-footer",template:_s.template({0:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="terms-of-service" href="'+c("function"==typeof(a=null!=(a=u(n,"termsOfService")||(null!=t?u(t,"termsOfService"):t))?a:l)?a.call(s,{name:"termsOfService",hash:{},data:i,loc:{start:{line:1,column:56},end:{line:1,column:74}}}):a)+'" target="_blank">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"consent.required.termsOfService"},data:i,loc:{start:{line:1,column:92},end:{line:1,column:154}}}))+"</a>"+(null!=(r=u(n,"if").call(s,null!=t?u(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:158},end:{line:1,column:194}}}))?r:"")},1:function(e,t,n,o,i){return" &#8226 "},2:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="privacy-policy" href="'+l("function"==typeof(r=null!=(r=c(n,"privacyPolicy")||(null!=t?c(t,"privacyPolicy"):t))?r:s)?r.call(a,{name:"privacyPolicy",hash:{},data:i,loc:{start:{line:1,column:254},end:{line:1,column:271}}}):r)+'" target="_blank">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"consent.required.privacyPolicy"},data:i,loc:{start:{line:1,column:289},end:{line:1,column:350}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"termsOfService"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:201}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:201},end:{line:1,column:361}}}))?r:"")},useData:!0}
2),getTemplateData:function(){const e=this.options.appState;return{termsOfService:e.get("targetTermsOfService")&&e.get("targetTermsOfService").href,privacyPolicy:e.get("targetPrivacyPolicy")&&e.get("targetPrivacyPolicy").href}}})});const{Util:Xd}=Tp.util;var Zd=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-skip" data-se="skip-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"password.expiring.later"},data:i,loc:{start:{line:1,column:78},end:{line:1,column:132}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"passwordWarn"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:143}}}))?r:"")+'<a href="#" class="link help goto js-signout" data-se="signout-link">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"signout"},data:i,loc:{start:{line:1,column:212},end:{line:1,column:250}}}))+"</a>"},useData:!0}),className:"auth-footer clearfix",events:{"click .js-signout":function(e){e.preventDefault();const t=this,n=t.settings.getAuthClient();this.model.doTransaction(function(e){return e.cancel()}).then(function(){return n.session.exists()}).then(function(e){if(e)return n.closeSession().catch(()=>{})}).then(function(){t.settings.get("backToSignInUri")?Xd.redirect(t.settings.get("backToSignInUri")):(t.state.set("navigateDir",Mr.DIRECTION_BACK),t.options.appState.trigger("navigate",""))})},"click .js-skip":function(e){e.preventDefault(),this.model.doTransaction(function(e){return e.skip()})}},getTemplateData:function(){return{passwordWarn:this.options.appState.get("isPwdExpiringSoon")}}});const{Util:eh}=Tp.util;var th=qp.extend({className:"custom-password-expired",Model:{},Form:{noButtonBar:!0,title:function(){const e=this.options.appState.get("isPwdExpiringSoon"),t=this.options.appState.get("passwordExpireDays");return e&&t>0?vp("password.expiring.title","login",[t]):e&&0===t?vp("password.expiring.today","login"):e?vp("password.expiring.soon","login"):this.settings.get("brandName")?vp("password.expired.title.specific","login",[this.settings.get("brandName")]):vp("password.expired.title.generic","login")},subtitle:function(){return this.options.appState.get("isPwdExpiringSoon")?this.settings.get("brandName")?vp("password.expiring.soon.subtitle.specific","login",[this.settings.get("brandName")]):vp("password.expiring.soon.subtitle.generic","login"):vp("password.expired.custom.subtitle","login")},formChildren:function(){return[Up.Button({title:Ss.partial(vp,"password.expired.custom.submit","login",[this.options.appState.get("passwordExpiredWebsiteName")]),className:"button button-primary button-wide",attributes:{"data-se":"custom-button"},click:function(){eh.redirect(this.options.appState.get("passwordExpiredLinkUrl"))}})]}},Footer:Zd});const nh=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"api.authn.error.PASSCODE_INVALID"},data:i,loc:{start:{line:1,column:110},end:{line:1,column:173}}}))+"</p></div>"},useData:!0})});var oh=qp.extend({className:"device-code-activate",Model:function(){var e,t;return{props:{userCode:["string",!0,null===(e=this.options)||void 0===e||null===(t=e.appState)||void 0===t?void 0:t.get("userCode")],stateToken:"string"},save:function(){const e=this;return this.doTransaction(function(t){return t.deviceActivate({userCode:e.get("userCode")})})}}},Form:{noCancelButton:!0,autoSave:!0,save:function(){return vp("oform.next","login")},title:function(){return vp("device.code.activate.title","login")},subtitle:function(){return vp("device.code.activate.subtitle","login")},formChildren:function(){return"INVALID_USER_CODE"===this.options.appState.get("deviceActivationStatus")&&this.add(n
2h,".o-form-error-container"),[Up.Input({label:vp("device.code.activate.label","login"),"label-top":!0,name:"userCode",input:nd,inputId:"user-code",type:"text",inlineValidation:!1})]},events:{'keyup input[name="userCode"]':function(e){e.preventDefault(),this.addHyphen(e)}},addHyphen:function(e){const t=e.target.value;t&&4===t.length&&!["Backspace","Delete","-"].includes(e.key)&&(e.target.value=t.concat("-"))}}});const ih="DEVICE_ACTIVATED",rh="DEVICE_NOT_ACTIVATED_CONSENT_DENIED",ah="DEVICE_NOT_ACTIVATED",sh=[rh,ah];var lh=qp.extend({className:"device-code-terminal",postRender:function(){qp.prototype.postRender.apply(this,arguments);const e=this.options.appState.get("deviceActivationStatus")===ih?"success-24-green":"error-24-red";this.$(".o-form-head").before('<div class="device-code-terminal--icon-container"><span class="device-code-terminal--icon '+e+'"></span></div>')},Model:{},Form:{noCancelButton:!0,noButtonBar:!0,title:function(){const e=this.options.appState.get("deviceActivationStatus");return e===ih?vp("device.code.activated.success.title","login"):Ss.contains(sh,e)?vp("device.code.activated.error.title","login"):void 0},subtitle:function(){const e=this.options.appState.get("deviceActivationStatus");return e===ih?vp("idx.device.activated","login"):e===rh?vp("idx.device.not.activated.consent.denied","login"):e===ah?vp("idx.device.not.activated.internal.error","login"):void 0},formChildren:function(){return[Up.View({View:xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="/activate" class="button button-primary text-align-c retry-button" data-se="try-again">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.try.again"},data:i,loc:{start:{line:1,column:121},end:{line:1,column:165}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isDeviceCodeError"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:176}}}))?r:""},useData:!0}),getTemplateData:function(){return{isDeviceCodeError:Ss.contains(sh,this.options.appState.get("deviceActivationStatus"))}}})})]}}});const{Util:ch}=Tp.util;var uh=qp.extend({className:"enroll-custom-factor",Model:{local:{provider:"string",factorType:"string"},save:function(){return this.manageTransaction((e,t)=>Ss.findWhere(e.factors,{provider:this.get("provider"),factorType:this.get("factorType")}).enroll().then(e=>{t(e);const n=this.appState.get("enrollCustomFactorRedirectUrl");null!==n&&ch.redirect(n)}).catch(function(e){throw e}))}},Form:function(){const e=this.options.appState.get("factors").findWhere({provider:this.options.provider,factorType:this.options.factorType}).get("vendorName");return{autoSave:!0,title:e,subtitle:vp("enroll.customFactor.subtitle","login",[e]),save:vp("enroll.customFactor.save","login")}},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return!0},initialize:function(){this.model.set("provider",this.options.provider),this.model.set("factorType",this.options.factorType)},Footer:id});const ph=Ap.extend({extraProperties:!0,flat:!1,props:{id:"string",factorType:{type:"string",values:["sms","call","email","token","token:software:totp","token:hotp","token:hardware","question","push","u2f","password","assertion:saml2","assertion:oidc","claims_provider","webauthn"]},provider:{type:"string",values:["OKTA","RSA","DEL_OATH","SYMANTEC","GOOGLE","YUBICO","FIDO","CUSTOM","GENERIC_SAML","GENERIC_OIDC"]},enrollment:{type:"string",values:["OPTIONAL","REQUIRED"]},status:{type:"string",values:["NOT_SETUP","ACTIVE"]},profile:["object"],vendorName:"string",policy:["object"],profiles:["object"]},local:{answer:"string",password:"string",backupFactor:"object",showAnswer:"boolean",rememberDevice:"boolean",autoPush:["boolean",!0,!1]},derived:{isOktaFactor:{deps:["provider"],fn:function(e){return"OKTA"===e}}
2,factorName:{deps:["provider","factorType"],fn:Qp.getFactorName},factorLabel:{deps:["provider","factorType","vendorName"],fn:function(e,t,n){return Ss.contains(["DEL_OATH","GENERIC_SAML","GENERIC_OIDC","CUSTOM"],e)?n:Qp.getFactorLabel.apply(this,[e,t])}},factorDescription:{deps:["provider","factorType"],fn:Qp.getFactorDescription},sortOrder:{deps:["provider","factorType"],fn:Qp.getFactorSortOrder},iconClassName:{deps:["provider","factorType"],fn:Qp.getFactorIconClassName},securityQuestion:{deps:["profile","factorType"],fn:function(e,t){return"question"!==t?null:e&&Qp.getSecurityQuestionLabel(e)}},phoneNumber:{deps:["profile","factorType"],fn:function(e,t){return Ss.contains(["sms","call"],t)?e&&e.phoneNumber:null}},email:{deps:["profile","factorType"],fn:function(e,t){return"email"===t?e&&e.email:null}},deviceName:{deps:["profile","factorType"],fn:function(e,t){return"push"!==t?null:e&&e.name}},enrolled:{deps:["status"],fn:function(e){return"ACTIVE"===e}},cardinality:{deps:["policy","profiles"],fn:function(e,t){if(t&&t.length>0){const e=t[0],n=e._embedded.enrolledFactors.length,o=Ss.findWhere(e._embedded.features,{type:"adoption"});return!(!o||!o.cardinality)&&{enrolled:n,minimum:o.cardinality.min,maximum:o.cardinality.max}}return!(!e||!e.enrollment)&&e.enrollment}},additionalEnrollment:{deps:["cardinality"],fn:function(e){return!!e&&0!==e.enrolled&&e.enrolled<e.maximum}},required:{deps:["enrollment"],fn:function(e){return"REQUIRED"===e}},canUseResend:{deps:["provider","factorType"],fn:function(e,t){return"OKTA"===e&&Ss.contains(["push","sms","call","email"],t)}},isAnswerRequired:{deps:["factorType"],fn:function(e){return Ss.contains(["sms","call","email","token","token:software:totp","question"],e)}},isFactorTypeVerification:{deps:["provider","id"],fn:function(e,t){return void 0===e&&void 0===t}}},parse:function(e){return this.settings=e.settings,this.appState=e.appState,e.rememberDevice=Qp.getRememberDeviceValue(this.appState),this.setCustomHotpVendorName(e),Ss.omit(e,["settings","appState"])},validate:function(){return this.get("isAnswerRequired")&&!this.get("answer")?{answer:vp("model.validation.field.blank")}:"password"!==this.get("factorType")||this.get("password")?void 0:{password:vp("error.password.required")}},needsPasscode:function(){return!(this.options.appState.get("isIdxStateToken")&&"email"===this.get("factorType"))},resend:function(){return this.trigger("form:clear-errors"),this.manageTransaction(function(e){const t=e.data._links.resend[0];return e.resend(t.name)})},save:function(){const e=!!this.get("rememberDevice"),t=this;return this.manageTransaction(function(n,o){const i={rememberDevice:e};let r;if("question"===this.get("factorType")?i.answer=this.get("answer"):"password"===this.get("factorType")?i.password=this.get("password"):this.needsPasscode()&&(i.passCode=this.get("answer")),this.pushFactorHasAutoPush()&&(i.autoPush=this.get("autoPush")),"MFA_REQUIRED"===n.status||"FACTOR_REQUIRED"===n.status||this.appState.get("promptForFactorInUnauthenticated"))r=this._findFactor(n).verify(i);else if(this.get("canUseResend")&&!this.get("answer")&&n.resend){const e=n.data._links.resend[0];r=n.resend(e.name)}else r=n.verify(i);return this.trigger("save"),r.then(function(e){let n=!1;const i={delay:4e3,transactionCallBack:e=>{n=!0,t.options.appState.set("lastAuthResponse",e)}};if(o(e),"MFA_CHALLENGE"===e.status&&e.poll||"FACTOR_CHALLENGE"===e.status&&e.poll){const r=Cp().defer(),a=ca.callAfterTimeoutOrWindowRefocus(r.resolve,4e3);return t.listenToOnce(t.options.appState,"factorSwitched",()=>{a(),r.reject(new Br)}),r.promise.then(function(){let r;if(t.stopListening(t.options.appState,"factorSwitched"),t.pushFactorHasAutoPush()&&(i.autoPush=function(){return t.get("autoPush")},i.rememberDevice=function(){return t.get("rememberDevice")}),Gr.isIOS()){let t;r=Cp().race([e.poll(i),(()=>{const o=Cp().defer();return t=ca.callAfterTimeoutOrWindowRefocus(o.resolve,2e3,!0),o.promise.then(()=>n?Cp().defer().promise:e.poll(i))})()]).then(e=>(t(),e))}else r=e.poll(i);return r.then(function(e){t.options.appState.set("lastAuthResponse",e.data),o(e)})})}})})},_findFactor:function(e){let t;return e.factorTypes&&(t=Ss.findWhere(e.factorTypes,{factorType:this.get("factorType")})),t||(t=Ss.findWhere(e.factors,{id:this.get("id")})),t},pushFactorHasAutoPush:function(){return this.settings.get("features.autoPush")&&"push"===this.get("factorType")},setCustomHotpVendorName:function(e){if("token:hotp"===e.factorType&&e.profiles)if("NOT_SETUP"===e.status)e.vendorName=e.profiles[0].name;else if("ACTIVE"===e.status){const t=e.profiles.filter(e=>e._embedded.enrolledFactors.length>0);e.vendorName=t[0].name}return e}}),dh=kp.extend({model:ph,comparator:"sortOrder",parse:function(e){this.lastUsedFactor=e[0];const t=Ss.findWhere(e,{provider:"OKTA",factorType:"push"});let n;if(n=Ss.where(e,{factorType:"push"}).length>1?Ss.findWhere(e,{factorType:"token:software:totp"}):Ss.findWhere(e,{provider:"OKTA",factorType:"token:software:totp"}),!t||!n)return e;const o=n===e[0],i=Ss.reduce(e,function(e,o){const i="OKTA"===o.provider,r=i&&"token:software:totp"===o.factorType,a=i&&"push"===o.factorType,s="ACTIVE"!==o.status,l=r&&(s||"ACTIVE"===t.status),c=a&&s&&"ACTIVE"===n.status;
2return l||c||(a&&(o.backupFactor=new ph(n,{parse:!0})),e.push(o)),e},[]);return o&&(this.lastUsedFactor=t),i},getDefaultFactor:function(){const e=Ss.pick(this.lastUsedFactor,"factorType","provider");return this.findWhere(e)},getFirstUnenrolledRequiredFactor:function(){return this.findWhere({required:!0,enrolled:!1})},_getFactorsOfType:function(e){return this.where({factorType:e})},getFactorIndex:function(e,t){return this._getFactorsOfType(e).findIndex(function(e){return e.get("id")===t})},hasMultipleFactorsOfSameType:function(e){return this._getFactorsOfType(e).length>1},getFactorByTypeAndIndex:function(e,t){return this._getFactorsOfType(e)[t]}});var hh={Model:ph,Collection:dh};const fh=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon error-24"></span><h4><strong>'+(null!=(r="function"==typeof(a=null!=(a=s(n,"message")||(null!=t?s(t,"message"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:i,loc:{start:{line:1,column:47},end:{line:1,column:60}}}):a)?r:"")+"</strong></h4>"},useData:!0});var mh=xp.extend({template:fh,className:"okta-infobox-error infobox infobox-error infobox-md margin-btm-25",attributes:{"data-se":"o-form-error-html"},message:"",initialize:function(e){e&&e.message&&(this.message=e.message)},getTemplateData:function(){return{message:this.message}}});const{Util:gh}=Tp.util;var yh=uh.extend({Model:{local:{provider:"string",factorType:"string"},save:function(){return this.manageTransaction(()=>{const e=this.appState.get("enrollCustomFactorRedirectUrl");null!==e&&gh.redirect(e)})}},Form:function(){const e=new hh.Model(this.options.appState.get("factor"),this.toJSON()).get("vendorName");return{autoSave:!0,title:e,subtitle:vp("enroll.customFactor.subtitle","login",[e]),save:vp("enroll.customFactor.save","login"),formChildren:function(){const e=[];return this.options.appState.get("isFactorResultFailed")&&e.push(Up.View({View:new mh({message:this.options.appState.get("factorResultErrorMessage")})},{selector:".o-form-error-container"})),e}}}}),vh=xp.extend({className:"hide resend-email-infobox",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="infobox infobox-warning" aria-live="polite"><span class="icon warning-16"></span><p><span>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"email.code.not.received"},data:i,loc:{start:{line:1,column:102},end:{line:1,column:156}}}))+'</span><a href="#" class="resend-email-btn">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"email.button.resend"},data:i,loc:{start:{line:1,column:200},end:{line:1,column:250}}}))+"</a></p></div>"},useData:!0}),events:{"click .resend-email-btn":"resendEmail"},postRender:function(){this.showResendCallout()},showResendCallout:function(){Ss.delay(()=>{this.$el.removeClass("hide")},Mr.API_RATE_LIMIT)},hideResendCallout:function(){this.$el.addClass("hide")},resendEmail:function(e){e.preventDefault(),this.hideResendCallout(),this.model.resend().finally(this.showResendCallout.bind(this))}}),bh=qp.extend({className:"enroll-activate-email",Model:{props:{passCode:"string"},resend:function(){return this.trigger("form:clear-errors"),this.doTransaction(function(e){return e.resend("email")})},save:function(){this.trigger("save");const e=this.toJSON();return this.doTransaction(function(t){return t.activate(e)})}},Form:function(){return{title:Ss.partial(vp,"email.enroll.title","login"),noButtonBar:!1,autoSave:!0,save:Ss.partial(vp,"oform.verify","login"),formChildren:[Up.View({View:xp.extend({className:"enroll-activate-email-content",attributes:{"data-se":"enroll-activate-email-content"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"factorEmail",bundle:"login",code:"email.mfa.email.sent.de
2scription"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:""},useData:!0}),getTemplateData:function(){const e=this.options.appState.get("factor"),t=e&&e.profile?e.profile.email:"",n=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="mask-email">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"email")||(null!=t?a(t,"email"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"email",hash:{},data:i,loc:{start:{line:1,column:25},end:{line:1,column:34}}}):r)+"</span>"},useData:!0})({email:t});return{factorEmail:n}}})}),Up.View({View:vh}),Up.Input({label:vp("email.code.label","login"),"label-top":!0,name:"passCode",type:"text",wide:!0})]}},Footer:id}),wh={US:"1",AG:"1",AI:"1",AS:"1",BB:"1",BM:"1",BS:"1",CA:"1",DM:"1",DO:"1",GD:"1",GU:"1",JM:"1",KN:"1",KY:"1",LC:"1",MP:"1",MS:"1",PR:"1",SX:"1",TC:"1",TT:"1",VC:"1",VG:"1",VI:"1",RU:"7",KZ:"7",EG:"20",ZA:"27",GR:"30",NL:"31",BE:"32",FR:"33",ES:"34",HU:"36",IT:"39",VA:"39",RO:"40",CH:"41",AT:"43",GB:"44",GG:"44",IM:"44",JE:"44",DK:"45",SE:"46",NO:"47",SJ:"47",PL:"48",DE:"49",PE:"51",MX:"52",CU:"53",AR:"54",BR:"55",CL:"56",CO:"57",VE:"58",MY:"60",AU:"61",CC:"61",CX:"61",ID:"62",PH:"63",NZ:"64",SG:"65",TH:"66",JP:"81",KR:"82",VN:"84",CN:"86",TR:"90",IN:"91",PK:"92",AF:"93",LK:"94",MM:"95",IR:"98",SS:"211",MA:"212",EH:"212",DZ:"213",TN:"216",LY:"218",GM:"220",SN:"221",MR:"222",ML:"223",GN:"224",CI:"225",BF:"226",NE:"227",TG:"228",BJ:"229",MU:"230",LR:"231",SL:"232",GH:"233",NG:"234",TD:"235",CF:"236",CM:"237",CV:"238",ST:"239",GQ:"240",GA:"241",CG:"242",CD:"243",AO:"244",GW:"245",IO:"246",AC:"247",SC:"248",SD:"249",RW:"250",ET:"251",SO:"252",DJ:"253",KE:"254",TZ:"255",UG:"256",BI:"257",MZ:"258",ZM:"260",MG:"261",RE:"262",YT:"262",ZW:"263",NA:"264",MW:"265",LS:"266",BW:"267",SZ:"268",KM:"269",SH:"290",TA:"290",ER:"291",AW:"297",FO:"298",GL:"299",GI:"350",PT:"351",LU:"352",IE:"353",IS:"354",AL:"355",MT:"356",CY:"357",FI:"358",AX:"358",BG:"359",LT:"370",LV:"371",EE:"372",MD:"373",AM:"374",BY:"375",AD:"376",MC:"377",SM:"378",UA:"380",RS:"381",ME:"382",XK:"383",HR:"385",SI:"386",BA:"387",MK:"389",CZ:"420",SK:"421",LI:"423",FK:"500",BZ:"501",GT:"502",SV:"503",HN:"504",NI:"505",CR:"506",PA:"507",PM:"508",HT:"509",GP:"590",BL:"590",MF:"590",BO:"591",GY:"592",EC:"593",GF:"594",PY:"595",MQ:"596",SR:"597",UY:"598",CW:"599",BQ:"599",TL:"670",NF:"672",BN:"673",NR:"674",PG:"675",TO:"676",SB:"677",VU:"678",FJ:"679",PW:"680",WF:"681",CK:"682",NU:"683",WS:"685",KI:"686",NC:"687",TV:"688",PF:"689",TK:"690",FM:"691",MH:"692","001":"979",KP:"850",HK:"852",MO:"853",KH:"855",LA:"856",BD:"880",TW:"886",MV:"960",LB:"961",JO:"962",SY:"963",IQ:"964",KW:"965",SA:"966",YE:"967",OM:"968",PS:"970",AE:"971",IL:"972",BH:"973",QA:"974",BT:"975",MN:"976",NP:"977",TJ:"992",TM:"993",AZ:"994",GE:"995",KG:"996",UZ:"998",GS:"500",PN:"64",AQ:"672",UM:"1",AN:"599"};const _h=function(){const e=Rr.omit(ia.country,"HM","BV","TF");let t=Rr.map(e,function(e,t){return{name:e,code:t}});t=Rr.sortBy(t,"name");const n={};return Rr.each(t,function(e){n[e.code]=e.name}),n},kh=function(){const e=Rr.omit(ia.country,"HM","BV","TF");let t=Rr.map(e,function(e,t){return{name:e,code:t}});t=Rr.sortBy(t,"name");const n={};return Rr.each(t,function(e){n[e.code]=ra("country.option.label","login",[e.name,e.code])}),n},xh=function(e){return wh[e]};let{TextBox:Sh}=Tp.views.forms.inputs;var Th=Sh.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="okta-form-label-inline o-form-label-inline">'+c(typeof(r=null!=(r=u(n,"countryCallingCode")||(null!=t?u(t,"countryCallingCode"):t))?r:s)===l?r.call(a,{name:"countryCallingCode",hash:{},data:i,loc:{start:{line:1,column:57},end:{line:1,column:79}}}):r)+'</span><span class="okta-form-input-field input-fix o-form-control"><input type="'+c(typeof(r=null!=(r=u(n,"type")||(null!=t?u(t,"type"):t))?r:s)===l?r.call(a,{name:"type",hash:{},data:i,loc:{start:{line:1,column:160},end:{line:1,column:168}}}):r)+'" placeholder="'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:i,loc:{start:{line:1,column:183},end:{line:1,column:198}}}):r)+'" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:206},end:{line:1,column:214}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:220},end:{line:1,column:231}}}):r)+'" value="'+c(typeof(r=null!=(r=u(n,"value")||(null!=t?u(t,"value"):t))?r:s)===l?r.call(a,{name:"value",hash:{},data:i,loc:{start:{line:1,column:240},end:{line:1,column:249}}}):r)+'" autocomplete="'+c(typeof(r=null!=(r=u(n,"autocomplete")||(null!=t?u(t,"autocomplete"):t))?r:s)===l?r.call(a,{name:"autocomplete",hash:{},data:i,loc:{start:{line:1,column:265},end:{line:1,column:281}}}):r)+'"></span>'},useData:!0}
2),initialize:function(){this.listenTo(this.model,"change:countryCallingCode",function(){this.$(".o-form-label-inline").text(this.model.get("countryCallingCode"))})},preRender:function(){this.options.countryCallingCode=this.model.get("countryCallingCode"),this.options.autocomplete=ca.getAutocompleteValue(this.options.model.settings,"tel")},postRender:function(){this.$el.removeClass("input-fix o-form-control"),Ss.defer(()=>{this.$el.parent().addClass("o-form-input-group")})}});let{Keys:Eh}=Tp.util;const Ch=xp.extend({className:"okta-form-infobox-warning infobox infobox-warning login-timeout-warning",attributes:{"aria-live":"polite"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+(null!=(r="function"==typeof(a=null!=(a=s(n,"warning")||(null!=t?s(t,"warning"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:i,loc:{start:{line:1,column:40},end:{line:1,column:53}}}):a)?r:"")+"</p>"},useData:!0})}),Oh={factorId:function(e){return!Ss.isUndefined(e)}};function Ah(e){return"call"===e}function Ph(e){return Ah(e)?"enroll-call":"enroll-sms"}function Nh(e){Eh.isEnter(e)&&(e.stopPropagation(),e.preventDefault(),"keyup"===e.type&&e.data&&e.data.model&&e.data.model.sendCode())}var Rh=qp.extend({className:function(){return Ph(this.options.factorType)},Model:function(){return{props:{phoneNumber:["string",!0],phoneExtension:["string",!1],lastEnrolledPhoneNumber:"string",passCode:["string",!0],factorId:"string"},local:{countryCode:["string",!1,this.options.appState.get("userCountryCode")],hasExistingPhones:"boolean",trapEnrollment:"boolean",ableToResend:"boolean",factorType:"string",skipPhoneValidation:"boolean"},derived:{countryCallingCode:{deps:["countryCode"],fn:function(e){return"+"+xh(e)}},fullPhoneNumber:{deps:["countryCallingCode","phoneNumber"],fn:function(e,t){return t?e+t:""}},enrolled:{deps:["lastEnrolledPhoneNumber","fullPhoneNumber"],fn:function(e,t){return e===t}}},limitResending:function(){this.set({ableToResend:!1}),Ss.delay(Ss.bind(this.set,this),Mr.API_RATE_LIMIT,{ableToResend:!0})},sendCode:function(){const e=this,t=this.get("fullPhoneNumber"),n=this.get("phoneExtension");if(e.trigger("errors:clear"),t.length)return this.doTransaction(function(o){const i="MFA_ENROLL"===o.status||"FACTOR_ENROLL"===o.status,r={phoneNumber:t,updatePhone:!i||e.get("hasExistingPhones")};Ah(e.get("factorType"))&&(r.phoneExtension=n),e.get("skipPhoneValidation")&&(r.validatePhone=!1);const a=function(t){return Ss.findWhere(t.factors,{factorType:e.get("factorType"),provider:"OKTA"}).enroll({profile:r}).catch(function(t){throw"E0000098"===t.errorCode&&(e.set("skipPhoneValidation",!0),t.xhr.responseJSON.errorSummary=vp("enroll.sms.try_again","login")),t})};return i?a(o):(e.set("trapEnrollment",!0),o.prev().then(a).then(function(t){return e.set("trapEnrollment",!1),t}))},!0).then(function(){e.set("lastEnrolledPhoneNumber",t),e.limitResending()}).catch(function(){e.set("trapEnrollment",!1)});e.trigger("invalid",e,{phoneNumber:"model.validation.field.blank"})},resendCode:function(){return this.trigger("errors:clear"),this.limitResending(),this.doTransaction(function(e){return e.resend(this.get("factorType"))})},save:function(){return this.doTransaction(function(e){return e.activate({passCode:this.get("passCode")})})}}},Form:function(){const e=this.options.factorType,t=Ah(e),n=vp(t?"enroll.call.setup":"enroll.sms.setup","login"),o=vp(t?"mfa.call":"mfa.sendCode","login"),i=vp(t?"mfa.redial":"mfa.resendCode","login"),r=vp(t?"mfa.calling":"mfa.sent","login"),a=t?"enroll-call-phone":"enroll-sms-phone",s=t?"call-request-button":"sms-request-button",l=[Up.Input({name:"countryCode",type:"select",wide:!0,options:_h()}),Up.Input({label:vp("mfa.phoneNumber.placeholder","login"),"label-top":!0,className:a,name:"phoneNumber",input:Th,type:"text",render:function(){this.$('input[name="phoneNumber"]').off("keydown keyup",Nh).keydown(Nh).keyup({model:this.model},Nh)}})];return t&&l.push(Up.Input({label:vp("mfa.phoneNumber.ext.placeholder","login"),"label-top":!0,
2className:"enroll-call-extension",name:"phoneExtension",input:nd,type:"text"})),l.push(Up.Button({title:o,attributes:{"data-se":s},className:"button button-primary js-enroll-phone margin-top-30 "+s,click:function(){this.model.sendCode()}}),Up.Button({title:i,attributes:{"data-se":s},className:"button js-enroll-phone margin-top-30 "+s,click:function(){this.model.resendCode()},initialize:function(){this.$el.css({display:"none"}),this.listenTo(this.model,"change:ableToResend",function(e,t){t?(this.options.title=i,this.enable()):(this.options.title=r,this.disable()),this.render()})}}),Up.Divider({showWhen:Oh}),Up.Input({label:vp("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("mfa.challenge.enterCode.tooltip","mfa.challenge.enterCode.placeholder","login"),"explain-top":!0,name:"passCode",input:nd,type:"tel",showWhen:Oh}),Up.Toolbar({noCancelButton:!0,save:vp("mfa.challenge.verify","login"),showWhen:Oh})),{title:n,noButtonBar:!0,autoSave:!0,className:Ph(e),showWarning:function(e){this.clearWarnings(),this.add(Ch,".o-form-error-container",{options:{warning:e}})},clearWarnings:function(){this.$(".okta-form-infobox-warning").remove()},initialize:function(){const e=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.call.time.warning"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:71}}}))},useData:!0}),n=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.sms.time.warning"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:70}}}))},useData:!0});this.listenTo(this.model,"change:ableToResend",function(o,i){i?this.showWarning(t?e:n):this.clearWarnings()}),this.listenTo(this.model,"error errors:clear",function(){this.clearWarnings(),this.clearErrors()}),this.listenTo(this.model,"change:enrolled",function(){this.$(".js-enroll-phone").toggle()})},formChildren:l}},Footer:id,trapAuthResponse:function(){return this.options.appState.get("isMfaEnrollActivate")?(this.model.set("factorId",this.options.appState.get("activatedFactorId")),!0):!(!this.options.appState.get("isMfaEnroll")||!this.model.get("trapEnrollment"))||void 0},initialize:function(){Ah(this.options.factorType)?this.model.set("hasExistingPhones",this.options.appState.get("hasExistingPhonesForCall")):this.model.set("hasExistingPhones",this.options.appState.get("hasExistingPhones")),this.model.set("factorType",this.options.factorType)}});const Ih=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="factor-cardinality">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"cardinalityText")||(null!=t?a(t,"cardinalityText"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"cardinalityText",hash:{},data:i,loc:{start:{line:1,column:33},end:{line:1,column:52}}}):r)+"</span>"},useData:!0}),Dh=xp.extend({tagName:"li",className:"enroll-factor-row clearfix",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"factorDescription")||(null!=t?a(t,"factorDescription"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"factorDescription",hash:{},data:i,loc:{start:{line:1,column:235},end:{line:1,column:256}}}):r)+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enroll-factor-icon-container"><div class="factor-icon enroll-factor-icon '+u(typeof(a=null!=(a=p(n,"iconClassName")||(null!=t?p(t,"iconClassName"):t))?a:l)===c?a.call(s,{name:"iconClassName",hash:{},data:i,loc:{start:{line:1,column:85},end:{line:1,column:102}}}):a)+'"></div></div><div class="enroll-factor-description"><h3 class="enroll-factor-label">'+u(typeof(a=null!=(a=p(n,"factorLabel")||(null!=t?p(t,"factorLabel"):t))?a:l)===c?a.call(s,{name:"factorLabel",hash:{},data:i,loc:{start:{line:1,column:187},end:{line:1,column:202}}}):a)+"</h3>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"factorDescription"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:207},end:{line:1,column:267}}}))?r:"")+'<div class="enroll-factor-button"></div></div>'},useData:!0}
2),attributes:function(){return{"data-se":this.model.get("factorName")}},children:function(){const e=[],t=this.model.get("enrolled"),n=this.model.get("required"),o=this.model.get("cardinality");if(this.options.showInlineSetupButton)return[[bp({className:"button",title:this.getSetupButtonText(),click:function(){this.options.appState.trigger("navigate",Od.createEnrollFactorUrl(this.model.get("provider"),this.model.get("factorType")))}}),".enroll-factor-button"]];t?e.push(['<span class="icon success-16-green"></span>',".enroll-factor-label"]):n&&e.push(['<span class="icon success-16-gray"></span>',".enroll-factor-label"]);const i=Qp.getCardinalityText(t,n,o);return i&&e.push([Ih({cardinalityText:i}),".enroll-factor-description"]),e},minimize:function(){this.$el.addClass("enroll-factor-row-min")},maximize:function(){this.$el.removeClass("enroll-factor-row-min")},getSetupButtonText:function(){return this.model.get("additionalEnrollment")?vp("enroll.choices.setup.another","login"):vp("enroll.choices.setup","login")}});var Lh=Bc.extend({className:"enroll-factor-list",item:Dh,itemSelector:".list-content",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h3 class="list-title">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"listTitle")||(null!=t?a(t,"listTitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"listTitle",hash:{},data:i,loc:{start:{line:1,column:40},end:{line:1,column:53}}}):r)+"</h3>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"listTitle"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:65}}}))?r:"")+'<ul class="list-content"></ul>'},useData:!0}),getTemplateData:function(){const e=Bc.prototype.getTemplateData.call(this);return Ss.extend(e,this),e},postRender:function(){this.options.minimize&&this.invoke("minimize")}}),Mh=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link goto js-skip" data-se="skip-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.choices.setup.skip"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:114}}}))+"</a>"},useData:!0}),className:"auth-footer clearfix",events:{"click .js-skip":function(e){e.preventDefault(),this.model.doTransaction(function(e){return e.skip()})}}}),Uh=Lh.extend({listTitle:Ss.partial(vp,"enroll.choices.list.setup","login"),className:function(){return Lh.prototype.className+" enroll-required-factor-list"},postRender:function(){let e,t;Lh.prototype.postRender.apply(this,arguments),e=this.options.appState.get("factors").getFirstUnenrolledRequiredFactor(),t=this.find(function(t){return t.model===e}),t.maximize()}});const jh=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<span>"+(null!=(r="function"==typeof(a=null!=(a=s(n,"subtitle")||(null!=t?s(t,"subtitle"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:i,loc:{start:{line:1,column:6},end:{line:1,column:20}}}):a)?r:"")+"</span>"},useData:!0});var Fh=qp.extend({className:"enroll-choices",state:{pageType:null},Model:{},Form:{noCancelButton:!0,title:Ss.partial(vp,"enroll.choices.title","login"),noButtonBar:function(){return this.state.get("pageType")===Mr.ALL_OPTIONAL_NONE_ENROLLED},subtitle:" ",getSubtitle:function(){switch(this.state.get("pageType")){case Mr.ALL_OPTIONAL_SOME_ENROLLED:case Mr.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:return vp("enroll.choices.optional","login");case Mr.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:{const e=this.options.appState.get("gracePeriodRemainingDays");return null!==e&&e>=0?this.getGracePeriodSubtitle(e):this.getDefaultSubtitle()}default:return this.getDefaultSubtitle()}},getDefaultSubtitle:function(){return this.settings.get("brandName")?vp("enroll.choices.description.specific","login",[this.settings.get("brandName")]):vp("enroll.choices.description.generic","login")},getGracePeriodSubtitle:function(e){return e>=1?vp("enroll.choices.description.gracePeriod.bold","login",[e]):vp("enroll.choices.description.gracePeriod.oneDay.bold","login")},save:function(){switch(this.state.get("pageType")){case Mr.ALL_OPTIONAL_SOME_ENROLLED:case Mr.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:return vp("enroll.choices.submit.finish","login");case Mr.HAS_REQUIRED_NONE_ENROLLED:return vp("enroll.choices.submit.configure","login");case Mr.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:return vp("enroll.choices.submit.next","login");default:return""}},initialize:function(e){this.listenTo(this,"save",function(){let t;switch(this.state.get("pageType")){case Mr.HAS_REQUIRED_NONE_ENROLLED:case Mr.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:t=e.appState.get("factors").getFirstUnenrolledRequiredFactor(),e.appState.trigger("navigate",Od.createEnrollFactorUrl(t.get("provider"),t.get("factorType")));break;default:return this.model.doTransaction(function(e){return e.skip()})}})}
2,preRender:function(){this.add(jh({subtitle:this.getSubtitle()}),"p.okta-form-subtitle");const e=this.options.appState.get("factors");switch(this.state.get("pageType")){case Mr.HAS_REQUIRED_NONE_ENROLLED:case Mr.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:this.add(new Uh({minimize:!0,collection:new kp(e.where({required:!0})),appState:this.options.appState}));break;case Mr.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:case Mr.ALL_OPTIONAL_SOME_ENROLLED:case Mr.ALL_OPTIONAL_NONE_ENROLLED:{const t=e.where({enrolled:!0}),n=e.filter(function(e){return!e.get("enrolled")||e.get("additionalEnrollment")});let o;t.length>0&&(o=vp("enroll.choices.list.optional","login"),this.add(new Lh({listTitle:vp("enroll.choices.list.enrolled","login"),minimize:!0,collection:new kp(t),appState:this.options.appState}))),this.add(new Lh({listTitle:o,collection:new kp(n),appState:this.options.appState,showInlineSetupButton:!0}));break}}}},initialize:function(e){let t,n,o=0,i=0,r=0,a=0;e.appState.get("factors").each(function(e){const t=e.get("required"),n=e.get("enrolled"),s=e.get("additionalEnrollment");t&&n?o++:t&&!n?i++:!t&&n?r++:t||n||a++,n&&s&&a++}),t=o>0||i>0,t&&0===o?n=Mr.HAS_REQUIRED_NONE_ENROLLED:t&&i>0?n=Mr.HAS_REQUIRED_SOME_REQUIRED_ENROLLED:t&&a>0?n=Mr.HAS_REQUIRED_ALL_REQUIRED_ENROLLED:0===r&&a>0?n=Mr.ALL_OPTIONAL_NONE_ENROLLED:a>0?n=Mr.ALL_OPTIONAL_SOME_ENROLLED:this.model.doTransaction(function(e){return e.skip()}),this.state.set("pageType",n),this.options.appState.get("skipLink")&&n===Mr.HAS_REQUIRED_SOME_REQUIRED_ENROLLED&&this.add(new Mh(this.toJSON()))}}),Vh=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,{exports:{}});Vh.exports=function(){var e,t,n,o,i,r,a=/^(?:AUTH|ENROLL)+\|[A-Za-z0-9\+\/=]+\|[A-Za-z0-9\+\/=]+$/,s=/^ERR\|[\w\s\.\(\)]+$/,l=/^DUO_OPEN_WINDOW\|/,c=["duo.com","duosecurity.com","duomobile.s3-us-west-1.amazonaws.com"];function u(){e="",t="sig_response",n=void 0,o=void 0,i=void 0,r=void 0}function p(e,t){var n=t||"https://www.duosecurity.com/docs/duoweb#3.-show-the-iframe";throw new Error("Duo Web SDK error: "+e+(n?"\nSee "+n+" for more information":""))}function d(e,t){return"dataset"in e?e.dataset[t]:e.getAttribute("data-"+t.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase())}function h(e,t,n,o){"addEventListener"in window?e.addEventListener(t,o,!1):e.attachEvent(n,o)}function f(e,t,n,o){"removeEventListener"in window?e.removeEventListener(t,o,!1):e.detachEvent(n,o)}function m(e){h(document,"DOMContentLoaded","onreadystatechange",e)}function g(e){f(document,"DOMContentLoaded","onreadystatechange",e)}function y(e){if(e){0===e.indexOf("ERR|")&&p(e.split("|")[1]),-1!==e.indexOf(":")&&2===e.split(":").length||p("Duo was given a bad token.  This might indicate a configuration problem with one of Duo's client libraries.");var t=e.split(":");return o=t[0],i=t[1],{sigRequest:e,duoSig:t[0],appSig:t[1]}}}function v(e){return Boolean(e.origin==="https://"+n&&"string"==typeof e.data&&(e.data.match(a)||e.data.match(s)||e.data.match(l)))}function b(e){var t,n;return e.iframe&&e.iframeContainer?p("Passing both `iframe` and `iframeContainer` arguments at the same time is not allowed."):e.iframe?(n=t=w(e.iframe))&&!_(n)&&p("`iframe` only accepts an iframe element or the id of an iframe. To use a non-iframe element, use the `iframeContainer` argument."):e.iframeContainer?function(e){e&&_(e)&&p("`iframeContainer` only accepts a non-iframe element or the id of a non-iframe. To use a non-iframe element, use the `iframeContainer` argument on Duo.init().")}(t=w(e.iframeContainer)):t=document.getElementById("duo_iframe"),t}function w(e){return e.tagName?e:"string"==typeof e?document.getElementById(e):null}function _(e){return e&&e.tagName&&"iframe"===e.tagName.toLowerCase()}function k(){return["https://",n,"/frame/web/v1/auth?tx=",o,"&parent=",encodeURIComponent(document.location.href),"&v=2.8"].join("")}function x(e){if(v(e))if(e.data.match(l)){var t=e.data.substring(16);(function(e){if(!e)return!1;var t=document.createElement("a");if(t.href=e,"duotrustedendpoints:"===t.protocol)return!0;
2if("https:"!==t.protocol)return!1;for(var n=0;n<c.length;n++)if(t.hostname.endsWith("."+c[n])||t.hostname===c[n])return!0;return!1})(t)&&window.open(t,"_self")}else T(e.data),f(window,"message","onmessage",x)}function S(a,s){if(n||(n=d(a,"host"))||p("No API hostname is given for Duo to use.  Be sure to pass a `host` parameter to Duo.init, or through the `data-host` attribute on the iframe element."),o&&i||(y(d(a,"sigRequest")),o&&i||p("No valid signed request is given.  Be sure to give the `sig_request` parameter to Duo.init, or use the `data-sig-request` attribute on the iframe element.")),""===e&&(e=d(a,"postAction")||e),"sig_response"===t&&(t=d(a,"postArgument")||t),_(a))(r=a).src=k();else{for(;a.firstChild;)a.removeChild(a.firstChild);for(var l in r=document.createElement("iframe"),s.src=k(),s)r.setAttribute(l,s[l]);a.appendChild(r)}h(window,"message","onmessage",x)}function T(t){e(t+":"+i)}return u(),{init:function o(i){u(),i&&(i.host&&(n=i.host),i.sig_request&&y(i.sig_request),i.post_action&&(e=i.post_action),i.post_argument&&(t=i.post_argument),"function"==typeof i.submit_callback&&i.submit_callback);var r=b(i);r?S(r,i.iframeAttributes||{}):function(e){var t=function(){var n=b(e);n||p('This page does not contain an iframe for Duo to use. Add an element like <iframe id="duo_iframe"></iframe> to this page.'),S(n,e.iframeAttributes||{}),g(t)};m(t)}(i),g(o)},_onReady:m,_parseSigRequest:y,_isDuoMessage:v,_doPostBack:T}}();var qh=Vh.exports,Bh=qp.extend({className:"enroll-duo duo-form",Model:{props:{host:"string",signature:"string",postAction:"string",factorId:"string",stateToken:"string"},getInitOptions:function(){return this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"web",provider:"DUO"}).enroll()})},activate:function(e){const t=this.get("postAction"),n=this.get("factorId"),o=this,i={id:n,stateToken:this.get("stateToken"),sig_response:e};return Cp()(sl.post(t,i)).then(function(){return o.doTransaction(function(e){return e.poll()})}).catch(function(e){o.trigger("error",o,e.xhr)})}},Form:{autoSave:!0,noButtonBar:!0,title:Ss.partial(vp,"enroll.duo.title","login"),postRender:function(){this.add('<iframe frameborder="0" title="'+this.title()+'"></iframe>'),qh.init({host:this.model.get("host"),sig_request:this.model.get("signature"),iframe:this.$("iframe").get(0),post_action:Ss.bind(this.model.activate,this.model)})}},Footer:id,fetchInitialData:function(){const e=this;return this.model.getInitOptions(this.options.appState).then(function(t){const n=t.data;if(!(n&&n._embedded&&n._embedded.factor&&n._embedded.factor._embedded&&n._embedded.factor._embedded.activation))throw new Error("Response does not have duo activation options");const o=n._embedded.factor,i=o._embedded.activation;e.model.set({host:i.host,signature:i.signature,postAction:i._links.complete.href,factorId:o.id,stateToken:n.stateToken})})},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return!0}});const $h={local:{factorType:"string",provider:"string"},save:function(){this.trigger("save");const e=this.pick("factorType","provider");return this.doTransaction(function(t){return Ss.findWhere(t.factors,e).enroll()})}};var Hh=qp.extend({className:"enroll-email",Model:$h,Form:function(){return{title:Ss.partial(vp,"email.enroll.title","login"),noButtonBar:!1,autoSave:!0,save:Ss.partial(vp,"email.button.send","login"),formChildren:[Up.View({View:xp.extend({attributes:{"data-se":"enroll-email-content"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"email.enroll.description"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:55}}}))},useData:!0})})})]}},Footer:id,initialize:function(){this.model.set(Ss.pick(this.options,"factorType","provider"))}}),zh=qp.extend({className:"enroll-hotp",Model:function(){return{local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){const e=this.options.appState.get("factors").findWhere({provider:this.model.get("__provider__"),factorType:this.model.get("__factorType__")});return vp("enroll.totp.title","login",[e.get("factorLabel")])},noButtonBar:!0,attributes:{"data-se":"restrict-enroll"},formChildren:function(){return[Up.View({View:new mh({message:vp("enroll.hotp.restricted","login")})})]}},Footer:id});function Wh(e){return"RSA"===e}function Kh(e){return Wh(e)?"enroll-rsa":"enroll-onprem"}var Gh=qp.extend({className:function(){return Kh(this.options.provider)},Model:function(){const e=this.options.provider,t=this.options.appState.get("factors").findWhere(Ss.pick(this.options,"provider","factorType")).get("profile");return{props:{credentialId:["string",!0,t&&t.credentialId?t.credentialId:""],passCode:["string",!0],factorId:"string"},save:function(){return this.doTransaction(function(t){return Ss.findWhere(t.factors,{factorType:"token",provider:e}).enroll({passCode:this.get("passCode"),profile:{credentialId:this.get("credentialId")}})})}}},Form:function(){const e=this.options.provider,t=this.options.appState.get("factors").findWhere(Ss.pick(this.options,"provider","factorType")).get("vendorName");return{title:Wh(e)?vp("factor.totpHard.rsaSecurId","login"):t,noButtonBar:!0,autoSave:!0,className:Kh(e),initialize:function(){this.listenTo(this.model,"error",(e,t)=>{t&&409===t.status&&(this.$(".o-form-input-name-passCode input").val(""),this.$(".o-form-input-name-passCode input").trigger("change"),this.$(".o-form-input-name-passCode input").focus())})},formChildren:[Up.Input({label:vp("enroll.onprem.username.placeholder","login",[t]),"label-top":!0,explain:ca.createInputExplain("enroll.onprem.username.tooltip","enroll.onprem.username.placeholder","login",[t],[t]),"explain-top":!0,name:"credentialId",input:nd,type:"text"}),Up.Input({label:vp("enroll.onprem.passcode.placeholder","login",[t]),"label-top":!0,explain:ca.createInputExplain("enroll.onprem.passcode.tooltip","enroll.onprem.passcode.placeholder","login",[t],[t]),"explain-top":!0,name:"passCode",input:nd,type:"password"}
2),Up.Toolbar({noCancelButton:!0,save:vp("mfa.challenge.verify","login")})]}},Footer:id});const Yh={validateUsername:function(e){const t=e.get("username");if(t&&t.length>256)return{username:vp("model.validation.field.username","login")}},validateFieldsMatch:function(e,t,n,o){if(e.get(t)!==e.get(n)){const e={};return e[n]=o,e}},validatePasswordMatch:function(e){return Yh.validateFieldsMatch(e,"newPassword","confirmPassword",vp("password.error.match","login"))}};var Jh=qp.extend({className:"enroll-password",Model:{props:{password:["string",!0],confirmPassword:["string",!0]},validate:function(){return Yh.validateFieldsMatch(this,"password","confirmPassword",vp("password.enroll.error.match","login"))},save:function(){return this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"password",provider:"OKTA"}).enroll({profile:{password:this.get("password")}})})}},Form:{autoSave:!0,title:Ss.partial(vp,"enroll.password.setup","login"),inputs:function(){return[{label:vp("mfa.challenge.password.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"password",input:nd,type:"password"},{label:vp("password.confirmPassword.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"confirmPassword",input:nd,type:"password"}]}},Footer:id}),Qh=qp.extend({className:"enroll-question",Model:{props:{question:"string",answer:["string",!0]},local:{securityQuestions:"object"},save:function(){return this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"question",provider:"OKTA"}).enroll({profile:{question:this.get("question"),answer:this.get("answer")}})})}},Form:{autoSave:!0,title:Ss.partial(vp,"enroll.securityQuestion.setup","login"),inputs:function(){return[{label:!1,"label-top":!0,name:"question",type:"select",wide:!0,options:function(){return this.model.get("securityQuestions")},params:{searchThreshold:25}},{label:vp("mfa.challenge.answer.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("mfa.challenge.answer.tooltip","mfa.challenge.answer.placeholder","login"),"explain-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:nd,type:"text"}]}},Footer:id,fetchInitialData:function(){const e=this;return this.model.manageTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"question",provider:"OKTA"}).questions()}).then(function(t){const n={};Ss.each(t,function(e){n[e.question]=Qp.getSecurityQuestionLabel(e)}),e.model.set("securityQuestions",n)})}}),Xh=qp.extend({className:"enroll-symantec",Model:{props:{credentialId:["string",!0],passCode:["string",!0],nextPassCode:["string",!0],factorId:"string"},save:function(){return this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"token",provider:"SYMANTEC"}).enroll({passCode:this.get("passCode"),nextPassCode:this.get("nextPassCode"),profile:{credentialId:this.get("credentialId")}})})}},Form:{title:Ss.partial(vp,"factor.totpHard.symantecVip","login"),subtitle:Ss.partial(vp,"enroll.symantecVip.subtitle","login"),noButtonBar:!0,autoSave:!0,className:"enroll-symantec",formChildren:function(){return[Up.Input({label:vp("enroll.symantecVip.credentialId.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("enroll.symantecVip.credentialId.tooltip","enroll.symantecVip.credentialId.placeholder","login"),"explain-top":!0,name:"credentialId",input:nd,type:"text"}),Up.Input({label:vp("enroll.symantecVip.passcode1.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("enroll.symantecVip.passcode1.tooltip","enroll.symantecVip.passcode1.placeholder","login"),"explain-top":!0,name:"passCode",input:nd,type:"text"}),Up.Input({label:vp("enroll.symantecVip.passcode2.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("enroll.symantecVip.passcode2.tooltip","enroll.symantecVip.passcode2.placeholder","login"),"explain-top":!0,name:"nextPassCode",input:nd,type:"text"}
2),Up.Toolbar({noCancelButton:!0,save:vp("mfa.challenge.verify","login")})]}},Footer:id}),Zh={OKTA:{APPLE:"https://itunes.apple.com/us/app/okta-verify/id490179405",ANDROID:"https://play.google.com/store/apps/details?id=com.okta.android.auth"},GOOGLE:{APPLE:"https://itunes.apple.com/us/app/google-authenticator/id388497605",ANDROID:"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2"},STORE:{APPLE:"App Store",ANDROID:"Google Play Store"}};const ef={__deviceType__:function(e){return void 0!==e}},tf=xp.extend({attributes:{"data-se":"app-download-instructions"},className:"app-download-instructions",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="app-logo '+e.escapeExpression(typeof(a=null!=(a=u(n,"appIcon")||(null!=t?u(t,"appIcon"):t))?a:l)===c?a.call(s,{name:"appIcon",hash:{},data:i,loc:{start:{line:1,column:22},end:{line:1,column:33}}}):a)+'"></span><p class="instructions">'+(null!=(r=typeof(a=null!=(a=u(n,"appStoreLinkText")||(null!=t?u(t,"appStoreLinkText"):t))?a:l)===c?a.call(s,{name:"appStoreLinkText",hash:{},data:i,loc:{start:{line:1,column:66},end:{line:1,column:88}}}):a)?r:"")+"</p>"},useData:!0}),initialize:function(){this.listenTo(this.model,"change:__deviceType__",this.render)},postRender:function(){const e=this.$el.find(".instructions a");e.length&&(e[0].setAttribute("target","_blank"),e[0].setAttribute("rel","noreferer noopener"))},getTemplateData:function(){let e,t,n;const o=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return n=Zh.STORE[this.model.get("__deviceType__")],"GOOGLE"===this.model.get("__provider__")?(e=Zh.GOOGLE[this.model.get("__deviceType__")],t="google-auth-38"):(e=Zh.OKTA[this.model.get("__deviceType__")],t="okta-verify-download-icon"),{appStoreLinkText:n?vp("enroll.totp.downloadApp","login",[e,o,n]):null,appIcon:t}}}),nf=qp.extend({className:"enroll-totp",Model:function(){return{local:{__deviceType__:"string",__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},save:function(){return this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:this.get("__factorType__"),provider:this.get("__provider__")}).enroll()})}}},Form:{title:function(){const e=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return vp("enroll.totp.title","login",[e])},noButtonBar:!0,attributes:{"data-se":"step-device-type"},formChildren:function(){const e={APPLE:vp("iphone","login"),ANDROID:vp("android","login")};return[Up.Input({name:"__deviceType__",type:"radio",options:e,group:!0,label:Ss.partial(vp,"enroll.totp.selectDevice","login")}),Up.Divider({showWhen:ef}),Up.View({View:tf,showWhen:ef}),Up.Button({title:vp("oform.next","login"),attributes:{"data-type":"save"},className:"button button-primary default-custom-button",click:function(){this.model.save()},showWhen:ef})]}},Footer:id});n(71593);const of={getU2fEnrollErrorMessageKeyByCode:function(e){switch(e){default:case 1:return"u2f.error.other";case 2:case 3:return"u2f.error.badRequest";case 4:return"u2f.error.unsupported";case 5:return"u2f.error.timeout"}},getU2fVerifyErrorMessageKeyByCode:function(e,t){switch(e){case 1:return t?"u2f.error.other.oneFactor":"u2f.error.other";case 2:case 3:return t?"u2f.error.badRequest.oneFactor":"u2f.error.badRequest";case 4:return t?"u2f.error.unsupported.oneFactor":"u2f.error.unsupported";case 5:return"u2f.error.timeout"}},getU2fEnrollErrorMessageByCode:function(e){return ra(of.getU2fEnrollErrorMessageKeyByCode(e),"login")},getU2fVerifyErrorMessageByCode:function(e,t){return ra(of.getU2fVerifyErrorMessageKeyByCode(e,t),"login")},getU2fVersion:function(){return"U2F_V2"},isU2fAvailable:function(){return Object.prototype.hasOwnProperty.call(window,"u2f")}};var rf=qp.extend({className:"enroll-u2f",Model:{local:{__enrolled__:"boolean"},save:function(){return this.trigger("request"),this.get("__enrolled__")?this.activate():this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"u2f",provider:"FIDO"}).enroll()})},activate:function(){return this.set("__enrolled__",!0),this.trigger("errors:clear"),this.doTransaction(function(e){const t=e.factor.activation,n=t.appId,o=[{version:of.getU2fVersion(),challenge:t.nonce}],i=this,r=Cp().defer();return u2f.register(n,o,[],function(t){i.trigger("errors:clear"),t.errorCode&&0!==t.errorCode?r.reject(new $r({xhr:{responseJSON:{errorSummary:of.getU2fEnrollErrorMessageByCode(t.errorCode)}}})):r.resolve(e.activate({registrationData:t.registrationData,version:t.version,challenge:t.challenge,clientData:t.clientData}))}),r.promise})}},Form:{title:Ss.partial(vp,"enroll.u2f.title","login"),save:Ss.partial(vp,"enroll.u2f.save","login"),noCancelButton:!0,hasSavingState:!1,autoSave:!0,className:"enroll-u2f-form",noButtonBar:function(){return!of.isU2fAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){const e=[];
2if(of.isU2fAvailable())e.push(Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="u2f-instructions"><ol><li>'+(null!=(r=(l(n,"i18n")||t&&l(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.general2"},data:i,loc:{start:{line:1,column:38},end:{line:1,column:90}}}))?r:"")+"</li><li>"+e.escapeExpression((l(n,"i18n")||t&&l(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.general3"},data:i,loc:{start:{line:1,column:99},end:{line:1,column:149}}}))+"</li></ol></div>"},useData:!0})})})),e.push(Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="u2f-enroll-text hide"><p>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.instructions"},data:i,loc:{start:{line:1,column:37},end:{line:1,column:91}}}))+"</p><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.u2f.instructionsBluetooth"},data:i,loc:{start:{line:1,column:98},end:{line:1,column:161}}}))+'</p><div data-se="u2f-devices" class="u2f-devices-images"><div class="u2f-usb"></div><div class="u2f-bluetooth"></div></div><div data-se="u2f-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})}));else{let t="u2f.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="u2f.error.factorNotSupported.oneFactor"),e.push(Up.View({View:new mh({message:vp(t,"login")})},{selector:".o-form-error-container"}))}return e},_startEnrollment:function(){this.$(".u2f-instructions").addClass("hide"),this.$(".u2f-enroll-text").removeClass("hide"),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".u2f-instructions").removeClass("hide"),this.$(".u2f-enroll-text").addClass("hide"),this.$(".o-form-button-bar").show()}},Footer:id,trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return this.model.activate(),!0}}),af=Ap.extend({initialize:function(e){this.options=e||{},this.appState=this.options.appState},constructPostData:function(e){const t={registration:{profile:e}};return this.appState.get("policy").registration.createNewAccount&&(t.registration.createNewAccount=!0),t},getEnrollFormData:function(){return this.manageTransaction(function(e,t){return e.enroll().then(function(e){t(e)})})},save:function(){let e=Ap.prototype.toJSON.apply(this,arguments);if(e=Ss.omit(e,["appState","settings","createNewAccount"]),!Ss.isEmpty(e))return this.manageTransaction(function(t,n){t.enroll(this.constructPostData(e)).then(function(e){n(e)})});{const e={errorSummary:vp("oform.errorbanner.title","login")};this.trigger("error",this,{responseJSON:e})}}});let{BaseSchema:sf}=Tp.models;var lf=sf.Model.extend({expand:["schema"],setFieldPlaceholder:function(e){return Ss.each(e,function(e){e.title=e.label}),e},initialize:function(e){let t=e.profileSchemaAttributes;if(t=this.setFieldPlaceholder(t),t){const e={properties:{}};for(var n=0;n<t.length;n++){const o=t[n];e.properties[o.name]=o}this.parse.apply(this,[{schema:e}])}}});let{SchemaFormFactory:cf}=Tp.views.forms.helpers,{CheckBox:uf}=Tp.views.forms.inputs;const pf=function(e,t){if(!e)return!1;e=e.toLowerCase(),t=t.toLowerCase();const n=function(e){const t=e.split(""),n=[],o=[",",".","-","_","#","@"];let i="";return Ss.each(t,function(e){-1===o.indexOf(e)?i+=e:(i.length>=4&&n.push(Ss.clone(i)),i="")}),i.length>=4&&n.push(Ss.clone(i)),n.filter(Boolean)}(e);for(var o=0;o<n.length;o++){const e=n[o];if(-1!==t.indexOf(e))return!0}return!1},df=function(e,t,n,o){const i=t.get(e);Ss.isString(i)&&n.each(function(n,r){const a=sl("#subschemas-"+e+" .subschema-"+r);i?a.children("p").removeClass("default-schema"):a.children("p").addClass("default-schema"),a.children("p").removeAttr("role").removeAttr("aria-live"),a.removeClass("subschema-satisfied subschema-unsatisfied subschema-error"),function(e,t,n){const o=e.get("minLength"),i=e.get("maxLength"),r=e.get("format");if(Ss.isNumber(o)&&t.length<o)return!1;if(Ss.isNumber(i)&&t.length>i)return!1;const a=t;if(Ss.isString(r)){if("^[#/userName]"===r||"^[#/firstName]"===r||"^[#/lastName]"===r){const e=r.split("^[#/")[1].split("]")[0];let t=n.get(e);return"userName"===e?(t=n.has("userName")?n.get("userName"):n.get("email"),!pf(t,a)):!t||-1===a.indexOf(t)}if(!new RegExp(r).test(t))return!1}return!0}(n,i,t)?(a.addClass("subschema-satisfied"),a.find("p span").removeClass("error error-16-small"),a.find("p span").addClass("confirm-16")):o&&(a.find("p span").removeClass("confirm-16"),a.find("p span").addClass("error error-16-small"),a.addClass("subschema-error subschema-unsatisfied"),a.find("p").attr("role","alert").attr("aria-live","polite"))})};var hf=function(e){var t;let n=cf.createInputOptions(e);if("boolean"===(null===(t=e.options)||void 0===t?void 0:t.type)&&(n.input=uf),"select"===n.type)n=Ss.extend(n,{label:e.get("title")});else{let t=e.get("title");e.get("required")&&(t+=" *"),n=Ss.extend(n,{label:!1,"label-top":!0,placeholder:t})}const o=e.get("name");switch(o){case"userName":n.input=nd,n.params={icon:"person-16-gray"};break;case"password":n.type="password",n.input=nd,n.params={icon:"remote-lock-16"}}const i=e.get("subSchemas");return i&&(n.events={input:function(){df(o,this.model,i,!0)},focusout:function(){df(o,this.model,i,!0)},"change:userName":function(){df(o,this.model,i,!0)},"change:firstName":function(){df(o,this.model,i,!0)},"change:lastName":function(){df(o,this.model,i,!0)},"change:email":function(){df(o,this.model,i,!0)}}),n},ff=yp.extend({layout:"o-form-theme",autoSave:!0,noCancelButton:!0,title:function(){return vp("registration.form.title","login")},save:function(){return vp("registration.form.submit","login")},initialize:function(e){this.options=e||{},this.schema=new lf({profileSchemaAttributes:this.options.appState.get("policy").registration.profile}),this.schema.properties.each(e=>{const t=hf(e);this.addInput(t)});const t=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="required-fields-label">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:i,loc:{start:{line:1,column:36},end:{line:1,column:45}}}):r)+"</span>"},useData:!0}
2)({label:vp("registration.required.fields.label","login")});this.add(t)}}),mf=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:i,loc:{start:{line:1,column:50},end:{line:1,column:87}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .help":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")}}),gf=Pp.extend({className:"enroll-user",initialize:function(e){this.options=e||{},this.model=new af(this.options)},fetchInitialData:function(){return this.options.appState.get("isUnauthenticated")?this.model.getEnrollFormData():Pp.prototype.fetchInitialData.call()},trapAuthResponse:function(){if(this.options.appState.get("isProfileRequired"))return!0},postRender:function(){const e=new ff(this.toJSON());this.add(e),this.add(new mf(this.toJSON())),this.addListeners()}});const yf={};function vf(e){return new(Cp())(e)}yf.getStringHash=function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0},yf.base64UrlSafeToBase64=function(e){return e.replace(new RegExp("_","g"),"/").replace(new RegExp("-","g"),"+")},yf.binToStr=function(e){return btoa(new Uint8Array(e).reduce((e,t)=>e+String.fromCharCode(t),""))},yf.strToBin=function(e){return Uint8Array.from(atob(this.base64UrlSafeToBase64(e)),e=>e.charCodeAt(0))};var bf={makeCredential:function(e,t,n){return t=t.map(function(e){return{type:"FIDO_2_0",algorithm:e.algorithm}}),vf(window.msCredentials.makeCredential(e,t,n).then(function(e){return Object.freeze({credential:{id:e.id},publicKey:JSON.parse(e.publicKey),attestation:e.attestation})}))},getAssertion:function(e,t){const n={accept:t.map(function(e){return{type:"FIDO_2_0",id:e.id}})};return vf(window.msCredentials.getAssertion(e,n).then(function(e){const t=e.signature;return Object.freeze({credential:{id:e.id},clientData:t.clientData,authenticatorData:t.authnrData,signature:t.signature})}))},processWebAuthnResponse:function(e,t){if(void 0===e)return null;const n=e.apply(t);return null==n?null:JSON.stringify(n)},isAvailable:function(){return Object.prototype.hasOwnProperty.call(window,"msCredentials")},isNewApiAvailable:function(){return navigator&&navigator.credentials&&navigator.credentials.create},isWebauthnOrU2fAvailable:function(){return this.isNewApiAvailable()||of.isU2fAvailable()},isConditionalMediationAvailable:function(){return"undefined"!=typeof PublicKeyCredential&&void 0!==PublicKeyCredential.isConditionalMediationAvailable},isPasskeyAutofillAvailable:async function(){let e=!1;return this.isConditionalMediationAvailable()&&(e=await PublicKeyCredential.isConditionalMediationAvailable()),e},isPasskeyAvailable:function(){var e;const t=(null===(e=navigator)||void 0===e?void 0:e.credentials)||{};return"undefined"!=typeof PublicKeyCredential&&"function"==typeof t.get&&"function"==typeof t.create},isRelyingPartyIdMismatchError:function(e){return"SecurityError"===(null==e?void 0:e.name)&&18===(null==e?void 0:e.code)},isAbortError:function(e){return"AbortError"===(null==e?void 0:e.name)&&20===(null==e?void 0:e.code)},isNotAllowedError:function(e){return"NotAllowedError"===(null==e?void 0:e.name)&&0===(null==e?void 0:e.code)}};function wf(e){const t=[];return Ss.each(e,function(e){t.push({type:"public-key",id:yf.strToBin(e.id)})}),t}var _f=qp.extend({className:"enroll-webauthn",Model:{local:{__enrolled__:"boolean"},save:function(){return this.trigger("request"),this.get("__enrolled__")?this.activate():this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"webauthn",provider:"FIDO"}).enroll()})},activate:function(){return this.set("__enrolled__",!0),this.trigger("errors:clear"),this.appState.on("backToFactors",()=>{this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)}),this.doTransaction(function(e){const t=e.factor.activation,n=this;if(bf.isNewApiAvailable()){const o=Ss.extend({},t,{challenge:yf.strToBin(t.challenge),user:{id:yf.strToBin(t.user.id),name:t.user.name,displayName:t.user.displayName},excludeCredentials:wf(t.excludeCredentials)});return"undefined"!=typeof AbortController&&(n.webauthnAbortController=new AbortController),new(Cp())(navigator.credentials.create({publicKey:o,signal:n.webauthnAbortController&&n.webauthnAbortController.signal})).then(function(t){return e.activate({attestation:yf.binToStr(t.response.attestationObject),clientData:yf.binToStr(t.response.clientDataJSON),transports:bf.processWebAuthnResponse(t.response.getTransports,t.response),clientExtensions:bf.processWebAuthnResponse(t.getClientExtensionResults,t)})}).catch(function(e){throw n.trigger("errors:clear"),n.webauthnAbortController?new Hr({xhr:{responseJSON:{errorSummary:e.message}}}):new zr}).finally(function(){n.webauthnAbortController=null})}})}},Form:{title:Ss.partial(vp,"enroll.webauthn.biometric.title","login"),save:Ss.partial(vp,"enroll.webauthn.save","login"),noCancelButton:!0,hasSavingState:!1,autoSave:!0,className:"enroll-webauthn-form",noButtonBar:function(){return!bf.isNewApiAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){const e=[];
2if(bf.isNewApiAvailable())e.push(Up.View({View:xp.extend({className:"webauthn-enroll-text",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-edge-text"><p>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.webauthn.biometric.instructions.edge"},data:i,loc:{start:{line:1,column:173},end:{line:1,column:249}}}))?r:"")+"</p></div>"},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-restrictions-text"><p>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.webauthn.instructions.noSupportForBiometric"},data:i,loc:{start:{line:1,column:340},end:{line:1,column:423}}}))?r:"")+"</p></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-enroll-instructions"><p>'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.webauthn.biometric.instructions"},data:i,loc:{start:{line:1,column:45},end:{line:1,column:114}}}))+"</p></div>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"isEdge"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:124},end:{line:1,column:266}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"onlySupportsSecurityKey"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:266},end:{line:1,column:440}}}))?r:"")+'<div data-se="webauthn-waiting" class="okta-waiting-spinner hide"></div>'},useData:!0}),getTemplateData:function(){return{isEdge:Gr.isEdge(),onlySupportsSecurityKey:(Gr.isFirefox()||Gr.isSafari())&&Gr.isMac()}}})}));else{let t="webauthn.biometric.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="webauthn.biometric.error.factorNotSupported.oneFactor"),e.push(Up.View({View:new mh({message:vp(t,"login")})},{selector:".o-form-error-container"}))}return e},_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}},Footer:id,trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return this.model.activate(),!0}}),kf=xp.extend({className:"okta-waiting-spinner",attributes:{"data-se":"o-form-okta-waiting-spinner"},modelEvents:{"spinner:show":"show","spinner:hide":"hide"},initialize:function(e){e&&!1===e.visible&&this.hide()},show:function(){this.$el.removeClass("hide")},hide:function(){this.$el.addClass("hide")}}),xf=qp.extend({className:"enroll-windows-hello",Model:{local:{__isEnrolled__:"boolean"},save:function(){if(bf.isAvailable())return this.trigger("request"),this.get("__isEnrolled__")?this.activate():this.doTransaction(function(e){return this._enroll(e)})},_enroll:function(e){return Ss.findWhere(e.factors,{factorType:"webauthn",provider:"FIDO"}).enroll()},activate:function(){return this.set("__isEnrolled__",!0),this.doTransaction(function(e){const t=e.factor.activation,n=e.user,o=this,i={rpDisplayName:t.rpDisplayName,userDisplayName:n.profile.displayName,accountName:n.profile.login,userId:n.id},r=[{algorithm:t.algorithm}],a=t.nonce;return bf.makeCredential(i,r,a).then(function(t){return e.activate({credentialId:t.credential.id,publicKey:t.publicKey,attestation:null})}).catch(function(t){switch(t.message){case"AbortError":case"NotFoundError":case"NotSupportedError":return o.trigger("abort",t.message),e}throw t})})}},Form:{autoSave:!0,hasSavingState:!1,title:Ss.partial(vp,"enroll.windowsHello.title","login"),subtitle:function(){return bf.isAvailable()?vp("enroll.windowsHello.subtitle","login"):""},save:Ss.partial(vp,"enroll.windowsHello.save","login"),customSavingState:{stop:"abort"},modelEvents:function(){return bf.isAvailable()?{request:"_startEnrollment",error:"_stopEnrollment",abort:"_stopEnrollment"}:{}},noButtonBar:function(){return!bf.isAvailable()},formChildren:function(){const e=[];return bf.isAvailable()||e.push(Up.View({View:new mh({message:vp("enroll.windowsHello.error.notWindows","login")})},{selector:".o-form-error-container"})),e.push(Up.View({View:new kf({model:this.model,visible:!1})}
2)),e},_startEnrollment:function(){this.subtitle=vp("enroll.windowsHello.subtitle.loading","login"),this.model.trigger("spinner:show"),this._resetErrorMessage(),this.render(),this.$(".o-form-button-bar").addClass("hide")},_stopEnrollment:function(e){let t;if(this.subtitle=vp("enroll.windowsHello.subtitle","login"),this.model.trigger("spinner:hide"),"NotSupportedError"===e&&(t=vp("enroll.windowsHello.error.notConfiguredHtml","login")),this._resetErrorMessage(),t){const e=new mh({message:t});this.$(".o-form-error-container").addClass("o-form-has-errors"),this.add(e,{selector:".o-form-error-container"}),this._errorMessageView=this.last()}this.render(),this.$(".o-form-button-bar").removeClass("hide")},_resetErrorMessage:function(){this._errorMessageView&&this._errorMessageView.remove(),this._errorMessageView=void 0,this.clearErrors()}},Footer:id,trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate"))return this.model.activate(),!0}}),Sf=qp.extend({className:"enroll-yubikey",Model:{props:{passCode:["string",!0],factorId:"string"},save:function(){return this.doTransaction(function(e){return Ss.findWhere(e.factors,{factorType:"token:hardware",provider:"YUBICO"}).enroll({passCode:this.get("passCode")})})}},Form:{title:Ss.partial(vp,"enroll.yubikey.title","login"),subtitle:Ss.partial(vp,"enroll.yubikey.subtitle","login"),noCancelButton:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),autoSave:!0,className:"enroll-yubikey",formChildren:[Up.View({View:'<div class="yubikey-demo" data-type="yubikey-example"></div>'}),Up.Input({name:"passCode",input:nd,type:"password"})]},Footer:id});const Tf=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oform.back"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:99}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()}},back:function(){const e=Od.createActivateFactorUrl(this.options.appState.get("activatedFactorProvider"),this.options.appState.get("activatedFactorType"),"manual");this.options.appState.trigger("navigate",e)}}),Ef={title:Ss.partial(vp,"enroll.totp.enrollViaEmail.title","login"),noButtonBar:!0,attributes:{"data-se":"sent-email-activation-link"},formChildren:[Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.enrollViaEmail.msg"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:64}}}))+'</p><p class="email-address">'+l("function"==typeof(r=null!=(r=c(n,"email")||(null!=t?c(t,"email"):t))?r:s)?r.call(a,{name:"email",hash:{},data:i,loc:{start:{line:1,column:93},end:{line:1,column:102}}}):r)+"</p>"},useData:!0}),getTemplateData:function(){return{email:this.options.appState.get("userEmail")}}})})]},Cf={title:Ss.partial(vp,"enroll.totp.enrollViaSms.title","login"),noButtonBar:!0,attributes:{"data-se":"sent-sms-activation-link"},formChildren:[Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.enrollViaSms.msg"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:62}}}))+'</p><p class="phone-number">'+l("function"==typeof(r=null!=(r=c(n,"phoneNumber")||(null!=t?c(t,"phoneNumber"):t))?r:s)?r.call(a,{name:"phoneNumber",hash:{},data:i,loc:{start:{line:1,column:90},end:{line:1,column:105}}}):r)+"</p>"},useData:!0}
2),getTemplateData:function(){return{phoneNumber:this.model.get("fullPhoneNumber")}}})})]};var Of=qp.extend({className:"enroll-activation-link-sent",Model:function(){return{local:{countryCode:["string",!1,this.options.appState.get("userCountryCode")],phoneNumber:["string",!1,this.options.appState.get("userPhoneNumber")],__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},derived:{countryCallingCode:{deps:["countryCode"],fn:function(e){return"+"+xh(e)}},fullPhoneNumber:{deps:["countryCallingCode","phoneNumber"],fn:function(e,t){return e+t}}}}},Form:function(){const e=this.options.appState.get("factorActivationType");switch(e){case"SMS":return Cf;case"EMAIL":return Ef;default:throw new Error("Unknown activation option: "+e)}},Footer:Tf,initialize:function(){this.pollForEnrollment()},remove:function(){return qp.prototype.remove.apply(this,arguments)},pollForEnrollment:function(){return this.model.doTransaction(function(e){return e.poll(6e3)})},trapAuthResponse:function(){if(this.options.appState.get("isWaitingForActivation"))return this.pollForEnrollment(),!0}});const Af=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oform.back"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:99}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()}},back:function(){const e=Od.createActivateFactorUrl(this.options.appState.get("activatedFactorProvider"),"push","manual");this.options.appState.trigger("navigate",e)}});var Pf=qp.extend({className:"activate-push",Model:function(){return{props:{factorId:["string",!0,this.options.appState.get("activatedFactorId")],passCode:["string",!0]},local:{__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},save:function(){return this.doTransaction(function(e){return e.activate({passCode:this.get("passCode")})})}}},Form:od,Footer:Af}),Nf=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="infobox"><span class="icon info-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"helpSupportNumber",bundle:"login",code:"contact.support"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:134}}}))+"</p></div>"},useData:!0}),className:"contact-support",getTemplateData:function(){return this.settings.pick("helpSupportNumber")}});const Rf=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"password.forgot.noFactorsEnabled"},data:i,loc:{start:{line:1,column:110},end:{line:1,column:173}}}))+"</p></div>"},useData:!0})}),If=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:i,loc:{start:{line:1,column:94},end:{line:1,column:131}}}))+"</a>"},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link goto js-contact-support">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"mfa.noAccessToEmail"},data:i,loc:{start:{line:1,column:220},end:{line:1,column:270}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"unless").call(a,null!=t?s(t,"hideBackToSignInForReset"):t,{name:"unless",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:146}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"helpSupportNumber"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:146},end:{line:1,column:281}}}))?r:"")},useData:!0}
2),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-contact-support":function(e){e.preventDefault(),this.state.trigger("contactSupport"),this.$(".js-contact-support").hide()}},getTemplateData:function(){return{hideBackToSignInForReset:this.settings.get("features.hideBackToSignInForReset"),helpSupportNumber:this.settings.get("helpSupportNumber")}},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")}});var Df=qp.extend({className:"forgot-password",Model:{props:{username:["string",!0],factorType:["string",!0]},validate:function(){return Yh.validateUsername(this)},save:function(){const e=this,t=this.settings.get("relayState");this.startTransaction(function(n){return n.forgotPassword({username:e.settings.transformUsername(e.get("username"),Mr.FORGOT_PASSWORD),factorType:e.get("factorType"),relayState:t})}).catch(function(){})}},Form:{noButtonBar:!0,title:Ss.partial(vp,"password.reset","login"),formChildren:function(){const e=this.settings.get("features.smsRecovery"),t=this.settings.get("features.callRecovery"),n=this.settings.get("features.emailRecovery"),o=[];return e||t||n?(o.push(Up.Input({label:vp("password.forgot.email.or.username.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("password.forgot.email.or.username.tooltip","password.forgot.email.or.username.placeholder","login"),"explain-top":!0,name:"username",input:nd,inputId:"account-recovery-username",autoComplete:ca.getAutocompleteValue(this.settings,"username"),type:"text",inlineValidation:!1})),(e||t)&&o.push(Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="mobile-recovery-hint">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"mobileFactors",bundle:"login",code:"recovery.mobile.hint"},data:i,loc:{start:{line:1,column:32},end:{line:1,column:109}}}))+"</p>"},useData:!0}),getTemplateData:function(){let n;return n=vp(e&&t?"recovery.smsOrCall":t?"recovery.call":"recovery.sms"),{mobileFactors:n}}})})),e&&(this.$el.addClass("forgot-password-sms-enabled"),o.push(this.createRecoveryFactorButton("sms-button","password.forgot.sendText",Mr.RECOVERY_FACTOR_TYPE_SMS,this)),this.setDefaultFactorType(Mr.RECOVERY_FACTOR_TYPE_SMS)),t&&(this.$el.addClass("forgot-password-call-enabled"),o.push(this.createRecoveryFactorButton("call-button","password.forgot.call",Mr.RECOVERY_FACTOR_TYPE_CALL,this)),this.setDefaultFactorType(Mr.RECOVERY_FACTOR_TYPE_CALL)),n&&(this.$el.addClass("forgot-password-email-enabled"),o.push(this.createRecoveryFactorButton("email-button","password.forgot.sendEmail",Mr.RECOVERY_FACTOR_TYPE_EMAIL,this)),this.setDefaultFactorType(Mr.RECOVERY_FACTOR_TYPE_EMAIL))):this.add(Rf,".o-form-error-container"),o},initialize:function(){this.listenTo(this.state,"contactSupport",function(){this.add(Nf,".o-form-error-container")}),this.listenTo(this,"save",function(){this.options.appState.set("username",this.model.get("username")),this.model.save()})},setDefaultFactorType:function(e){Ss.isEmpty(this.model.get("factorType"))&&this.model.set("factorType",e)},createRecoveryFactorButton:function(e,t,n,o){return Up.Button({attributes:{"data-se":e},className:"button button-primary button-wide "+e,title:vp(t,"login"),click:function(){o.clearErrors(),this.model.isValid()&&(this.model.set("factorType",n),o.trigger("save",this.model))}})}},Footer:If,initialize:function(){this.options.appState.unset("username")}});const Lf=Tp.util.Cookie,Mf="ln",Uf=function(){return Lf.getCookie(Mf)},jf=function(e){Lf.setCookie(Mf,e,{expires:365,path:"/"})},Ff=function(){Lf.removeCookie(Mf,{path:"/"})};var Vf=Ap.extend({props:function(){const e=Uf(),t=this.getUsernameAndRemember(e),n={username:{type:"string",validate:function(e){if(Ss.isEmpty(e))return vp("error.username.required","login")},value:t.username},lastUsername:["string",!1,e],context:["object",!1],remember:["boolean",!0,t.remember],multiOptionalFactorEnroll:["boolean",!0]};return this.settings&&this.settings.get("features.passwordlessAuth")||(n.password={type:"string",validate:function(e){if(Ss.isEmpty(e))return vp("error.password.required","login")}}),n},getUsernameAndRemember:function(e){const t=this.settings&&this.settings.get("username"),n=this.settings&&this.settings.get("features.rememberMe");let o,i=!1;return t?(o=t,i=n&&o===e):n&&e&&(o=e,i=!0),{username:o,remember:i}},constructor:function(e){this.settings=e&&e.settings,this.appState=e&&e.appState,Gs.apply(this,arguments),this.listenTo(this,"change:username",function(e,t){this.set({remember:t===this.get("lastUsername")})})},parse:function(e){return Ss.omit(e,["settings","appState"])},save:function(){const e=this.settings.transformUsername(this.get("username"),Mr.PRIMARY_AUTH),t=this.get("remember"),n=this.get("lastUsername");this.setUsernameCookie(e,t,n),this.trigger("save"),this.appState.trigger("loading",!0);const o=this.getSignInArgs(e);let i;if(this.appState.get("isUnauthenticated")){const e=this.appState.settings.getAuthClient();i=this.appState.get("isIdxStateToken")?this.doTransaction(function(t){return this.doPr
2imaryAuth(e,o,t.login)}):this.doTransaction(function(t){return this.doPrimaryAuth(e,o,t.authenticate)},!0)}else i=this.startTransaction(function(e){return this.doPrimaryAuth(e,o,Ss.bind(e.signInWithCredentials,e))});return i.catch(()=>{this.appState.trigger("removeLoading"),Ff()}).finally(()=>{this.appState.trigger("loading",!1)})},getSignInArgs:function(e){const t=this.get("multiOptionalFactorEnroll"),n={};return this.settings.get("features.passwordlessAuth")||(n.password=this.get("password")),this.appState.get("isIdxStateToken")?n.identifier=e:(n.username=e,n.options={warnBeforePasswordExpired:!0,multiOptionalFactorEnroll:t}),n},setUsernameCookie:function(e,t,n){this.settings.get("features.rememberMe")&&(t||n!==e?t&&jf(e):Ff())},doPrimaryAuth:function(e,t,n){const o=this.settings.get("features.deviceFingerprinting"),i=this.settings.get("features.trackTypingPattern");o&&this.appState.get("deviceFingerprint")&&e.http.setRequestHeader("X-Device-Fingerprint",this.appState.get("deviceFingerprint")),i&&this.appState.get("typingPattern")&&e.http.setRequestHeader("X-Typing-Pattern",this.appState.get("typingPattern"));const r=this;return n(t).finally(function(){o&&(e.http.setRequestHeader("X-Device-Fingerprint",void 0),r.appState.unset("deviceFingerprint")),i&&(e.http.setRequestHeader("X-Typing-Pattern",void 0),r.appState.unset("typingPattern"))})}}),qf=function(e,t){return e.fingerprint({timeout:2e3,container:t})};const Bf=Tp.util.Util,$f=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="auth-divider"><span class="auth-divider-text">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"text")||(null!=t?a(t,"text"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"text",hash:{},data:i,loc:{start:{line:1,column:58},end:{line:1,column:66}}}):r)+"</span></div>"},useData:!0}),Hf=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 data-se="o-form-head" class="okta-form-title o-form-head">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:62},end:{line:1,column:71}}}):r)+"</h2>"},useData:!0});var zf=xp.extend({className:"primary-auth-container",children:function(){const e=[],t=this.settings.get("configuredSocialIdps"),n=this.settings.get("piv"),o=this.settings.get("customButtons"),i=$f({text:vp("socialauth.divider.text","login")});return this.settings.get("hasPivCard")&&e.push(this._createPivButton(n)),Ss.each(t,function(t){e.push(this._createSocialIdpButton(t))},this),Ss.each(o,function(t){e.push(this._createCustomButton(t))},this),this.settings.get("socialAuthPositionTop")?(e.unshift(Hf({title:vp("primaryauth.title","login")})),e.push(i)):e.unshift(i),e},_createSocialIdpButton:function(e){return bp({attributes:{"data-se":e.dataAttr},className:e.className,title:function(){return e.text||vp(e.i18nKey)},click:function(t){if(t.preventDefault(),this.settings.get("oauth2Enabled"))Ed.getTokens(this.settings,{idp:e.id},this.options.currentController);else{const t=this.settings.get("baseUrl");let n;const o=this.options.appState.get("lastAuthResponse");n=this.options.appState.get("usingDeviceFlow")?sl.param({stateToken:null==o?void 0:o.stateToken}):sl.param({fromURI:this.settings.get("relayState")});const i=`${t}/sso/idps/${e.id}?${n}`;Bf.redirect(i)}}})},_createPivButton:function(e){let t=e.className||"";return bp({attributes:{"data-se":"piv-card-button"},className:t+" piv-button",title:e.text||vp("piv.cac.card","login"),click:function(e){e.preventDefault(),this.options.appState.trigger("navigate","signin/verify/piv")}})},_createCustomButton:function(e){return bp({attributes:{"data-se":e.dataAttr},className:e.className+" default-custom-button",title:function(){return e.title||vp(e.i18nKey)},click:e.click})}}),Wf=function e(){if(1==e.initialized)return e.instance;for(var t in e.prototype.start=function(){return e.start.apply(this,arguments)},e.prototype.stop=function(){return e.stop.apply(this,arguments)},e.prototype.reset=function(){return e.reset.apply(this,arguments)},e.prototype.addTarget=function(){return e.addTarget.apply(this,arguments)},e.prototype.removeTarget=function(){return e.removeTarget.apply(this,arguments)},e.prototype.getTypingPattern=function(){return e.getTypingPattern.apply(this,arguments)},e.prototype.get=function(){return e.get.apply(this,arguments)},e.prototype.startDiagram=function(){},e.prototype.stopDiagram=function(){},e.prototype.getDiagram=function(){return e.getDiagram.apply(this,arguments)},e.prototype.getExtendedDiagram=function(){return e.getExtendedDiagram.apply(this,arguments)},e.prototype.getMouseDiagram=function(){return e.getMouseDiagram.apply(this,arguments)},e.prototype.startMouse=function(){return e.startMouse.apply(this,arguments)},e.prototype.stopMouse=function(){return e.stopMouse.apply(this,arguments)},e.prototype.getQuality=function(){return e.getQuality.apply(this,arguments)},e.prototype.getLength=function(){return e.getLength.apply(this,arguments)},e.prototype.isMobile=function(){return e.isMobile.apply(this,arguments)},e.prototype.getTextId=function(){return e.getTextId.apply(this,arguments)},e.initialized=!0,e.prototype.maxHistoryLength=e.maxHistoryLength,e.prototype.defaultHistoryLength=e.defaultHistoryLength,e.prototype.maxSeekTime=e.maxSeekTime,e.prototype.maxPressTime=e.maxPressTime,e.version=2.15,e.flags=0,e.instance=this,e.document=document,e.maxHistoryLength=2e3,e.maxSeekTime=1500,e.maxPressTime=300,e.defaultHistoryLength=160,e.spKeyCodes=[8,13,32],e.spKeyCodesObj={8:1,13:1,32:1},e.keyCodes=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,32,222,188,190,186,187,189,191,48,49,50,51,52,53,54,55,56,57],e.keyCodesObj={},e.keyCodes)e.keyCodesObj[e.keyCodes[t]]=1;e.pt1=e.ut1=(new Date).getTime(),e.wfk=[],e.sti=[],e.skt=[],e.recording=!0,e.mouseRecording=!0,e.mouseMoveRecording=!1,e.spKeyRecording=!0,e.diagramRecording=!0,e.dwfk=[],e.dsti=[],e.dskt=[],e.drkc=[],e.prevKeyCode=0,e.maxMoveDeltaT
2ime=600,e.maxScrollDeltaTime=800,e.maxStopTime=1500,e.maxClickTime=600,e.maxMouseHistoryLength=500,e.lastMouseMoveTime=e.lastMouseDownTime=(new Date).getTime(),e.stopTimes=[],e.clickTimes=[],e.lastMouseStop=!0,e.zl=1e-7,e.isAndroidChrome=!1,e.ACLastTime=(new Date).getTime(),e.ACSeekTime=0,e.ACPressTime=0,e.ACLastCharCode=0,e.ACLastKeyCode=0,e.ACInputLengths={inputs:[],lastLength:[]},e.ACPreviousKeyCode=0,e.targetIds=[],e.lastTarget="",e.lastTargetFound=!1,e.replaceMissingKeys=!0,e.replaceMissingKeysPerc=7,e.keyDown=function(t){if((e.recording||e.diagramRecording)&&e.isTarget(t.target.id)){var n=t.keyCode;if(1==e.wfk[n]||e.dwfk[n],229==n&&e.isMobile()&&!e.isAndroidChrome)e.isAndroidChrome=!0,e.ACSeekTime=(new Date).getTime()-e.ACLastTime,e.ACLastTime=(new Date).getTime(),e.document.removeEventListener("keydown",e.keyDown),e.document.removeEventListener("keyup",e.keyUp),e.document.removeEventListener("keypress",e.keyPress),e.document.addEventListener("keydown",e.ACKeyDown),e.document.addEventListener("keyup",e.ACKeyUp);else{var o=e.pt1,i=(e.pt1=(new Date).getTime())-o,r=e.pt1;(1==e.recording||e.spKeyCodesObj[n]&&1==e.spKeyRecording)&&(t.shiftKey&&!e.isMobile()||(e.wfk[n]=1,e.skt[n]=i,e.sti[n]=r)),1==e.diagramRecording&&(e.dwfk[n]=1,e.dskt[n]=i,e.dsti[n]=r,e.dlastDownKey=n)}}},e.keyPress=function(t){(e.recording||e.diagramRecording)&&e.isTarget(t.target.id)&&1==e.diagramRecording&&(e.drkc[e.dlastDownKey]=t.charCode)},e.keyUp=function(t){if((e.recording||e.diagramRecording)&&e.isTarget(t.target.id)){var n=(new Date).getTime(),o=t.keyCode;if(1==e.recording||e.spKeyCodesObj[o]&&1==e.spKeyRecording){if((!t.shiftKey||e.isMobile())&&1==e.wfk[o]){var i=n-e.sti[o],r=[o,e.skt[o],i,e.prevKeyCode,n,t.target.id];e.history.add(r),e.prevKeyCode=o}e.wfk[o]=0}if(1==e.diagramRecording){if(null!=e.drkc[o]&&0!=e.drkc[o]&&1==e.dwfk[o]){i=n-e.dsti[o];var a=[o,e.dskt[o],i,e.drkc[o],n,t.target.id];e.history.addDiagram(a)}e.dwfk[o]=0}}},e.mouseScroll=function(t){if(1==e.mouseRecording&&1==e.mouseMoveRecording)if(1==e.mouse.scrollStarted){var n=(new Date).getTime();e.mouse.scrollTimes.push(n),e.mouse.scrollTopArr.push(e.document.body.scrollTop),clearInterval(e.scrollInterval),e.scrollInterval=setInterval(e.mouse.checkScroll,e.maxScrollDeltaTime)}else e.mouse.scrollStarted=!0},e.mouseMove=function(t){if(1==e.mouseRecording){var n=(new Date).getTime();1==e.mouseMoveRecording&&(1==e.mouse.started?(e.mouse.times.push(n),e.mouse.xPositions.push(t.screenX),e.mouse.yPositions.push(t.screenY),clearInterval(e.moveInterval),e.moveInterval=setInterval(e.mouse.checkMove,e.maxMoveDeltaTime)):e.mouse.started=!0),e.lastMouseMoveTime=n}},e.mouseDown=function(t){if(1==e.mouseRecording&&(e.mouse.checkMove(),e.mouse.checkScroll(),1==t.which)){var n=(e.lastMouseDownTime=(new Date).getTime())-e.lastMouseMoveTime;if(n<e.maxStopTime&&0==e.lastMouseStop&&(e.stopTimes.push(n),1==e.mouseMoveRecording)){var o=[3,n];e.mouse.history.add(o),e.lastMouseStop=!0}}},e.mouseUp=function(t){if(1==e.mouseRecording&&1==t.which){var n=(new Date).getTime()-e.lastMouseDownTime;if(n<e.maxClickTime&&e.lastMouseDownTime>e.lastMouseMoveTime&&(e.clickTimes.push(n),1==e.mouseMoveRecording)){var o=[4,n];e.mouse.history.add(o)}}},e.ACKeyDown=function(t){(e.recording||e.diagramRecording)&&(e.ACSeekTime=(new Date).getTime()-e.ACLastTime,e.ACLastTime=(new Date).getTime(),e.isTarget(t.target.id)&&-1===e.ACInputLengths.inputs.indexOf(t.target)&&(e.ACInputLengths.inputs.push(t.target),e.ACInputLengths.lastLength.push(0)))},e.ACKeyUp=function(t){if((e.recording||e.diagramRecording)&&(e.ACPressTime=(new Date).getTime()-e.ACLastTime,e.ACLastTime=(new Date).getTime(),e.isTarget(t.target.id))){var n=t.keyCode,o=e.ACInputLengths.inputs.indexOf(t.target);if(-1===o&&(e.ACInputLengths.inputs.push(t.target),e.ACInputLengths.lastLength.push(0),o=e.ACInputLengths.inputs.indexOf(t.target)),229==n&&t.target.value.length>=e.ACInputLengths.lastLength[o]){var i=t.target.value.substr(t.target.selectionStart-1||0,1);n=i.toUpperCase().charCodeAt(0),e.ACLastCharCode=i.charCodeAt(0),e.ACLastKeyCode=i.toUpperCase().charCodeAt(0)}e.ACInputLengths.lastLength[o]=t.target.value.length;var r=[n,e.ACSeekTime,e.ACPressTime,e.ACPreviousKeyCode,e.ACLastTime];if(e.history.add(r),e.ACPreviousKeyCode=n,1==e.diagramRecording){var a=[n,e.ACSeekTime,e.ACPressTime,e.ACLastCharCode];e.history.addDiagram(a)}}},e.isTarget=function(t){if(e.lastTarget==t&&e.lastTargetFound)return!0;var n=e.targetIds.length,o=!1;if(n>0){for(var i=0;i<n;i++)if(e.targetIds[i]==t){o=!0;break}return e.lastTarget=t,e.lastTargetFound=o,o}return e.lastTarget=t,e.lastTargetFound=!0,!0},e.document.addEventListener?(e.document.addEventListener("keydown",e.keyDown),e.document.addEventListener("keyup",e.keyUp),e.document.addEventListener("keypress",e.keyPress),e.document.addEventListener("mousemove",e.mouseMove),e.document.addEventListener("mousedown",e.mouseDown),e.document.addEventListener("mouseup",e.mouseUp),e.document.addEventListener("scroll",e.mouseScroll)):e.document.attachEvent&&(e.document.attachEvent("onkeydown",e.keyDown),e.document.attachEvent("onkeyup",e.keyUp),e.document.attachEvent("onkeypress",e.keyPress),e.document.attachEvent("onmousemove",e.mouseMove),e.document.attachEvent("onmousedown",e.mouseDown),e.document.attachEvent("onmouseup",e.mouseUp),e.document.attachEvent("onscroll",e.mouseScroll)),(e.mouse={}).times=[],e.mouse.xPositions=[],e.mouse.yPositions=[],e.mouse.scrollTimes=[],e.mouse.scrollTopArr=[],e.mouse.history={},e.mouse.history.stack=[],e.mouse.getDistance=function(e,t){return Math.sqrt(e*e+t*t)},e.mouse.getTotalDistance=function(n,o){var i=0,r=n.length;for(t=1;t<r-1;t++){var a=n[t]-n[t-1],s=o[t]-o[t-1];i+=e.mouse.getDistance(a,s)}return i},e.mouse.getAngle=function(e,t){var n=t<0;return e>=0?n?180+Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251):90-Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251)+270:n?90-Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251)+90:Math.round(Math.atan(Math.abs(e)/(Math.abs(t)+1e-7))/.01745329251)},e.mouse.recordMoveAction=function(){var n=e.mouse.times.length;if(!(n<3)){var o=e.mouse.times[n-1]-e.mouse.times[0],i=e.mouse.xPositions[n-1]-e.mouse.xPositions[0],r=e.mouse.yPositions[n-1]-e.mouse.yPositions[0],a=Math.round(e.mouse.getDistance(i,r)),s=Math.round(e.mouse.getTotalDistance(e.mouse.xPositions,e.mouse.yPositions)),l=Math.round(100*s/a),c=[1,o,a,Math.round(100*a/o),e.mouse.getAngle(i,r),l];for(t in c)if(isNaN(c[t]))return;e.mouse.history.add(c),e.lastMouseStop=!1}},e.mouse.recordScrollAction=function(){var n=e.mouse.scrollTimes.length;if(!(n<2)){var o=e.mouse.scrollTimes[n-1]-e.mouse.scrollTimes[0],i=e.mouse.scrollTopArr[n-1]-e.mouse.scrollTopArr[0],r=[2,o,i,Math.round(100*i/o)];for(t in r)if(isNaN(r[t])&&!isFinite(r[t]))return;e.mouse.history.add(r)}},e.mouse.history.add=function(t){this.stack.push(t),this.stack.length>e.maxMouseHistoryLength&&this.stack.shift()},e.mouse.history.getDiagram=function(){var t=this.stack.join("|");return[String(e.isMobile())+","+String(e.version),t].join("|")},e.mouse.clearLastMove=function(){e.mouse.times=[],e.mouse.xPositions=[],e.mouse.yPositions=[]},e.mouse.checkMove=function(){clearInterval(e.moveInterval),1==e.mouse.started&&(e.mouse.started=!1,e.mouse.recordMoveAction(),e.mouse.clearLastMove())},e.mouse.clearLastScroll=function(){e.mouse.scrollTimes=[],e.mouse.scrollTopArr=[]},e.mouse.checkScroll=function(){clearInterval(e.scrollInterval),1==e.mouse.scrollStarted&&(e.mouse.scrollStarted=!1,e.mouse.recordScrollAction(),e.mouse.clearLastScroll())},e.addTarget=function(t){var n=e.targetIds.length,o=!1;if(n>0){for(var i=0;i<n;i++)if(e.targetIds[i]==t){o=!0;break}o||e.targetIds.push(t)}else e.targetIds.push(t)},e.removeTarget=function(t){var n=e.targetIds.length;if(n>0)for(var o=0;o<n;o++)if(e.targetIds[o]==t){e.targetIds.splice(o,1);break}},e.reset=function(t){e.history.stack=[],e.history.stackDiagram=[],e.clickTimes=[],e.stopTimes=[],e.ACInputLengths={inputs:[],lastLength:[]},1==t&&(e.mouse.history.stack=[])},e.start=function(){return e.diagramRecording=!0,e.recording=!0},e.stop=function(){return e.diagramRecording=!1,e.recording=!1},e.startMouse=function(){return e.mouseRecording=e.mouseMoveRecording=!0},e.stopMouse=function(){return e.mouseRecording=e.mouseMoveRecording=!1},e.getTypingPattern=function(t){if("object"!=typeof t)return e.get();switch(t.type){case 0:return e.get(t.length,t.targetId);case 1:var n=null!=t.text?t.text:t.length;return e.history.getDiagram(t.extended,n,t.textId,t.targetId,t.caseSensitive);case 2:return n=null!=t.text?t.text:t.length,e.history.getDiagram(!0,n,t.textId,t.targetId,t.caseSensitive);default:return e.get(t.length)}},e.getDiagram=function(t,n){return e.history.getDiagram(!1,t,n,void 0,!1)},e.getExtendedDiagram=function(t,n){return e.history.getDiagram(!0,t,n,void 0,!1)},e.getMouseDiagram=function(){return e.mouse.history.getDiagram()},e.get=function(t,n){var o=e.history.stack.length;null!=t&&0!=t||(t=e.defaultHistoryLength),t>o&&(t=o);var i={};[i.arr,targetLength]=e.history.get(t,"",n),null!=n&&""!=n&&(t=targetLength);var r=e.zl,a=t,s=e.math.fo(e.history.get(t,"seek",n)),l=e.math.fo(e.history.get(t,"press",
2n)),c=Math.round(e.math.avg(l)),u=Math.round(e.math.avg(s)),p=Math.round(e.math.sd(l)),d=Math.round(e.math.sd(s)),h=u+c,f=e.math.rd((c+r)/(h+r),4),m=e.math.rd((1-f)/f,4),g=e.math.rd((p+r)/(c+r),4),y=e.math.rd((d+r)/(c+r),4),v=Math.round(6e4/(h+r));for(var b in 0==a&&(v=0),i.arr){var w=i.arr[b][1].length,_=0,k=0,x=0,S=0,T=0,E=0;switch(i.arr[b][0].length){case 0:break;case 1:_=e.math.rd((i.arr[b][0][0]+r)/(u+r),4);break;default:var C=e.math.fo(i.arr[b][0]);_=e.math.rd((e.math.avg(C)+r)/(u+r),4),S=e.math.rd((e.math.sd(C)+r)/(d+r),4)}switch(i.arr[b][1].length){case 0:break;case 1:k=e.math.rd((i.arr[b][1][0]+r)/(c+r),4);break;default:C=e.math.fo(i.arr[b][1]);k=e.math.rd((e.math.avg(C)+r)/(c+r),4),T=e.math.rd((e.math.sd(C)+r)/(p+r),4)}switch(i.arr[b][2].length){case 0:break;case 1:x=e.math.rd((i.arr[b][2][0]+r)/(u+r),4);break;default:C=e.math.fo(i.arr[b][2]),x=e.math.rd((e.math.avg(C)+r)/(u+r),4),E=e.math.rd((e.math.sd(C)+r)/(d+r),4)}delete i.arr[b][2],delete i.arr[b][1],delete i.arr[b][0],i.arr[b][0]=w,i.arr[b][1]=_,i.arr[b][2]=k,i.arr[b][3]=x,i.arr[b][4]=S,i.arr[b][5]=T,i.arr[b][6]=E}e.apu(C=[],a),e.apu(C,v),e.apu(C,h),e.apu(C,f),e.apu(C,m),e.apu(C,g),e.apu(C,y),e.apu(C,c),e.apu(C,u),e.apu(C,p),e.apu(C,d);for(var O=0;O<=6;O++)for(b=0;b<44;b++){var A=e.keyCodes[b],P=i.arr[A][O];0==P&&O>0&&(P=1),e.apu(C,P)}return e.apu(C,e.isMobile()),e.apu(C,e.version),e.apu(C,e.flags),C.push(e.history.getSpecialKeys()),C.join(",")},e.apu=function(e,t){"NaN"==String(t)&&(t=0),e.push(t)},(e.math={}).rd=function(e,t){return Number(e.toFixed(t))},e.math.avg=function(e){var t=e.length;if(t>0){for(var n=0,o=0;o<t;o++)n+=e[o];return this.rd(n/t,4)}return 0},e.math.sd=function(e){var t=e.length;if(t<2)return 0;for(var n=0,o=this.avg(e),i=0;i<t;i++)n+=(e[i]-o)*(e[i]-o);return Math.sqrt(n/t)},e.math.fo=function(e){if(e.length>1){var t=e.concat(),n=e.length;t.sort(function(e,t){return e-t});var o=this.sd(t),i=t[Math.ceil(e.length/2)],r=i+2*o,a=i-2*o;n<20&&(a=0);for(var s=[],l=0;l<n;l++){var c=t[l];c<r&&c>a&&s.push(c)}return s}return e},e.math.fnv1aHash=function(e){if(null==e&&"string"!=typeof e)return 0;var t,n,o=1914395348;for(t=0,n=(e=e.toLowerCase()).length;t<n;t++)o^=e.charCodeAt(t),o+=(o<<1)+(o<<4)+(o<<7)+(o<<8)+(o<<24);return o>>>0},(e.history={}).stack=[],e.history.stackDiagram=[],e.history.add=function(t){this.stack.push(t),this.stack.length>e.maxHistoryLength&&this.stack.shift()},e.history.addDiagram=function(e){this.stackDiagram.push(e)},e.history.getDiagram=function(t,n,o,i,r){r=null!=r?r:null==n||""==n;var a=[],s=1==t?1:0,l=this.stackDiagram;if(null!=i&&""!=i&&l.length>0)l=e.sliceStackByTargetId(l,i),(null==n||""==n)&&null!=(p=e.document.getElementById(i))&&(n=p.value);else{var c=e.targetIds.length;if((null==n||""==n)&&c>0){n="";for(var u=0;u<c;u++){var p;null!=(p=e.document.getElementById(e.targetIds[u]))&&(n+=p.value)}}}var d=0,h=l.length,f=h;"string"==typeof n?f=n.length:"number"==typeof n&&n<h&&(f=n);var m=0;if(null!=o?m=isNaN(parseInt(o))?e.math.fnv1aHash(o):parseInt(o):"string"==typeof n&&(m=e.math.fnv1aHash(n)),a.push([e.isMobile(),e.version,e.flags,s,f,m,e.history.getSpecialKeys()]),null!=n&&n.length>0&&"string"==typeof n){var g,y,v=n.toLowerCase(),b=n.toUpperCase(),w=[],_=0;for(u=0;u<n.length;u++){var k=n.charCodeAt(u);r||(y=(g=b.charCodeAt(u))!=k?g:v.charCodeAt(u));for(var x=_,S=h,T=!1;0==T;){for(var E=x;E<S;E++)if((L=(D=l[E])[3])==k||!r&&L==y){if(T=!0,E==_)_++,w=[];else{w.push(E);var C=w.length;C>1&&w[C-1]==w[C-2]+1&&(_=E+1,w=[])}var O=D[0],A=D[1],P=D[2];t?a.push([L,A,P,O]):a.push([A,P]);break}if(0==T)if(0!=x)x=0,S=_;else if(T=!0,e.replaceMissingKeys){if(d++,"object"!=typeof e.savedMissingAvgValues||e.savedMissingAvgValues.historyLength!=h){var N=e.math.fo(e.history.get(0,"seek")),R=e.math.fo(e.history.get(0,"press"));A=Math.round(e.math.avg(N)),P=Math.round(e.math.avg(R)),e.savedMissingAvgValues={seekTime:A,pressTime:P,historyLength:h}}else A=e.savedMissingAvgValues.seekTime,P=e.savedMissingAvgValues.pressTime;t?a.push([k,A,P,k,1]):a.push([A,P,1]);break}}if(e.replaceMissingKeysPerc<100*d/f)return null}}else{var I=0;for("number"==typeof n&&(I=h-n),I<0&&(I=0),u=I;u<h;u++){var D;if(O=(D=l[u])[0],A=D[1],P=D[2],t){var L=D[3];a.push([L,A,P,O])}else a.push([A,P])}}return a.join("|")},e.sliceStackByTargetId=function(e,n){var o=e.length,i=[];for(t=0;t<o;t++){var r=e[t];r[5]==n&&i.push(r)}return i},e.history.get=function(t,n,o){var i=this.stack;null!=o&&""!=o&&i.length>0&&(i=e.sliceStackByTargetId(i,o));var r=i.length;switch(0!=t&&null!=t||(t=e.defaultHistoryLength),t>r&&(t=r),n){case"seek":var a=[];for(c=1;c<=t;c++)(d=i[r-c][1])<=e.maxSeekTime&&a.push(d);return a;case"press":var s=[];for(c=1;c<=t;c++)(h=i[r-c][2])<=e.maxPressTime&&s.push(h);return s;default:var l={};for(var c in e.keyCodes)l[e.keyCodes[c]]=[[],[],[]];for(c=1;c<=t;c++){var u=i[r-c],p=u[0],d=u[1],h=u[2],f=u[3];e.keyCodesObj[p]&&(d<=e.maxSeekTime&&(l[p][0].push(d),0!=f&&e.keyCodesObj[f]&&l[f][2].push(d)),h<=e.maxPressTime&&l[p][
21].push(h))}return[l,t]}},e.history.getSpecialKeys=function(){var t=[],n=this.stack.length,o={};for(var i in e.spKeyCodes)o[e.spKeyCodes[i]]=[[]];for(i=1;i<=n;i++){var r=this.stack[n-i];if(e.spKeyCodesObj[r[0]]){var a=r[0],s=r[2];s<=e.maxPressTime&&o[a][0].push(s)}}for(var i in e.spKeyCodes){var l=(r=e.math.fo(o[e.spKeyCodes[i]][0])).length;t.push(l),l>1?(t.push(Math.round(e.math.avg(r))),t.push(Math.round(e.math.sd(r)))):1==l?t.push([r[0],-1]):t.push([-1,-1])}var c=e.clickTimes.length;t.push(c),c>1?(t.push(Math.round(e.math.avg(e.clickTimes))),t.push(Math.round(e.math.sd(e.clickTimes)))):1==c?t.push(e.clickTimes[0],-1):t.push([-1,-1]);var u=e.stopTimes.length;return t.push(u),u>1?(t.push(Math.round(e.math.avg(e.stopTimes))),t.push(Math.round(e.math.sd(e.stopTimes)))):1==u?t.push(e.stopTimes[0],-1):t.push([-1,-1]),t},e.getQuality=function(t){var n=t.split(",");for(a=0;a<n.length;a++)n[a]=Number(n[a]);n[0];var o=rec=avgAcc=0,i=e.math.avg(n),r=n.slice(11,55);for(var a in r)rec+=Number(r[a]>0),o+=Number(r[a]>4),avgAcc+=Number(r[a]>i);var s=Math.sqrt(rec*o*avgAcc)/80;return s>1?1:s},e.checkMobileValidity=function(e){var t=e.split(","),n=t[0];if(0==n)return 0;var o=0,i=t.slice(11,55);for(var r in i)o+=Number(i[r]);return o/n},e.getLength=function(e){return Number(e.split(",")[1])},e.isMobile=function(){if(null!=e.mobile)return e.mobile;var t=0;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=1)}(navigator.userAgent||navigator.vendor||window.opera),e.mobile=t,t},e.getTextId=function(t){return e.math.fnv1aHash(t)}};let Kf;var Gf=yp.extend({className:"primary-auth-form",noCancelButton:!0,attributes:{novalidate:"novalidate"},save:function(){return this.settings.get("features.passwordlessAuth")?vp("oform.next","login"):vp("primaryauth.submit","login")},saveId:"okta-signin-submit",layout:"o-form-theme",title:function(){let e=vp("primaryauth.title","login");return this.settings.get("socialAuthPositionTop")&&(e=""),e},initialize:function(){const e=this.settings.get("features.trackTypingPattern");this.listenTo(this,"save",async function(){const{appState:t}=this.options;if(e){const e=function(){try{return Kf.getTypingPattern({type:1})}catch(e){return null}}();t.set("typingPattern",e)}const n={username:this.model.get("username")};if(this.settings.get("features.passwordlessAuth")||(n.password=this.model.get("password")),t.trigger("loading",!0),this.state.trigger("togglePrimaryAuthButton",!0),await this.settings.processCreds(n),this.settings.get("features.deviceFingerprinting"))try{const e=await qf(this.settings.getAuthClient(),this.$el[0]);t.set("deviceFingerprint",e)}catch{}this.model.save()}),this.stateEnableChange(),this.stateUsernameChange()},stateEnableChange:function(){this.listenTo(this.state,"change:enabled",function(e,t){t?this.enable():this.disable()})},stateUsernameChange:function(){this.listenTo(this.state,"change:disableUsername",function(e,t){t?this.$el.find("#okta-signin-username").attr("disabled",!0):this.$el.find("#okta-signin-username").removeAttr("disabled")})},inputs:function(){const e=[];return e.push(this.getUsernameField()),this.settings.get("features.passwordlessAuth")||e.push(this.getPasswordField()),this.settings.get("features.rememberMe")&&e.push(this.getRemeberMeCheckbox()),e},getUsernameField:function(){return{className:"margin-btm-5",label:vp("primaryauth.username.placeholder","login"),"label-top":!0,explain:()=>
2!!this.isCustomized("primaryauth.username.tooltip")&&ca.createInputExplain("primaryauth.username.tooltip","primaryauth.username.placeholder","login"),"explain-top":!0,name:"username",input:nd,inputId:"okta-signin-username",type:"text",disabled:this.options.appState.get("disableUsername"),autoComplete:ca.getAutocompleteValue(this.settings,"username"),render:function(){const e=this;function t(){e.$(this).removeAttr("aria-invalid").off("focusout",t).off("change",t)}this.$(`input[name=${this.options.name}]`).attr({"aria-invalid":"false","aria-required":"true"}).prop({required:!0}).focusout(t).change(t)}}},getPasswordField:function(){const e={className:"margin-btm-30",label:vp("primaryauth.password.placeholder","login"),"label-top":!0,explain:()=>!!this.isCustomized("primaryauth.password.tooltip")&&ca.createInputExplain("primaryauth.password.tooltip","primaryauth.password.placeholder","login"),"explain-top":!0,name:"password",inputId:"okta-signin-password",validateOnlyIfDirty:!0,type:"password",autoComplete:ca.getAutocompleteValue(this.settings,"current-password"),render:function(){const e=this;function t(){e.$(this).removeAttr("aria-invalid").off("focusout",t).off("change",t)}this.$(`input[name=${this.options.name}]`).attr({"aria-invalid":"false","aria-required":"true"}).prop({required:!0}).focusout(t).change(t)}};return this.settings.get("features.showPasswordToggleOnSignInPage")&&(e.params={},e.params.showPasswordToggle=!0),e},isCustomized:function(e){const t=this.settings.get("language"),n=this.settings.get("i18n");return!!(n&&n[t]&&n[t][e])},getRemeberMeCheckbox:function(){return{label:!1,placeholder:vp("remember","login"),name:"remember",type:"checkbox","label-top":!0,className:"margin-btm-0",initialize:function(){this.listenTo(this.model,"change:remember",function(e,t){this.$(":checkbox").prop("checked",t).trigger("updateState")})}}},focus:function(){this.model.get("username")?this.settings.get("features.passwordlessAuth")||this.getInputs().toArray()[1].focus():this.getInputs().first().focus(),this.settings.get("features.trackTypingPattern")&&function(e){try{Kf=new Wf,Kf.addTarget(e),Kf.start()}catch(e){}}("okta-signin-username")}});const{Util:Yf}=Tp.util;var Jf=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<li><a href="#" data-se="unlock" class="link js-unlock">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"unlockaccount"},data:i,loc:{start:{line:1,column:440},end:{line:1,column:484}}}))+"</a></li>"},1:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<li><a href="'+u(typeof(a=null!=(a=p(n,"href")||(null!=t?p(t,"href"):t))?a:l)===c?a.call(s,{name:"href",hash:{},data:i,loc:{start:{line:1,column:539},end:{line:1,column:547}}}):a)+'" class="link js-custom" rel="noopener noreferrer" '+(null!=(r=p(n,"if").call(s,null!=t?p(t,"target"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:598},end:{line:1,column:638}}}))?r:"")+">"+u(typeof(a=null!=(a=p(n,"text")||(null!=t?p(t,"text"):t))?a:l)===c?a.call(s,{name:"text",hash:{},data:i,loc:{start:{line:1,column:639},end:{line:1,column:647}}}):a)+"</a></li>"},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'target="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"target")||(null!=t?a(t,"target"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"target",hash:{},data:i,loc:{start:{line:1,column:620},end:{line:1,column:630}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" data-se="needhelp" aria-expanded="false" aria-controls="help-links-container" class="link help js-help">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"needhelp"},data:i,loc:{start:{line:1,column:116},end:{line:1,column:155}}}))+'</a><ul class="help-links js-help-links" id="help-links-container"><li><a href="#" data-se="forgot-password" class="link js-forgot-password">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"forgotpassword"},data:i,loc:{start:{line:1,column:296},end:{line:1,column:341}}}))+"</a></li>"+(null!=(r=u(n,"if").call(s,null!=(r=null!=t?u(t,"features"):t)?u(r,"selfServiceUnlock"):r,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:350}
2,end:{line:1,column:500}}}))?r:"")+(null!=(r=u(n,"each").call(s,null!=(r=null!=t?u(t,"helpLinks"):t)?u(r,"custom"):r,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:500},end:{line:1,column:665}}}))?r:"")+'<li><a href="'+c("function"==typeof(a=null!=(a=u(n,"helpLinkUrl")||(null!=t?u(t,"helpLinkUrl"):t))?a:l)?a.call(s,{name:"helpLinkUrl",hash:{},data:i,loc:{start:{line:1,column:678},end:{line:1,column:693}}}):a)+'" data-se="help-link" class="link js-help-link" rel="noopener noreferrer" target="_blank">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"help"},data:i,loc:{start:{line:1,column:783},end:{line:1,column:818}}}))+"</a></li></ul>"},useData:!0}),className:"auth-footer",initialize:function(){this.listenTo(this.state,"change:enabled",function(e,t){this.$(".link").toggleClass("o-form-disabled",!t)})},getTemplateData:function(){let e;return e=this.settings.get("helpLinks.help")||_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"baseUrl")||(null!=t?a(t,"baseUrl"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"baseUrl",hash:{},data:i,loc:{start:{line:1,column:0},end:{line:1,column:11}}}):r)+"/help/login"},useData:!0})({baseUrl:this.settings.get("baseUrl")}),Ss.extend(this.settings.toJSON({verbose:!0}),{helpLinkUrl:e})},postRender:function(){this.$(".js-help-links").hide()},toggleLinks:function(e){e.preventDefault(),this.$(".js-help-links").slideToggle(200,()=>{this.$(".js-help").attr("aria-expanded",this.$(".js-help-links").is(":visible"))})},events:{"click .js-help":function(e){e.preventDefault(),this.state.get("enabled")&&this.toggleLinks(e)},"click .js-forgot-password":function(e){if(e.preventDefault(),!this.state.get("enabled"))return;const t=this.settings.get("helpLinks.forgotPassword");t?Yf.redirect(t):this.options.appState.trigger("navigate","signin/forgot-password")},"click .js-unlock":function(e){if(e.preventDefault(),!this.state.get("enabled"))return;const t=this.settings.get("helpLinks.unlock");t?Yf.redirect(t):this.options.appState.trigger("navigate","signin/unlock")}}}),Qf=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="content-container"><span class="registration-label">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:i,loc:{start:{line:1,column:64},end:{line:1,column:73}}}):r)+'</span><a title="'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:i,loc:{start:{line:1,column:90},end:{line:1,column:98}}}):r)+'" aria-label="'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:i,loc:{start:{line:1,column:112},end:{line:1,column:120}}}):r)+'" class="registration-link" href="#">'+c(typeof(r=null!=(r=u(n,"text")||(null!=t?u(t,"text"):t))?r:s)===l?r.call(a,{name:"text",hash:{},data:i,loc:{start:{line:1,column:157},end:{line:1,column:165}}}):r)+"</a></div>"},useData:!0}),className:"registration-container",events:{"click a.registration-link":"handleClickEvent"},handleClickEvent:function(e){e.preventDefault();const t=this.settings.get("registration.click");t?t():this.options.appState.get("isIdxStateToken")?this.options.appState.trigger("navigate","signin/enroll-user"):this.options.appState.trigger("navigate","signin/register")},getTemplateData:function(){return{label:vp("registration.signup.label","login"),text:vp("registration.signup.text","login")}}}),Xf=Pp.extend({className:"primary-auth",state:{enabled:!0},View:Gf,constructor:function(e){e.appState.unset("username"),this.model=new Vf({multiOptionalFactorEnroll:e.settings.get("features.multiOptionalFactorEnroll"),settings:e.settings,appState:e.appState},{parse:!0}),Pp.apply(this,arguments),this.addListeners(),e.settings.get("hasConfiguredButtons")&&this.add(zf,{prepend:e.settings.get("socialAuthPositionTop"),options:{currentController:this}}),this.addFooter(e),this.options.appState.get("disableUsername")&&this.addFooterWithBackLink(this.options),this.setUsername()},addFooter:function(e){this.add(new Jf(this.toJSON({appState:e.appState}))),(e.settings.get("features.registration")||e.appState.get("isIdxStateToken"))&&this.add(new Qf({settings:this.settings,appState:e.appState}))},addFooterWithBackLink:function(e){this.$el.find(".footer-back-link").length||this.add(new mf(this.toJSON({appState:e.appState,className:"auth-footer footer-back-link"})))},setUsername:function(){const e=this.model.get("username");e&&this.options.appState.set("username",e)},setUsernameFromIdpDiscovery:function(){const e=this.options.username;e&&(this.model.set("username",e),this.options.appState.set("disableUsername",!0))},events:{"focusout input[name=username]":function(){if(this.shouldComputeDeviceFingerprint()&&this.model.get("username")){const e=this;this.options.appState.trigger("loading",!0),qf(this.settings.getAuthClient(),this.$el[0]).then(function(t){e.options.appState.set("deviceFingerprint",t),e.options.appState.set("username",e.model.get("username"))}).catch(function(){e.options.appState.set("username",e.model.get("username"))}).finally(function(){e.options.appState.trigger("loading",!1)})}else this.options.appState.set("username",this.model.get("username"))},"focusin input":function(e){sl(e.target.parentElement).addClass("focused-input")},"focusout input":function(e){sl(e.target.parentElement).removeClass("focused-input")}},initialize:function(){this.options.appState.unset("deviceFingerprint"),this.settings.get("features.prefillUsernameFromIdpDiscovery")&&this.setUsernameFromIdpDiscovery(),this.listenTo(this.model,"change:username",function(e,t){t||this.options.appState.set("username","")}),this.listenTo(this.model,"save",function(){this.state.set("enabled",!1)}),this.listenTo(this.model,"error",function(){this.state.set("enabled",!0),this.options.appState.get("disableUsername")&&(this.state.set("disableUsername",!0),this.addFooterWithBackLink(this.options))}),this.listenTo(this.state,"togglePrimaryAuthButton",function(e){this.toggleButtonState(e)})},shouldComputeDeviceFingerprint:function(){return this.settings.get("features.securityImage")&&this.settings.get("features.deviceFingerprinting")&&this.settings.get("features.useDeviceFingerprintForSecurityImage")}}),Zf=Vf.extend({props:function(){const e=Uf(),t=this.getUsernameAndRemember(e);return{username:["string",!0,t.username],lastUsername:["string",!1,e],context:["object",!1],remember:["boolean",!0,t.remember]}},local:{},save:function(){const e=this.settings.transformUsername(this.get("username"),Mr.IDP_DISCOVERY),t=this.get("remember"),n=this.get("lastUsername"),o="okta:acct:"+e,i=this.get("requestContext");this.setUsernameCookie(e,t,n),this.trigger("save"),this.appState.trigger("loading",!0);const r={resource:o,requestContext:i};this.appState.settings.getAuthClient().webfinger(r).then(e=>{e&&e.links&&e.links[0]&&("OKTA"===e.links[0].properties["okta:idp:type"]?this.trigger("goToPrimaryAuth"):e.links[0].href&&(e.links[0].href.includes("OKTA_INVALID_SESSION_REPOST%3Dtrue")?ca.redirectWithFormGet.bind(ca):this.settings.get("redirectUtilFn"))(e.links[0].href))}).catch(()=>{const e={errorSummary:vp("oform.error.webfinger","login")};this.trigger("error",this,{responseJSON:e}),this.appState.trigger("removeLoading"),Ff()}).finally(()=>{this.appState.trigger("loading",!1)})}}),em=Gf.extend({className:"idp-discovery-form",save:function(){return vp("oform.next","login")},saveId:"idp-discovery-submit",initialize:function(){this.listenTo(this,"save",Ss.bind(this.model.save,this.model)),this.stateEnableChange()},inputs:function(){const e=[],t={className:"margin-btm-30",label:vp("primaryauth.username.placeholder","login"),inputId:"idp-discovery-username",disabled:!1};return e.push(Ss.extend(this.getUsernameField(),t)),this.settings.get("features.rememberMe")&&e.push(this.getRemeberMeCheckbox()),e},focus:function(){this.model.get("username")?this.getInputs().toArray()[1]&&this.getInputs().toArray()[1].focus():this.getInputs().first().focus()}}),tm=Xf.extend({className:"idp-discovery",View:em,constructor:function(e){e.appState.unset("username");let t=e.settings.get("idpDiscovery.requestContext");const n=e.appState.get("lastAuthResponse"),o=n&&(null==n?void 0:n.stateToken);ca.isV1StateToken(t)&&(t=o),this.model=new Zf({requestContext:t,settings:e.settings,appState:e.appState},{parse:!0}),Pp.apply(this,arguments),this.addListeners(),e.settings.get("hasConfiguredButtons")&&this.add(zf,{prepend:e.settings.get("socialAuthPositionTop"),options:{currentController:this}}),this.addFooter(e),this.setUsername()},initialize:function(){Xf.prototype.initialize.apply(this),this.listenTo(this.model,"goToPrimaryAuth",function(){this.settings.set("username",this.model.get("username"));const e=this;this.settings.get("features.deviceFingerprinting")?qf(this.settings.getAuthClient(),this.$el[0]).then(function(t){e.options.appState.set("deviceFingerprint",t),e.options.appState.set("username",e.model.get("username"))}).catch(function(){e.options.appState.set("username",e.model.get("username"))}).finally(function(){e.doPrimaryAuth()}):e.doPrimaryAuth()})},doPrimaryAuth:function(){if(this.settings.get("features.passwordlessAuth")){const e=new Vf({username:this.model.get("username"),multiOptionalFactorEnroll:this.options.settings.get("features.multiOptionalFactorEnroll"),settings:this.options.settings,appState:this.options.appState},{parse:!0});this.listenTo(e,"error",function(e,t){this.toggleButtonState(!1),this.model.trigger("error",this.model,t)}),this.addModelListeners(e),e.save()}else{this.options.appState.set("disableUsername",!0);const e=Od.createSigninUrl(this.settings.get("features.prefillUsernameFromIdpDiscovery")&&this.model.get("username"));this.options.appState.trigger("navigate",e)}}}),nm=Pp.extend({className:"force-idp-discovery",View:kf,Model:{},initialize:function(){const e=this.options,t=e.appState.get("lastAuthResponse"),n={resource:"okta:acct:",requestContext:t&&(null==t?void 0:t.stateToken)};e.appState.settings.getAuthClient().webfinger(n).then(t=>{null!=t&&t.links&&t.links[0]&&"OKTA"!==t.links[0].properties["okta:idp:type"]&&t.links[0].href?(t.links[0].href.includes("OKTA_INVALID_SESSION_REPOST%3Dtrue")?ca.redirectWithFormGet.bind(ca):this.settings.get("redirectUtilFn"))(t.links[0].href):e.appState.trigger("navigate","")}).catch(()=>{e.appState.trigger("navigate","")})}});function om(e){const t=Od.createActivateFactorUrl(e.get("activatedFactorProvider"),e.get("activatedFactorType"));e.trigger("navigate",t)}var im=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.backToFactors"}
2,data:i,loc:{start:{line:1,column:58},end:{line:1,column:106}}}))+'</a><a href="#" class="link help goto js-goto" data-se="goto-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.scanBarcode"},data:i,loc:{start:{line:1,column:173},end:{line:1,column:219}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-goto":function(e){e.preventDefault();const t=Ss.partial(om,this.options.appState);this.options.appState.unset("factorActivationType"),this.model.doTransaction(function(e){return e.prev().then(function(e){return Ss.findWhere(e.factors,{factorType:"push",provider:"OKTA"}).enroll()})}).then(t)}},back:function(){const e=this;e.options.appState.unset("factorActivationType"),e.options.appState.get("prevLink")?this.model.doTransaction(function(e){return e.prev()}).then(function(){e.options.appState.trigger("navigate","signin/enroll")}):e.options.appState.trigger("navigate","signin/enroll")}});function rm(e,t){const n=Od.createActivateFactorUrl(e.options.appState.get("activatedFactorProvider"),e.options.appState.get("activatedFactorType"),t);e.options.appState.trigger("navigate",n)}const am={sharedSecret:function(e){return!Ss.isUndefined(e)},activationType:"MANUAL"};function sm(e){let t,n;"SMS"===e.model.get("activationType")&&(n=e.model.get("countryCode"),t=e.model.get("phoneNumber")),e.options.appState.set({factorActivationType:e.model.get("activationType"),userCountryCode:n,userPhoneNumber:t})}function lm(e,t){return e.model.doTransaction(function(n){return n.prev().then(function(e){return Ss.findWhere(e.factors,{factorType:t,provider:"OKTA"}).enroll()}).then(function(t){let n,o,i;const r=t.data;if(r&&r._embedded&&r._embedded.factor&&r._embedded.factor._embedded&&r._embedded.factor._embedded.activation){const e=r._embedded.factor;if(i=e._embedded.activation.sharedSecret,e._embedded.activation._links&&e._embedded.activation._links.send){const t=e._embedded.activation._links.send,i=Ss.findWhere(t,{name:"sms"});n=i?i.href:null;const r=Ss.findWhere(t,{name:"email"});o=r?r.href:null}}return e.model.set({SMS:n,EMAIL:o,sharedSecret:i}),t})})}var cm=qp.extend({className:"enroll-manual-push",Model:function(){return{local:{activationType:["string",!0,this.options.appState.get("factorActivationType")||"SMS"],countryCode:["string",!1,this.options.appState.get("userCountryCode")],phoneNumber:"string",SMS:["string",!1,this.options.appState.get("textActivationLinkUrl")],EMAIL:["string",!1,this.options.appState.get("emailActivationLinkUrl")],sharedSecret:["string",!1,this.options.appState.get("sharedSecret")],__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]},derived:{countryCallingCode:{deps:["countryCode"],fn:function(e){return"+"+xh(e)}},fullPhoneNumber:{deps:["countryCallingCode","phoneNumber"],fn:function(e,t){return e+t}}}}},Form:{title:function(){const e=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return vp("enroll.totp.title","login",[e])},subtitle:Ss.partial(vp,"enroll.totp.cannotScanBarcode","login"),noButtonBar:!0,attributes:{"data-se":"step-manual-setup"},formChildren:function(){const e=this.settings.get("brandName")?vp("enroll.totp.sharedSecretInstructions.specific","login",[this.settings.get("brandName")]):vp("enroll.totp.sharedSecretInstructions.generic","login"),t=[Up.Input({name:"activationType",label:vp("mfa.setupOptions","login"),type:"select",wide:!0,options:{SMS:vp("enroll.totp.sendSms","login"),EMAIL:vp("enroll.totp.sendEmail","login"),MANUAL:vp("enroll.totp.setupManually","login")}}),Up.Input({label:vp("mfa.country","login"),name:"countryCode",type:"select",wide:!0,options:_h(),showWhen:{activationType:"SMS"}}),Up.Input({label:vp("mfa.phoneNumber.placeholder","login"),"label-top":!0,className:"enroll-sms-phone",name:"phoneNumber",input:Th,type:"text",showWhen:{activationType:"SMS"}}),Up.View({View:xp.extend({className:"secret-key-instructions",attributes:{"data-se":"secret-key-instructions"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<section aria-live="assertive"><p class="okta-form-subtitle o-form-explain text-align-c">'+c(typeof(r=null!=(r=u(n,"instructions")||(null!=t?u(t,"instructions"):t))?r:s)===l?r.call(a,{name:"instructions",hash:{},data:i,loc:{start:{line:1,column:89},end:{line:1,column:105}}}):r)+'</p><p class="shared-key margin-top-10" tabindex=0 aria-label="'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{arguments:"sharedSecretKey",bundle:"login",code:"enroll.totp.sharedSecretInstructions.aria.secretKey"},data:i,loc:{start:{line:1,column:168},end:{line:1,column:278}}}
2))+'">'+c(typeof(r=null!=(r=u(n,"sharedSecretKey")||(null!=t?u(t,"sharedSecretKey"):t))?r:s)===l?r.call(a,{name:"sharedSecretKey",hash:{},data:i,loc:{start:{line:1,column:280},end:{line:1,column:299}}}):r)+"</p></section>"},useData:!0}),initialize:function(){this.listenTo(this.model,"change:sharedSecret",this.render)},getTemplateData:function(){return{instructions:e,sharedSecretKey:this.model.get("sharedSecret")}}}),showWhen:{activationType:"MANUAL"}}),Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div data-type="next-button-wrap"></div>'},useData:!0})}),showWhen:am}),Up.Button({title:vp("oform.next","login"),className:"button button-primary button-wide button-next",attributes:{"data-se":"next-button"},click:()=>{sm(this),rm(this,"passcode")}},'[data-type="next-button-wrap"]'),Up.Toolbar({noCancelButton:!0,save:vp("oform.send","login"),showWhen:{activationType:function(e){return"SMS"===e||"EMAIL"===e}}})];return t}},Footer:im,initialize:function(){this.setInitialModel(),this.listenTo(this.form,"save",function(){const e=this;this.model.doTransaction(function(t){const n=this.get("activationType").toLowerCase(),o={};return"sms"===n&&(o.profile={phoneNumber:this.get("fullPhoneNumber")}),t.factor.activation.send(n,o).then(function(t){return sm(e),Ss.defer(function(){rm(e,"sent")}),t})})}),this.listenTo(this.model,"change:activationType",function(e,t){this.form.clearErrors(),"MANUAL"===t&&"token:software:totp"!==this.options.appState.get("activatedFactorType")?lm(this,"token:software:totp"):"push"!==this.options.appState.get("activatedFactorType")&&lm(this,"push")})},setInitialModel:function(){"SMS"===this.options.appState.get("factorActivationType")&&this.model.set({countryCode:this.options.appState.get("userCountryCode")||"US",phoneNumber:this.options.appState.get("userPhoneNumber")})},trapAuthResponse:function(){if(this.options.appState.get("isMfaEnrollActivate")||this.options.appState.get("isMfaEnroll"))return!0}}),um=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.backToFactors"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:106}}}))+'</a><a href="#" class="link help goto js-goto" data-se="goto-link">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"mfa.scanBarcode"},data:i,loc:{start:{line:1,column:173},end:{line:1,column:219}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-goto":function(e){e.preventDefault(),this.model.startTransaction(function(e){return e.tx.resume()})}},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.get("prevLink")?this.model.doTransaction(function(e){return e.prev()}):this.options.appState.trigger("navigate","signin/enroll")}}),pm=qp.extend({className:"enroll-manual-totp",Model:function(){return{local:{sharedSecret:["string",!1,this.options.appState.get("sharedSecret")],__factorType__:["string",!1,this.options.factorType],__provider__:["string",!1,this.options.provider]}}},Form:{title:function(){const e=Qp.getFactorLabel(this.model.get("__provider__"),this.model.get("__factorType__"));return vp("enroll.totp.title","login",[e])},subtitle:Ss.partial(vp,"enroll.totp.cannotScanBarcode","login"),noButtonBar:!0,attributes:{"data-se":"step-manual-setup"},formChildren:function(){const e=this.settings.get("brandName")?vp("enroll.totp.manualSetupInstructions.specific","login",[this.settings.get("brandName")]):vp("enroll.totp.manualSetupInstructions.generic","login");return[Up.View({View:xp.extend({className:"secret-key-instructions",attributes:{"data-se":"secret-key-instructions"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<section aria-live="assertive"><p class="okta-form-subtitle o-form-explain text-align-c">'+c(typeof(r=null!=(r=u(n,"instructions")||(null!=t?u(t,"instructions"):t))?r:s)===l?r.call(a,{name:"instructions",hash:{},data:i,loc:{start:{line:1,column:89},end:{line:1,column:105}}}):r)+'</p><p class="shared-key margin-top-10" tabindex=0 aria-label="'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{arguments:"sharedSecretKey",bundle:"login",code:"enroll.totp.sharedSecretInstructions.aria.secretKey"},data:i,loc:{start:{line:1,column:168},end:{line:1,column:278}}}
2))+'">'+c(typeof(r=null!=(r=u(n,"sharedSecretKey")||(null!=t?u(t,"sharedSecretKey"):t))?r:s)===l?r.call(a,{name:"sharedSecretKey",hash:{},data:i,loc:{start:{line:1,column:280},end:{line:1,column:299}}}):r)+"</p></section>"},useData:!0}),initialize:function(){this.listenTo(this.model,"change:sharedSecret",this.render)},getTemplateData:function(){return{instructions:e,sharedSecretKey:this.model.get("sharedSecret")}}})}),Up.Toolbar({noCancelButton:!0,save:vp("oform.next","login")})]}},Footer:um,initialize:function(){this.listenTo(this.form,"save",function(){const e=Od.createActivateFactorUrl(this.model.get("__provider__"),this.model.get("__factorType__"),"activate");this.options.appState.trigger("navigate",e)})}}),dm=yp.extend({layout:"o-form-theme",className:"factor-verify-magiclink",autoSave:!0,noCancelButton:!0,initialize:function(){const e=this;this.title=this.model.get("factorLabel");const t=this.model.get("email")||this.options.appState.get("lastAuthResponse")._embedded.user.profile.login;this.subtitle="("+t+")",this.add(bp({attributes:{"data-se":"email-send-code"},className:"button email-request-button",title:vp("mfa.sendEmail","login"),click:function(){e.clearErrors(),this.disable(),this.options.title=vp("mfa.sent","login"),this.render(),this.model.save().then(()=>Cp().delay(Mr.API_RATE_LIMIT)).then(()=>{this.options.title=vp("mfa.resendEmail","login"),this.enable(),this.render()})}}))}}),hm=yp.extend({autoSave:!0,noButtonBar:!0,scrollOnError:!1,layout:"o-form-theme",className:"mfa-verify-totp-inline",attributes:{"data-se":"factor-inline-totp"},initialize:function(){const e=this;this.listenTo(this.model,"error",function(){this.clearErrors()}),this.add(bp({className:"link",attributes:{"data-se":"inline-totp-add"},title:vp("mfa.challenge.orEnterCode","login"),click:function(){this.remove(),function(e){e.addDivider(),e.addInput({label:vp("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top inline-input auth-passcode",name:"answer",input:nd,type:"tel"}),e.add(bp({attributes:{"data-se":"inline-totp-verify"},className:"button inline-totp-verify margin-top-30",title:vp("mfa.challenge.verify","login"),click:function(){e.clearErrors(),e.isValid()&&e.model.manageTransaction(function(t,n){if("MFA_CHALLENGE"===t.status&&t.prev)return e.options.appState.set("trapMfaRequiredResponse",!0),t.prev().then(function(t){n(t),e.model.save()});e.model.save()})}})),e.at(1).focus()}(e)}}))}});const fm=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"("+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:i,loc:{start:{line:1,column:1},end:{line:1,column:13}}}):r)+")"},useData:!0}),mm=xp.extend({className:"okta-form-infobox-warning infobox infobox-warning login-timeout-warning",attributes:{"aria-live":"polite"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+(null!=(r="function"==typeof(a=null!=(a=s(n,"warning")||(null!=t?s(t,"warning"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:i,loc:{start:{line:1,column:40},end:{line:1,column:53}}}):a)?r:"")+"</p>"},useData:!0})});function gm(e){switch(e){case"sms":return{buttonDataSe:"sms-send-code",buttonClassName:"sms-request-button",formSubmit:vp("mfa.sendCode","login"),formRetry:vp("mfa.resendCode","login"),formSubmitted:vp("mfa.sent","login"),subtitle:fm({subtitle:this.model.get("phoneNumber")}),warning:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.sms.time.warning"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:70}}}))},useData:!0}
2)};case"call":return{buttonDataSe:"make-call",buttonClassName:"call-request-button",formSubmit:vp("mfa.call","login"),formRetry:vp("mfa.redial","login"),formSubmitted:vp("mfa.calling","login"),subtitle:fm({subtitle:this.model.get("phoneNumber")}),warning:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<b>$1</b>",bundle:"login",code:"factor.call.time.warning"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:71}}}))},useData:!0})};case"email":return{buttonDataSe:"email-send-code",buttonClassName:"email-request-button",formSubmit:vp("mfa.sendEmail","login"),formRetry:vp("mfa.resendEmail","login"),formSubmitted:vp("mfa.sent","login"),subtitle:fm({subtitle:this.model.get("email")})};default:return{buttonDataSe:"",buttonClassName:"",formSubmit:"",formRetry:"",formSubmitted:""}}}var ym=yp.extend({className:"mfa-verify-passcode",autoSave:!0,noCancelButton:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",disableSubmitButton:function(){return this.model.appState.get("isMfaChallenge")&&this.model.get("answer")},showWarning:function(e){this.clearWarnings(),this.add(mm,".o-form-error-container",{options:{warning:e}})},clearWarnings:function(){this.$(".okta-form-infobox-warning").remove()},initialize:function(){const e=this;this.title=this.model.get("factorLabel");const t=this.model.get("factorType"),n=gm.call(this,t),o=n.warning;this.$el.attr("data-se","factor-"+t),this.subtitle=n.subtitle,this.listenTo(this.model,"error",function(){this.clearErrors()}),this.addInput({label:vp("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:nd,type:"tel"}),this.add(bp({attributes:{"data-se":n.buttonDataSe},className:"button "+n.buttonClassName,title:n.formSubmit,click:function(){e.clearErrors(),this.disable(),e.clearWarnings(),this.options.title=n.formSubmitted,this.render(),this.model.set("answer",""),this.model.save().then(function(){return e.getInputs().first().render().focus(),Cp().delay(Mr.API_RATE_LIMIT)}).then(()=>{this.options.title=n.formRetry,this.enable(),"call"!==t&&"sms"!==t||e.showWarning(o),this.render()})}})),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})}}),vm=yp.extend({className:"mfa-verify-password",autoSave:!0,noCancelButton:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-password"},initialize:function(){this.title=this.model.get("factorLabel"),this.addInput({label:vp("mfa.challenge.password.placeholder","login"),"label-top":!0,className:"auth-passcode",name:"password",type:"password",params:{showPasswordToggle:!0}}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})}}),bm=xp.extend({className:"number-challenge-view",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};
2return'<p data-se="number-challenge-instruction">'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"number",bundle:"login",code:"oktaverify.numberchallenge.instruction"},data:i,loc:{start:{line:1,column:73},end:{line:1,column:163}}}))?r:"")+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=u(n,"if").call(s,null!=t?u(t,"number"):t,{name:"if",hash:{includeZero:!0},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:174}}}))?r:"")+'<div class="phone"><div class="phone--body"><div class="phone--screen"><span class="phone--number" data-se="challenge-number">'+c("function"==typeof(a=null!=(a=u(n,"number")||(null!=t?u(t,"number"):t))?a:l)?a.call(s,{name:"number",hash:{},data:i,loc:{start:{line:1,column:300},end:{line:1,column:310}}}):a)+'</span></div><div class="phone--home-button"></div></div></div><p>'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"oktaverify.numberchallenge.explain"},data:i,loc:{start:{line:1,column:376},end:{line:1,column:441}}}))+"</p>"},useData:!0}),initialize:function(){this.listenTo(this.options.appState,"change:isWaitingForNumberChallenge",()=>{"SUCCESS"!==this.options.appState.get("lastAuthResponse").status&&this.render()})},getTemplateData:function(){const e=this.options.appState.get("lastAuthResponse");return this.options.appState.get("isWaitingForNumberChallenge")?{number:e._embedded.factor._embedded.challenge.correctAnswer}:{number:null}}});const wm=_s.template({0:function(e,t,n,o,i){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" ("+(null!=(r="function"==typeof(a=null!=(a=s(n,"deviceName")||(null!=t?s(t,"deviceName"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"deviceName",hash:{},data:i,loc:{start:{line:1,column:34},end:{line:1,column:50}}}):a)?r:"")+")"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(a=null!=(a=l(n,"factorName")||(null!=t?l(t,"factorName"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"factorName",hash:{},data:i,loc:{start:{line:1,column:0},end:{line:1,column:14}}}):a)+(null!=(r=l(n,"if").call(s,null!=t?l(t,"deviceName"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:14},end:{line:1,column:58}}}))?r:"")},useData:!0}),_m=xp.extend({className:"okta-form-infobox-warning infobox infobox-warning",attributes:{"aria-live":"polite"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"warning")||(null!=t?a(t,"warning"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:i,loc:{start:{line:1,column:40},end:{line:1,column:51}}}):r)+"</p>"},useData:!0})});var km=yp.extend({className:"mfa-verify-push",autoSave:!0,noCancelButton:!0,save:Ss.partial(vp,"oktaverify.send","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-push"},events:{submit:"submit"},initialize:function(){this.enabled=!0,this.listenTo(this.options.appState,"change:isMfaRejected",this.handleRejectStateChange),this.numberChallengeView=this.add(bm).last(),this.listenTo(this.options.appState,"change:isWaitingForNumberChallenge",function(e,t){t||"SUCCESS"===this.options.appState.get("lastAuthResponse").status?(this.clearWarnings(),this.$el.find(".button").hide(),this.numberChallengeView.$el.show()):(this.numberChallengeView.$el.hide(),this.$el.find(".button").show())}),this.listenTo(this.options.appState,"change:isMfaTimeout",function(e,t){this.setSubmitState(t),t&&this.showError(vp("oktaverify.timeout","login"))}),this.listenTo(this.options.appState,"change:isMfaRequired",function(e,t){t&&(this.clearErrors(),this.clearWarnings())}),this.title=wm({factorName:this.model.get("factorLabel"),deviceName:this.model.get("deviceName")})},setSubmitState:function(e){const t=this.$el.find(".button"),n=this.$el.find(".accessibility-text");this.enabled=e,e?(t.removeClass("link-button-disabled"),t.prop("value",vp("oktaverify.send","login")),t.prop("disabled",!1),n&&n.remove()):(t.addClass("link-button-disabled"),t.prop("value",vp("oktaverify.sent","login")),t.prop("disabled",!0),this.add(`<span class='accessibility-text' role='alert'>${vp("oktaverify.sent","login")}</span>`))},submit:function(e){void 0!==e&&e.preventDefault(),this.enabled&&(this.setSubmitState(!1),this.doSave())},postRender:function(){const e=this.options.appState.get("factorsPolicyInfo"),t=this.model.get("id");this.settings.get("features.autoPush")&&e&&e[t]&&e[t].autoPushEnabled&&(this.model.set("autoPush",!0),Ss.defer(Ss.bind(this.submit,this)))},doSave:function(){let e;this.clearErrors(),this.clearWarnings(),this.model.isValid()&&(this.listenToOnce(this.model,"error",function(){this.setSubmitState(!0),this.clearWarnings(),clearTimeout(e)}),this.trigger("save",this.model),e=ca.callAfterTimeout(()=>{this.options.appState.get("isWaitingForNumberChallenge")||this.showWarning(vp("oktaverify.warning","login"))},3e4))},showError:function(e){this.clearWarnings(),this.model.trigger("error",this.model,{responseJSON:{errorSummary:e}})},showWarning:function(e){this.clearWarnings(),this.add(_m,".o-form-error-container",{options:{warning:e}})},clearWarnings:function(){this.$(".okta-form-infobox-warning").remove()},handleRejectStateChange:function(e,t){t&&(this.setSubmitState(t),this.setRejectedErrorMessage())},setRejectedErrorMessage:function(){"OKTA_VERIFY_UPGRADE_REQUIRED"===this.options.appState.get("lastAuthResponse").factorResultMessage?"IOS"===this.options.appState.get("factor").profile.platform?this.showError(vp("oktaverify.rejected.upgradeRequired.ios","login")):this.showError(vp("oktaverify.rejected.upgradeRequired.android","login")):this.showError(vp("oktaverify.rejected","login"))}}),xm=yp.extend({className:"mfa-verify-question",autoSave:!0,noCancelButton:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-question"},initialize:function(){this.title=this.model.get("factorLabel"),this.addInput({label:this.model.get("securityQuestion"),"label-top":!0,placeholder:vp("mfa.
2challenge.answer.placeholder","login"),className:"auth-passcode",name:"answer",type:"password",params:{showPasswordToggle:!0}}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})}});const Sm=function(){const e=this.model.get("email"),t=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="mask-email">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"email")||(null!=t?a(t,"email"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"email",hash:{},data:i,loc:{start:{line:1,column:25},end:{line:1,column:34}}}):r)+"</span>"},useData:!0});return{factorEmail:t({email:e})}},Tm=yp.extend({layout:"o-form-theme",className:"mfa-verify-email",title:Ss.partial(vp,"email.mfa.title","login"),noButtonBar:!1,autoSave:!0,noCancelButton:!0,attributes:{"data-se":"factor-email"},save:function(){return this.options.appState.get("isMfaChallenge")?vp("mfa.challenge.verify","login"):vp("email.button.send","login")},events:Object.assign({},yp.prototype.events,{submit:function(e){e.preventDefault(),this.handleSubmit()}}),handleSubmit:function(){this.clearErrors(),this.options.appState.get("isMfaChallenge")?this.isValid()&&this.model.save():(this.model.set("answer",""),this.model.save().then(this.renderChallengView.bind(this)))},initialize:function(){yp.prototype.initialize.apply(this,arguments),this.add(xp.extend({attributes:{"data-se":"mfa-send-email-content"},className:"mfa-send-email-content",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"factorEmail",bundle:"login",code:"email.mfa.description"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:78}}}))?r:""},useData:!0}),getTemplateData:Sm}))},renderChallengView:function(){this.removeChildren(),this.add(xp.extend({className:"mfa-email-sent-content",attributes:{"data-se":"mfa-email-sent-content"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"factorEmail",bundle:"login",code:"email.mfa.email.sent.description"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:89}}}))?r:""},useData:!0}),getTemplateData:Sm})),this.add(vh),this.addInput({label:vp("email.code.label","login"),"label-top":!0,name:"answer",input:nd,wide:!0,type:"tel"}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"}),this.render()}});var Em=yp.extend({className:"mfa-verify-totp",autoSave:!0,noCancelButton:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-totp"},initialize:function(){const e=this.model.get("factorLabel"),t="RSA"===this.model.get("provider")||"DEL_OATH"===this.model.get("provider");this.title=e,this.model.get("isFactorTypeVerification")?this.subtitle=vp("mfa.challenge.totp.subtitle.multiple","login",[e]):this.subtitle=vp("mfa.challenge.title","login",[e]),this.addInput({label:vp("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:nd,type:t?"password":"tel"}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"}),"RSA"!==this.model.get("provider")&&"DEL_OATH"!==this.model.get("provider")||this.listenTo(this.model,"error",(e,t)=>
2{t&&409===t.status&&(this.$(".auth-passcode input").val(""),this.$(".auth-passcode input").trigger("change"),this.$(".auth-passcode input").focus())})}}),Cm=yp.extend({className:"mfa-verify-yubikey",autoSave:!0,noCancelButton:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),scrollOnError:!1,layout:"o-form-theme",attributes:{"data-se":"factor-yubikey"},initialize:function(){const e=this.model.get("factorLabel");this.title=e,this.subtitle=vp("factor.totpHard.yubikey.description","login"),this.addInput({label:vp("factor.totpHard.yubikey.placeholder","login"),"label-top":!0,className:"o-form-fieldset o-form-label-top auth-passcode",name:"answer",input:nd,inputId:"mfa-answer",type:"password"}),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,className:"margin-btm-0",placeholder:this.options.appState.get("rememberDeviceLabel"),name:"rememberDevice",type:"checkbox"})}});const{Util:Om}=Tp.util;var Am=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link '+c(typeof(r=null!=(r=u(n,"linkClassName")||(null!=t?u(t,"linkClassName"):t))?r:s)===l?r.call(a,{name:"linkClassName",hash:{},data:i,loc:{start:{line:1,column:24},end:{line:1,column:41}}}):r)+'" data-se="signout-link">'+c(typeof(r=null!=(r=u(n,"linkText")||(null!=t?u(t,"linkText"):t))?r:s)===l?r.call(a,{name:"linkText",hash:{},data:i,loc:{start:{line:1,column:66},end:{line:1,column:78}}}):r)+"</a>"},useData:!0}),className:"auth-footer clearfix",events:{'click a[data-se="signout-link"]':"handleSignout"},handleSignout:function(e){e.preventDefault();const t=this.options.appState;t.trigger("signOut");const n=t.get("isSMSPasswordRecovery");this.model.doTransaction(function(e){return e.cancel().then(Pm)}).then(()=>{this.settings.get("backToSignInUri")&&!n?Om.redirect(this.settings.get("backToSignInUri")):(this.state.set("navigateDir",Mr.DIRECTION_BACK),t.trigger("navigate",""))})},getTemplateData:function(){return{linkClassName:Ss.isUndefined(this.options.linkClassName)?"goto":this.options.linkClassName,linkText:this.options.linkText||vp("goback","login")}}});function Pm(e){return{...e,data:null}}var Nm=Am.extend({template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"factorPageCustomLinkHref")||(null!=t?u(t,"factorPageCustomLinkHref"):t))?r:s)===l?r.call(a,{name:"factorPageCustomLinkHref",hash:{},data:i,loc:{start:{line:1,column:40},end:{line:1,column:68}}}):r)+'" data-se="factor-page-custom-link" class="link js-factor-page-custom-link" rel="noopener noreferrer" target="_blank">'+c(typeof(r=null!=(r=u(n,"factorPageCustomLinkText")||(null!=t?u(t,"factorPageCustomLinkText"):t))?r:s)===l?r.call(a,{name:"factorPageCustomLinkText",hash:{},data:i,loc:{start:{line:1,column:186},end:{line:1,column:214}}}):r)+"</a>"},1:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link '+c(typeof(r=null!=(r=u(n,"linkClassName")||(null!=t?u(t,"linkClassName"):t))?r:s)===l?r.call(a,{name:"linkClassName",hash:{},data:i,loc:{start:{line:1,column:265},end:{line:1,column:282}}}):r)+'" data-se="signout-link">'+c(typeof(r=null!=(r=u(n,"linkText")||(null!=t?u(t,"linkText"):t))?r:s)===l?r.call(a,{name:"linkText",hash:{},data:i,loc:{start:{line:1,column:307},end:{line:1,column:319}}}):r)+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"hasFactorPageCustomLink"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:225}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"showLink"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:225},end:{line:1,column:330}}}))?r:"")},useData:!0}
2),className:"auth-footer clearfix",getTemplateData:function(){const e=Am.prototype.getTemplateData.apply(this,arguments),t=this.settings.get("helpLinks.factorPage.href"),n=this.settings.get("helpLinks.factorPage.text"),o=!this.settings.get("features.hideSignOutLinkInMFA")&&!this.settings.get("features.mfaOnlyFlow");return Object.assign({},e,{hasFactorPageCustomLink:n&&t,factorPageCustomLinkHref:t,factorPageCustomLinkText:n,showLink:o})}});let{CheckBox:Rm}=Tp.views.forms.inputs;var Im=Pp.extend({className:"mfa-verify",initialize:function(e){const t=e.factorType;let n;switch(t){case"question":n=xm;break;case"email":n=this.options.appState.get("isIdxStateToken")?dm:Tm;break;case"sms":case"call":n=ym;break;case"token":case"token:software:totp":case"token:hotp":n=Em;break;case"token:hardware":n=Cm;break;case"push":n=km;break;case"password":n=vm;break;default:throw new Error("Unrecognized factor type")}if(this.model=this.findModel(t,e),!this.model)throw new Error("Unrecognized factor/provider");this.addListeners(),this.add(new n(this.toJSON())),"push"===t&&this.model.get("isOktaFactor")&&(this.model.get("backupFactor")&&(this.inlineTotpForm=this.add(hm,{options:{model:this.model.get("backupFactor")}}).last()),this.settings.get("features.autoPush")&&(this.autoPushCheckBox=this.add(Rm,{options:{model:this.model,name:"autoPush",placeholder:vp("autoPush","login"),label:!1,"label-top":!1,className:"margin-btm-0"}}).last()),this.options.appState.get("allowRememberDevice")&&(this.rememberDeviceCheckbox=this.add(Rm,{options:{model:this.model,name:"rememberDevice",placeholder:this.options.appState.get("rememberDeviceLabel"),label:!1,"label-top":!0,className:"margin-btm-0"}}).last()),this.model.get("backupFactor")&&this.listenTo(this.model,"change:rememberDevice",function(e,t){e.get("backupFactor").set("rememberDevice",t)})),this.listenTo(this.options.appState,"change:isWaitingForNumberChallenge",function(e,t){t||"SUCCESS"===this.options.appState.get("lastAuthResponse").status?(this.autoPushCheckBox&&this.autoPushCheckBox.$el.hide(),this.rememberDeviceCheckbox&&this.rememberDeviceCheckbox.$el.hide(),this.inlineTotpForm&&this.inlineTotpForm.$el.hide()):(this.autoPushCheckBox&&this.autoPushCheckBox.$el.show(),this.rememberDeviceCheckbox&&this.rememberDeviceCheckbox.$el.show(),this.inlineTotpForm&&this.inlineTotpForm.$el.show())}),this.add(new Nm(this.toJSON()))},findModel:function(e,t){const n=t.appState.get("factors"),o=t.provider,i=t.factorIndex;return o?n.hasMultipleFactorsOfSameType(e)&&i?n.getFactorByTypeAndIndex(e,i):n.findWhere({provider:o,factorType:e}):n.findWhere({factorType:e,isFactorTypeVerification:!0})},trapAuthResponse:function(){return!!(this.options.appState.get("isMfaRequired")&&this.options.appState.get("trapMfaRequiredResponse")||this.options.appState.get("isMfaChallenge"))&&(this.options.appState.set("trapMfaRequiredResponse",!1),!0)},back:function(){}}),Dm=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="password-requirements--header">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"password.complexity.requirements.header"},data:i,loc:{start:{line:1,column:63},end:{line:1,column:133}}}))+'</div><ul class="password-requirements--list">'+(null!=(r=s(n,"each").call(a,null!=t?s(t,"requirements"):t,{name:"each",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:179},end:{line:1,column:268}}}))?r:"")+"</ul>"},1:function(e,t,n,o,i){return'<li class="password-requirements--list-item">'+e.escapeExpression(e.lambda(t,t))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"requirements"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:280}}}))?r:""},useData:!0}
2),attributes:{"data-se":"password-requirements-html"},allRequirements:[],initialize:function(e){const t=e.policy;t&&(this.allRequirements=Qp.getPasswordComplexityDescriptionForHtmlList(t))},getTemplateData:function(){return{requirements:this.allRequirements}}}),Lm=qp.extend({className:"password-expired",Model:{props:{oldPassword:["string",!0],newPassword:["string",!0],confirmPassword:["string",!0]},validate:function(){return Yh.validatePasswordMatch(this)},save:function(){return this.trigger("save"),this.doTransaction(function(e){return e.changePassword({oldPassword:this.get("oldPassword"),newPassword:this.get("newPassword")})})}},Form:{save:Ss.partial(vp,"password.expired.submit","login"),title:function(){const e=this.options.appState.get("isPwdExpiringSoon"),t=this.options.appState.get("passwordExpireDays");return e&&t>0?vp("password.expiring.title","login",[t]):e&&0===t?vp("password.expiring.today","login"):e?vp("password.expiring.soon","login"):this.settings.get("brandName")?vp("password.expired.title.specific","login",[this.settings.get("brandName")]):vp("password.expired.title.generic","login")},subtitle:function(){if(this.options.appState.get("isPwdExpiringSoon"))return this.settings.get("brandName")?vp("password.expiring.subtitle.specific","login",[this.settings.get("brandName")]):vp("password.expiring.subtitle.generic","login");const e=this.options.appState.get("policy");return e&&!this.settings.get("features.showPasswordRequirementsAsHtmlList")?Qp.getPasswordComplexityDescription(e):void 0},parseErrorMessage:function(e){const t=this.options.appState.get("policy");return t&&this.settings.get("features.showPasswordRequirementsAsHtmlList")&&(e=Qp.removeRequirementsFromError(e,t)),e},formChildren:function(){let e=[];return this.settings.get("features.showPasswordRequirementsAsHtmlList")&&e.push(Up.View({View:new Dm({policy:this.options.appState.get("policy")})})),e=e.concat([Up.Input({"label-top":!0,label:vp("password.oldPassword.placeholder","login"),explain:ca.createInputExplain("password.oldPassword.tooltip","password.oldPassword.placeholder","login"),"explain-top":!0,name:"oldPassword",input:nd,type:"password"}),Up.Divider(),Up.Input({className:"margin-btm-5","label-top":!0,label:vp("password.newPassword.placeholder","login"),explain:ca.createInputExplain("password.newPassword.tooltip","password.newPassword.placeholder","login"),"explain-top":!0,name:"newPassword",input:nd,type:"password"}),Up.Input({"label-top":!0,label:vp("password.confirmPassword.placeholder","login"),explain:ca.createInputExplain("password.confirmPassword.tooltip","password.confirmPassword.placeholder","login"),"explain-top":!0,name:"confirmPassword",input:nd,type:"password"})]),e}},Footer:Zd,initialize:function(){this.listenTo(this.form,"save",function(){const e={username:this.options.appState.get("userEmail"),password:this.model.get("newPassword")};this.settings.processCreds(e).then(Ss.bind(this.model.save,this.model))})}});let{CheckBox:Mm}=Tp.views.forms.inputs;var Um=qp.extend({className:"password-reset",Model:{props:{newPassword:["string",!0],confirmPassword:["string",!0],revokeSessions:["boolean",!1]},validate:function(){return Yh.validatePasswordMatch(this)},save:function(){this.trigger("save");const e=this;return this.doTransaction(function(t){const n={newPassword:e.get("newPassword")};return e.settings.get("features.showSessionRevocation")&&(n.revokeSessions=e.get("revokeSessions")),t.resetPassword(n)})}},Form:{save:Ss.partial(vp,"password.reset","login"),title:function(){return this.settings.get("brandName")?vp("password.reset.title.specific","login",[this.settings.get("brandName")]):vp("password.reset.title.generic","login")},subtitle:function(){const e=this.options.appState.get("policy");if(e&&!this.settings.get("features.showPasswordRequirementsAsHtmlList"))return Qp.getPasswordComplexityDescription(e)},parseErrorMessage:function(e){const t=this.options.appState.get("policy");return t&&this.settings.get("features.showPasswordRequirementsAsHtmlList")&&(e=Qp.removeRequirementsFromError(e,t)),e},formChildren:function(){let e=[];return this.settings.get("features.showPasswordRequirementsAsHtmlList")&&e.push(Up.View({View:new Dm({policy:this.options.appState.get("policy")})})),e=e.concat([Up.Input({className:"margin-btm-5",label:vp("password.newPassword.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("password.newPassword.tooltip","password.newPassword.placeholder","login"),"explain-top":!0,name:"newPassword",input:nd,type:"password",autoComplete:ca.getAutocompleteValue(this.settings,"new-password")}),Up.Input({label:vp("password.confirmPassword.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("password.confirmPassword.tooltip","password.confirmPassword.placeholder","login"),"explain-top":!0,name:"confirmPassword",input:nd,type:"password",autoComplete:ca.getAutocompleteValue(this.settings,"new-password")})]),this.settings.get("features.showSessionRevocation")&&(e=e.concat([Up.Input({placeholder:vp("password.reset.revokeSessions","login"),name:"revokeSessions",input:Mm,type:"checkbox"})])),e}},initialize:function(){this.listenTo(this.form,"save",function(){const e={username:this.options.appState.get("userEmail"),password:this.model.get("newPassword")};this.settings.processCreds(e).then(Ss.bind(this.model.save,this.model))}),this.settings.get("features.hideBackToSignInForReset")||this.addFooter(Am)}}),jm=qp.extend({className:"poll",Model:{save:function(){return this.trigger("cancelRequest"),this.appState.get("transaction").cancel().then(()=>{this.options.appState.trigger("navigate","")}).catch(()=>{this._stopCountDown()})}},Form:{autoSave:!0,hasSavingState:!1,title:function(){return this.title},className:"poll-controller",noCancelButton:!0,save:vp("oform.cancel","login"),modelEvents:{cancelRequest:"_stopCountDown"},formChildren:[Up.View({View:'<div >               <div data-se="poll-waiting" class="hide okta-waiting-spinner"></div>             </div>'})],_checkStatus:function(){this.transactionObject.poll().then(e=>{if(e.data&&"POLL"!==e.status)return void this.options.appState.set("transaction",e);this.$(".okta-waiting-spinner").hide();let t=Math.ceil(e.transaction.profile.refresh/1e3);this._startCountDown(t)}).catch(()=>{this._stopCountDown()})},_startCountDown:function(e){this.countDown=setInterval(()=>{this._updateTitle(e),0===e?(this._stopCountDown(),this.$(".okta-waiting-spinner").show(),this.checkStatusTimeout=setTimeout(()=>{this._checkStatus()},200)):e-=1},1e3)},_updateTitle:function(e){this.title=vp("polling.title","login",[e]),this.$el.find(".okta-form-title").text(this.title)},_stopCountDown:function(){this.countDown&&clearInterval(this.countDown),this.checkStatusTimeout&&clearInterval(this.checkStatusTimeout)},initialize:function(e){this.transactionObject=e.appState.get("transaction"),this.factorPollingIntervalSeconds=Math.ceil(this.transactionObject.transaction.profile.refresh/1e3),this._updateTitle(this.factorPollingIntervalSeconds),this._startCountDown(this.factorPollingIntervalSeconds)}},back:function(){},remove:function(){this.form._stopCountDown()}}),Fm=qp.extend({className:"password-reset-email-sent",Model:function(){return{local:{userFullName:["string",!1,this.options.appState.get("userFullName")]}}},Form:{title:Ss.partial(vp,"password.forgot.emailSent.title","login"),subtitle:function(){const e=this.options.appState.get("username");
2return vp("password.forgot.emailSent.desc","login",[e])},noButtonBar:!0,attributes:{"data-se":"pwd-reset-email-sent"},formChildren:function(){let e=[Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="accessibility-text" role="status">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"alert")||(null!=t?a(t,"alert"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"alert",hash:{},data:i,loc:{start:{line:1,column:47},end:{line:1,column:56}}}):r)+"</span>"},useData:!0}),getTemplateData:function(){return{alert:vp("password.forgot.emailSent.title","login")}}})})];return this.settings.get("features.hideBackToSignInForReset")||e.push(Up.Button({title:vp("goback","login"),className:"button button-primary button-wide",attributes:{"data-se":"back-button"},click:function(){const e=this;return this.model.doTransaction(function(e){return e.cancel()}).then(function(){e.state.set("navigateDir",Mr.DIRECTION_BACK),e.options.appState.trigger("navigate","")})}})),e}},initialize:function(e){this.settings.callGlobalSuccess(Mr.FORGOT_PASSWORD_EMAIL_SENT,{username:e.appState.get("username")})}}),Vm=qp.extend({className:"recovery-challenge",Model:{props:{passCode:["string",!0]},local:{ableToResend:"boolean"},resendCode:function(){return this.limitResending(),this.doTransaction(function(e){return e.resend()})},limitResending:function(){this.set({ableToResend:!1}),Ss.delay(Ss.bind(this.set,this),Mr.API_RATE_LIMIT,{ableToResend:!0})},save:function(){return this.doTransaction(function(e){return e.verify({passCode:this.get("passCode")})})}},Form:{autoSave:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),title:function(){return this.options.appState.get("factorType")===Mr.RECOVERY_FACTOR_TYPE_CALL?vp("recoveryChallenge.call.title","login"):vp("recoveryChallenge.sms.title","login")},className:"recovery-challenge",initialize:function(){this.listenTo(this.model,"error",function(){this.clearErrors()})},formChildren:function(){return[Up.Button({title:vp("mfa.resendCode","login"),attributes:{"data-se":"resend-button"},className:"button sms-request-button margin-top-30",click:function(){this.model.resendCode()},initialize:function(){this.listenTo(this.model,"change:ableToResend",function(e,t){t?(this.options.title=vp("mfa.resendCode","login"),this.enable(),this.render()):(this.options.title=vp("mfa.sent","login"),this.disable(),this.render())})}}),Up.Input({label:vp("mfa.challenge.enterCode.placeholder","login"),"label-top":!0,className:"enroll-sms-phone",name:"passCode",input:nd,type:"text"})]}},events:{"click .send-email-link":function(e){e.preventDefault();const t=this.model.settings,n=this.options.appState.get("username"),o=this.options.appState.get("recoveryType");this.model.startTransaction(function(e){switch(o){case Mr.RECOVERY_TYPE_PASSWORD:return e.forgotPassword({username:t.transformUsername(n,Mr.FORGOT_PASSWORD),factorType:Mr.RECOVERY_FACTOR_TYPE_EMAIL});case Mr.RECOVERY_TYPE_UNLOCK:return e.unlockAccount({username:t.transformUsername(n,Mr.UNLOCK_ACCOUNT),factorType:Mr.RECOVERY_FACTOR_TYPE_EMAIL});default:return}}).catch(()=>{})}},initialize:function(){let e;switch(this.options.appState.get("recoveryType")){case Mr.RECOVERY_TYPE_PASSWORD:e=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"password.forgot.code.notReceived"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:63}}}))},useData:!0});break;case Mr.RECOVERY_TYPE_UNLOCK:e=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"account.unlock.code.notReceived"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:62}}}))},useData:!0}
2)}e&&this.settings.get("features.emailRecovery")&&this.add(xp.extend({className:"link send-email-link",tagName:"a",attributes:{href:"#","data-se":"send-email-link"},template:e})),this.settings.get("features.hideBackToSignInForReset")||this.addFooter(Am)},postRender:function(){this.model.limitResending()}}),qm=qp.extend({className:"recovery-loading",Model:{},Form:{noButtonBar:!0},initialize:function(e){const t=this,n=this.options.settings.get("features.multiOptionalFactorEnroll");return this.model.startTransaction(function(t){return t.verifyRecoveryToken({recoveryToken:e.token,...n&&{multiOptionalFactorEnroll:n}})}).catch(function(){t.options.appState.trigger("loading",!1),t.options.appState.trigger("removeLoading")})},preRender:function(){this.options.appState.trigger("loading",!0)},trapAuthResponse:function(){return this.options.appState.trigger("loading",!1),!1}}),Bm=qp.extend({className:"recovery-question",Model:{props:{answer:["string",!0],showAnswer:"boolean"},save:function(){return this.doTransaction(function(e){return e.answer({answer:this.get("answer")})})}},Form:{autoSave:!0,save:function(){switch(this.options.appState.get("recoveryType")){case"PASSWORD":return vp("password.forgot.question.submit","login");case"UNLOCK":return vp("account.unlock.question.submit","login");default:return vp("mfa.challenge.verify","login")}},title:function(){switch(this.options.appState.get("recoveryType")){case"PASSWORD":return vp("password.forgot.question.title","login");case"UNLOCK":return vp("account.unlock.question.title","login");default:return""}},formChildren:function(){return[Up.Input({label:this.options.appState.get("recoveryQuestion"),placeholder:vp("mfa.challenge.answer.placeholder","login"),name:"answer",input:nd,type:"password",initialize:function(){this.listenTo(this.model,"change:showAnswer",function(){const e=this.model.get("showAnswer")?"text":"password";this.getInputs()[0].changeType(e)})}}),Up.Input({label:!1,"label-top":!0,placeholder:vp("mfa.challenge.answer.showAnswer","login"),className:"recovery-question-show margin-btm-0",name:"showAnswer",type:"checkbox"})]}},initialize:function(){this.settings.get("features.hideBackToSignInForReset")||this.addFooter(Am)}}),$m=qp.extend({className:"refresh-auth-state",Model:{},Form:{noButtonBar:!0},preRender:function(){const e=this.options.appState,t=this.options.token;this.model.startTransaction(function(n){return e.trigger("loading",!0),t?n.tx.introspect({stateToken:t}):n.tx.exists()?n.tx.resume():void e.trigger("navigate","")})},remove:function(){return this.options.appState.trigger("loading",!1),qp.prototype.remove.apply(this,arguments)}}),Hm=qp.extend({events:{"click .back-btn":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")},className:"registration-complete",Model:function(){},initialize:function(){this.settings.callGlobalSuccess(Mr.ACTIVATION_EMAIL_SENT,{username:this.options.appState.get("username")})},Form:{noButtonBar:!0,formChildren:function(){return[Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="container"><span class="title-icon icon icon-16 confirm-16-green"></span><h2 class="title">'+c(typeof(r=null!=(r=u(n,"title")||(null!=t?u(t,"title"):t))?r:s)===l?r.call(a,{name:"title",hash:{},data:i,loc:{start:{line:1,column:103},end:{line:1,column:112}}}):r)+'</h2><div class="desc">'+c(typeof(r=null!=(r=u(n,"desc")||(null!=t?u(t,"desc"):t))?r:s)===l?r.call(a,{name:"desc",hash:{},data:i,loc:{start:{line:1,column:135},end:{line:1,column:143}}}):r)+'</div></div><a href="#" class="back-btn" data-se="back-link">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"goback"},data:i,loc:{start:{line:1,column:204},end:{line:1,column:241}}}))+"</a>"},useData:!0}),getTemplateData:function(){return{desc:vp("registration.complete.confirm.text","login"),title:vp("registration.complete.title","login")}}})})]}}}),zm=Ap.extend({constructor:function(e){this.settings=e&&e.settings,Gs.apply(this,arguments)},loginWithActivationToken:function(e){return this.startTransaction(function(t){return t.signInWithCredentials({token:e})})}});let{BaseSchema:Wm,SchemaProperty:Km}=Tp.models;const Gm=Km.Collection.extend({createModelProperties:function(){const e=Km.Collection.prototype.createModelProperties.apply(this);return Ss.each(e,function(e,t){e.required=!!this.get(t).get("required")},this),e}});var Ym=Wm.Model.extend({expand:["schema"],constructor:function(){this.properties=new Gm,Js.apply(this,arguments)},parse:function(e){const t=e=>{const t=e.schema.required;Ss.isArray(t)&&Ss.each(t,function(e){const t=this.properties.get(e);t&&t.set("required",!0)},this);const n=e.schema.fieldOrder;return Ss.isArray(n)&&(Ss.each(n,function(e,t){const n=this.properties.get(e);n&&n.set("sortOrder",t)},this),this.properties.comparator="sortOrder",this.properties.sort()),this.properties.defaultPolicyId=e.policyId,e},n=this;this.settings.parseRegistrationSchema(e,function(e){e.profileSchema&&(e.schema=e.profileSchema,Wm.Model.prototype.parse.apply(n,[e]),e=t(e)),n.trigger("parseComplete",{properties:n.properties})},function(e){n.trigger("parseComplete",{properties:n.properties,error:e})})}});const Jm=xp.extend({index:"",message:"",class:function(){},className:function(){return"subschema-unsatisfied subschema-"+this.index},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="default-schema"><span class="icon icon-16"></span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"message")||(null!=t?a(t,"message"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:i,loc:{start:{line:1,column:60},end:{line:1,column:71}}}):r)+"</p>"},useData:!0}
2),getTemplateData:function(){return{message:this.message}}});var Qm=xp.extend({className:"subschema",children:function(){return this.subSchemas.map(function(e,t){const n=e.get("description");return Jm.extend({index:t,message:n})})}});const Xm=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:i,loc:{start:{line:1,column:50},end:{line:1,column:87}}}))+"</a>"},useData:!0}),className:"auth-footer",events:{"click .help":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")}});var Zm=Pp.extend({className:"registration",initialize:function(){const e=new(Ym.extend({settings:this.options.settings,url:this.options.settings.get("baseUrl")+"/api/v1/registration/form"}));this.state.set("schema",e)},getRegistrationApiUrl:function(){const e=this.settings.get("defaultPolicyId"),t=this.options.settings.get("policyId");return e?this.getRegistrationPolicyApi(e):this.getRegistrationPolicyApi(t)},getRegistrationPolicyApi:function(e){return this.options.settings.get("baseUrl")+"/api/v1/registration/"+e},doPostSubmit:function(){if(this.model.get("activationToken")){const e=this;e.settings.callGlobalSuccess(Mr.REGISTRATION_COMPLETE,{activationToken:this.model.get("activationToken")}),new zm({settings:e.model.appState.settings}).loginWithActivationToken(this.model.get("activationToken")).then(function(t){e.model.trigger("setTransaction",t)})}else this.model.appState.set("username",this.model.get("email")),this.model.appState.trigger("navigate","signin/register-complete")},registerUser:function(e){const t=this;Object.keys(e).forEach(t=>(Ss.isNull(e[t])||Ss.isUndefined(e[t])||""===e[t])&&delete e[t]),this.model.attributes=e,Os.Model.prototype.save.call(this.model).then(function(){t.model.trigger("startSaving");const e=t.model.get("activationToken")||t.model.get("email");t.settings.postRegistrationSubmit(e,function(){t.doPostSubmit()},function(e){t.showErrors(e)})}).fail(e=>{const t=e.responseJSON;if(t&&t.errorCauses.length){const{errorCode:e,errorCauses:n}=t,{errorSummary:o,reason:i,location:r}=n[0];"E0000001"===e&&"UNIQUE_CONSTRAINT"===i&&this.renderIsNotUniqueError(t),this.renderLegacyLocationErrorIfNeeded(r,o),ca.triggerAfterError(this,new qr(o))}})},renderIsNotUniqueError:function(e){const{location:t}=e.errorCauses[0],n=vp("registration.error.userName.notUniqueWithinOrg","login",[t]);this.$el.find(".okta-form-infobox-error p").text(n)},renderLegacyLocationErrorIfNeeded:function(e,t){e&&/^data\.userProfile.*/.test(e)&&this.$el.find(".okta-form-infobox-error p").text(t)},createRegistrationModel:function(e){const t=this,n=Gs.extend({url:t.getRegistrationApiUrl()+"/register",settings:this.settings,appState:this.options.appState,props:e,local:{activationToken:"string"},toJSON:function(){return{userProfile:Gs.prototype.toJSON.apply(this,arguments),relayState:this.settings.get("relayState")}},parse:function(e){return this.set("activationToken",e.activationToken),delete e.activationToken,e},save:function(){this.settings.preRegistrationSubmit(this.attributes,function(e){t.registerUser(e)},function(e){t.showErrors(e)})}});return new n},showErrors:function(e,t){"parseRegistrationSchema"===e.callback&&e.errorCauses&&(e.errorSummary=Ss.clone(e.errorCauses[0].errorSummary),delete e.errorCauses),this.model.trigger("error",this.model,{responseJSON:e});const n=e.callback?e.callback+":"+e.errorSummary:e.errorSummary;ca.triggerAfterError(this,new qr(n)),t&&this.$el.find(".button-primary").hide()},fetchInitialData:function(){const e=this;return e.state.get("schema").on("parseComplete",function(t){const n=t.properties.createModelProperties();e.settings.set("defaultPolicyId",t.properties.defaultPolicyId),e.model=e.createRegistrationModel(n);const o=new(yp.extend({layout:"o-form-theme",autoSave:!0,noCancelButton:!0,title:vp("registration.form.title","login"),save:vp("registration.form.submit","login"),modelEvents:{invalid:"modifyErrors"},hasSavingState:!0,customSavingState:{start:"startSaving",stop:"stopSaving"},modifyErrors:function(e,t){for(let n in t)"model.validation.field.string.minLength"===t[n]?t[n]=vp("registration.model.validation.field.string.too.short","login",[e.props[n].minLength]):"model.validation.field.string.maxLength"===t[n]&&(t[n]=vp("registration.model.validation.field.string.too.long","login",[e.props[n].maxLength+1]))}}))(e.toJSON());if(e.add(o),e.footer=new e.Footer(e.toJSON()),e.add(e.footer),e.addListeners(),t.error)e.showErrors(t.error,!0);else{t.properties.each(function(e){const t=hf(e),n=e.get("subSchemas"),i=e.get("name");o.addInput(t),"password"===i&&n&&o.add(Qm.extend({id:"subschemas-"+i,subSchemas:n}))});const e=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="required-fields-label">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:i,loc:{start:{line:1,column:36},end:{line:1,column:45}}}):r)+"</span>"},useData:!0}
2)({label:vp("registration.required.fields.label","login")});o.add(e)}}),Cp()(this.state.get("schema").fetch())},Footer:Xm});const eg=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-error infobox infobox-error" role="alert"><span class="icon error-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"account.unlock.noFactorsEnabled"},data:i,loc:{start:{line:1,column:110},end:{line:1,column:172}}}))+"</p></div>"},useData:!0})}),tg=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link goto js-contact-support">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"mfa.noAccessToEmail"},data:i,loc:{start:{line:1,column:173},end:{line:1,column:223}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help js-back" data-se="back-link">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"goback"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:95}}}))+"</a>"+(null!=(r=s(n,"if").call(a,null!=t?s(t,"helpSupportNumber"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:99},end:{line:1,column:234}}}))?r:"")},useData:!0}),className:"auth-footer",events:{"click .js-back":function(e){e.preventDefault(),this.back()},"click .js-contact-support":function(e){e.preventDefault(),this.state.trigger("contactSupport"),this.$(".js-contact-support").hide()}},getTemplateData:function(){return this.settings.pick("helpSupportNumber")},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")}});var ng=qp.extend({className:"account-unlock",Model:{props:{username:["string",!0],factorType:["string",!0]},validate:function(){return Yh.validateUsername(this)},save:function(){const e=this;return this.startTransaction(function(t){return t.unlockAccount({username:e.settings.transformUsername(e.get("username"),Mr.UNLOCK_ACCOUNT),factorType:e.get("factorType")})}).catch(function(){})}},Form:{noButtonBar:!0,title:Ss.partial(vp,"account.unlock.title","login"),formChildren:function(){const e=this.settings.get("features.smsRecovery"),t=this.settings.get("features.callRecovery"),n=this.settings.get("features.emailRecovery"),o=[],i=this;return e||t||n?(o.push(Up.Input({label:vp("account.unlock.email.or.username.placeholder","login"),"label-top":!0,explain:ca.createInputExplain("account.unlock.email.or.username.tooltip","account.unlock.email.or.username.placeholder","login"),"explain-top":!0,name:"username",input:nd,inputId:"account-recovery-username",type:"text",inlineValidation:!1})),(e||t)&&o.push(Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="mobile-recovery-hint">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{arguments:"mobileFactors",bundle:"login",code:"recovery.mobile.hint"},data:i,loc:{start:{line:1,column:32},end:{line:1,column:109}}}))+"</p>"},useData:!0}),getTemplateData:function(){let n;return n=vp(e&&t?"recovery.smsOrCall":t?"recovery.call":"recovery.sms"),{mobileFactors:n}}})})),e&&(this.$el.addClass("forgot-password-sms-enabled"),o.push(this.createRecoveryFactorButton("sms-button","account.unlock.sendText",Mr.RECOVERY_FACTOR_TYPE_SMS,i)),this.setDefaultFactorType(Mr.RECOVERY_FACTOR_TYPE_SMS)),t&&(this.$el.addClass("forgot-password-call-enabled"),o.push(this.createRecoveryFactorButton("call-button","account.unlock.voiceCall",Mr.RECOVERY_FACTOR_TYPE_CALL,i)),this.setDefaultFactorType(Mr.RECOVERY_FACTOR_TYPE_CALL)),n&&(this.$el.addClass("forgot-password-email-en
2abled"),o.push(this.createRecoveryFactorButton("email-button","account.unlock.sendEmail",Mr.RECOVERY_FACTOR_TYPE_EMAIL,i)),this.setDefaultFactorType(Mr.RECOVERY_FACTOR_TYPE_EMAIL))):this.add(eg,".o-form-error-container"),o},initialize:function(){this.listenTo(this,"save",function(){this.options.appState.set("username",this.model.get("username")),this.model.save()}),this.listenTo(this.state,"contactSupport",function(){this.add(Nf,".o-form-error-container")})},setDefaultFactorType:function(e){Ss.isEmpty(this.model.get("factorType"))&&this.model.set("factorType",e)},createRecoveryFactorButton:function(e,t,n,o){return Up.Button({attributes:{"data-se":e},className:"button button-primary button-wide "+e,title:vp(t,"login"),click:function(){o.clearErrors(),this.model.isValid()&&(this.model.set("factorType",n),o.trigger("save",this.model))}})}},Footer:tg}),og=qp.extend({className:"account-unlock-email-sent",Model:function(){return{local:{userFullName:["string",!1,this.options.appState.get("userFullName")]}}},Form:{title:Ss.partial(vp,"account.unlock.emailSent.title","login"),subtitle:function(){const e=this.options.appState.get("username");return vp("account.unlock.emailSent.desc","login",[e])},noButtonBar:!0,attributes:{"data-se":"unlock-email-sent"},formChildren:function(){return[Up.Button({title:vp("goback","login"),className:"button button-primary button-wide",attributes:{"data-se":"back-button"},click:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")}})]}},initialize:function(e){this.settings.callGlobalSuccess(Mr.UNLOCK_ACCOUNT_EMAIL_SENT,{username:e.appState.get("username")})}});const{Util:ig}=Tp.util;var rg=qp.extend({className:"verify-custom-factor custom-factor-form",Model:{props:{rememberDevice:"boolean"},initialize:function(){const e=Qp.getRememberDeviceValue(this.appState);this.set("rememberDevice",e),this.settings.get("features.skipIdpFactorVerificationBtn")&&!this.appState.get("lastFailedChallengeFactorData")&&(this.set("provider","CUSTOM"),this.set("factorType","claims_provider"),this.save())},save:function(){const e=!!this.get("rememberDevice");return this.manageTransaction((t,n)=>{const o={rememberDevice:e};return Ss.findWhere(t.factors,{provider:this.get("provider"),factorType:this.get("factorType")}).verify(o).then(e=>{n(e);const t=this.appState.get("verifyCustomFactorRedirectUrl");null!==t&&ig.redirect(t)}).catch(function(e){throw e})})}},Form:function(){const e=this.options.appState.get("factors").findWhere({provider:this.options.provider,factorType:this.options.factorType}).get("vendorName"),t=vp("mfa.challenge.verify","login"),n=this.options.appState.get("lastFailedChallengeFactorData");let o=vp("verify.customFactor.subtitle","login",[e]);return this.settings.get("features.skipIdpFactorVerificationBtn")&&!n&&(o=vp("verify.customFactor.subtitle.redirect","login",[e]),this.listenTo(this.model,"error",()=>{o=vp("verify.customFactor.subtitle","login",[e]),this.$(".o-form-explain").text(o)})),{autoSave:!0,title:e,save:t,subtitle:o,attributes:{"data-se":"factor-custom"},initialize:function(){this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})},formChildren:function(){const e=[],t=this.options.appState.get("lastFailedChallengeFactorData");return this.settings.get("features.skipIdpFactorVerificationBtn")&&!t&&e.push(Up.View({View:'<div data-se="custom-factor-waiting" class="okta-waiting-spinner"></div>'})),t&&e.push(Up.View({View:new mh({message:t.errorMessage})},{selector:".o-form-error-container"})),e}}},postRender:function(){this.settings.get("features.skipIdpFactorVerificationBtn")&&!this.options.appState.get("lastFailedChallengeFactorData")&&(this.$(".o-form-button-bar").hide(),this.$(".okta-waiting-spinner").show())},trapAuthResponse:function(){if(this.options.appState.get("isMfaChallenge"))return!0},back:function(){},initialize:function(){this.model.set("provider",this.options.provider),this.model.set("factorType",this.options.factorType),this.settings.get("features.skipIdpFactorVerificationBtn")&&this.listenTo(this.model,"error",()=>{this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}),this.addFooter(Nm)}}),ag=qp.extend({className:"mfa-verify-duo duo-form",Model:{props:{host:"string",signature:"string",postAction:"string",factorId:"string",stateToken:"string",rememberDevice:"boolean"},initialize:function(){const e=Qp.getRememberDeviceValue(this.appState);this.set("rememberDevice",e)},getInitOptions:function(){const e=!!this.get("rememberDevice");return this.doTransaction(function(t){const n={rememberDevice:e};return Ss.findWhere(t.factors,{provider:"DUO",factorType:"web"}).verify(n).catch(function(e){throw e})},!0)},verify:function(e){const t=this.get("postAction"),n=this.get("factorId"),o=this;let i={id:n,stateToken:this.get("stateToken"),sig_response:e};const r=this.get("rememberDevice");return Cp()(sl.post(t,i)).then(function(){return o.doTransaction(function(e){let t;return r&&(t={rememberDevice:r}),e.poll(t)})}).catch(function(e){o.trigger("error",o,e.xhr)})}},Form:{autoSave:!0,noButtonBar:!0,title:Ss.partial(vp,"factor.duo"),attributes:{"data-se":"factor-duo"},postRender:function(){this.add('<iframe frameborder="0" title="'+this.title()+'"></iframe>'),this.options.appState.get("allowRememberDevice")&&this.addInput({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"}),qh.init({host:this.model.get("host"),sig_request:this.model.get("signature"),iframe:this.$("iframe").get(0),post_action:Ss.bind(this.model.verify,this.model)})}},fetchInitialData:function(){const e=this;return this.model.getInitOptions().then(function(t){const n=t.data;if(!(n._embedded&&n._embedded.factor&&n._embedded.factor._embedded&&n._embedded.factor._embedded.verification))throw new Error("Response does not have duo verification options");const o=n._embedded.factor._embedded.verification;e.model.set({host:o.host,signature:o.signature,postAction:o._links.complete.href,factorId:n._embedded.factor.id,stateToken:n.stateToken})})},trapAuthResponse:function(){if(this.options.appState.get("isMfaChallenge"))return!0},back:function(){},Footer:Nm});let{Util:sg}=Tp.util;var lg=qp.extend({className:"piv-cac-card",Model:{save:async function(){this.trigger("request");const e=this,t=this.settings.get("piv"),n={fromURI:this.settings.get("relayState"),isCustomDomain:t.isCustomDomain,customDomain:t.customDomain};try{await this.getCert(t.certAuthUrl);const e=await this.postCert(t.certAuthUrl,n);sg.redirect(e.redirectUrl)}catch(t){Ss.isEmpty(t.responseJSON)&&!t.responseText&&(t.responseJSON={errorSummary:vp("piv.cac.error","login")}),e.trigger("error",e,t)}},getCert:function(e){return sl.get({url:e,xhrFields:{withCredentials:!0},beforeSend:function(){}})},postCert:function(e,t){return sl.post({url:e,xhrFields:{withCredentials:!0},data:JSON.stringify(t),contentType:"text/plain",beforeSend:function(){}})}},Form:{autoSave:!0,hasSavingState:!1,title:Ss.partial(vp,"piv.cac.title","login"),className:"piv-cac-card",
2noCancelButton:!0,save:Ss.partial(vp,"retry","login"),modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:[Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="piv-verify-text"><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"piv.cac.card.insert"},data:i,loc:{start:{line:1,column:32},end:{line:1,column:82}}}))+'</p><div data-se="piv-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})})],_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()},postRender:function(){Ss.defer(()=>{this.model.save()})}},back:function(){},Footer:mf}),cg=qp.extend({className:"mfa-verify verify-u2f",Model:{props:{rememberDevice:"boolean"},initialize:function(){const e=Qp.getRememberDeviceValue(this.appState);this.set("rememberDevice",e)},save:function(){return this.trigger("request"),this.doTransaction(function(e){let t;t=e.factorTypes?Ss.findWhere(e.factorTypes,{factorType:"u2f"}):Ss.findWhere(e.factors,{factorType:"u2f",provider:"FIDO"});const n=this;return t.verify().then(function(e){let o,i,r;if(e.factors){const t=e.factors;i=t[0].profile.appId,r=e.challenge.nonce,o=function(e){const t=[];return Ss.each(e,function(e){t.push({version:e.profile.version,keyHandle:e.profile.credentialId})}),t}(t)}else{const t=e.factor;i=t.profile.appId,r=t.challenge.nonce,o=[{version:of.getU2fVersion(),keyHandle:t.profile.credentialId}]}n.trigger("request");const a=Cp().defer();return u2f.sign(i,r,o,function(e){if(n.trigger("errors:clear"),!e.errorCode||0===e.errorCode){const o=!!n.get("rememberDevice");return t.verify({clientData:e.clientData,signatureData:e.signatureData,rememberDevice:o}).then(a.resolve)}{const t=1===n.options.appState.get("factors").length;a.reject(new $r({xhr:{responseJSON:{errorSummary:of.getU2fVerifyErrorMessageByCode(e.errorCode,t)}}}))}}),a.promise})}).catch(()=>{})}},Form:{autoSave:!0,hasSavingState:!1,title:Ss.partial(vp,"factor.u2f","login"),className:"verify-u2f-form",noCancelButton:!0,save:Ss.partial(vp,"verify.u2f.retry","login"),noButtonBar:function(){return!of.isU2fAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){const e=[];if(of.isU2fAvailable())e.push(Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="u2f-verify-text"><p>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"verify.u2f.instructions"},data:i,loc:{start:{line:1,column:32},end:{line:1,column:86}}}))+"</p><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"verify.u2f.instructionsBluetooth"},data:i,loc:{start:{line:1,column:93},end:{line:1,column:156}}}))+'</p><div data-se="u2f-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})}));else{let t="u2f.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="u2f.error.factorNotSupported.oneFactor"),e.push(Up.View({View:new mh({message:vp(t,"login")})},{selector:".o-form-error-container"}))}return this.options.appState.get("allowRememberDevice")&&e.push(Up.Input({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})),e},postRender:function(){Ss.defer(()=>{of.isU2fAvailable()?this.model.save():this.$('[data-se="u2f-waiting"]').addClass("hide")})},_startEnrollment:function(){this.$(".okta-waiting-spinner").removeClass("hide"),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").addClass("hide"),this.$(".o-form-button-bar").show()}},back:function(){},Footer:Nm});function ug(e){const t=[];return Ss.each(e,function(e){t.push({type:"public-key",id:yf.strToBin(e.profile.credentialId)})}),t}var pg=qp.extend({className:"mfa-verify verify-webauthn",Model:{props:{rememberDevice:"boolean"},initialize:function(){const e=Qp.getRememberDeviceValue(this.appState);this.set("rememberDevice",e),this.appState.on("factorSwitched signOut",()=>{this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)})},save:function(){return this.trigger("request"),this.doTransaction(function(e){let t;t=e.factorTypes?Ss.findWhere(e.factorTypes,{factorType:"webauthn"}):Ss.findWhere(e.factors,{factorType:"webauthn",provider:"FIDO"});const n=this;return t.verify().then(function(e){let o,i;if(e.factors){const t=e.factors;i=e.challenge,o=ug(t)}else{const t=e.factor;i=t.challenge,o=ug([t])}n.trigger("request");const r=Ss.extend({},i,{allowCredentials:o,challenge:yf.strToBin(i.challenge)});return"undefined"!=typeof AbortController&&(n.webauthnAbortController=new AbortController),new(Cp())(navigator.credentials.get({publicKey:r,signal:n.webauthnAbortController&&n.webauthnAbortController.signal})).then(function(e){const o=!!n.get("rememberDevice");return t.verify({clientData:yf.binToStr(e.response.clientDataJSON),authenticatorData:yf.binToStr(e.response.authenticatorData),signatureData:yf.binToStr(e.response.signature),rememberDevice:o})}).catch(function(e){throw n.trigger("errors:clear"),n.webauthnAbortController?new Hr({xhr:{responseJSON:{errorSummary:e.message}}}):new zr}).finally(function(){n.webauthnAbortController=null})})}).catch(()=>{})}},Form:{autoSave:!0,hasSavingState:!1,title:Ss.partial(vp,"factor.webauthn.biometric","login"),className:"verify-webauthn-form",noCancelButton:!0,save:Ss.partial(vp,"mfa.challenge.verify","login"),noButtonBar:function(){return!bf.isNewApiAvailable()},modelEvents:{request:"_startEnrollment",error:"_stopEnrollment"},formChildren:function(){const e=[];
2if(bf.isNewApiAvailable())e.push(Up.View({View:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="webauthn-verify-text"><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"verify.webauthn.biometric.instructions"},data:i,loc:{start:{line:1,column:37},end:{line:1,column:106}}}))+'</p><div data-se="webauthn-waiting" class="okta-waiting-spinner"></div></div>'},useData:!0})})}));else{let t="webauthn.biometric.error.factorNotSupported";1===this.options.appState.get("factors").length&&(t="webauthn.biometric.error.factorNotSupported.oneFactor"),e.push(Up.View({View:new mh({message:vp(t,"login")})},{selector:".o-form-error-container"}))}return this.options.appState.get("allowRememberDevice")&&e.push(Up.Input({label:!1,"label-top":!0,placeholder:this.options.appState.get("rememberDeviceLabel"),className:"margin-btm-0",name:"rememberDevice",type:"checkbox"})),e},_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$('.o-form-button-bar [type="submit"]')[0].value=vp("verify.u2f.retry","login"),this.$(".o-form-button-bar").show()}},postRender:function(){Ss.defer(()=>{bf.isNewApiAvailable()&&!Gr.isSafari()&&this.model.save()})},back:function(){},Footer:Nm}),dg=qp.extend({className:"mfa-verify verify-windows-hello",Model:{local:{__autoTriggered__:"boolean"},save:function(){if(!bf.isAvailable())return;this.trigger("request");const e=this;return this.doTransaction(function(t){const n=Ss.findWhere(t.factors,{factorType:"webauthn",provider:"FIDO"});return n.verify().then(function(o){const i=o.factor;return bf.getAssertion(i.challenge.nonce,[{id:i.profile.credentialId}]).then(function(e){return n.verify({authenticatorData:e.authenticatorData,clientData:e.clientData,signatureData:e.signature})}).then(function(t){return e.trigger("sync"),e.trigger("signIn"),t}).catch(function(n){switch(n.message){case"AbortError":case"NotFoundError":case"NotSupportedError":return e.trigger("abort",n.message),t}throw n})})})}},Form:{autoSave:!0,hasSavingState:!1,title:Ss.partial(vp,"factor.windowsHello","login"),subtitle:function(){return bf.isAvailable()?vp("verify.windowsHello.subtitle","login"):""},save:Ss.partial(vp,"verify.windowsHello.save","login"),customSavingState:{stop:"abort"},modelEvents:function(){return bf.isAvailable()?{request:"_startEnrollment",error:"_stopEnrollment",abort:"_stopEnrollment",signIn:"_successEnrollment"}:{}},noButtonBar:function(){return!bf.isAvailable()},formChildren:function(){const e=[];return bf.isAvailable()||e.push(Up.View({View:new mh({message:vp("enroll.windowsHello.error.notWindows","login")})},{selector:".o-form-error-container"})),e.push(Up.View({View:new kf({model:this.model,visible:!1})})),e},postRender:function(){1!==this.options.appState.get("factors").length||this.model.get("__autoTriggered__")||(this.model.set("__autoTriggered__",!0),this.model.save())},_startEnrollment:function(){this.subtitle=vp("verify.windowsHello.subtitle.loading","login"),this.model.trigger("spinner:show"),this._resetErrorMessage(),this.render(),this.$(".o-form-button-bar").addClass("hide")},_stopEnrollment:function(e){let t;switch(this.subtitle=vp("verify.windowsHello.subtitle","login"),this.model.trigger("spinner:hide"),this.$(".o-form-button-bar").removeClass("hide"),e){case"NotFoundError":t=this.options.appState.get("factors").length>1?vp("verify.windowsHello.error.notFound.selectAnother","login"):vp("verify.windowsHello.error.notFound","login");break;case"NotSupportedError":t=vp("enroll.windowsHello.error.notConfiguredHtml","login")}if(this._resetErrorMessage(),t){const e=new mh({message:t});this.$(".o-form-error-container").addClass("o-form-has-errors"),this.add(e,{selector:".o-form-error-container"}),this._errorMessageView=this.last()}this.render()},_successEnrollment:function(){this.subtitle=this.settings.get("brandName")?vp("verify.windowsHello.subtitle.signingIn.specific","login",[this.settings.get("brandName")]):vp("verify.windowsHello.subtitle.signingIn.generic","login"),this.render(),this.$(".o-form-button-bar").addClass("hide")},_resetErrorMessage:function(){this._errorMessageView&&this._errorMessageView.remove(),this._errorMessageView=void 0,this.clearErrors()}},back:function(){},Footer:Nm}
2),hg=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="link help" data-se="back-link">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"goback"},data:i,loc:{start:{line:1,column:66},end:{line:1,column:103}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"showLink"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:114}}}))?r:""},useData:!0}),className:"auth-footer",events:{"click .help":function(e){e.preventDefault(),this.back()}},back:function(){this.state.set("navigateDir",Mr.DIRECTION_BACK),this.options.appState.trigger("navigate","")},getTemplateData:function(){const e=this.model.appState.get("flashError");return{showLink:e.is&&e.is("terminal")}}}),fg=qp.extend({className:"error-state",Model:{},Form:{noButtonBar:!0},Footer:hg});const mg="/img/security/default.png",gg="/img/security/unknown-device.png";var yg=Gs.extend({initialize:function(){if(this.settings.get("features.securityImage")){const e=this;this.listenTo(this,"change:username",function(t,n){(function(e,t,n){if(Ss.isEmpty(t)||Ss.isUndefined(t))return Cp()({securityImage:mg,securityImageDescription:""});const o=function(e,t){return`${e}/login/getimage?username=${encodeURIComponent(t)}`}(e,t),i={url:o,dataType:"json"};return n&&(i.headers={"X-Device-Fingerprint":n}),Cp()(sl.ajax(i)).then(function(e){return"/img/security/unknown.png"===e.pwdImg?{securityImage:gg,securityImageDescription:""}:{securityImage:e.pwdImg,securityImageDescription:e.imageDescription||""}})})(this.get("baseUrl"),n,this.get("deviceFingerprint")).then(function(e){t.set("securityImage",e.securityImage),t.set("securityImageDescription",e.securityImageDescription),t.unset("deviceFingerprint")}).fail(function(t){Gr.corsIsNotEnabled(t)?e.settings.callGlobalError(new Fr(vp("error.enabled.cors"))):e.settings.callGlobalError(new Error(`Failed to fetch security image: ${t.statusText}`))}).done()})}},local:{baseUrl:"string",lastAuthResponse:["object",!0,{}],transaction:"object",transactionError:"object",username:"string",factors:"object",policy:"object",securityImage:["string",!0,mg],securityImageDescription:["string",!0,""],userCountryCode:"string",userPhoneNumber:"string",factorActivationType:"string",flashError:"object",beaconType:"string",deviceFingerprint:"string",typingPattern:"string",languageCode:["string",!0],disableUsername:["boolean",!1,!1],trapMfaRequiredResponse:["boolean",!1,!1],lastFailedChallengeFactorData:["object",!1]},setAuthResponse:function(e){if(e._embedded&&e._embedded.policy&&this.set("policy",e._embedded.policy),e._embedded&&e._embedded.factors){let t=e._embedded.factors;e._embedded.factorTypes&&(t=function(e,t){const n=[],o=[];return Ss.each(t,function(t){const i=t.factorType;if(!Ss.contains(n,i)){const r=Ss.findWhere(e,{factorType:i});r?(n.push(i),o.push(r)):o.push(t)}}),o}(e._embedded.factorTypes,t));const n=Ss.map(t,e=>(e.settings=this.settings,e.appState=this,e));this.set("factors",new hh.Collection(n,{parse:!0}))}this.set("lastAuthResponse",e)},clearLastAuthResponse:function(){this.set("lastAuthResponse",{})},setLastFailedChallengeFactorData:function(){this.set("lastFailedChallengeFactorData",{factor:this.get("factor"),errorMessage:this.get("factorResultErrorMessage")})},clearLastFailedChallengeFactorData:function(){this.unset("lastFailedChallengeFactorData")},getUser:function(){return this.get("user")},derived:{isSuccessResponse:{deps:["lastAuthResponse"],fn:function(e){return"SUCCESS"===e.status}},isMfaRequired:{deps:["lastAuthResponse"],fn:function(e){return"MFA_REQUIRED"===e.status||"FACTOR_REQUIRED"===e.status}},isProfileRequired:{deps:["lastAuthResponse"],fn:function(e){return"PROFILE_REQUIRED"===e.status}},isMfaEnroll:{deps:["lastAuthResponse"],fn:function(e){return"MFA_ENROLL"===e.status||"FACTOR_ENROLL"===e.status}},isMfaChallenge:{deps:["lastAuthResponse"],fn:function(e){return"MFA_CHALLENGE"===e.status||"FACTOR_CHALLENGE"===e.status}},isSMSPasswordRecovery:{deps:["lastAuthResponse"],fn:function({status:e,factorType:t,recoveryType:n}){return"RECOVERY_CHALLENGE"===e&&"sms"===(null==t?void 0:t.toLowerCase())&&"password"===(null==n?void 0:n.toLowerCase())}},isUnauthenticated:{deps:["lastAuthResponse"],fn:function(e){return"UNAUTHENTICATED"===e.status}},isMfaRejected:{deps:["lastAuthResponse"],fn:function(e){return"REJECTED"===e.factorResult}},isMfaTimeout:{deps:["lastAuthResponse"],fn:function(e){return"TIMEOUT"===e.factorResult}},isMfaEnrollActivate:{deps:["lastAuthResponse"],fn:function(e){return"MFA_ENROLL_ACTIVATE"===e.status||"FACTOR_ENROLL_ACTIVATE"===e.status}},isWaitingForActivation:{deps:["isMfaEnrollActivate","lastAuthResponse"],fn:function(e,t){return e&&"WAITING"===t.factorResult}},isWaitingForNumberChallenge:{deps:["lastAuthResponse","isMfaChallenge"],fn:function(e,t){return!!(t&&e&&"WAITING"===e.factorResult&&e._embedded&&e._embedded.factor&&e._embedded.factor._embedded&&e._embedded.factor._embedded.challenge)}},hasMultipleFactorsAvailable:{deps:["factors","isMfaRequired","isMfaChallenge","isUnauthenticated"],fn:function(e,t,n,o){return!!(t||n||o)&&e&&e.length>1}},promptForFactorInUnauthenticated:{deps:["lastAuthResponse","factors"],fn:function(e,t){return"UNAUTHENTICATED"===e.status&&t&&t.length>0}},userId:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.user?e._embedded.user.id:null}},isIdxStateToken:{deps:["lastAuthResponse"],fn:function(e){return e&&Ss.isString(e.stateToken)&&e.stateToken.startsWith("01")}},isPwdExpiringSoon:{deps:["lastAuthResponse"],fn:function(e){return"PASSWORD_WARN"===e.status}},passwordExpireDays:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.policy&&e._embedded.policy.expiration?e._embedded.policy.expiration.passwordExpireDays:null}},isPwdManagedByOkta:{deps:["lastAuthResponse"],fn:function(e){return!(e._links&&e._links.next&&e._links.next.title)}},passwordExpiredWebsiteName:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&e._links.next.title?e._links.next.title:null}},passwordExpiredLinkUrl:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&e._links.next.title&&e._links.next.href?e._links.next.href:null}},recoveryType:{deps:["lastAuthResponse"],fn:function(e){return e.recoveryType}},factorType:{deps:["lastAuthResponse"],fn:function(e){return e.factorType}},factor:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.factor?e._embedded.factor:null}},activatedFactorId:{deps:["factor"],fn:function(e){return e?e.id:null}},activatedFactorType:{deps:["factor"],fn:function(e){return e?e.factorType:null}},activatedFactorProvider:{deps:["factor"],fn:function(e){return e?e.provider:null}},qrcode:{deps:["factor"],fn:function(e){try{return e._embedded.activation._links.qrcode.href}catch(e){return null}}},activationSendLinks:{deps:["factor"],fn:function(e){let t;try{t=e._embedded.activation._links.send}catch(e){t=[]}return t}},textActivationLinkUrl:{deps:["activationSendLinks"],fn:function(e){const t=Ss.findWhere(e,{name:"sms"});return t?t.href:null}},emailActivationLinkUrl:{deps:["activationSendLinks"],fn:function(e){const t=Ss.findWhere(e,{name:"email"});return t?t.href:null}},sharedSecret:{deps:["factor"],fn:function(e){try{return e._embedded.activation.sharedSecret}catch(e){return null}}},duoEnrollActivation:{deps:["factor"],fn:function(e){return e&&e._embedded&&e._embedded.activation?e._embedded.activation:null}},prevLink:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.prev?e._links.prev.href:null}},skipLink:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.skip?e._links.skip.href:null}},gracePeriodRemainingDays:{deps:["policy"],fn:function(e){return e&&e.gracePeriod&&e.gracePeriod.endDate?function(e){const t=new Date(e).getTime();return Math.floor((t-(new Date).getTime())/864e5)}(e.gracePeriod.endDate):null}},user:{deps:["lastAuthResponse"],fn:function(e){return e._embedded&&e._embedded.user?e._embedded.user:null}},recoveryQuestion:{deps:["user"],fn:function(e){return e&&e.recovery_question?e.recovery_question.question:null}},userProfile:{deps:["user"],fn:function(e){return e&&e.profile?e.profile:null}},userConsentName:{deps:["userProfile","username"],fn:function(e,t){return!e||Ss.isEmpty(e.firstName)?t:Ss.isEmpty(e.lastName)?e.firstName:e.firstName+" "+e.lastName.charAt(0)+"."}},userEmail:{deps:["userProfile"],fn:function(e){return e&&e.login?e.login:null}},userFullName:{deps:["userProfile"],fn:function(e){return e&&(e.firstName||e.lastName)?e.firstName+" "+e.lastName:""}},defaultAppLogo:{deps:["baseUrl"],fn:function(e){return e+"/img/logos/default.png"}},expiresAt:{deps:["lastAuthResponse"],fn:function(e){return e.expiresAt}},target:{deps:["lastAuthResponse"],fn:function(e){return e._embedded?e._embedded.target:null}},targetLabel:{deps:["target"],fn:function(e){return e?e.label:null}}
2,targetLogo:{deps:["target"],fn:function(e){return e&&e._links?e._links.logo:null}},targetTermsOfService:{deps:["target"],fn:function(e){return e&&e._links?e._links["terms-of-service"]:null}},targetPrivacyPolicy:{deps:["target"],fn:function(e){return e&&e._links?e._links["privacy-policy"]:null}},targetClientURI:{deps:["target"],fn:function(e){return e&&e._links?e._links["client-uri"]:null}},scopes:{deps:["lastAuthResponse"],fn:function(e){return e._embedded?e._embedded.scopes:null}},issuer:{deps:["lastAuthResponse"],fn:function(e){var t,n,o;return null==e||null===(t=e._embedded)||void 0===t||null===(n=t.authentication)||void 0===n||null===(o=n.issuer)||void 0===o?void 0:o.uri}},hasExistingPhones:{deps:["lastAuthResponse"],fn:function(e){if(!e._embedded||!e._embedded.factors)return!1;const t=e._embedded.factors,n=Ss.findWhere(t,{factorType:"sms",provider:"OKTA"});return!(!n||!n._embedded||!n._embedded.phones.length)}},hasExistingPhonesForCall:{deps:["lastAuthResponse"],fn:function(e){if(!e._embedded||!e._embedded.factors)return!1;const t=e._embedded.factors,n=Ss.findWhere(t,{factorType:"call",provider:"OKTA"});return!(!n||!n._embedded||!n._embedded.phones.length)}},isUndefinedUser:{deps:["securityImage"],fn:function(e){return e===mg}},isNewUser:{deps:["securityImage"],fn:function(e){return e===gg}},allowRememberDevice:{deps:["policy"],fn:function(e){return e&&e.allowRememberDevice}},rememberDeviceLabel:{deps:["policy"],fn:function(e){if(e&&e.rememberDeviceLifetimeInMinutes>0){const n=(t=e.rememberDeviceLifetimeInMinutes)>60&&t<=1440?vp("hours","login",[t/60]):t>1440?vp("days","login",[t/1440]):1===t?vp("minutes.oneMinute","login"):vp("minutes","login",[t]);return vp("rememberDevice.timebased","login",[n])}var t;return e&&0===e.rememberDeviceLifetimeInMinutes?vp("rememberDevice.devicebased","login"):vp("rememberDevice","login")}},rememberDeviceByDefault:{deps:["policy"],fn:function(e){return e&&e.rememberDeviceByDefault}},factorsPolicyInfo:{deps:["policy"],fn:function(e){return e&&e.factorsPolicyInfo?e.factorsPolicyInfo:null}},verifyCustomFactorRedirectUrl:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&"redirect"===e._links.next.name&&e._links.next.href?e._links.next.href:null}},enrollCustomFactorRedirectUrl:{deps:["lastAuthResponse"],fn:function(e){return e._links&&e._links.next&&"activate"===e._links.next.name&&e._links.next.href?e._links.next.href:null}},isFactorResultFailed:{deps:["lastAuthResponse"],fn:function(e){return"FAILED"===e.factorResult}},factorResultErrorMessage:{deps:["lastAuthResponse","isFactorResultFailed"],fn:function(e,t){return t?e.factorResultMessage||vp("oform.error.unexpected","login"):null}},deviceActivationStatus:{deps:["lastAuthResponse"],fn:function(e){return e._embedded?e._embedded.deviceActivationStatus:null}},usingDeviceFlow:{deps:["lastAuthResponse"],fn:function(e){return!(!e._embedded||!e._embedded.usingDeviceFlow)}},userCode:{deps:["lastAuthResponse"],fn:function(e){var t;return null==e||null===(t=e._embedded)||void 0===t?void 0:t.userCode}}},parse:function(e){return this.settings=e.settings,Ss.extend(Ss.omit(e,"settings"),{languageCode:this.settings.get("languageCode"),userCountryCode:this.settings.get("countryCode")})}}),vg=["facebook","google","linkedin","microsoft","apple","github","gitlab","yahoo","line","paypal","paypal_sandbox","salesforce","amazon","yahoojp","discord","adobe","orcid","spotify","xero","quickbooks"];const bg=(e,t)=>{const n=e.get("languageCode")||t.get("languageCode")||Ir.defaultLanguage,o=t.get("i18n"),i=t.get("assets.baseUrl"),r=t.get("assets.rewrite"),a=t.get("supportedLanguages"),s=setTimeout(function(){e.trigger("loading",!0)},200);return ia.loadLanguage(n,o,{baseUrl:i,rewrite:r},a).then(function(){clearTimeout(s),e.trigger("loading",!1),e.trigger("removeLoading")})},wg=Tp.util.Util,_g=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"https://global.oktacdn.com/okta-signin-widget/"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"version")||(null!=t?a(t,"version"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"version",hash:{},data:i,loc:{start:{line:1,column:46}
2,end:{line:1,column:57}}}):r)},useData:!0}),kg={authClient:["object",!1,void 0],baseUrl:["string",!0],recoveryToken:["string",!1,void 0],stateToken:["string",!1,void 0],username:["string",!1],relayState:["string",!1],signOutLink:["string",!1],backToSignInLink:["string",!1],redirect:{type:"string",values:["never","always","auto"],value:"auto"},flow:["string",!1,"default"],transformUsername:["function",!1],globalSuccessFn:"function",globalErrorFn:"function",processCreds:"function",hooks:"object",logo:"string",logoText:["string",!1],helpSupportNumber:"string",proxyIdxResponse:["object",!1],overrideExistingStateToken:["boolean",!1,!1],"features.router":["boolean",!0,!1],"features.securityImage":["boolean",!0,!1],"features.rememberMe":["boolean",!0,!0],"features.autoPush":["boolean",!0,!1],"features.smsRecovery":["boolean",!0,!1],"features.callRecovery":["boolean",!0,!1],"features.emailRecovery":["boolean",!1,!0],"features.webauthn":["boolean",!0,!1],"features.selfServiceUnlock":["boolean",!0,!1],"features.multiOptionalFactorEnroll":["boolean",!0,!1],"features.deviceFingerprinting":["boolean",!1,!1],"features.hideSignOutLinkInMFA":["boolean",!1,!1],"features.skipIdpFactorVerificationBtn":["boolean",!1,!1],"features.hideBackToSignInForReset":["boolean",!1,!1],"features.customExpiredPassword":["boolean",!0,!1],"features.registration":["boolean",!1,!1],"features.idpDiscovery":["boolean",!1,!1],"features.passwordlessAuth":["boolean",!1,!1],"features.showPasswordToggleOnSignInPage":["boolean",!1,!1],"features.trackTypingPattern":["boolean",!1,!1],"features.redirectByFormSubmit":["boolean",!1,!1],"features.useDeviceFingerprintForSecurityImage":["boolean",!1,!0],"features.showPasswordRequirementsAsHtmlList":["boolean",!1,!1],"features.mfaOnlyFlow":["boolean",!1,!1],"features.scrollOnError":["boolean",!1,!0],"features.showKeepMeSignedIn":["boolean",!1,!0],"features.showIdentifier":["boolean",!1,!0],"features.autoFocus":["boolean",!1,!0],"features.sameDeviceOVEnrollmentEnabled":["boolean",!1,!1],"features.showSessionRevocation":["boolean",!1,!1],"features.disableAutocomplete":["boolean",!1,!1],defaultCountryCode:["string",!1,"US"],language:["any",!1],i18n:["object",!1],"assets.baseUrl":["string",!1],"assets.rewrite":{type:"function",value:Ss.identity},"assets.languages":["array",!1],issuer:"string",clientId:"string",redirectUri:"string",state:"string",nonce:"string",scopes:"array",codeChallenge:"string",codeChallengeMethod:["string",!1],oAuthTimeout:["number",!1],authScheme:["string",!1,"OAUTH2"],idps:["array",!1,[]],idpDisplay:{type:"string",values:["PRIMARY","SECONDARY"],value:"SECONDARY"},initialPopupPath:["string",!1],"helpLinks.help":"string","helpLinks.forgotPassword":"string","helpLinks.unlock":"string","helpLinks.custom":"array","helpLinks.factorPage.href":"string","helpLinks.factorPage.text":"string","helpLinks.gracePeriodRequiredSoon.href":"string","helpLinks.gracePeriodRequiredSoon.text":"string",customButtons:["array",!1,[]],policyId:"string","registration.click":"function","registration.parseSchema":"function","registration.preSubmit":"function","registration.postSubmit":"function","consent.cancel":"function","idpDiscovery.requestContext":"string","colors.brand":"string",cspNonce:"string",brandName:"string",piv:["object",!1,{}],otp:"string",useClassicEngine:["boolean",!1,!1],"hcaptcha.scriptSource":["string",!1],"hcaptcha.scriptParams":["object",!1,{}],"recaptcha.scriptSource":["string",!1]},xg={backToSignInUri:{deps:["backToSignInLink","signOutLink"],fn:function(e,t){return e||t}},showPasswordToggle:{deps:["features.showPasswordToggleOnSignInPage"],fn:function(){var e,t,n,o;const i=null!==(e=null===(t=this.options)||void 0===t||null===(n=t.features)||void 0===n?void 0:n.showPasswordToggleOnSignInPage)&&void 0!==e?e:null===(o=this.options)||void 0===o?void 0:o["features.showPasswordToggleOnSignInPage"];return null==i||i},cache:!0},redirectUtilFn:{deps:["features.redirectByFormSubmit"],fn:function(e){return e?ca.redirectWithFormGet.bind(ca):wg.redirect.bind(wg)},cache:!0},supportedLanguages:{deps:["i18n","language","assets.languages"],fn:function(e,t,n){const o=n||Ir.supp
2ortedLanguages;return Ss.union(o,Ss.keys(e),Ss.isString(t)?[t]:[])},cache:!0},languageCode:{deps:["language","supportedLanguages"],fn:function(e,t){const n=Gr.getUserLanguages();n.forEach((e,t)=>{"nl"===e?n[t]="nl-NL":"pt"===e&&(n[t]="pt-BR")});const o=Ss.clone(n),i=ca.toLower(t);Ss.isString(e)?o.unshift(e):Ss.isFunction(e)&&o.unshift(e(t,n)),o.push(Ir.defaultLanguage);const r=ca.toLower(ca.expandLanguages(o));let a,s;for(a=0;a<r.length;a++)if(s=i.indexOf(r[a]),s>-1)return t[s]}},languageTags:{deps:["language","supportedLanguages"],fn:(e,t)=>{const n=Gr.getUserLanguages().map(e=>"nl"===e?"nl-nl":"pt"===e?"pt-br":e.toLowerCase()),o=new Map,i=e=>{if(!e)return;const[t]=e.split("-");if(o.has(t)){var n;const i=null!==(n=o.get(t))&&void 0!==n?n:new Set;i.add(e),o.set(t,i)}else o.set(t,new Set([e]))},r=n.filter(e=>t.some(t=>e.startsWith(t.toLowerCase())));let a;if(r.forEach(i),ca.expandLanguages(r).forEach(i),void 0!==e){if("string"==typeof e)a=e.toLowerCase();else if("function"==typeof e){var s;a=null===(s=e(t,n))||void 0===s?void 0:s.toLowerCase()}ca.expandLanguages([a]).forEach(i)}ca.expandLanguages([Ir.defaultLanguage.toLowerCase()]).forEach(i);const l=[];if(a){var c;const[e]=a.split("-");l.push(...null!==(c=o.get(e))&&void 0!==c?c:[]),o.delete(e)}return o.forEach(e=>{l.push(...e)}),l}},countryCode:{deps:["defaultCountryCode"],fn:function(e){const t=_h();return Object.keys(t).includes(e)?e:"US"}},mode:{deps:["codeChallenge"],fn:function(e){return e?"remediation":"relying-party"}},oauth2Enabled:{deps:["clientId","authScheme","authClient"],fn:function(e,t,n){return!e&&n&&(e=n.options.clientId),!!e&&"oauth2"===t.toLowerCase()},cache:!0},oauthRedirectUri:{deps:["redirectUri"],fn:function(e){if(e)return e;let t=window.location.origin;if(!t){const e=window.location.href,n=window.location.pathname;""!==n&&(t=e.substring(0,e.lastIndexOf(n)))}return encodeURI(t)}},configuredSocialIdps:{deps:["idps"],fn:function(e){return Ss.map(e,function(e){const t=Ss.clone(e);let n=t.type&&t.type.toLowerCase();return n&&Ss.contains(vg,n)||(n="general-idp",t.text=t.text||"{ Please provide a text value }"),t.className=["social-auth-button","social-auth-"+n+"-button ",t.className?t.className:""].join(" "),t.dataAttr="social-auth-"+n+"-button",t.i18nKey="socialauth."+n+".label",t})},cache:!0},hasPivCard:{deps:["piv"],fn:function(e){return e&&e.certAuthUrl},cache:!0},socialAuthPositionTop:{deps:["configuredSocialIdps","hasPivCard","idpDisplay"],fn:function(e,t,n){return(!Ss.isEmpty(e)||t)&&"PRIMARY"===n.toUpperCase()},cache:!0},hasConfiguredButtons:{deps:["configuredSocialIdps","customButtons","hasPivCard"],fn:function(e,t,n){return!Ss.isEmpty(e)||!Ss.isEmpty(t)||n},cache:!0}};class Sg extends Gs{constructor(e,t){super(e,t),this.authClient=void 0;const n=this.getAuthClient();this.setAcceptLanguageHeader(n)}get(e){return Gs.prototype.get.call(this,e)}preinitialize(...e){this.local=kg,this.derived=xg,Gs.prototype.preinitialize.apply(this,e)}initialize(e){e=e||{};const{colors:t,authClient:n,flow:o}=e;let{baseUrl:i}=e;if(!i){if(n)i=n.getIssuerOrigin();else{var r;const{authParams:t}=e;let{issuer:n}=e;n=n||(null==t?void 0:t.issuer),i=null===(r=n)||void 0===r?void 0:r.split("/oauth2/")[0]}this.set("baseUrl",i)}n&&o&&n.idx.setFlow(o),i?t&&Ss.isString(t.brand)&&!t.brand.match(/^#[0-9A-Fa-f]{6}$/)?this.callGlobalError(new jr(vp("error.invalid.colors.brand"))):Gr.corsIsNotSupported()&&this.callGlobalError(new Fr(vp("error.unsupported.cors"))):this.callGlobalError(new jr(vp("error.required.baseUrl")))}setAcceptLanguageHeader(e){e&&e.http.setRequestHeader("Accept-Language",this.get("languageCode"))}setAuthClient(e){this.set("authClient",e),this.setAcceptLanguageHeader(e)}getAuthClient(){return this.get("authClient")}set(...e){try{return Gs.prototype.set.apply(this,e)}catch(e){const t=e.message?e.message:e;this.callGlobalError(new jr(t))}}callGlobalSuccess(e,t){const n=Ss.extend(t,{status:e});Ss.defer(Ss.partial(this.get("globalSuccessFn"),n))}callGlobalError(e){const t=this.get("globalErrorFn")||this.options.globalErrorFn;if(!t)throw e;t(e)}transformUsername(e,t){const n=this.get("transformUsername");return n&&Ss.isFunction(n)?n(e,t):e}processCreds(e){const t=this.get("processCreds");return Cp().Promise(function(n){Ss.isFunction(t)?2===t.length?t(e,n):(t(e),n()):n()})}parseRegistrationSchema(e,t,n){const o=this.get("registration.parseSchema");Ss.isFunction(o)?o(e,function(e){t(e)},function(e){(e=e||{errorSummary:vp("registration.default.callbackhook.error")}).callback="parseSchema",n(e)}):t(e)}preRegistrationSubmit(e,t,n){const o=this.get("registration.preSubmit");Ss.isFunction(o)?o(e,function(e){t(e)},function(e){(e=e||{errorSummary:vp("registration.default.callbackhook.error")}).callback="preSubmit",n(e)}):t(e)}postRegistrationSubmit(e,t,n){const o=this.get("registration.postSubmit");Ss.isFunction(o)?o(e,function(e){t(e)},function(e){(e=e||{errorSummary:vp("registration.default.callbackhook.error")}).callback="postSubmit",n(e)}):t(e)}parse(e){if(e.labels||e.country){Qr("warn",["[okta-signin-widget] DEPRECATED:",'Use "i18n" instead of "labels" and "country"']);const t=e.labels||{};Ss.each(e.country,function(e,n){t["country."+n]=e}),e.i18n={},Ss.each(Ir.supportedLanguages,function(n){e.i18n[n]=t}),delete e.labels,delete e.country}e.assets||(e.assets={});const t=e.assets.baseUrl;return t?"/"===t[t.length-1]&&(e.assets.baseUrl=t.substring(0,t.length-1)):e.assets.baseUrl=_g({version:Ir.ver
2sion}),e}isDsTheme(){return!1}}var Tg=xp.extend({tagName:"main",className:"auth-container main-container",id:Mr.WIDGET_CONTAINER_ID,attributes:{"data-se":"auth-container",tabindex:"-1"},initialize:function(e){this.listenTo(e.appState,"change:beaconType",function(e,t){this.$el.toggleClass("can-remove-beacon","security"===t)})}});const Eg={};function Cg(e,t,n){const o=Cp().defer();return e.animate({"text-indent":1},{duration:200,easing:"swing",step:function(o,i){i.start=t,i.end=n,e.css("transform","scale("+o+", "+o+")")},always:function(){o.resolve(e)}}),o.promise}function Og(e,t,n){const o=Cp().defer();return e.animate({"text-indent":1},{duration:150,easing:"swing",step:function(o,i){i.start=t,i.end=n,e.css("transform","rotate("+o+"deg)")},always:function(){o.resolve(e)}}),o.promise}Eg.swapPages=function(e){const t=Cp().defer(),n=e.$parent,o=e.$oldRoot,i=e.$newRoot,r=e.success,a=e.ctx;let s="transition-from-right";e.dir&&e.dir===Mr.DIRECTION_BACK&&(s="transition-from-left"),i.addClass(s),n.append(i),n.addClass("animation-container-overflow");const l={left:"0px",top:"0px",opacity:1};return i.animate(l,200,function(){n.removeClass("animation-container-overflow"),i.removeClass(s);const e=Object.keys(l).reduce((e,t)=>({...e,[t]:""}),{});i.css(e),r.call(a),t.resolve()}),o.animate({height:i.height(),opacity:0},160),t.promise},Eg.swapBeacons=function(e){const t=e.$el,n=e.swap,o=e.ctx;return this.implode(t).then(function(){return n.call(o),t}).then(this.explode)},Eg.explode=function(e){return Cg(e,0,1)},Eg.implode=function(e){return Cg(e,1,0)},Eg.radialProgressBar=function(e){const t=e.$el,n=e.swap,o=t.children();return Og(o,0,180).then(function(){t.css({clip:"auto"})}).then(function(){const e=o.eq(0);return n(),Og(e,180,360)}).then(function(){t.css({clip:"rect(0px, 96px, 96px, 48px)"}),o.css({transform:"rotate(0deg)","text-indent":"1px"})})};var Ag=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="beacon-blank"></div><div class="bg-helper auth-beacon auth-beacon-security" data-se="loading-beacon"><div class="okta-sign-in-beacon-border auth-beacon-border js-auth-beacon-border"></div></div>'},useData:!0}),equals:function(e){return e&&this instanceof e}});const Pg="no-beacon",Ng="beacon-small beacon-loading";function Rg(e){return e&&e.equals(Ag)}function Ig(e){e.currentBeacon&&(e.currentBeacon.remove(),e.currentBeacon=null)}function Dg(e,t,n,o){e.add(t,{selector:n,options:o}),e.currentBeacon=e.first()}class Lg extends xp{constructor(...e){super(...e),this.currentBeacon=void 0}preinitialize(...e){this.currentBeacon=null,this.template=_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h1><img src="'+c(typeof(r=null!=(r=u(n,"logo")||(null!=t?u(t,"logo"):t))?r:s)===l?r.call(a,{name:"logo",hash:{},data:i,loc:{start:{line:1,column:71},end:{line:1,column:79}}}):r)+'" class="auth-org-logo" alt="'+c(typeof(r=null!=(r=u(n,"logoText")||(null!=t?u(t,"logoText"):t))?r:s)===l?r.call(a,{name:"logoText",hash:{},data:i,loc:{start:{line:1,column:108},end:{line:1,column:120}}}):r)+' logo" aria-label="'+c(typeof(r=null!=(r=u(n,"logoText")||(null!=t?u(t,"logoText"):t))?r:s)===l?r.call(a,{name:"logoText",hash:{},data:i,loc:{start:{line:1,column:139},end:{line:1,column:151}}}):r)+' logo"></h1>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-sign-in-header auth-header">'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"logo"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:45},end:{line:1,column:170}}}))?r:"")+'<div data-type="beacon-container" class="beacon-container"></div></div><div class="auth-content"><div class="auth-content-inner"></div></div>'},useData:!0}),xp.prototype.preinitialize.apply(this,e)}initialize(e){e.settings.get("features.securityImage")||(this.$el.addClass(Pg),this.listenTo(e.appState,"loading",this.setLoadingBeacon),this.listenTo(e.appState,"removeLoading",this.removeLoadingBeacon))}setBeacon(e,t){const n='[data-type="beacon-container"]',o=this.$(n),i=function(e,t,n){return e||t?!e&&n.loading?"load":e&&Rg(e)?t?"swap":"unload":e&&e.equals(t,n)?"same":!e&&t?"add":e&&!t?"remove":e instanceof t?"fade":"swap":"none"}(this.currentBeacon,e,t);switch(i){case"none":return void this.$el.addClass(Pg);case"same":return;case"add":return this.$el.removeClass(Pg),Dg(this,e,n,t),Eg.explode(o);case"remove":return this.$el.addClass(Pg),Eg.implode(o).then(()=>{Ig(this)}).done();case"fade":if(!this.currentBeacon.fadeOut)throw new Error('The current beacon is missing the "fadeOut" method');return t.animate=!0,this.currentBeacon.fadeOut().then(()=>{Ig(this),Dg(this,e,n,t)}).done();
2case"swap":return Eg.swapBeacons({$el:o,swap:()=>{const i=Rg(this.currentBeacon);Ig(this),this.$el.removeClass(Pg),i&&o.removeClass(Ng),Dg(this,e,n,t)}}).done();case"load":return o.addClass(Ng),Dg(this,e,n,t),Eg.explode(o);case"unload":return this.removeLoadingBeacon();default:throw new Error('the "'+i+'" is not recognized')}}setLoadingBeacon(e){e&&!Rg(this.currentBeacon)&&this.setBeacon(Ag,{loading:!0})}removeLoadingBeacon(){if(!Rg(this.currentBeacon))return;const e=this.$('[data-type="beacon-container"]');return Eg.implode(e).then(()=>{Ig(this),e.removeClass(Ng)}).done()}getTemplateData(){return this.settings.toJSON({verbose:!0})}getContentEl(){return this.$(".auth-content-inner")}}function Mg(e,t){const n=t.get("securityImage"),o=t.get("securityImageDescription"),i=t.get("isUndefinedUser"),r=t.get("isNewUser"),a=!i&&!r;if(e.css("background-image",""),e.removeClass("new-user undefined-user"),r)e.addClass("new-user");else{if(!i)return a?(e.removeAttr("aria-describedby"),e.find(".accessibility-text").text(o),void e.css("background-image","url("+Ss.escape(n)+")")):void 0;e.addClass("undefined-user")}}async function Ug(e,t,n){const o=e.find(".auth-beacon-security"),i=e.find(".js-auth-beacon-border"),r=!t.get("isUndefinedUser"),a=t.get("isNewUser"),s=e.find(".radial-progress-bar"),l=t.get("baseUrl").match(/https?:\/\/(.[^/]+)/)[1],c=200;if(!n)return Mg(o,t),void i.toggleClass("auth-beacon-border",r);!function(e){e.qtip("destroy"),sl(window).off("resize.securityBeaconQtip")}(o),r?(i.removeClass("auth-beacon-border"),await Eg.radialProgressBar({$el:s,swap:function(){o.fadeOut(c,()=>{Mg(o,t),o.fadeIn(c)})}}),i.addClass("auth-beacon-border"),a&&function(e,t){sl(window).on("resize.securityBeaconQtip",Ss.debounce(function(){e.is(":visible")&&e.qtip("show")},300)),e.qtip({prerender:!0,content:{text:vp("primaryauth.newUser.tooltip","login",[Ss.escape(t)]),button:vp("primaryauth.newUser.tooltip.close","login")},style:{classes:"okta-security-image-tooltip security-image-qtip qtip-custom qtip-shadow qtip-rounded",tip:{height:12,width:16}},position:{my:"top center",at:"center",target:sl(".auth-beacon-security"),adjust:{method:"flip",scroll:!1,resize:!0},effect:!1},hide:{event:!1,fixed:!0},show:{event:!1,delay:200},events:{move:function(e,t){t.elements.target.is(":visible")||(t.set("hide.effect",!1),t.hide(),t.set("hide.effect",!0))}}}),setTimeout(()=>{e.qtip("toggle",e.is(":visible"))},0)}(o,l)):o.fadeOut(c,function(){Mg(o,t),i.removeClass("auth-beacon-border"),o.fadeIn(c)})}var jg=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="beacon-blank"><div class="radial-progress-bar"><div class="circle left"></div><div class="circle right"></div></div></div><div aria-live="polite" role="img" class="bg-helper auth-beacon auth-beacon-security" data-se="security-beacon"><span class="accessibility-text"></span><div class="okta-sign-in-beacon-border auth-beacon-border js-auth-beacon-border"></div></div>'},useData:!0}),className:"js-security-beacon",initialize:function(e){this.update=Ss.partial(Ug,this.$el,e.appState),this.listenTo(e.appState,"change:securityImage",this.update),this.listenTo(e.appState,"loading",function(e){this.$el.toggleClass("beacon-loading",e),this.removeAntiPhishingMessage()}),this.options.appState.set("beaconType","security"),this.listenTo(e.appState,"navigate",this.removeAntiPhishingMessage)},postRender:function(){this.update(!1)},equals:function(e){return e&&this instanceof e},removeAntiPhishingMessage:function(){this.$el.find(".auth-beacon-security").qtip("destroy")}});const Fg={lighten:function(e,t){t=t||0,e=e.substr(1);let n="#";for(var o=0;o<3;o++){let i=parseInt(e.substr(2*o,2),16);i=Math.round(Math.min(Math.max(0,i+i*t),255)).toString(16),n+=("00"+i).substr(i.length)}return n},addStyle:function(e,t){const n=function(e){return`\n#okta-sign-in.auth-container .button-primary,\n#okta-sign-in.auth-container .button-primary:active,\n#okta-sign-in.auth-container .button-primary:focus { background: ${e.brand}; }\n#okta-sign-in.auth-container .button-primary:hover { background: ${Fg.lighten(e.brand,.05)}; }\n#okta-sign-in.auth-container .button.button-primary.link-button-disabled {\n  background: ${e.brand};\n  opacity: 0.5;\n}\n    `}(e),o=document.getElementById(Mr.WIDGET_CONTAINER_ID),i=document.createElement("style");i.id=Mr.WIDGET_CONFIG_COLORS_ID,i.type="text/css",t&&(i.nonce=t),i.appendChild(document.createTextNode(n)),o.appendChild(i)},isLoaded:function(){return!!document.getElementById(Mr.WIDGET_CONFIG_COLORS_ID)}};var Vg=Sp.extend({Events:Os.Events,initialize:function(e){e.globalSuccessFn||(e.globalSuccessFn=function(){}),e.globalErrorFn||(e.globalErrorFn=function(e){ea(e)}),this.settings=new Sg(Ss.omit(e,"el"),{parse:!0}),e.el||this.settings.callGlobalError(new jr(vp("error.required.el"))),sl("body > div").on("click",function(){}),this.appState=new yg({baseUrl:this.settings.get("baseUrl"),settings:this.settings},{parse:!0});const t=new Tg({appState:this.appState});sl(e.el).append(t.render().$el),this.el=`#${Mr.WIDGET_CONTAINER_ID}`,this.header=new Lg({el:this.el,appState:this.appState,settings:this.settings}),this.hide(),this.listenTo(this.appState,"change:transactionError",function(e,t){Od.routeAfterAuthStatusChangeError(this,t)}),this.listenTo(this.appState,"change:transaction",function(e,t){Od.routeAfterAuthStatusChange(this,t.data)}),this.listenTo(this.appState,"navigate",function(e){this.navigate(e,{trigger:!0})})},execute:function(e,t){const n=this.settings.get("recoveryToken");if(n)return this.settings.unset("recoveryToken"),void this.navigate(Od.createRecoveryUrl(n),{trigger:!0});const o=this.settings.get("stateToken");if(o)return this.settings.unset("stateToken"),void this.navigate(Od.createRefreshUrl(o),{trigger:!0});const i=this.appState.get("transaction");i&&i.data||function(e,t){return Ss.find(e.stateLessRouteHandlers,function(n){return t===e[n]})}(this,e)?e.apply(this,t):this.settings.getAuthClient().tx.exists()?this.navigate(Od.createRefreshUrl(),{trigger:!0}):this.navigate("",{trigger:!0})},navigate:function(e,t){return this.settings.get("features.router")?Sp.prototype.navigate.apply(this,arguments):t&&t.trigger?Os.history.loadUrl(e):void 0},render:function(e,t){t||(t={});let n=t.Beacon;const o=Ss.extend({settings:this.settings,appState:this.appState},Ss.omit(t,"Beacon"));if(this.header.rendered()||(this.el=this.header.render().getContentEl()),!ia.isLoaded(this.appState.get("languageCode")))return bg(this.appState,this.settings).then(Ss.bind(this.render,this,e,t));if(this.settings.get("colors.brand")&&!Fg.isLoaded()){const e={brand:this.settings.get("colors.brand")},t=this.settings.get("cspNonce");Fg.addStyle(e,t)}const i=this.controller;return this.controller=new e(o),this.listenTo(this.controller,"all",this.trigger),this.controller.fetchInitialData().then(()=>(function(e,t){return!!e&&(e!==jg||t.get("features.securityImage"))}(n,this.settings)||(n=null),this.header.setBeacon(n,o),this.show(),this.controller.render(),i?Eg.swapPages({$parent:this.el,$oldRoot:i.$el,$newRoot:this.controller.$el,dir:i.state.get("navigateDir"),ctx:this,success:function(){const e=this.appState.get("flashError"),t=this.controller.model;if(i.remove(),i.$el.remove(),this.controller.postRenderAnimation(),e){let n;n=e.is&&e.is("terminal")?e.errorDetails.errorSummary:vp(this.settings.get("features.mfaOnlyFlow")?"error.mfa.only.expired.session":"error.expired.session"),t.trigger("error",t,{responseJSON:{errorSummary:n}}),this.appState.unset("flashError"),ca.triggerAfterError(this.controller,e)}}}):(this.el.append(this.controller.el),void this.controller.postRenderAnimation()))).catch(function(){i&&(i.remove(),i.$el.remove())})},start:function(){let e=!1;window.addEventListener&&this.settings.get("features.router")&&(window.addEventListener("popstate",e=>{this.controller.back&&(e.preventDefault(),e.stopImmediatePropagation(),this.controller.back())}),e=Gr.supportsPushState()),Sp.prototype.start.call(this,{pushState:e})},hide:function(){this.header.$el.hide()},show:function(){this.header.$el.show()},remove:function(){this.controller&&this.controller.remove(),this.header.$el.remove(),ia.remove(),Os.history.stop()}});const qg=_s.template({0:function(e,t,n,o,i){var r,a,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" ("+(null!=(r="function"==typeof(a=null!=(a=s(n,"deviceName")||(null!=t?s(t,"deviceName"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"deviceName",hash:{},data:i,loc:{start:{line:1,column:34}
2,end:{line:1,column:50}}}):a)?r:"")+")"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(a=null!=(a=l(n,"factorName")||(null!=t?l(t,"factorName"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"factorName",hash:{},data:i,loc:{start:{line:1,column:0},end:{line:1,column:14}}}):a)+(null!=(r=l(n,"if").call(s,null!=t?l(t,"deviceName"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:14},end:{line:1,column:58}}}))?r:"")},useData:!0}),Bg=function(e){let t;const n=e.get("factorType"),o=this.options.appState.get("factors");o.hasMultipleFactorsOfSameType(n)&&(t=o.getFactorIndex(n,e.get("id")));const i=Od.createVerifyUrl(e.get("provider"),n,t),r=this;this.options.appState.trigger("factorSwitched"),this.model.manageTransaction(function(e,t){if("FACTOR_CHALLENGE"===e.status&&this.options.appState.set("trapMfaRequiredResponse",!0),"MFA_CHALLENGE"===e.status&&e.prev)return this.options.appState.set("trapMfaRequiredResponse",!0),e.prev().then(function(e){r.trigger("options:toggle"),t(e),r.options.appState.trigger("navigate",i)});r.trigger("options:toggle"),r.options.appState.trigger("navigate",i)})},$g={TITLE:{title:Ss.partial(vp,"mfa.factors.dropdown.title","login"),className:"dropdown-list-title",disabled:!0},OKTA_VERIFY:{icon:"factor-icon mfa-okta-verify-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},OKTA_VERIFY_PUSH:{icon:"factor-icon mfa-okta-verify-30",className:"factor-option",title:function(){return qg({factorName:this.model.get("factorLabel"),deviceName:this.model.get("deviceName")})},action:function(){Bg.call(this,this.model)}},GOOGLE_AUTH:{icon:"factor-icon mfa-google-auth-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},CUSTOM_HOTP:{icon:"factor-icon mfa-hotp-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},SYMANTEC_VIP:{icon:"factor-icon mfa-symantec-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},RSA_SECURID:{icon:"factor-icon mfa-rsa-30",className:"factor-option",title:Ss.partial(vp,"factor.totpHard.rsaSecurId","login"),action:function(){Bg.call(this,this.model)}},ON_PREM:{icon:"factor-icon mfa-onprem-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},DUO:{icon:"factor-icon mfa-duo-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},DUO_PUSH:{icon:"duo-push-16",className:"suboption factor-option",title:Ss.partial(vp,"mfa.duoSecurity.push","login",["XXX-XXX-7890"])},DUO_SMS:{icon:"duo-sms-16",className:"suboption factor-option",title:Ss.partial(vp,"mfa.duoSecurity.sms","login",["XXX-XXX-7890"])},DUO_CALL:{icon:"duo-call-16",className:"suboption factor-option",title:Ss.partial(vp,"mfa.duoSecurity.call","login",["XXX-XXX-7890"])},YUBIKEY:{icon:"factor-icon mfa-yubikey-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},SMS:{icon:"factor-icon mfa-sms-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},CALL:{icon:"factor-icon mfa-call-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},QUESTION:{icon:"factor-icon mfa-question-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},PASSWORD:{icon:"factor-icon mfa-password-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},WINDOWS_HELLO:{icon:"factor-icon mfa-windows-hello-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},U2F:{icon:"factor-icon mfa-u2f-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},WEBAUTHN:{icon:"factor-icon mfa-webauthn-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},EMAIL:{icon:"factor-icon mfa-email-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}}
2,GENERIC_SAML:{icon:"factor-icon mfa-custom-factor-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},GENERIC_OIDC:{icon:"factor-icon mfa-custom-factor-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}},CUSTOM_CLAIMS:{icon:"factor-icon mfa-custom-factor-30",className:"factor-option",title:function(){return this.model.get("factorLabel")},action:function(){Bg.call(this,this.model)}}};var Hg=function(e){return $g[e]};const{BaseDropDown:zg}=Tp.views.components;sl(document).click(function(e){const t=sl(e.target);t.closest(".option-selected").length>0&&t.closest(".dropdown").length>0||(sl(".dropdown .options").hide(),sl(".dropdown a.option-selected").attr("aria-expanded",!1))});var Wg=zg.extend({className:"bg-helper icon-button",screenReaderText:function(){const e=this.options.appState.get("factors");let t,n;return t=e?Qp.findFactorInFactorsArray(e,this.options.provider,this.options.factorType):new hh.Model(this.options.appState.get("factor"),this.toJSON()),n=t.get("factorLabel"),vp("mfa.factors.dropdown.sr.text","login",[n])},events:{"click a.option-selected":function(e){if(e.preventDefault(),Ss.result(this,"disabled"))e.stopPropagation();else{const e=this.$(".options").toggle().is(":visible");this.$("a.option-selected").attr("aria-expanded",e),e&&this.$("#okta-dropdown-options").find("li.factor-option:first a").focus()}},"click .dropdown-disabled":function(e){e.preventDefault(),e.stopPropagation()}},initialize:function(){this.addOption(Hg("TITLE"));const e=this.options.appState.get("factors"),t=e.hasMultipleFactorsOfSameType("push");e.each(function(e){"token:software:totp"===e.get("factorType")&&t||(this.addOption(Hg(e.get("factorName")),{model:e}),this.listenTo(this.last(),"options:toggle",function(){this.$(".options").hide(),this.$("a.option-selected").attr("aria-expanded",!1)}))},this)}}),Kg=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="beacon-blank auth-beacon"><div class="beacon-blank js-blank-beacon-border auth-beacon-border"></div></div><div class="bg-helper auth-beacon auth-beacon-factor '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"className")||(null!=t?a(t,"className"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"className",hash:{},data:i,loc:{start:{line:1,column:171},end:{line:1,column:184}}}):r)+'" data-se="factor-beacon"><div class="okta-sign-in-beacon-border auth-beacon-border"></div></div><div data-type="factor-types-dropdown" class="factors-dropdown-wrap"></div>'},useData:!0}),events:{"click .auth-beacon-factor":function(e){e.preventDefault(),e.stopPropagation();const t=this.$(".dropdown .options").toggle().is(":visible");this.$("a.option-selected").attr("aria-expanded",t),t&&this.$("#okta-dropdown-options").find("li.factor-option:first a").focus()}},initialize:function(){this.options.appState.set("beaconType","factor")},getTemplateData:function(){const e=this.options.appState.get("factors");let t,n;return t=e?Qp.findFactorInFactorsArray(e,this.options.provider,this.options.factorType):new hh.Model(this.options.appState.get("factor")),n=t.get("iconClassName"),{className:n||""}},postRender:function(){this.options.animate&&this.$(".auth-beacon-factor").fadeIn(200),this.options.appState.get("hasMultipleFactorsAvailable")&&this.add(Wg,'[data-type="factor-types-dropdown"]')},fadeOut:function(){const e=Cp().defer();return this.$(".auth-beacon-factor").fadeOut(200,function(){e.resolve()}),e.promise},equals:function(e,t){return e&&this instanceof e&&t.provider===this.options.provider&&(t.factorType===this.options.factorType||Qp.isOktaVerify(t.provider,t.factorType)&&Qp.isOktaVerify(this.options.provider,this.options.factorType))}}),Gg=xp.extend({className:"piv-beacon",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="beacon-blank auth-beacon"><div class="beacon-blank js-blank-beacon-border auth-beacon-border"></div></div><div class="bg-helper auth-beacon smartcard" data-se="piv-beacon"><div class="okta-sign-in-beacon-border auth-beacon-border"></div></div>'},useData:!0}
2),equals:function(e){return e&&this instanceof e}}),Yg=Vg.extend({routes:{"":"defaultAuth",signin:"primaryAuth","signin/okta/:username":"primaryAuth","signin/verify/duo/web":"verifyDuo","signin/verify/piv":"verifyPIV","signin/poll":"poll","signin/verify/fido/webauthn":"verifyWebauthn","signin/verify/webauthn":"verifyWebauthn","signin/verify/fido/u2f":"verifyU2F","signin/verify/u2f":"verifyU2F","signin/verify/generic_saml/assertion:saml2":"verifySAMLFactor","signin/verify/generic_oidc/assertion:oidc":"verifyOIDCFactor","signin/verify/custom/claims_provider":"verifyClaimsFactor","signin/verify/:factorType":"verifyNoProvider","signin/verify/:provider/:factorType(/:factorIndex)":"verify","signin/enroll":"enrollChoices","signin/enroll/duo/web":"enrollDuo","signin/enroll/okta/question":"enrollQuestion","signin/enroll/okta/password":"enrollPassword","signin/enroll/okta/sms":"enrollSms","signin/enroll/okta/call":"enrollCall","signin/enroll/okta/email":"enrollEmail","signin/enroll-activate/okta/sms":"enrollSms","signin/enroll-activate/okta/call":"enrollCall","signin/enroll/rsa/token":"enrollRsa","signin/enroll/del_oath/token":"enrollOnPrem","signin/enroll/symantec/token":"enrollSymantecVip","signin/enroll/yubico/token:hardware":"enrollYubikey","signin/enroll/fido/webauthn":"enrollWebauthn","signin/enroll/fido/u2f":"enrollU2F","signin/enroll/generic_saml/assertion:saml2":"enrollSAMLFactor","signin/enroll/generic_oidc/assertion:oidc":"enrollOIDCFactor","signin/enroll/custom/claims_provider":"enrollClaimsFactor","signin/enroll/custom/token:hotp":"enrollHotpFactor","signin/enroll/:provider/:factorType":"enrollTotpFactor","signin/enroll-activate/okta/email":"enrollActivateEmail","signin/enroll-activate/okta/push":"scanBarcodePushFactor","signin/enroll-activate/okta/push/manual":"manualSetupPushFactor","signin/enroll-activate/okta/push/sent":"activationLinkSent","signin/enroll-activate/okta/token:software:totp/passcode":"enterPasscodeInPushEnrollmentFlow","signin/enroll-activate/custom/claims_provider":"enrollActivateClaimsFactor","signin/enroll-activate/:provider/:factorType":"scanBarcodeTotpFactor","signin/enroll-activate/:provider/:factorType/activate":"activateTotpFactor","signin/enroll-activate/:provider/:factorType/manual":"manualSetupTotpFactor","signin/password-expired":"passwordExpired","signin/custom-password-expired":"customPasswordExpired","signin/forgot-password":"forgotPassword","signin/recovery-challenge":"recoveryChallenge","signin/recovery-emailed":"recoveryEmailSent","signin/recovery-question":"recoveryQuestion","signin/password-reset":"passwordReset","signin/reset-password/:token":"recoveryLoading","signin/user-unlock/:token":"recoveryLoading","signin/recovery/:token":"recoveryLoading","signin/unlock-emailed":"unlockEmailSent","signin/unlock":"unlockAccount","signin/account-unlocked":"accountUnlocked","signin/refresh-auth-state(/:token)":"refreshAuthState","signin/register":"register","signin/register-complete":"registerComplete","signin/error":"errorState","signin/consent":"consentRequired","signin/admin-consent":"adminConsentRequired","signin/enroll-user":"enrollUser","signin/device-activate-complete":"deviceActivateComplete","signin/device-activate":"deviceActivate","signin/idp-discovery-check":"idpDiscoveryCheck","*wildcard":"defaultAuth"},stateLessRouteHandlers:["defaultAuth","idpDiscovery","primaryAuth","forgotPassword","recoveryLoading","unlockAccount","refreshAuthState","register","registerComplete","errorState","verifyPIV"],defaultAuth:function(){window.location.hash!==`#${Mr.WIDGET_CONTAINER_ID}`?this.settings.get("features.idpDiscovery")?this.idpDiscovery():this.primaryAuth():document.getElementById(Mr.WIDGET_CONTAINER_ID).focus()},idpDiscoveryCheck:function(){this.render(nm,{Beacon:jg})},idpDiscovery:function(){this.render(tm,{Beacon:jg})},primaryAuth:function(e){this.render(Xf,{Beacon:jg,username:e})},verifyDuo:function(){this.render(ag,{provider:"DUO",factorType:"web",Beacon:Kg})},verifyPIV:function(){this.render(lg,{Beacon:Gg})},poll:function(){this.render(jm)},verifyWebauthn:function(){this.settings.get("features.webauthn")?this.render(pg,{provider:"FIDO",factorType:"webauthn",Beacon:Kg}):this.render(dg,{provider:"FIDO",factorType:"webauthn",Beacon:Kg})},verifyU2F:function(){this.render(cg,{provider:"FIDO",factorType:"u2f",Beacon:Kg})},verifySAMLFactor:function(){this.render(rg,{provider:"GENERIC_SAML",factorType:"assertion:saml2",Beacon:Kg})},verifyOIDCFactor:function(){this.render(rg,{provider:"GENERIC_OIDC",factorType:"assertion:oidc",Beacon:Kg})},verifyClaimsFactor:function(){this.render(rg,{provider:"CUSTOM",factorType:"claims_provider",Beacon:Kg})},verify:function(e,t,n){this.render(Im,{provider:e.toUpperCase(),factorType:t,factorIndex:n,Beacon:Kg})},verifyNoProvider:function(e){this.render(Im,{factorType:e,Beacon:Kg})},enrollChoices:function(){this.render(Fh,{Beacon:jg})},enrollDuo:function(){this.render(Bh,{provider:"DUO",factorType:"web",Beacon:Kg})},enrollQuestion:function(){this.render(Qh,{provider:"OKTA",factorType:"question",Beacon:Kg})},enrollPassword:function(){this.render(Jh,{provider:"OKTA",factorType:"password",Beacon:Kg})},enrollSms:function(){this.render(Rh,{provider:"OKTA",factorType:"sms",Beacon:Kg})},enrollCall:function(){this.render(Rh,{provider:"OKTA",factorType:"call",Beacon:Kg})},enrollEmail:function(){this.render(Hh,{provider:"OKTA",factorType:"email",Beacon:Kg})},enrollActivateEmail:function(){this.render(bh,{provider:"OKTA",factorType:"email",Beacon:Kg})},enrollRsa:function(){this.render(Gh,{provider:"RSA",factorType:"token",Beacon:Kg})},enrollOnPrem:function(){this.render(Gh,{provider:"DEL_OATH",factorType:"token",Beacon:Kg})},enrollSymantecVip:function(){this.render(Xh,{provider:"SYMANTEC",factorType:"token",Beacon:Kg})}
2,enrollYubikey:function(){this.render(Sf,{provider:"YUBICO",factorType:"token:hardware",Beacon:Kg})},enrollSAMLFactor:function(){this.render(uh,{provider:"GENERIC_SAML",factorType:"assertion:saml2",Beacon:Kg})},enrollOIDCFactor:function(){this.render(uh,{provider:"GENERIC_OIDC",factorType:"assertion:oidc",Beacon:Kg})},enrollClaimsFactor:function(){this.render(uh,{provider:"CUSTOM",factorType:"claims_provider",Beacon:Kg})},enrollActivateClaimsFactor:function(){this.render(yh,{provider:"CUSTOM",factorType:"claims_provider",Beacon:Kg})},enrollTotpFactor:function(e,t){this.render(nf,{provider:e.toUpperCase(),factorType:t,Beacon:Kg})},enrollHotpFactor:function(){this.render(zh,{provider:"CUSTOM",factorType:"token:hotp",Beacon:Kg})},enrollWebauthn:function(){this.settings.get("features.webauthn")?this.render(_f,{provider:"FIDO",factorType:"webauthn",Beacon:Kg}):this.render(xf,{provider:"FIDO",factorType:"webauthn",Beacon:Kg})},enrollU2F:function(){this.render(rf,{provider:"FIDO",factorType:"u2f",Beacon:Kg})},scanBarcodeTotpFactor:function(e,t){this.render(qd,{provider:e.toUpperCase(),factorType:t,Beacon:Kg})},scanBarcodePushFactor:function(){this.render(Vd,{provider:"OKTA",factorType:"push",Beacon:Kg})},activateTotpFactor:function(e,t){this.render(rd,{provider:e.toUpperCase(),factorType:t,Beacon:Kg})},manualSetupTotpFactor:function(e,t){this.render(pm,{provider:e.toUpperCase(),factorType:t,Beacon:Kg})},manualSetupPushFactor:function(){this.render(cm,{provider:"OKTA",factorType:"push",Beacon:Kg})},activationLinkSent:function(){this.render(Of,{provider:"OKTA",factorType:"push",Beacon:Kg})},enterPasscodeInPushEnrollmentFlow:function(){this.render(Pf,{provider:"OKTA",factorType:"token:software:totp",Beacon:Kg})},passwordExpired:function(){this.render(Lm,{Beacon:jg})},customPasswordExpired:function(){this.render(th,{Beacon:jg})},forgotPassword:function(){this.render(Df)},recoveryChallenge:function(){this.render(Vm,{Beacon:jg})},recoveryEmailSent:function(){this.render(Fm,{Beacon:jg})},unlockEmailSent:function(){this.render(og,{Beacon:jg})},recoveryQuestion:function(){this.render(Bm,{Beacon:jg})},passwordReset:function(){this.render(Um,{Beacon:jg})},recoveryLoading:function(e){this.render(qm,{token:e,Beacon:jg})},unlockAccount:function(){this.render(ng)},accountUnlocked:function(){this.render(Bp,{Beacon:jg})},refreshAuthState:function(e){this.render($m,{token:e,Beacon:jg})},register:function(){this.render(Zm)},registerComplete:function(){this.render(Hm)},errorState:function(){this.render(fg,{Beacon:jg})},consentRequired:function(){this.render(Qd)},adminConsentRequired:function(){this.render(md)},enrollUser:function(){this.render(gf)},deviceActivate:function(){this.render(oh)},deviceActivateComplete:function(){this.render(lh)}});const Jg={IDENTIFY:"identify",SELECT_IDENTIFY:"select-identify",IDENTIFY_RECOVERY:"identify-recovery",SELECT_ENROLL_PROFILE:"select-enroll-profile",ENROLL_PROFILE:"enroll-profile",ENROLL_PROFILE_UPDATE:"profile-update",UNLOCK_ACCOUNT:"unlock-account",REQUEST_ACTIVATION:"request-activation-email",CONSENT_ADMIN:"admin-consent",CONSENT_ENDUSER:"consent",CONSENT_GRANULAR:"granular-consent",CONSENT_EMAIL_CHALLENGE:"email-challenge-consent",SELECT_AUTHENTICATOR_AUTHENTICATE:"select-authenticator-authenticate",SELECT_AUTHENTICATOR_UNLOCK:"select-authenticator-unlock-account",AUTHENTICATOR_VERIFICATION_DATA:"authenticator-verification-data",CHALLENGE_AUTHENTICATOR:"challenge-authenticator",CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR:"challenge-webauthn-autofillui-authenticator",CHALLENGE_POLL:"challenge-poll",RESEND:"resend",SELECT_AUTHENTICATOR_ENROLL:"select-authenticator-enroll",SELECT_AUTHENTICATOR_ENROLL_DATA:"select-authenticator-enroll-data",AUTHENTICATOR_ENROLLMENT_DATA:"authenticator-enrollment-data",ENROLL_AUTHENTICATOR:"enroll-authenticator",SELECT_ENROLLMENT_CHANNEL:"select-enrollment-channel",ENROLLMENT_CHANNEL_DATA:"enrollment-channel-data",ENROLL_POLL:"enroll-poll",REENROLL_AUTHENTICATOR:"reenroll-authenticator",REENROLL_AUTHENTICATOR_WARNING:"reenroll-authenticator-warning",REENROLL_CUSTOM_PASSWORD_EXPIRY:"reenroll-custom-password-expiry",REENROLL_CUSTOM_PASSWORD_EXPIRY_WARNING:"reenroll-custom-password-expiry-warning",RESET_AUTHENTICATOR:"reset-authenticator",
2SKIP:"skip",POLL:"poll",FAILURE_REDIRECT:"failure-redirect",SUCCESS_REDIRECT:"success-redirect",REDIRECT_IDP:"redirect-idp",REDIRECT_IDVERIFY:"redirect-idverify",PIV_IDP:"piv-idp",DEVICE_CHALLENGE_POLL:"device-challenge-poll",DEVICE_APPLE_SSO_EXTENSION:"device-apple-sso-extension",CANCEL_TRANSACTION:"cancel-transaction",LAUNCH_AUTHENTICATOR:"launch-authenticator",LAUNCH_WEBAUTHN_AUTHENTICATOR:"launch-webauthn-authenticator",ENROLL_WEBAUTHN_RESIDENTKEY:"enroll-webauthn-residentkey",LAUNCH_PASSKEYS_AUTHENTICATOR:"launch-passkeys-authenticator",DEVICE_ENROLLMENT_TERMINAL:"device-enrollment-terminal",USER_CODE:"user-code",KEEP_ME_SIGNED_IN:"keep-me-signed-in",DEVICE_ASSURANCE_GRACE_PERIOD:"device-assurance-grace-period",TERMINAL:"terminal"},Qg=[Jg.IDENTIFY,Jg.SUCCESS_REDIRECT,Jg.ENROLL_PROFILE,Jg.DEVICE_ENROLLMENT_TERMINAL,Jg.CONSENT_ADMIN,Jg.CONSENT_ENDUSER,Jg.CONSENT_GRANULAR,Jg.CONSENT_EMAIL_CHALLENGE,Jg.USER_CODE,Jg.KEEP_ME_SIGNED_IN],Xg=[Jg.SELECT_AUTHENTICATOR_ENROLL,Jg.SELECT_AUTHENTICATOR_AUTHENTICATE],Zg=[Jg.SELECT_AUTHENTICATOR_AUTHENTICATE,Jg.CHALLENGE_AUTHENTICATOR,Jg.CHALLENGE_POLL,Jg.RESEND],ey="okta_email",ty="okta_password",ny="phone_number",oy="webauthn",iy="security_question",ry="okta_verify",ay="google_otp",sy="onprem_mfa",ly="rsa_token",cy="duo",uy="external_idp",py="custom_otp",dy="symantec_vip",hy="yubikey_token",fy="custom_app",my="tac",gy="push",yy={[Jg.SELECT_AUTHENTICATOR_UNLOCK]:Mr.UNLOCK_ACCOUNT,[Jg.IDENTIFY]:Mr.PRIMARY_AUTH,[Jg.IDENTIFY_RECOVERY]:Mr.FORGOT_PASSWORD},vy="currentAuthenticator-recover",by={ENROLLED_PASSWORD_RECOVERY_LINK:"currentAuthenticatorEnrollment-recover",ORG_PASSWORD_RECOVERY_LINK:vy},wy=[Jg.TERMINAL,Jg.DEVICE_ENROLLMENT_TERMINAL],_y="IDV_STANDARD",ky="IDV_OIN";function xy(e=[]){var t,n,o;const i=e.find(e=>e.relatesTo.key===ry),r=null==i||null===(t=i.value)||void 0===t||null===(n=t.form)||void 0===n||null===(o=n.value)||void 0===o?void 0:o.find(e=>"methodType"===e.name),a=null==r?void 0:r.options;let s;if(a){const t=[];a.forEach(e=>{const n=[...i.value.form.value],o=i.value.form.value.findIndex(e=>"methodType"===e.name),a=Object.assign(Ss.omit(r,"options"),e);a.required=!0,a.mutable=!1,n.splice(o,1,a);const l=Object.assign({},i,{label:e.label,value:{form:{value:n}}});"signed_nonce"===e.value?s=l:t.push(l)});const n=e.findIndex(e=>e.relatesTo.key===ry);e.splice(n,1,...t),s&&(i.relatesTo.deviceKnown?e.unshift(s):e.push(s))}}function Sy(e=[]){return xy(e),e.map(e=>{var t,n,o;const i=((null===(t=e.value)||void 0===t||null===(n=t.form)||void 0===n?void 0:n.value)||[]).filter(e=>!0===e.required&&!1===e.mutable).reduce((e,t)=>Object.assign(e,{[t.name]:t.value}),{});return{label:e.label,value:i,relatesTo:e.relatesTo,authenticatorKey:null===(o=e.relatesTo)||void 0===o?void 0:o.key}})}async function Ty(e){for(let t=0;t<e.length;t++)await e[t]()}Ss.mixin({nestedOmit:function(e,t){let n=Ss.omit(e,t);return t.includes(n.name)&&(n=Ss.omit(n,"value")),Ss.each(n,function(e,o){Array.isArray(e)?n[o]=e.map(e=>Ss.nestedOmit(e,t)):"object"==typeof e&&(n[o]=Ss.nestedOmit(e,t))}),n}});const Ey={user:"object",currentFormName:"string",previousFormName:"string",idx:"object",remediations:"array",dynamicRefreshInterval:"number",deviceFingerprint:"string",hooks:"object"},Cy={authenticatorProfile:{deps:["currentAuthenticator","currentAuthenticatorEnrollment"],fn:function(e={profile:void 0},t={profile:void 0}){return e.profile||t.profile||{}}},authenticatorKey:{deps:["currentAuthenticator","currentAuthenticatorEnrollment"],fn:function(e={key:void 0},t={key:void 0}){return e.key||t.key||""}},authenticatorMethodType:{deps:["currentAuthenticator","currentAuthenticatorEnrollment"],fn:function(e={methods:void 0},t={methods:void 0}){return e.methods&&e.methods[0].type||t.methods&&t.methods[0].type||""}},isPasswordRecovery:{deps:["recoveryAuthenticator"],fn:function(e={type:void 0}){return"password"===(null==e?void 0:e.type)}}};class Oy extends Gs{constructor(e,t){super(e,t),this.settings=void 0,this.hooks=void 0,this.settings=t.settings,this.hooks=t.hooks}get(e){return Gs.prototype.get.call(this,e)}preinitialize(...e){this.local=Ey,this.derived=Cy,Gs.prototype.preinitialize.apply(this,e)}isIdentifierOnlyView(){var e,t,n;return!(null!==(e=this.get("remediations"))&&void 0!==e&&null!==(t=e.find(({name:e})=>"identify"===e))&&void 0!==t&&null!==(n=t.uiSchema)&&void 0!==n&&n.find(({name:e})=>"credentials.passcode"===e))}hasRemediationObject(e){return this.get("idx").neededToProceed.find(t=>t.name===e)}hasActionObject(e){var t,n;return!(null===(t=this.get("idx"))||void 0===t||null===(n=t.actions)||void 0===n||!n[e])}getRemediationAuthenticationOptions(e){const t=this.hasRemediationObject(e);
2if(!t)return[];const n=t.value.find(e=>"authenticator"===e.name);let o=(null==n?void 0:n.options)||[];return o=[...o],xy(o),o}getActionByPath(e){const t=e.split(".");let n;n=1===t.length?this.get("idx").actions:this.get(t.shift());const o=t.shift();return n&&Ss.isFunction(n[o])?n[o]:null}getCurrentViewState(){const e=this.get("currentFormName");if(!e)return;const t=this.get("remediations").filter(t=>t.name===e)[0];if(!t){ea("Panic!!"),ea(`\tCannot find view state for form ${e}.`);const t=this.get("remediations").map(e=>e.name);ea(`\tAll available form names: ${t}`)}return t}getSchemaByName(e){const t=this.getCurrentViewState();if(t)return t.uiSchema.find(({name:t})=>t===e)}getAuthenticatorDisplayName(){const e=this.get("currentAuthenticator")||{},t=this.get("currentAuthenticatorEnrollment")||{};return e.displayName||t.displayName}isAuthenticatorChallenge(){const e=this.get("currentFormName");return Zg.includes(e)}shouldReRenderView(e){var t;if(null!=e&&null!==(t=e.idx)&&void 0!==t&&t.hasFormError)return!1;const n=this.has("idx")?this.get("idx").rawIdxState:null,o=Ss.isEqual(Ss.nestedOmit(e.idx.rawIdxState,["expiresAt","refresh","stateHandle","headers"]),Ss.nestedOmit(n,["expiresAt","refresh","stateHandle","headers"]));return o&&this.set("dynamicRefreshInterval",this.getRefreshInterval(e)),this._isReRenderRequired(o,e,n)}getRefreshInterval(e){var t,n,o,i;const r=this.get("currentFormName");return e.remediations.filter(e=>e.name===r)[0].refresh||(null===(t=e.currentAuthenticatorEnrollment)||void 0===t||null===(n=t.poll)||void 0===n?void 0:n.refresh)||(null===(o=e.currentAuthenticator)||void 0===o||null===(i=o.poll)||void 0===i?void 0:i.refresh)}shouldShowSignOutLinkInCurrentForm(e){const t=this.get("idx")&&this.get("idx").actions,n=this.get("currentFormName");return!e&&Ss.isFunction(null==t?void 0:t.cancel)&&!Qg.includes(n)}containsMessageWithI18nKey(e){Array.isArray(e)||(e=[e]);const t=this.get("messages");return t&&Array.isArray(t.value)&&t.value.some(t=>{var n;return Ss.contains(e,null===(n=t.i18n)||void 0===n?void 0:n.key)})}containsMessageStartingWithI18nKey(e){const t=this.get("messages");return t&&Array.isArray(t.value)&&t.value.some(t=>{var n;return null===(n=t.i18n)||void 0===n?void 0:n.key.startsWith(e)})}clearAppStateCache(){const e={};for(const t in this.attributes)"currentFormName"!==t&&(e[t]=void 0);this.set(e,Object.assign({},{unset:!0,silent:!0})),this.trigger("cache:clear")}chooseRemediation(e){var t,n;if(Ss.isEmpty(e.remediations))return;const o=e.remediations[0];return"enroll-poll"===o.name&&this.get("authenticatorKey")===ry&&(Gr.isAndroid()||Gr.isIOS())&&"qrcode"===(null===(t=e.currentAuthenticator)||void 0===t||null===(n=t.contextualData)||void 0===n?void 0:n.selectedChannel)?e.remediations.find(e=>"select-enrollment-channel"===e.name):o}async setIonResponse(e){const t=this.shouldReRenderView(e);if(this.clearAppStateCache(),this.set(e),t){var n;const t=this.chooseRemediation(e);let o=null;t?o=t.name:(ea("Panic!!"),ea("\tNo remediation found."),ea("\tHere is the entire response"),ea(JSON.stringify(e,null,2)));const i=null===(n=this.hooks)||void 0===n?void 0:n.getHook(o);await async function(e){e&&e.before&&e.before.length&&await Ty(e.before)}(i);const r=this.get("currentFormName");this.unset("currentFormName",{silent:!0}),this.set({currentFormName:o,previousFormName:r}),await async function(e){e&&e.after&&e.after.length&&await Ty(e.after)}(i)}}setNonIdxError(e){this.set("remediations",[{name:Jg.TERMINAL}]),this.set("messages",{value:[{message:e.errorDetails.errorSummary,class:"ERROR"}]}),this.set("currentFormName",Jg.TERMINAL)}getUser(){return this.get("user")}_isReRenderRequired(e,t,n){var o;let i=!0;return(null===(o=this.get("idx"))||void 0===o?void 0:o.hasFormError)&&this._isChallengeAuthenticatorPoll(t,n)&&(i=!1),e&&(i=!1,("poll"===this.get("currentFormName")||Xg.includes(this.get("currentFormName"))||this.containsMessageWithI18nKey("idx.unknown.user"))&&(i=!0)),i}_isChallengeAuthenticatorPoll(e,t){var n;const o=Ss.isEqual(Ss.nestedOmit(e.idx.rawIdxState,["expiresAt","refresh","stateHandle","headers"]),Ss.nestedOmit(t,["expiresAt","refresh","stateHandle","messages","headers"])),i="challenge-authenticator"===this.get("currentFormName"),r=(null===(n=this.get("currentAuthenticatorEnrollment"))||void 0===n?void 0:n.key)===ey;return o&&i&&r}}const Ay="osw-oie-state-handle",Py="osw-oie-last-initiated-login-url",Ny="osw-oie-resend-timestamp";var Ry=()=>{sessionStorage.removeItem(Ay),sessionStorage.removeItem(Py)},Iy=()=>{sessionStorage.removeItem(Ny)},Dy=()=>sessionStorage.getItem(Ny);const Ly="proceed",My="resetPassword";async function Uy(e){const t=e.getAuthClient(),{authParams:n}=e.toJSON({verbose:!0}),o=e.get("nonce")||(null==n?void 0:n.nonce),i={exchangeCodeForTokens:!1,...o&&{nonce:o}};if(e.get("proxyIdxResponse"))return(async e=>Promise.resolve({rawIdxState:e.get("proxyIdxResponse"),context:e.get("proxyIdxResponse"),neededToProceed:[]}))(e);if(e.get("overrideExistingStateToken")&&Ry(),e.get("otp"))return async function(e){const t=e.getAuthClient(),n=await t.idx.getSavedTransactionMeta();if(!n||!n.interactionHandle){const e={type:"array",value:[{message:"Enter the OTP in your original browser or device.",i18n:{key:"idx.enter.otp.in.original.tab"},class:"INFO"}]};return{neededToProceed:[],rawIdxState:{messages:e},context:{messages:e}}}const o=e.get("otp");return await t.idx.proceed({exchangeCodeForTokens:!1,otp:o})}(e);if(e.get("oauth2Enabled")){if(!await t.idx.getSavedTransactionMeta()){const e=t.idx.getFlow();if(e&&e===Ly)throw new Wr("Unable to proceed: saved transaction could not be loaded",e);return t.idx.start(i)}return t.idx.proceed(i)}const r=sessionStorage.getItem(Ay);if(r)try{var a,s;const n=await t.idx.start({...i,stateHandle:r});if((null===(a=n.context)||void 0===a||null===(s=a.messages)||void 0===s?void 0:s.value.length)>
20)throw new Error("saved stateToken is invalid");return e.set("stateToken",r),n}catch{return Ry(),Uy(e)}const l=e.get("stateToken");if(l)return t.idx.start({...i,stateHandle:l});throw new jr('Invalid OIDC configuration. Set "clientId" and "redirectUri" in the widget options.')}const jy=e=>!!e.messages,Fy=(e,t={},n=null)=>{if(o=t.rawIdxState,!Ss.isObject(o))return null;var o;const i=(e=>{const t={};return Ss.each(e,(e={},n)=>{"remediation"!==n&&("array"===e.type&&(t[n]={value:e.value}),"object"===e.type&&(t[n]=e.value))}),t})(t.rawIdxState),r=(e=>{const t=[],n=1===e.neededToProceed.length&&"skip"===e.neededToProceed[0].name;return(Ss.isEmpty(e.neededToProceed)||n)&&(e.context.success?t.push({name:e.context.success.name,href:e.context.success.href,value:[]}):e.context.messages?t.push({name:Jg.TERMINAL,value:[]}):e.context.deviceEnrollment&&t.push({name:Jg.DEVICE_ENROLLMENT_TERMINAL,value:[]})),{remediations:[...t,...e.neededToProceed]}})(t),a=Object.assign({},i,r,{idx:t});return jy(a)&&(e=>{const t=e.idx.context;return t.failure&&"failure-redirect"===t.failure.name})(a)&&((e,t)=>{const n=t.idx.context,o=e.get("oauth2Enabled"),i="always"===e.get("redirect");if(o&&!i)return;const r={name:Jg.FAILURE_REDIRECT,href:n.failure.href,value:[]};t.remediations=[r]})(e,a),((e,t)=>{const n=t.remediations;if(0===n.filter(e=>"identify"===e.name).length)return t;const o=e.get("idps");if(Array.isArray(o)){const i={};n.forEach(e=>{e.name===Jg.REDIRECT_IDP&&e.idp&&(i[e.idp.id]=!0)});const r=e.get("baseUrl"),a=t.idx.context.stateHandle,s=o.filter(e=>!i[e.id]).map(e=>{const t={id:e.id,name:e.text},n=`${r}/sso/idps/${e.id}?stateToken=${a}`;return e.className&&(t.className=e.className),{name:Jg.REDIRECT_IDP,type:e.type,idp:t,href:n}});t.remediations=n.concat(s)}})(e,a),(e=>{Array.isArray(e.remediations)&&e.remediations.forEach(t=>{var n,o;if(t.name===Jg.REDIRECT_IDP&&(null==t||null===(n=t.relatesTo)||void 0===n||null===(o=n.value)||void 0===o?void 0:o.key)===uy){const n=Object.prototype.hasOwnProperty.call(e,"currentAuthenticatorEnrollment");t.name=n?"challenge-authenticator":"enroll-authenticator"}t.name===Jg.REDIRECT_IDP&&"X509"===t.type&&(t.name=Jg.PIV_IDP)})})(a),jy(a)||((e,t,n)=>{if(Array.isArray(t.remediations)){const o=t.remediations.filter(e=>e.name===Jg.REDIRECT_IDP);if(1!==o.length||1!==t.remediations.length)return;if(e.get("oauth2Enabled")&&!n)return;const i={name:Jg.SUCCESS_REDIRECT,href:o[0].href,value:[]};t.remediations=[i]}})(e,a,n),a};var Vy={GMT:"UTC",WET:"WET",CET:"CET",MET:"CET",ECT:"CET",EET:"EET",MIT:"Pacific/Apia",HST:"Pacific/Honolulu",AST:"America/Anchorage",PST:"America/Los_Angeles",MST:"America/Denver",PNT:"America/Phoenix",CST:"America/Chicago",EST:"America/New_York",IET:"America/Indiana/Indianapolis",PRT:"America/Puerto_Rico",CNT:"America/St_Johns",AGT:"America/Argentina/Buenos_Aires",BET:"America/Sao_Paulo",ART:"Africa/Cairo",CAT:"Africa/Harare",EAT:"Africa/Addis_Ababa",NET:"Asia/Yerevan",PLT:"Asia/Karachi",IST:"Asia/Kolkata",BST:"Asia/Dhaka",VST:"Asia/Ho_Chi_Minh",CTT:"Asia/Shanghai",JST:"Asia/Tokyo",ACT:"Australia/Darwin",AET:"Australia/Sydney",SST:"Pacific/Guadalcanal",NST:"Pacific/Auckland"};const qy=e=>{const t={};return e.forEach(({value:e,label:n})=>{t[e]=n}),t},By={type:"select",wide:!0},$y=["text","radio","select"],Hy={string:(e,t,n,o,i)=>{const r={type:"text"};if(!0===e.secret&&Object.assign(r,(e=>({type:"password",params:{showPasswordToggle:e.get("showPasswordToggle")}}))(i)),"captcha"===e.hint&&Object.assign(r,{type:"captcha"}),"userProfile.timezone"===e.name&&(Object.assign(r,By),r.options=Object.assign({"":""},Vy)),Array.isArray(e.options)&&e.options[0]&&e.options[0].value){const t=e.options[0];"display"===t.label?((e,t)=>{var n;const o=null==t||null===(n=t.value)||void 0===n?void 0:n.value;e.type=o.inputType,"radio"===o.inputType?e.options=o.options:"select"===o.inputType&&(e.wide=!0,"country-code"===o.format?e.options=Object.assign({"":""},kh()):e.options=Object.assign({"":""},qy(o.options)))})(r,t):(a=e.name).indexOf("methodType")>=0||a.indexOf("channel")>=0?((e,t)=>{e.type="radio",t.value=t.options[0].value})(r,e):(r.type="select",r.wide=!0,r.options=qy(e.options))}var a;return!1===e.required&&$y.includes(r.type)&&(r.sublabel=vp("oie.form.field.optional","login")),r},boolean:(e,t)=>{var n,o,i,r,a,s;if([Jg.CONSENT_ENDUSER,Jg.CONSENT_ADMIN].includes(t.name)){const n=t.scopes.map(({name:e,label:t,desc:n})=>({name:e,displayName:t,description:n}));return{type:t.name,scopes:n,options:e.options}}return Array.isArray(e.options)&&"radio"===(null===(n=e.options[0])||void 0===n||null===(o=n.value)||void 0===o||null===(i=o.value)||void 0===i?void 0:i.inputType)?(({label:e,required:t,options:n})=>({displayName:e,type:"radio",required:t,options:n[0].value.value.options,sublabel:t?null:vp("oie.form.field.optional","login")}))(e):Array.isArray(e.options)&&"checkbox"===(null===(r=e.options[0])||void 0===r||null===(a=r.value)||void 0===a||null===(s=a.value)||void 0===s?void 0:s.inputType)?(({label:e,type:t})=>({placeholder:e,label:!1,modelType:t,type:"checkbox",required:!0,value:!1}))(e):(({label:e,type:t,required:n})=>({placeholder:e,label:!1,modelType:t,type:"checkbox",required:n||!1}))(e)},object:function(e,t,n,o,i){const r={};return"authenticator"!==e.name||"select-authenticator-authenticate"!==t.name&&"select-authenticator-unlock-account"!==t.name?"authenticator"===e.name&&"select-authenticator-enroll"===t.name?Object.assign(r,function({options:e}){return{type:"authenticatorEnrollSelect",options:Sy(e)}}(e)):Array.isArray(e.options)&&(r.optionsUiSchemas=e.options.map(t=>o(n,{value:[{name:e.name,value:t.value}]},i)),r.options=e.options.map((e,t)=>({label:e.label,value:t})),r.type="radio",r.value="0",r.name=`sub_schema_local_${e.name}`):Object.assign(r,function({options:e}){return{type:"authenticatorVerifySelect",options:Sy(e)}}(e)),r}},zy=(e,t,n)=>Ss.chain(t.value||[]).filter(e=>!1!==e.visible).map(e=>{var t;let n;if(e.form?n=e.form:null!==(t=e.value)&&void 0!==t&&t.form&&(n=e.value.form),n){const t=e.name;return n.value.map(e=>Object.assign({},e,{name:t+"."+e.name}))}return e}
2).flatten().value().map(o=>{const i={"label-top":!0,multirowError:!0,"data-se":`o-form-fieldset-${o.name}`},r=o.type||"string",a=(0,Hy[r])(o,t,e,zy,n);return Object.assign({},o,i,a)}),Wy=(e,t)=>(t&&(t.remediations=t.remediations.map(n=>(n.uiSchema=zy(t,n,e),n))),t),Ky="Security Key or Biometric",Gy="Passkeys",Yy={ENROLL_TITLE:{DEFAULT:"oie.enroll.webauthn.title",PASSKEYS:"oie.enroll.webauthn.passkeysRebrand.passkeys.title",CUSTOM:"oie.enroll.webauthn.passkeysRebrand.custom.title"},VERIFY_TITLE:{DEFAULT:"oie.verify.webauth.title",PASSKEYS:"oie.verify.webauth.passkeysRebrand.passkeys.title",CUSTOM:"oie.verify.webauth.passkeysRebrand.custom.title"},DESCRIPTION:{DEFAULT:"oie.webauthn.description",PASSKEYS:"oie.webauthn.passkeysRebrand.passkeys.description",CUSTOM:"oie.webauthn.description"},SELECT_ENROLL_LABEL:{DEFAULT:"oie.select.authenticator.enroll.webauthn.label",PASSKEYS:"oie.select.authenticator.enroll.webauthn.passkeysRebrand.passkeys.label",CUSTOM:"oie.select.authenticator.enroll.webauthn.passkeysRebrand.custom.label"},SELECT_VERIFY_LABEL:{DEFAULT:"oie.select.authenticator.verify.webauthn.label",PASSKEYS:"oie.select.authenticator.verify.webauthn.passkeysRebrand.passkeys.label",CUSTOM:"oie.select.authenticator.verify.webauthn.passkeysRebrand.custom.label"},LABEL:{DEFAULT:"oie.webauthn.label",PASSKEYS:"oie.webauthn.passkeysRebrand.passkeys.label",CUSTOM:"oie.webauthn.label"},ENROLL_INSTRUCTIONS:{DEFAULT:"oie.enroll.webauthn.instructions",PASSKEYS:"oie.enroll.webauthn.passkeysRebrand.instructions",CUSTOM:"oie.enroll.webauthn.passkeysRebrand.instructions"},VERIFY_INSTRUCTIONS:{DEFAULT:"oie.verify.webauthn.instructions",PASSKEYS:"oie.verify.webauthn.passkeysRebrand.instructions",CUSTOM:"oie.verify.webauthn.passkeysRebrand.instructions"}},Jy=e=>Boolean(e&&e!==Ky&&e!==Gy),Qy=(e,t)=>"string"==typeof e?e:e&&"object"==typeof e?t===Gy&&e.PASSKEYS?e.PASSKEYS:Jy(t)&&e.CUSTOM?e.CUSTOM:e.DEFAULT||null:null,Xy=e=>Jy(e)&&e?[e]:[],{getPasswordComplexityDescriptionForHtmlList:Zy}=Qp,ev=(e,t=!1)=>{var n,o;const i=null==e||null===(n=e.relatesTo)||void 0===n||null===(o=n.value)||void 0===o?void 0:o.displayName,r=Xy(i),a=Qy(t?Yy.VERIFY_TITLE:Yy.ENROLL_TITLE,i);return ra(a,"login",r)},tv=e=>{var t,n;return(null==e||null===(t=e.relatesTo)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.description)||null},nv=function(e){if(e.authenticatorKey){var t,n;const o=null!==(t=e.value)&&void 0!==t&&t.methodType?"-"+(null===(n=e.value)||void 0===n?void 0:n.methodType):"";return e.authenticatorKey+o}return""},ov=function(e,t){var n,o,i,r,a,s,l,c,u,p;const d=e.authenticatorKey,h=Rr.isString(d)?d.toLowerCase():"";let f={},m=t?null===(n=e.relatesTo)||void 0===n?void 0:n.nickname:void 0;switch(h){case ey:Object.assign(f,{description:t?(null===(o=e.relatesTo)||void 0===o||null===(i=o.profile)||void 0===i?void 0:i.email)||"":ra("oie.email.authenticator.description","login"),iconClassName:"mfa-okta-email",noTranslateClassName:t?"no-translate":"",buttonDataSeAttr:nv(e),ariaLabel:t?iv(null===(r=e.relatesTo)||void 0===r||null===(a=r.profile)||void 0===a?void 0:a.email):ra("oie.select.authenticator.enroll.email.label","login")});break;case ty:Object.assign(f,{description:t?"":ra("oie.password.authenticator.description","login"),iconClassName:"mfa-okta-password",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.password.label":"oie.select.authenticator.enroll.password.label","login")});break;case ny:Object.assign(f,{nickname:m,description:t?null===(s=e.relatesTo)||void 0===s||null===(l=s.profile)||void 0===l?void 0:l.phoneNumber:ra("oie.phone.authenticator.description","login"),iconClassName:"mfa-okta-phone",noTranslateClassName:t?"no-translate":"",buttonDataSeAttr:nv(e),ariaLabel:t?(S=null===(c=e.relatesTo)||void 0===c||null===(u=c.profile)||void 0===u?void 0:u.phoneNumber,S?ra("oie.select.authenticator.verify.phone.with.phone.label","login",[S]):ra("oie.select.authenticator.verify.phone.label","login")):ra("oie.select.authenticator.enroll.phone.label","login")});break;case iy:Object.assign(f,{description:t?"":ra("oie.security.question.authenticator.de
2scription","login"),iconClassName:"mfa-okta-security-question",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.security.question.label":"oie.select.authenticator.enroll.security.question.label","login")});break;case oy:{var g;const n=null===(g=e.relatesTo)||void 0===g?void 0:g.displayName,o=Xy(n),i=((e,t,n)=>{if(n)return"";if(Jy(t)){var o;const t=null===(o=e.relatesTo)||void 0===o?void 0:o.description;if(t)return t;const n=Qy(Yy.DESCRIPTION,Ky);return ra(n,"login")}const i=Qy(Yy.DESCRIPTION,t);return ra(i,"login",[])})(e,n,t),r=n===Gy?"mfa-passkeys":"mfa-webauthn",a=Qy(t?Yy.SELECT_VERIFY_LABEL:Yy.SELECT_ENROLL_LABEL,n);Object.assign(f,{description:i,iconClassName:r,buttonDataSeAttr:nv(e),ariaLabel:ra(a,"login",o)});break}case ry:Object.assign(f,{description:ra(t?"oie.okta_verify.label":"oie.okta_verify.authenticator.description","login"),iconClassName:"mfa-okta-verify",buttonDataSeAttr:nv(e),ariaLabel:rv(t,null==e||null===(p=e.value)||void 0===p?void 0:p.methodType)});break;case ay:Object.assign(f,{description:t?"":ra("oie.google_authenticator.authenticator.description","login"),iconClassName:"mfa-google-auth",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case sy:{var y;const n=(null===(y=e.relatesTo)||void 0===y?void 0:y.displayName)||ra("oie.on_prem.authenticator.default.vendorName","login");Object.assign(f,{description:t?"":ra("oie.on_prem.authenticator.description","login",[n]),iconClassName:"mfa-onprem",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break}case ly:Object.assign(f,{description:t?"":ra("oie.rsa.authenticator.description","login"),iconClassName:"mfa-rsa",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case cy:Object.assign(f,{description:t?"":ra("oie.duo.authenticator.description","login"),iconClassName:"mfa-duo",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case uy:{var v,b;const n=null===(v=e.relatesTo)||void 0===v?void 0:v.displayName;Object.assign(f,{description:t?"":ra("oie.idp.authenticator.description","login",[n]),iconClassName:"mfa-custom-factor",buttonDataSeAttr:nv(e),logoUri:(null==e||null===(b=e.relatesTo)||void 0===b?void 0:b.logoUri)||"",ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break}case py:Object.assign(f,{description:t?"":ra("oie.custom_otp.description","login"),iconClassName:"mfa-hotp",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case dy:{var w;const n=null===(w=e.relatesTo)||void 0===w?void 0:w.displayName;Object.assign(f,{description:t?"":ra("oie.symantecVip.authenticator.description","login",[n]),iconClassName:"mfa-symantec",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break}case hy:Object.assign(f,{description:t?"":ra("oie.yubikey.authenticator.description","login"),iconClassName:"mfa-yubikey",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case fy:var _,k,x;Object.assign(f,{description:t?null==e||null===(_=e.relatesTo)||void 0===_?void 0:_.displayName:ra("oie.custom.app.authenticator.description","login",[e.label]),noTranslateClassName:t?"no-translate":"",buttonDataSeAttr:nv(e),iconClassName:"mfa-custom-app-logo",logoUri:(null==e||null===(k=e.relatesTo)||void 0===k?void 0:k.logoUri)||"",ariaLabel:t?ra("oie.select.authenticator.verify.named.authenticator.label","login",[null==e||null===(x=e.relatesTo)||void 0===x?void 0:x.displayName]):ra("oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case"smart_card_idp":Object.assign(f,{description:t?"":ra("oie.smartcard.authenticator.de
2scription","login"),iconClassName:"mfa-smartcard",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])});break;case"tac":Object.assign(f,{description:t?"":ra("oie.tac.authenticator.description","login"),iconClassName:"mfa-tac",buttonDataSeAttr:nv(e),ariaLabel:ra(t?"oie.select.authenticator.verify.named.authenticator.label":"oie.select.authenticator.enroll.named.authenticator.label","login",[e.label])})}var S;return f};function iv(e){return e?ra("oie.select.authenticator.verify.email.with.email.label","login",[e]):ra("oie.select.authenticator.verify.email.label","login")}function rv(e,t){if(!e)return ra("oie.select.authenticator.enroll.okta_verify.authenticator.label","login");const n=ra("oie.select.authenticator.verify.okta_verify.label","login");return void 0===t?n:{push:ra("oie.select.authenticator.okta_verify.push.label","login"),totp:ra("oie.select.authenticator.okta_verify.totp.label","login"),signed_nonce:ra("oie.select.authenticator.okta_verify.signed_nonce.label","login")}[t]||n}function av(e){return ov(e,!0)}function sv(e){var t,n;return null===(t=e.relatesTo)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.displayName}const lv="authfactor.webauthn.error",cv="passkeys.authfactor.webauthn.error",uv="oie.webauthn.label",pv=["enroll-authenticator.security_question.credentials.questionKey.","challenge-authenticator.security_question.credentials.questionKey."],dv={"identify.identifier":"primaryauth.username.placeholder","select-authenticator-unlock-account.identifier":"primaryauth.username.placeholder","unlock-account.identifier":"primaryauth.username.placeholder","identify.credentials.passcode":"primaryauth.password.placeholder","identify.rememberMe":"oie.remember","enroll-profile.userProfile.rememberMe":"oie.remember","identify-recovery.identifier":"password.forgot.email.or.username.placeholder","select-authenticator-enroll.authenticator.duo":"factor.duo","select-authenticator-enroll.authenticator.google_otp":"oie.google_authenticator.label","select-authenticator-enroll.authenticator.okta_email":"oie.email.label","select-authenticator-enroll.authenticator.okta_password":"oie.password.label","select-authenticator-enroll.authenticator.okta_verify":"oie.okta_verify.label","select-authenticator-enroll.authenticator.phone_number":"oie.phone.label","select-authenticator-enroll.authenticator.rsa_token":"factor.totpHard.rsaSecurId","select-authenticator-enroll.authenticator.security_question":"oie.security.question.label","select-authenticator-enroll.authenticator.symantec_vip":"factor.totpHard.symantecVip","select-authenticator-enroll.authenticator.webauthn":uv,"select-authenticator-enroll.authenticator.yubikey_token":"oie.yubikey.label","select-authenticator-authenticate.authenticator.duo":"factor.duo","select-authenticator-authenticate.authenticator.google_otp":"oie.google_authenticator.label","select-authenticator-authenticate.authenticator.okta_email":"oie.email.label","select-authenticator-authenticate.authenticator.okta_password":"oie.password.label","select-authenticator-authenticate.authenticator.okta_verify.push":"oie.okta_verify.push.title","select-authenticator-authenticate.authenticator.okta_verify.signed_nonce":"oie.okta_verify.signed_nonce.label","select-authenticator-authenticate.authenticator.okta_verify.totp":"oie.okta_verify.totp.title","select-authenticator-authenticate.authenticator.phone_number":"oie.phone.label","select-authenticator-authenticate.authenticator.rsa_token":"factor.totpHard.rsaSecurId","select-authenticator-authenticate.authenticator.security_question":"oie.security.question.label","select-authenticator-authenticate.authenticator.symantec_vip":"factor.totpHard.symantecVip","select-authenticator-authenticate.authenticator.webauthn":uv,"select-authenticator-authenticate.authenticator.yubikey_token":"oie.yubikey.label","select-authenticator-authenticate.authenticator.custom_app":"oie.custom.app.authenticator.title","select-authenticator-authenticate.authenticator.tac":"oie.tac.label","select-authenticator-unlock-account.authenticator.okta_email":"oie.email.label","select-authenticator-unlock-account.authenticator.phone_number":"oie.ph
2one.label","select-authenticator-unlock-account.authenticator.okta_verify.push":"oie.okta_verify.push.title","authenticator-verification-data.okta_verify.authenticator.methodType.signed_nonce":"oie.okta_verify.signed_nonce.label","authenticator-verification-data.okta_verify.authenticator.methodType.push":"oie.okta_verify.push.title","authenticator-verification-data.okta_verify.authenticator.methodType.totp":"oie.okta_verify.totp.title","authenticator-enrollment-data.phone_number.authenticator.phoneNumber":"mfa.phoneNumber.placeholder","authenticator-enrollment-data.phone_number.authenticator.methodType.sms":"oie.phone.enroll.sms.label","authenticator-enrollment-data.phone_number.authenticator.methodType.voice":"oie.phone.enroll.voice.label","enroll-authenticator.okta_password.credentials.passcode":"oie.password.passwordLabel","enroll-authenticator.okta_email.credentials.passcode":"mfa.challenge.enterCode.placeholder","enroll-authenticator.phone_number.credentials.passcode":"mfa.challenge.enterCode.placeholder","enroll-authenticator.security_question.sub_schema_local_credentials.0":"oie.security.question.questionKey.label","enroll-authenticator.security_question.sub_schema_local_credentials.1":"oie.security.question.createQuestion.label","enroll-authenticator.security_question.credentials.answer":"mfa.challenge.answer.placeholder","enroll-authenticator.security_question.credentials.question":"oie.security.question.createQuestion.label","enroll-authenticator.security_question.credentials.questionKey":"oie.security.question.questionKey.label","enroll-authenticator.google_otp.credentials.passcode":"oie.google_authenticator.otp.enterCodeText","enroll-authenticator.onprem_mfa.credentials.clientData":"enroll.onprem.username.placeholder","enroll-authenticator.onprem_mfa.credentials.passcode":"enroll.onprem.passcode.placeholder","enroll-authenticator.rsa_token.credentials.clientData":"enroll.onprem.username.placeholder","enroll-authenticator.rsa_token.credentials.passcode":"enroll.onprem.passcode.placeholder","enroll-authenticator.symantec_vip.credentials.credentialId":"enroll.symantecVip.credentialId.placeholder","enroll-authenticator.symantec_vip.credentials.passcode":"enroll.symantecVip.passcode1.placeholder","enroll-authenticator.symantec_vip.credentials.nextPasscode":"enroll.symantecVip.passcode2.placeholder","enroll-authenticator.yubikey_token.credentials.passcode":"oie.yubikey.passcode.label","enrollment-channel-data.email":"oie.enroll.okta_verify.channel.email.label","enrollment-channel-data.phoneNumber":"mfa.phoneNumber.placeholder","select-enrollment-channel.authenticator.channel.qrcode":"oie.enroll.okta_verify.select.channel.qrcode.label","select-enrollment-channel.authenticator.channel.email":"oie.enroll.okta_verify.select.channel.email.label","select-enrollment-channel.authenticator.channel.sms":"oie.enroll.okta_verify.select.channel.sms.label","challenge-authenticator.okta_email.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.okta_password.credentials.passcode":"mfa.challenge.password.placeholder","challenge-authenticator.phone_number.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.security_question.credentials.answer":"mfa.challenge.answer.placeholder","challenge-authenticator.okta_verify.credentials.totp":"oie.okta_verify.totp.enterCodeText","challenge-authenticator.google_otp.credentials.passcode":"oie.google_authenticator.otp.enterCodeText","challenge-authenticator.onprem_mfa.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.rsa_token.credentials.passcode":"mfa.challenge.enterCode.placeholder","challenge-authenticator.custom_otp.credentials.passcode":"oie.custom_otp.verify.passcode.label","challenge-authenticator.symantec_vip.credentials.passcode":"oie.symantecVip.verify.passcode.label","challenge-authenticator.tac.credentials.passcode":"oie.custom_otp.verify.passcode.label","challenge-authenticator.yubikey_token.credentials.passcode":"oie.yubikey.passcode.label","challenge-authenticator.credentials.passcode":"oie.password.label","reset-authenticator.okta_password.credentials.passcode":"oie.password.newPasswordLabel","reset-authenticator.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","reset-authenticator.okta_password.credentials.revokeSessions":"password.reset.revokeSessions","reenroll-authenticator.okta_password.credentials.passcode":"oie.password.newPasswordLabel","reenroll-authenticator.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","reenroll-authenticator.okta_password.credentials.revokeSessions":"password.reset.revokeSessions","reenroll-authenticator-warning.okta_password.credentials.passcode":"oie.password.newPasswordLabel","reenroll-authenticator-warning.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","reenroll-authenticator-warning.okta_password.credentials.revokeSessions":"password.reset.revokeSessions","enroll-authenticator.okta_password.confirmPassword":"oie.password.confirmPasswordLabel","enroll-authenticator.okta_password.credentials.revokeSessions":"password.reset.revokeSessions",incorrectPassword:"oie.password.incorrect.message","profile-update.userProfile.secondEmail":"oie.user.profile.secondary.email","user-code.userCode":"device.code.activate.label","api.authn.poll.error.push_rejected":"oktaverify.rejected","oie.authenticator.duo.method.duo.verification_timeout":"oie.authenticator.duo.error","oie.authenticator.duo.method.duo.verification_failed":"oie.authenticator.duo.error","idx.email.verification.required":"registration.complete.confirm.text",tooManyRequests:"oie.tooManyRequests","api.users.auth.error.POST_PASSWORD_UPDATE_AUTH_FAILURE":"oie.post.password.update.auth.failure.error","security.access_de
2nied":"errors.E0000006",E0000009:"errors.E0000009",E0000020:"errors.E0000020","api.factors.error.sms.invalid_phone":"oie.phone.invalid","app.ldap.password.reset.failed":"errors.E0000017","oie.selfservice.unlock_user.challenge.failed.permissions":"errors.E0000006","core.auth.factor.signedNonce.error.invalidEnrollment":"core.auth.factor.signedNonce.error","core.auth.factor.signedNonce.error.invalidFactor":"core.auth.factor.signedNonce.error","core.auth.factor.signedNonce.error.deletedDevice":"core.auth.factor.signedNonce.error","core.auth.factor.signedNonce.error.invalidDeviceStatus":"core.auth.factor.signedNonce.error.invalidDevice","challenge-poll.custom_app.autoChallenge":"autoPush","challenge-poll.okta_verify.autoChallenge":"autoPush","authenticator-verification-data.authenticator.autoChallenge":"autoPush","authenticator-verification-data.okta_verify.authenticator.autoChallenge":"autoPush","authenticator-verification-data.custom_app.authenticator.autoChallenge":"autoPush","enroll-profile.userProfile.login":"oie.user.profile.login","enroll-profile.userProfile.lastName":"oie.user.profile.lastname","enroll-profile.userProfile.firstName":"oie.user.profile.firstname","enroll-profile.userProfile.email":"oie.user.profile.primary.email","enroll-profile.userProfile.secondEmail":"oie.user.profile.secondary.email","enroll-profile.userProfile.middleName":"oie.user.profile.middleName","enroll-profile.userProfile.honorificPrefix":"oie.user.profile.honorificPrefix","enroll-profile.userProfile.honorificSuffix":"oie.user.profile.honorificSuffix","enroll-profile.userProfile.title":"oie.user.profile.title","enroll-profile.userProfile.displayName":"oie.user.profile.displayName","enroll-profile.userProfile.nickName":"oie.user.profile.nickName","enroll-profile.userProfile.profileUrl":"oie.user.profile.profileUrl","enroll-profile.userProfile.mobilePhone":"oie.user.profile.mobilePhone","enroll-profile.userProfile.primaryPhone":"oie.user.profile.primaryPhone","enroll-profile.userProfile.streetAddress":"oie.user.profile.streetAddress","enroll-profile.userProfile.city":"oie.user.profile.city","enroll-profile.userProfile.state":"oie.user.profile.state","enroll-profile.userProfile.zipCode":"oie.user.profile.zipCode","enroll-profile.userProfile.postalCode":"oie.user.profile.postalCode","enroll-profile.userProfile.countryCode":"oie.user.profile.countryCode","enroll-profile.userProfile.postalAddress":"oie.user.profile.postalAddress","enroll-profile.userProfile.preferredLanguage":"oie.user.profile.preferredLanguage","enroll-profile.userProfile.locale":"oie.user.profile.locale","enroll-profile.userProfile.timezone":"oie.user.profile.timezone","enroll-profile.userProfile.userType":"oie.user.profile.userType","enroll-profile.userProfile.employeeNumber":"oie.user.profile.employeeNumber","enroll-profile.userProfile.costCenter":"oie.user.profile.costCenter","enroll-profile.userProfile.organization":"oie.user.profile.organization","enroll-profile.userProfile.division":"oie.user.profile.division","enroll-profile.userProfile.department":"oie.user.profile.department","enroll-profile.userProfile.managerId":"oie.user.profile.managerId","enroll-profile.userProfile.manager":"oie.user.profile.manager","enroll-profile.credentials.passcode":"oie.password.label"},hv={[Jg.ENROLL_AUTHENTICATOR]:{[sy]:{getParam:sv},[ly]:{getParam:sv}}},fv={"registration.error.invalidLoginEmail":{Email:"Email"},"registration.error.doesNotMatchPattern":{Email:"Email"},"registration.error.notUniqueWithinOrg":{Email:"Email"}},mv=(e,t)=>{const n=[],o=e.name;if(t===oy){var i,r;const t=null==e||null===(i=e.relatesTo)||void 0===i||null===(r=i.value)||void 0===r?void 0:r.displayName;if(Jy(t))return n.push(t),n}if(hv[o]&&hv[o][t]){const i=hv[o][t].getParam(e);n.push(i)}return n},gv=e=>!!ia.login[e],yv=(e,t,n=[],o=null)=>{const i=((e,t=null)=>{let n;if(pv.forEach(t=>{if(0===e.indexOf(t)){const o=e.replace(t,"");n=`security.${o}`}}),"select-authenticator-enroll.authenticator.webauthn"===e||"select-authenticator-authenticate.authenticator.webauthn"===e){var o,i;const e=null==t||null===(o=t.relatesTo)||void 0===o||null===(i=o.value)||void 0===i?void 0:i.displayName;if(Jy(e))return null;n=Qy(Yy.LABEL,e)}else dv[e]&&(n=dv[e]);return n&&!ia.login[n]&&(Zr(`expect i18n key ${n} for ${e} but not found in 'login' bundle.`),n=null),n})(e,o);return i?ra(i,"login",n):(Zr(`Avoid rendering unlocalized text sent from the API: ${t}`),t)},vv=e=>{var t;if(null!==(t=e.i18n)&&void 0!==t&&t.key){var n;let t=e.i18n.key,r=e.i18n.params||[];var o;if(1===r.length&&""===r[0]&&(r=[]),dv[null===(n=e.i18n)||void 0===n?void 0:n.key])t=dv[null===(o=e.i18n)||void 0===o?void 0:o.key];else if(fv[t]){var i;const n=null===(i=e.i18n.params)||void 0===i?void 0:i[0];t=((e,t)=>{let n=e;return fv[n][t]?n+=`.${t}`:n+=".custom",n})(t,n),r=t.endsWith("custom")?[n]:[]}if(ia.login[t])return Xr(`Override messages using i18n key ${t}`),ra(t,"login",r);
2if((e=>e.startsWith(lv))(t))return ra(lv,"login");if((e=>e.startsWith(cv))(t))return ra(cv,"login");if(t.startsWith("device.assurance.custom.remediation."))return e.message}return Zr(`Avoid rendering unlocalized text sent from the API: ${e.message}`),e.message},bv=e=>{if(e.name){const t=`oie.browser.error.${e.name}`;if(ia.login[t])return Xr(`Override messages using i18n key ${t}`),ra(t,"login")}return e.message},wv=e=>{var t;return(null==e||null===(t=e.i18n)||void 0===t?void 0:t.key)||""},_v=(e,t)=>{var n;const o=null===(n=t.get("languageCode"))||void 0===n?void 0:n.toLowerCase(),i=t.get("i18n");return null!=i&&Object.entries(i).some(([t,n])=>t.toLowerCase()===o&&!!n[e])},kv=(e,t)=>{var n,o;if(!1===t.mutable&&t.name.indexOf("questionKey")<0)return;Xr("i18n label transformer"),Xr("\t remediationName: ",e.name),Xr("\t uiSchema: ",JSON.stringify(t));const i=null===(n=e.relatesTo)||void 0===n||null===(o=n.value)||void 0===o?void 0:o.key,r=i?`.${e.relatesTo.value.key}`:"";let a=`${e.name}${r}.${t.name}`;if("text"===t.type&&t.name.indexOf("questionKey")>=0&&"custom"!==t.value&&(a=`${a}.${t.value}`),"checkbox"===t.type&&t.placeholder&&(Xr("\t 1: ",a),t.placeholder=yv(a,t.placeholder)),t.label){Xr("\t 2: ",a);const n=mv(e,i);t.label=t.customLabel?t.label:yv(a,t.label,n,e)}sl.isPlainObject(t.options)&&(t.options=Ss.mapObject(t.options,(e,t)=>{const n=`${a}.${t}`;return Xr("\t 3: ",n),yv(n,e)})),Array.isArray(t.options)&&t.options.forEach(t=>{if(!t.label)return;let n;if(t.authenticatorKey){var o;n=`${a}.${t.authenticatorKey}`;const e=null===(o=t.value)||void 0===o?void 0:o.methodType;t.authenticatorKey===ry&&e&&(n=`${n}.${e}`)}else n="string"==typeof t.value||"number"==typeof t.value?`${a}.${t.value}`:a;Xr("\t 4: ",n);const i=t.relatesTo?{...e,relatesTo:{value:t.relatesTo}}:e,r=mv(i,t.authenticatorKey);t.label=yv(n,t.label,r,i)}),Array.isArray(t.optionsUiSchemas)&&t.optionsUiSchemas.forEach(t=>{t.forEach(t=>kv(e,t))})};var xv=e=>{var t;return Array.isArray(e.remediations)&&e.remediations.filter(e=>Array.isArray(e.uiSchema)&&e.uiSchema.length).forEach(e=>{e.uiSchema.forEach(t=>kv(e,t))}),Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&e.messages.value.forEach(e=>{e.message=vv(e)}),e};function Sv(e,t,n){return Ss.compose(xv,Wy.bind({},e),Fy.bind({},e))(t,n)}async function Tv(e,t){const n=e.settings,o=e.get("idx");var i,r;if(n.get("oauth2Enabled")){if(t.interactionCode){Ry();const o=await async function(e,t){const{interactionCode:n}=t,o=e.getAuthClient(),i=await o.idx.getSavedTransactionMeta(),r=o.options.state||(null==i?void 0:i.state),a="remediation"===e.get("mode");if(a&&o.idx.clearTransactionMeta(),"always"===e.get("redirect")){const t=e.get("redirectUri");if(!t)throw new jr('"redirectUri" is required');const o=A({interaction_code:n,state:r});return void window.location.assign(t+o)}if(a)return void e.callGlobalSuccess(Mr.SUCCESS,{interaction_code:n,state:r});if(!i)throw new jr("Could not load transaction data from storage");const{codeVerifier:s}=i;return o.token.exchangeCodeForTokens({codeVerifier:s,interactionCode:n}).then(({tokens:t})=>{e.callGlobalSuccess(Mr.SUCCESS,{tokens:t})}).catch(t=>{const n=Td(t);if(n instanceof bd&&n.is("terminal"))throw n;e.callGlobalError(t)}).finally(()=>{o.idx.clearTransactionMeta()})}(n,t);return e.unset("currentFormName",{silent:!0}),o}}else o&&(r=null==t||null===(i=t.context)||void 0===i?void 0:i.stateHandle,sessionStorage.setItem(Ay,r),sessionStorage.setItem(Py,window.location.href)),e.get("currentFormName")===Jg.CANCEL_TRANSACTION&&Ry();const a=Sv(n,t,o);await e.setIonResponse(a)}function Ev(e){const t=e;t.details=t.details||{};const{details:n}=t;if(n.rawIdxState=n.rawIdxState||{},n.context=n.context||{},n.neededToProceed=n.neededToProceed||[],!n.rawIdxState.messages){const e={type:"array",value:[{message:vp("oform.error.unexpected","login"),class:"ERROR",i18n:void 0}]};n.rawIdxState.messages=e,n.context.messages=e}return t}function Cv(e){return"string"==typeof e&&(e=new Error(e)),function(e){return"invalid_request"===(null==e?void 0:e.error)&&"The recovery token is invalid"===e.error_description}(e)?function(e){const t=Ev(e),{details:n}=t,o={type:"array",value:[{message:e.error_description,i18n:{key:"oie.invalid.recovery.token"},class:"ERROR"}]};return n.rawIdxState.messages=o,n.context.messages=o,t}(e):function(e){return"invalid_request"===(null==e?void 0:e.error)&&"The activation token is invali
2d"===e.error_description}(e)?function(e){const t=Ev(e),{details:n}=t,o={type:"array",value:[{message:e.error_description,i18n:{key:"idx.missing.activation.token"},class:"ERROR"}]};return n.rawIdxState.messages=o,n.context.messages=o,t}(e):function(e){return"access_denied"===(null==e?void 0:e.error)&&e.error_description}(e)?function(e){const t=Ev(e),{details:n}=t,o={type:"array",value:[{message:e.error_description,i18n:{key:"oie.feature.disabled"},class:"ERROR"}]};return n.rawIdxState.messages=o,n.context.messages=o,e}(e):function(e){return(null==e?void 0:e.error)&&e.error_description}(e)?function(e){const t=Ev(e),{details:n}=t,o={type:"array",value:[{message:vp("oie.configuration.error","login"),class:"ERROR",i18n:void 0}]};return n.rawIdxState.messages=o,n.context.messages=o,e}(e):e=Ev(e)}const Ov=(e,t=[])=>Rr.chain(t).filter(e=>{var t;return Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&e.messages.value.length}).map(t=>({property:e?`${e}.${t.name}`:t.name,errorSummary:t.messages.value.map(vv),errorKey:t.messages.value.map(wv)})).value(),Av=e=>{let t=[];if(!e.remediation||!Array.isArray(e.remediation.value)||0===e.remediation.value.length)return t;let n=e.remediation.value[0].value;return Array.isArray(n)?(t.push(Ov(null,n)),Rr.each(n,e=>{var n;const o=e.name;Array.isArray(null===(n=e.form)||void 0===n?void 0:n.value)&&t.push(Ov(o,e.form.value)),Array.isArray(e.options)&&Rr.each(e.options,e=>{var n,i;Array.isArray(null===(n=e.value)||void 0===n||null===(i=n.form)||void 0===i?void 0:i.value)&&t.push(Ov(o,e.value.form.value))})}),((e,t)=>{if(!Array.isArray(e))return[];if(!Rr.isFunction(t)||1===e.length)return e;const n=[];for(let o=0;o<e.length;o++){let i=!1;for(let n=o+1;n<e.length;n++)if(t(e[o],e[n])){i=!0;break}i||n.push(e[o])}return n})(Rr.flatten(t),Rr.isEqual)):t},Pv=e=>{var t;let n=[];return Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&(n=e.messages.value.map(vv)),n.join(". ")},Nv=e=>{var t;let n=[];return Array.isArray(null===(t=e.messages)||void 0===t?void 0:t.value)&&(n=e.messages.value.map(wv)),n};var Rv=(e={})=>e.version,Iv=e=>{var t,n,o,i;const r=null==e||null===(t=e.context)||void 0===t||null===(n=t.messages)||void 0===n||null===(o=n.value[0])||void 0===o||null===(i=o.i18n)||void 0===i?void 0:i.key;return r&&"idx.session.expired"===r};class Dv extends Sp{constructor(e){super(e),this.Events=Os.Events,this.hasControllerRendered=!1,this.settings=void 0,this.appState=void 0,this.hooks=void 0,this.header=void 0,e.globalSuccessFn||(e.globalSuccessFn=function(){}),e.globalErrorFn||(e.globalErrorFn=function(e){ea(e)}),this.settings=new Sg(Ss.omit(e,"el","hooks"),{parse:!0}),e.el||this.settings.callGlobalError(new jr(vp("error.required.el"))),sl("body > div").on("click",function(){}),this.hooks=e.hooks,this.appState=new Oy({},{settings:this.settings,hooks:this.hooks});const t=new Tg({appState:this.appState});sl(e.el).append(t.render().$el),this.el=`#${Mr.WIDGET_CONTAINER_ID}`,this.header=new Lg({el:this.el,appState:this.appState,settings:this.settings}),this.hide(),this.listenTo(this.appState,"change:deviceFingerprint",this.updateDeviceFingerprint),this.listenTo(this.appState,"restartLoginFlow",this.restartLoginFlow)}updateDeviceFingerprint(){const e=this.settings.getAuthClient(),t=this.appState.get("deviceFingerprint");t&&e.http.setRequestHeader("X-Device-Fingerprint",t)}async handleIdxResponseFailure(e={error:"unknown",details:void 0}){e=Cv(e),await Tv(this.appState,e.details)}async handleError(e={error:"unknown",details:void 0}){const t=Cv({...e});await Tv(this.appState,t.details)}async render(e,t={}){let n;sessionStorage.getItem(Py)!==window.location.href&&Ry(),this.header.rendered()||(this.el=this.header.render().getContentEl()),ia.isLoaded(this.settings.get("languageCode"))||await bg(this.appState,this.settings);try{let e=await Uy(this.settings);e.error?await this.handleIdxResponseFailure(e.error):(this.settings.get("flow")&&!this.hasControllerRendered&&(e=await async function(e,t){const n=t.getAuthClient().idx.getFlow();return await async function(e,t="default"){switch(t){case"default":case Ly:case"login":case"signup":case My:return e;case"unlockAccount":return await async function(e,t,n){if(!e.neededToProceed.find(e=>e.name===t))return Zr("Expected remediation not found, Org may be misconfigured for this flow"),e;try{return await e.proceed(t)}catch(t){if("string"==typeof t&&t.startsWith("Unknown remediation choice"))return Zr(`flow [${n}
2] not valid with current Org configurations`),e;throw t}}(e,Jg.UNLOCK_ACCOUNT,t);default:throw Zr(`Unknown \`flow\` value: ${t}`),new jr('Invalid "flow" configuration')}}(e,n)}(e,this.settings)),!e.requestDidSucceed&&Iv(e)&&this.settings.getAuthClient().transactionManager.clear(),await Tv(this.appState,e))}catch(e){var o;null!==(o=e.is)&&void 0!==o&&o.call(e,"terminal")?this.appState.setNonIdxError(e):(n=e,await this.handleError(e))}finally{this.settings.unset("stateToken"),this.settings.unset("proxyIdxResponse")}if(this.settings.get("colors.brand")&&!Fg.isLoaded()){const e={brand:this.settings.get("colors.brand")},t=this.settings.get("cspNonce");Fg.addStyle(e,t)}this.show(),this.unload();const i=Ss.extend({el:this.el,settings:this.settings,appState:this.appState},t);this.controller=new e(i),this.listenTo(this.controller,"all",this.trigger),this.controller.render(),this.hasControllerRendered=!0,n&&this.settings.callGlobalError(n)}updateIdentifierCookie(e){if(this.settings.get("features.rememberMe")){var t;const n=null==e||null===(t=e.context)||void 0===t?void 0:t.user,{identifier:o}=(null==n?void 0:n.value)||{};o&&jf(o)}else Ff()}hasAuthenticationSucceeded(e){var t,n;return(null==e||null===(t=e.rawIdxState)||void 0===t?void 0:t.success)||(null==e||null===(n=e.rawIdxState)||void 0===n?void 0:n.successWithInteractionCode)}restartLoginFlow(e){var t;this.settings.getAuthClient().transactionManager.clear(),this.appState.set("idx",void 0);const n=this.settings.getAuthClient();delete n.options.recoveryToken,this.settings.unset("recoveryToken"),this.settings.unset("otp"),this.controller.stopListening(),n.idx.setFlow(null!==(t=null!=e?e:this.settings.get("flow"))&&void 0!==t?t:"default"),this.render(this.controller.constructor)}start(){const e=Gr.supportsPushState();Sp.prototype.start.call(this,{pushState:e})}hide(){this.header.$el.hide()}show(){this.header.$el.show()}remove(){this.unload(),this.header.$el.remove(),this.stopListening(this.appState),this.stopListening(this.settings),ia.remove(),Os.history.stop()}}Dv.prototype.Events=Os.Events;var Lv=xp.extend({HeaderBeacon:null,initialize:function(){this.HeaderBeacon&&this.add(this.HeaderBeacon)},postRender:function(){const e=sl(`#${Mr.WIDGET_CONTAINER_ID}`);if(this.HeaderBeacon){e.removeClass("no-beacon");const t=this.$el.find('[data-type="beacon-container"]');Eg.explode(t)}else e.addClass("no-beacon")}}),Mv=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"label")||(null!=t?a(t,"label"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:i,loc:{start:{line:1,column:0},end:{line:1,column:9}}}):r)},useData:!0}),tagName:"a",attributes:function(){let e=this.options.href||"#";const t="_blank"!==this.options.target||this.options.rel?this.options.rel:"noopener noreferrer";return{"data-se":this.options.name,href:e,target:this.options.target,rel:t}},className:function(){const e=["link"];if(this.options.name){const t=this.options.name.replace(/[ ]/g,"-");e.push(`js-${t}`)}return e.join(" ")},postRender:function(){this.options.href||this.$el.click(e=>{e.preventDefault();const{appState:t,formName:n,actionPath:o,clickHandler:i}=this.options;i?i():n?t.trigger("switchForm",n):o&&t.trigger("invokeAction",o)})}}),Uv=xp.extend({initialize:function(){xp.prototype.initialize.apply(this,arguments);const e=this.options.additionalOptions,t=this.options.name,n=Object.assign({},this.options,{type:"link","aria-expanded":!1,clickHandler:function(){sl(e.selector).slideToggle(200,()=>{sl(`.js-${t}`).attr("aria-expanded",sl(e.selector).is(":visible"))})}});this.add(Mv,{options:n}),this.add(e.view)},postRender:function(){const e=this.options.additionalOptions;this.$(e.selector).hide()}});const{ENROLLED_PASSWORD_RECOVERY_LINK:jv,ORG_PASSWORD_RECOVERY_LINK:Fv}=by,Vv=(e,t)=>{const n={type:"link",label:vp("forgotpassword","login"),name:"forgot-password"},o=t.get("helpLinks.forgotPassword");return o?[Object.assign({},{href:o,label:vp("forgotpassword","login"),name:"forgot-password"})]:e.getActionByPath(Fv)?[Object.assign({},n,{actionPath:Fv})]:e.getActionByPath(jv)?[Object.assign({},n,{actionPath:jv})]:[]},qv=(e,t)=>
2e.hasRemediationObject(Jg.SKIP)?[{type:"link",label:null!=t?t:vp("oie.enroll.skip.setup","login"),name:"skip-setup",actionPath:Jg.SKIP}]:[],Bv=(e,t={})=>null!=e&&e.get("backToSignInUri")?[{label:vp("goback","login"),name:"cancel",href:e.get("backToSignInUri")}]:[{actionPath:"cancel",label:t.label?t.label:vp("goback","login"),name:"cancel",type:"link"}],$v=e=>{let t;const n=e.get("helpLinks.gracePeriodRequiredSoon.text"),o=e.get("helpLinks.gracePeriodRequiredSoon.href");return n&&o&&(t={type:"link",label:n,name:"gracePeriodRequiredSoonCustomLink",href:o,target:"_blank"}),t},Hv=(e,t)=>{const n=[],o=[Jg.CHALLENGE_AUTHENTICATOR,Jg.SELECT_AUTHENTICATOR_AUTHENTICATE,Jg.CHALLENGE_POLL,Jg.AUTHENTICATOR_VERIFICATION_DATA];if(!e.get("isPasswordRecovery")&&o.includes(e.get("currentFormName"))){const e=t.get("helpLinks.factorPage.text"),o=t.get("helpLinks.factorPage.href");e&&o&&n.push({type:"link",label:e,name:"factorPageHelpLink",href:o,target:"_blank"})}return n};var zv=xp.extend({className:"auth-footer",links:[],footerInfo:null,hasBackToSignInLink:!0,initialize:function(){let e=Ss.resultCtx(this,"links",this);const t=Ss.resultCtx(this,"footerInfo",this),n=Ss.resultCtx(this,"hasBackToSignInLink",this);e=Array.isArray(e)?e.filter(e=>sl.isPlainObject(e)):[],this.options.appState.shouldShowSignOutLinkInCurrentForm(this.options.settings.get("features.hideSignOutLinkInMFA")||this.settings.get("features.mfaOnlyFlow"))&&n&&(e=e.concat(Bv(this.options.settings))),e.forEach(e=>{let t=Mv;"toggle-text-link"===e.type&&(t=Uv),this.add(t,{options:e})}),t&&(this.add(xp.extend({className:"footer-info"})),this.add(t,".footer-info"))}});const Wv=1e3,Kv="authenticatorChallenge-cancel",Gv="IDENTIFIER",Yv="oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.desktop",Jv="oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows",Qv="oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.mobile",Xv="OV_UNREACHABLE_BY_LOOPBACK",Zv=xp.extend({className:"authenticator-row clearfix",template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:i,loc:{start:{line:1,column:100},end:{line:1,column:117}}}):r)+' custom-app-logo" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:i,loc:{start:{line:1,column:158},end:{line:1,column:213}}}))+'"></div>'},1:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:i,loc:{start:{line:1,column:272},end:{line:1,column:289}}}):r)+'" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:i,loc:{start:{line:1,column:314},end:{line:1,column:369}}}))+'"></div>'},2:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="authenticator-grace-period-required-icon"></span><div class="authenticator-grace-period-text-container"><p class="authenticator-grace-period-required-description">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"gracePeriodRequiredDescription")||(null!=t?l(t,"gracePeriodRequiredDescription"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"gracePeriodRequiredDescription",hash:{},data:i,loc:{start:{line:1,column:702},end:{line:1,column:736}}}):a)+"</p>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"gracePeriodExpiry"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:740},end:{line:1,column:847}}}))?r:"")+"</div>"},3:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-grace-period-expiry-date">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"gracePeriodExpiry")||(null!=t?a(t,"gracePeriodExpiry"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"gracePeriodExpiry",hash:{},data:i,loc:{start:{line:1,column:815},end:{line:1,column:836}}}):r)+"</p>"},4:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"gracePeriodRemainingSkipsDescription"):t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(6,i,0),data:i,loc:{start:{line:1,column:853},end:{line:1,column:1335}}}))?r:""},5:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="authenticator-grace-period-required-icon"></span><div class="authenticator-grace-period-text-container"><p class="authenticator-grace-period-skip-count-description">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"gracePeriodRemainingSkipsDescription")||(null!=t?a(t,"gracePeriodRemainingSkipsDescription"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"gracePeriodRemainingSkipsDescription",hash:{},data:i,loc:{start:{line:1,column:1079},end:{line:1,column:1119}}}):r)+"</p></div></span>"},6:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"description"):t,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:1144},end:{line:1,column:1232}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"authenticatorUsageText"):t,{name:"if",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:1232},end:{line:1,column:1335}}}))?r:"")},7:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-description--text">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"description")||(null!=t?a(t,"description"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:i,loc:{start:{line:1,column:1206},end:{line:1,column:1221}}}):r)+"</p>"},8:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-usage-text">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"authenticatorUsageText")||(null!=t?a(t,"authenticatorUsageText"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"authenticatorUsageText",hash:{},data:i,loc:{start:{line:1,column:1298},end:{line:1,column:1324}}}):r)+"</p>"},9:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'data-se="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"buttonDataSeAttr")||(null!=t?a(t,"buttonDataSeAttr"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"buttonDataSeAttr",hash:{},data:i,loc:{start:{line:1,column:1409},end:{line:1,column:1429}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="authenticator-icon-container">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"logoUri"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:42},end:{line:1,column:384}}}))?r:"")+'</div><div class="authenticator-description"><h3 class="authenticator-label no-translate">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"label")||(null!=t?l(t,"label"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"label",hash:{},data:i,loc:{start:{line:1,column:474},end:{line:1,column:483}}}):a)+"</h3>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"gracePeriodRequiredDescription"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),data:i,loc:{start:{line:1,column:488},end:{line:1,column:1342}}}))?r:"")+'<div class="authenticator-button" '+(null!=(r=l(n,"if").call(s,null!=t?l(t,"buttonDataSeAttr"):t,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:1376},end:{line:1,column:1437}}}))?r:"")+"></div></div>"},useData:!0}
2),postRender:function(){xp.prototype.postRender.apply(this,arguments),this.model.get("logoUri")&&(this.el.querySelector(".custom-app-logo").style.backgroundImage=`url(${this.model.get("logoUri")})`)},children:function(){return[[bp({className:"button select-factor",title:function(){return vp("oie.enroll.authenticator.button.text","login")},attributes:{"aria-label":this.model.get("ariaLabel")},click:function(){this.model.trigger("selectAuthenticator",this.model.get("value"))}}),".authenticator-button"]]},minimize:function(){this.$el.addClass("authenticator-row-min")},getTemplateData:function(){let e;const t=this.model.get("relatesTo").allowedFor;if(t)switch(t){case"any":e=vp("oie.enroll.authenticator.usage.text.access.recovery","login");break;case"recovery":e=vp("oie.enroll.authenticator.usage.text.recovery","login");break;case"sso":e=vp("oie.enroll.authenticator.usage.text.access","login")}const n=xp.prototype.getTemplateData.apply(this,arguments);n.authenticatorUsageText=e;const o=this._getGracePeriodData();return{...n,...o}},_getGracePeriodData:function(){var e,t,n,o,i,r;const a={},s=Date.now(),l=new Date(null===(e=this.model.get("relatesTo"))||void 0===e||null===(t=e.gracePeriod)||void 0===t?void 0:t.expiry).getTime();if(!isNaN(l)&&s<l){const e=function(e,t){try{if("number"==typeof e&&"number"==typeof t){const n=Math.abs(t-e);return Math.floor(n/864e5)}}catch(e){}return null}(s,l);a.gracePeriodRequiredDescription=1===e?vp("oie.enrollment.policy.grace.period.required.in.one.day","login"):e>1?vp("oie.enrollment.policy.grace.period.required.in.days","login",[e]):vp("oie.enrollment.policy.grace.period.required.today","login"),l&&(a.gracePeriodExpiry=Jp(new Date(l),this.settings.get("languageTags"),!1))}else if(null!==(n=this.model.get("relatesTo"))&&void 0!==n&&null!==(o=n.gracePeriod)&&void 0!==o&&o.remainingSkips&&(null===(i=this.model.get("relatesTo"))||void 0===i||null===(r=i.gracePeriod)||void 0===r?void 0:r.remainingSkips)>0){var c,u,p,d;1===(null===(c=this.model.get("relatesTo"))||void 0===c||null===(u=c.gracePeriod)||void 0===u?void 0:u.remainingSkips)?a.gracePeriodRemainingSkipsDescription=vp("oie.enrollment.policy.grace.period.required.in.one.skip","login"):a.gracePeriodRemainingSkipsDescription=vp("oie.enrollment.policy.grace.period.required.in.number.of.skips","login",[null===(p=this.model.get("relatesTo"))||void 0===p||null===(d=p.gracePeriod)||void 0===d?void 0:d.remainingSkips])}return a}});var eb=Bc.extend({className:"authenticator-enroll-list authenticator-list",item:Zv,itemSelector:".list-content",initialize:function(){this.listenTo(this.collection,"selectAuthenticator",function(e){this.model.set(this.options.name,e),this.options.appState.trigger("saveForm",this.model)}),this.hasOptionalFactors=this.options.appState.hasRemediationObject(Jg.SKIP)},template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-list-subtitle">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"subtitle")||(null!=t?a(t,"subtitle"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"subtitle",hash:{},data:i,loc:{start:{line:1,column:134},end:{line:1,column:146}}}):r)+"</p>"},1:function(e,t,n,o,i){var r,a=e.lambda,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="authenticator-list-subtitle-link-container"><a href='+s(a(null!=(r=null!=t?l(t,"subtitleLinkOptions"):t)?l(r,"href"):r,t))+' target="_blank" rel="noopener noreferrer">'+s(a(null!=(r=null!=t?l(t,"subtitleLinkOptions"):t)?l(r,"label"):r,t))+"</a></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="list-content"><div class="authenticator-list-title">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"title")||(null!=t?l(t,"title"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"title",hash:{},data:i,loc:{start:{line:1,column:64},end:{line:1,column:73}}}):a)+"</div>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitle"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:79},end:{line:1,column:157}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"subtitleLinkOptions"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:157},end:{line:1,column:365}}}))?r:"")+"</div>"},useData:!0}
2),getTemplateData:function(){const e=this.hasOptionalFactors?vp("oie.setup.optional","login"):vp("oie.setup.required","login");return{title:this.options.listTitle||e,subtitle:this.options.listSubtitle||null,subtitleLinkOptions:this.options.listSubtitleLinkOptions||null}}});const tb=bp({className:"button-primary button skip-all",title:function(){return vp("oie.setup.remind.me.later","login")},click:function(){this.options.appState.trigger("invokeAction",Jg.SKIP)}}),nb=bp({className:"button-primary button skip-all",title:function(){return vp("oie.optional.authenticator.button.title","login")},click:function(){this.options.appState.trigger("invokeAction",Jg.SKIP)}});var ob=xp.extend({className:"authenticator-enroll-list-container",initialize:function(){var e;const t=[],n=[];this.options.optionItems.forEach(e=>{var o,i,r,a,s,l,c,u;const p=(null===(o=e.relatesTo)||void 0===o||null===(i=o.gracePeriod)||void 0===i?void 0:i.expiry)&&(e=>{const t=Date.now(),n=new Date(e).getTime();return!isNaN(n)&&t<n})(null===(r=e.relatesTo)||void 0===r||null===(a=r.gracePeriod)||void 0===a?void 0:a.expiry),d=(null===(s=e.relatesTo)||void 0===s||null===(l=s.gracePeriod)||void 0===l?void 0:l.remainingSkips)&&(null===(c=e.relatesTo)||void 0===c||null===(u=c.gracePeriod)||void 0===u?void 0:u.remainingSkips)>0;p||d?t.push(e):n.push(e)}),this.hasSkipRemediation=!!this.options.appState.hasRemediationObject(null==Jg?void 0:Jg.SKIP),this.hasOnlyOptional=this.hasSkipRemediation&&0===(null==t?void 0:t.length),this.hasOnlyGracePeriod=this.hasSkipRemediation&&(null===(e=this.options.optionItems)||void 0===e?void 0:e.length)===(null==t?void 0:t.length),n.length&&this.add(new eb({...this.options,collection:new kp(n),optionItems:n,listTitle:this.hasOnlyOptional?vp("oie.setup.optional.short","login"):vp("oie.setup.required.now","login")})),t.length&&this.add(new eb({...this.options,collection:new kp(t),optionItems:t,listTitle:vp("oie.setup.required.soon","login"),listSubtitle:vp("oie.setup.required.soon.description","login"),listSubtitleLinkOptions:$v(this.options.settings)})),this.hasOnlyGracePeriod?this.add(tb):this.hasOnlyOptional&&this.add(nb)}});const ib=xp.extend({className:"authenticator-row clearfix",template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:i,loc:{start:{line:1,column:100},end:{line:1,column:117}}}):r)+' custom-logo" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:i,loc:{start:{line:1,column:154},end:{line:1,column:209}}}))+'"></div>'},1:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="factor-icon authenticator-icon '+l("function"==typeof(r=null!=(r=c(n,"iconClassName")||(null!=t?c(t,"iconClassName"):t))?r:s)?r.call(a,{name:"iconClassName",hash:{},data:i,loc:{start:{line:1,column:268},end:{line:1,column:285}}}):r)+'" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:i,loc:{start:{line:1,column:310},end:{line:1,column:365}}}))+'"></div>'},2:function(e,t,n,o,i){return"authenticator-label--small"},3:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-description--text '+c(typeof(r=null!=(r=u(n,"noTranslateClassName")||(null!=t?u(t,"noTranslateClassName"):t))?r:s)===l?r.call(a,{name:"noTranslateClassName",hash:{},data:i,loc:{start:{line:1,column:603},end:{line:1,column:627}}}):r)+'">
2'+c(typeof(r=null!=(r=u(n,"description")||(null!=t?u(t,"description"):t))?r:s)===l?r.call(a,{name:"description",hash:{},data:i,loc:{start:{line:1,column:629},end:{line:1,column:644}}}):r)+"</p>"},4:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="authenticator-enrollment-nickname '+c(typeof(r=null!=(r=u(n,"noTranslateClassName")||(null!=t?u(t,"noTranslateClassName"):t))?r:s)===l?r.call(a,{name:"noTranslateClassName",hash:{},data:i,loc:{start:{line:1,column:715},end:{line:1,column:739}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"nickname")||(null!=t?u(t,"nickname"):t))?r:s)===l?r.call(a,{name:"nickname",hash:{},data:i,loc:{start:{line:1,column:741},end:{line:1,column:753}}}):r)+"</p>"},5:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'data-se="'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"buttonDataSeAttr")||(null!=t?a(t,"buttonDataSeAttr"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"buttonDataSeAttr",hash:{},data:i,loc:{start:{line:1,column:837},end:{line:1,column:857}}}):r)+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="authenticator-icon-container">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"logoUri"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:42},end:{line:1,column:380}}}))?r:"")+'</div><div class="authenticator-description"><div><h3 class="authenticator-label no-translate '+(null!=(r=l(n,"if").call(s,null!=t?l(t,"description"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:474},end:{line:1,column:526}}}))?r:"")+'">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"label")||(null!=t?l(t,"label"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"label",hash:{},data:i,loc:{start:{line:1,column:528},end:{line:1,column:537}}}):a)+"</h3>"+(null!=(r=l(n,"if").call(s,null!=t?l(t,"description"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:542},end:{line:1,column:655}}}))?r:"")+(null!=(r=l(n,"if").call(s,null!=t?l(t,"nickname"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:655},end:{line:1,column:764}}}))?r:"")+'</div><div class="authenticator-button" '+(null!=(r=l(n,"if").call(s,null!=t?l(t,"buttonDataSeAttr"):t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:804},end:{line:1,column:865}}}))?r:"")+"></div></div>"},useData:!0}),postRender:function(){xp.prototype.postRender.apply(this,arguments);const e=this.model.get("logoUri");e&&(this.el.querySelector(".custom-logo").style.backgroundImage=`url(${e})`)},children:function(){return[[bp({className:"button select-factor",title:function(){return vp("oie.verify.authenticator.button.text","login")},attributes:{"aria-label":this.model.get("ariaLabel")},click:function(){this.model.trigger("selectAuthenticator",this.model.get("value"))}}),".authenticator-button"]]},minimize:function(){this.$el.addClass("authenticator-row-min")}});var rb=Bc.extend({className:"authenticator-verify-list authenticator-list",item:ib,itemSelector:".list-content",initialize:function(){this.listenTo(this.collection,"selectAuthenticator",this.handleSelect),this.listenTo(this.model,"invalid",this.handleModelInvalid)},handleModelInvalid:function(e,t){this.options.name in t&&!this.model.get(this.options.name)&&this.showAuthenticatorRequiredError()},showAuthenticatorRequiredError:function(){const e=this.collection.length>1?vp("account.unlock.authenticatorRequired.multiple","login"):vp("account.unlock.authenticatorRequired.single","login");this.model.trigger("error",this.model,{responseJSON:{errorSummary:e}})},handleSelect:function(e){var t;const n=this.model.validateField("identifier");this.model.trigger("clearFormError"),null!==(t=this.model.getPropertySchema("identifier"))&&void 0!==t&&t.required&&n?this.model.trigger("invalid",this.model,n):(this.model.set(this.options.name,e),this.options.appState.trigger("saveForm",this.model))},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="list-content"></div>'},useData:!0}
2)});const ab="OktaSignInWidgetOnCaptchaLoaded",sb="OktaSignInWidgetOnCaptchaSolved";var lb=xp.extend({className:"captcha-view",template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div id ="captcha-container" class="'+c(typeof(r=null!=(r=u(n,"className")||(null!=t?u(t,"className"):t))?r:s)===l?r.call(a,{name:"className",hash:{},data:i,loc:{start:{line:1,column:63},end:{line:1,column:76}}}):r)+'" data-sitekey="'+c(typeof(r=null!=(r=u(n,"siteKey")||(null!=t?u(t,"siteKey"):t))?r:s)===l?r.call(a,{name:"siteKey",hash:{},data:i,loc:{start:{line:1,column:92},end:{line:1,column:103}}}):r)+'" data-callback="'+c(typeof(r=null!=(r=u(n,"onCaptchaSolvedCallback")||(null!=t?u(t,"onCaptchaSolvedCallback"):t))?r:s)===l?r.call(a,{name:"onCaptchaSolvedCallback",hash:{},data:i,loc:{start:{line:1,column:120},end:{line:1,column:147}}}):r)+'" data-size="invisible"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isCaptchaConfigured"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:184}}}))?r:""},useData:!0}),getTemplateData:function(){if(this.captchaConfig){let e;return e="ALTCHA"===this.captchaConfig.type?"altcha-captcha":"HCAPTCHA"===this.captchaConfig.type?"h-captcha":"g-recaptcha",{siteKey:this.captchaConfig.siteKey,isCaptchaConfigured:!0,onCaptchaSolvedCallback:sb,className:e}}return{}},initialize:function(){this.options.appState.get("captcha")&&(this.captchaConfig=this.options.appState.get("captcha"),this._addCaptcha())},remove:function(){xp.prototype.remove.apply(this,arguments),"HCAPTCHA"===this.captchaConfig.type?window.hcaptcha=void 0:"RECAPTCHA_V2"===this.captchaConfig.type&&(window.grecaptcha=void 0)},_addCaptcha:function(){const e=e=>{const t=this._getCaptchaOject(),n=this.$el.find("#captcha-container").attr("data-captcha-id");t.reset(n);const o=this.options.name;this.model.set(o,e)},t=t=>{e(t),this.options.appState.trigger("saveForm",this.model)},n=t=>{e(t),this.options.appState.trigger("altchaSolved")},o=()=>{this.$el.find("#captcha-container").attr("data-captcha-id")||this.model.set(this.options.name,"tempToken")},i=async(e,t)=>{const{challengeUrlForm:n}=this.captchaConfig;if(!n)return fetch(e,t);const{accepts:o,method:i,value:r}=n,a={...t};return o&&(a.headers={...a.headers,"Content-Type":o}),i&&(a.method=i),null!=r&&r.find(e=>"stateHandle"===(null==e?void 0:e.name))&&(a.body=JSON.stringify({stateHandle:this.options.appState.get("idx").context.stateHandle})),fetch(e,a)};"ALTCHA"===this.captchaConfig.type?window[ab]=()=>{var e,t;o();const r=this.$el.find("#captcha-container"),a=document.createElement("altcha-widget"),s=`${null!==(e=this.options.settings.get("baseUrl"))&&void 0!==e?e:""}/api/v1/altcha`,{challengeUrlForm:l}=this.captchaConfig;Object.entries({floating:!0,hidefooter:!0,hidelogo:!0,challengeurl:null!==(t=null==l?void 0:l.href)&&void 0!==t?t:s,strings:JSON.stringify({error:vp("altcha.error.label","login"),expired:vp("altcha.expired.label","login"),label:vp("altcha.label.label","login"),loading:vp("altcha.loading.label","login"),reload:vp("altcha.reload.label","login"),verify:vp("altcha.verify.label","login"),verificationRequired:vp("altcha.verificationRequired.label","login"),verified:vp("altcha.verified.label","login"),verifying:vp("altcha.verifying.label","login"),waitAlert:vp("altcha.waitAlert.label","login")})}).forEach(([e,t])=>a.setAttribute(e,t)),a.customfetch=i,a.addEventListener&&a.addEventListener("verified",e=>{const t=e&&e.detail&&e.detail.payload||e;n(t),r.empty()}),window.altcha=a,r.empty().append(a),r.attr("data-captcha-id","altcha"),this.options.appState.trigger("onCaptchaLoaded",a)}:window[ab]=()=>{o();const e=this._getCaptchaOject(),n=e.render("captcha-container",{sitekey:this.captchaConfig.siteKey,callback:t});this.$el.find("#captcha-container").attr("data-captcha-id",n),this.options.appState.trigger("onCaptchaLoaded",e),"HCAPTCHA"===this.captchaConfig.type&&this._addHCaptchaFooter()},window[sb]=t,"HCAPTCHA"===this.captchaConfig.type?this._loadCaptchaLib(this._getCaptchaUrl("https://hcaptcha.com/1/api.js","hcaptcha")):"RECAPTCHA_V2"===this.captchaConfig.type&&this._loadCaptchaLib(this._getCaptchaUrl("https://www.google.com/recaptcha/api.js","recaptcha")),"ALTCHA"===this.captchaConfig.type&&this._loadCaptchaLib(this._getCaptchaUrl("https://cdn.jsdelivr.net/gh/altcha-org/[email protected]/dist/altcha.min.js","altcha"))},_loadCaptchaLib:function(e){let t=document.createElement("script");var n;t.src=e,t.async=!0,t.defer=!0,-1!==e.indexOf("altcha")&&(t.type="module",null!==(n=this.captchaConfig)&&void 0!==n&&n.sriEnabled&&(t.integrity="sha384-lxB6k+TvdhSBKnLm6JqwAnW7QxKXj88yK1kq9g3MevDXlG9HdWtnShLgJzuYCUIw",t.crossOrigin="anonymous"),t.onload=window[ab]),document.getElementById(Mr.WIDGET_CONTAINER_ID).appendChild(t)},_addHCaptchaFooter:function(){const e=document.getElementsByClassName("siw-main-footer");if(e.length){const t=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="captcha-footer"><span class="footer-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$2:"<a href='https://hcaptcha.com/terms' target='_blank'>$2</a>",$1:"<a href='https://hcaptcha.com/privacy' target='_blank'>$1</a>",bundle:"login",code:"hcaptcha.footer.label"}
2,data:i,loc:{start:{line:1,column:54},end:{line:1,column:238}}}))+"</span></div>"},useData:!0});e[0].insertAdjacentHTML("beforeend",t())}},_getCaptchaOject:function(){return"HCAPTCHA"===this.captchaConfig.type?window.hcaptcha:"RECAPTCHA_V2"===this.captchaConfig.type?window.grecaptcha:"ALTCHA"===this.captchaConfig.type&&null!==(e=window.altcha)&&void 0!==e?e:null;var e},_getCaptchaUrl:function(e,t){const n=this.options.settings.get("language"),o=this.options.settings.get(`${t}.scriptSource`),i=this.options.settings.get(`${t}.scriptParams`),r=o||e;if("altcha"===t)return r;const a={...i,onload:ab,render:"explicit",hl:n||navigator.language};return r+"?"+ca.searchParamsToString(a)}});const cb={authenticatorEnrollSelect:e=>{const t=(e.options||[]).map(e=>Object.assign({},e,ov(e)));return{View:ob,options:{name:e.name,optionItems:t,collection:new kp(t)}}},authenticatorVerifySelect:e=>{let t=e.options||[];const n=new Set;return t=t.filter(e=>{let t;if(e.authenticatorKey===oy)t=n.has(e.authenticatorKey),n.add(e.authenticatorKey);else if(e.authenticatorKey===fy){var o,i;t=n.has(null==e||null===(o=e.value)||void 0===o?void 0:o.id),n.add(null==e||null===(i=e.value)||void 0===i?void 0:i.id)}return!t}),t=t.map(e=>Object.assign({},e,av(e))),{View:rb,options:{name:e.name,collection:new kp(t)}}},"admin-consent":()=>({View:ud}),consent:()=>({View:$d}),captcha:e=>({View:lb,options:{name:e.name}})},ub=function(e){return(cb[e.type]||Ss.identity)(e)},pb=({settings:e,appState:t})=>{const n=t.get("remediations").filter(e=>e.name===Jg.REDIRECT_IDP);if(!Array.isArray(n))return[];const o=((e,t)=>{if(t.get("remediations").filter(e=>e.name===Jg.PIV_IDP).length<1)return[];const n=e.get("piv");return[{attributes:{"data-se":"piv-card-button"},className:(n.className||"")+" piv-button",title:n.text||vp("piv.cac.card","login"),click:e=>{e.preventDefault(),t.trigger("switchForm",Jg.PIV_IDP)}}]})(e,t);return[...o,...n.map(e=>{var t;let n,o=null===(t=e.type)||void 0===t?void 0:t.toLowerCase();var i;Ss.contains(vg,o)?n=vp(`socialauth.${o}.label`,"login"):(o="general-idp",n=vp("customauth.sign.in.with.label","login",[null===(i=e.idp)||void 0===i?void 0:i.name]));const r=["social-auth-button",`social-auth-${o}-button`];"general-idp"===o&&r.push("no-translate"),e.idp.className&&r.push(e.idp.className);const a={attributes:{"data-se":`social-auth-${o}-button`},className:r.join(" "),title:n,href:e.href};return(e=>{const t=document.createElement("div");t.style.position="absolute",t.style.left="-9999px",t.style.whiteSpace="nowrap",t.innerHTML=e,document.body.appendChild(t);const n=t.clientWidth;return document.body.removeChild(t),n>186})(n)&&(a.attributes.title=n),a})]},db=e=>bp({...e,className:`${e.className} default-custom-button button-primary`}),{FormUtil:hb}=Tp.views.forms.helpers;var fb=yp.extend({layout:"o-form-theme",className:"ion-form",hasSavingState:!0,autoSave:!1,noCancelButton:!0,title:function(){return vp("oform.title.authenticate","login")},save:function(){return vp("oform.next","login")},modelEvents:{clearFormError:"handleClearFormError",error:"triggerAfterError"},initialize:function(){const e=this.getUISchema().map(ub);this.showMessages(),this.listenTo(this.options.appState,"onCaptchaLoaded",e=>{this.captchaObject=e}),this.listenTo(this.options.appState,"altchaSolved",()=>{this.trigger("save",this.model)}),e.forEach(e=>{this.addInputOrView(e)}),this.listenTo(this,"save",this.saveForm),this.listenTo(this,"cancel",this.cancelForm)},focus:function(...e){this.settings.get("features.autoFocus")&&yp.prototype.focus.apply(this,e)},handleClearFormError:function(){const e=this.$(".o-form-error-container");e.empty(),e.hasClass("o-form-has-errors")&&this.clearErrors()},triggerAfterError:function(e,t){this.options.appState.trigger("afterError",t)},saveForm:function(e){this.$el.find(".o-form-error-container").empty(),this.captchaObject&&"ALTCHA-WIDGET"!==(this.captchaObject.tagName||"").toUpperCase()?this.captchaObject.execute():this.options.appState.trigger("saveForm",e)},postRender:function(){let e=this.$el.find(".o-form-info-container");e.length||(this.add('<div class="o-form-info-container"></div>'),e=this.$el.find(".o-form-info-container")),this.$el.find(".o-form-error-container").attr("role","alert").before(e),this.addIdentifier()},addIdentifier:function(){const{identifier:e}=this.options.appState.get("user")||{};if(!e)return;if(!this.settings.get("features.showIdentifier"))return;
2const t=this.$el.find('[data-se="o-form-head"]'),n=_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="identifier-container"><span class="identifier no-translate" data-se="identifier" title="'+c(typeof(r=null!=(r=u(n,"identifier")||(null!=t?u(t,"identifier"):t))?r:s)===l?r.call(a,{name:"identifier",hash:{},data:i,loc:{start:{line:1,column:100},end:{line:1,column:114}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"identifier")||(null!=t?u(t,"identifier"):t))?r:s)===l?r.call(a,{name:"identifier",hash:{},data:i,loc:{start:{line:1,column:116},end:{line:1,column:130}}}):r)+"</span></div>"},useData:!0})({identifier:e});t.length?t.after(n):this.$el.find(".o-form-error-container").after(n)},cancelForm:function(){this.options.appState.trigger("invokeAction","cancel")},getUISchema:function(){return Array.isArray(this.options.currentViewState.uiSchema)?this.options.currentViewState.uiSchema:[]},addInputOrView:function(e){if(!1!==e.visible&&(!1!==e.mutable||!0===e.visible)&&(e.View?(this.add(e.View,Ss.omit(e,"View","showWhen")),e.showWhen&&hb.applyShowWhen(this.last(),e.showWhen)):this.addInput(e),Array.isArray(e.optionsUiSchemas)&&this.options.optionUiSchemaConfig[e.name])){const t=Number(this.options.optionUiSchemaConfig[e.name]);(e.optionsUiSchemas[t]||[]).forEach(this.addInputOrView.bind(this))}},showCustomFormErrorCallout:null,showMessages:function(e){const t=this.options.appState.get("messages")||{},n=".o-form-error-container";!Array.isArray(t.value)||e instanceof xp?e instanceof xp&&this.add(e,n):(this.add('<div class="ion-messages-container"></div>',n),t.value.forEach(t=>{if(null!=t&&t.class&&"INFO"!==t.class){var o;const i={class:null!==(o=null==t?void 0:t.class)&&void 0!==o?o:"",message:null==t?void 0:t.message,title:"",...e};this.add(wp({content:i.message,type:i.class.toLowerCase(),title:i.title}),n),e=null}else this.add(`<p>${t.message}</p>`,".ion-messages-container")}))}}),mb={startPolling:function(e){this.fixedPollingInterval=this.options.currentViewState.refresh,this.dynamicPollingInterval=e,this.countDownCounterValue=Math.ceil(this.pollingInterval/Wv),this.fixedPollingInterval?this._startRemediationPolling():this._startAuthenticatorPolling()},_startAuthenticatorPolling:function(){["currentAuthenticator","currentAuthenticatorEnrollment"].some(e=>{if(this.options.appState.has(e)){var t;const n=this.options.appState.get(e),o=`${e}-poll`,i=this.dynamicPollingInterval||(null==n||null===(t=n.poll)||void 0===t?void 0:t.refresh);return Ss.isNumber(i)&&(this.polling=setTimeout(()=>{this.options.appState.trigger("invokeAction",o)},i)),!0}return!1})},_startRemediationPolling:function(){const e=this.dynamicPollingInterval||this.fixedPollingInterval;Ss.isNumber(e)&&(this.polling=setTimeout(()=>{this.options.appState.trigger("saveForm",this.model)},e))},stopPolling:function(){this.polling&&(clearTimeout(this.polling),this.polling=null)}},gb=fb.extend(Object.assign({initialize:function(){fb.prototype.initialize.apply(this,arguments),this.listenTo(this.options.appState,"change:dynamicRefreshInterval",this.updateRefreshInterval)},updateRefreshInterval:function(){this.polling&&(this.stopPolling(),this.startPolling(this.options.appState.get("dynamicRefreshInterval")))}},mb));function yb(e,t){return e&&t&&(e+="&login_hint="+t),e}const vb=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.intro"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:65}}}))+'<ol class="chrome-lna-error-steps"><li>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.step1"},data:i,loc:{start:{line:1,column:104},end:{line:1,column:169}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.step2"},data:i,loc:{start:{line:1,column:178},end:{line:1,column:243}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"chrome.lna.error.description.step3"},data:i,loc:{start:{line:1,column:252},end:{line:1,column:317}}}))+"</li></ol>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$1:"<a href='#' target='_blank' rel='noopener noreferrer' class='chrome-lna-help-link'>$1</a>",bundle:"login",code:"chrome.lna.error.description.more.information"},data:i,loc:{start:{line:1,column:327},end:{line:1,column:498}}}))},useData:!0}
2),getTemplateData:function(){this.chromeLNAHelpLink=this.options.chromeLNAHelpLink},render:function(){xp.prototype.render.apply(this,arguments),this.chromeLNAHelpLink&&this.$el.find(".chrome-lna-help-link").attr("href",this.chromeLNAHelpLink)}});function bb(e,t){e.add(xp.extend({className:"loopback-content",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="spinner"></div>'},useData:!0})})),e.doLoopback(t)}function wb(e,t){e.title=t,e.$&&e.$(".okta-form-title").length&&e.$(".okta-form-title").text(t)}function _b(e,t){var n,o;const i=e.getDeviceChallengePayload(),{chromeLocalNetworkAccessDetails:r}=i||{},a=null===(n=e.options)||void 0===n||null===(o=n.settings)||void 0===o?void 0:o.get("identifier"),s="hide";switch(i.challengeMethod){case Mr.LOOPBACK_CHALLENGE:e.title=vp("deviceTrust.sso.redirectText","login"),r?Gr.getChromeLNAPermissionState(t=>function(e,t,n){switch(e.removeChildren(),t){case"prompt":case"granted":default:wb(e,vp("deviceTrust.sso.redirectText","login")),bb(e,n);break;case"denied":var o,i,r;if(void 0!==(null===(o=e.options)||void 0===o||null===(i=o.appState)||void 0===i?void 0:i.get("previousFormName")))throw wb(e,vp("chrome.lna.fastpass.requires.permission.title","login")),function(e,t){e.add(wp({title:vp("chrome.lna.error.title","login"),content:new vb({chromeLNAHelpLink:t}),type:"error"}))}(e,null===(r=n.chromeLocalNetworkAccessDetails)||void 0===r?void 0:r.chromeLNAHelpLink),new Kr("Chrome Local Network Access permission was denied for FastPass.");wb(e,vp("deviceTrust.sso.redirectText","login")),bb(e,n)}}(e,t,i)):bb(e,i);break;case Mr.CUSTOM_URI_CHALLENGE:e.title=vp("customUri.title","login"),e.add(xp.extend({className:"skinny-content",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.prompt"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:67}}}))+"</p>"},useData:!0})})),e.add(bp({className:"ul-button button button-wide button-primary",title:vp("oktaVerify.open.button","login"),id:"launch-ov",click:()=>{e.doCustomURI()}})),e.add(xp.extend({className:"skinny-content",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.title"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:75}}}))+'</p><p><a href="'+l("function"==typeof(r=null!=(r=c(n,"downloadOVLink")||(null!=t?c(t,"downloadOVLink"):t))?r:s)?r.call(a,{name:"downloadOVLink",hash:{},data:i,loc:{start:{line:1,column:91},end:{line:1,column:109}}}):r)+'" target="_blank" id="download-ov" class="link">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.linkText"},data:i,loc:{start:{line:1,column:157},end:{line:1,column:232}}}))+"</a></p>"},useData:!0}),getTemplateData:function(){return{downloadOVLink:i.downloadHref}}})),e.customURI=yb(i.href,a),e.doCustomURI();break;case Mr.UNIVERSAL_LINK_CHALLENGE:e.title=vp("universalLink.title","login"),e.add(xp.extend({className:"universal-link-content",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="spinner"></div>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"universalLink.content"},data:i,loc:{start:{line:1,column:27},end:{line:1,column:79}}}))},useData:!0})})),e.add(bp({className:"ul-button button button-wide button-primary",title:vp("oktaVerify.open.button","login"),click:()=>{let e=yb(i.href,a);ca.redirect(e)}}));break;case Mr.APP_LINK_CHALLENGE:e.title=vp("appLink.title","login"),e.add(xp.extend({className:"app-link-content",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="spinner '+c(typeof(r=null!=(r=u(n,"hideClass")||(null!=t?u(t,"hideClass"):t))?r:s)===l?r.call(a,{name:"hideClass",hash:{},data:i,loc:{start:{line:1,column:20},end:{line:1,column:33}}}):r)+'"></div><div class="appLinkContent '+c(typeof(r=null!=(r=u(n,"hideClass")||(null!=t?u(t,"hideClass"):t))?r:s)===l?r.call(a,{name:"hideClass",hash:{},data:i,loc:{start:{line:1,column:68},end:{line:1,column:81}}}):r)+'">'+c((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"appLink.content"},data:i,loc:{start:{line:1,column:83},end:{line:1,column:129}}}))+"</div>"},useData:!0}
2),getTemplateData:function(){return{hideClass:s}},postRender:function(){t===Gv?(this.$(".spinner").removeClass(s),setTimeout(Ss.bind(()=>{const e={label:vp("goback","login")};this.options.appState.trigger("updateFooterLink",e),this.$(".spinner").addClass(s),this.$(".appLinkContent").removeClass(s)},this),4e3)):this.$(".appLinkContent").removeClass(s)}})),e.add(bp({className:`${s} al-button button button-wide button-primary`,title:vp("oktaVerify.open.button","login"),click:()=>{let e=yb(i.href,a);ca.redirect(e,window,!0)},postRender:function(){t===Gv?setTimeout(Ss.bind(()=>{this.$el.removeClass(s)},this),4e3):this.$el.removeClass(s)}}));break;case Mr.CHROME_DTC:e.title=vp("deviceTrust.sso.redirectText","login"),e.add(xp.extend({className:"chrome-dtc-content",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="spinner"></div>'},useData:!0})})),e.doChromeDTC(i)}}function kb(e,t,n,o,i){const r={};r.reason=n,r.statusCode=o,e.trigger("invokeAction",t,r,i)}function xb(e,t){let n;var o,i;n=t?Object.values(null==e||null===(o=e.value[0])||void 0===o?void 0:o.i18n):null==e||null===(i=e.responseJSON)||void 0===i?void 0:i.errorSummaryKeys;const r=n&&n.includes(Qv),a=n&&n.includes(Yv),s=n&&n.includes(Jv);let l=[];if(!r&&!a&&!s)return l;if(s)return l={type:"error",className:"okta-verify-uv-callout-content",title:vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.title","login"),subtitle:vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.description","login"),bullets:[vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.point1","login"),vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.windows.point2","login")]},l;const c=[vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point1","login"),vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point2","login"),vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point3","login")];return a&&c.push(vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.point4","login")),l={type:"error",className:"okta-verify-uv-callout-content",title:vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.title","login"),subtitle:vp("oie.authenticator.oktaverify.method.fastpass.verify.enable.biometrics.description","login"),bullets:c},l}function Sb(e,t){return xp.extend({tagName:"iframe",id:e,attributes:{src:t},initialize:function(){this.el.style.display="none"}})}const Tb=e=>{const t=Object.assign({method:"GET",contentType:"application/json"},e);return sl.ajax(t)},Eb=gb.extend({noButtonBar:!0,className:"ion-form device-challenge-poll",removed:!1,events:{"click #launch-ov":function(e){e.preventDefault(),this.doCustomURI()}},pollingCancelAction:"currentAuthenticator-cancel",initialize:function(){gb.prototype.initialize.apply(this,arguments),this.removed=!1,this.listenTo(this.model,"error",this.onPollingFail),this.doChallenge(),this.startPolling()},doChallenge:function(){_b(this)},onPollingFail:function(){this.$(".spinner").hide(),this.stopPolling()},remove:function(){gb.prototype.remove.apply(this,arguments),this.removed=!0,this.stopProbing(),this.stopPolling()},getDeviceChallengePayload:function(){throw new Error("getDeviceChallengePayload needs to be implemented")},doLoopback:function(e){let t,n=void 0!==e.domain?e.domain:"",o=void 0!==e.httpsDomain?e.httpsDomain:"",i=void 0!==e.ports?e.ports:[],r=i.length,a=void 0!==e.challengeRequest?e.challengeRequest:"",s=void 0!==e.probeTimeoutMillis?e.probeTimeoutMillis:100,l=!1,c=!1,u=0;const p=(e,n)=>`${n}:${t}/${e}`,d=()=>(ea(`Something unexpected happened while we were checking port ${t}.`),sl.Deferred().reject()),h=t=>{return(n=p("probe",t),Tb({url:n,timeout:Gr.isAndroid()?3e3:s})).then(()=>(e=>Tb({url:e,method:"POST",data:JSON.stringify({challengeRequest:a}),timeout:3e5}))(p("challenge",t)).then(()=>(l=!0,!1!==e.enhancedPollingEnabled?(this.stopPolling(),void this.startPolling(1)):this.trigger("save",this.model))).catch(e=>{u++,503!==e.status?(c=!0,kb(this.options.appState,this.pollingCancelAction,"OV_RETURNED_ERROR",e.status,!this.removed)):u===r&&kb(this.options.appState,this.pollingCancelAction,Xv,null,!this.removed)})).catch(d);var n};let f=Promise.resolve();const m=(e,n,o)=>{f=f.then(()=>
2{if(!l&&!c)return t=e,h(n)}).catch(()=>{u++,ea(`Authenticator is not listening on port ${t}.`),o&&u===r&&(ea("No available ports. Loopback server failed and polling is cancelled."),this.stopPolling(),kb(this.options.appState,this.pollingCancelAction,Xv,null,!this.removed))})};o&&(Xr("httpsDomain enabled, will probe and challenge https first"),r+=r,i.forEach(e=>{m(e,o,!1)})),i.forEach(e=>{m(e,n,!0)})},doCustomURI:function(){this.ulDom&&this.ulDom.remove();const e=Sb("custom-uri-container",this.customURI);this.ulDom=this.add(e).last()},doChromeDTC:function(e){this.ulDom&&this.ulDom.remove();const t=Sb("chrome-dtc-container",e.href);this.ulDom=this.add(t).last()},stopProbing:function(){this.checkPortXhr&&this.checkPortXhr.abort(),this.probingXhr&&this.probingXhr.abort()}}),Cb=e=>{const t=Object.assign({},Ss.chain(e).pick("minLength","maxLength","required","value").defaults({type:"string",required:!0}).value());return e.modelType&&(t.type=e.modelType),{[e.name]:t}},Ob=function(e={},t={},n={},o={}){(e.uiSchema||[]).forEach(e=>{if(Array.isArray(e.optionsUiSchemas)){let i,r={};Number(e.value)>=0&&(i=e.value),t[e.name]&&(r={value:t[e.name]},i=Number(r.value)),Object.assign(o,Cb(Object.assign({},e,r))),i&&Ob({uiSchema:e.optionsUiSchemas[i]},t,n,o)}else Object.assign(n,Cb(e))})};const Ab={[Jg.IDENTIFY]:{[Jg.IDENTIFY]:"primary-auth",[ty]:"primary-auth"},[Jg.IDENTIFY_RECOVERY]:{[Jg.IDENTIFY_RECOVERY]:"forgot-password"},[Jg.ENROLL_PROFILE]:{[Jg.ENROLL_PROFILE]:"registration"},[Jg.CHALLENGE_AUTHENTICATOR]:{[ey]:"mfa-verify-passcode",[ty]:"mfa-verify-password",sms:"mfa-verify-passcode",voice:"mfa-verify-passcode",[iy]:"mfa-verify-question",[oy]:"mfa-verify-webauthn",[sy]:"mfa-verify-totp",[ly]:"mfa-verify-totp",[ry]:"mfa-verify",[ay]:"mfa-verify",[cy]:"mfa-verify-duo",[dy]:"mfa-verify",[hy]:"mfa-verify",[fy]:"mfa-verify"},[Jg.CHALLENGE_POLL]:{[ry]:"mfa-verify",[fy]:"mfa-verify"},[Jg.RESEND_PUSH]:{[ry]:"mfa-verify",[fy]:"mfa-verify"},[Jg.ENROLL_AUTHENTICATOR]:{[ey]:"enroll-email",[ty]:"enroll-password",sms:"enroll-sms",voice:"enroll-call",[iy]:"enroll-question",[oy]:"enroll-webauthn",[sy]:"enroll-onprem",[ly]:"enroll-rsa",[cy]:"enroll-duo",[dy]:"enroll-symantec",[hy]:"enroll-yubikey"},[Jg.SELECT_AUTHENTICATOR_ENROLL]:{"select-authenticator-enroll":"enroll-choices"},[Jg.SELECT_AUTHENTICATOR_AUTHENTICATE]:{[ty]:"forgot-password"},[Jg.REENROLL_AUTHENTICATOR]:{[ty]:"password-expired"},[Jg.REENROLL_CUSTOM_PASSWORD_EXPIRY]:{[ty]:"custom-password-expired"},[Jg.REENROLL_CUSTOM_PASSWORD_EXPIRY_WARNING]:{[ty]:"custom-password-expiry-warning"},[Jg.RESET_AUTHENTICATOR]:{[ty]:"forgot-password"},[Jg.CONSENT_ADMIN]:{[Jg.CONSENT_ADMIN]:"admin-consent-required"},[Jg.CONSENT_ENDUSER]:{[Jg.CONSENT_ENDUSER]:"consent-required"}},Pb=(e,t,n,o)=>{if(o&&e===Jg.IDENTIFY)return"forgot-password";{let o=e;return t===ny?o=`${n}`:t&&(o=`${t}`),Ab[e]&&Ab[e][o]?Ab[e][o]:null}};var Nb=xp.extend({Header:Lv,Body:fb,Footer:zv,className:function(){const e=this.options.appState,t=((e,t,n,o)=>{let i=e;t&&(i=i+"--"+t);let r=Pb(e,t,n,o);const a=[i];return r&&a.push(r),a})(e.get("currentFormName"),e.get("authenticatorKey"),e.get("authenticatorMethodType"),e.get("isPasswordRecoveryFlow"));return["siw-main-view"].concat(t).join(" ")},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="siw-main-header"></div><div class="siw-main-body"></div><div class="siw-main-footer"></div>'},useData:!0}),preRender:function(){xp.prototype.preRender.apply(this,arguments),null!==this.Header&&this.add(this.Header,{selector:".siw-main-header",options:this.options}),this.renderForm(),this.add(this.Footer,{selector:".siw-main-footer",options:this.options})},renderForm:function(){let e;this.form&&(this.form.remove(),e=this.form.model.toJSON({verbose:!0}));const t=new(this.createModelClass(this.options.currentViewState,e,this.settings))({formName:this.options.currentViewState.name});e||(e=t.toJSON({verbose:!0})),this.model=t,this.form=this.add(this.Body,{selector:".siw-main-body",options:Object.assign({},this.options,{model:t,optionUiSchemaConfig:e})}).last(),Ss.each(t.attributes,(e,n)=>{n.match(/sub_schema_local_[^ ]+/)&&this.listenTo(t,`change:${n}`,()=>{this.renderForm()})})},createModelClass:function(e,t={}){return function(e={},t={}){const n={},o={formName:"string",useRedirect:"boolean"};return Ob(e,t,n,o),Gs.extend({props:n,local:o})}(e,t)}}),Rb=zv.extend({showForgotPasswordLink:function(){return!this.options.appState.isIdentifierOnlyView()},footerInfo:function(){const e=((e,t)=>{const n=[];if(e.hasRemediationObject(Jg.SELECT_ENROLL_PROFILE)){const e={type:"link",label:vp("oie.registration.form.title","login"),name:"enroll"};Ss.isFunction(t.get("registration.click"))?e.clickHandler=t.get("registration.click"):e.actionPath=Jg.SELECT_ENROLL_PROFILE,n.push(e)}return n})(this.options.appState,this.options.settings);let t;return e.length&&(t=xp.extend({className:"signup-info",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<span>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"registration.signup.label"},data:i,loc:{start:{line:1,column:6},end:{line:1,column:62}}}))+'</span><span class="signup-link"></span>'},useData:!0}
2),initialize:function(){this.add(Mv,".signup-link",{options:e[0]})}})),t},links:function(){const{appState:e,settings:t}=this.options;let n;n=t.get("helpLinks.help")?t.get("helpLinks.help"):t.get("baseUrl")+"/help/login";const o=[{name:"help",label:vp("help","login"),href:n,target:"_blank"}];let i=[];this.showForgotPasswordLink()&&(i=Vv(e,t));const r=[];t.get("helpLinks.custom")&&t.get("helpLinks.custom").forEach(e=>{e.name="custom",e.label=e.text,r.push(e)});const a=[];return t.get("helpLinks.unlock")?a.push({type:"link",label:vp("unlockaccount","login"),name:"unlock",href:t.get("helpLinks.unlock")}):e.hasRemediationObject(Jg.UNLOCK_ACCOUNT)&&a.push({type:"link",label:vp("unlockaccount","login"),name:"unlock",actionPath:Jg.UNLOCK_ACCOUNT}),i.concat(a).concat(o).concat(r)}}),Ib=xp.extend({className:"sign-in-with-idp",template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"socialauth.divider.text"},data:i,loc:{start:{line:1,column:64},end:{line:1,column:118}}}))+"</span></div>"},1:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-piv-container"></div><div class="idp-discovery-container"><label class="idp-discovery-search-label">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"idps.search.label"},data:i,loc:{start:{line:1,column:282},end:{line:1,column:330}}}))+'</label><div class="idp-discovery-search-wrapper"><input type="search" class="idp-discovery-search-input" data-se="idp-search-input" aria-label="'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"idps.search.label"},data:i,loc:{start:{line:1,column:475},end:{line:1,column:523}}}))+'" placeholder="'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"idps.search.typeahead.placeholder"},data:i,loc:{start:{line:1,column:538},end:{line:1,column:602}}}))+'" autocomplete="off"></div><div class="okta-idps-container" data-se="idp-list-container"></div><div class="idp-no-results" data-se="idp-no-results">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"idps.search.no.results"},data:i,loc:{start:{line:1,column:750},end:{line:1,column:803}}}))+"</div></div>"},2:function(e,t,n,o,i){return'<div class="okta-idps-container"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"isSecondaryIdpDisplay"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:138}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"showSearchContainer"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:138},end:{line:1,column:869}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"isPrimaryIdpDisplay"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:869},end:{line:1,column:1005}}}))?r:"")},useData:!0}),events:{"input .idp-discovery-search-input":"_filterIdps"},initialize:function(){const{idpButtons:e}=this.options,t=e.length>10;e.forEach(e=>{const n=e.className&&e.className.includes("piv-button"),o=t&&n?".okta-piv-container":".okta-idps-container";this.add(bp(e),o)})},_filterIdps:function(e){const t=e.target.value.toLowerCase().trim();let n=0;this.$(".okta-idps-container .link-button").each((e,o)=>{const i=(o.textContent||"").toLowerCase().trim(),r=!t||i.includes(t);o.style.display=r?"":"none",r&&n++}),n>0?(this.$(".okta-idps-container").show(),this.$(".idp-no-results").hide()):(this.$(".okta-idps-container").hide(),this.$(".idp-no-results").show())},getTemplateData:function(){const e=xp.prototype.getTemplateData.apply(this,arguments),{idpButtons:t}=this.options,n=t.length>0;return Object.assign(e,{isPrimaryIdpDisplay:n&&this.options.isPrimaryIdpDisplay,isSecondaryIdpDisplay:n&&!this.options.isPrimaryIdpDisplay,showSearchContainer:t.length>10})}}),Db=xp.extend({className:"custom-buttons",template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"socialauth.divider.text"}
2,data:i,loc:{start:{line:1,column:58},end:{line:1,column:112}}}))+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"addSeparateLine"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:132}}}))?r:"")+'<div class="okta-custom-buttons-container primary-auth-container"></div>'},useData:!0}),initialize:function(e){e.customButtons.forEach(e=>{this.add(bp(e),".okta-custom-buttons-container")})},getTemplateData:function(){const e=xp.prototype.getTemplateData.apply(this,arguments);return Object.assign(e,{addSeparateLine:this.options.addSeparateLine})}}),Lb=xp.extend({className:"sign-in-with-device-option",template:_s.template({0:function(e,t,n,o,i){return'<div class="signin-with-ov-description"></div>'},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"authbutton.divider.text"},data:i,loc:{start:{line:1,column:201},end:{line:1,column:255}}}))+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-verify-container">'+(null!=(r=s(n,"if").call(a,null!=t?s(t,"signInWithDeviceIsRequired"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:35},end:{line:1,column:122}}}))?r:"")+"</div>"+(null!=(r=s(n,"unless").call(a,null!=t?s(t,"signInWithDeviceIsRequired"):t,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:128},end:{line:1,column:279}}}))?r:"")},useData:!0}),initialize:function(){var e;const t=this.options.appState,n=t.hasRemediationObject(Jg.LAUNCH_AUTHENTICATOR),o=null==n||null===(e=n.relatesTo)||void 0===e?void 0:e.value;this.add(bp({className:"button",icon:"okta-verify-authenticator",title:vp("oktaVerify.button","login"),click:function(){this.model.get("identifier")&&this.options.settings.set("identifier",encodeURIComponent(this.model.get("identifier")));const e=(null==o?void 0:o.challengeMethod)===Mr.UNIVERSAL_LINK_CHALLENGE;if(e){var n,i;let e=yb(o.href,null===(n=this.options)||void 0===n||null===(i=n.settings)||void 0===i?void 0:i.get("identifier"));ca.redirect(e)}const r=(null==o?void 0:o.challengeMethod)===Mr.APP_LINK_CHALLENGE;if(r){var a,s;let e=yb(o.href,null===(a=this.options)||void 0===a||null===(s=a.settings)||void 0===s?void 0:s.get("identifier"));ca.redirect(e,window,!0)}ca.callAfterTimeout(()=>{this.options.isRequired?t.trigger("saveForm",this.model):t.trigger("invokeAction",Jg.LAUNCH_AUTHENTICATOR,{rememberMe:this.model.get("rememberMe")})},e||r?500:0)}}),".okta-verify-container")},getTemplateData:function(){return{signInWithDeviceIsRequired:!!this.options.isRequired}},postRender:function(){if(this.options.isRequired){var e,t;const n=null===(e=this.options.appState.attributes)||void 0===e||null===(t=e.app)||void 0===t?void 0:t.label,o=n?vp("oktaVerify.appDescription","login",[n]):vp("oktaVerify.description","login");this.$el.find(".signin-with-ov-description").text(o)}}}),Mb=xp.extend({className:"sign-in-with-webauthn-option",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-webauthn-container"></div><div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"authbutton.divider.text"},data:i,loc:{start:{line:1,column:78},end:{line:1,column:132}}}))+"</span></div>"},useData:!0}),initialize:function(){this.add(bp({className:"button",icon:"okta-webauthn-authenticator",title:vp("signinWithWebAuthn.button","login"),click:()=>{this.options.appState.trigger("invokeAction",Jg.LAUNCH_WEBAUTHN_AUTHENTICATOR)}}),".okta-webauthn-container")}}),Ub=xp.extend({className:"sign-in-with-passkeys-option",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-passkeys-container"></div><div class="separation-line"><span>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"authbutton.divider.text"},data:i,loc:{start:{line:1,column:78},end:{line:1,column:132}}}))+"</span></div>"},useData:!0}
2),initialize:function(){this.add(bp({className:"button",icon:"okta-passkeys-authenticator",title:vp("signinWithPasskeys.button","login"),click:()=>{this.options.getCredentialsAndInvokeAction.call(this.options.formView)}}),".okta-passkeys-container")}}),jb=xp.extend({className:"custom-access-denied-error-message",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"message")||(null!=t?a(t,"message"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:i,loc:{start:{line:1,column:18},end:{line:1,column:29}}}):r)+"</p>"},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul class="custom-links">'+(null!=(r=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"links"):t,{name:"each",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:78},end:{line:1,column:182}}}))?r:"")+"</ul>"},2:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li><a href="+c(typeof(r=null!=(r=u(n,"url")||(null!=t?u(t,"url"):t))?r:s)===l?r.call(a,{name:"url",hash:{},data:i,loc:{start:{line:1,column:105},end:{line:1,column:112}}}):r)+' target="_blank" rel="noopener noreferrer">'+c(typeof(r=null!=(r=u(n,"label")||(null!=t?u(t,"label"):t))?r:s)===l?r.call(a,{name:"label",hash:{},data:i,loc:{start:{line:1,column:155},end:{line:1,column:164}}}):r)+"</a></li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"message"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:40}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"links"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:40},end:{line:1,column:194}}}))?r:"")},useData:!0}),getTemplateData:function(){return{message:this.options.message,links:this.options.links}}});const Fb="security.access_denied_custom_message",Vb="WebAuthNAutofill component cleanup",qb=fb.extend({title:function(){return vp("primaryauth.title","login")},save:function(){return vp("oform.next","login")},focus:function(){if(fb.prototype.focus.apply(this,arguments),this.settings.get("features.autoFocus")){const e=this.getInputs().filter(e=>"identifier"===e.options.name)[0],t=this.getInputs().filter(e=>"credentials.passcode"===e.options.name)[0];e&&e.model.get("identifier")&&t&&t.focus()}},initialize:function(){fb.prototype.initialize.apply(this,arguments);const e=this.getUISchema();e.find(e=>"credentials.passcode"===e.name)&&(this.save=vp("oie.primaryauth.submit","login")),this.listenTo(this.model,"errors:clear",function(){this.clearErrors()}),this._shouldAddUsername(e)?this.model.set("identifier",this.settings.get("username")):!this.model.get("identifier")&&this._shouldApplyRememberMyUsername(e)&&this._applyRememberMyUsername()},saveForm:function(){if(!this.settings.get("features.deviceFingerprinting"))return void fb.prototype.saveForm.apply(this,arguments);this.model.trigger("request");(function(e,t){return e.fingerprint({timeout:2e3,container:t})})(this.settings.getAuthClient(),this.$el[0]).then(e=>{this.options.appState.set("deviceFingerprint",e)}).catch(()=>{}).finally(()=>{fb.prototype.saveForm.apply(this,arguments)})},render:function(){fb.prototype.render.apply(this,arguments),this.options.appState.hasRemediationObject(Jg.LAUNCH_AUTHENTICATOR)&&this.add(Lb,".o-form-fieldset-container",!1,!0,{isRequired:!1}),this.options.appState.hasRemediationObject(Jg.LAUNCH_WEBAUTHN_AUTHENTICATOR)&&this.add(Mb,".o-form-fieldset-container",!1,!0,{isRequired:!1}),this.options.appState.hasRemediationObject(Jg.LAUNCH_PASSKEYS_AUTHENTICATOR)&&this.add(Ub,{selector:".o-form-fieldset-container",options:{getCredentialsAndInvokeAction:this.getCredentialsForModalAndInvokeAction,formView:this},prepend:!0});const e=pb(this.options);Array.isArray(e)&&e.length&&(this._addForgotPasswordView(),this._addIdpView(e));const t=this.options.settings.get("customButtons").map(e=>({attributes:{"data-se":e.dataAttr},className:e.className+" default-custom-button",title:e.title||vp(e.i18nKey,"login"),click:e.click}));Array.isArray(t)&&t.length&&this.add(Db,{selector:".o-form-button-bar",options:{customButtons:t,addSeparateLine:!0}})},postRender:function(){fb.prototype.postRender.apply(this,arguments),this.$el.find(".
2identifier-container").remove(),this._hasAutofillUIChallenge()&&this.getCredentialsAndInvokeAction()},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments),{settings:t}=this.options,n="primaryauth.username.tooltip",o="primaryauth.password.tooltip";let i=e.map(e=>{let i={...e};if("identifier"===e.name){_v(n,t)&&(i={...i,explain:vp(n,"login"),"explain-top":!0});const e=this._hasAutofillUIChallenge()&&bf.isConditionalMediationAvailable()?"username webauthn":"username";i={...i,autoComplete:ca.getAutocompleteValue(this.options.settings,e)}}else"credentials.passcode"===e.name&&(i={...i,autoComplete:ca.getAutocompleteValue(this.options.settings,"current-password")},_v(o,t)&&(i={...i,explain:vp(o,"login"),"explain-top":!0}));return i});return!1===this.settings.get("features.showKeepMeSignedIn")&&(i=i.filter(e=>"rememberMe"!==e.name)),i},showCustomFormErrorCallout:function(e,t){var n,o;if(null==e||null===(n=e.responseJSON)||void 0===n||null===(o=n.errorSummaryKeys)||void 0===o||!o.includes(Fb))return!1;const i=null==t?void 0:t.find(e=>e.i18n.key===Fb);if(!i)return!1;const{errorSummary:r}=e.responseJSON,a={type:"error",content:new jb({message:r,links:i.links})};return this.showMessages(wp(a)),!0},remove:function(){fb.prototype.remove.apply(this,arguments),this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)},remediateWithAssertion:function(e,t){var n;if(!e||!t)return;const o=yf.binToStr(null!==(n=e.response.userHandle)&&void 0!==n?n:"");if(Ss.isEmpty(o)){const e=vp("oie.webauthn.error.invalidPasskey","login");return void this.model.trigger("error",this.model,this._generateErrorObject(e))}const i={clientData:yf.binToStr(e.response.clientDataJSON),authenticatorData:yf.binToStr(e.response.authenticatorData),signatureData:yf.binToStr(e.response.signature),userHandle:o};this.options.appState.trigger("invokeAction",t,{credentials:i})},getCredential:async function(e){var t;const n=null===(t=this.options.appState.get("webauthnAutofillUIChallenge"))||void 0===t?void 0:t.challengeData;if(!n||"undefined"==typeof AbortController)return;this.webauthnAbortController&&this.webauthnAbortController.abort(Vb),this.webauthnAbortController=new AbortController;const o=Ss.extend({},n,{challenge:yf.strToBin(n.challenge)});return navigator.credentials.get({mediation:e,publicKey:o,signal:this.webauthnAbortController.signal})},_handleWebAuthnError:function(e){if(e!==Vb&&!bf.isAbortError(e)){if(bf.isNotAllowedError(e)){const e=vp("signin.passkeys.error","login");return void this.model.trigger("error",this.model,this._generateErrorObject(e))}if(this.webauthnAbortController){const t=bv(e);this.model.trigger("error",this.model,this._generateErrorObject(t))}}},getCredentialsAndInvokeAction:async function(){if(await bf.isPasskeyAutofillAvailable())return this.getCredential("conditional").then(e=>{this.remediateWithAssertion(e,Jg.CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR)},e=>{bf.isRelyingPartyIdMismatchError(e)||this._handleWebAuthnError(e)})},getCredentialsForModalAndInvokeAction:async function(){if(!this._isModalPasskeyInFlight){if(this._isModalPasskeyInFlight=!0,this.model.trigger("errors:clear"),!bf.isPasskeyAvailable()){this._isModalPasskeyInFlight=!1;const e=vp("signin.passkeys.error.NotSupportedError","login");return void this.model.trigger("error",this.model,this._generateErrorObject(e))}return this.getCredential("optional").then(e=>{this.remediateWithAssertion(e,Jg.LAUNCH_PASSKEYS_AUTHENTICATOR)},e=>{if(bf.isRelyingPartyIdMismatchError(e)){var t,n;const e=null===(t=this.options.appState.get("webauthnAutofillUIChallenge"))||void 0===t||null===(n=t.challengeData)||void 0===n?void 0:n.rpId,o=vp("signin.passkeys.error.rpIdMismatch","login",[e]);return void this.model.trigger("error",this.model,this._generateErrorObject(o))}this._handleWebAuthnError(e)}).finally(()=>{this._isModalPasskeyInFlight=!1})}},_generateErrorObject:function(e){return{responseJSON:{errorSummary:e}}},_addForgotPasswordView:function(){const e=Vv(this.options.appState,this.options.settings);e.length&&(this.add('<div class="links-primary"></div>',{selector:".o-form-button-bar"}),this.add(Mv,{selector:".links-primary",options:e[0]}))},_addIdpView:function(e){const t=this.options.settings.get("idpDisplay"),n=t&&"PRIMARY"===t.toUpperCase();this.add(Ib,{prepend:n,selector:n?".o-form-fieldset-container":".o-form-button-bar",options:{idpButtons:e,isPrimaryIdpDisplay:n}})},_shouldAddUsername:function(e){return e.find(e=>"identifier"===e.name)&&this.settings.get("username")}
2,_shouldApplyRememberMyUsername:function(e){return e.find(e=>"identifier"===e.name)&&this.settings.get("features.rememberMe")},_applyRememberMyUsername:function(){const e=Uf();e&&this.model.set("identifier",e)},_hasAutofillUIChallenge:function(){return this.options.appState.hasRemediationObject(Jg.CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR)}});var Bb=Nb.extend({Body:qb,createModelClass:function(){const e=Nb.prototype.createModelClass.apply(this,arguments),t="error.username.required",n="error.password.required",o=e.prototype.props;return e.extend({validate:e=>{const i={},r=o.identifier&&!(null!=e&&e.identifier),a=o["credentials.passcode"]&&!(null!=e&&e["credentials.passcode"]);return r&&_v(t,this.settings)&&(i.identifier=vp(t,"login")),a&&_v(n,this.settings)&&(i["credentials.passcode"]=vp(n,"login")),i}})},initialize:function(){this.Footer=Rb.extend({showForgotPasswordLink:()=>{const e=pb(this.options);return!(this.options.appState.isIdentifierOnlyView()||Array.isArray(e)&&0!==e.length)}})},postRender:function(){Nb.prototype.postRender.apply(this,arguments);const e=this.options.appState;this.$el.find(".js-sign-up").click(function(){return e.trigger("invokeAction",Jg.SELECT_ENROLL_PROFILE),!1})}}),$b=Bb.extend({render:function(){Bb.prototype.render.apply(this,arguments),this.$el.find(".sign-in-with-idp .separation-line").hide(),this.$el.find(".button-primary").hide()}}),Hb=zv.extend({links:function(){return Hv(this.options.appState,this.options.settings).concat((e=this.options.appState).getRemediationAuthenticationOptions(Jg.SELECT_AUTHENTICATOR_AUTHENTICATE).length>1?[{type:"link",label:vp("oie.verification.switch.authenticator","login"),name:"switchAuthenticator",formName:Jg.SELECT_AUTHENTICATOR_AUTHENTICATE}]:e.getRemediationAuthenticationOptions(Jg.SELECT_AUTHENTICATOR_ENROLL).length>=1?[{type:"link",label:vp("oie.enroll.switch.authenticator","login"),name:"switchAuthenticator",formName:Jg.SELECT_AUTHENTICATOR_ENROLL}]:[]);var e}});function zb(e){return e.find(e=>e.name===Jg.REDIRECT_IDVERIFY).idp.name}function Wb(e){var t,n;const o=e.find(e=>e.name===Jg.REDIRECT_IDVERIFY);return((null==o||null===(t=o.idp)||void 0===t?void 0:t.id)===_y||(null==o||null===(n=o.idp)||void 0===n?void 0:n.id)===ky)&&(null==o?void 0:o.idvMetadata)||void 0}var Kb=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="bg-helper auth-beacon auth-beacon-factor '+l("function"==typeof(r=null!=(r=c(n,"className")||(null!=t?c(t,"className"):t))?r:s)?r.call(a,{name:"className",hash:{},data:i,loc:{start:{line:1,column:245},end:{line:1,column:258}}}):r)+' custom-app-logo" data-se="factor-beacon" role="img" aria-label="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.auth.logo.aria.label"},data:i,loc:{start:{line:1,column:323},end:{line:1,column:378}}}))+'">'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="bg-helper auth-beacon auth-beacon-factor '+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"className")||(null!=t?a(t,"className"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"className",hash:{},data:i,loc:{start:{line:1,column:441},end:{line:1,column:454}}}):r)+'" data-se="factor-beacon">'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div data-type="beacon-container" class="beacon-container"><div class="beacon-blank auth-beacon"><div class="beacon-blank js-blank-beacon-border auth-beacon-border"></div></div>'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"logoUri"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:177},end:{line:1,column:487}}}))?r:"")+'<div class="okta-sign-in-beacon-border auth-beacon-border"></div></div></div >'},useData:!0}
2),postRender:function(){xp.prototype.postRender.apply(this,arguments);const e=this.getTemplateData();e.logoUri&&(this.el.querySelector(".custom-app-logo").style.backgroundImage=`url(${e.logoUri})`)},getTemplateData:function(){var e,t,n;const o=null===(e=this.options)||void 0===e?void 0:e.appState,i=null==o?void 0:o.get("remediations");let r=(null==o||null===(t=o.get("currentAuthenticator"))||void 0===t?void 0:t.logoUri)||(null==o||null===(n=o.get("currentAuthenticatorEnrollment"))||void 0===n?void 0:n.logoUri);if(!r&&i){const e=Wb(i);r=null==e?void 0:e.logoLink}return{className:this.getBeaconClassName()||"",logoUri:r}},getBeaconClassName:function(){return"undefined-user"}});const Gb=Kb.extend({authenticatorKey:function(){return this.options.appState.get("authenticatorKey")},idvName:function(){var e,t;const n=null===(e=this.options.appState.get("remediations"))||void 0===e?void 0:e.find(e=>e.name===Jg.REDIRECT_IDVERIFY);return null==n||null===(t=n.idp)||void 0===t?void 0:t.id},displayName:function(){var e,t;return(null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e?void 0:e.displayName)||(null===(t=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===t?void 0:t.displayName)},getBeaconClassName:function(){return e=Ss.result(this,"authenticatorKey"),t=Ss.result(this,"idvName"),n=Ss.result(this,"displayName"),e===oy&&n===Gy?"mfa-passkeys":ov({authenticatorKey:e}).iconClassName||function(e){let t={};switch(e){case"IDV_PERSONA":t={iconClassName:"mfa-idv-persona"};break;case"IDV_CLEAR":t={iconClassName:"mfa-idv-clear"};break;case"IDV_INCODE":t={iconClassName:"mfa-idv-incode"};break;case _y:t={iconClassName:"mfa-idv-standard"};break;case ky:t={iconClassName:"mfa-idv-oin"}}return t}(t).iconClassName;var e,t,n}});var Yb=Nb.extend({Header:Lv.extend({HeaderBeacon:Gb}),Footer:Hb});const Jb=fb.extend({initialize:function(){fb.prototype.initialize.apply(this,arguments),this.model.set("useRedirect",!0),this.add('<div class="okta-waiting-spinner"></div>')}}),Qb=Yb.extend({postRender:function(){Yb.prototype.postRender.apply(this,arguments);const e=this.options.appState.get("messages")||{};if(this.settings.get("features.skipIdpFactorVerificationBtn")&&!Array.isArray(e.value)&&this.model.get("formName")!==Jg.REDIRECT_IDVERIFY){const e=this.options.appState,t=e.get("authenticatorKey"),n=e.get("currentAuthenticator")||e.get("currentAuthenticatorEnrollment");Gr.isSafari()&&"external_idp"===t&&null!=n&&n.logoUri&&(sl(`#${Mr.WIDGET_CONTAINER_ID}`).addClass("no-beacon"),this.$(".beacon-container").hide()),this.$(".o-form-button-bar").hide(),this.$(".okta-waiting-spinner").show(),this.form.trigger("save",this.model)}else this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}}),Xb=xp.extend({tagName:"p",className:"privacy-footer",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$2:"<a class='inline-link' data-se='privacy-policy' target='_blank' rel='noopener noreferrer'>$2</a>",$1:"<a class='inline-link' data-se='terms-of-use' target='_blank' rel='noopener noreferrer'>$1</a>",arguments:"idpName",bundle:"login",code:"oie.idv.idp.desc.termsOfUse"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:283}}}))+"</p><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{arguments:"idpName",bundle:"login",code:"oie.idv.idp.desc.agreement"},data:i,loc:{start:{line:1,column:290},end:{line:1,column:367}}}))+"</p>"},useData:!0}),getTemplateData:function(){return{idpName:zb(this.options.appState.get("remediations"))}}}),Zb=Jb.extend({title:function(){return vp("oie.idv.idp.title","login",[zb(this.options.appState.get("remediations"))])},subtitle:function(){return vp("oie.idv.idp.desc","login",[zb(this.options.appState.get("remediations"))])},save:function(){return vp("oie.optional.authenticator.button.title","login")}});var ew=Qb.extend({Body:Zb,Footer:zv.extend({postRender:function(){this.add(Xb);const{termsOfUse:e,privacyPolicy:t}=function(e){const t=zb(e);let n,o;switch(null==t?void 0:t.toUpperCase()){case"PERSONA":n="https://withpersona.com/legal/terms-of-use",o="https://withpersona.com/legal/privacy-policy";break;case"CLEAR":n="https://www.clearme.com/member-terms",o="https://www.clearme.com/privacy-policy";break;case"INCODE":n="https://incode.id/terms",o="https://incode.id/privacy";break;default:{const t=Wb(e);n=null==t?void 0:t.termsOfUse,o=null==t?void 0:t.privacyPolicy;break}}return{termsOfUse:n,privacyPolicy:o}}(this.options.appState.get("remediations"));
2this.$el.find('[data-se="terms-of-use"]').attr("href",e),this.$el.find('[data-se="privacy-policy"]').attr("href",t)}})});const tw=fb.extend({title:function(){return vp("password.reset.title.generic","login")},save:function(){return vp("oform.next","login")},getUISchema:function(){return fb.prototype.getUISchema.apply(this,arguments).map(e=>{let t={...e};return"identifier"===e.name&&(t={...t,autoComplete:ca.getAutocompleteValue(this.options.settings,"username")}),t})}});var nw=Nb.extend({Body:tw,Footer:zv}),ow=Lv.extend({HeaderBeacon:Gb.extend({authenticatorKey:ey})});const iw={AUTHENTICATION:"idx.return.link.otponly.enter.code.on.sign.in.page",RECOVERY:"idx.return.link.otponly.enter.code.on.password.reset.page",UNLOCK_ACCOUNT:"idx.return.link.otponly.enter.code.on.account.unlock.page",ENROLLMENT:"idx.return.link.otponly.enter.code.on.sign.up.page"},rw=xp.extend({getTemplateData:function(){return((e,t)=>{var n,o;const i=t.get("app"),r=t.get("client"),a=iw[t.get("idx").context.intent],s=vp(a||"idx.enter.otp.in.original.tab","login");let l,c,u,p;return null!=i&&i.label&&(l=vp("idx.return.link.otponly.app","login",[i.label])),r&&(c=vp("idx.return.link.otponly.browser.on.os","login",[r.browser,r.os]),u=c.includes("Android")||c.includes("iOS"),p=((e={})=>e.city||e.country?e.state?vp("geolocation.formatting.all","login",[e.city,e.state,e.country]):vp("geolocation.formatting.partial","login",[e.city,e.country]):null)(r.location)),{showRequestInfo:l||c||p,appName:l,browserOnOsString:c,isMobileDevice:u,geolocation:p,otp:e.get("otp")||(null===(n=t.get("currentAuthenticator"))||void 0===n||null===(o=n.contextualData)||void 0===o?void 0:o.otp),enterCodeOnFlowPage:s}})(this.options.settings,this.options.appState)}}).extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info"><div class="okta-form-label">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"idx.return.link.otponly.request"},data:i,loc:{start:{line:1,column:198},end:{line:1,column:260}}}))+"</div></div>"},1:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"isMobileDevice"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:346},end:{line:1,column:540}}}))?r:"")+'<div data-se="otp-browser-os">'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"browserOnOsString")||(null!=t?l(t,"browserOnOsString"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"browserOnOsString",hash:{},data:i,loc:{start:{line:1,column:570},end:{line:1,column:591}}}):a)+"</div></div>"},2:function(e,t,n,o,i){return'<i class="enduser-email-otp-only--icon icon--smartphone" aria-hidden="true"></i>'},3:function(e,t,n,o,i){return'<i class="enduser-email-otp-only--icon icon--desktop" aria-hidden="true"></i>'},4:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info"><i class="enduser-email-otp-only--icon icon--app" aria-hidden="true"></i><div data-se="otp-app">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"appName")||(null!=t?a(t,"appName"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"appName",hash:{},data:i,loc:{start:{line:1,column:763},end:{line:1,column:774}}}):r)+"</div></div>"},5:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-otp-only--info"><i class="enduser-email-otp-only--icon icon--location" aria-hidden="true"></i><div data-se="otp-geolocation">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"geolocation")||(null!=t?a(t,"geolocation"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"geolocation",hash:{},data:i,loc:{start:{line:1,column:963},end:{line:1,column:978}}}):r)+"</div></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="enter-code-on-page">'+u(typeof(a=null!=(a=p(n,"enterCodeOnFlowPage")||(null!=t?p(t,"enterCodeOnFlowPage"):t))?a:l)===c?a.call(s,{name:"enterCodeOnFlowPage",hash:{},data:i,loc:{start:{line:1,column:30}
vendor: 4,474 bytes, line 2
2,end:{line:1,column:53}}}):a)+"</p><h1 class='otp-value no-translate'>"+u(typeof(a=null!=(a=p(n,"otp")||(null!=t?p(t,"otp"):t))?a:l)===c?a.call(s,{name:"otp",hash:{},data:i,loc:{start:{line:1,column:92},end:{line:1,column:99}}}):a)+"</h1>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"showRequestInfo"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:104},end:{line:1,column:279}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"browserOnOsString"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:279},end:{line:1,column:610}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"appName"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:610},end:{line:1,column:793}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"geolocation"):t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:793},end:{line:1,column:997}}}))?r:"")+"<br><p class='otp-warning'>"+u((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"idx.return.link.otponly.warning.text"},data:i,loc:{start:{line:1,column:1024},end:{line:1,column:1091}}}))+"</p>"},useData:!0})}),aw=e=>{const t=Object.assign({method:"GET",contentType:"application/json"},e);return sl.ajax(t)},sw=e=>e.deviceRemediation&&e.deviceRemediation.value&&e.deviceRemediation.value.action,lw="idx.error.code.access_denied.device_assurance.remediation",cw=`${lw}.additional_help_`,uw=`${lw}.additional_help_custom`,pw=`${lw}.option_index`,dw=`${lw}.title`,hw=`${lw}.explanation_`;var fw=xp.extend({className:"end-user-remediation-messages-view",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="end-user-remediation-title">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"title")||(null!=t?a(t,"title"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:i,loc:{start:{line:1,column:53},end:{line:1,column:62}}}):r)+"</div>"},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="end-user-remediation-explanation">'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"explanation")||(null!=t?a(t,"explanation"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"explanation",hash:{},data:i,loc:{start:{line:1,column:140},end:{line:1,column:155}}}):r)+"</div>"},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="end-user-remediation-options">'+(null!=(r=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"remediationOptions"):t,{name:"each",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:236},end:{line:1,column:605}}}))?r:"")+"</div>"},3:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="'+e.escapeExpression("function"==typeof(a=null!=(a=l(n,"className")||(null!=t?l(t,"className"):t))?a:e.hooks.helperMissing)?a.call(s,{name:"className",hash:{},data:i,loc:{start:{line:1,column:276},end:{line:1,column:289}}}):a)+'">'+(null!=(r=l(n,"if").call(s,null!=t?l(t,"link"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.program(5,i,0),data:i,loc:{start:{line:1,column:291},end:{line:1,column:590}}}))?r:"")+"</div>"},4:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"link")||(null!=t?u(t,"link"):t))?r:s)===l?r.call(a,{name:"link",hash:{},data:i,loc:{start:{line:1,column:312},end:{line:1,column:320}}}):r)+'" target="_blank" rel="noopener noreferrer">'+c(typeof(r=null!=(r=u(n,"message")||(null!=t?u(t,"message"):t))?r:s)===l?r.call(a,{name:"message",hash:{},data:i,loc:{start:{line:1,column:364},end:{line:1,column:375}}}):r)+"</a>"},5:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"deviceRemediationAction"):t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.program(7,i,0),data:i,loc:{start:{line:1,column:387}
2,end:{line:1,column:583}}}))?r:""},6:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<button class="enduser-remediation-button-link" id="'+c(typeof(r=null!=(r=u(n,"deviceRemediationAction")||(null!=t?u(t,"deviceRemediationAction"):t))?r:s)===l?r.call(a,{name:"deviceRemediationAction",hash:{},data:i,loc:{start:{line:1,column:470},end:{line:1,column:497}}}):r)+'" data-se="'+c(typeof(r=null!=(r=u(n,"deviceRemediationAction")||(null!=t?u(t,"deviceRemediationAction"):t))?r:s)===l?r.call(a,{name:"deviceRemediationAction",hash:{},data:i,loc:{start:{line:1,column:508},end:{line:1,column:535}}}):r)+'">'+c(typeof(r=null!=(r=u(n,"message")||(null!=t?u(t,"message"):t))?r:s)===l?r.call(a,{name:"message",hash:{},data:i,loc:{start:{line:1,column:537},end:{line:1,column:548}}}):r)+"</button>"},7:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression("function"==typeof(r=null!=(r=a(n,"message")||(null!=t?a(t,"message"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"message",hash:{},data:i,loc:{start:{line:1,column:565},end:{line:1,column:576}}}):r)},8:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a href='#' target='_blank' rel='noopener noreferrer' class='additional-help'>$1</a>",bundle:"login",code:"idx.error.code.access_denied.device_assurance.remediation.additional_help_custom"},data:i,loc:{start:{line:1,column:695},end:{line:1,column:897}}}))},9:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a href='#' target='_blank' rel='noopener noreferrer' class='additional-help'>$1</a>",bundle:"login",code:"idx.error.code.access_denied.device_assurance.remediation.additional_help_default"},data:i,loc:{start:{line:1,column:905},end:{line:1,column:1108}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"title"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:75}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"explanation"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:75},end:{line:1,column:168}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"remediationOptions"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:168},end:{line:1,column:618}}}))?r:"")+'<div class="end-user-remediation-help-and-contact">'+(null!=(r=s(n,"if").call(a,null!=t?s(t,"useCustomHelpText"):t,{name:"if",hash:{},fn:e.program(8,i,0),inverse:e.program(9,i,0),data:i,loc:{start:{line:1,column:669},end:{line:1,column:1115}}}))?r:"")+"</div>"},useData:!0}),getTemplateData:function(){const e=this.options.messages,t=[];let n=null,o=null,i=!1;return e.forEach(e=>{const{i18n:{key:r,params:a=[]},links:s,message:l}=e;if(r===dw)n=vv(e);else if(r.startsWith("idx.device_assurance.grace_period.warning.title")){if(a.length>0){const e=a[0],t=new Date(e),o=Jp(t,this.options.languageTags);n=o?ra(r,"login",[o]):l}}else r.startsWith(hw)?o=vv(e):r.startsWith(cw)?(i=r===uw,s&&s[0]&&s[0].url&&(this.additionalHelpUrl=s[0].url)):t.push(function(e){let t=null,n=null;return e.links&&e.links[0]&&e.links[0].url?t=e.links[0].url:sw(e)&&(n=e.deviceRemediation.value.action),{message:vv(e),link:t,deviceRemediationAction:n,className:e.i18n.key===pw?"end-user-remediation-option":"end-user-remediation-action"}}(e))}),{title:n,explanation:o,remediationOptions:t,useCustomHelpText:i}},render:function(){xp.prototype.render.apply(this,arguments),this.additionalHelpUrl&&this.$el.find(".additional-help").attr("href",this.additionalHelpUrl)},postRender:function(){Array.isArray(this.options.messages)&&this.options.messages.filter(e=>sw(e)).map(e=>
2e.deviceRemediation.value).forEach(e=>{this.$el.find(`#${e.action}`).click(function(t){t.preventDefault(),(e=>e&&"LOOPBACK"===e.remediationType)(e)&&(e=>{const t=e.domain,n=e.ports,o=n.length;let i=0;const r={remediationPath:e.remediationPath,actionPath:e.action,probeTimeoutMillis:e.probeTimeoutMillis,isSuccess:!1};let a=Promise.resolve();n.map(e=>`${t}:${e}`).forEach(t=>{r.isSuccess||(a=a.then(()=>((e,t)=>{return(n=`${e}/probe`,o=t.probeTimeoutMillis,aw({url:n,timeout:o})).then(()=>((e,t)=>aw({url:e,method:"GET",timeout:t}))(`${e}/${t.remediationPath}/${t.actionPath}`,t.probeTimeoutMillis).then(()=>{t.isSuccess=!0})).catch(()=>(ea(`Something unexpected happened while we were checking url: ${e}.`),sl.Deferred().reject()));var n,o})(t,r)).catch(()=>{i+=1,ea(`Authenticator is not listening on: ${t}.`),i>=o&&!r.isSuccess&&(ea("No available ports. Loopback server failed and using fallback mechanism."),((e,t)=>{switch(e.type){case"APP_LINK":ca.executeOnVisiblePage(()=>{ca.redirect(e.href,window,!0)});break;case"MESSAGE":{const o=document.getElementById(Mr.WIDGET_CONTAINER_ID);if(!o)return void ea("Cannot find okta-sign-in container to display message");const i=o.querySelectorAll(`[data-se="${t}"]`);i&&i[0]&&(i[0].outerHTML="idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required_manual_install"===(n=e).message.i18n.key?_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",bundle:"login",code:"idx.error.code.access_denied.device_assurance.remediation.android.zero.trust.android_device_policy_app_required_manual_install"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:194}}}))},useData:!0})():vv(n.message));break}}var n})(e.fallback,e.action))}))})})(e)})})}});const mw="idx.return.link.expired",gw="idx.enter.otp.in.original.tab",yw="idx.error.server.safe.mode",vw="oie.selfservice.unlock_user.success.message",bw="idx.return.to.original.tab",ww="idx.operation.cancelled.on.other.device",_w="idx.device.activated",kw="idx.device.not.activated.consent.denied",xw="idx.device.not.activated.internal.error",Sw="idx.transferred.to.new.tab",Tw="idx.expired.activation.token",Ew="idx.missing.activation.token",Cw="idx.request.activation.email",Ow="idx.activating.inactive.user",Aw="oie.registration.is.not.enabled",Pw="oie.forgot.password.is.not.enabled",Nw=[Sw,"idx.return.stale","idx.return.error","idx.email.verification.required",bw,mw,ww,"idx.operation.cancelled.by.user",gw],Rw=[kw,xw],Iw=[_w,...Rw],Dw=[vw,bw,Sw,ww,...Iw,"oie.selfservice.unlock_user.challenge.failed.permissions","oie.selfservice.reset.password.not.allowed",gw],Lw={[mw]:"oie.email.return.link.expired.title",[vw]:"account.unlock.unlocked.title",[_w]:"device.code.activated.success.title",[Aw]:"oie.registration.form.title",[Pw]:"password.reset.title.generic",[Tw]:"oie.activation.request.email.title.expire",[Cw]:"oie.activation.request.email.title.submitted",[Ow]:"oie.activation.request.email.title.suspended",[Ew]:"oie.activation.request.email.title.invalid",[kw]:"device.code.activated.error.title",[xw]:"device.code.activated.error.title",[bw]:"oie.consent.enduser.email.allow.title",[gw]:"idx.return.link.otponly.your.verification.code"},Mw=fb.extend({noButtonBar:!0,postRender:function(){if(fb.prototype.postRender.apply(this,arguments),this.$el.addClass("terminal-state"),this.options.appState.containsMessageWithI18nKey(Iw)){const e=this.options.appState.containsMessageWithI18nKey(_w)?"success-24-green":"error-24-red";this.$(".o-form-head").before('<div class="device-code-terminal--icon-container"><span class="device-code-terminal--icon '+e+'"></span></div>')}},title:function(){return this.getTerminalViewTitle()},getTerminalViewTitle:function(){if(this.options.appState.containsMessageStartingWithI18nKey(yw))return vp("oie.safe.mode.title","login");const e=Object.keys(Lw).find(e=>this.options.appState.containsMessageWithI18nKey(e));return e?vp(Lw[e],"login"):void 0},prepareMessageForCustomView:function(e){let t=!1;return this.options.appState.containsMessageWithI18nKey(gw)?(this.add(rw),t=!0):this.options.appState.containsMessageStartingWithI18nKey("security.access_de
2nied_custom_message")?(this.add(wp({type:"error",content:new jb({message:e.value[0].message,links:e.value[0].links})})),t=!0):this.options.appState.containsMessageStartingWithI18nKey("idx.error.code.access_denied.device_assurance.remediation.")&&(this.add(wp({type:"error",content:new fw({messages:e.value})})),t=!0),t},showMessages:function(){const e=this.options.appState.get("messages");let t,n=!1;this.options.appState.containsMessageWithI18nKey(ww)?(t=vp("idx.operation.cancelled.on.other.device","login"),e.value.push({message:vp("oie.consent.enduser.deny.description","login")})):this.options.appState.containsMessageWithI18nKey(bw)?(t=vp("oie.consent.enduser.email.allow.description","login"),e.value.push({message:vp("oie.return.to.original.tab","login")})):this.options.appState.containsMessageWithI18nKey("tooManyRequests")?t=vp("oie.tooManyRequests","login"):this.options.appState.containsMessageWithI18nKey(mw)?e.value[0].class="ERROR":n=this.prepareMessageForCustomView(e),t&&Array.isArray(null==e?void 0:e.value)&&(e.value[0].message=t),this.options.appState.set("messages",e),n||fb.prototype.showMessages.call(this)}}),Uw=zv.extend({links:function(){return this.options.appState.containsMessageStartingWithI18nKey(yw)?qv(this.options.appState):this.options.appState.containsMessageWithI18nKey(Rw)?[{type:"link",label:vp("oie.try.again","login"),name:"try-again",href:window.location,className:"button button-primary text-align-c"}]:this.options.appState.hasActionObject("cancel")||this.options.appState.containsMessageWithI18nKey(Dw)||this.options.settings.get("features.hideSignOutLinkInMFA")||this.options.settings.get("features.mfaOnlyFlow")?void 0:(({settings:e,appState:t})=>{const n={};return null!=e&&e.get("backToSignInUri")?n.href=e.get("backToSignInUri"):null!=e&&e.get("oauth2Enabled")?n.clickHandler=()=>{t.trigger("restartLoginFlow")}:n.href=null==e?void 0:e.get("baseUrl"),[{type:"link",label:vp("goback","login"),name:"go-back",...n}]})(this.options)}});var jw=Nb.extend({initialize:function(){Nb.prototype.initialize.apply(this,arguments),this.options.appState.containsMessageWithI18nKey(Nw)&&(this.Header=ow)},Body:Mw,Footer:Uw});const Fw="security.access_denied_custom_message",Vw=fb.extend({title:function(){let e=vp("oie.success.text.signingIn","login");const t=this.options.appState.get("app"),n=this.options.appState.get("user");if(!this.redirectView||"NONE"===this.redirectView)return e=vp("oie.success.text.signingIn.with.ellipsis","login"),e;if(Ss.isEmpty(t))return e;const{label:o,name:i}=t,{identifier:r}=n||{},a=o||i;return a&&r&&!this.settings.get("features.showIdentifier")?e=vp("oie.success.text.signingIn.with.appName.and.identifier","login",[a,r]):a&&(e=vp("oie.success.text.signingIn.with.appName","login",[a])),e},showMessages:function(){if(this.isUnlockSuccess()){const e=".o-form-error-container",t=vp("oie.selfservice.unlock_user.landing.to.app.signing.in.message","login");return void this.add(`<div class="ion-messages-container"><p>${t}</p></div>`,e)}if(this.options.appState.containsMessageStartingWithI18nKey(Fw)){const{message:e,links:t}=this.options.appState.get("messages").value.find(e=>e.i18n.key===Fw);return void this.add(wp({type:"error",content:new jb({message:e,links:t})}))}fb.prototype.showMessages.call(this)},isUnlockSuccess:function(){return this.options.appState.containsMessageWithI18nKey("oie.selfservice.unlock_user.landing.to.app.success.message")},noButtonBar:!0,initialize:function(){fb.prototype.initialize.apply(this,arguments),this.redirectView=this.settings.get("interstitialBeforeLoginRedirect"),this.model.set("useRedirect",!0),this.trigger("save",this.model)},render:function(){fb.prototype.render.apply(this,arguments),"DEFAULT"===this.redirectView&&this.add('<div class="okta-waiting-spinner"></div>')}});var qw=Nb.extend({Body:Vw});const Bw=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="ion-messages-container"><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"countDownCounterValue",bundle:"login",code:"poll.form.message"},data:i,loc:{start:{line:1,column:39},end:{line:1,column:157}}}))+'</p></div><div class="hide okta-waiting-spinner"></div>'},useData:!0}
2),getTemplateData:function(){return{countDownCounterValue:this.options}}}),$w=fb.extend(Object.assign({title:function(){return vp("poll.form.title","login")},noButtonBar:!0,initialize:function(){fb.prototype.initialize.apply(this,arguments);const e=this.options.appState.getCurrentViewState().refresh;this.refreshTimeout=setTimeout(()=>{this.$el.find(".okta-waiting-spinner").show(),setTimeout(()=>this.saveForm(this.model),200)},e)},render:function(){fb.prototype.render.apply(this,arguments),this.countDownCounterValue=Math.ceil(this.options.appState.getCurrentViewState().refresh/Wv),this.add(new Bw(this.countDownCounterValue)),this.startCountDown(".ion-messages-container span",Wv)},remove:function(){fb.prototype.remove.apply(this,arguments),clearTimeout(this.refreshTimeout)},triggerAfterError:function(){fb.prototype.triggerAfterError.apply(this,arguments),clearTimeout(this.refreshTimeout),this.stopCountDown(),this.$el.find(".o-form-fieldset-container").empty()},startCountDown:function(e,t){this.countDown&&clearInterval(this.countDown),this.counterEl=this.$el.find(e),this.countDown=setInterval(()=>{"0"!==this.counterEl.text()&&this.counterEl.text(this.counterEl.text()-1)},t,this)},stopCountDown:function(){this.countDown&&clearInterval(this.countDown)}}));var Hw=Nb.extend({Body:$w});const zw=xp.extend({className:"consent-title detail-row",titleText:()=>vp("oie.consent.scopes.admin.title","login"),hasIssuer:!0,template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"clientURI")||(null!=t?u(t,"clientURI"):t))?r:s)===l?r.call(a,{name:"clientURI",hash:{},data:i,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" title="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:i,loc:{start:{line:1,column:73},end:{line:1,column:84}}}):r)+'" target="_blank">'},1:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+c(typeof(r=null!=(r=u(n,"customLogo")||(null!=t?u(t,"customLogo"):t))?r:s)===l?r.call(a,{name:"customLogo",hash:{},data:i,loc:{start:{line:1,column:169},end:{line:1,column:183}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:i,loc:{start:{line:1,column:190},end:{line:1,column:201}}}):r)+'" aria-hidden="true" />'},2:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+c(typeof(r=null!=(r=u(n,"defaultLogo")||(null!=t?u(t,"defaultLogo"):t))?r:s)===l?r.call(a,{name:"defaultLogo",hash:{},data:i,loc:{start:{line:1,column:275},end:{line:1,column:290}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:i,loc:{start:{line:1,column:297},end:{line:1,column:308}}}):r)+'" aria-hidden="true" />'},3:function(e,t,n,o,i){return"</a>"},4:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="issuer no-translate"><span>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"issuer")||(null!=t?a(t,"issuer"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"issuer",hash:{},data:i,loc:{start:{line:1,column:513},end:{line:1,column:523}}}):r)+"</span></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",u=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=p(n,"if").call(s,null!=t?p(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:109}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:109},end:{line:1,column:338}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:338},end:{line:1,column:366}}}))?r:"")+'<h1><span class="title-text"><b class="no-translate">'+u(typeof(a=null!=(a=p(n,"appName")||(null!=t?p(t,"appName"):t))?a:l)===c?a.call(s,{name:"appName",hash:{},data:i,loc:{start:{line:1,column:419},end:{line:1,column:430}}}):a)+"</b>&nbsp;"+u(typeof(a=null!=(a=p(n,"titleText")||(null!=t?p(t,"titleText"):t))?a:l)===c?a.call(s,{name:"titleText",hash:{},data:i,loc:{start:{line:1,column:440},end:{line:1,column:453}}}):a)+"</span>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"issuer"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:460}
2,end:{line:1,column:543}}}))?r:"")+"</h1>"},useData:!0}),getTemplateData:function(){const{appState:e}=this.options,{label:t,clientUri:n,logo:o}=e.get("app"),{issuer:i}=e.get("authentication"),r=null==o?void 0:o.href,a=vp("logo.for.the.app.alt.text","login"),s=Ss.escape(t);return{customLogo:r,defaultLogo:"/img/logos/default.png",clientURI:null==n?void 0:n.href,issuer:this.hasIssuer?null==i?void 0:i.uri:null,altText:a,appName:s,titleText:this.titleText()}}});var Ww=fb.extend({noButtonBar:!1,noCancelButton:!1,buttonOrder:["cancel","save"],save:()=>vp("consent.required.consentButton","login"),cancel:()=>vp("consent.required.cancelButton","login"),title:!1,events:{'click input[data-type="save"]':function(){this.setConsent(!0)}},setConsent:function(e){this.model.set("consent",e)},cancelForm:function(){this.setConsent(!1),this.options.appState.trigger("saveForm",this.model)}}),Kw=Nb.extend({Header:zw,Body:Ww,createModelClass:function(e){const t=Nb.prototype.createModelClass.apply(this,arguments),{uiSchema:n}=e,{scopes:o}=n[0],i=o.map(({name:e,displayName:t,description:n})=>{const o=`consent.scopes.${e}`,i=`${o}.label`,r=`${o}.desc`,a=gv(i),s=gv(r);return{name:e,displayName:a?vp(i,"login"):t,description:s?vp(r,"login"):n,isCustomized:!a}});return t.extend({props:{scopes:{type:"array",value:i}},local:{consent:{type:"boolean",value:!1}},toJSON:function(){return{consent:this.get("consent")}}})}});const Gw=xp.extend({className:"consent-footer",template:_s.template({0:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="terms-of-service" href="'+c("function"==typeof(a=null!=(a=u(n,"termsOfService")||(null!=t?u(t,"termsOfService"):t))?a:l)?a.call(s,{name:"termsOfService",hash:{},data:i,loc:{start:{line:1,column:56},end:{line:1,column:74}}}):a)+'" target="_blank">'+c((u(n,"i18n")||t&&u(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"consent.required.termsOfService"},data:i,loc:{start:{line:1,column:92},end:{line:1,column:154}}}))+"</a>"+(null!=(r=u(n,"if").call(s,null!=t?u(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:158},end:{line:1,column:226}}}))?r:"")},1:function(e,t,n,o,i){return'<span class="no-translate">&#8226</span>'},2:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="privacy-policy" href="'+l("function"==typeof(r=null!=(r=c(n,"privacyPolicy")||(null!=t?c(t,"privacyPolicy"):t))?r:s)?r.call(a,{name:"privacyPolicy",hash:{},data:i,loc:{start:{line:1,column:286},end:{line:1,column:303}}}):r)+'" target="_blank">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"consent.required.privacyPolicy"},data:i,loc:{start:{line:1,column:321},end:{line:1,column:382}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"termsOfService"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:233}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"privacyPolicy"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:233},end:{line:1,column:393}}}))?r:"")},useData:!0}),getTemplateData:function(){const e=this.options.appState.get("app");return{termsOfService:e.termsOfService&&e.termsOfService.href,privacyPolicy:e.privacyPolicy&&e.privacyPolicy.href}}});var Yw=zw.extend({titleText:()=>vp("oie.consent.scopes.enduser.title","login"),hasIssuer:!1}),Jw=xp.extend({className:"consent-description detail-row",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"consent.required.description"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:62}}}))+"</p>"},useData:!0}
2)}),Qw=Kw.extend({Header:Yw,Footer:Gw,postRender:function(){const e=this.$el.find(".scope-list"),t=(new Jw).render().el;e.after(t)}}),Xw=Tp.views.forms.inputs.CheckBox.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<input type="checkbox" name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:29},end:{line:1,column:37}}}):r)+'" id="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:43},end:{line:1,column:54}}}):r)+'"/><label for="'+c(typeof(r=null!=(r=u(n,"inputId")||(null!=t?u(t,"inputId"):t))?r:s)===l?r.call(a,{name:"inputId",hash:{},data:i,loc:{start:{line:1,column:69},end:{line:1,column:80}}}):r)+'" data-se-for-name="'+c(typeof(r=null!=(r=u(n,"name")||(null!=t?u(t,"name"):t))?r:s)===l?r.call(a,{name:"name",hash:{},data:i,loc:{start:{line:1,column:100},end:{line:1,column:108}}}):r)+'"><b>'+c(typeof(r=null!=(r=u(n,"placeholder")||(null!=t?u(t,"placeholder"):t))?r:s)===l?r.call(a,{name:"placeholder",hash:{},data:i,loc:{start:{line:1,column:113},end:{line:1,column:128}}}):r)+"</b><p>"+c(typeof(r=null!=(r=u(n,"desc")||(null!=t?u(t,"desc"):t))?r:s)===l?r.call(a,{name:"desc",hash:{},data:i,loc:{start:{line:1,column:135},end:{line:1,column:143}}}):r)+"</p></label>"},useData:!0}),getLocalizedLabel:function(){const e=`consent.scopes.${this.options.options.scopeName}.label`;return gv(e)?vp(e,"login"):this.options.placeholder||this.options.options.scopeName},getLocalizedDesc:function(){const e=`consent.scopes.${this.options.options.scopeName}.desc`;return gv(e)?vp(e,"login"):this.options.options.desc},isCustomizedScope:function(){return!gv(`consent.scopes.${this.options.options.scopeName}.label`)},enable:function(){this.options.options.mutable&&this.$(":input").prop("disabled",!1)},editMode:function(){if(this.$el.html(this.template(Ss.extend(Ss.omit(this.options,"placeholder"),{placeholder:this.getLocalizedLabel(),desc:this.getLocalizedDesc()}))),this.$(":checkbox").prop("checked",this.getModelValue()||!1),this.$("input").customInput(),this.model.trigger("form:resize"),!this.options.options.mutable){const e=this.$("input").get(0);this.$(e.parentElement).addClass("o-form-read-mode"),this.$(":checkbox").prop("disabled",!0)}return("openid"===this.options.options.scopeName||this.isCustomizedScope())&&(this.$("label > b").addClass("no-translate"),this.isCustomizedScope()&&this.$("label > p").addClass("no-translate")),this}});const Zw=zw.extend({hasIssuer:!1,template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+c(typeof(r=null!=(r=u(n,"clientURI")||(null!=t?u(t,"clientURI"):t))?r:s)===l?r.call(a,{name:"clientURI",hash:{},data:i,loc:{start:{line:1,column:26},end:{line:1,column:39}}}):r)+'" class="client-logo-link" title="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:i,loc:{start:{line:1,column:73},end:{line:1,column:84}}}):r)+'" target="_blank">'},1:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo custom-logo" src="'+c(typeof(r=null!=(r=u(n,"customLogo")||(null!=t?u(t,"customLogo"):t))?r:s)===l?r.call(a,{name:"customLogo",hash:{},data:i,loc:{start:{line:1,column:169},end:{line:1,column:183}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:i,loc:{start:{line:1,column:190},end:{line:1,column:201}}}):r)+'" aria-hidden />'},2:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l="function",c=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img class="client-logo default-logo" src="'+c(typeof(r=null!=(r=u(n,"defaultLogo")||(null!=t?u(t,"defaultLogo"):t))?r:s)===l?r.call(a,{name:"defaultLogo",hash:{},data:i,loc:{start:{line:1,column:268},end:{line:1,column:283}}}):r)+'" alt="'+c(typeof(r=null!=(r=u(n,"altText")||(null!=t?u(t,"altText"):t))?r:s)===l?r.call(a,{name:"altText",hash:{},data:i,loc:{start:{line:1,column:290},end:{line:1,column:301}}}):r)+'" aria-hidden />'},3:function(e,t,n,o,i){return"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:109}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"customLogo"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:109},end:{line:1,column:324}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"clientURI"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:324},end:{line:1,column:352}}}))?r:"")+'<h1><span class="title-text">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$2:"<p>$2</p>",$1:"<b class='no-translate'>$1</b>",arguments:"appName",bundle:"login",code:"oie.consent.scopes.granular.title"},data:i,loc:{start:{line:1,column:381}
2,end:{line:1,column:517}}}))+"</span></h1>"},useData:!0})}),e_=Ww.extend({cancel:fb.prototype.cancel,getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments);return e.forEach(e=>{"checkbox"===e.type&&Ss.assign(e,{input:Xw,options:{desc:e.desc,mutable:e.mutable,scopeName:e.name.substring(e.name.indexOf(".")+1)}})}),e}}),t_=xp.extend({className:"consent-description",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.consent.scopes.granular.description"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:73}}}))+"</p>"},useData:!0})});var n_=Nb.extend({Header:Zw,Body:e_,Footer:Gw,postRender:function(){const e=this.$el.find(".o-form-fieldset-container");e.before((new t_).render().el),this.$(":disabled").each(function(){e.append(sl(this).closest(".o-form-fieldset"))})}});const o_=_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-consent--info no-translate"><i class="enduser-email-consent--icon icon--desktop"></i><div>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"browser")||(null!=t?a(t,"browser"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"browser",hash:{},data:i,loc:{start:{line:1,column:131},end:{line:1,column:142}}}):r)+"</div></div>"},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="enduser-email-consent--info no-translate"><i class="enduser-email-consent--icon icon--app"></i><div>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"app")||(null!=t?a(t,"app"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"app",hash:{},data:i,loc:{start:{line:1,column:284},end:{line:1,column:291}}}):r)+"</div></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"browser"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:161}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"app"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:161},end:{line:1,column:310}}}))?r:"")},useData:!0}),i_=Ww.extend({className:"enduser-email-consent",title:function(){return vp("oie.consent.enduser.title","login")},save:function(){return vp("oie.consent.enduser.accept.label","login")},cancel:function(){return vp("oie.consent.enduser.deny.label","login")},initialize:function(){fb.prototype.initialize.apply(this,arguments);const e=o_(this.model.pick("browser","app"));this.add(e)},getUISchema:function(){return fb.prototype.getUISchema.apply(this,arguments).filter(e=>"consent"!==e.name)}});var r_=Yb.extend({Header:ow,buttonOrder:["cancel","save"],postRender:function(){this.$el.find(".o-form-button-bar").find(".button-primary").removeClass("button-primary")},Body:i_,createModelClass:function({requestInfo:e}){const t=Yb.prototype.createModelClass.apply(this,arguments),n=e.find(({name:e})=>"browser"===e),o=e.find(({name:e})=>"appName"===e),i=Object.assign({browser:{type:"string",value:null==n?void 0:n.value},app:{type:"string",value:null==o?void 0:o.value}},t.prototype.local);return t.extend({local:i,toJSON:function(){return{consent:this.get("consent")}}})}}),a_=Lv.extend({HeaderBeacon:Gb.extend({authenticatorKey:ry})});const s_=Eb.extend({pollingCancelAction:Kv,getDeviceChallengePayload:function(){return this.options.currentViewState.relatesTo.value},doChallenge:function(){_b(this,Gv)},onPollingFail:function(){Eb.prototype.onPollingFail.apply(this,arguments);const e={label:vp("loopback.polling.cancel.link.with.form.error","login")};this.options.appState.trigger("updateFooterLink",e)},showCustomFormErrorCallout:function(e,t){const n=e.responseJSON;let o={type:"error",className:"okta-verify-uv-callout-content",subtitle:n.errorSummary};if(n.errorSummaryKeys&&n.errorSummaryKeys.some(e=>e.includes("auth.factor.signedNonce.error"))&&(o.title=vp("user.fail.verifyIdentity","login")),n.errorSummaryKeys&&n.errorSummaryKeys.some(e=>
2e.includes("security.access_denied_custom_message"))){const e=null==t?void 0:t.find(e=>"security.access_denied_custom_message"===e.i18n.key);if(!e)return!1;o={type:"error",content:new jb({message:n.errorSummary,links:e.links})}}return this.showMessages(wp(o)),!0}}),l_=zv.extend({initialize:function(){this.listenTo(this.options.appState,"updateFooterLink",this.handleUpdateFooterLink),this.isFallbackApproach()&&!this.isFallbackDelayed()?zv.prototype.initialize.apply(this,arguments):this.backLink=this.add(Mv,{options:{name:"cancel-authenticator-challenge",label:vp("loopback.polling.cancel.link","login"),clickHandler:()=>{kb(this.options.appState,Kv,"USER_CANCELED",null)}}}).last()},handleUpdateFooterLink:function(e){this.isFallbackApproach()&&!this.isFallbackDelayed()||(this.backLink&&this.backLink.remove(),this.backLink=this.add(Mv,{options:Bv(this.options.settings,e)[0]}).last())},isFallbackApproach:function(){return[Mr.CUSTOM_URI_CHALLENGE,Mr.UNIVERSAL_LINK_CHALLENGE,Mr.APP_LINK_CHALLENGE].includes(this.options.currentViewState.relatesTo.value.challengeMethod)},isFallbackDelayed:function(){return this.options.currentViewState.relatesTo.value.challengeMethod===Mr.APP_LINK_CHALLENGE}});var c_=Nb.extend({Header:a_,Body:s_,Footer:l_});const u_=fb.extend({noButtonBar:!0,className:"ion-form device-challenge-poll",title:function(){return vp("deviceTrust.sso.redirectText","login")},initialize:function(){var e,t;fb.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"error",()=>{this.$(".spinner").hide()}),this.add('<div class="spinner"></div>');const n="get"===(null===(e=this.options.currentViewState)||void 0===e||null===(t=e.method)||void 0===t?void 0:t.toLowerCase());this.model.set("useRedirect",n),this.trigger("save",this.model)}});var p_=Nb.extend({Body:u_});const d_=fb.extend({title:function(){return vp("primaryauth.title","login")},noButtonBar:!0,initialize:function(){fb.prototype.initialize.apply(this,arguments),this.add(Lb,{selector:".o-form-fieldset-container",bubble:!1,prepend:!0,options:{isRequired:!0}})}}),h_=Rb.extend({hasBackToSignInLink:!1});var f_=Nb.extend({Body:d_,Footer:h_});const{Notification:m_}=Tp.views.components,{Clipboard:g_}=Tp.util,y_=e=>{const t=(e.platform||"").toLowerCase(),n=e.challengeMethod,o=e.name,i=t===Mr.IOS,r=t===Mr.ANDROID&&"APP_LINK"===n,a=t===Mr.ANDROID&&"LOOPBACK"===n;return{signInUrl:e.signInUrl,isIOS:i,enrollmentType:o,isAndroidLoopback:a,isAndroidAppLink:r,appStoreLink:i?Mr.OKTA_VERIFY_APPLE_APP_STORE_URL:Mr.OKTA_VERIFY_GOOGLE_PLAY_STORE_URL,orgName:e.orgName}},v_=xp.extend({getTemplateData:function(){const e=this.options.appState.get("deviceEnrollment");return y_(e)}}),b_=v_.extend({template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.copyLink"},data:i,loc:{start:{line:1,column:120},end:{line:1,column:175}}}))+'<a data-clipboard-text="'+l("function"==typeof(r=null!=(r=c(n,"appStoreLink")||(null!=t?c(t,"appStoreLink"):t))?r:s)?r.call(a,{name:"appStoreLink",hash:{},data:i,loc:{start:{line:1,column:199},end:{line:1,column:215}}}):r)+'" class="button link-button copy-clipboard-button">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.copyLink"},data:i,loc:{start:{line:1,column:266},end:{line:1,column:316}}}))+"</a></li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.pasteLink"},data:i,loc:{start:{line:1,column:329},end:{line:1,column:385}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step3"},data:i,loc:{start:{line:1,column:394},end:{line:1,column:441}}}))+"</li>"},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"enroll.oda.android.step1"},data:i,loc:{start:{line:1,column:482}
2,end:{line:1,column:537}}}))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.explanation.p1"},data:i,loc:{start:{line:1,column:43},end:{line:1,column:95}}}))+"</p><ol>"+(null!=(r=p(n,"if").call(s,null!=t?p(t,"isIOS"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:103},end:{line:1,column:453}}}))?r:"")+(null!=(r=p(n,"if").call(s,null!=t?p(t,"isAndroidLoopback"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:453},end:{line:1,column:549}}}))?r:"")+"<li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step1"},data:i,loc:{start:{line:1,column:553},end:{line:1,column:600}}}))+"</li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step2"},data:i,loc:{start:{line:1,column:609},end:{line:1,column:656}}}))+'<p class="org-signin-link"><span class="no-translate">'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:i,loc:{start:{line:1,column:710},end:{line:1,column:723}}}):a)+'</span></p><a data-clipboard-text="'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:i,loc:{start:{line:1,column:758},end:{line:1,column:771}}}):a)+'" class="button link-button copy-org-clipboard-button">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.org.copyLink"},data:i,loc:{start:{line:1,column:826},end:{line:1,column:880}}}))+"</a></li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step6"},data:i,loc:{start:{line:1,column:893},end:{line:1,column:940}}}))+"</li></ol>"},useData:!0}),postRender:function(){g_.attach(".copy-clipboard-button").done(()=>{let e=new m_({message:vp("enroll.mdm.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1}),g_.attach(".copy-org-clipboard-button").done(()=>{let e=new m_({message:vp("enroll.oda.org.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}}),w_=v_.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.explanation"},data:i,loc:{start:{line:1,column:43},end:{line:1,column:109}}}))+'</p><p class="subtitle">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.subtitile1 "},data:i,loc:{start:{line:1,column:133},end:{line:1,column:199}}}))+"</p><ul><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step1"},data:i,loc:{start:{line:1,column:211},end:{line:1,column:271}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step2"},data:i,loc:{start:{line:1,column:280},end:{line:1,column:340}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step3"},data:i,loc:{start:{line:1,column:349},end:{line:1,column:409}}}))+'</li></ul><p class="subtitle">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.subtitile2 "},data:i,loc:{start:{line:1,column:439},end:{line:1,column:505}}}))+"</p><ol><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step4"}
2,data:i,loc:{start:{line:1,column:517},end:{line:1,column:577}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{arguments:"signInUrl",bundle:"login",code:"enroll.oda.with.account.step5"},data:i,loc:{start:{line:1,column:586},end:{line:1,column:668}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step6"},data:i,loc:{start:{line:1,column:677},end:{line:1,column:737}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.with.account.step7"},data:i,loc:{start:{line:1,column:746},end:{line:1,column:806}}}))+"</li></ol>"},useData:!0})}),__=v_.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,u="function",p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.without.account.explanation"},data:i,loc:{start:{line:1,column:43},end:{line:1,column:112}}}))+"</p><ol><li>"+(null!=(r=(p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{arguments:"appStoreLink",bundle:"login",code:"enroll.oda.without.account.step1"},data:i,loc:{start:{line:1,column:124},end:{line:1,column:214}}}))?r:"")+"</li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step1"},data:i,loc:{start:{line:1,column:223},end:{line:1,column:270}}}))+"</li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.step2"},data:i,loc:{start:{line:1,column:279},end:{line:1,column:326}}}))+'<p class="org-signin-link"><span class="no-translate">'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:i,loc:{start:{line:1,column:380},end:{line:1,column:393}}}):a)+'</span></p><a data-clipboard-text="'+c(typeof(a=null!=(a=p(n,"signInUrl")||(null!=t?p(t,"signInUrl"):t))?a:l)===u?a.call(s,{name:"signInUrl",hash:{},data:i,loc:{start:{line:1,column:428},end:{line:1,column:441}}}):a)+'" class="button link-button copy-org-clipboard-button">'+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.org.copyLink"},data:i,loc:{start:{line:1,column:496},end:{line:1,column:550}}}))+"</a></li><li>"+c((p(n,"i18n")||t&&p(t,"i18n")||l).call(s,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.without.account.step4"},data:i,loc:{start:{line:1,column:563},end:{line:1,column:626}}}))+"</li></ol>"},useData:!0}),postRender:function(){g_.attach(".copy-org-clipboard-button").done(()=>{let e=new m_({message:vp("enroll.oda.org.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}}),{Notification:k_}=Tp.views.components,{Clipboard:x_}=Tp.util;var S_=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<div>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.explanation.mdm"},data:i,loc:{start:{line:1,column:5},end:{line:1,column:58}}}))+"</div><ol><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.copyLink"},data:i,loc:{start:{line:1,column:72},end:{line:1,column:127}}}))+'<a data-clipboard-text="'+l("function"==typeof(r=null!=(r=c(n,"enrollmentLink")||(null!=t?c(t,"enrollmentLink"):t))?r:s)?r.call(a,{name:"enrollmentLink",hash:{},data:i,loc:{start:{line:1,column:151},end:{line:1,column:169}}}):r)+'" class="button link-button copy-clipboard-button">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.copyLink"},data:i,loc:{start:{line:1,column:220},end:{line:1,column:270}}}))+"</a></li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.pasteLink"},data:i,loc:{start:{line:1,column:283},end:{line:1,column:339}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",arguments:"vendor",bundle:"login",code:"enroll.mdm.step.followInstructions"},data:i,loc:{start:{line:1,column:348},end:{line:1,column:473}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.mdm.step.relogin"},data:i,loc:{start:{line:1,column:482}
2,end:{line:1,column:536}}}))+"</li></ol>"},useData:!0}),getTemplateData:function(){return this.options.appState.get("deviceEnrollment")},postRender:function(){x_.attach(".copy-clipboard-button").done(()=>{let e=new k_({message:vp("enroll.mdm.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}});const T_=fb.extend({noButtonBar:!0,className:"device-enrollment-terminal"}),E_=fb.extend({attributes:{"data-se":"android-app-link-setup-options-terminal"},title:function(){return vp("enroll.title.oda.with.account","login")},initialize:function(){fb.prototype.initialize.apply(this,arguments);const e=y_(this.options.appState.get("deviceEnrollment"));this.model.set("hasOVAccount","no"),this.addInput({label:()=>vp("enroll.subtitle.fastpass","login",[e.orgName]),"label-top":!0,options:{no:vp("enroll.option.noaccount.fastpass","login"),yes:vp("enroll.option.account.fastpass","login")},name:"hasOVAccount",type:"radio"})},saveForm:function(){this.$el.find(".o-form-error-container").empty(),this.options.appState.trigger("updateDeviceEnrollmentView","yes"===this.model.get("hasOVAccount"))}}),C_=T_.extend({attributes:{"data-se":"android-oda-app-link-with-ov-account-terminal"},title:function(){return vp("enroll.title.oda.with.account","login")},initialize:function(){T_.prototype.initialize.apply(this,arguments),this.add(w_)}}),O_=T_.extend({attributes:{"data-se":"android-oda-app-link-without-ov-account-terminal"},title:function(){return vp("enroll.title.oda.without.account","login")},initialize:function(){T_.prototype.initialize.apply(this,arguments),this.add(__)}}),A_=T_.extend({attributes:{"data-se":"loopback-terminal"},title:function(){return vp("enroll.title.oda","login")},initialize:function(){T_.prototype.initialize.apply(this,arguments),this.add(b_)}}),P_=T_.extend({attributes:{"data-se":"mdm-terminal"},title:function(){return vp("enroll.title.mdm","login")},initialize:function(){T_.prototype.initialize.apply(this,arguments),this.add(S_)}}),N_=Mv.extend({postRender:function(){this.$el.click(e=>{e.preventDefault(),this.options.appState.trigger("switchBackToPreselect")})}});var R_=Nb.extend({initialize:function(){Nb.prototype.initialize.apply(this,arguments),this.listenTo(this.options.appState,"updateDeviceEnrollmentView",this.handleUpdateDeviceEnrollmentView),this.listenTo(this.options.appState,"switchBackToPreselect",this.handleSwitchBackToPreselect);const e=y_(this.options.appState.get("deviceEnrollment"));switch(this.enrollmentType=(e.enrollmentType||"").toLowerCase(),this.enrollmentType){case Mr.ODA:this.Header=a_,this.Body=e.isAndroidAppLink?E_:A_;break;case Mr.MDM:case Mr.WS1:this.Body=P_}},handleUpdateDeviceEnrollmentView:function(e){this.Body=e?C_:O_,this.backLink=this.add(N_,{options:{name:"back-to-preselect",label:vp("oform.back","login")}}).last(),this.renderForm()},handleSwitchBackToPreselect:function(){this.Body=E_,this.backLink&&this.backLink.remove(),this.render()}});const I_=function(e,t,n){e.add(xp.extend({tagName:"section",template:_s.template({0:function(e,t,n,o,i){return"<li>"+e.escapeExpression(e.lambda(t,t))+"</li>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="password-authenticator--heading">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"password.complexity.requirements.header"},data:i,loc:{start:{line:1,column:45},end:{line:1,column:115}}}))+'</div><ul class="password-authenticator--list">'+(null!=(r=s(n,"each").call(a,null!=t?s(t,"rulesList"):t,{name:"each",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:162},end:{line:1,column:207}}}))?r:"")+"</ul>"},useData:!0}),getTemplateData:()=>({rulesList:t}),attributes:{"data-se":"password-authenticator--rules"}}),{prepend:n,selector:".o-form-fieldset-container"})},D_=fb.extend({title:function(){if(this.options.appState.getCurrentViewState().href.endsWith("idp/idx/enroll/update")){var e;const t=this.options.appState.attributes;return null!=t&&null!==(e=t.uiDisplay)&&void 0!==e&&e.label?vp("oie.registration.form.customize.label","login",[t.uiDisplay.label]):vp("oie.primaryauth.submit","login")}return vp("oie.registration.form.title","login")},save:function(){if(this.options.appState.getCurrentViewState().href.endsWith("idp/idx/enroll/update")){var e;const t=this.options.appState.attributes;return null!=t&&null!==(e=t.uiDisplay)&&void 0!==e&&e.buttonLabel?vp("oie.registration.form.customize.buttonLabel","login",[t.uiDisplay.buttonLabel]):vp("oie.registration.form.update.submit","login")}return vp("oie.registration.form.submit","login")},saveForm:function(){this.settings.preRegistrationSubmit(this.model.toJSON(),e=>{this.model.attributes={...this.model.attributes,...this.model.parse(e)},fb.prototype.saveForm.call(this,this.model)},e=>this.model.trigger("error",this.model,{responseJSON:e}))},triggerAfterError:function(e,t){var n;(null==t||null===(n=t.responseJSON)||void 0===n?void 0:n.errorCauses)&&Array.isArray(t.responseJSON.errorCauses)&&t.responseJSON.errorCauses.forEac
2h(e=>{var t;null!==(t=e.errorKey)&&void 0!==t&&t.includes("password.passwordRequirementsNotMet")&&(e.errorSummary=vp("registration.error.password.passwordRequirementsNotMet","login"))}),this.options.appState.trigger("afterError",t)}}),L_=zv.extend({links:function(){const e=[];return this.options.appState.hasRemediationObject(Jg.SELECT_IDENTIFY)&&e.push({type:"link",label:vp("haveaccount","login"),name:"back",actionPath:Jg.SELECT_IDENTIFY}),e}});var M_=Nb.extend({Body:D_,Footer:L_,createModelClass:function(e,t,n){const o=JSON.parse(JSON.stringify(e.uiSchema));let i=Nb.prototype.createModelClass.apply(this,arguments,e);return i=i.extend({toJSON:function(){const t=Gs.prototype.toJSON.call(this,arguments,e);if(t.userProfile){const n=e.uiSchema,o=t.userProfile;Ss.each(o,(e,t)=>{if(Ss.isEmpty(e)){const e=n.find(e=>e.name===`userProfile.${t}`);Ss.isUndefined(e)||e.required||delete o[t]}})}return t}}),n.parseRegistrationSchema(o,n=>{Ss.isEqual(n,e.uiSchema)||(e.uiSchema=n,i=Nb.prototype.createModelClass.call(this,e,t))},e=>{i=i.extend({local:{parseSchemaError:{value:e,type:"object"},...i.prototype.local}})}),i},postRender:function(){Nb.prototype.postRender.apply(this,arguments);const e=this.model.get("parseSchemaError");e&&this.model.trigger("error",this.model,{responseJSON:e}),this.renderPasswordPolicySettings();const t=pb(this.options);Array.isArray(t)&&t.length&&this._addIdpView(t)},renderPasswordPolicySettings:function(){var e;const t=this.options.currentViewState.value.filter(e=>"credentials"===e.name)[0],n=null==t||null===(e=t.form)||void 0===e?void 0:e.value;var o,i;n&&n.filter(e=>"passcode"===e.name)&&I_(this,Zy(null==t||null===(o=t.relatesTo)||void 0===o||null===(i=o.value)||void 0===i?void 0:i.settings),!1)},_addIdpView:function(e){const t=this.options.settings.get("idpDisplay"),n=t&&"PRIMARY"===t.toUpperCase();this.add(Ib,{prepend:n,selector:n?".o-form-fieldset-container":".o-form-button-bar",options:{idpButtons:e,isPrimaryIdpDisplay:n}})}});const U_=fb.extend({className:"profile-update",title:function(){return vp("oie.profile.additional.title","login")},save:function(){return vp("enroll.choices.submit.finish","login")},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments);return e.forEach(e=>{"userProfile.secondEmail"===e.name&&(e.explain=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",bundle:"login",code:"oie.profile.additional.secondemail.subtitle"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:112}}}))?r:""},useData:!0})}))}),e},initialize:function(){fb.prototype.initialize.apply(this,arguments)}}),j_=zv.extend({className:"auth-footer side-by-side-links",links:function(){const{uiSchema:e}=this.options.currentViewState,t=e.filter(e=>!1===e.required);if(e.length===t.length)return qv(this.options.appState,vp("oie.enroll.skip.profile","login"));this.$el.removeClass(".side-by-side-links")}});var F_=Nb.extend({Body:U_,Footer:j_,postRender:function(){Nb.prototype.postRender.apply(this,arguments),this.options.appState.getSchemaByName("userProfile.secondEmail")&&this.model.set("userProfile.secondEmail","")}});const V_=fb.extend({title:function(){return vp("oie.activation.request.email.title.expire","login")},save:function(){return vp("oie.activation.request.email.button","login")}});var q_=Nb.extend({Body:V_});const B_=fb.extend({title:function(){return vp("oie.select.authenticators.enroll.title","login")},subtitle:function(){return this.options.settings.get("brandName")?vp("oie.select.authenticators.enroll.subtitle.custom","login",[this.options.settings.get("brandName")]):vp("oie.select.authenticators.enroll.subtitle","login")},noButtonBar:!0});var $_=Nb.extend({Body:B_});const H_=fb.extend({title:function(){return this.isPasswordRecoveryFlow()?vp("password.reset.title.generic","login"):vp("oie.select.authenticators.verify.title","login")},subtitle:function(){if(this.isPasswordRecoveryFlow())return vp("oie.password.reset.verification","login");if(this.isUnlockSuccess()){const e=".o-form-error-container",t=vp("oie.select.authenticators.verify.subtitle","login");return void this.add(`<div class="ion-messages-container"><p>${t}</p></div>`,e)}return vp("oie.select.authenticators.verify.subtitle","login")},isPasswordRecoveryFlow:function(){return this.options.appState.get("isPasswordRecovery")},noButtonBar:!0,showMessages:function(){if(this.isUnlockSuccess()){let e={};return e.subtitle=vp("oie.selfservice.unlock_user.landing.to.app.success.message","login"),e.type="success",e=wp(e),void fb.prototype.showMessages.call(this,e)}fb.prototype.showMessages.call(this)},isUnlockSuccess:function(){return this.options.appState.containsMessageWithI18nKey("oie.selfservice.unlock_user.landing.to.app.success.message")}});var z_=Nb.extend({Body:H_,Footer:zv.extend({links:function(){return Hv(this.options.appState,this.options.settings)}})});const W_=fb.extend({noButtonBar:!0,title:function(){return vp("oie.select.authenticators.verify.title","login")},subtitle:function(){return vp("oie.select.authenticators.verify.subtitle","login")}});var K_=Nb.extend({Body:W_});const G_=fb.extend({title:function(){return vp("oie.password.enroll.title","login")},save:function(){return vp("oform.next","login")},initialize:function(){fb.prototype.initialize.apply(this,arguments);const e=this.getPasswordPolicySettings();this.displayPasswordPolicy(e)},displayPasswordPolicy:function(e){if(e){const t=Zy(e);I_(this,t,!0)}},triggerAfterError:function(e,t){t.responseJSON=function(e){var t,n;(null===(t=e.errorCauses)||void 0===t?void 0:t.length)>0&&Array.isArray(e.errorCauses[0].errorSummary)&&e.errorCauses[0].errorSummary.length>0&&(e.errorCauses[0].errorSummary=e.errorCauses[0].errorSummary[0],"password.passwordRequirementsNotMet"===((null===(n=e.errorCauses[0].errorKey)||void 0===n?void 0:n.length)>0&&e.errorCauses[0].errorKey[0])&&(e.errorCauses[0].errorSummary=ra("registration.error.password.passwordRequirementsNotMet","login")));return e}
2(t.responseJSON),this.options.appState.trigger("afterError",t)},getPasswordPolicySettings:function(){var e;const t=this.options.currentViewState.relatesTo;return null==t||null===(e=t.value)||void 0===e?void 0:e.settings},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments),t={name:"confirmPassword",label:vp("oie.password.confirmPasswordLabel","login"),type:"password","label-top":!0,params:{showPasswordToggle:this.settings.get("showPasswordToggle")}},n=[];for(let o of e)n.push(o),"credentials.passcode"===o.name&&n.push(t);return n}});var Y_=Yb.extend({Body:G_,createModelClass:function(){const e=Nb.prototype.createModelClass.apply(this,arguments),t=Object.assign({confirmPassword:{type:"string",required:!0}},e.prototype.local);return e.extend({local:t,validate:function(){return this.get("credentials.passcode")!==this.get("confirmPassword")&&this.get("credential.value")!==this.get("confirmPassword")?{confirmPassword:vp("password.error.match","login")}:null}})}});const J_=fb.extend({title:function(){return vp("oie.password.challenge.title","login")},save:function(){return vp("mfa.challenge.verify","login")},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments),{settings:t}=this.options,n="primaryauth.password.tooltip",o=e.find(({name:e})=>"credentials.passcode"===e);return o&&_v(n,t)&&(o.explain=vp(n,"login"),o["explain-top"]=!0),e}}),Q_=Hb.extend({links:function(){let e=Hb.prototype.links.apply(this,arguments);return e=Vv(this.options.appState,this.options.settings).concat(e),e}});var X_=Yb.extend({Body:J_,Footer:Q_});const Z_=Y_.prototype.Body.extend({className:"password-authenticator",title:function(){return this.options.settings.get("brandName")?vp("password.expired.title.specific","login",[this.options.settings.get("brandName")]):vp("password.expired.title.generic","login")},save:function(){return vp("password.expired.submit","login")},getPasswordPolicySettings:function(){var e,t;return(null===(e=this.options.appState.get("recoveryAuthenticator"))||void 0===e?void 0:e.settings)||(null===(t=this.options.appState.get("enrollmentAuthenticator"))||void 0===t?void 0:t.settings)}});var ek=Y_.extend({Body:Z_});const tk=Y_.prototype.Body.extend({className:"password-authenticator",subtitle:function(){if(this.options.settings.get("brandName"))return vp("password.expiring.subtitle.specific","login",[this.options.settings.get("brandName")])},title:function(){const e=(this.getPasswordPolicySettings()||{}).daysToExpiry;return e>0?vp("password.expiring.title","login",[e]):vp(0===e?"password.expiring.today":"password.expiring.soon","login")},save:function(){return vp("password.expired.submit","login")},showMessages:function(){if(this.options.settings.get("brandName"))return null;Y_.prototype.Body.prototype.showMessages.apply(this,arguments)}}),nk=zv.extend({links:function(){const e=[];return this.options.appState.hasRemediationObject("skip")&&e.push({type:"link",label:vp("password.expiring.later","login"),name:"skip",actionPath:"skip"}),e}});var ok=Y_.extend({Body:tk,Footer:nk});const ik=Y_.prototype.Body.extend({className:"password-authenticator",title:function(){return this.options.settings.get("brandName")?vp("password.reset.title.specific","login",[this.options.settings.get("brandName")]):vp("password.reset.title.generic","login")},save:function(){return vp("password.reset","login")}});var rk=Y_.extend({Body:ik}),ak=xp.extend({postRender:function(){this.showCalloutAfterTimeout()},showCalloutAfterTimeout:function(){var e;Dy()||(e=Date.now(),sessionStorage.setItem(Ny,e)),this.showMeInterval=setInterval(()=>{const e=Dy();Date.now()-e>=3e4&&(this.$el.removeClass("hide"),clearInterval(this.showMeInterval),Iy())},250)},remove:function(){var e,t;xp.prototype.remove.apply(this,arguments),clearInterval(this.showMeInterval);const n=this.options.appState.get("currentFormName"),o=(null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e?void 0:e.resend)||(null===(t=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===t?void 0:t.resend),i=this.options.model.get("formName")!==n;!Dy()||o&&!i||Iy()}});const sk=ak.extend({className:"phone-authenticator-challenge__resend-warning hide",events:{"click a.resend-link":"handleResendLink"},modelEvents:{error:"handleError"},resendActionKey:"currentAuthenticatorEnrollment-resend",initialize:function(){const e="sms"===this.model.get("mode")?vp("oie.phone.verify.sms.resendText","login"):vp("oie.phone.verify.call.resendText","login"),t="sms"===this.model.get("mode")?vp("oie.phone.verify.sms.resendLinkText","login"):vp("oie.phone.verify.call.resendLinkText","login");this.add(wp({content:`${e}&nbsp;<a class='resend-link'>${t}</a>`,type:"warning"}))},hideResendViewAndShowAfterTimeout:function(){this.el.classList.contains("hide")||this.el.classList.add("hide"),this.showCalloutAfterTimeout()},handleResendLink:function(e){null==e||e.preventDefault(),this.options.appState.trigger("invokeAction",this.resendActionKey),this.hideResendViewAndShowAfterTimeout()},handleError:function(){this.hideResendViewAndShowAfterTimeout()}}),lk=fb.extend(Object.assign({className:"phone-authenticator-challenge",title:function(){return vp("oie.phone.verify.title","login")},save:function(){return vp("mfa.challenge.verify","login")},initialize:function(){fb.prototype.initialize.apply(this,arguments);const e="sms"===this.model.get("mode")?vp("oie.phone.verify.sms.codeSentText","login"):vp("mfa.
2calling","login"),t=vp("oie.phone.verify.enterCodeText","login"),n=vp("oie.phone.carrier.charges","login"),o=this.model.get("phoneNumber")!==vp("oie.phone.alternate.title","login"),i=o?"strong no-translate nowrap":"",r=o?this.model.get("nickname"):"",a=r?` (${r})`:"",s=a?`<span class="${(a?"no-translate authenticator-verify-nickname":"")||""}"}>${a}.</span>`:'<span class="no-translate">.</span>';this.add(`<div class="okta-form-subtitle" data-se="o-form-explain">${e} <span class="${i}">${this.model.escape("phoneNumber")}</span>${s}&nbsp;${t}<p>${n}</p></div>`,{prepend:!0,selector:".o-form-fieldset-container"})},postRender:function(){fb.prototype.postRender.apply(this,arguments),this.add(sk,{selector:".o-form-info-container",prepend:!0})}}));var ck=Yb.extend({Body:lk,createModelClass:function(){const e=this.options.currentViewState.relatesTo,{methods:t,profile:n,nickname:o}=(null==e?void 0:e.value)||{},i=Nb.prototype.createModelClass.apply(this,arguments),r=Object.assign({mode:{value:t[0].type,type:"string"},phoneNumber:{value:null!=n&&n.phoneNumber?n.phoneNumber:vp("oie.phone.alternate.title","login"),type:"string"},nickname:{value:o||"",type:"string"}},i.prototype.local);return i.extend({local:r})}});const uk=sk.extend({className:"phone-authenticator-enroll--warning hide",resendActionKey:"currentAuthenticator-resend"}),pk=ck.prototype.Body.extend({className:"phone-authenticator-enroll",title:function(){return vp("oie.phone.enroll.title","login")},postRender:function(){fb.prototype.postRender.apply(this,arguments),this.add(uk,{selector:".o-form-info-container",prepend:!0})}});var dk=ck.extend({Body:pk});const hk=fb.extend({className:"phone-authenticator-enroll",title:function(){return vp("oie.phone.enroll.title","login")},subtitle:function(){return"voice"===this.model.get("authenticator.methodType")?vp("oie.phone.enroll.call.subtitle","login"):vp("oie.phone.enroll.sms.subtitle","login")},render:function(){fb.prototype.render.apply(this,arguments),this.el.querySelector(".phone-authenticator-enroll__phone-code").innerText=`+${this.model.get("phoneCode")}`},handlePhoneCodeChange:function(){this.el.querySelector(".phone-authenticator-enroll__phone-code").innerText=`+${this.model.get("phoneCode")}`},save:function(){return"voice"===this.model.get("authenticator.methodType")?vp("oie.phone.call.primaryButton","login"):vp("oie.phone.sms.primaryButton","login")},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments),t=Ss.findIndex(e,({name:e})=>"authenticator.phoneNumber"===e),n={"label-top":!0,label:vp("mfa.country","login"),type:"select",options:_h(),name:"country",wide:!0},o="okta-phone-number-input",i={label:vp("mfa.phoneNumber.placeholder","login"),inputId:o,type:"group",modelType:"string","label-top":!0,name:"phoneCode",className:"phone-authenticator-enroll__phone",input:[{type:"label",label:`+${this.model.get("phoneCode")}`,className:"phone-authenticator-enroll__phone-code no-translate"},Object.assign({inputId:o},e[t])]},r={label:vp("phone.extention.label","login"),type:"text",className:"phone-authenticator-enroll__phone-ext","label-top":!0,name:"extension",showWhen:{"authenticator.methodType":"voice"}};-1!==t&&(e.splice(t,1,i),e.splice(t,0,n),e.splice(t+2,0,r));const a=Ss.find(e,({name:e})=>"authenticator.methodType"===e);return a&&1===a.options.length&&(a.className="hide"),e},updateConditionalText:function(){this.el.querySelector(".okta-form-subtitle").innerText=this.subtitle(),this.el.querySelector('input[type="submit"]').value=this.save()},initialize:function(){fb.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"change:authenticator.methodType",this.updateConditionalText),this.listenTo(this.model,"change:phoneCode",this.handlePhoneCodeChange.bind(this))}});var fk=Yb.extend({Body:hk,createModelClass:function(){const e=Nb.prototype.createModelClass.apply(this,arguments),t=Object.assign({country:{value:this.settings.get("defaultCountryCode"),type:"string"},extension:{type:"string"}},e.prototype.local),n=Object.assign({phoneCode:{deps:["country"],fn:function(e){return xh(e)}}},e.prototype.derived);return e.extend({local:t,derived:n,toJSON:function(){const e=Gs.prototype.toJSON.call(this,arguments),t=this.get("extension");let n=`+${this.get("phoneCode")}${e.authenticator.phoneNumber}`;return"voice"===e.authenticator.methodType&&null!=t&&t.trim().length&&(n=`${n}x${t}`),e.authenticator.phoneNumber=n,e}})}});const mk=fb.extend({className:"phone-authenticator-challenge",events:{"click a.phone-authenticator-challenge__link":"handleSecondaryLinkClick"},title:function(){return vp("oie.phone.verify.title","login")},save:function(){return"sms"===this.model.get("primaryMode")?vp("oie.phone.sms.primaryButton","login"):vp("oie.phone.call.primaryButton","login")},handleSecondaryLinkClick:function(e){e.preventDefault();const t=this.model.get("secondaryMode");this.model.set("authenticator.methodType",t),this.saveForm(this.model)},initialize:function(){this.model.on("error",()=>this.model.set("authenticator.methodType",this.model.get("primaryMode"))),fb.prototype.initialize.apply(this,arguments);const e="sms"===this.model.get("primaryMode")?vp("oie.phone.verify.sms.sendText","login"):vp("oie.phone.verify.call.sendText","login"),t=vp("oie.phone.carrier.charges","login"),n=this.model.get("phoneNumber")!==vp("oie.phone.alternate.title","login"),o=n?"strong no-translate nowrap":"",i=n?this.model.get("nickname"):"",r=i?` (${i})`:"",a=r?`<span class="${(r?"no-translate authenticator-verify-nickname":"")||""}">${r}.</span>
2`:'<span class="no-translate">.</span>',s=`${e} <span ${o?` class="${o}"`:""}>${this.model.escape("phoneNumber")}</span>${a}`;this.add(`<div class="okta-form-subtitle" data-se="o-form-explain">${s}<p>${t}</p></div>`)},getUISchema:function(){return fb.prototype.getUISchema.apply(this,arguments).filter(e=>"authenticator.methodType"!==e.name)},render:function(){fb.prototype.render.apply(this,arguments);const e=this.model.get("secondaryMode");if(e){const t=vp("sms"===e?"oie.phone.sms.secondaryButton":"oie.phone.call.secondaryButton","login");this.add(`<a href="#"\n            class="link phone-authenticator-challenge__link"\n            data-se="phone-authenticator-challenge__link">${t}</a>`,".o-form-button-bar")}}});var gk=Yb.extend({Body:mk,createModelClass:function({uiSchema:e}){const{options:t}=Ss.find(e,e=>"authenticator.methodType"===e.name),n=this.options.currentViewState.relatesTo,{profile:o,nickname:i}=(null==n?void 0:n.value)||{},r=Nb.prototype.createModelClass.apply(this,arguments),a=Object.assign({primaryMode:{value:t[0].value,type:"string"},secondaryMode:{value:t[1]&&t[1].value,type:"string"},phoneNumber:{value:null!=o&&o.phoneNumber?o.phoneNumber:vp("oie.phone.alternate.title","login"),type:"string"},nickname:{value:i||"",type:"string"}},r.prototype.local);return r.extend({local:a})}});const yk=fb.extend({title:function(){return vp("oie.security.question.enroll.title","login")},save:function(){return vp("mfa.challenge.verify","login")}});var vk=Yb.extend({Body:yk});const bk=fb.extend({title:function(){return vp("oie.security.question.challenge.title","login")},save:function(){return vp("mfa.challenge.verify","login")},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments),t=e.filter(e=>e.name.indexOf("questionKey")>=0),n=e.filter(e=>e.name.indexOf("answer")>=0);return 1===t.length&&1===n.length&&(n[0].label=t[0].label),e}});var wk=Yb.extend({Body:bk}),_k=xp.extend({className:"oie-webauthn-additional-instructions",initialize:function(){const{description:e}=this.options;e&&(this.add(xp.extend({className:"additional-instructions-title",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.instructions.additional"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:77}}}))+"</p>"},useData:!0})})),this.add(wp({subtitle:e,className:"additional-instructions-callout"})))}}),kk=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="idx-webauthn-enroll-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:null!=t?r(t,"enrollI18nKey"):t},data:i,loc:{start:{line:1,column:57},end:{line:1,column:99}}}))+"</p>"},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="idx-webauthn-enroll-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.webauthn.instructions"},data:i,loc:{start:{line:1,column:147},end:{line:1,column:210}}}))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"enrollI18nKey"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:0},end:{line:1,column:221}}}))?r:""},useData:!0}),initialize:function(){const e=this.options.currentViewState.relatesTo,t=null==e?void 0:e.value.contextualData.activationData;Gr.isEdge()&&this.add(xp.extend({tagName:"p",className:"idx-webauthn-enroll-text-edge",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.webauthn.instructions.edge"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:68}}}))},useData:!0}
2)})),"required"===t.authenticatorSelection.userVerification&&this.add(wp({className:"uv-required-callout",size:"slim",type:"warning",subtitle:vp("oie.enroll.webauthn.uv.required.instructions","login")}));const n=tv(this.options.currentViewState);n&&this.add(_k,{options:{description:n}}),this.add('<div data-se="webauthn-waiting" class="okta-waiting-spinner"></div>')},getTemplateData:function(){var e,t;return{enrollI18nKey:Qy({DEFAULT:"oie.enroll.webauthn.instructions",PASSKEYS:"oie.enroll.webauthn.passkeysRebrand.instructions",CUSTOM:"oie.enroll.webauthn.passkeysRebrand.instructions"},null===(e=this.options.currentViewState.relatesTo)||void 0===e||null===(t=e.value)||void 0===t?void 0:t.displayName)}}});const xk=fb.extend({title:function(){return ev(this.options.currentViewState,!1)},className:"oie-enroll-webauthn",modelEvents:{error:"_stopEnrollment"},getUISchema:function(){const e=[];var t,n;return bf.isNewApiAvailable()?(e.push({View:kk}),e.push({View:bp({className:"webauthn-setup button button-primary button-wide",title:vp("oie.enroll.webauthn.save","login"),click:()=>{this.triggerWebauthnPrompt()}})})):e.push({View:wp({className:"webauthn-not-supported",type:"error",subtitle:Qy({DEFAULT:vp("oie.webauthn.error.not.supported","login"),PASSKEYS:vp("oie.webauthn.passkeysRebrand.error.not.supported","login"),CUSTOM:vp("oie.webauthn.passkeysRebrand.error.not.supported","login")},null===(t=this.options.currentViewState.relatesTo)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.displayName)})}),e},triggerWebauthnPrompt:function(){this.$el.find(".o-form-error-container").empty(),this._startEnrollment();const e=this.options.currentViewState.relatesTo,t=null==e?void 0:e.value.contextualData.activationData;if(bf.isNewApiAvailable()){var n;const e=!0===(null===(n=t.authenticatorSelection)||void 0===n?void 0:n.requireResidentKey)?[]:function(e=[]){const t=[];return e.forEach(e=>{if("webauthn"===e.key){var n,o;const i={type:"public-key",id:yf.strToBin(e.credentialId)},r=null!==(n=e.transports)&&void 0!==n?n:null===(o=e.profile)||void 0===o?void 0:o.transports;Array.isArray(r)&&(i.transports=r),t.push(i)}}),t}(this.options.appState.get("authenticatorEnrollments").value),o=Ss.extend({},t,{challenge:yf.strToBin(t.challenge),user:{id:yf.strToBin(t.user.id),name:t.user.name,displayName:t.user.displayName},excludeCredentials:e});"undefined"!=typeof AbortController&&(this.webauthnAbortController=new AbortController),navigator.credentials.create({publicKey:o,signal:this.webauthnAbortController&&this.webauthnAbortController.signal}).then(e=>{const t=bf.processWebAuthnResponse(e.response.getTransports,e.response);this.model.set({credentials:{clientData:yf.binToStr(e.response.clientDataJSON),attestation:yf.binToStr(e.response.attestationObject),...null!==t&&{transports:t},clientExtensions:bf.processWebAuthnResponse(e.getClientExtensionResults,e)}}),this.saveForm(this.model)}).catch(e=>{bf.isRelyingPartyIdMismatchError(e)?this.model.trigger("error",this.model,{responseJSON:{errorSummary:vp("signin.passkeys.error.SecurityError","login")}}):this.model.trigger("error",this.model,{responseJSON:{errorSummary:bv(e)}})}).finally(()=>{this.webauthnAbortController=null})}},_startEnrollment:function(){this.$(".okta-waiting-spinner").show(),this.$(".webauthn-setup").hide()},_stopEnrollment:function(){this.$(".okta-waiting-spinner").hide(),this.$(".webauthn-setup").show()}});var Sk=Yb.extend({Body:xk,postRender:function(){Yb.prototype.postRender.apply(this,arguments),this.$el.find('.o-form-button-bar [type="submit"]').remove()}}),Tk=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="idx-webauthn-verify-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:null!=t?r(t,"verifyI18nKey"):t},data:i,loc:{start:{line:1,column:57},end:{line:1,column:99}}}))+"</p>"},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="idx-webauthn-verify-text">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.instructions"},data:i,loc:{start:{line:1,column:147},end:{line:1,column:210}}}))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"verifyI18nKey"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:0},end:{line:1,column:221}}}))?r:""},useData:!0}
2),initialize:function(){const e=this.options.currentViewState.relatesTo;"required"===(null==e?void 0:e.value.contextualData.challengeData).userVerification&&this.add(wp({className:"uv-required-callout",size:"slim",type:"warning",subtitle:vp("oie.verify.webauthn.uv.required.instructions","login")}));const t=tv(this.options.currentViewState);t&&this.add(_k,{options:{description:t}}),this.add('<div data-se="webauthn-waiting" class="okta-waiting-spinner"></div>')},getTemplateData:function(){var e,t;return{verifyI18nKey:Qy({DEFAULT:"oie.verify.webauthn.instructions",PASSKEYS:"oie.verify.webauthn.passkeysRebrand.instructions",CUSTOM:"oie.verify.webauthn.passkeysRebrand.instructions"},null===(e=this.options.currentViewState.relatesTo)||void 0===e||null===(t=e.value)||void 0===t?void 0:t.displayName)}}});const Ek=xp.extend({id:"help-description-container",className:"help-description js-help-description",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<h3>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.biometric.authenticator.title"},data:i,loc:{start:{line:1,column:4},end:{line:1,column:96}}}))+"</h3><br><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.biometric.authenticator.description1"},data:i,loc:{start:{line:1,column:108},end:{line:1,column:207}}}))+"</p><br><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.biometric.authenticator.description2"},data:i,loc:{start:{line:1,column:218},end:{line:1,column:317}}}))+"</p><br><h3>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.security.key.title"},data:i,loc:{start:{line:1,column:329},end:{line:1,column:410}}}))+"</h3><br><p>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.security.key.description"},data:i,loc:{start:{line:1,column:422},end:{line:1,column:509}}}))+"</p><br>"},useData:!0})}),Ck=xp.extend({id:"help-description-container",className:"help-description js-help-description",template:_s.template({0:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:null!=t?r(t,"enrollmentStep1"):t},data:i,loc:{start:{line:1,column:58},end:{line:1,column:102}}}))+"</li><br>"},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step1"},data:i,loc:{start:{line:1,column:123},end:{line:1,column:202}}}))+"</li><br>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol class="ov-enrollment-info">'+(null!=(r=c(n,"if").call(a,null!=t?c(t,"enrollmentStep1"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:31},end:{line:1,column:218}}}))?r:"")+"<li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step2"},data:i,loc:{start:{line:1,column:222},end:{line:1,column:301}}}))+"</li><br><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step3"},data:i,loc:{start:{line:1,column:314},end:{line:1,column:393}}}))+"</li><br><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.verify.webauthn.cant.verify.enrollment.step4"},data:i,loc:{start:{line:1,column:406},end:{line:1,column:485}}}))+"</><br></ol>"},useData:!0}
2),getTemplateData:function(){var e,t;return{enrollmentStep1:Qy({DEFAULT:"oie.verify.webauthn.cant.verify.enrollment.step1",PASSKEYS:"oie.verify.webauthn.passkeysRebrand.cant.verify.enrollment.step1",CUSTOM:"oie.verify.webauthn.passkeysRebrand.cant.verify.enrollment.step1"},null===(e=this.options.currentViewState.relatesTo)||void 0===e||null===(t=e.value)||void 0===t?void 0:t.displayName)}}});var Ok=Hb.extend({links:function(){const e=Hb.prototype.links.apply(this,arguments),t=this.options.appState.get("app")&&"Okta_Authenticator"===this.options.appState.get("app").name?Ck:Ek;return e.unshift({label:vp("oie.verify.webauthn.cant.verify","login"),name:"cant-verify","aria-controls":"help-description-container",class:"link help js-help",type:"toggle-text-link",additionalOptions:{view:t,selector:".js-help-description"}}),e}}),Ak=xp.extend({className:"setup-webauthn-residentkey-text",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<div>"+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.webauthn.rk.link"},data:i,loc:{start:{line:1,column:5},end:{line:1,column:65}}}))?r:"")+"</div>"},useData:!0}),events:{"click .setup-webauthn-residentkey-link":function(e){e.preventDefault(),this.options.appState.trigger("invokeAction",Jg.ENROLL_WEBAUTHN_RESIDENTKEY)}}});const Pk=fb.extend({title:function(){return ev(this.options.currentViewState,!0)},className:"oie-verify-webauthn",getUISchema:function(){const e=[];if(bf.isNewApiAvailable()){const t=bp({className:"retry-webauthn button-primary default-custom-button",title:vp("mfa.challenge.verify","login"),click:()=>{this.getCredentialsAndSave()}});e.push({View:Tk},{View:t}),this._canSetupWebAuthnResidentKey()&&e.push({View:Ak})}else{var t,n;e.push({View:wp({className:"webauthn-not-supported",type:"error",subtitle:vp(Qy({DEFAULT:"oie.webauthn.error.not.supported",PASSKEYS:"oie.webauthn.passkeysRebrand.error.not.supported",CUSTOM:"oie.webauthn.passkeysRebrand.error.not.supported"},null===(t=this.options.currentViewState.relatesTo)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.displayName)||"oie.webauthn.error.not.supported","login")})})}return e},remove:function(){fb.prototype.remove.apply(this,arguments),this.webauthnAbortController&&(this.webauthnAbortController.abort(),this.webauthnAbortController=null)},noButtonBar:!0,modelEvents:{error:"_stopVerification"},getCredentialsAndSave:function(){var e;this.clearErrors(),this._startVerification(),"undefined"!=typeof AbortController&&(this.webauthnAbortController=new AbortController);const t=this.options.currentViewState.relatesTo,n=(null==t?void 0:t.value)||{},o=[];((null===(e=this.options.appState.get("authenticatorEnrollments"))||void 0===e?void 0:e.value)||[]).forEach(e=>{if("webauthn"===e.key){var t,n;const i={type:"public-key",id:yf.strToBin(e.credentialId)},r=null!==(t=e.transports)&&void 0!==t?t:null===(n=e.profile)||void 0===n?void 0:n.transports;Array.isArray(r)&&(i.transports=r),o.push(i)}});const i=n.contextualData.challengeData,r=Ss.extend({},i,{allowCredentials:o,challenge:yf.strToBin(i.challenge)});navigator.credentials.get({publicKey:r,signal:this.webauthnAbortController&&this.webauthnAbortController.signal}).then(e=>{const t={clientData:yf.binToStr(e.response.clientDataJSON),authenticatorData:yf.binToStr(e.response.authenticatorData),signatureData:yf.binToStr(e.response.signature)};var n;this.options.appState.getSchemaByName("credentials.userHandle")&&Ss.extend(t,{userHandle:yf.binToStr(null!==(n=e.response.userHandle)&&void 0!==n?n:"")}),this.model.set({credentials:t}),this.saveForm(this.model)},e=>{bf.isRelyingPartyIdMismatchError(e)?this.model.trigger("error",this.model,{responseJSON:{errorSummary:vp("signin.passkeys.error.rpIdMismatch","login",[n.contextualData.challengeData.rpId])}}):this.webauthnAbortController&&this.model.trigger("error",this.model,{responseJSON:{errorSummary:bv(e)}})}).finally(()=>{this.webauthnAbortController=null})},_startVerification:function(){this.$(".okta-waiting-spinner").show(),this.$(".retry-webauthn").hide(),this.$(".setup-webauthn-residentkey-text").hide(),this.$(".retry-webauthn")[0].textContent=vp("retry","login")},_stopVerification:function(){this.$(".okta-waiting-spinner").hide(),this.$(".retry-webauthn").show(),this.$(".setup-webauthn-residentkey-text").show()},_canSetupWebAuthnResidentKey:function(){return this.options.appState.hasRemediationObject(Jg.ENROLL_WEBAUTHN_RESIDENTKEY)}});var Nk=Yb.extend({Body:Pk,Footer:Ok,postRender:function(){Yb.prototype.postRender.apply(this,arguments),bf.isNewApiAvailable()&&!Gr.isSafari()&&this.form.getCredentialsAndSave()}}),Rk={title:function(){return vp("oie.email.mfa.title","login")}},Ik=(e,t)=>
2{return Rv(e)?{responseJSON:{errorCauses:Av(n=e),errorSummary:Pv(n),errorSummaryKeys:Nv(n),errorIntent:n.intent}}:e.errorSummary?{responseJSON:e}:("function"==typeof t&&t(e),{responseJSON:{errorSummary:vp("error.unsupported.response","login")}});var n},Dk=e=>{var t,n,o,i;return!((null===(t=e.responseJSON)||void 0===t||null===(n=t.errorSummaryKeys)||void 0===n||!n.includes("tooManyRequests"))&&("E0000047"!==(null===(o=e.responseJSON)||void 0===o?void 0:o.errorCode)||null!==(i=e.responseJSON)&&void 0!==i&&i.errorIntent))};const Lk=ak.extend({className:"hide resend-email-view",events:{"click a.resend-link":"handleResendLink"},modelEvents:{error:"handleError"},initialize:function(){this.add(wp({content:`${vp("email.code.not.received","login")}\n        <a class='resend-link'>${vp("email.button.resend","login")}</a>`,type:"warning"}))},hideResendViewAndShowAfterTimeout:function(){this.$el.hasClass("hide")||this.$el.addClass("hide"),this.showCalloutAfterTimeout()},handleResendLink:function(e){null==e||e.preventDefault(),this.options.appState.trigger("invokeAction",this.options.resendEmailAction),this.hideResendViewAndShowAfterTimeout()},handleError:function(){this.hideResendViewAndShowAfterTimeout()}}),Mk=gb.extend(Object.assign({save:function(){return vp("mfa.challenge.verify","login")},initialize:function(){gb.prototype.initialize.apply(this,arguments),this.startPolling()},postRender:function(){fb.prototype.postRender.apply(this,arguments),this.$el.find(".resend-email-view").length||this.add(Lk,{selector:".o-form-info-container",prepend:!0,options:{resendEmailAction:this.resendEmailAction}})},saveForm:function(){fb.prototype.saveForm.apply(this,arguments),this.stopPolling()},remove:function(){fb.prototype.remove.apply(this,arguments),this.stopPolling()},triggerAfterError:function(e,t){var n,o;fb.prototype.triggerAfterError.apply(this,arguments);const i=!!this.polling;this.stopPolling(),null!==(n=t.responseJSON)&&void 0!==n&&null!==(o=n.errorSummaryKeys)&&void 0!==o&&o.includes("idx.session.expired")||(Dk(t)?(i&&setTimeout(()=>{e.trigger("clearFormError")},0),this.startPolling(6e4)):this.startPolling(this.options.appState.get("dynamicRefreshInterval")))}},Rk));var Uk=Yb.extend({Body:Mk});const jk=xp.extend({className:"okta-form-subtitle",attributes:{"data-se":"o-form-explain"},template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"secondaryEmail"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:13},end:{line:1,column:433}}}))?r:""},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$2:"<span class='strong no-translate'>$2</span>",$1:"<span class='strong no-translate'>$1</span>",arguments:"email;secondaryEmail",bundle:"login",code:"oie.email.verify.alternate.magicLinkToEmailAddress.with.secondary.email"},data:i,loc:{start:{line:1,column:35},end:{line:1,column:269}}}))},2:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong no-translate'>$1</span>",arguments:"email",bundle:"login",code:"oie.email.verify.alternate.magicLinkToEmailAddress"},data:i,loc:{start:{line:1,column:277},end:{line:1,column:426}}}))},3:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.alternate.magicLinkToYourEmail"},data:i,loc:{start:{line:1,column:441},end:{line:1,column:520}}}))},4:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.alternate.instructions"}
2,data:i,loc:{start:{line:1,column:557},end:{line:1,column:628}}}))},5:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.alternate.verificationCode.instructions"},data:i,loc:{start:{line:1,column:636},end:{line:1,column:724}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"email"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:0},end:{line:1,column:527}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"useEmailMagicLinkValue"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.program(5,i,0),data:i,loc:{start:{line:1,column:527},end:{line:1,column:731}}}))?r:"")},useData:!0}),getTemplateData:function(){return this.options}}),Fk=xp.extend({className:"okta-form-subtitle",attributes:{"data-se":"o-form-explain"},template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.enroll.subtitle"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:56}}}))},useData:!0})}),Vk=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<button class="button-link enter-auth-code-instead-link" >'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{code:"oie.email.verify.alternate.show.verificationCode.text"},data:i,loc:{start:{line:1,column:58},end:{line:1,column:127}}}))+"</button>"},useData:!0})});function qk(){return jk}function Bk(){return Vk}const $k=Uk.prototype.Body,Hk=$k.extend(Object.assign({resendEmailAction:"currentAuthenticator-resend",initialize:function(){var e,t,n;$k.prototype.initialize.apply(this,arguments);const o=(null===(e=this.options.appState.get("user"))||void 0===e||null===(t=e.profile)||void 0===t?void 0:t.email)||(null===(n=this.options.appState.get("user"))||void 0===n?void 0:n.identifier)||{},i=this.isUseEmailMagicLink();void 0!==i?(this.noButtonBar=!0,this.events["click .enter-auth-code-instead-link"]="showAuthCodeEntry",i&&this.add(Bk(),{prepend:!0,selector:".o-form-error-container"}),this.add(qk(),{prepend:!0,selector:".o-form-error-container",options:{email:o,useEmailMagicLinkValue:i}})):this.add(Fk,{prepend:!0,selector:".o-form-error-container"})},postRender:function(){$k.prototype.postRender.apply(this,arguments),void 0!==this.isUseEmailMagicLink()&&(this.isUseEmailMagicLink()?this.showCodeEntryField(!1):this.noButtonBar=!1)},isUseEmailMagicLink:function(){var e,t;return null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e||null===(t=e.contextualData)||void 0===t?void 0:t.useEmailMagicLink},showAuthCodeEntry:function(){this.noButtonBar=!1,this.render(),this.showCodeEntryField(!0),this.removeEnterAuthCodeInsteadLink()},showCodeEntryField:function(e=!0){this.$el.find(".o-form-fieldset-container").toggle(e)},removeEnterAuthCodeInsteadLink:function(){this.$el.find(".enter-auth-code-instead-link").remove()}}));var zk=Uk.extend({Body:Hk});const Wk=Uk.prototype.Body,Kk=Wk.extend(Object.assign({noButtonBar:!0,resendEmailAction:"currentAuthenticatorEnrollment-resend",events:{"click .enter-auth-code-instead-link":"showAuthCodeEntry"},initialize:function(){var e,t;Wk.prototype.initialize.apply(this,arguments);const{email:n,secondaryEmail:o}=(null===(e=this.options.currentViewState.relatesTo)||void 0===e||null===(t=e.value)||void 0===t?void 0:t.profile)||{},i=this.isUseEmailMagicLink();i&&this.add(Bk(),{prepend:!0,selector:".o-form-error-container"}),this.add(qk(),{prepend:!0,selector:".o-form-error-container",options:{email:n,secondaryEmail:o,useEmailMagicLinkValue:i}})},postRender:function(){Wk.prototype.postRender.apply(this,arguments),this.isUseEmailMagicLink()?this.showCodeEntryField(!1):this.noButtonBar=!1},isUseEmailMagicLink:function(){var e,t;const n=null===(e=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===e||null===(t=e.contextualData)||void 0===t?void 0:t.useEmailMagicLink;return void 0===n||n},showAuthCodeEntry:function(){this.noButtonBar=!1,this.render(),this.showCodeEntryField(!0),this.removeEnterAuthCodeInsteadLink()},showCodeEntryField:function(e=!0){this.$el.find(".o-form-fieldset-container").toggle(e)},removeEnterAuthCodeInsteadLink:function(){this.$el.find(".enter-auth-code-instead-link").remove()}}));var Gk=Uk.extend({Body:Kk});const Yk=Yb.prototype.Body,Jk=xp.extend({template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"secondaryEmail"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:70},end:{line:1,column:471}}}))?r:""},1:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$2:"<span class='strong no-translate'>$2</span>",$1:"<span class='strong no-translate'>$1</span>",arguments:"email;secondaryEmail",bundle:"login",code:"oie.email.verify.subtitle.text.with.email.and.secondary.email"},data:i,loc:{start:{line:1,column:92},end:{line:1,column:316}}}))},2:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong no-translate'>$1</span>",arguments:"email",bundle:"login",code:"oie.email.verify.subtitle.text.with.email"},data:i,loc:{start:{line:1,column:324},end:{line:1,column:464}}}))},3:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.email.verify.subtitle.text.without.email"},data:i,loc:{start:{line:1,column:479}
2,end:{line:1,column:555}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-subtitle" data-se="o-form-explain">'+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"email"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:57},end:{line:1,column:562}}}))?r:"")+"</div>"},useData:!0}),getTemplateData:function(){var e,t,n,o;return{email:null===(e=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===e||null===(t=e.profile)||void 0===t?void 0:t.email,secondaryEmail:null===(n=this.options.appState.get("currentAuthenticatorEnrollment"))||void 0===n||null===(o=n.profile)||void 0===o?void 0:o.secondaryEmail}}}),Qk=Yk.extend({title:function(){return vp("oie.email.challenge.mfa.title","login")},save:function(){return vp("oie.email.verify.primaryButton","login")},postRender:function(){Yk.prototype.postRender.apply(this,arguments),this.add(Jk,{prepend:!0,selector:".o-form-info-container"})},getUISchema:function(){return Yk.prototype.getUISchema.apply(this,arguments).filter(e=>"authenticator.methodType"!==e.name)}});var Xk=Yb.extend({Body:Qk}),Zk=ak.extend({className:"hide resend-ov-link-view",events:{"click a.resend-link":"handelResendLink"},initialize:function(){const e=this.options.appState.get("currentAuthenticator").contextualData.selectedChannel;this.add(wp({content:"email"===e?_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.email.notReceived"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:73}}}))?r:""},useData:!0}):_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.sms.notReceived"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:71}}}))?r:""},useData:!0}),type:"warning"}))},handelResendLink:function(e){null==e||e.preventDefault(),this.options.appState.trigger("invokeAction","currentAuthenticator-resend"),this.$el.addClass("hide"),this.showCalloutAfterTimeout()}}),ex=xp.extend({className:"switch-channel-text",template:_s.template({0:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(2,i,0),data:i,loc:{start:{line:1,column:23},end:{line:1,column:325}}}))?r:""},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.switch.channel.link.text"},data:i,loc:{start:{line:1,column:60},end:{line:1,column:140}}}))?r:""},2:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="#" class="switch-channel-link" aria-label="'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.aria.cannotScan"},data:i,loc:{start:{line:1,column:200},end:{line:1,column:259}}}))+'">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"enroll.totp.cannotScan"},data:i,loc:{start:{line:1,column:261},end:{line:1,column:314}}}))+"</a>"},3:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isSameDeviceChannel"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.program(5,i,0),data:i,loc:{start:{line:1,column:325},end:{line:1,column:480}}}))?r:""},4:function(e,t,n,o,i){return""},5:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isDeviceBootstrapChannel"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.program(1,i,0),data:i,loc:{start:{line:1,column:356},end:{line:1,column:480}}}))?r:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isQRcodeChannel"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:0},end:{line:1,column:487}}}))?r:""},useData:!0}
2),getTemplateData:function(){const e=this.options.appState.get("currentAuthenticator").contextualData.selectedChannel;return{sameDeviceOVEnrollmentEnabled:this.settings.get("features.sameDeviceOVEnrollmentEnabled"),isQRcodeChannel:"qrcode"===e,isSameDeviceChannel:"samedevice"===e,isDeviceBootstrapChannel:"devicebootstrap"===e}},postRender:function(){this.$el.find(".switch-channel-link").on("click",e=>{const t=this.options.appState;e.preventDefault(),t.trigger("switchForm",Jg.SELECT_ENROLLMENT_CHANNEL)})}});const{Notification:tx}=Tp.views.components,{Clipboard:nx}=Tp.util;var ox=xp.extend({initialize:function(){let e=ix(this.options.appState);if(e&&e.setupOVUrl&&e.isDesktop){this.ulDom&&this.ulDom.remove();const t=Sb("custom-uri-container",e.setupOVUrl);this.ulDom=this.add(t).last()}},template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ol class="qrcode-info ov-info"><li>'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.qrcode.step1.updated"},data:i,loc:{start:{line:1,column:48},end:{line:1,column:122}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.qrcode.step2"},data:i,loc:{start:{line:1,column:131},end:{line:1,column:197}}}))+"</li><li>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.qrcode.step3.updated"},data:i,loc:{start:{line:1,column:206},end:{line:1,column:316}}}))+'</li></ol><div class="qrcode-container"><img class="qrcode" src='+l("function"==typeof(r=null!=(r=c(n,"href")||(null!=t?c(t,"href"):t))?r:s)?r.call(a,{name:"href",hash:{},data:i,loc:{start:{line:1,column:380},end:{line:1,column:388}}}):r)+' alt="'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"mfa.altQrCode"},data:i,loc:{start:{line:1,column:394},end:{line:1,column:439}}}))+'"></img></div>'},1:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul class="email-info ov-info"><li>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"email",bundle:"login",code:"oie.enroll.okta_verify.email.info.updated"},data:i,loc:{start:{line:1,column:508},end:{line:1,column:636}}}))?r:"")+'</li><li class="switch-channel-content"></li></ul>'},2:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<ul class="sms-info ov-info"><li>'+(null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"phoneNumber",bundle:"login",code:"oie.enroll.okta_verify.sms.info.updated"},data:i,loc:{start:{line:1,column:745},end:{line:1,column:877}}}))?r:"")+'</li><li class="switch-channel-content"></li></ul>'},3:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="sameDevice-setup'+(null!=(r=l(n,"if").call(a,null!=t?l(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:990},end:{line:1,column:1056}}}))?r:"")+'"><p class="explanation" data-se="subheader">'+(null!=(r=l(n,"if").call(a,null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"isDesktop"):r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(9,i,0),data:i,loc:{start:{line:1,column:1101},end:{line:1,column:1874}}}))?r:"")+'</p><ol class="ov-info">'+(null!=(r=l(n,"unless").call(a,null!=t?l(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:1898},end:{line:1,column:2312}}}))?r:"")+'<li><a href="'+s(e.lambda(null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"setupOVUrl"):r,t))+'" class="button button-primary setup-button">'+s((l(n,"i18n")||t&&l(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.title"},data:i,loc:{start:{line:1,column:2394},end:{line:1,column:2459}}}))+"</a></li>"+(null!=(r=l(n,"if").call(a,null!=t?l(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:2468},end:{line:1,column:2786}}}))?r:"")+(null!=(r=l(n,"if").call(a,null!=t?l(t,"showAnotherDeviceLink"):t,{name:"if",hash:{},fn:e.program(13,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:2786},end:{line:1,column:3125}}}))?r:"")+"</ol></div>"},4:function(e,t,n,o,i){return" ov-enrollment-enabled"},5:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};
vendor: 7,523 bytes, line 2
2return'<div class="desktop-instructions ov-info">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.prompt"},data:i,loc:{start:{line:1,column:1170},end:{line:1,column:1287}}}))+'</div><div class="desktop-instructions">'+(null!=(r=s(n,"if").call(a,null!=t?s(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.program(7,i,0),data:i,loc:{start:{line:1,column:1327},end:{line:1,column:1583}}}))?r:"")+"</div>"+(null!=(r=s(n,"unless").call(a,null!=t?s(t,"sameDeviceOVEnrollmentEnabled"):t,{name:"unless",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:1589},end:{line:1,column:1765}}}))?r:"")},6:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span>$1</span>",bundle:"login",code:"customUri.required.content.prompt"},data:i,loc:{start:{line:1,column:1364},end:{line:1,column:1449}}}))},7:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.noPrompt"},data:i,loc:{start:{line:1,column:1457},end:{line:1,column:1576}}}))},8:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="desktop-instructions">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.makeSureHaveOV"},data:i,loc:{start:{line:1,column:1664},end:{line:1,column:1748}}}))+"</div>"},9:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.makeSureHaveOVToContinue"},data:i,loc:{start:{line:1,column:1773},end:{line:1,column:1867}}}))},10:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=(r=null!=t?s(t,"deviceMap"):t)?s(r,"platformLC"):r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:1939},end:{line:1,column:2176}}}))?r:"")+"<li>"+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(a,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.setup"},data:i,loc:{start:{line:1,column:2180},end:{line:1,column:2296}}}))+"</li>"},11:function(e,t,n,o,i){var r,a=e.escapeExpression,s=e.lambda,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li><a aria-label='"+a((l(n,"i18n")||t&&l(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.linkText"},data:i,loc:{start:{line:1,column:1986},end:{line:1,column:2061}}}))+"' href=\""+a(s(null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"downloadHref"):r,t))+'" class="app-store-logo '+a(s(null!=(r=null!=t?l(t,"deviceMap"):t)?l(r,"platformLC"):r,t))+'-app-store-logo"></a></li>'},12:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li><span>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.title"},data:i,loc:{start:{line:1,column:2515},end:{line:1,column:2587}}}))+'</span>&nbsp;<a href="'+l(e.lambda(null!=(r=null!=t?c(t,"deviceMap"):t)?c(r,"downloadHref"):r,t))+'" target="_blank" id="download-ov" class="download-ov-link">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"customUri.required.content.download.linkText"},data:i,loc:{start:{line:1,column:2695},end:{line:1,column:2770}}}))+"</a></li>"},13:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<li>"+(null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=(r=null!=t?a(t,"deviceMap"):t)?a(r,"isDesktop"):r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.program(15,i,0),data:i,loc:{start:{line:1,column:2819},end:{line:1,column:3113}}}))?r:"")+"</li>"},14:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a class='orOnMobileLink' href='#'>$1</a>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.orOnMobile"},data:i,loc:{start:{line:1,column:2846},end:{line:1,column:2973}}}))},15:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a class='orOnMobileLink' href='#'>$1</a>",bundle:"login",code:"oie.enroll.okta_verify.setup.customUri.orMobile"},data:i,loc:{start:{line:1,column:2981},end:{line:1,column:3106}}}))},16:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"sameDevice"):t,{name:"if",hash:{},fn:e.program(17,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:3144},end:{line:1,column:4021}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"deviceBootstrap"):t,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:4021},end:{line:1,column:4802}}}))?r:"")},17:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lambda,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.subtitle "},data:i,loc:{start:{line:1,column:3205},end:{line:1,column:3274}}}))+'</p><ol class="sameDevice-info ov-info"><li>'+(null!=(r=(u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{arguments:"sameDevice.downloadHref",bundle:"login",code:"enroll.oda.without.account.step1"},data:i,loc:{start:{line:1,column:3318},end:{line:1,column:3419}}}))?r:"")+"</li><li>"+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.openOv"},data:i,loc:{start:{line:1,column:3428},end:{line:1,column:3494}}}))+"</li><li>"+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.signInUrl"},data:i,loc:{start:{line:1,column:3503},end:{line:1,column:3572}}}))+"<br><br/><span class='semi-strong no-translate'>
2"+l(c(null!=(r=null!=t?u(t,"sameDevice"):t)?u(r,"orgUrl"):r,t))+'</span><a data-clipboard-text="'+l(c(null!=(r=null!=t?u(t,"sameDevice"):t)?u(r,"orgUrl"):r,t))+'" class="button link-button copy-org-clipboard-button">'+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"enroll.oda.org.copyLink"},data:i,loc:{start:{line:1,column:3748},end:{line:1,column:3802}}}))+"</a></li><li>"+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.followInstruction"},data:i,loc:{start:{line:1,column:3815},end:{line:1,column:3901}}}))+'</li></ol><p class="closing">'+l((u(n,"i18n")||t&&u(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.canBeClosed"},data:i,loc:{start:{line:1,column:3930},end:{line:1,column:4010}}}))+"</p>"},18:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<p class="explanation" data-se="subheader">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.subtitle"},data:i,loc:{start:{line:1,column:4087},end:{line:1,column:4164}}}))+'</p><ol class="deviceBootstrap-info ov-info"><li>'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",arguments:"enrolledDeviceName",bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.openOv.suchAs"},data:i,loc:{start:{line:1,column:4213},end:{line:1,column:4367}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.selectAccount"},data:i,loc:{start:{line:1,column:4376},end:{line:1,column:4458}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{$1:"<span class='semi-strong'>$1</span>",bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.addAccount"},data:i,loc:{start:{line:1,column:4467},end:{line:1,column:4587}}}))+"</li><li>"+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.followInstruction"},data:i,loc:{start:{line:1,column:4596},end:{line:1,column:4682}}}))+'</li></ol><p class="closing">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.okta_verify.setup.skipAuth.canBeClosed"},data:i,loc:{start:{line:1,column:4711},end:{line:1,column:4791}}}))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(r=s(n,"if").call(a,null!=t?s(t,"href"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:1,column:460}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"email"):t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:460},end:{line:1,column:693}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=t?s(t,"phoneNumber"):t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:693},end:{line:1,column:934}}}))?r:"")+(null!=(r=s(n,"if").call(a,null!=(r=null!=t?s(t,"deviceMap"):t)?s(r,"setupOVUrl"):r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.program(16,i,0),data:i,loc:{start:{line:1,column:934},end:{line:1,column:4809}}}))?r:"")},useData:!0}),getTemplateData:function(){var e;const t=this.options.appState.get("currentAuthenticator").contextualData;let n="",o=ix(this.options.appState),i=!1;if(t&&null!=t&&t.devicebootstrap&&null!=t&&t.devicebootstrap.enrolledDevices){const e=null==t?void 0:t.devicebootstrap.enrolledDevices;n=Array.isArray(e)&&!Ss.isEmpty(e)?e[0]:e}o.securityLevel&&"ANY"===o.securityLevel&&(i=!0);const r=this.options.settings.get("features.sameDeviceOVEnrollmentEnabled");return{href:null===(e=t.qrcode)||void 0===e?void 0:e.href,email:Ss.escape(null==t?void 0:t.email),phoneNumber:Ss.escape(null==t?void 0:t.phoneNumber),sameDevice:null==t?void 0:t.samedevice,deviceBootstrap:null==t?void 0:t.devicebootstrap,enrolledDeviceName:n,deviceMap:o,showAnotherDeviceLink:i,sameDeviceOVEnrollmentEnabled:r}},postRender:function(){const e=this.options&&this.options.appState,t=this.model;this.$(".orOnMobileLink").click(function(){var n;if(!e||!t)return;const o="qrcode",i=e.get("remediations").find(e=>e.name===Jg.SELECT_ENROLLMENT_CHANNEL);if(!i)return;const r=Ss.find(i.uiSchema,e=>"authenticator.id"===e.name);if(!r)return;const a=Ss.find(i.uiSchema,e=>"authenticator.channel"===e.name);a&&(a.options=Ss.filter(null==a?void 0:a.options,e=>e.value===o),a.value=(null===(n=a.options[0])||void 0===n?void 0:n.value)||o,a.sublabel=null,t.set("authenticator.channel",a.value),t.set("authenticator.id",r.value),t.set("formName",i.name),e.trigger("saveForm",t))}),nx.attach(".copy-org-clipboard-button").done(()=>{let e=new tx({message:vp("enroll.oda.org.copyLink.success","login"),level:"success"});return this.el.prepend(e.render().el),!1})}});function ix(e){var t,n;if(!e)return null;
2const o=e.get("currentAuthenticator").contextualData;let i={};return null!==(t=o.samedevice)&&void 0!==t&&t.setupOVUrl?i={...o.samedevice}:null!==(n=o.devicebootstrap)&&void 0!==n&&n.setupOVUrl&&(i={...o.devicebootstrap}),i.platform&&(i.platformLC=i.platform.toLowerCase(),i.isDesktop=!("ios"===i.platformLC||"android"===i.platformLC)),i}let rx=!0;const ax=gb.extend(Object.assign({title:function(){let e;switch(this.options.appState.get("currentAuthenticator").contextualData.selectedChannel){case"email":e=vp("oie.enroll.okta_verify.setup.email.title","login");break;case"sms":e=vp("oie.enroll.okta_verify.setup.sms.title","login");break;default:e=vp("oie.enroll.okta_verify.setup.title","login")}return e},className:"oie-enroll-ov-poll",noButtonBar:!0,initialize:function(){gb.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"error",this.stopPolling),rx&&this.startPolling()},showMessages:function(){const e={};this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.non_fips_compliant_enrollment_device_incompatible")||this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.non_fips_compliant_enrollment_app_update_required")?e.title=vp("oie.okta_verify.enroll.force.upgrade.title","login"):this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.method.push.enroll.enable.biometrics")&&(e.title=vp("oie.authenticator.app.method.push.enroll.enable.biometrics.title","login")),gb.prototype.showMessages.call(this,e)},getUISchema:function(){const e=[],t=this.options.appState.get("currentAuthenticator").contextualData.selectedChannel;let n;return"qrcode"===t?(n=".qrcode-container",rx=!0):["email","sms"].includes(t)?(n=".switch-channel-content",rx=!0):["samedevice"].includes(t)?rx=!0:["devicebootstrap"].includes(t)&&(rx=!1),e.push({View:ox}),e.push({View:ex,options:{selectedChannel:t},selector:n}),["email","sms"].includes(t)&&e.push({View:Zk,selector:".o-form-error-container"}),e},remove:function(){gb.prototype.remove.apply(this,arguments),this.stopPolling()}},mb));var sx=Yb.extend({Body:ax}),lx=xp.extend({className:"ov-same-device-enroll-text",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=(a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a class='ov-same-device-enroll-link' href='#'>$1</a>",bundle:"login",code:"oie.enroll.okta_verify.select.channel.ovOnThisDevice"},data:i,loc:{start:{line:1,column:0},end:{line:1,column:144}}}))?r:""},useData:!0}),postRender:function(){const e=this.options&&this.options.appState,t=this.model;this.$(".ov-same-device-enroll-link").click(function(){var n,o,i,r;if(!e||!t)return;const a="samedevice",s=e.get("remediations").find(e=>e.name===Jg.SELECT_ENROLLMENT_CHANNEL);if(!s)return;const l=null===(n=s.uiSchema)||void 0===n?void 0:n.find(e=>"authenticator.id"===e.name);if(!l)return;const c=null===(o=s.uiSchema)||void 0===o?void 0:o.find(e=>"authenticator.channel"===e.name);c&&(c.options=null===(i=c.options)||void 0===i?void 0:i.filter(e=>e.value===a),c.value=(null===(r=c.options[0])||void 0===r?void 0:r.value)||a,c.sublabel=null,t.set("authenticator.channel",c.value),t.set("authenticator.id",l.value),t.set("formName",s.name),e.trigger("saveForm",t))})}});const cx=fb.extend({title:function(){return Gr.isAndroid()||Gr.isIOS()?vp("oie.enroll.okta_verify.setup.title","login"):vp("oie.enroll.okta_verify.select.channel.title.updated","login")},getUISchema:function(){var e;const t=fb.prototype.getUISchema.apply(this,arguments),n=Ss.find(t,e=>"authenticator.channel"===e.name);return n.options=Ss.filter(null==n?void 0:n.options,e=>{var t,n;return e.value!==(null===(t=this.options.appState.get("currentAuthenticator"))||void 0===t||null===(n=t.contextualData)||void 0===n?void 0:n.selectedChannel)&&"samedevice"!==e.value}),n.value=null===(e=n.options[0])||void 0===e?void 0:e.value,n.sublabel=null,this.model.set("authenticator.channel",n.value),[{View:vp("oie.enroll.okta_verify.select.channel.subtitle","login"),selector:".o-form-fieldset-container"},...t]}});var ux=Yb.extend({Body:cx,postRender:function(){var e,t;const n=null===(e=this.options.currentViewState.value)||void 0===e?void 0:e.find(e=>"authenticator"===e.name).value.form.value;(null==n||null===(t=n.find(e=>"channel"===e.name).options)||void 0===t?void 0:t.find(e=>"samedevice"===e.value))&&this.add(new lx({model:this.model,settings:this.settings,appState:this.options.appState}),"form")}});const px=fb.extend({className:"oie-enroll-ov-data",title:function(){return"email"===this.options.appState.get("currentAuthenticator").contextualData.selectedChannel?vp("oie.enroll.okta_verify.enroll.channel.email.title","login"):vp("oie.enroll.okta_verify.enroll.channel.sms.title","login")},save:function(){return vp("oie.enroll.okta_verify.setupLink","login")},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments),t=Ss.find(e,({name:e})=>"phoneNumber"===e),n=Ss.findIndex(e,({name:e})=>
2"phoneNumber"===e),o={"label-top":!0,label:vp("mfa.country","login"),type:"select",options:_h(),name:"country",wide:!0},i={label:vp("mfa.phoneNumber.placeholder","login"),type:"group",modelType:"string","label-top":!0,name:"phoneCode",input:[{type:"label",label:`+${this.model.get("phoneCode")}`,className:"country-code-label no-translate"},Object.assign({},t)]};-1!==n&&e.splice(n,1,o,i);const r={View:"email"===this.options.appState.get("currentAuthenticator").contextualData.selectedChannel?vp("oie.enroll.okta_verify.enroll.channel.email.subtitle","login"):vp("oie.enroll.okta_verify.channel.sms.description.updated","login"),selector:".o-form-fieldset-container"};return e.push(r),e},handlePhoneCodeChange:function(){this.el.querySelector(".country-code-label").innerText=`+${this.model.get("phoneCode")}`},initialize:function(){fb.prototype.initialize.apply(this,arguments),"sms"===this.options.appState.get("currentAuthenticator").contextualData.selectedChannel&&this.listenTo(this.model,"change:phoneCode",this.handlePhoneCodeChange.bind(this))}});var dx=Yb.extend({Body:px,createModelClass:function(){const e=Nb.prototype.createModelClass.apply(this,arguments);if("sms"!==this.options.appState.get("currentAuthenticator").contextualData.selectedChannel)return e;const t=Object.assign({country:{value:this.settings.get("defaultCountryCode"),type:"string"}},e.prototype.local),n=Object.assign({phoneCode:{deps:["country"],fn:function(e){return xh(e)}}},e.prototype.derived);return e.extend({local:t,derived:n,toJSON:function(){const e=Gs.prototype.toJSON.call(this,arguments);let t=`+${this.get("phoneCode")}${e.phoneNumber}`;return e.phoneNumber=t,e}})},postRender:function(){this.add(ex,"form")}});const hx=xp.extend({className:"okta-form-infobox-warning infobox infobox-warning",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="icon warning-16"></span><p>'+e.escapeExpression("function"==typeof(r=null!=(r=a(n,"warning")||(null!=t?a(t,"warning"):t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"warning",hash:{},data:i,loc:{start:{line:1,column:40},end:{line:1,column:51}}}):r)+"</p>"},useData:!0})}),fx=gb.extend(Object.assign({noButtonBar:!0,title:function(){return this.isOV()?vp("oie.okta_verify.push.title","login"):vp("oie.verify.custom_app.title","login",[this.options.appState.getAuthenticatorDisplayName()])},initialize:function(){gb.prototype.initialize.apply(this,arguments),(this.isOV()||this.isCustomApp())&&this.isAutoChallengeSupported()&&(this.hasSavingState=!1),this.listenTo(this.model,"error",this.stopPoll),this.addView()},addView:function(){this.add(bp({className:"button button-wide button-primary send-push link-button-disabled",title:this.isOV()?vp("oie.okta_verify.push.sent","login"):vp("oie.custom_app.push.sent","login"),click:e=>{e.preventDefault()}})),this.add(`<span class='accessibility-text' role='alert'>\n        ${this.isOV()?vp("oie.okta_verify.push.sent","login"):vp("oie.custom_app.push.sent","login")}</span>`)},render:function(){gb.prototype.render.apply(this,arguments);const e=this.$el.find('[data-se="o-form-fieldset-autoChallenge"]');this.isAutoChallengeSupported()?(this.isOV()||this.isCustomApp())&&e.length&&this.$el.find(".o-form-fieldset-container").append(e):e.length&&e.hide()},postRender:function(){gb.prototype.postRender.apply(this,arguments);const e=this.isOV()?"okta-verify-push-challenge":" custom-app-push-challenge";this.$el.addClass(e),this.startPoll()},startPoll:function(){this.startPolling(),this.warningTimeout=setTimeout(()=>{const e=this.isOV()?vp("oktaverify.warning","login"):vp("oie.custom_app.push.warning","login",[this.options.appState.getAuthenticatorDisplayName()]);this.showWarning(e)},3e4)},stopPoll:function(){this.stopPolling(),this.clearWarning()},showWarning:function(e){this.clearWarning(),this.add(hx,".o-form-error-container",{options:{warning:e}})},clearWarning:function(){this.$(".o-form-error-container div").hasClass("okta-form-infobox-warning")&&this.$(".okta-form-infobox-warning").remove(),clearTimeout(this.warningTimeout)},remove:function(){gb.prototype.remove.apply(this,arguments),this.stopPoll()},isOV:function(){return this.options.appState.get("authenticatorKey")===ry},isCustomApp:function(){return this.options.appState.get("authenticatorKey")===fy},isAutoChallengeSupported:function(){return null!==this.options.appState.getSchemaByName("autoChallenge")&&void 0!==this.options.appState.getSchemaByName("autoChallenge")}},mb)),mx=Yb.extend({Body:fx}
2),gx=Eb.extend({getDeviceChallengePayload:function(){return this.options.currentViewState.relatesTo.value.contextualData.challenge.value},showMessages:function(e){if(e instanceof xp)Eb.prototype.showMessages.call(this,e);else{if(this.options.appState.containsMessageWithI18nKey([Qv,Yv,Jv])){const t=xb(this.options.appState.get("messages"),!0);Ss.isEmpty(t)||(e=wp(t))}Eb.prototype.showMessages.call(this,e)}},showCustomFormErrorCallout:function(e){const t=xb(e,!1);return!Ss.isEmpty(t)&&(this.showMessages(wp(t)),!0)}}),yx=xp.extend({initialize:function(){this.listenTo(this.options.appState,"showNumberChallengeWarning",()=>{this.startWarningTimeout()}),this.listenTo(this.options.appState,"hideNumberChallengeWarning",()=>{this.clearWarning()})},className:"resend-number-challenge-warning hide",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="okta-form-infobox-warning infobox infobox-warning"><span class="icon warning-16"></span><p>'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{$1:"<a href='#' class='resend-number-challenge'>$1</a>",bundle:"login",code:"oie.numberchallenge.warning"},data:i,loc:{start:{line:1,column:103},end:{line:1,column:217}}}))+"</p></div>"},useData:!0}),showWarning:function(){this.$el.removeClass("hide")},clearWarning:function(){this.$el.addClass("hide"),clearTimeout(this.warningTimeout),this.startWarningTimeout()},startWarningTimeout:function(){this.warningTimeout=setTimeout(Ss.bind(function(){this.showWarning()},this),3e4)}}),vx=xp.extend({className:"number-challenge-section",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<p>"+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{$1:"<span class='strong'>$1</span>",arguments:"correctAnswer",bundle:"login",code:"oie.numberchallenge.instruction"},data:i,loc:{start:{line:1,column:3},end:{line:1,column:127}}}))+'</p><div class="phone no-translate"><div class="phone--body"><div class="phone--screen"><span class="phone--number" data-se="challenge-number">'+l("function"==typeof(r=null!=(r=c(n,"correctAnswer")||(null!=t?c(t,"correctAnswer"):t))?r:s)?r.call(a,{name:"correctAnswer",hash:{},data:i,loc:{start:{line:1,column:270},end:{line:1,column:287}}}):r)+'</span></div><div class="phone--home-button"></div></div></div>'},useData:!0}),getTemplateData:function(){var e,t;return{correctAnswer:null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e||null===(t=e.contextualData)||void 0===t?void 0:t.correctAnswer}}}),bx=gb.extend(Object.assign({noButtonBar:!0,className:"okta-verify-number-challenge",events:{"click a.resend-number-challenge":"handleResendNumberChallenge"},handleResendNumberChallenge:function(){this.options.appState.trigger("invokeAction","currentAuthenticator-resend"),this.options.appState.trigger("hideNumberChallengeWarning")},title:function(){return vp("oie.okta_verify.push.sent","login")},initialize:function(){gb.prototype.initialize.apply(this,arguments),this.add(vx)},triggerAfterError:function(){gb.prototype.triggerAfterError.apply(this,arguments),this.stopPolling(),this.$el.find(".o-form-fieldset-container").empty()},postRender:function(){gb.prototype.postRender.apply(this,arguments),this.startPoll()},startPoll:function(){this.startPolling(),this.addWarning()},stopPoll:function(){this.stopPolling()},addWarning:function(){this.add(yx,".o-form-error-container"),this.options.appState.trigger("showNumberChallengeWarning")},remove:function(){gb.prototype.remove.apply(this,arguments),this.stopPolling()}},mb));var wx=Yb.extend({initialize:function(){var e,t,n;Yb.prototype.initialize.apply(this,arguments);const o=null===(e=this.options)||void 0===e||null===(t=e.appState)||void 0===t?void 0:t.get("currentAuthenticator"),i=null==o?void 0:o.methods[0];(null==i?void 0:i.type)===gy&&null!=o&&null!==(n=o.contextualData)&&void 0!==n&&n.correctAnswer?this.Body=bx:(null==i?void 0:i.type)===gy?this.Body=fx:this.Body=gx}});const _x=fb.extend(Object.assign({className:"okta-verify-totp-challenge",title:function(){return vp("oie.okta_verify.totp.title","login")},save:function(){return vp("mfa.challenge.verify","login")},showCustomFormErrorCallout:function(e){var t;const n=null==e||null===(t=e.responseJSON)||void 0===t?void 0:t.errorSummaryKeys;let o;if(n&&n.includes("oie.authenticator.oktaverify.method.totp.verify.enable.biometrics"))return o={type:"error",className:"okta-verify-uv-callout-content",title:vp("oie.authenticator.app.method.push.verify.enable.biometrics.title","login"),subtitle:vp("oie.authenticator.app.method.push.verify.enable.biometrics.description","login"),bullets:[vp("oie.authenticator.app.method.push.verify.enable.biometrics.point1","login"),vp("oie.authenticator.app.method.push.verify.enable.biometrics.point2","login"),vp("oie.authenticator.app.method.push.verify.enable.biometrics.point3","login")]},this.showMessages(wp(o)),!0}}));var kx=Yb.extend({Body:_x});const xx=fb.extend(Object.assign({className:"okta-verify-resend-push",title:function(){return vp("oie.okta_verify.push.title","login")},save:function(){return vp("oie.okta_verify.push.resend","login")},showMessages:function(){let e={};this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.method.push.force.upgrade.number_challenge")?e.title=vp("oie.numberchallenge.force.upgrade.title","login"):this.options.appState.containsMessageWithI18nKey("oie.authenticator.app.method.push.verify.enable.biometrics")&&(e.content=null,e.className="okta-verify-uv-callout-content",e.title=vp("oie.authenticator.app.method.push.verify.enable.biometrics.title","login"),e.subtitle=vp("oie.authenticator.app.method.push.verify.enable.biometrics.description","login"),e.type="error",e.bullets=[vp("oie.authenticator.app.method.push.verify.enable.biometrics.point1","login"),vp("oie.authenticator.app.method.push.verify.enable.biometrics.point2","login"),vp("oie.authenticator.app.method.push.verify.enable.biometrics.point3","login")],e=wp(e)),fb.prototype.showMessages.call(this,e)}}));var Sx=Yb.extend({Body:xx});const Tx=fb.extend(Object.assign({className:function(){return this.isOV()?"okta-verify-send-push-form":"custom-app-send-push-form"},save:function(){return this.options.appState.get("authenticatorKey")===ry?vp("oie.okta_verify.sendPushButton","login"):vp("oie.custom_app.sendPushButton","login")},title:function(){return this.isOV()?vp("oie.okta_verify.push.title","login"):vp("oie.custom_app.push.title","login")},render:function(){fb.prototype.render.apply(this,arguments);
2const e=this.$el.find('[data-se="o-form-fieldset-authenticator.autoChallenge"]');e.length&&this.$el.find(".o-form-button-bar").after(e)},getUISchema:function(){return fb.prototype.getUISchema.apply(this,arguments).filter(e=>"authenticator.methodType"!==e.name)},isOV:function(){return this.options.appState.get("authenticatorKey")===ry}})),Ex=H_.extend({getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments).find(e=>"authenticator.methodType"===e.name);this._sortMethodOptionsIfDeviceKnown(e.options);const t=e.options.map(e=>Object.assign({},e,av({authenticatorKey:this.isOV()?ry:fy,value:{methodType:e.value}})));return[{View:rb,options:{name:e.name,collection:new kp(t)}}]},_sortMethodOptionsIfDeviceKnown:function(e){var t,n,o,i;if(null===(t=this.options)||void 0===t||null===(n=t.currentViewState)||void 0===n||null===(o=n.relatesTo)||void 0===o||null===(i=o.value)||void 0===i?void 0:i.deviceKnown){const t=e.findIndex(e=>"signed_nonce"===e.value);if(t>0){const n=e[t];e.splice(t,1),e.unshift(n)}}},isOV:function(){return this.options.appState.get("authenticatorKey")===ry}});var Cx=Yb.extend({initialize:function(){Yb.prototype.initialize.apply(this,arguments),this.isPushOnlyWithAutoChallengeFlow()?this.Body=Tx:(this.Body=Ex,this.Footer=zv)},isPushOnlyWithAutoChallengeFlow:function(){const e=this.options.appState.getSchemaByName("authenticator.methodType"),t=this.options.appState.getSchemaByName("authenticator.autoChallenge"),n=null==e?void 0:e.options;return t&&1===n.length&&"push"===n[0].value}});const Ox=fb.extend({noButtonBar:!0,className:"ion-form device-challenge-poll",title:function(){return vp("deviceTrust.sso.redirectText","login")},initialize:function(){var e,t;fb.prototype.initialize.apply(this,arguments),this.listenTo(this.model,"error",()=>{this.$(".spinner").hide()}),this.add('<div class="credential-sso-extension"><div class="spinner"></div></div>');const n="get"===(null===(e=this.options.currentViewState)||void 0===e||null===(t=e.method)||void 0===t?void 0:t.toLowerCase());this.model.set("useRedirect",n),this.trigger("save",this.model)},showMessages:function(e){if(e instanceof xp)fb.prototype.showMessages.call(this,e);else{if(this.options.appState.containsMessageWithI18nKey([Qv,Yv])){const t=xb(this.options.appState.get("messages"),!0);Ss.isEmpty(t)||(e=wp(t))}fb.prototype.showMessages.call(this,e)}},showCustomFormErrorCallout:function(e){const t=xb(e,!1);return!Ss.isEmpty(t)&&(this.showMessages(wp(t)),!0)}});var Ax=Yb.extend({Body:Ox}),Px=xp.extend({className:"oie-enroll-google-authenticator-barcode",template:_s.template({0:function(e,t,n,o,i){var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="google-authenticator-setup-info-title barcode-setup-title">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.scanBarcode.title"},data:i,loc:{start:{line:1,column:83},end:{line:1,column:163}}}))+'</div><div class="qrcode-info-container"><p class="google-authenticator-setup-info">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.scanBarcode.description"},data:i,loc:{start:{line:1,column:247},end:{line:1,column:333}}}))+'</p><div class="qrcode-container"><img class="qrcode" src='+l("function"==typeof(r=null!=(r=c(n,"href")||(null!=t?c(t,"href"):t))?r:s)?r.call(a,{name:"href",hash:{},data:i,loc:{start:{line:1,column:391},end:{line:1,column:399}}}):r)+' alt="qr code"></img><a href="#" class="cannot-scan-link">'+l((c(n,"i18n")||t&&c(t,"i18n")||s).call(a,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.scanBarcode.cannotScan"},data:i,loc:{start:{line:1,column:457},end:{line:1,column:542}}}))+"</a></div></div>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(r=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"href"):t,{name:"if",hash:{},fn:e.program(0,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0}
2,end:{line:1,column:565}}}))?r:""},useData:!0}),getTemplateData:function(){var e;return{href:null===(e=this.options.appState.get("currentAuthenticator").contextualData.qrcode)||void 0===e?void 0:e.href}},events:{"click .cannot-scan-link":function(e){e.preventDefault(),this.options.model.set("viewToDisplay","manual")}}}),Nx=xp.extend({className:"oie-enroll-google-authenticator-manual-setup",template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="google-authenticator-setup-info-title manual-setup-title">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.cannotScanBarcode.title"},data:i,loc:{start:{line:1,column:70},end:{line:1,column:156}}}))+'</div><p class="google-authenticator-setup-info">'+s((l(n,"i18n")||t&&l(t,"i18n")||a).call(r,{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.manualSetupInstructions"},data:i,loc:{start:{line:1,column:205},end:{line:1,column:291}}}))+"</p>"},useData:!0})});const Rx="barcode",Ix="manual",Dx="enterCode",Lx=fb.extend({title:function(){return vp("oie.enroll.google_authenticator.setup.title","login")},noButtonBar:!0,className:"oie-enroll-google-authenticator",enterCodeSubtitle:xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="google-authenticator-setup-info-title enter-code-title">'+e.escapeExpression((r(n,"i18n")||t&&r(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},{name:"i18n",hash:{bundle:"login",code:"oie.enroll.google_authenticator.enterCode.title"},data:i,loc:{start:{line:1,column:68},end:{line:1,column:146}}}))+"</div>"},useData:!0})}),getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments),t=db({className:"google-authenticator-next",title:vp("oform.next","login"),click:()=>{this.model.set("viewToDisplay",Dx)}}),n=db({className:"google-authenticator-verify",title:vp("oform.verify","login"),click:()=>{this.$el.submit()}});return e[0].showWhen={viewToDisplay:Dx},e.unshift({View:this.enterCodeSubtitle,selector:".o-form-fieldset-container",showWhen:{viewToDisplay:Dx}}),e.push({View:Px,selector:".o-form-fieldset-container",showWhen:{viewToDisplay:Rx}},{View:Nx,selector:".o-form-fieldset-container",showWhen:{viewToDisplay:Ix}},{label:!1,className:"shared-secret no-translate",type:"text",placeholder:this.options.appState.get("currentAuthenticator").contextualData.sharedSecret,disabled:!0,showWhen:{viewToDisplay:Ix}},{View:t,showWhen:{viewToDisplay:e=>e===Rx||e===Ix}},{View:n,showWhen:{viewToDisplay:e=>e===Dx}}),e}});var Mx=Yb.extend({Body:Lx,createModelClass:function(){const e=Nb.prototype.createModelClass.apply(this,arguments),t=Object.assign({viewToDisplay:{value:"barcode",type:"string",required:!0,values:[Rx,Ix,Dx]}},e.prototype.local);return e.extend({local:t})}});const Ux=fb.extend(Object.assign({className:"google-authenticator-challenge",title:function(){return vp("oie.verify.google_authenticator.otp.title","login")},subtitle:function(){return vp("oie.verify.google_authenticator.otp.description","login")},save:function(){return vp("mfa.challenge.verify","login")}}));var jx=Yb.extend({Body:Ux});const Fx=fb.extend({className:"on-prem-authenticator-enroll",modelEvents:{error:"_checkTokenChange"},title:function(){const e=this.options.appState.getAuthenticatorDisplayName()||vp("oie.on_prem.authenticator.default.vendorName","login");return vp("oie.on_prem.enroll.title","login",[e])},_checkTokenChange:function(e,t){var n;const o=null==t||null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummaryKeys;o&&o.includes("errors.E0000113")&&(this.model.set("credentials.passcode",""),this.render())},save:function(){return vp("mfa.challenge.verify","login")}});var Vx=Yb.extend({Body:Fx});const qx=fb.extend({className:"on-prem-authenticator-verify",modelEvents:{error:"_checkTokenChange"},title:function(){const e=this.options.appState.getAuthenticatorDisplayName()||vp("oie.on_prem.authenticator.default.vend
2orName","login");return vp("oie.on_prem.verify.title","login",[e])},_checkTokenChange:function(e,t){var n;const o=null==t||null===(n=t.responseJSON)||void 0===n?void 0:n.errorSummaryKeys;o&&o.includes("errors.E0000113")&&(this.model.set("credentials.passcode",""),this.render())},save:function(){return vp("mfa.challenge.verify","login")}});var Bx=Yb.extend({Body:qx}),$x=fb.extend({noButtonBar:!0,postRender:function(){const e=this.getContextualData(),t=this.add(`<iframe frameborder="0" title="'${this.title()}'"></iframe>`).last();try{qh.init({host:e.host,sig_request:e.signedToken,iframe:t.el,post_action:e=>{this.model.set("credentials.signatureData",e),this.saveForm(this.model)}})}catch(e){t.remove(),this.add(wp({type:"error",subtitle:vp("oie.duo.iFrameError","login")}),".o-form-error-container")}},getContextualData:function(){}});const Hx=$x.extend({title:function(){return vp("oie.duo.enroll.title","login")},getContextualData:function(){return this.options.appState.get("currentAuthenticator").contextualData}});var zx=Yb.extend({Body:Hx});const Wx=$x.extend({title:function(){return vp("oie.duo.verify.title","login")},getContextualData:function(){return this.options.appState.get("currentAuthenticatorEnrollment").contextualData}});var Kx=Yb.extend({Body:Wx});const Gx=Jb.extend({title:function(){const e=this.options.appState.getAuthenticatorDisplayName();return vp("oie.idp.challenge.title","login",[e])},subtitle:function(){const e=this.options.appState.getAuthenticatorDisplayName();return vp("oie.idp.challenge.description","login",[e])},save:function(){return vp("mfa.challenge.verify","login")}});var Yx=Qb.extend({Body:Gx});const Jx=Jb.extend({title:function(){const e=this.options.appState.getAuthenticatorDisplayName();return vp("oie.idp.enroll.title","login",[e])},subtitle:function(){const e=this.options.appState.getAuthenticatorDisplayName();return vp("oie.idp.enroll.description","login",[e])},save:function(){return vp("mfa.enroll","login")}});var Qx=Qb.extend({Body:Jx});const Xx=fb.extend(Object.assign({className:"mfa-verify-custom-otp",title:function(){const e=this.options.appState.getAuthenticatorDisplayName()||vp("oie.custom_otp.authenticator.default.vendorName","login");return vp("oie.verify.custom_otp.title","login",[e])},subtitle:function(){return vp("oie.verify.custom_otp.description","login")},save:function(){return vp("mfa.challenge.verify","login")}}));var Zx=Yb.extend({Body:Xx});const eS=fb.extend({title:function(){const e=this.options.appState.getAuthenticatorDisplayName();return this.options.appState.isAuthenticatorChallenge()?vp("oie.symantecVip.challenge.title","login",[e]):vp("oie.symantecVip.enroll.title","login",[e])},subtitle:function(){const e=this.options.appState.getAuthenticatorDisplayName();return this.options.appState.isAuthenticatorChallenge()?vp("oie.symantecVip.challenge.description","login",[e]):vp("oie.symantecVip.enroll.description","login",[e])},save:function(){return this.options.appState.isAuthenticatorChallenge()?vp("mfa.challenge.verify","login"):vp("mfa.enroll","login")}});var tS=Yb.extend({Body:eS});const nS=fb.extend({title:function(){return vp("device.code.activate.title","login")},subtitle:function(){return vp("device.code.activate.subtitle","login")},events:{'keyup input[name="userCode"]':function(e){e.preventDefault(),this.addHyphen(e)}},addHyphen:function(e){const t=e.target.value;t&&4===t.length&&!["Backspace","Delete","-"].includes(e.key)&&(e.target.value=t.concat("-"))}});var oS=Nb.extend({Body:nS}),iS=Lv.extend({HeaderBeacon:Kb.extend({getBeaconClassName:function(){return"smartcard"}})});const rS=fb.extend({className:"piv-cac-card",modelEvents:{request:"startAuthentication",error:"stopAuthentication"},initialize:function(){fb.prototype.initialize.apply(this,arguments),this.model.set("useRedirect",!0),this.addInstructions()},title:function(){return vp("piv.cac.title","login")},save:function(){return vp("retry","login")},addInstructions:function(){this.add(`<div class='piv-verify-text'>\n        <p>${vp("piv.cac.card.insert","login")}</p>\n        <div data-se='piv-waiting' class='okta-waiting-spinner'></div>\n      </div>`)},startAuthentication:function(){this.$(".okta-waiting-spinner").show(),this.$(".o-form-button-bar").hide()},stopAuthentication:function(){this.$(".okta-waiting-spinner").hide(),this.$(".o-form-button-bar").show()}});var aS=Yb.extend({Header:iS,Body:rS,postRender:function(){Yb.prototype.postRender.apply(this,arguments);const e=this.options.appState.get("messages")||{};Array.isArray(e.value)?this.form.stopAuthentication():(this.form.startAuthentication(),this.form.trigger("save",this.model))}});const sS=xp.extend({template:_s.template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div aria-hidden="true" class="yubikey-demo"></div>'},useData:!0}
2)}),lS=fb.extend({title:function(){return this.options.appState.isAuthenticatorChallenge()?vp("oie.yubikey.challenge.title","login"):vp("oie.yubikey.enroll.title","login")},subtitle:function(){return vp("oie.yubikey.description","login")},save:function(){return vp("mfa.challenge.verify","login")},getUISchema:function(){const e=fb.prototype.getUISchema.apply(this,arguments);return e.unshift({View:sS,selector:".o-form-fieldset-container"}),e}});var cS=Yb.extend({Body:lS});const uS=fb.extend(Object.assign({className:"custom-app-verify-resend-push",title:function(){return vp("oie.verify.custom_app.title","login",[this.options.appState.getAuthenticatorDisplayName()])},save:function(){return vp("oie.custom_app.push.resend","login")},showMessages:function(){let e={};this.options.appState.containsMessageWithI18nKey("oie.authenticator.custom_app.method.push.verify.enable.biometrics")&&(e.content=null,e.className="okta-verify-uv-callout-content",e.title=vp("oie.authenticator.custom_app.method.push.verify.enable.biometrics.title","login",[this.options.appState.getAuthenticatorDisplayName()]),e.subtitle=vp("oie.authenticator.custom_app.method.push.verify.enable.biometrics.description","login"),e.type="error",e.bullets=[vp("oie.authenticator.custom_app.method.push.verify.enable.biometrics.point1","login"),vp("oie.authenticator.custom_app.method.push.verify.enable.biometrics.point2","login",[this.options.appState.getAuthenticatorDisplayName()]),vp("oie.authenticator.custom_app.method.push.verify.enable.biometrics.point3","login",[this.options.appState.getAuthenticatorDisplayName()])],e=wp(e)),fb.prototype.showMessages.call(this,e)}}));var pS=Yb.extend({Body:uS});const dS=fb.extend({title:function(){return vp("password.expired.title.generic","login")},subtitle:function(){return vp("password.expired.custom.subtitle","login")},noSubmitButton:!0,initialize:function(){const{customExpiredPasswordName:e,customExpiredPasswordURL:t}=this.options.currentViewState;this.add(bp({className:"button button-primary button-wide",title:Ss.partial(vp,"password.expired.custom.submit","login",[e]),click:()=>{ca.redirect(t)}}))}});var hS=Nb.extend({Body:dS});const fS=fb.extend({className:"password-authenticator",subtitle:function(){return this.settings.get("brandName")?vp("password.expiring.soon.subtitle.specific","login",[this.settings.get("brandName")]):vp("password.expiring.soon.subtitle.generic","login")},title:function(){var e;const t=(null===(e=this.options.appState.get("currentAuthenticator"))||void 0===e?void 0:e.settings).daysToExpiry;return t>0?vp("password.expiring.title","login",[t]):vp(0===t?"password.expiring.today":"password.expiring.soon","login")},noSubmitButton:!0,initialize:function(){const{customExpiredPasswordName:e,customExpiredPasswordURL:t}=this.options.currentViewState;this.add(bp({className:"button button-primary button-wide",title:Ss.partial(vp,"password.expired.custom.submit","login",[e]),click:()=>{ca.redirect(t)}}))}}),mS=zv.extend({links:function(){const e=[];return this.options.appState.hasRemediationObject("skip")&&e.push({type:"link",label:vp("password.expiring.later","login"),name:"skip",actionPath:"skip"}),e}});var gS=Nb.extend({Body:fS,Footer:mS});const yS=fb.extend(Object.assign({className:"tac-authenticator-challenge",title:function(){return vp("oie.verify.tac.title","login")},subtitle:function(){return vp("oie.verify.tac.description","login")},save:function(){return vp("mfa.challenge.verify","login")}}));var vS=Yb.extend({Body:yS});const bS=fb.extend({noSubmitButton:!0,title:function(){return vp("oie.kmsi.title","login")},subtitle:function(){return vp("oie.kmsi.subtitle","login")},saveForm:function(e){this.model.set("keepMeSignedIn",e),this.options.appState.trigger("saveForm",this.model)},getUISchema:function(){const e=this;return[{View:bp({className:"button button-secondary",title:vp("oie.kmsi.accept","login"),attributes:{"data-se":"stay-signed-in-btn"},click:function(){e.saveForm(!0)}})},{View:bp({className:"button button-secondary",title:vp("oie.kmsi.reject","login"),attributes:{"data-se":"do-not-stay-signed-in-btn"},click:function(){e.saveForm(!1)}})}]}});var wS=Nb.extend({Body:bS});const _S=fb.extend({title:()=>vp("account.unlock.title","login")});var kS=Nb.extend({initialize:function(){Nb.prototype.initialize.apply(this,arguments),this.Body=_S}});const xS=fb.extend({title:function(){return vp("idx.device_assurance.grace_peri
2od.title","login")},save:function(){return vp("idx.device_assurance.grace_period.continue_to_app","login")},showMessages:function(){const e=this.options.appState.get("messages").value,t=this.settings.get("languageTags");e&&this.add(wp({content:new fw({messages:e,languageTags:t}),type:"warning"}))}});var SS=Nb.extend({initialize:function(){Nb.prototype.initialize.apply(this,arguments),this.Body=xS}});const TS="_",ES={[Jg.IDENTIFY]:{[TS]:Bb},[Jg.IDENTIFY_RECOVERY]:{[TS]:nw},[Jg.DEVICE_CHALLENGE_POLL]:{[TS]:c_},[Jg.LAUNCH_AUTHENTICATOR]:{[TS]:f_},[Jg.DEVICE_APPLE_SSO_EXTENSION]:{[TS]:p_,[ry]:Ax},[Jg.CANCEL_TRANSACTION]:{[TS]:p_},[Jg.ENROLL_PROFILE]:{[TS]:M_},[Jg.ENROLL_PROFILE_UPDATE]:{[TS]:F_},[Jg.POLL]:{[TS]:Hw},[Jg.REQUEST_ACTIVATION]:{[TS]:q_},[Jg.SELECT_AUTHENTICATOR_ENROLL]:{[TS]:$_},[Jg.AUTHENTICATOR_ENROLLMENT_DATA]:{[ny]:fk,[ey]:Xk},[Jg.CONSENT_ADMIN]:{[TS]:Kw},[Jg.CONSENT_ENDUSER]:{[TS]:Qw},[Jg.CONSENT_GRANULAR]:{[TS]:n_},[Jg.CONSENT_EMAIL_CHALLENGE]:{[TS]:r_},[Jg.ENROLL_AUTHENTICATOR]:{[cy]:zx,[ey]:zk,[ay]:Mx,[uy]:Qx,[sy]:Vx,[ty]:Y_,[ny]:dk,[ly]:Vx,[iy]:vk,[dy]:tS,[oy]:Sk,[hy]:cS},[Jg.CHALLENGE_AUTHENTICATOR]:{[py]:Zx,[cy]:Kx,[ey]:Gk,[ay]:jx,[uy]:Yx,[sy]:Bx,[ry]:kx,[ty]:X_,[ny]:ck,[ly]:Bx,[iy]:wk,[dy]:tS,[my]:vS,[oy]:Nk,[hy]:cS},[Jg.ENROLL_POLL]:{[ry]:sx},[Jg.SELECT_ENROLLMENT_CHANNEL]:{[ry]:ux},[Jg.ENROLLMENT_CHANNEL_DATA]:{[ry]:dx},[Jg.REENROLL_AUTHENTICATOR]:{[ty]:ek},[Jg.REENROLL_CUSTOM_PASSWORD_EXPIRY]:{[ty]:hS},[Jg.REENROLL_CUSTOM_PASSWORD_EXPIRY_WARNING]:{[ty]:gS},[Jg.REENROLL_AUTHENTICATOR_WARNING]:{[ty]:ok},[Jg.RESET_AUTHENTICATOR]:{[ty]:rk,[ay]:Mx},[Jg.SELECT_AUTHENTICATOR_AUTHENTICATE]:{[TS]:z_},[Jg.SELECT_AUTHENTICATOR_UNLOCK]:{[TS]:K_},[Jg.UNLOCK_ACCOUNT]:{[TS]:kS},[Jg.CHALLENGE_POLL]:{[ry]:wx,[fy]:mx},[Jg.RESEND]:{[ry]:Sx,[fy]:pS},[Jg.AUTHENTICATOR_VERIFICATION_DATA]:{[ny]:gk,[ry]:Cx,[ey]:Xk,[fy]:Cx},[Jg.FAILURE_REDIRECT]:{[TS]:qw},[Jg.SUCCESS_REDIRECT]:{[TS]:qw},[Jg.REDIRECT_IDP]:{[TS]:$b},[Jg.REDIRECT_IDVERIFY]:{[TS]:ew},[Jg.PIV_IDP]:{[TS]:aS},[Jg.DEVICE_ENROLLMENT_TERMINAL]:{[TS]:R_},[Jg.USER_CODE]:{[TS]:oS},[Jg.KEEP_ME_SIGNED_IN]:{[TS]:wS},[Jg.TERMINAL]:{[TS]:jw},[Jg.DEVICE_ASSURANCE_GRACE_PERIOD]:{[TS]:SS}};const CS=e=>{let t={};return Object.keys(e).forEach(n=>{if("object"!=typeof e[n])return void(t[n]=e[n]);const o=CS(e[n]);Object.keys(o).forEach(e=>{t[n+"."+e]=o[e]})}),t},OS={[Jg.CONSENT_GRANULAR]:e=>e.optedScopes&&"string"!=typeof e.optedScopes?{...e,optedScopes:CS(e.optedScopes)}:e};var AS=dp.extend({className:"form-controller",appStateEvents:{"change:currentFormName":"handleFormNameChange",afterError:"handleAfterError",invokeAction:"handleInvokeAction",saveForm:"handleSaveForm",switchForm:"handleSwitchForm"},preRender:function(){this.removeChildren()},postRender:function(){const e=this.options.appState.getCurrentViewState();if(!e)return;this.clearMetadata();let t=e.name;"identify"===t&&this.options.settings.get("flow")===My&&(t="identify-recovery");const n=function(e,t=TS){const n=ES[e];return n?n[t]||n[TS]||(Zr(`Cannot find customized View for ${e} + ${t}.`),Nb):(Zr(`Cannot find customized View for ${e}.`),Nb)}(t,this.options.appState.get("authenticatorKey"));try{this.formView=this.add(n,{options:{currentViewState:e}}).last()}catch(e){return void this.options.settings.callGlobalError(e)}this.triggerAfterRenderEvent()},clearMetadata:function(){const e=this.options.appState.get("currentFormName");wy.includes(e)&&Ry()},triggerAfterRenderEvent:function(){const e=this.createAfterEventContext();this.trigger("afterRender",e)},handleFormNameChange:function(){this.$el.click(),this.render()},handleAfterError:function(e){const t=this.createAfterEventContext(),n={xhr:e,errorSummary:e.responseJSON&&e.responseJSON.errorSummary};this.trigger("afterError",t,n)},createAfterEventContext:function(){const e=this.options.appState.get("currentFormName"),t=this.options.appState.get("authenticatorKey"),n=this.options.appState.get("authenticatorMethodType"),o=this.options.appState.get("isPasswordRecoveryFlow"),i={controller:Pb(e,t,n,o),formName:e};return t&&(i.authenticatorKey=t),n&&(i.methodType=n),i},handleSwitchForm:function(e){this.options.appState.get("messages")&&this.options.appState.unset("messages"),this.options.appState.set("currentFormName",e)},handleInvokeAction:async function(e="",t={},n=!0){const{appState:o,settings:i}=this.options;if(e===vy&&i.get("oauth2Enabled"))return void o.trigger("restartLoginFlow","resetPassword");const r=o.get("idx"),{stateHandle:a}=r.context;let s,l={exchangeCodeForTokens:!1,stateHandle:a};if("cancel"===e&&(i.getAuthClient().transactionManager.clear({clearIdxResponse:!1}
2),Ry(),o.clearAppStateCache(),i.get("oauth2Enabled")))o.trigger("restartLoginFlow");else{if([Jg.LAUNCH_AUTHENTICATOR,Jg.CHALLENGE_WEBAUTHN_AUTOFILLUI_AUTHENTICATOR,Jg.LAUNCH_PASSKEYS_AUTHENTICATOR].includes(e)&&t)l={...l,actions:[{name:e,params:t}]};else if(r.neededToProceed.find(t=>t.name===e))l={...l,step:e};else{if(!Ss.isFunction(r.actions[e]))return s=new jr(`Invalid action selected: ${e}`),this.options.settings.callGlobalError(s),void(n&&await this.showFormErrors(this.formView.model,s,this.formView.form));l={...l,actions:[{name:e,params:t}]}}await this.invokeAction(l)}},invokeAction:async function(e){const t=this.options.settings.getAuthClient();let n,o;try{n=await t.idx.proceed(e),!1===n.requestDidSucceed&&(o=n)}catch(e){o=e}if(o){var i,r,a,s,l;const t=o.rawIdxState||o,n=Ik(t),c=null===(i=e.actions)||void 0===i||null===(r=i[0])||void 0===r||null===(a=r.name)||void 0===a?void 0:a.endsWith("-poll");return Rv(t)||Dk(n)||!c||"function"!=typeof(null===(s=this.formView)||void 0===s||null===(l=s.form)||void 0===l?void 0:l.startPolling)?void await this.showFormErrors(this.formView.model,o,this.formView.form):void this.formView.form.startPolling()}await this.handleIdxResponse(n)},handleSaveForm:async function(e){var t,n;const o=e.get("formName");if(this.toggleFormButtonState(!0),e.trigger("request"),e.get("useRedirect")){Ry();const e=this.options.appState.getCurrentViewState();return void ca.executeOnVisiblePage(()=>{ca.redirectWithFormGet(e.href)})}const i=((e,t)=>{const n=t.toJSON(),o=OS[e];return void 0===o?n:o(n)})(o,e),r=i.identifier,a=this.transformIdentifier(o,i);if(this.options.settings.get("features.rememberMe")?r&&jf(r):Ff(),!this.options.appState.hasRemediationObject(o))return this.options.settings.callGlobalError(`Cannot find http action for "${o}".`),void await this.showFormErrors(this.formView.model,"Cannot find action to proceed.",this.formView.form);"identify"===o&&this.options.settings.get("flow")===My&&(a.authenticator="okta_password");const s=this.options.settings.getAuthClient(),c={exchangeCodeForTokens:!1},u=o===Jg.RESET_AUTHENTICATOR&&"resetPassword"===(null===(t=(n=s.idx).getFlow)||void 0===t?void 0:t.call(n));if(u){var p,d;s.idx.setFlow("default");const e=null===(p=(d=s.idx).getSavedTransactionMeta)||void 0===p?void 0:p.call(d);var h,f;e&&(null===(h=(f=s.idx).saveTransactionMeta)||void 0===h||h.call(f,{...e,flow:"default"}))}try{const t=this.options.appState.get("idx"),{stateHandle:n}=t.context,i=await s.idx.proceed({...c,step:o,...u&&{flow:"default"},stateHandle:n,...a});if(i.status===l.FAILURE)throw i.error;if(Iv(i))return this.settings.getAuthClient().transactionManager.clear(),void await this.handleIdxResponse(i);if(!1===i.requestDidSucceed&&!i.stepUp)return void await this.showFormErrors(e,i,this.formView.form);const r=this.handleIdxResponse.bind(this,i);var m;o===Jg.ENROLL_PROFILE?this.settings.postRegistrationSubmit(null==a||null===(m=a.userProfile)||void 0===m?void 0:m.email,r,t=>{e.trigger("error",e,{responseJSON:t})}):await r()}catch(t){var g;null!==(g=t.is)&&void 0!==g&&g.call(t,"terminal")?this.options.appState.setNonIdxError(t):await this.showFormErrors(e,t,this.formView.form)}finally{this.toggleFormButtonState(!1)}},transformIdentifier:function(e,t){if(Object.prototype.hasOwnProperty.call(t,"identifier")){const n=yy[e];t.identifier=this.settings.transformUsername(t.identifier,n)}return t},showFormErrors:async function(e,t,n){var o;let i,r=!0;e.trigger("clearFormError"),t||(t="FormController - unknown error found",this.options.settings.callGlobalError(t)),null!==(o=t)&&void 0!==o&&o.rawIdxState&&(i=t,t=t.rawIdxState);const a=Ik(t,e=>{ca.logConsoleError(e)});var s;Ss.isFunction(null==n?void 0:n.showCustomFormErrorCallout)&&(r=!n.showCustomFormErrorCallout(a,null===(s=i)||void 0===s?void 0:s.messages)),e.trigger("error",e,a,r),i=Object.assign({},i,{hasFormError:!0})},handleIdxResponse:async function(e){await Tv(this.options.appState,e)},toggleFormButtonState:function(e){this.$el.find(".o-form-button-bar .button").toggleClass("link-button-disabled",e)}});const PS={"":"defaultAuth","*wildcard":"defaultAuth"};class NS extends Dv{constructor(e){super({routes:PS,...e})}defaultAuth(){this.render(AS)}}function RS(e){let t;const n=!e.stateToken&&!e.clientId&&!e.proxyIdxResponse,o=e.stateToken&&ca.isV1StateToken(e.stateToken),i=e.clientId&&!0===e.useClassicEngine;return t=n||o||i?Yg:NS,t}function IS(e={},t={}){const n=sl.extend(!0,{},e.authParams,Ss.pick(t,Ed.AUTH_PARAMS)),{el:o,clientId:i,redirectUri:r}=Object.assign({},e,t),a=Object.assign({},{el:o,clientId:i,redirectUri:r,authParams:n});if(!a.el)throw new jr('"el" is required');if(!a.clientId)throw new jr('"clientId" is required');if(!a.redirectUri)throw new jr('"redirectUri" is required');return a}class DS extends Gs{mergeHook(e,t){const n=this.get("hooks")||{};!function(e,t,n){const o=e[t]=e[t]||{before:[],after:[]};n.before&&(o.before=(o.before||[]).concat(n.before)),n.after&&(o.after=(o.after||[]).concat(n.after))}(n,e,t),this.set("hooks",n)}getHook(e){return(this.get("hooks")||{})[e]}}
2const LS=["ready","afterError","afterRender"];class MS extends(function(e,t){return class{constructor(n){var o,i,r;if(this.Router=void 0,this.options=void 0,this.hooks=void 0,this.router=void 0,this.authClient=void 0,this._eventCallbackMap=void 0,ca.debugMessage("\n          The Okta Sign-In Widget is running in development mode.\n          When you are ready to publish your app, embed the minified version to turn on production mode.\n          See: https://developer.okta.com/code/javascript/okta_sign-in_widget#cdn\n        "),n.stateToken||(n.stateToken=null===(o=window)||void 0===o||null===(i=o.oktaData)||void 0===i||null===(r=i.signIn)||void 0===r?void 0:r.stateToken),this.options=n,this.authClient=function(e,t={}){let{authClient:n,authParams:o}=t;if(!n){const{issuer:i,clientId:r,redirectUri:a,state:s,scopes:l,flow:c,codeChallenge:u,codeChallengeMethod:p,recoveryToken:d}=t;o={issuer:i,clientId:r,redirectUri:a,state:s,scopes:l,flow:c,codeChallenge:u,codeChallengeMethod:p,transformErrorXHR:ca.transformErrorXHR,recoveryToken:d,pollDelay:500,...o},o.issuer||(o.issuer=t.baseUrl+"/oauth2/default"),n=new e(o)}if(!n._oktaUserAgent)throw new jr("The passed in authClient should be version 5.4.0 or above.");return n._oktaUserAgent.addEnvironment(`okta-signin-widget-${Ir.version}`),n}(e,n),!0!==n.useClassicEngine&&this.authClient.options.clientId&&!1===this.authClient.isPKCE())throw new jr("OAuth2 with interaction code flow requires PKCE to be enabled on the authClient.");this.hooks=new DS({hooks:n.hooks}),this.Router=t(n),this._eventCallbackMap=new WeakMap,this.Router.prototype.Events.listenTo.call(this,this.Router.prototype,"all",this.trigger),this.once("afterRender",function(e){this.trigger("ready",e)})}renderEl(e,t,n){if(this.router)throw new Error("An instance of the widget has already been rendered. Call remove() first.");const o=function(e,t,n,o,i,r,a){let s,l;const c=new Promise((e,t)=>{s=e,l=t}),u=sl.extend(!0,{},t,n,{authClient:o,hooks:a,globalSuccessFn:e=>{i&&i(e),e&&e.status===Mr.SUCCESS&&s(e)},globalErrorFn:e=>{r&&r(e),l(e)}}),p=new e(u);return p.start(),{router:p,routerOptions:u,promise:c}}(this.Router,this.options,e,this.authClient,t,n,this.hooks);return this.router=o.router,o.promise}hide(){this.router&&this.router.hide()}show(){this.router&&this.router.show()}remove(){this.router&&(this.router.remove(),this.router=void 0)}showSignInToGetTokens(e){const t=Object.assign(IS(this.options,e),{redirect:"never"}),n=this.renderEl(t).then(e=>e.tokens),o=this.router.settings.getAuthClient();if(o.isAuthorizationCodeFlow()&&!o.isPKCE())throw new jr('"showSignInToGetTokens()" should not be used for authorization_code flow. Use "showSignInAndRedirect()" instead');return n}showSignInAndRedirect(e){const t=Object.assign(IS(this.options,e),{redirect:"always"});return this.renderEl(t).then(()=>{})}showSignIn(e){const t=Object.assign(IS(this.options,e));return this.renderEl(t)}before(e,t){this.hooks.mergeHook(e,{before:[t]})}after(e,t){this.hooks.mergeHook(e,{after:[t]})}getUser(){var e,t;return null===(e=this.router)||void 0===e||null===(t=e.appState)||void 0===t?void 0:t.getUser()}on(e,t){if(LS.includes(e)){const n=t;t=function(...t){try{n.apply(this,t)}catch(t){ea(`[okta-signin-widget] "${e}" event handler error:`,t)}},this._eventCallbackMap.set(n,t)}this.Router.prototype.Events.on.call(this,e,t)}off(e,t){t&&(t=this._eventCallbackMap.get(t)||t),this.Router.prototype.Events.off.call(this,e,t)}once(e,t){this.Router.prototype.Events.once.call(this,e,t)}stopListening(e,t){this.Router.prototype.Events.stopListening.call(this,e,t)}listenTo(e,t,n){this.Router.prototype.Events.listenTo.call(this,e,t,n)}trigger(e,...t){this.Router.prototype.Events.trigger.apply(this,[e,...t])}}}(Or,RS)){constructor(e){super(e)}}},24417(e){"use strict";const t={days:e=>864e5*e,hours:e=>36e5*e,minutes:e=>6e4*e,seconds:e=>1e3*e,milliseconds:e=>e,microseconds:e=>e/1e3,nanoseconds:e=>e/1e6},n=e=>Object.entries(e).reduce((e,[n,o])=>{if("number"!=typeof o)throw new TypeError(`Expected a \`number\` for key \`${n}\`, got \`${o}\` (${typeof o})`);if(!t[n])throw new Error("Unsupported time key");return e+t[n](o)},0);e.exports=n,e.exports.default=n},29210(e,t,n){var o,i,r;i=[e,n(50618)],o=function(e,t){"use strict";var n,o=(n=t)&&n.__esModule?n:{default:n};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.resolveOptions(t),this.initSelection()}return r(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}}
vendor: 7,831 bytes, line 2
2,{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,o.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,o.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=a},void 0===(r=o.apply(t,i))||(e.exports=r)},28187(e,t,n){var o,i,r;i=[e,n(29210),n(6996),n(49539)],o=function(e,t,n,o){"use strict";var i=s(t),r=s(n),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.resolveOptions(n),o.listenClick(e),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),c(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return p("action",e)}},{key:"defaultTarget",value:function(e){var t=p("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return p("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(r.default);function p(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u},void 0===(r=o.apply(t,i))||(e.exports=r)},6996(e){function t(){}t.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function i(){o.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;o<i;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],i=[];if(o&&t)for(var r=0,a=o.length;r<a;r++)o[r].fn!==t&&o[r].fn._!==t&&i.push(o[r]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},3036(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},37512(e,t,n){var o=n(3036);function i(e,t,n,o,i){var a=r.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function r(e,t,n,i){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,o,r){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,o,r)}))}},48116(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},49539(e,t,n){var o=n(48116),i=n(37512);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!o.string(t))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}
vendor: 5,257 bytes, line 2
2(e,t,n);if(o.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(o.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},74692(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(o,i){"use strict";var r=[],a=Object.getPrototypeOf,s=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},c=r.push,u=r.indexOf,p={},d=p.toString,h=p.hasOwnProperty,f=h.toString,m=f.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},b=o.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var o,i,r=(n=n||b).createElement("script");if(r.text=e,t)for(o in w)(i=t[o]||t.getAttribute&&t.getAttribute(o))&&r.setAttribute(o,i);n.head.appendChild(r).parentNode.removeChild(r)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[d.call(e)]||"object":typeof e}var x="3.7.1",S=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:x,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},T.extend=T.fn.extend=function(){var e,t,n,o,i,r,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)o=e[t],"__proto__"!==t&&a!==o&&(c&&o&&(T.isPlainObject(o)||(i=Array.isArray(o)))?(n=a[t],r=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,a[t]=T.extend(c,r,o)):void 0!==o&&(a[t]=o));return a},T.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e)||(t=a(e))&&("function"!=typeof(n=h.call(t,"constructor")&&t.constructor)||f.call(n)!==m))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,o=0;if(E(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},text:function(e){var t,n="",o=0,i=e.nodeType;if(!i)for(;t=e[o++];)n+=T.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?T.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!S.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,o=0,i=e.length;o<n;o++)e[i++]=t[o];return e.length=i,e},grep:function(e,t,n){for(var o=[],i=0,r=e.length,a=!n;i<r;i++)!t(e[i],i)!==a&&o.push(e[i]);return o},map:function(e,t,n){var o,i,r=0,a=[];if(E(e))for(o=e.length;r<o;r++)null!=(i=t(e[r],r,n))&&a.push(i);else for(r in e)null!=(i=t(e[r],r,n))&&a.push(i);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=r[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){p["[object "+t+"]"]=t.toLowerCase()});var O=r.pop,A=r.sort,P=r.splice,N="[\\x20\\t\\r\\n\\f]",R=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(I,D)};var L=b,M=c;!function(){var e,t,n,i,a,l,c,p,d,f,m=M,y=T.expando,v=0,b=0,w=ee(),_=ee(),k=ee(),x=ee(),S=function(e,t){return e===t&&(
vendor: 10,948 bytes, line 2
2a=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+N+"*("+I+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+N+"*\\]",U=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",j=new RegExp(N+"+","g"),F=new RegExp("^"+N+"*,"+N+"*"),V=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),q=new RegExp(N+"|>"),B=new RegExp(U),$=new RegExp("^"+I+"$"),H={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),J=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){le()},X=de(function(e){return!0===e.disabled&&C(e,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(r=s.call(L.childNodes),L.childNodes),r[L.childNodes.length].nodeType}catch(e){m={apply:function(e,t){M.apply(e,s.call(t))},call:function(e){M.apply(e,s.call(arguments,1))}}}function Z(e,t,n,o){var i,r,a,s,c,u,h,f=t&&t.ownerDocument,v=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return n;if(!o&&(le(t),t=t||l,p)){if(11!==v&&(c=K.exec(e)))if(i=c[1]){if(9===v){if(!(a=t.getElementById(i)))return n;if(a.id===i)return m.call(n,a),n}else if(f&&(a=f.getElementById(i))&&Z.contains(t,a)&&a.id===i)return m.call(n,a),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(i)),n}if(!(x[e+" "]||d&&d.test(e))){if(h=e,f=t,1===v&&(q.test(e)||V.test(e))){for((f=G.test(e)&&se(t.parentNode)||t)==t&&g.scope||((s=t.getAttribute("id"))?s=T.escapeSelector(s):t.setAttribute("id",s=y)),r=(u=ue(e)).length;r--;)u[r]=(s?"#"+s:":scope")+" "+pe(u[r]);h=u.join(",")}try{return m.apply(n,f.querySelectorAll(h)),n}catch(t){x(e,!0)}finally{s===y&&t.removeAttribute("id")}}}return ve(e.replace(R,"$1"),t,n,o)}function ee(){var e=[];return function n(o,i){return e.push(o+" ")>t.cacheLength&&delete n[e.shift()],n[o+" "]=i}}function te(e){return e[y]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function oe(e){return function(t){return C(t,"input")&&t.type===e}}function ie(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function re(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&X(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te(function(t){return t=+t,te(function(n,o){for(var i,r=e([],n.length,t),a=r.length;a--;)n[i=r[a]]&&(n[i]=!(o[i]=n[i]))})})}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,o=e?e.ownerDocument||e:L;return o!=l&&9===o.nodeType&&o.documentElement?(c=(l=o).documentElement,p=!T.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&L!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),g.getById=ne(function(e){return c.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length}),g.disconnectedMatch=ne(function(e){return f.call(e,"*")}),g.scope=ne(function(){return l.querySelectorAll(":scope")}),g.cssHas=ne(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),g.getById?(t.filter.ID=function(e){var t=e.replace(Y,J);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Y,J);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n,o,i,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(i=t.getElementsByName(e),o=0;r=i[o++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},d=[],ne(function(e){var t;c.appendChild(e).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+N+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+y+"-]").length||d.push("~="),e.querySelectorAll("a#"+y+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")")}),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),S=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==L&&Z.contains(L,e)?-1:t===l||t.ownerDocument==L&&Z.contains(L,t)?1:i?u.call(i,e)-u.call(i,t):0:4&n?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),p&&!x[t+" "]&&(!d||!d.test(t)))try{var n=f.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){x(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var o=t.attrHandle[n.toLowerCase()],i=o&&h.call(t.attrHandle,n.toLowerCase())?o(e,n,!p):void 0;return void 0!==i?i:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],o=0,r=0;if(a=!g.sortStable,i=!g.sortStable&&s.call(e,0),A.call(e,S),a){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)P.call(e,n[o],1)}return i=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},t=T.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,J),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,J),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,J).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&w(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(o){var i=Z.attr(o,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,i){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,p,d,h,f=r!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!l&&!s,w=!1;if(m){if(r){for(;f;){for(p=t;p=p[f];)if(s?C(p,g):1===p.nodeType)return!1;h=f="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&b){for(w=(d=(c=(u=m[y]||(m[y]={}))[e]||[])[0]===v&&c[1])&&c[2],p=d&&m.childNodes[d];p=++d&&p&&p[f]||(w=d=0)||h.pop();)if(1===p.nodeType&&++w&&p===t){u[e]=[v,d,w];break}}else if(b&&(w=d=(c=(u=t[y]||(t[y]={}))[e]||[])[0]===v&&c[1]),!1===w)for(;(p=++d&&p&&p[f]||(w=d=0)||h.pop())&&(!(s?C(p,g):1===p.nodeType)||!++w||(b&&((u=p[y]||(p[y]={}))[e]=[v,w]),p!==t)););return(w-=i)===o||w%o===0&&w/o>=0}}},PSEUDO:function(e,n){var o,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return i[y]?i(n):i.length>1?(o=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,t){for(var o,r=i(e,n),a=r.length;a--;)e[o=u.call(e,r[a])]=!(t[o]=r[a])}):function(e){return i(e,0,o)}):i}},pseudos:{not:te(function(e){var t=[],n=[],o=ye(e.replace(R,"$1"));return o[y]?te(function(e,t,n,i){for(var r,a=o(e,null,i,[]),s=e.length;s--;)(r=a[s])&&(e[s]=!(t[s]=r))}):function(e,i,r){return t[0]=e,o(t,null,r,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return Z(e,t).length>0}}),contains:te(function(e){return e=e.replace(Y,J),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}}),lang:te(function(e){return $.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(Y,J).toLowerCase(),function(t){var n;do{if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(e){var t=o.location&&o.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:re(!1),disabled:re(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)}
vendor: 11,020 bytes, line 2
2,input:function(e){return z.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae(function(){return[0]}),last:ae(function(e,t){return[t-1]}),eq:ae(function(e,t,n){return[n<0?n+t:n]}),even:ae(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ae(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ae(function(e,t,n){var o;for(o=n<0?n+t:n>t?t:n;--o>=0;)e.push(o);return e}),gt:ae(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=oe(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ce(){}function ue(e,n){var o,i,r,a,s,l,c,u=_[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in o&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(r=[])),o=!1,(i=V.exec(s))&&(o=i.shift(),r.push({value:o,type:i[0].replace(R," ")}),s=s.slice(o.length)),t.filter)!(i=H[a].exec(s))||c[a]&&!(i=c[a](i))||(o=i.shift(),r.push({value:o,type:a,matches:i}),s=s.slice(o.length));if(!o)break}return n?s.length:s?Z.error(e):_(e,l).slice(0)}function pe(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function de(e,t,n){var o=t.dir,i=t.next,r=i||o,a=n&&"parentNode"===r,s=b++;return t.first?function(t,n,i){for(;t=t[o];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,u,p=[v,s];if(l){for(;t=t[o];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[o];)if(1===t.nodeType||a)if(u=t[y]||(t[y]={}),i&&C(t,i))t=t[o]||t;else{if((c=u[r])&&c[0]===v&&c[1]===s)return p[2]=c[2];if(u[r]=p,p[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,o){for(var i=e.length;i--;)if(!e[i](t,n,o))return!1;return!0}:e[0]}function fe(e,t,n,o,i){for(var r,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(r=e[s])&&(n&&!n(r,o,i)||(a.push(r),c&&t.push(s)));return a}function me(e,t,n,o,i,r){return o&&!o[y]&&(o=me(o)),i&&!i[y]&&(i=me(i,r)),te(function(r,a,s,l){var c,p,d,h,f=[],g=[],y=a.length,v=r||function(e,t,n){for(var o=0,i=t.length;o<i;o++)Z(e,t[o],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!r&&t?v:fe(v,f,e,s,l);if(n?n(b,h=i||(r?e:y||o)?[]:a,s,l):h=b,o)for(c=fe(h,g),o(c,[],s,l),p=c.length;p--;)(d=c[p])&&(h[g[p]]=!(b[g[p]]=d));if(r){if(i||e){if(i){for(c=[],p=h.length;p--;)(d=h[p])&&c.push(b[p]=d);i(null,h=[],c,l)}for(p=h.length;p--;)(d=h[p])&&(c=i?u.call(r,d):f[p])>-1&&(r[c]=!(a[c]=d))}}else h=fe(h===a?h.splice(y,h.length):h),i?i(null,a,h,l):m.apply(a,h)})}function ge(e){for(var o,i,r,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,p=de(function(e){return e===o},l,!0),d=de(function(e){return u.call(o,e)>-1},l,!0),h=[function(e,t,i){var r=!s&&(i||t!=n)||((o=t).nodeType?p(e,t,i):d(e,t,i));return o=null,r}];c<a;c++)if(i=t.relative[e[c].type])h=[de(he(h),i)];else{if((i=t.filter[e[c].type].apply(null,e[c].matches))[y]){for(r=++c;r<a&&!t.relative[e[r].type];r++);return me(c>1&&he(h),c>1&&pe(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(R,"$1"),i,c<r&&ge(e.slice(c,r)),r<a&&ge(e=e.slice(r)),r<a&&pe(e))}h.push(i)}return he(h)}function ye(e,o){var i,r=[],a=[],s=k[e+" "];if(!s){for(o||(o=ue(e)),i=o.length;i--;)(s=ge(o[i]))[y]?r.push(s):a.push(s);s=k(e,function(e,o){var i=o.length>0,r=e.length>0,a=function(a,s,c,u,d){var h,f,g,y=0,b="0",w=a&&[],_=[],k=n,x=a||r&&t.find.TAG("*",d),S=v+=null==k?1:Math.random()||.1,E=x.length;for(d&&(n=s==l||s||d);b!==E&&null!=(h=x[b]);b++){if(r&&h){for(f=0,s||h.ownerDocument==l||(le(h),c=!p);g=e[f++];)if(g(h,s||l,c)){m.call(u,h);break}d&&(v=S)}i&&((h=!g&&h)&&y--,a&&w.push(h))}if(y+=b,i&&b!==y){for(f=0;g=o[f++];)g(w,_,s,c);if(a){if(y>0)for(;b--;)w[b]||_[b]||(_[b]=O.call(u));_=fe(_)}m.apply(u,_),d&&!a&&_.length>0&&y+o.length>1&&T.uniqueSort(u)}return d&&(v=S,n=k),w};return i?te(a):a}(a,r)),s.selector=e}return s}function ve(e,n,o,i){var r,a,s,l,c,u="function"==typeof e&&e,d=!i&&ue(e=u.selector||e);if(o=o||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&p&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Y,J),n)||[])[0]))return o;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(r=H.needsContext.test(e)?0:a.length;r--&&(s=a[r],!t.relative[l=s.type]);)if((c=t.find[l])&&(i=c(s.matches[0].replace(Y,J),G.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(r,1),!(e=i.length&&pe(a)))return m.apply(o,i),o;break}}return(u||ye(e,d))(i,n,!p,o,!n||G.test(e)&&se(n.parentNode)||n),o}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=y.split("").sort(S).join("")===y,le(),g.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=ye,Z.select=ve,Z.setDocument=le,Z.tokenize=ue,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var U=function(e,t,n){for(var o=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;o.push(e)}return o},j=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=T.expr.match.needsContext,V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function q(e,t,n){return y(t)?T.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?T.grep(e,function(e){return e===t!==n}):"string"!=typeof t?T.grep(e,function(e){return u.call(t,e)>-1!==n}):T.filter(t,e,n)}T.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?T.find.matchesSelector(o,e)?[o]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,o=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<o;t++)if(T.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)T.find(e,i[t],n);return o>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(q(this,e||[],!1))},not:function(e){return this.pushStack(q(this,e||[],!0))},is:function(e){return!!q(this,"string"==typeof e&&F.test(e)?T(e):e||[],!1).length}});var B,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||B,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),V.test(o[1])&&T.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=b.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,B=T(b);var H=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function W(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,i=this.length,r=[],a="string"!=typeof e&&T(e);if(!F.test(e))for(;o<i;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?T.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return U(e,"parentNode")},parentsUntil:function(e,t,n){return U(e,"parentNode",n)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return U(e,"nextSibling")},prevAll:function(e){return U(e,"previousSibling")},nextUntil:function(e,t,n){return U(e,"nextSibling",n)},prevUntil:function(e,t,n){return U(e,"previousSibling",n)},siblings:function(e){return j((e.parentNode||{}).firstChild,e)},children:function(e){return j(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(e,t){T.fn[e]=function(n,o){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(i=T.filter(o,i)),this.length>1&&(z[e]||T.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var K=/[^\x20\t\r\n\f]+/g;function G(e){return e}function Y(e){throw e}function J(e,t,n,o){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(K)||[],function(e,n){t[n]=!0}),t}(e):T.extend({},e);var t,n,o,i,r=[],a=[],s=-1,l=function(){for(i=i||e.once,o=t=!0;a.length;s=-1)for(n=a.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=r.length,n=!1);e.memory||(n=!1),t=!1,i&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(s=r.length-1,a.push(n)),function t(n){T.each(n,function(n,o){y(o)?e.unique&&c.has(o)||r.push(o):o&&o.length&&"string"!==k(o)&&t(o)})}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;(n=T.inArray(t,r,n))>-1;)r.splice(n,1),n<=s&&s--}),this},has:function(e){return e?T.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return i=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return i=a=[],n||t||(r=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred(function(n){T.each(t,function(t,o){var i=y(e[o[4]])&&e[o[4]];r[o[1]](function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,n,i){var r=0;function a(e,t,n,i){return function(){var s=this,l=arguments,c=function(){var o,c;if(!(e<r)){if((o=n.apply(s,l))===t.promise())throw new TypeError("Thenable self
2-resolution");c=o&&("object"==typeof o||"function"==typeof o)&&o.then,y(c)?i?c.call(o,a(r,t,G,i),a(r,t,Y,i)):(r++,c.call(o,a(r,t,G,i),a(r,t,Y,i),a(r,t,G,t.notifyWith))):(n!==G&&(s=void 0,l=[o]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(o){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(o,u.error),e+1>=r&&(n!==Y&&(s=void 0,l=[o]),t.rejectWith(s,l))}};e?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),o.setTimeout(u))}}return T.Deferred(function(o){t[0][3].add(a(0,o,y(i)?i:G,o.notifyWith)),t[1][3].add(a(0,o,y(e)?e:G)),t[2][3].add(a(0,o,y(n)?n:Y))}).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},r={};return T.each(t,function(e,o){var a=o[2],s=o[5];i[o[1]]=a.add,s&&a.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(o[3].fire),r[o[0]]=function(){return r[o[0]+"With"](this===r?void 0:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,o=Array(n),i=s.call(arguments),r=T.Deferred(),a=function(e){return function(n){o[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||r.resolveWith(o,i)}};if(t<=1&&(J(e,r.done(a(n)).resolve,r.reject,!t),"pending"===r.state()||y(i[n]&&i[n].then)))return r.then();for(;n--;)J(i[n],a(n),r.reject);return r.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){o.console&&o.console.warn&&e&&Q.test(e.name)&&o.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){o.setTimeout(function(){throw e})};var X=T.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),o.removeEventListener("load",Z),T.ready()}T.fn.ready=function(e){return X.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||X.resolveWith(b,[T]))}}),T.ready.then=X.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?o.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Z),o.addEventListener("load",Z));var ee=function(e,t,n,o,i,r,a){var s=0,l=e.length,c=null==n;if("object"===k(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,r,a);else if(void 0!==o&&(i=!0,y(o)||(a=!0),c&&(a?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):r},te=/^-ms-/,ne=/-([a-z])/g;function oe(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,oe)}var re=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=T.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},re(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(o in t)i[ie(o)]=t[o];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in o?[t]:t.match(K)||[]).length;for(;n--;)delete o[t[n]]}(void 0===t||T.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function pe(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,o,i,r=this[0],a=r&&r.attributes;if(void 0===e){if(this.length&&(i=le.get(r),1===r.nodeType&&!se.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(o=a[n].name).indexOf("data-")&&(o=ie(o.slice(5)),pe(r,o,i[o]));se.set(r,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){le.set(this,e)}):ee(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=le.get(r,e))||void 0!==(n=pe(r,e))?n:void 0;this.each(function(){le.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){le.remove(this,e)})}}),T.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=se.get(e,t),n&&(!o||Array.isArray(n)?o=se.access(e,t,T.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),o=n.length,i=n.shift(),r=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===t&&n.unshift("inprogress"),delete r.stop,i.call(e,function(){T.dequeue(e,t)},r)),!o&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:T.Callbacks("once memory").add(function(){se.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each(function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,i=T.Deferred(),r=this,a=this.length,s=function(){--o||i.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(r[a],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(s));return s(),i.promise(t)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return T.contains(e.ownerDocument,e)},ye={composed:!0};me.getRootNode&&(ge=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ye)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===T.css(e,"display")};function be(e,t,n,o){var i,r,a=20,s=o?function(){return o.cur()}:function(){return T.css(e,t,"")},l=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&he.exec(T.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)T.style(e,t,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;u*=2,T.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],o&&(o.unit=c,o.start=u,o.end=i)),i}var we={};function _e(e){var t,n=e.ownerDocument,o=e.nodeName,i=we[o];
vendor: 4,804 bytes, line 2
2return i||(t=n.body.appendChild(n.createElement(o)),i=T.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),we[o]=i,i)}function ke(e,t){for(var n,o,i=[],r=0,a=e.length;r<a;r++)(o=e[r]).style&&(n=o.style.display,t?("none"===n&&(i[r]=se.get(o,"display")||null,i[r]||(o.style.display="")),""===o.style.display&&ve(o)&&(i[r]=_e(o))):"none"!==n&&(i[r]="none",se.set(o,"display",n)));for(r=0;r<a;r++)null!=i[r]&&(e[r].style.display=i[r]);return e}T.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ve(this)?T(this).show():T(this).hide()})}});var xe,Se,Te=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=b.createDocumentFragment().appendChild(b.createElement("div")),(Se=b.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),xe.appendChild(Se),g.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",g.option=!!xe.lastChild;var Oe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ae(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?T.merge([e],n):n}function Pe(e,t){for(var n=0,o=e.length;n<o;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Oe.tbody=Oe.tfoot=Oe.colgroup=Oe.caption=Oe.thead,Oe.th=Oe.td,g.option||(Oe.optgroup=Oe.option=[1,"<select multiple='multiple'>","</select>"]);var Ne=/<|&#?\w+;/;function Re(e,t,n,o,i){for(var r,a,s,l,c,u,p=t.createDocumentFragment(),d=[],h=0,f=e.length;h<f;h++)if((r=e[h])||0===r)if("object"===k(r))T.merge(d,r.nodeType?[r]:r);else if(Ne.test(r)){for(a=a||p.appendChild(t.createElement("div")),s=(Ee.exec(r)||["",""])[1].toLowerCase(),l=Oe[s]||Oe._default,a.innerHTML=l[1]+T.htmlPrefilter(r)+l[2],u=l[0];u--;)a=a.lastChild;T.merge(d,a.childNodes),(a=p.firstChild).textContent=""}else d.push(t.createTextNode(r));for(p.textContent="",h=0;r=d[h++];)if(o&&T.inArray(r,o)>-1)i&&i.push(r);else if(c=ge(r),a=Ae(p.appendChild(r),"script"),c&&Pe(a),n)for(u=0;r=a[u++];)Ce.test(r.type||"")&&n.push(r);return p}var Ie=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function Le(){return!1}function Me(e,t,n,o,i,r){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)Me(e,s,n,o,t[s],r);return e}if(null==o&&null==i?(i=n,o=n=void 0):null==i&&("string"==typeof n?(i=o,o=void 0):(i=o,o=n,n=void 0)),!1===i)i=Le;else if(!i)return e;return 1===r&&(a=i,i=function(e){return T().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=T.guid++)),e.each(function(){T.event.add(this,t,i,o,n)})}function Ue(e,t,n){n?(se.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,o=se.get(this,t);if(1&e.isTrigger&&this[t]){if(o)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),se.set(this,t,o),this[t](),n=se.get(this,t),se.set(this,t,!1),o!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else o&&(se.set(this,t,T.event.trigger(o[0],o.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=De)}})):void 0===se.get(e,t)&&T.event.add(e,t,De)}T.event={global:{},add:function(e,t,n,o,i){var r,a,s,l,c,u,p,d,h,f,m,g=se.get(e);if(re(e))for(n.handler&&(n=(r=n).handler,i=r.selector),i&&T.find.matchesSelector(me,i),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(K)||[""]).length;c--;)h=m=(s=Ie.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(p=T.event.special[h]||{},h=(i?p.delegateType:p.bindType)||h,p=T.event.special[h]||{},u=T.extend({type:h,origType:m,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:f.join(".")},r),(d=l[h])||((d=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,o,f,a)||e.addEventListener&&e.addEventListener(h,a)),p.add&&(p.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[h]=!0)},remove:function(e,t,n,o,i){var r,a,s,l,c,u,p,d,h,f,m,g=se.hasData(e)&&se.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(K)||[""]).length;c--;)if(h=m=(s=Ie.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(p=T.event.special[h]||{},d=l[h=(o?p.delegateType:p.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.
vendor: 10,133 bytes, line 2
2join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=d.length;r--;)u=d[r],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(e,u));a&&!d.length&&(p.teardown&&!1!==p.teardown.call(e,f,g.handle)||T.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)T.event.remove(e,h+t[c],n,o,!0);T.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,o,i,r,a,s=new Array(arguments.length),l=T.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,c),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(r=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(o=((T.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(l.result=o)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,o,i,r,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],a={},n=0;n<l;n++)void 0===a[i=(o=t[n]).selector+" "]&&(a[i]=o.needsContext?T(i,this).index(c)>-1:T.find(i,this,null,[c]).length),a[i]&&r.push(o);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&Ue(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&Ue(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&C(t,"input")&&se.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?De:Le,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Le,isPropagationStopped:Le,isImmediatePropagationStopped:Le,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=De,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=De,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=De,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),o=T.event.fix(e);o.type="focusin"===e.type?"focus":"blur",o.isSimulated=!0,n(e),o.target===o.currentTarget&&n(o)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var o;if(Ue(this,e,!0),!b.documentMode)return!1;(o=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(o||0)+1)},trigger:function(){return Ue(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var o=this.ownerDocument||this.document||this,i=b.documentMode?this:o,r=se.get(i,t);r||(b.documentMode?this.addEventListener(t,n):o.addEventListener(e,n,!0)),se.set(i,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this.document||this,i=b.documentMode?this:o,r=se.get(i,t)-1;r?se.set(i,t,r):(b.documentMode?this.removeEventListener(t,n):o.removeEventListener(e,n,!0),se.remove(i,t))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=e.relatedTarget,i=e.handleObj;return o&&(o===this||T.contains(this,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),T.fn.extend({on:function(e,t,n,o){return Me(this,e,t,n,o)},one:function(e,t,n,o){return Me(this,e,t,n,o,1)},off:function(e,t,n){var o,i;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,T(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Le),this.each(function(){T.event.remove(this,e,n,t)})}});var je=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ve=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function qe(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,o,i,r,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,o=s[i].length;n<o;n++)T.event.add(t,i,s[i][n]);le.hasData(e)&&(r=le.access(e),a=T.extend({},r),le.set(t,a))}}function ze(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,o){t=l(t);var i,r,a,s,c,u,p=0,d=e.length,h=d-1,f=t[0],m=y(f);if(m||d>1&&"string"==typeof f&&!g.checkClone&&Fe.test(f))return e.each(function(i){var r=e.eq(i);m&&(t[0]=f.call(this,i,r.html())),We(r,t,n,o)});if(d&&(r=(i=Re(t,e[0].ownerDocument,!1,e,o)).firstChild,1===i.childNodes.length&&(i=r),r||o)){for(s=(a=T.map(Ae(i,"script"),Be)).length;p<d;p++)c=i,p!==h&&(c=T.clone(c,!0,!0),s&&T.merge(a,Ae(c,"script"))),n.call(e[p],c,p);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,$e),p=0;p<s;p++)c=a[p],Ce.test(c.type||"")&&!se.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(Ve,""),c,u))}return e}function Ke(e,t,n){for(var o,i=t?T.filter(t,e):e,r=0;null!=(o=i[r]);r++)n||1!==o.nodeType||T.cleanData(Ae(o)),o.parentNode&&(n&&ge(o)&&Pe(Ae(o,"script")),o.parentNode.removeChild(o));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var o,i,r,a,s=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=Ae(s),o=0,i=(r=Ae(e)).length;o<i;o++)ze(r[o],a[o]);if(t)if(n)for(r=r||Ae(e),a=a||Ae(s),o=0,i=r.length;o<i;o++)He(r[o],a[o]);else He(e,s);return(a=Ae(s,"script")).length>0&&Pe(a,!l&&Ae(e,"script")),s},cleanData:function(e){for(var t,n,o,i=T.event.special,r=0;void 0!==(n=e[r]);r++)if(re(n)){if(t=n[se.expando]){if(t.events)for(o in t.events)i[o]?T.event.remove(n,o):T.removeEvent(n,o,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ke(this,e,!0)},remove:function(e){return Ke(this,e)},text:function(e){return ee(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return We(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return We(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return We(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return We(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(Ae(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return T.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!je.test(e)&&!Oe[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(Ae(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Ae(this)),n&&n.replaceChild(t,this))},e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){T.fn[e]=function(e){for(var n,o=[],i=T(e),r=i.length-1,a=0;a<=r;
vendor: 8,134 bytes, line 2
2a++)n=a===r?this:this.clone(!0),T(i[a])[t](n),c.apply(o,n.get());return this.pushStack(o)}});var Ge=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),Ye=/^--/,Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=o),t.getComputedStyle(e)},Qe=function(e,t,n){var o,i,r={};for(i in t)r[i]=e.style[i],e.style[i]=t[i];for(i in o=n.call(e),t)e.style[i]=r[i];return o},Xe=new RegExp(fe.join("|"),"i");function Ze(e,t,n){var o,i,r,a,s=Ye.test(t),l=e.style;return(n=n||Je(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(R,"$1")||void 0),""!==a||ge(e)||(a=T.style(e,t)),!g.pixelBoxStyles()&&Ge.test(a)&&Xe.test(t)&&(o=l.width,i=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=o,l.minWidth=i,l.maxWidth=r)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=o.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",r=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,r,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),i=o.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,ot={};function it(e){return T.cssProps[e]||ot[e]||(e in nt?e:ot[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var o=he.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function ct(e,t,n,o,i,r){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=T.css(e,n+fe[a],!0,i)),o?("content"===n&&(l-=T.css(e,"padding"+fe[a],!0,i)),"margin"!==n&&(l-=T.css(e,"border"+fe[a]+"Width",!0,i))):(l+=T.css(e,"padding"+fe[a],!0,i),"padding"!==n?l+=T.css(e,"border"+fe[a]+"Width",!0,i):s+=T.css(e,"border"+fe[a]+"Width",!0,i));return!o&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))||0),l+c}function ut(e,t,n){var o=Je(e),i=(!g.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,o),r=i,a=Ze(e,t,o),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&C(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,o))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,o),(r=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(i?"border":"content"),r,o,a)+"px"}function pt(e,t,n,o,i){return new pt.prototype.init(e,t,n,o,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,r,a,s=ie(t),l=Ye.test(t),c=e.style;if(l||(t=it(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,o))?i:c[t];"string"==(r=typeof n)&&(i=he.exec(n))&&i[1]&&(n=be(e,t,i),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,o){var i,r,a,s=ie(t);return Ye.test(t)||(t=it(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ze(e,t,o)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(r=parseFloat(i),!0===n||isFinite(r)?r||0:i):i}}),T.each(["height","width"],function(e,t){T.cssHooks[t]={get:function(e,n,o){if(n)return!rt.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,o):Qe(e,at,function(){return ut(e,t,o)})},set:function(e,n,o){var i,r=Je(e),a=!g.scrollboxSize()&&"absolute"===r.position,s=(a||o)&&"border-box"===T.css(e,"boxSizing",!1,r),l=o?ct(e,t,o,s,r):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-ct(e,t,"border",!1,r)-.5)),l&&(i=he.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),lt(0,n,l)}}}),T.cssHooks.marginLeft=et(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(e,t){T.cssHooks[e+t]={expand:function(n){for(var o=0,i={},r="string"==typeof n?n.split(" "):[n];o<4;o++)i[e+fe[o]+t]=r[o]||r[o-2]||r[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=lt)}),T.fn.extend({css:function(e,t){return ee(this,function(e,t,n){var o,i,r={},a=0;if(Array.isArray(t)){for(o=Je(e),i=t.length;a<i;a++)r[t[a]]=T.css(e,t[a],!1,o);return r}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,arguments.length>1)}}),T.Tween=pt,pt.prototype={constructor:pt,init:function(e,t,n,o,i,r){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=r||(T.cssNumber[n]?"":"px")},cur:function(){var e=pt.propHooks[this.prop];return e&&e.get?e.get(this):pt.propHooks._default.get(this)},run:function(e){var t,n=pt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):pt.propHooks._default.set(this),this}},pt.prototype.init.prototype=pt.prototype,pt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},pt.propHooks.scrollTop=pt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=pt.prototype.init,T.fx.step={};var dt,ht,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){ht&&(!1===b.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(gt):o.setTimeout(gt,T.fx.interval),T.fx.tick())}function yt(){return o.setTimeout(function(){dt=void 0}),dt=Date.now()}function vt(e,t){var n,o=0,i={height:e};for(t=t?1:0;o<4;o+=2-t)i["margin"+(n=fe[o])]=i["padding"+n]=e;
vendor: 4,892 bytes, line 2
2return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var o,i=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),r=0,a=i.length;r<a;r++)if(o=i[r].call(n,t,e))return o}function wt(e,t,n){var o,i,r=0,a=wt.prefilters.length,s=T.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=dt||yt(),n=Math.max(0,c.startTime+c.duration-t),o=1-(n/c.duration||0),r=0,a=c.tweens.length;r<a;r++)c.tweens[r].run(o);return s.notifyWith(e,[c,o,n]),o<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||yt(),duration:n.duration,tweens:[],createTween:function(t,n){var o=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(o),o},stop:function(t){var n=0,o=t?c.tweens.length:0;if(i)return this;for(i=!0;n<o;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,o,i,r,a;for(n in e)if(i=t[o=ie(n)],r=e[n],Array.isArray(r)&&(i=r[1],r=e[n]=r[0]),n!==o&&(e[o]=r,delete e[n]),(a=T.cssHooks[o])&&"expand"in a)for(n in r=a.expand(r),delete e[o],r)n in e||(e[n]=r[n],t[n]=i);else t[o]=i}(u,c.opts.specialEasing);r<a;r++)if(o=wt.prefilters[r].call(c,e,u,c.opts))return y(o.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=o.stop.bind(o)),o;return T.map(u,bt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(K);for(var n,o=0,i=e.length;o<i;o++)n=e[o],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,i,r,a,s,l,c,u,p="width"in t||"height"in t,d=this,h={},f=e.style,m=e.nodeType&&ve(e),g=se.get(e,"fxshow");for(o in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[o],ft.test(i)){if(delete t[o],r=r||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[o])continue;m=!0}h[o]=g&&g[o]||T.style(e,o)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(h))for(o in p&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=se.get(e,"display")),"none"===(u=T.css(e,"display"))&&(c?u=c:(ke([e],!0),c=e.style.display||c,u=T.css(e,"display"),ke([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(e,"float")&&(l||(d.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(m=g.hidden):g=se.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&ke([e],!0),d.done(function(){for(o in m||ke([e]),se.remove(e,"fxshow"),h)T.style(e,o,h[o])})),l=bt(m?g[o]:0,o,d),o in g||(g[o]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),T.speed=function(e,t,n){var o=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return T.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in T.fx.speeds?o.duration=T.fx.speeds[o.duration]:o.duration=T.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){y(o.old)&&o.old.call(this),o.queue&&T.dequeue(this,o.queue)},o},T.fn.extend({fadeTo:function(e,t,n,o){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var i=T.isEmptyObject(e),r=T.speed(t,n,o),a=function(){var t=wt(this,T.extend({},e),r);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",r=T.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&o(a[i]);else for(i in a)a[i]&&a[i].stop&&mt.test(i)&&o(a[i]);for(i=r.length;i--;)r[i].elem!==this||null!=e&&r[i].queue!==e||(r[i].anim.stop(n),t=!1,r.splice(i,1));!t&&n||T.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=se.get(this),o=n[e+"queue"],i=n[e+"queueHooks"],r=T.timers,a=o?o.length:0;for(n.finish=!0,T.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1)
vendor: 11,042 bytes, line 2
2);for(t=0;t<a;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),T.each(["toggle","show","hide"],function(e,t){var n=T.fn[t];T.fn[t]=function(e,o,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(vt(t,!0),e,o,i)}}),T.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){T.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),dt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ht||(ht=!0,gt())},T.fx.stop=function(){ht=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var i=o.setTimeout(t,e);n.stop=function(){o.clearTimeout(i)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var _t,kt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ee(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var o,i,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?T.prop(e,t,n):(1===r&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=T.find.attr(e,t))??void 0)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,i=t&&t.match(K);if(i&&1===e.nodeType)for(;n=i[o++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var n=kt[t]||T.find.attr;kt[t]=function(e,t,o){var i,r,a=t.toLowerCase();return o||(r=kt[a],kt[a]=i,i=null!=n(e,t,o)?a:null,kt[a]=r),i}});var xt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;function Tt(e){return(e.match(K)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(K)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var o,i,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:e[t]=n:i&&"get"in i&&null!==(o=i.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(e){var t,n,o,i,r,a;return y(e)?this.each(function(t){T(this).addClass(e.call(this,t,Et(this)))}):(t=Ct(e)).length?this.each(function(){if(o=Et(this),n=1===this.nodeType&&" "+Tt(o)+" "){for(r=0;r<t.length;r++)i=t[r],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),o!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,o,i,r,a;return y(e)?this.each(function(t){T(this).removeClass(e.call(this,t,Et(this)))}):arguments.length?(t=Ct(e)).length?this.each(function(){if(o=Et(this),n=1===this.nodeType&&" "+Tt(o)+" "){for(r=0;r<t.length;r++)for(i=t[r];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=Tt(n),o!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,o,i,r,a=typeof e,s="string"===a||Array.isArray(e);return y(e)?this.each(function(n){T(this).toggleClass(e.call(this,n,Et(this),t),t)}):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Ct(e),this.each(function(){if(s)for(r=T(this),i=0;i<n.length;i++)o=n[i],r.hasClass(o)?r.removeClass(o):r.addClass(o);else void 0!==e&&"boolean"!==a||((o=Et(this))&&se.set(this,"__className__",o),this.setAttribute&&this.setAttribute("class",o||!1===e?"":se.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+Tt(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;T.fn.extend({val:function(e){var t,n,o,i=this[0];return arguments.length?(o=y(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=o?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,function(e){return null==e?"":e+""})),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ot,""):n??"":void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,n,o,i=e.options,r=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?r+1:i.length;for(o=r<0?l:a?r:0;o<l;o++)if(((n=i[o]).selected||o===r)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,o,i=e.options,r=T.makeArray(t),a=i.length;a--;)((o=i[a]).selected=T.inArray(T.valHooks.option.get(o),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},g.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var At=o.location,Pt={guid:Date.now()},Nt=/\?/;T.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new o.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Rt=/^(?:focusinfocus|focusoutblur)$/,It=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,i){var r,a,s,l,c,u,p,d,f=[n||b],m=h.call(e,"type")?e.type:e,g=h.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Rt.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[T.expando]?e:new T.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),p=T.event.special[m]||{},i||!p.trigger||!1!==p.trigger.apply(n,t))){if(!i&&!p.noBubble&&!v(n)){for(l=p.delegateType||m,Rt.test(l+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(n.ownerDocument||b)&&f.push(s.defaultView||s.parentWindow||o)}for(r=0;(a=f[r++])&&!e.isPropagationStopped();)d=a,e.type=r>1?l:p.bindType||m,(u=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&re(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(f.pop(),t)||!re(n)||c&&y(n[m])&&!v(n)&&((s=n[c])&&(n[c]=null),T.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,It),n[m](),e.isPropagationStopped()&&d.removeEventListener(m,It),T.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var o=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(o,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Dt=/\[\]$/,Lt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Ut=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,o){var i;if(Array.isArray(t))T.each(t,function(t,i){n||Dt.test(e)?o(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,o)});else if(n||"object"!==k(t))o(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,o)}T.param=function(e,t){var n,o=[],i=function(e,t){var n=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(n??"")};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){i(this.name,this.value)});else for(n in e)jt(n,e[n],t,i);return o.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Ut.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!Te.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Ft=/%20/g,Vt=/#.*$/,qt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,Ht=/^\/\//,zt={},Wt={},Kt="*/".concat("*"),Gt=b.createElement("a");function Yt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,i=0,r=t.toLowerCase().match(K)||[];if(y(n))for(;o=r[i++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function Jt(e,t,n,o){var i={},r=e===Wt;function a(s){var l;return i[s]=!0,T.each(e[s]||[],function(e,s){var c=s(t,n,o);return"string"!=typeof c||r||i[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Qt(e,t){var n,o,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:o||(o={}))[n]=t[n]);return o&&T.extend(!0,e,o),e}Gt.href=At.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML}
vendor: 13,363 bytes, line 2
2,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,T.ajaxSettings),t):Qt(T.ajaxSettings,e)},ajaxPrefilter:Yt(zt),ajaxTransport:Yt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,r,a,s,l,c,u,p,d,h=T.ajaxSetup({},t),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?T(f):T.event,g=T.Deferred(),y=T.Callbacks("once memory"),v=h.statusCode||{},w={},_={},k="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Bt.exec(r);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)x.always(e[x.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),S(0,t),this}};if(g.promise(x),h.url=((e||h.url||At.href)+"").replace(Ht,At.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(K)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Gt.protocol+"//"+Gt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=T.param(h.data,h.traditional)),Jt(zt,h,t,x),c)return x;for(p in(u=T.event&&h.global)&&0===T.active++&&T.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),i=h.url.replace(Vt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ft,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Nt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(qt,"$1"),d=(Nt.test(i)?"&":"?")+"_="+Pt.guid+++d),h.url=i+d),h.ifModified&&(T.lastModified[i]&&x.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&x.setRequestHeader("If-None-Match",T.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Kt+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(f,x,h)||c))return x.abort();if(k="abort",y.add(h.complete),x.done(h.success),x.fail(h.error),n=Jt(Wt,h,t,x)){if(x.readyState=1,u&&m.trigger("ajaxSend",[x,h]),c)return x;h.async&&h.timeout>0&&(s=o.setTimeout(function(){x.abort("timeout")},h.timeout));try{c=!1,n.send(w,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,l){var p,d,b,w,_,k=t;c||(c=!0,s&&o.clearTimeout(s),n=void 0,r=l||"",x.readyState=e>0?4:0,p=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var o,i,r,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(i in s)if(s[i]&&s[i].test(o)){l.unshift(i);break}if(l[0]in n)r=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){r=i;break}a||(a=i)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}(h,x,a)),!p&&T.inArray("script",h.dataTypes)>-1&&T.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function(e,t,n,o){var i,r,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(i in c)if((s=i.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(r=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(h,w,x,p),p?(h.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=_),(_=x.getResponseHeader("etag"))&&(T.etag[i]=_)),204===e||"HEAD"===h.type?k="nocontent":304===e?k="notmodified":(k=w.state,d=w.data,p=!(b=w.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(t||k)+"",p?g.resolveWith(f,[d,k,x]):g.rejectWith(f,[x,k,b]),x.statusCode(v),v=void 0,u&&m.trigger(p?"ajaxSuccess":"ajaxError",[x,h,p?d:b]),y.fireWith(f,[x,k]),u&&(m.trigger("ajaxComplete",[x,h]),--T.active||T.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,t){T[t]=function(e,n,o,i){return y(n)&&(i=i||o,o=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:o},T.isPlainObject(e)&&e))}}),T.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){T(this).wrapInner(e.call(this,t))}):this.each(function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){T(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Zt=T.ajaxSettings.xhr();g.cors=!!Zt&&"withCredentials"in Zt,g.ajax=Zt=!!Zt,T.ajaxTransport(function(e){var t,n;if(g.cors||Zt&&!e.crossDomain)return{send:function(i,r){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Xt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&o.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(o,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}});var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||T.expando+"_"+Pt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||T.error(i+" was not called"),a[0]},e.dataTypes[0]="json",r=o[i],o[i]=function(){a=arguments},n.always(function(){void 0===r?T(o).removeProp(i):o[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),a&&y(r)&&r(a[0]),a=r=void 0}),"script"}),g.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((o=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(o)):t=b),r=!n&&[],(i=V.exec(e))?[t.createElement(i[1])]:(i=Re([e],t,r),r&&r.length&&T(r).remove(),T.merge([],i.childNodes)));var o,i,r},T.fn.load=function(e,t,n){var o,i,r,a=this,s=e.indexOf(" ");return s>-1&&(o=Tt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){r=arguments,a.html(o?T("<div>").append(T.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(e,t,n){var o,i,r,a,s,l,c=T.css(e,"position"),u=T(e),p={};"static"===c&&(e.style.position="relative"),s=u.offset(),r=T.css(e,"top"),l=T.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(a=(o=u.position()).top,i=o.left):(a=parseFloat(r)||0,i=parseFloat(l)||0),y(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):u.css(p)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,n,o=this[0];return o?o.getClientRects().length?(t=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],i={top:0,left:0};if("fixed"===T.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(o,"marginTop",!0),left:t.left-i.left-T.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||me})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;T.fn[e]=function(o){return ee(this,function(e,o,i){var r;if(v(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===i)return r?r[t]:e[o];r?r.scrollTo(n?r.pageXOffset:i,n?i:r.pageYOffset):e[o]=i},e,o,arguments.length)}}),T.each(["top","left"],function(e,t){T.cssHooks[t]=et(g.pixelPosition,function(e,n){if(n)return n=Ze(e,t),Ge.test(n)?T(e).position()[t]+"px":n})}),T.each({Height:"height",Width:"width"},function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){T.fn[o]=function(i,r){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===r?"margin":"border");return ee(this,function(t,n,i){var r;return v(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?T.css(t,n,s):T.style(t,n,i,s)},t,a?i:void 0,a)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var on=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,o,i;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return o=s.call(arguments,2),i=function(){return e.apply(t||this,o.concat(s.call(arguments)))},i.guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)}
2,T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=y,T.isWindow=v,T.camelCase=ie,T.type=k,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(on,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var rn=o.jQuery,an=o.$;return T.noConflict=function(e){return o.$===T&&(o.$=an),e&&o.jQuery===T&&(o.jQuery=rn),T},void 0===i&&(o.jQuery=o.$=T),T})},16231(e){"use strict";e.exports=e=>{if("number"!=typeof e)throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}},33231(e){!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}(function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=_(),o=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,o=void 0,r=!1,a=[];function s(){for(var t,o;e.next;)t=(e=e.next).task,e.task=void 0,(o=e.domain)&&(e.domain=void 0,o.enter()),l(t,o);for(;a.length;)l(t=a.pop());n=!1}function l(e,t){try{e()}catch(e){if(r)throw t&&t.exit(),setTimeout(s,0),t&&t.enter(),e;setTimeout(function(){throw e},0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:r&&process.domain,next:null},n||(n=!0,o())},"object"==typeof process&&"[object process]"===process.toString()&&process.nextTick)r=!0,o=function(){process.nextTick(s)};else if("function"==typeof setImmediate)o="undefined"!=typeof window?setImmediate.bind(window,s):function(){setImmediate(s)};else if("undefined"!=typeof MessageChannel){var c=new MessageChannel;c.port1.onmessage=function(){o=u,c.port1.onmessage=s,s()};var u=function(){c.port2.postMessage(0)};o=function(){setTimeout(s,0),u()}}else o=function(){setTimeout(s,0)};return i.runAfter=function(e){a.push(e),n||(n=!0,o())},i}(),r=Function.call;function a(e){return function(){return r.apply(e,arguments)}}var s,l=a(Array.prototype.slice),c=a(Array.prototype.reduce||function(e,t){var n=0,o=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=o)throw new TypeError}for(;n<o;n++)n in this&&(t=e(t,this[n],n));return t}),u=a(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),p=a(Array.prototype.map||function(e,t){var n=this,o=[];return c(n,function(i,r,a){o.push(e.call(t,r,a,n))},void 0),o}),d=Object.create||function(e){function t(){}return t.prototype=e,new t},h=a(Object.prototype.hasOwnProperty),f=Object.keys||function(e){var t=[];for(var n in e)h(e,n)&&t.push(n);return t},m=a(Object.prototype.toString);s="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e};var g="From previous event:";function y(t,n){if(e&&n.stack&&"object"==typeof t&&null!==t&&t.stack&&-1===t.stack.indexOf(g)){for(var o=[],i=n;i;i=i.source)i.stack&&o.unshift(i.stack);o.unshift(t.stack);var r=o.join("\n"+g+"\n");t.stack=function(e){for(var t=e.split("\n"),n=[],o=0;o<t.length;++o){var i=t[o];w(i)||v(i)||!i||n.push(i)}return n.join("\n")}(r)}}function v(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function b(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var o=/.*@(.+):(\d+)$/.exec(e);return o?[o[1],Number(o[2])]:void 0}function w(e){var o=b(e);if(!o)return!1;var i=o[0],r=o[1];return i===t&&r>=n&&r<=H}function _(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),o=b(n[0].indexOf("@")>0?n[1]:n[2]);if(!o)return;return t=o[0],o[1]}}function k(e){return e instanceof E?e:P(e)?function(e){var t=x();return k.nextTick(function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}}),t.promise}(e):j(e)}function x(){var t,n=[],o=[],i=d(x.prototype),r=d(E.prototype);if(r.promiseDispatch=function(e,i,r){var a=l(arguments);n?(n.push(a),"when"===i&&r[1]&&o.push(r[1])):k.nextTick(function(){t.promiseDispatch.apply(t,a)})},r.valueOf=function(){if(n)return r;var e=O(t);return A(e)&&(t=e),e},r.inspect=function(){return t?t.inspect():{state:"pending"}},k.longStackSupport&&e)try{throw new Error}catch(e){r.stack=e.stack.substring(e.stack.indexOf("\n")+1)}function a(e){t=e,r.source=e,c(n,function(t,n){k.nextTick(function(){e.promiseDis
2patch.apply(e,n)})},void 0),n=void 0,o=void 0}return i.promise=r,i.resolve=function(e){t||a(k(e))},i.fulfill=function(e){t||a(j(e))},i.reject=function(e){t||a(U(e))},i.notify=function(e){t||c(o,function(t,n){k.nextTick(function(){n(e)})},void 0)},i}function S(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=x();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function T(e){return S(function(t,n){for(var o=0,i=e.length;o<i;o++)k(e[o]).then(t,n)})}function E(e,t,n){void 0===t&&(t=function(e){return U(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var o=d(E.prototype);if(o.promiseDispatch=function(n,i,r){var a;try{a=e[i]?e[i].apply(o,r):t.call(o,i,r)}catch(e){a=U(e)}n&&n(a)},o.inspect=n,n){var i=n();"rejected"===i.state&&(o.exception=i.reason),o.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?o:e.value}}return o}function C(e,t,n,o){return k(e).then(t,n,o)}function O(e){if(A(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function A(e){return e instanceof E}function P(e){return(t=e)===Object(t)&&"function"==typeof e.then;var t}k.resolve=k,k.nextTick=i,k.longStackSupport=!1,"object"==typeof process&&process&&process.env&&process.env.Q_DEBUG&&(k.longStackSupport=!0),k.defer=x,x.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(l(arguments,1)):e.resolve(n)}},k.Promise=S,k.promise=S,S.race=T,S.all=q,S.reject=U,S.resolve=k,k.passByCopy=function(e){return e},E.prototype.passByCopy=function(){return this},k.join=function(e,t){return k(e).join(t)},E.prototype.join=function(e){return k([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Can't join: not the same: "+e+" "+t)})},k.race=T,E.prototype.race=function(){return this.then(k.race)},k.makePromise=E,E.prototype.toString=function(){return"[object Promise]"},E.prototype.then=function(e,t,n){var o=this,i=x(),r=!1;return k.nextTick(function(){o.promiseDispatch(function(t){r||(r=!0,i.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return U(e)}}(t)))},"when",[function(e){r||(r=!0,i.resolve(function(e){if("function"==typeof t){y(e,o);try{return t(e)}catch(e){return U(e)}}return U(e)}(e)))}])}),o.promiseDispatch(void 0,"when",[void 0,function(e){var t,o=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(o=!0,!k.onerror)throw e;k.onerror(e)}o||i.notify(t)}]),i.promise},k.tap=function(e,t){return k(e).tap(t)},E.prototype.tap=function(e){return e=k(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},k.when=C,E.prototype.thenResolve=function(e){return this.then(function(){return e})},k.thenResolve=function(e,t){return k(e).thenResolve(t)},E.prototype.thenReject=function(e){return this.then(function(){throw e})},k.thenReject=function(e,t){return k(e).thenReject(t)},k.nearer=O,k.isPromise=A,k.isPromiseAlike=P,k.isPending=function(e){return A(e)&&"pending"===e.inspect().state},E.prototype.isPending=function(){return"pending"===this.inspect().state},k.isFulfilled=function(e){return!A(e)||"fulfilled"===e.inspect().state},E.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},k.isRejected=function(e){return A(e)&&"rejected"===e.inspect().state},E.prototype.isRejected=function(){return"rejected"===this.inspect().state};var N,R=[],I=[],D=[],L=!0;function M(){R.length=0,I.length=0,L||(L=!0)}function U(e){var t=E({when:function(t){return t&&function(e){if(L){var t=u(I,e);-1!==t&&("object"==typeof process&&"function"==typeof process.emit&&k.nextTick.runAfter(function(){var n=u(D,e);-1!==n&&(process.emit("rejectionHandled",R[t],e),D.splice(n,1))}),I.splice(t,1),R.splice(t,1))}}(this),t?t(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return function(e,t){L&&("object"==typeof process&&"function"==typeof process.emit&&k.nextTick.runAfter(function(){-1!==u(I,e)&&(process.emit("unhandledRejection",t,e),D.push(e))}),I.push(e),t&&void 0!==t.stack?R.push(t.stack):R.push("(no stack) "+t))}(t,e),t}function j(e){return E({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return f(e)}},void 0,function(){return{state:"fulfilled",value:e}})}function F(e,t,n){return k(e).spread(t,n)}
2function V(e,t,n){return k(e).dispatch(t,n)}function q(e){return C(e,function(e){var t=0,n=x();return c(e,function(o,i,r){var a;A(i)&&"fulfilled"===(a=i.inspect()).state?e[r]=a.value:(++t,C(i,function(o){e[r]=o,0===--t&&n.resolve(e)},n.reject,function(e){n.notify({index:r,value:e})}))},void 0),0===t&&n.resolve(e),n.promise})}function B(e){if(0===e.length)return k.resolve();var t=k.defer(),n=0;return c(e,function(o,i,r){var a=e[r];n++,C(a,function(e){t.resolve(e)},function(){0===--n&&t.reject(new Error("Can't get fulfillment value from any promise, all promises were rejected."))},function(e){t.notify({index:r,value:e})})},void 0),t.promise}function $(e){return C(e,function(e){return e=p(e,k),C(q(p(e,function(e){return C(e,o,o)})),function(){return e})})}k.resetUnhandledRejections=M,k.getUnhandledReasons=function(){return R.slice()},k.stopUnhandledRejectionTracking=function(){M(),L=!1},M(),k.reject=U,k.fulfill=j,k.master=function(e){return E({isDef:function(){}},function(t,n){return V(e,t,n)},function(){return k(e).inspect()})},k.spread=F,E.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},k.async=function(e){return function(){function t(e,t){var r;if("undefined"==typeof StopIteration){try{r=n[e](t)}catch(e){return U(e)}return r.done?k(r.value):C(r.value,o,i)}try{r=n[e](t)}catch(e){return function(e){return"[object StopIteration]"===m(e)||e instanceof s}(e)?k(e.value):U(e)}return C(r,o,i)}var n=e.apply(this,arguments),o=t.bind(t,"next"),i=t.bind(t,"throw");return o()}},k.spawn=function(e){k.done(k.async(e)())},k.return=function(e){throw new s(e)},k.promised=function(e){return function(){return F([this,q(arguments)],function(t,n){return e.apply(t,n)})}},k.dispatch=V,E.prototype.dispatch=function(e,t){var n=this,o=x();return k.nextTick(function(){n.promiseDispatch(o.resolve,e,t)}),o.promise},k.get=function(e,t){return k(e).dispatch("get",[t])},E.prototype.get=function(e){return this.dispatch("get",[e])},k.set=function(e,t,n){return k(e).dispatch("set",[t,n])},E.prototype.set=function(e,t){return this.dispatch("set",[e,t])},k.del=k.delete=function(e,t){return k(e).dispatch("delete",[t])},E.prototype.del=E.prototype.delete=function(e){return this.dispatch("delete",[e])},k.mapply=k.post=function(e,t,n){return k(e).dispatch("post",[t,n])},E.prototype.mapply=E.prototype.post=function(e,t){return this.dispatch("post",[e,t])},k.send=k.mcall=k.invoke=function(e,t){return k(e).dispatch("post",[t,l(arguments,2)])},E.prototype.send=E.prototype.mcall=E.prototype.invoke=function(e){return this.dispatch("post",[e,l(arguments,1)])},k.fapply=function(e,t){return k(e).dispatch("apply",[void 0,t])},E.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},k.try=k.fcall=function(e){return k(e).dispatch("apply",[void 0,l(arguments,1)])},E.prototype.fcall=function(){return this.dispatch("apply",[void 0,l(arguments)])},k.fbind=function(e){var t=k(e),n=l(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(l(arguments))])}},E.prototype.fbind=function(){var e=this,t=l(arguments);return function(){return e.dispatch("apply",[this,t.concat(l(arguments))])}},k.keys=function(e){return k(e).dispatch("keys",[])},E.prototype.keys=function(){return this.dispatch("keys",[])},k.all=q,E.prototype.all=function(){return q(this)},k.any=B,E.prototype.any=function(){return B(this)},k.allResolved=(N=$,function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("allResolved is deprecated, use allSettled instead.",new Error("").stack),N.apply(N,arguments)}),E.prototype.allResolved=function(){return $(this)},k.allSettled=function(e){return k(e).allSettled()},E.prototype.allSettled=function(){return this.then(function(e){return q(p(e,function(e){function t(){return e.inspect()}return(e=k(e)).then(t,t)}))})},k.fail=k.catch=function(e,t){return k(e).then(void 0,t)},E.prototype.fail=E.prototype.catch=function(e){return this.then(void 0,e)},k.progress=function(e,t){return k(e).then(void 0,void 0,t)},E.prototype.progress=function(e){return this.then(void 0,void 0,e)},k.fin=k.finally=function(e,t){return k(e).finally(t)},E.prototype.fin=E.prototype.finally=function(e){return e=k(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},k.done=function(e,t,n,o){return k(e).done(t,n,o)},E.prototype.done=function(e,t,n){var o=function(e){k.nextTick(function(){if(y(e,i),!k.onerror)throw e;
2k.onerror(e)})},i=e||t||n?this.then(e,t,n):this;"object"==typeof process&&process&&process.domain&&(o=process.domain.bind(o)),i.then(void 0,o)},k.timeout=function(e,t,n){return k(e).timeout(t,n)},E.prototype.timeout=function(e,t){var n=x(),o=setTimeout(function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(o),n.resolve(e)},function(e){clearTimeout(o),n.reject(e)},n.notify),n.promise},k.delay=function(e,t){return void 0===t&&(t=e,e=void 0),k(e).delay(t)},E.prototype.delay=function(e){return this.then(function(t){var n=x();return setTimeout(function(){n.resolve(t)},e),n.promise})},k.nfapply=function(e,t){return k(e).nfapply(t)},E.prototype.nfapply=function(e){var t=x(),n=l(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},k.nfcall=function(e){var t=l(arguments,1);return k(e).nfapply(t)},E.prototype.nfcall=function(){var e=l(arguments),t=x();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},k.nfbind=k.denodeify=function(e){var t=l(arguments,1);return function(){var n=t.concat(l(arguments)),o=x();return n.push(o.makeNodeResolver()),k(e).fapply(n).fail(o.reject),o.promise}},E.prototype.nfbind=E.prototype.denodeify=function(){var e=l(arguments);return e.unshift(this),k.denodeify.apply(void 0,e)},k.nbind=function(e,t){var n=l(arguments,2);return function(){var o=n.concat(l(arguments)),i=x();return o.push(i.makeNodeResolver()),k(function(){return e.apply(t,arguments)}).fapply(o).fail(i.reject),i.promise}},E.prototype.nbind=function(){var e=l(arguments,0);return e.unshift(this),k.nbind.apply(void 0,e)},k.nmapply=k.npost=function(e,t,n){return k(e).npost(t,n)},E.prototype.nmapply=E.prototype.npost=function(e,t){var n=l(t||[]),o=x();return n.push(o.makeNodeResolver()),this.dispatch("post",[e,n]).fail(o.reject),o.promise},k.nsend=k.nmcall=k.ninvoke=function(e,t){var n=l(arguments,2),o=x();return n.push(o.makeNodeResolver()),k(e).dispatch("post",[t,n]).fail(o.reject),o.promise},E.prototype.nsend=E.prototype.nmcall=E.prototype.ninvoke=function(e){var t=l(arguments,1),n=x();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},k.nodeify=function(e,t){return k(e).nodeify(t)},E.prototype.nodeify=function(e){if(!e)return this;this.then(function(t){k.nextTick(function(){e(null,t)})},function(t){k.nextTick(function(){e(t)})})},k.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var H=_();return k})},50618(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(e),o.removeAllRanges(),o.addRange(i),t=o.toString()}return t}},71593(){"use strict";!function(){var e="chrome"in window&&window.navigator.userAgent.indexOf("Edge")<0;if(!("u2f"in window)&&e){var t,n=window.u2f={};n.EXTENSION_ID="kmendfapggjehodndflmmgagdbamhnfd",n.MessageTypes={U2F_REGISTER_REQUEST:"u2f_register_request",U2F_REGISTER_RESPONSE:"u2f_register_response",U2F_SIGN_REQUEST:"u2f_sign_request",U2F_SIGN_RESPONSE:"u2f_sign_response",U2F_GET_API_VERSION_REQUEST:"u2f_get_api_version_request",U2F_GET_API_VERSION_RESPONSE:"u2f_get_api_version_response"},n.ErrorCodes={OK:0,OTHER_ERROR:1,BAD_REQUEST:2,CONFIGURATION_UNSUPPORTED:3,DEVICE_INELIGIBLE:4,TIMEOUT:5},n.U2fRequest,n.U2fResponse,n.Error,n.Transport,n.Transports,n.SignRequest,n.SignResponse,n.RegisterRequest,n.RegisterResponse,n.RegisteredKey,n.GetJsApiVersionResponse,n.getMessagePort=function(e){if("undefined"!=typeof chrome&&chrome.runtime){var t={type:n.MessageTypes.U2F_SIGN_REQUEST,signRequests:[]};chrome.runtime.sendMessage(n.EXTENSION_ID,t,function(){chrome.runtime.lastError?n.getIframePort_(e):n.getChromeRuntimePort_(e)})}else n.isAndroidChrome_()?n.getAuthenticatorPort_(e):n.isIosChrome_()?n.getIosPort_(e):n.getIframePort_(e)},n.isAndroidChrome_=function(){var e=navigator.userAgent;return-1!=e.indexOf("Chrome")&&-1!=e.indexOf("Android")},n.isIosChrome_=function(){return["iPhone","iPad","iPod"].indexOf(navigator.platform)>-1},n.getChromeRuntimePort_=function(e){var t=chrome.runtime.connect(n.EXTENSION_ID,{includeTlsChannelId:!0});setTimeout(function(){e(new n.WrappedChromeRuntimePort_(t))},0)},n.getAuthenticatorPort_=function(e){setTimeout(function(){e(new n.WrappedAuthenticatorPort_)},0)},n.getIosPort_=function(e){setTimeout(function(){e(new n.WrappedIosPort_)},0)},n.WrappedChromeRuntimePort_=function(e){this.port_=e},n.formatSignRequest_=function(e,o,i,r,a){if(void 0===t||t<1.1){for(var s=[],l=0;l<i.length;l++)s[l]={version:i[l].version,challenge:o,keyHandle:i[l].keyHandle,appId:e};return{type:n.MessageTypes.U2F_SIGN_REQUEST,signRequests:s,timeoutSeconds:r,requestId:a}}return{type:n.MessageTypes.U2F_SIGN_REQUEST,appId:e,challenge:o,registeredKeys:i,timeoutSeconds:r,requestId:a}},n.formatRegisterRequest_=function(e,o,i,r,a){if(void 0===t||t<1.1){for(var s=0;s<i.length;s++)i[s].appId=e;var l=[];for(s=0;s<o.length;s++)l[s]={version:o[s].version,challenge:i[0],keyHandle:o[s].keyHandle,appId:e};
2return{type:n.MessageTypes.U2F_REGISTER_REQUEST,signRequests:l,registerRequests:i,timeoutSeconds:r,requestId:a}}return{type:n.MessageTypes.U2F_REGISTER_REQUEST,appId:e,registerRequests:i,registeredKeys:o,timeoutSeconds:r,requestId:a}},n.WrappedChromeRuntimePort_.prototype.postMessage=function(e){this.port_.postMessage(e)},n.WrappedChromeRuntimePort_.prototype.addEventListener=function(e,t){var n=e.toLowerCase();"message"==n||"onmessage"==n?this.port_.onMessage.addListener(function(e){t({data:e})}):console.error("WrappedChromeRuntimePort only supports onMessage")},n.WrappedAuthenticatorPort_=function(){this.requestId_=-1,this.requestObject_=null},n.WrappedAuthenticatorPort_.prototype.postMessage=function(e){var t=n.WrappedAuthenticatorPort_.INTENT_URL_BASE_+";S.request="+encodeURIComponent(JSON.stringify(e))+";end";document.location=t},n.WrappedAuthenticatorPort_.prototype.getPortType=function(){return"WrappedAuthenticatorPort_"},n.WrappedAuthenticatorPort_.prototype.addEventListener=function(e,t){"message"==e.toLowerCase()?window.addEventListener("message",this.onRequestUpdate_.bind(this,t),!1):console.error("WrappedAuthenticatorPort only supports message")},n.WrappedAuthenticatorPort_.prototype.onRequestUpdate_=function(e,t){var n=JSON.parse(t.data),o=(n.intentURL,n.errorCode,null);n.hasOwnProperty("data")&&(o=JSON.parse(n.data)),e({data:o})},n.WrappedAuthenticatorPort_.INTENT_URL_BASE_="intent:#Intent;action=com.google.android.apps.authenticator.AUTHENTICATE",n.WrappedIosPort_=function(){},n.WrappedIosPort_.prototype.postMessage=function(e){var t=JSON.stringify(e),n="u2f://auth?"+encodeURI(t);location.replace(n)},n.WrappedIosPort_.prototype.getPortType=function(){return"WrappedIosPort_"},n.WrappedIosPort_.prototype.addEventListener=function(e,t){"message"!==e.toLowerCase()&&console.error("WrappedIosPort only supports message")},n.getIframePort_=function(e){var t="chrome-extension://"+n.EXTENSION_ID,o=document.createElement("iframe");o.src=t+"/u2f-comms.html",o.setAttribute("style","display:none"),document.body.appendChild(o);var i=new MessageChannel,r=function(t){"ready"==t.data?(i.port1.removeEventListener("message",r),e(i.port1)):console.error('First event on iframe port was not "ready"')};i.port1.addEventListener("message",r),i.port1.start(),o.addEventListener("load",function(){o.contentWindow.postMessage("init",t,[i.port2])})},n.EXTENSION_TIMEOUT_SEC=30,n.port_=null,n.waitingForPort_=[],n.reqCounter_=0,n.callbackMap_={},n.getPortSingleton_=function(e){n.port_?e(n.port_):(0==n.waitingForPort_.length&&n.getMessagePort(function(e){for(n.port_=e,n.port_.addEventListener("message",n.responseHandler_);n.waitingForPort_.length;)n.waitingForPort_.shift()(n.port_)}),n.waitingForPort_.push(e))},n.responseHandler_=function(e){var t=e.data,o=t.requestId;if(o&&n.callbackMap_[o]){var i=n.callbackMap_[o];delete n.callbackMap_[o],i(t.responseData)}else console.error("Unknown or missing requestId in response.")},n.sign=function(e,o,i,r,a){void 0===t?n.getApiVersion(function(s){t=void 0===s.js_api_version?0:s.js_api_version,console.log("Extension JS API Version: ",t),n.sendSignRequest(e,o,i,r,a)}):n.sendSignRequest(e,o,i,r,a)},n.sendSignRequest=function(e,t,o,i,r){n.getPortSingleton_(function(a){var s=++n.reqCounter_;n.callbackMap_[s]=i;var l=void 0!==r?r:n.EXTENSION_TIMEOUT_SEC,c=n.formatSignRequest_(e,t,o,l,s);a.postMessage(c)})},n.register=function(e,o,i,r,a){void 0===t?n.getApiVersion(function(s){t=void 0===s.js_api_version?0:s.js_api_version,console.log("Extension JS API Version: ",t),n.sendRegisterRequest(e,o,i,r,a)}):n.sendRegisterRequest(e,o,i,r,a)},n.sendRegisterRequest=function(e,t,o,i,r){n.getPortSingleton_(function(a){var s=++n.reqCounter_;n.callbackMap_[s]=i;var l=void 0!==r?r:n.EXTENSION_TIMEOUT_SEC,c=n.formatRegisterRequest_(e,o,t,l,s);a.postMessage(c)})},n.getApiVersion=function(e,t){n.getPortSingleton_(function(o){if(o.getPortType){var i;switch(o.getPortType()){case"WrappedIosPort_":case"WrappedAuthenticatorPort_":i=1.1;break;default:i=0}e({js_api_version:i})}else{var r=++n.reqCounter_;n.callbackMap_[r]=e;var a={type:n.MessageTypes.U2F_GET_API_VERSION_REQUEST,timeoutSeconds:void 0!==t?t:n.EXTENSION_TIMEOUT_SEC,requestId:r};
2o.postMessage(a)}})}}}()}}]);

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.