PageSourceSearch

https://cdn.gofundraise.com.au/all/js/prod/GfPagesCreateVue3/GfPagescreate.umd.js

js gofundraise.com.au collected 2026-10-03 22:10:29 UTC 1,118,484 bytes, 985 lines download raw bytes

1(function(a,bu){typeof exports=="object"&&typeof module<"u"?module.exports=bu(require("vue")):typeof define=="function"&&define.amd?define(["vue"],bu):(a=typeof globalThis<"u"?globalThis:a||self,a.GfPagescreate=bu(a.Vue3))})(this,function(a){"use strict";function bu(){return mv().__VUE_DEVTOOLS_GLOBAL_HOOK__}function mv(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Dx=typeof Proxy=="function",Fx="devtools-plugin:setup",Rx="plugin:settings:set";let Qa,jh;function Bx(){var e;return Qa!==void 0||(typeof window<"u"&&window.performance?(Qa=!0,jh=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Qa=!0,jh=global.perf_hooks.performance):Qa=!1),Qa}function Ox(){return Bx()?jh.now():Date.now()}class Ux{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const s=localStorage.getItem(o),l=JSON.parse(s);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(o,JSON.stringify(s))}catch{}i=s},now(){return Ox()}},n&&n.on(Rx,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...h)=>{this.onQueue.push({method:l,args:h})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...h)=>(this.targetQueue.push({method:l,args:h,resolve:()=>{}}),this.fallbacks[l](...h)):(...h)=>new Promise(f=>{this.targetQueue.push({method:l,args:h,resolve:f})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function yv(e,t){const n=e,r=mv(),o=bu(),i=Dx&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(Fx,e,t);else{const s=i?new Ux(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
2  * vue-router v4.2.5
3  * (c) 2023 Eduardo San Martin Morote
4  * @license MIT
5  */const Wi=typeof window<"u";function $x(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Yt=Object.assign;function zh(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ir(o)?o.map(e):e(o)}return n}const Eu=()=>{},Ir=Array.isArray;function Ut(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const Mx=/\/$/,Lx=e=>e.replace(Mx,"");function Hh(e,t,n="/"){let r,o={},i="",s="";const l=t.indexOf("#");let h=t.indexOf("?");return l<h&&l>=0&&(h=-1),h>-1&&(r=t.slice(0,h),i=t.slice(h+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=zx(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function Vx(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function vv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _v(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Co(t.matched[r],n.matched[o])&&wv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Co(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jx(e[n],t[n]))return!1;return!0}function jx(e,t){return Ir(e)?bv(e,t):Ir(t)?bv(t,e):e===t}function bv(e,t){return Ir(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function zx(e,t){if(e.startsWith("/"))return e;if({}.NODE_ENV!=="production"&&!t.startsWith("/"))return Ut(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Su;(function(e){e.pop="pop",e.push="push"})(Su||(Su={}));var Cu;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cu||(Cu={}));function Hx(e){if(!e)if(Wi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Lx(e)}const Gx=/^[^#]+#/;function Wx(e,t){return e.replace(Gx,"#")+t}function qx(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const yl=()=>({left:window.pageXOffset,top:window.pageYOffset});function Kx(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#");if({}.NODE_ENV!=="production"&&typeof e.el=="string"&&(!r||!document.getElementById(e.el.slice(1))))try{const i=document.querySelector(e.el);if(r&&i){Ut(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{Ut(`The selector "${e.el}
5" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o){({}).NODE_ENV!=="production"&&Ut(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=qx(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ev(e,t){return(history.state?history.state.position-t:-1)+e}const Gh=new Map;function Yx(e,t){Gh.set(e,t)}function Jx(e){const t=Gh.get(e);return Gh.delete(e),t}let Xx=()=>location.protocol+"//"+location.host;function Sv(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,h=o.slice(l);return h[0]!=="/"&&(h="/"+h),vv(h,"")}return vv(n,e)+r+o}function Zx(e,t,n,r){let o=[],i=[],s=null;const l=({state:E})=>{const C=Sv(e,location),A=n.value,k=t.value;let U=0;if(E){if(n.value=C,t.value=E,s&&s===A){s=null;return}U=k?E.position-k.position:0}else r(C);o.forEach(N=>{N(n.value,A,{delta:U,type:Su.pop,direction:U?U>0?Cu.forward:Cu.back:Cu.unknown})})};function h(){s=n.value}function f(E){o.push(E);const C=()=>{const A=o.indexOf(E);A>-1&&o.splice(A,1)};return i.push(C),C}function g(){const{history:E}=window;E.state&&E.replaceState(Yt({},E.state,{scroll:yl()}),"")}function w(){for(const E of i)E();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:h,listen:f,destroy:w}}function Cv(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?yl():null}}function Qx(e){const{history:t,location:n}=window,r={value:Sv(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(h,f,g){const w=e.indexOf("#"),E=w>-1?(n.host&&document.querySelector("base")?e:e.slice(w))+h:Xx()+e+h;try{t[g?"replaceState":"pushState"](f,"",E),o.value=f}catch(C){({}).NODE_ENV!=="production"?Ut("Error with push/replace State",C):console.error(C),n[g?"replace":"assign"](E)}}function s(h,f){const g=Yt({},t.state,Cv(o.value.back,h,o.value.forward,!0),f,{position:o.value.position});i(h,g,!0),r.value=h}function l(h,f){const g=Yt({},o.value,t.state,{forward:h,scroll:yl()});({}).NODE_ENV!=="production"&&!t.state&&Ut(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
6
7history.replaceState(history.state, '', url)
8
9You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),i(g.current,g,!0);const w=Yt({},Cv(r.value,h,null),{position:g.position+1},f);i(h,w,!1),r.value=h}return{location:r,state:o,push:l,replace:s}}function eA(e){e=Hx(e);const t=Qx(e),n=Zx(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=Yt({location:"",base:e,go:r,createHref:Wx.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function tA(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),{}.NODE_ENV!=="production"&&!e.endsWith("#/")&&!e.endsWith("#")&&Ut(`A hash base must end with a "#":
10"${e}" should be "${e.replace(/#.*$/,"#")}".`),eA(e)}function nA(e){return typeof e=="string"||e&&typeof e=="object"}function xv(e){return typeof e=="string"||typeof e=="symbol"}const xo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Wh=Symbol({}.NODE_ENV!=="production"?"navigation failure":"");var Av;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Av||(Av={}));const rA={1({location:e,currentLocation:t}){return`No match for
11 ${JSON.stringify(e)}${t?`
12while being at
13`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${oA(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function es(e,t){return{}.NODE_ENV!=="production"?Yt(new Error(rA[e](t)),{type:e,[Wh]:!0},t):Yt(new Error,{type:e,[Wh]:!0},t)}function qi(e,t){return e instanceof Error&&Wh in e&&(t==null||!!(e.type&t))}const iA=["params","query","hash"];function oA(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of iA)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Tv="[^/]+?",aA={sensitive:!1,strict:!1,start:!0,end:!0},sA=/[.+*?^${}()[\]/\\]/g;function uA(e,t){const n=Yt({},aA,t),r=[];let o=n.start?"^":"";const i=[];for(const f of e){const g=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let w=0;w<f.length;w++){const E=f[w];let C=40+(n.sensitive?.25:0);if(E.type===0)w||(o+="/"),o+=E.value.replace(sA,"\\$&"),C+=40;else if(E.type===1){const{value:A,repeatable:k,optional:U,regexp:N}=E;i.push({name:A,repeatable:k,optional:U});const R=N||Tv;if(R!==Tv){C+=10;try{new RegExp(`(${R}
13)`)}catch(z){throw new Error(`Invalid custom RegExp for param "${A}" (${R}): `+z.message)}}let L=k?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;w||(L=U&&f.length<2?`(?:/${L})`:"/"+L),U&&(L+="?"),o+=L,C+=20,U&&(C+=-8),k&&(C+=-20),R===".*"&&(C+=-50)}g.push(C)}r.push(g)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function l(f){const g=f.match(s),w={};if(!g)return null;for(let E=1;E<g.length;E++){const C=g[E]||"",A=i[E-1];w[A.name]=C&&A.repeatable?C.split("/"):C}return w}function h(f){let g="",w=!1;for(const E of e){(!w||!g.endsWith("/"))&&(g+="/"),w=!1;for(const C of E)if(C.type===0)g+=C.value;else if(C.type===1){const{value:A,repeatable:k,optional:U}=C,N=A in f?f[A]:"";if(Ir(N)&&!k)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const R=Ir(N)?N.join("/"):N;if(!R)if(U)E.length<2&&(g.endsWith("/")?g=g.slice(0,-1):w=!0);else throw new Error(`Missing required param "${A}"`);g+=R}}return g||"/"}return{re:s,score:r,keys:i,parse:l,stringify:h}}function cA(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function lA(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=cA(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(Iv(r))return 1;if(Iv(o))return-1}return o.length-r.length}function Iv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fA={type:0,value:""},dA=/[a-zA-Z0-9_]/;function hA(e){if(!e)return[[]];if(e==="/")return[[fA]];if(!e.startsWith("/"))throw new Error({}.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${n})/"${f}": ${C}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let l=0,h,f="",g="";function w(){f&&(n===0?i.push({type:0,value:f}):n===1||n===2||n===3?(i.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:f,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),f="")}function E(){f+=h}for(;l<e.length;){if(h=e[l++],h==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:h==="/"?(f&&w(),s()):h===":"?(w(),n=1):E();break;case 4:E(),n=r;break;case 1:h==="("?n=2:dA.test(h)?E():(w(),n=0,h!=="*"&&h!=="?"&&h!=="+"&&l--);break;case 2:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=3:g+=h;break;case 3:w(),n=0,h!=="*"&&h!=="?"&&h!=="+"&&l--,g="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),w(),s(),o}function pA(e,t,n){const r=uA(hA(e.path),n);if({}.NODE_ENV!=="production"){const i=new Set;for(const s of r.keys)i.has(s.name)&&Ut(`Found duplicated params with name "${s.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),i.add(s.name)}const o=Yt(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function gA(e,t){const n=[],r=new Map;t=Nv({strict:!1,end:!0,sensitive:!1},t);function o(g){return r.get(g)}function i(g,w,E){const C=!E,A=mA(g);({}).NODE_ENV!=="production"&&wA(A,w),A.aliasOf=E&&E.record;const k=Nv(t,g),U=[A];if("alias"in g){const L=typeof g.alias=="string"?[g.alias]:g.alias;for(const z of L)U.push(Yt({},A,{components:E?E.record.components:A.components,path:z,aliasOf:E?E.record:A}))}let N,R;for(const L of U){const{path:z}=L;if(w&&z[0]!=="/"){const W=w.record.path,ee=W[W.length-1]==="/"?"":"/";L.path=w.record.path+(z&&ee+z)}if({}.NODE_ENV!=="production"&&L.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
14See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(N=pA(L,w,k),{}.NODE_ENV!=="production"&&w&&z[0]==="/"&&bA(N,w),E?(E.alias.push(N),{}.NODE_ENV!=="production"&&_A(E,N)):(R=R||N,R!==N&&R.alias.push(N),C&&g.name&&!Pv(N)&&s(g.name)),A.children){const W=A.children;for(let ee=0;ee<W.length;ee++)i(W[ee],N,E&&E.children[ee])}E=E||N,(N.record.components&&Object.keys(N.record.components).length||N.record.name||N.record.redirect)&&h(N)}return R?()=>{s(R)}:Eu}function s(g){if(xv(g)){const w=r.get(g);
14w&&(r.delete(g),n.splice(n.indexOf(w),1),w.children.forEach(s),w.alias.forEach(s))}else{const w=n.indexOf(g);w>-1&&(n.splice(w,1),g.record.name&&r.delete(g.record.name),g.children.forEach(s),g.alias.forEach(s))}}function l(){return n}function h(g){let w=0;for(;w<n.length&&lA(g,n[w])>=0&&(g.record.path!==n[w].record.path||!Dv(g,n[w]));)w++;n.splice(w,0,g),g.record.name&&!Pv(g)&&r.set(g.record.name,g)}function f(g,w){let E,C={},A,k;if("name"in g&&g.name){if(E=r.get(g.name),!E)throw es(1,{location:g});if({}.NODE_ENV!=="production"){const R=Object.keys(g.params||{}).filter(L=>!E.keys.find(z=>z.name===L));R.length&&Ut(`Discarded invalid param(s) "${R.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}k=E.record.name,C=Yt(kv(w.params,E.keys.filter(R=>!R.optional).map(R=>R.name)),g.params&&kv(g.params,E.keys.map(R=>R.name))),A=E.stringify(C)}else if("path"in g)A=g.path,{}.NODE_ENV!=="production"&&!A.startsWith("/")&&Ut(`The Matcher cannot resolve relative paths but received "${A}". Unless you directly called \`matcher.resolve("${A}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),E=n.find(R=>R.re.test(A)),E&&(C=E.parse(A),k=E.record.name);else{if(E=w.name?r.get(w.name):n.find(R=>R.re.test(w.path)),!E)throw es(1,{location:g,currentLocation:w});k=E.record.name,C=Yt({},w.params,g.params),A=E.stringify(C)}const U=[];let N=E;for(;N;)U.unshift(N.record),N=N.parent;return{name:k,path:A,params:C,matched:U,meta:vA(U)}}return e.forEach(g=>i(g)),{addRoute:i,resolve:f,removeRoute:s,getRoutes:l,getRecordMatcher:o}}function kv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function mA(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:yA(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function yA(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Pv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vA(e){return e.reduce((t,n)=>Yt(t,n.meta),{})}function Nv(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function qh(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function _A(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(qh.bind(null,n)))return Ut(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(qh.bind(null,n)))return Ut(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function wA(e,t){t&&t.record.name&&!e.name&&!e.path&&Ut(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function bA(e,t){for(const n of t.keys)if(!e.keys.find(qh.bind(null,n)))return Ut(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Dv(e,t){return t.children.some(n=>n===e||Dv(e,n))}const Fv=/#/g,EA=/&/g,SA=/\//g,CA=/=/g,xA=/\?/g,Rv=/\+/g,AA=/%5B/g,TA=/%5D/g,Bv=/%5E/g,IA=/%60/g,Ov=/%7B/g,kA=/%7C/g,Uv=/%7D/g,PA=/%20/g;function Kh(e){return encodeURI(""+e).replace(kA,"|").replace(AA,"[").replace(TA,"]")}function NA(e){return Kh(e).replace(Ov,"{").replace(Uv,"}").replace(Bv,"^")}function Yh(e){return Kh(e).replace(Rv,"%2B").replace(PA,"+").replace(Fv,"%23").replace(EA,"%26").replace(IA,"`").replace(Ov,"{").replace(Uv,"}").replace(Bv,"^")}function DA(e){return Yh(e).replace(CA,"%3D")}function FA(e){return Kh(e).replace(Fv,"%23").replace(xA,"%3F")}function RA(e){return e==null?"":FA(e).replace(SA,"%2F")}function xu(e){try{return decodeURIComponent(""+e)}catch{({}).NODE_ENV!=="production"&&Ut(`Error decoding "${e}". Using original value`)}return""+e}function BA(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(Rv," "),s=i.indexOf("="),l=xu(s<0?i:i.slice(0,s)),h=s<0?null:xu(i.slice(s+1));if(l in t){let f=t[l];Ir(f)||(f=t[l]=[f]),f.push(h)}else t[l]=h}return t}function $v(e){let t="";for(let n in e){const r=e[n];if(n=DA(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ir(r)?r.map(i=>
14i&&Yh(i)):[r&&Yh(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function OA(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ir(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const UA=Symbol({}.NODE_ENV!=="production"?"router view location matched":""),Mv=Symbol({}.NODE_ENV!=="production"?"router view depth":""),Jh=Symbol({}.NODE_ENV!=="production"?"router":""),Lv=Symbol({}.NODE_ENV!=="production"?"route location":""),Xh=Symbol({}.NODE_ENV!=="production"?"router view location":"");function Au(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ao(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const h=w=>{w===!1?l(es(4,{from:n,to:t})):w instanceof Error?l(w):nA(w)?l(es(2,{from:t,to:w})):(i&&r.enterCallbacks[o]===i&&typeof w=="function"&&i.push(w),s())},f=e.call(r&&r.instances[o],t,n,{}.NODE_ENV!=="production"?$A(h,t,n):h);let g=Promise.resolve(f);if(e.length<3&&(g=g.then(h)),{}.NODE_ENV!=="production"&&e.length>2){const w=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
15${e.toString()}
16. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof f=="object"&&"then"in f)g=g.then(E=>h._called?E:(Ut(w),Promise.reject(new Error("Invalid navigation guard"))));else if(f!==void 0&&!h._called){Ut(w),l(new Error("Invalid navigation guard"));return}}g.catch(w=>l(w))})}function $A(e,t,n){let r=0;return function(){r++===1&&Ut(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,r===1&&e.apply(null,arguments)}}function Zh(e,t,n,r){const o=[];for(const i of e){({}).NODE_ENV!=="production"&&!i.components&&!i.children.length&&Ut(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);for(const s in i.components){let l=i.components[s];if({}.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw Ut(`Component "${s}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){Ut(`Component "${s}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const h=l;l=()=>h}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,Ut(`Component "${s}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(MA(l)){const f=(l.__vccOpts||l)[t];f&&o.push(Ao(f,n,r,i,s))}else{let h=l();({}).NODE_ENV!=="production"&&!("catch"in h)&&(Ut(`Component "${s}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),h=Promise.resolve(h)),o.push(()=>h.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const g=$x(f)?f.default:f;i.components[s]=g;const E=(g.__vccOpts||g)[t];return E&&Ao(E,n,r,i,s)()}))}}}return o}function MA(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vv(e){const t=a.inject(Jh),n=a.inject(Lv),r=a.computed(()=>t.resolve(a.unref(e.to))),o=a.computed(()=>{const{matched:h}=r.value,{length:f}=h,g=h[f-1],w=n.matched;if(!g||!w.length)return-1;const E=w.findIndex(Co.bind(null,g));if(E>-1)return E;const C=jv(h[f-2]);return f>1&&jv(g)===C&&w[w.length-1].path!==C?w.findIndex(Co.bind(null,h[f-2])):E}),i=a.computed(()=>o.value>-1&&jA(n.params,r.value.params)),s=a.computed(()=>o.value>-1&&o.value===n.matched.length-1&&wv(n.params,r.value.params));function l(h={}){return VA(h)?t[a.unref(e.replace)?"replace":"push"](a.unref(e.to)).catch(Eu):Promise.resolve()}if({}.NODE_ENV!=="production"&&Wi){const h=a.getCurrentInstance();if(h){const f={route:r.value,isActive:i.value,isExactActive:s.value};h.__vrl_devtools=h.__vrl_devtools||[],h.__vrl_devtools.push(f),a.watchEffect(()=>{f.route=r.value,f.isActive=i.value,f.isExactActive=s.value},{flush:"post"})}}return{route:r,href:a.computed(()=>r.value.href),isActive:i,isExactActive:s,navigate:l}}const LA=a.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vv,setup(e,{slots:t}){const n=a.reactive(Vv(e)),{options:r}=a.inject(Jh),o=a.computed(()=>({[zv(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[zv(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:a.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}});function VA(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function jA(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ir(o)||o.length!==r.length||r.some((i,s)=>
16i!==o[s]))return!1}return!0}function jv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const zv=(e,t,n)=>e??t??n,zA=a.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){({}).NODE_ENV!=="production"&&GA();const r=a.inject(Xh),o=a.computed(()=>e.route||r.value),i=a.inject(Mv,0),s=a.computed(()=>{let f=a.unref(i);const{matched:g}=o.value;let w;for(;(w=g[f])&&!w.components;)f++;return f}),l=a.computed(()=>o.value.matched[s.value]);a.provide(Mv,a.computed(()=>s.value+1)),a.provide(UA,l),a.provide(Xh,o);const h=a.ref();return a.watch(()=>[h.value,l.value,e.name],([f,g,w],[E,C,A])=>{g&&(g.instances[w]=f,C&&C!==g&&f&&f===E&&(g.leaveGuards.size||(g.leaveGuards=C.leaveGuards),g.updateGuards.size||(g.updateGuards=C.updateGuards))),f&&g&&(!C||!Co(g,C)||!E)&&(g.enterCallbacks[w]||[]).forEach(k=>k(f))},{flush:"post"}),()=>{const f=o.value,g=e.name,w=l.value,E=w&&w.components[g];if(!E)return Hv(n.default,{Component:E,route:f});const C=w.props[g],A=C?C===!0?f.params:typeof C=="function"?C(f):C:null,k=N=>{N.component.isUnmounted&&(w.instances[g]=null)},U=a.h(E,Yt({},A,t,{onVnodeUnmounted:k,ref:h}));if({}.NODE_ENV!=="production"&&Wi&&U.ref){const N={depth:s.value,name:w.name,path:w.path,meta:w.meta};(Ir(U.ref)?U.ref.map(L=>L.i):[U.ref.i]).forEach(L=>{L.__vrv_devtools=N})}return Hv(n.default,{Component:U,route:f})||U}}});function Hv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const HA=zA;function GA(){const e=a.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const r=t==="KeepAlive"?"keep-alive":"transition";Ut(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
17Use slot props instead:
18
19<router-view v-slot="{ Component }">
20  <${r}>
21    <component :is="Component" />
22  </${r}>
23</router-view>`)}}function Tu(e,t){const n=Yt({},e,{matched:e.matched.map(r=>e2(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function vl(e){return{_custom:{display:e}}}let WA=0;function qA(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=WA++;yv({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},o=>{typeof o.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),o.on.inspectComponent((g,w)=>{g.instanceData&&g.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Tu(t.currentRoute.value,"Current Route")})}),o.on.visitComponentTree(({treeNode:g,componentInstance:w})=>{if(w.__vrv_devtools){const E=w.__vrv_devtools;g.tags.push({label:(E.name?`${E.name.toString()}: `:"")+E.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Gv})}Ir(w.__vrl_devtools)&&(w.__devtoolsApi=o,w.__vrl_devtools.forEach(E=>{let C=Kv,A="";E.isExactActive?(C=qv,A="This is exactly active"):E.isActive&&(C=Wv,A="This link is active"),g.tags.push({label:E.route.path,textColor:0,tooltip:A,backgroundColor:C})}))}),a.watch(t.currentRoute,()=>{h(),o.notifyComponentUpdate(),o.sendInspectorTree(l),o.sendInspectorState(l)});const i="router:navigations:"+r;o.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((g,w)=>{o.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:w.fullPath,logType:"error",time:o.now(),data:{error:g},groupId:w.meta.__navigationId}})});let s=0;t.beforeEach((g,w)=>{const E={guard:vl("beforeEach"),from:Tu(w,"Current Location during this navigation"),to:Tu(g,"Target location")};Object.defineProperty(g.meta,"__navigationId",{value:s++}),o.addTimelineEvent({layerId:i,event:{time:o.now(),title:"Start of navigation",subtitle:g.fullPath,data:E,groupId:g.meta.__navigationId}})}),t.afterEach((g,w,E)=>{const C={guard:vl("afterEach")};E?(C.failure={_custom:{type:Error,readOnly:!0,display:E?E.message:"",tooltip:"Navigation Failure",value:E}},C.status=vl("❌")):C.status=vl("✅"),C.from=Tu(w,"Current Location during this navigation"),C.to=Tu(g,"Target location"),o.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:g.fullPath,time:o.now(),data:C,logType:E?"warning":"default",groupId:g.meta.__navigationId}})});const l="router-inspector:"+r;o.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function h(){if(!f)return;const g=f;let w=n.getRoutes().filter(E=>!E.parent||!E.parent.record.components);
23w.forEach(Xv),g.filter&&(w=w.filter(E=>Qh(E,g.filter.toLowerCase()))),w.forEach(E=>Jv(E,t.currentRoute.value)),g.rootNodes=w.map(Yv)}let f;o.on.getInspectorTree(g=>{f=g,g.app===e&&g.inspectorId===l&&h()}),o.on.getInspectorState(g=>{if(g.app===e&&g.inspectorId===l){const E=n.getRoutes().find(C=>C.record.__vd_id===g.nodeId);E&&(g.state={options:YA(E)})}}),o.sendInspectorTree(l),o.sendInspectorState(l)})}function KA(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function YA(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${KA(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const Gv=15485081,Wv=2450411,qv=8702998,JA=2282478,Kv=16486972,XA=6710886;function Yv(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:JA}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Kv}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Gv}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:qv}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Wv}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:XA});let r=n.__vd_id;return r==null&&(r=String(ZA++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(Yv)}}let ZA=0;const QA=/^\/(.*)\/([a-z]*)$/;function Jv(e,t){const n=t.matched.length&&Co(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Co(r,e.record))),e.children.forEach(r=>Jv(r,t))}function Xv(e){e.__vd_match=!1,e.children.forEach(Xv)}function Qh(e,t){const n=String(e.re).match(QA);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(s=>Qh(s,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),i=xu(o);return!t.startsWith("/")&&(i.includes(t)||o.includes(t))||i.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(s=>Qh(s,t))}function e2(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function t2(e){const t=gA(e.routes,e),n=e.parseQuery||BA,r=e.stringifyQuery||$v,o=e.history;if({}.NODE_ENV!=="production"&&!o)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const i=Au(),s=Au(),l=Au(),h=a.shallowRef(xo);let f=xo;Wi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=zh.bind(null,se=>""+se),w=zh.bind(null,RA),E=zh.bind(null,xu);function C(se,be){let Ae,Ne;return xv(se)?(Ae=t.getRecordMatcher(se),Ne=be):Ne=se,t.addRoute(Ne,Ae)}function A(se){const be=t.getRecordMatcher(se);be?t.removeRoute(be):{}.NODE_ENV!=="production"&&Ut(`Cannot remove non-existent route "${String(se)}"`)}function k(){return t.getRoutes().map(se=>se.record)}function U(se){return!!t.getRecordMatcher(se)}function N(se,be){if(be=Yt({},be||h.value),typeof se=="string"){const Le=Hh(n,se,be.path),st=t.resolve({path:Le.path},be),Bt=o.createHref(Le.fullPath);return{}.NODE_ENV!=="production"&&(Bt.startsWith("//")?Ut(`Location "${se}" resolved to "${Bt}". A resolved location cannot start with multiple slashes.`):st.matched.length||Ut(`No match found for location with path "${se}"`)),Yt(Le,st,{params:E(st.params),hash:xu(Le.hash),redirectedFrom:void 0,href:Bt})}let Ae;if("path"in se)({}).NODE_ENV!=="production"&&"params"in se&&!("name"in se)&&Object.keys(se.params).length&&Ut(`Path "${se.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),Ae=Yt({},se,{path:Hh(n,se.path,be.path).path});else{const Le=Yt({},se.params);for(const st in Le)Le[st]==null&&delete Le[st];Ae=Yt({},se,{params:w(Le)}),be.params=w(be.params)}const Ne=t.resolve(Ae,be),Me=se.hash||"";({}).NODE_ENV!=="production"&&Me&&!Me.startsWith("#")&&Ut(`A \`hash\` should always start with the character "#". Replace "${Me}" with "#${Me}".`),Ne.params=g(E(Ne.params));const Ye=Vx(r,Yt({},se,{hash:NA(Me),path:Ne.path})),pe=o.createHref(Ye);return{}.NODE_ENV!=="production"&&(pe.startsWith("//")?Ut(`Location "${se}" resolved to "${pe}". A resolved location cannot start with multiple slashes.`):Ne.matched.length||Ut(`No match found for location with path "${"path"in se?se.path:se}"`)),Yt({fullPath:Ye,hash:Me,query:r===$v?OA(se.query):se.query||{}},Ne,{redirectedFrom:void 0,href:pe})}function R(se){return typeof se=="string"?Hh(n,se,h.value.path):Yt({},se)}function L(se,be){if(f!==se)return es(8,{from:be,to:se})}function z(se){return b(se)}function W(se){return z(Yt(R(se),{replace:!0}))}function ee(se){const be=se.matched[se.matched.length-1];if(be&&be.redirect){const{redirect:Ae}=be;let Ne=typeof Ae=="function"?Ae(se):Ae;if(typeof Ne=="string"&&(Ne=Ne.includes("?")||Ne.includes("#")?Ne=R(Ne):{path:Ne},Ne.params={}),{}.NODE_ENV!=="production"&&!("path"in Ne)&&!("name"in Ne))throw Ut(`Invalid redirect found:
24${JSON.stringify(Ne,null,2)}
25 when navigating to "${se.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Yt({query:se.query,hash:se.hash,params:"path"in Ne?{}:se.params},Ne)}}function b(se,be){const Ae=f=N(se),Ne=h.value,Me=se.state,Ye=se.force,pe=se.replace===!0,Le=ee(Ae);if(Le)return b(Yt(R(Le),{state:typeof Le=="object"?Yt({},Me,Le.state):Me,force:Ye,replace:pe}),be||Ae);const st=Ae;st.redirectedFrom=be;let Bt;return!Ye&&_v(r,Ne,Ae)&&(Bt=es(16,{to:st,from:Ne}),ne(Ne,Ne,!0,!1)),(Bt?Promise.resolve(Bt):Ie(st,Ne)).catch(et=>qi(et)?qi(et,2)?et:Ue(et):dt(et,st,Ne)).then(et=>{if(et){if(qi(et,2))return{}.NODE_ENV!=="production"&&_v(r,N(et.to),st)&&be&&(be._count=be._count?be._count+1:1)>30?(Ut(`Detected a possibly infinite redirection in a navigation guard when going from "${Ne.fullPath}" to "${st.fullPath}". Aborting to avoid a Stack Overflow.
26 Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):b(Yt({replace:pe},R(et.to),{state:typeof et.to=="object"?Yt({},Me,et.to.state):Me,force:Ye}),be||st)}else et=De(st,Ne,!0,pe,Me);return xe(st,Ne,et),et})}function fe(se,be){const Ae=L(se,be);
26return Ae?Promise.reject(Ae):Promise.resolve()}function ae(se){const be=Oe.values().next().value;return be&&typeof be.runWithContext=="function"?be.runWithContext(se):se()}function Ie(se,be){let Ae;const[Ne,Me,Ye]=n2(se,be);Ae=Zh(Ne.reverse(),"beforeRouteLeave",se,be);for(const Le of Ne)Le.leaveGuards.forEach(st=>{Ae.push(Ao(st,se,be))});const pe=fe.bind(null,se,be);return Ae.push(pe),Qe(Ae).then(()=>{Ae=[];for(const Le of i.list())Ae.push(Ao(Le,se,be));return Ae.push(pe),Qe(Ae)}).then(()=>{Ae=Zh(Me,"beforeRouteUpdate",se,be);for(const Le of Me)Le.updateGuards.forEach(st=>{Ae.push(Ao(st,se,be))});return Ae.push(pe),Qe(Ae)}).then(()=>{Ae=[];for(const Le of Ye)if(Le.beforeEnter)if(Ir(Le.beforeEnter))for(const st of Le.beforeEnter)Ae.push(Ao(st,se,be));else Ae.push(Ao(Le.beforeEnter,se,be));return Ae.push(pe),Qe(Ae)}).then(()=>(se.matched.forEach(Le=>Le.enterCallbacks={}),Ae=Zh(Ye,"beforeRouteEnter",se,be),Ae.push(pe),Qe(Ae))).then(()=>{Ae=[];for(const Le of s.list())Ae.push(Ao(Le,se,be));return Ae.push(pe),Qe(Ae)}).catch(Le=>qi(Le,8)?Le:Promise.reject(Le))}function xe(se,be,Ae){l.list().forEach(Ne=>ae(()=>Ne(se,be,Ae)))}function De(se,be,Ae,Ne,Me){const Ye=L(se,be);if(Ye)return Ye;const pe=be===xo,Le=Wi?history.state:{};Ae&&(Ne||pe?o.replace(se.fullPath,Yt({scroll:pe&&Le&&Le.scroll},Me)):o.push(se.fullPath,Me)),h.value=se,ne(se,be,Ae,pe),Ue()}let ye;function je(){ye||(ye=o.listen((se,be,Ae)=>{if(!We.listening)return;const Ne=N(se),Me=ee(Ne);if(Me){b(Yt(Me,{replace:!0}),Ne).catch(Eu);return}f=Ne;const Ye=h.value;Wi&&Yx(Ev(Ye.fullPath,Ae.delta),yl()),Ie(Ne,Ye).catch(pe=>qi(pe,12)?pe:qi(pe,2)?(b(pe.to,Ne).then(Le=>{qi(Le,20)&&!Ae.delta&&Ae.type===Su.pop&&o.go(-1,!1)}).catch(Eu),Promise.reject()):(Ae.delta&&o.go(-Ae.delta,!1),dt(pe,Ne,Ye))).then(pe=>{pe=pe||De(Ne,Ye,!1),pe&&(Ae.delta&&!qi(pe,8)?o.go(-Ae.delta,!1):Ae.type===Su.pop&&qi(pe,20)&&o.go(-1,!1)),xe(Ne,Ye,pe)}).catch(Eu)}))}let rt=Au(),ot=Au(),Je;function dt(se,be,Ae){Ue(se);const Ne=ot.list();return Ne.length?Ne.forEach(Me=>Me(se,be,Ae)):({}.NODE_ENV!=="production"&&Ut("uncaught error during route navigation:"),console.error(se)),Promise.reject(se)}function mt(){return Je&&h.value!==xo?Promise.resolve():new Promise((se,be)=>{rt.add([se,be])})}function Ue(se){return Je||(Je=!se,je(),rt.list().forEach(([be,Ae])=>se?Ae(se):be()),rt.reset()),se}function ne(se,be,Ae,Ne){const{scrollBehavior:Me}=e;if(!Wi||!Me)return Promise.resolve();const Ye=!Ae&&Jx(Ev(se.fullPath,0))||(Ne||!Ae)&&history.state&&history.state.scroll||null;return a.nextTick().then(()=>Me(se,be,Ye)).then(pe=>pe&&Kx(pe)).catch(pe=>dt(pe,se,be))}const oe=se=>o.go(se);let Pe;const Oe=new Set,We={currentRoute:h,listening:!0,addRoute:C,removeRoute:A,hasRoute:U,getRoutes:k,resolve:N,options:e,push:z,replace:W,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:i.add,beforeResolve:s.add,afterEach:l.add,onError:ot.add,isReady:mt,install(se){const be=this;se.component("RouterLink",LA),se.component("RouterView",HA),se.config.globalProperties.$router=be,Object.defineProperty(se.config.globalProperties,"$route",{enumerable:!0,get:()=>a.unref(h)}),Wi&&!Pe&&h.value===xo&&(Pe=!0,z(o.location).catch(Me=>{({}).NODE_ENV!=="production"&&Ut("Unexpected error when starting the router:",Me)}));const Ae={};for(const Me in xo)Object.defineProperty(Ae,Me,{get:()=>h.value[Me],enumerable:!0});se.provide(Jh,be),se.provide(Lv,a.shallowReactive(Ae)),se.provide(Xh,h);const Ne=se.unmount;Oe.add(se),se.unmount=function(){Oe.delete(se),Oe.size<1&&(f=xo,ye&&ye(),ye=null,h.value=xo,Pe=!1,Je=!1),Ne()},{}.NODE_ENV!=="production"&&Wi&&qA(se,be,t)}};function Qe(se){return se.reduce((be,Ae)=>be.then(()=>ae(Ae)),Promise.resolve())}return We}function n2(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const l=t.matched[s];l&&(e.matched.find(f=>Co(f,l))?r.push(l):n.push(l));const h=e.matched[s];h&&(t.matched.find(f=>Co(f,h))||o.push(h))}return[n,r,o]}/*!
27 * vuex v4.1.0
28 * (c) 2022 Evan You
29 * @license MIT
30 */var r2="store";function la(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function i2(e){return e!==null&&typeof e=="object"}function o2(e){return e&&typeof e.then=="function"}function ii(e,t){if(!e)throw new Error("[vuex] "+t)}function a2(e,t){return function(){return e(t)}}function Zv(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Qv(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_l(e,n,[],e._modules.root,!0),ep(e,n,t)}function ep(e,t,n){var r=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,s={},l={},h=a.effectScope(!0);h.run(function(){la(i,function(f,g){s[g]=a2(f,e),l[g]=a.computed(function(){return s[g]()}),Object.defineProperty(e.getters,g,{get:function(){return l[g].value},enumerable:!0})})}),e._state=a.reactive({data:t}),e._scope=h,e.strict&&f2(e),r&&n&&e._withCommit(function(){r.data=null}),o&&o.stop()}function _l(e,t,n,r,o){var i=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s]&&{}.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[s]=r),!i&&!o){var l=tp(t,n.slice(0,-1)),h=n[n.length-1];e._withCommit(function(){({}
30).NODE_ENV!=="production"&&h in l&&console.warn('[vuex] state field "'+h+'" was overridden by a module with the same name at "'+n.join(".")+'"'),l[h]=r.state})}var f=r.context=s2(e,s,n);r.forEachMutation(function(g,w){var E=s+w;u2(e,E,g,f)}),r.forEachAction(function(g,w){var E=g.root?w:s+w,C=g.handler||g;c2(e,E,C,f)}),r.forEachGetter(function(g,w){var E=s+w;l2(e,E,g,f)}),r.forEachChild(function(g,w){_l(e,t,n.concat(w),g,o)})}function s2(e,t,n){var r=t==="",o={dispatch:r?e.dispatch:function(i,s,l){var h=wl(i,s,l),f=h.payload,g=h.options,w=h.type;if((!g||!g.root)&&(w=t+w,{}.NODE_ENV!=="production"&&!e._actions[w])){console.error("[vuex] unknown local action type: "+h.type+", global type: "+w);return}return e.dispatch(w,f)},commit:r?e.commit:function(i,s,l){var h=wl(i,s,l),f=h.payload,g=h.options,w=h.type;if((!g||!g.root)&&(w=t+w,{}.NODE_ENV!=="production"&&!e._mutations[w])){console.error("[vuex] unknown local mutation type: "+h.type+", global type: "+w);return}e.commit(w,f,g)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return e_(e,t)}},state:{get:function(){return tp(e.state,n)}}}),o}function e_(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function u2(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(s){n.call(e,r.state,s)})}function c2(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(s){var l=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return o2(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(h){throw e._devtoolHook.emit("vuex:error",h),h}):l})}function l2(e,t,n,r){if(e._wrappedGetters[t]){({}).NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(i){return n(r.state,r.getters,i.state,i.getters)}}function f2(e){a.watch(function(){return e._state.data},function(){({}).NODE_ENV!=="production"&&ii(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function tp(e,t){return t.reduce(function(n,r){return n[r]},e)}function wl(e,t,n){return i2(e)&&e.type&&(n=t,t=e,e=e.type),{}.NODE_ENV!=="production"&&ii(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var d2="vuex bindings",t_="vuex:mutations",np="vuex:actions",ts="vuex",h2=0;function p2(e,t){yv({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[d2]},function(n){n.addTimelineLayer({id:t_,label:"Vuex Mutations",color:n_}),n.addTimelineLayer({id:np,label:"Vuex Actions",color:n_}),n.addInspector({id:ts,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===ts)if(r.filter){var o=[];a_(o,t._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[o_(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===ts){var o=r.nodeId;e_(t,o),r.state=y2(_2(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===ts){var o=r.nodeId,i=r.path;o!=="root"&&(i=o.split("/").filter(Boolean).concat(i)),t._withCommit(function(){r.set(t._state.data,i,r.state.value)})}}),t.subscribe(function(r,o){var i={};r.payload&&(i.payload=r.payload),i.state=o,n.notifyComponentUpdate(),n.sendInspectorTree(ts),n.sendInspectorState(ts),n.addTimelineEvent({layerId:t_,event:{time:Date.now(),title:r.type,data:i}})}),t.subscribeAction({before:function(r,o){var i={};r.payload&&(i.payload=r.payload),r._id=h2++,r._time=Date.now(),i.state=o,n.addTimelineEvent({layerId:np,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:i}})},after:function(r,o){var i={},s=Date.now()-r._time;i.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(i.payload=r.payload),i.state=o,n.addTimelineEvent({layerId:np,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:i}})}})})}var n_=8702998,g2=6710886,m2=16777215,r_={label:"namespaced",textColor:m2,backgroundColor:g2};function i_(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function o_(e,t){return{id:t||"root",label:i_(t),tags:e.namespaced?[r_]:[],children:Object.keys(e._children).map(function(n){return o_(e._children[n],t+n+"/")})}}function a_(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[r_]:[]}
30),Object.keys(t._children).forEach(function(o){a_(e,t._children[o],n,r+o+"/")})}function y2(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var i=v2(t);o.getters=Object.keys(i).map(function(s){return{key:s.endsWith("/")?i_(s):s,editable:!1,value:rp(function(){return i[s]})}})}return o}function v2(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var o=t,i=r.pop();r.forEach(function(s){o[s]||(o[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),o=o[s]._custom.value}),o[i]=rp(function(){return e[n]})}else t[n]=rp(function(){return e[n]})}),t}function _2(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,o,i){var s=r[o];if(!s)throw new Error('Missing module "'+o+'" for path "'+t+'".');return i===n.length-1?s:s._children},t==="root"?e:e.root._children)}function rp(e){try{return e()}catch(t){return t}}var oi=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},s_={namespaced:{configurable:!0}};s_.namespaced.get=function(){return!!this._rawModule.namespaced},oi.prototype.addChild=function(t,n){this._children[t]=n},oi.prototype.removeChild=function(t){delete this._children[t]},oi.prototype.getChild=function(t){return this._children[t]},oi.prototype.hasChild=function(t){return t in this._children},oi.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},oi.prototype.forEachChild=function(t){la(this._children,t)},oi.prototype.forEachGetter=function(t){this._rawModule.getters&&la(this._rawModule.getters,t)},oi.prototype.forEachAction=function(t){this._rawModule.actions&&la(this._rawModule.actions,t)},oi.prototype.forEachMutation=function(t){this._rawModule.mutations&&la(this._rawModule.mutations,t)},Object.defineProperties(oi.prototype,s_);var fa=function(t){this.register([],t,!1)};fa.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)},fa.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,o){return n=n.getChild(o),r+(n.namespaced?o+"/":"")},"")},fa.prototype.update=function(t){u_([],this.root,t)},fa.prototype.register=function(t,n,r){var o=this;r===void 0&&(r=!0),{}.NODE_ENV!=="production"&&f_(t,n);var i=new oi(n,r);if(t.length===0)this.root=i;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],i)}n.modules&&la(n.modules,function(l,h){o.register(t.concat(h),l,r)})},fa.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],o=n.getChild(r);if(!o){({}).NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&n.removeChild(r)},fa.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function u_(e,t,n){if({}.NODE_ENV!=="production"&&f_(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r)){({}).NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}u_(e.concat(r),t.getChild(r),n.modules[r])}}var c_={assert:function(e){return typeof e=="function"},expected:"function"},w2={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},l_={getters:c_,mutations:c_,actions:w2};function f_(e,t){Object.keys(l_).forEach(function(n){if(t[n]){var r=l_[n];la(t[n],function(o,i){ii(r.assert(o),b2(e,n,i,o,r.expected))})}})}function b2(e,t,n,r,o){var i=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(r)+".",i}function ip(e){return new gr(e)}var gr=function e(t){var n=this;t===void 0&&(t={}),{}.NODE_ENV!=="production"&&(ii(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),ii(this instanceof e,"store must be called with the new operator."));var r=t.plugins;r===void 0&&(r=[]);var o=t.strict;o===void 0&&(o=!1);var i=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new fa(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var s=this,l=this,h=l.dispatch,f=l.commit;this.dispatch=function(E,C){return h.call(s,E,C)},this.commit=function(E,C,A){return f.call(s,E,C,A)},this.strict=o;var g=this._modules.root.state;_l(this,g,[],this._modules.root),ep(this,g),r.forEach(function(w){return w(n)})},op={state:{configurable:!0}};gr.prototype.install=function(t,n){t.provide(n||r2,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:{}.NODE_ENV!=="production"||!1;r&&p2(t,this)},op.state.get=function(){return this._state.data},op.state.set=function(e){({}).NODE_ENV!=="production"&&ii(!1,"use store.replaceState() to explicit replace store state.")},gr.prototype.commit=function(t,n,r){var o=this,i=wl(t,n,r),s=i.type,l=i.payload,h=i.options,f={type:s,payload:l},g=this._mutations[s];if(!g){({}).NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+s);return}this._withCommit(function(){g.forEach(function(E){E(l)})}
30),this._subscribers.slice().forEach(function(w){return w(f,o.state)}),{}.NODE_ENV!=="production"&&h&&h.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")},gr.prototype.dispatch=function(t,n){var r=this,o=wl(t,n),i=o.type,s=o.payload,l={type:i,payload:s},h=this._actions[i];if(!h){({}).NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+i);return}try{this._actionSubscribers.slice().filter(function(g){return g.before}).forEach(function(g){return g.before(l,r.state)})}catch(g){({}).NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(g))}var f=h.length>1?Promise.all(h.map(function(g){return g(s)})):h[0](s);return new Promise(function(g,w){f.then(function(E){try{r._actionSubscribers.filter(function(C){return C.after}).forEach(function(C){return C.after(l,r.state)})}catch(C){({}).NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(C))}g(E)},function(E){try{r._actionSubscribers.filter(function(C){return C.error}).forEach(function(C){return C.error(l,r.state,E)})}catch(C){({}).NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(C))}w(E)})})},gr.prototype.subscribe=function(t,n){return Zv(t,this._subscribers,n)},gr.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return Zv(r,this._actionSubscribers,n)},gr.prototype.watch=function(t,n,r){var o=this;return{}.NODE_ENV!=="production"&&ii(typeof t=="function","store.watch only accepts a function."),a.watch(function(){return t(o.state,o.getters)},n,Object.assign({},r))},gr.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})},gr.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),{}.NODE_ENV!=="production"&&(ii(Array.isArray(t),"module path must be a string or an Array."),ii(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,n),_l(this,this.state,t,this._modules.get(t),r.preserveState),ep(this,this.state)},gr.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),{}.NODE_ENV!=="production"&&ii(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var r=tp(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),Qv(this)},gr.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),{}.NODE_ENV!=="production"&&ii(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)},gr.prototype.hotUpdate=function(t){this._modules.update(t),Qv(this,!0)},gr.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n},Object.defineProperties(gr.prototype,op);const at=ip({state:{appLoaded:!1,pageType:"",selected_charity:"",text_search_charity:"",selected_event:"",res_text_search_event:"",selected_teampage:"",search_join_team:"",loginStatus:"login",data_params_pre:{beneficiaryId:"",eventId:"",teamId:""},login:"",userLogon:"",externalId:"",details_team:{teamName:"",teamTarget:"",router_name:"",createIndividualPage:!0},creatingPage:!1,activationId:null,userIsActivatingCreatedPage:!1,pageId:"",apiDomain:"",referrer:"",region:"au",regionId:"eedd16d2-38b3-459e-b2d4-5ba898524018",captchaPublicKey:"",registerUrl:"/account/register",alertMsg:"",accessToken:"",accountLink:!1,tokenErrorMessage:{message:"",time:new Date},shouldLinkAccount:!1,createType:"",isRegister:!1,isCreatingNewUser:!1,disclaimerText:"",auth:{provider:[{name:"",details:{aws_project_region:"",aws_cognito_identity_pool_id:"",aws_cognito_region:"",aws_user_pools_id:"",aws_user_pools_web_client_id:"",oauth:{}}}],facebook:{appId:"",scope:"",state:"",redirectUrl:""}}},mutations:{setAuthProvider(e,t){e.auth.provider=t},setAuthFacebook(e,t){e.auth.facebook=t},setAuthFacebookAppId(e,t){e.auth.facebook.appId=t},setAuthFacebookScope(e,t){e.auth.facebook.scope=t},setAuthFacebookState(e,t){e.auth.facebook.state=t},setAuthFacebookRedirectUrl(e,t){e.auth.facebook.redirectUrl=t},setDisclaimerText(e,t){e.disclaimerText=t}
30,appReadyForUserInput(e){e.appLoaded=!0},setCreateType(e,t){e.createType=t},change_Beneficiary(e,t){e.selected_charity=t},res_search_text_charity(e,t){e.text_search_charity=t},change_event(e,t){e.selected_event=t},res_text_search_event(e,t){e.res_text_search_event=t},change_jointeam_data(e,t){e.selected_teampage=t},res_text_search_jointeam(e,t){e.search_join_team=t},pre_BeneficiaryId(e,t){e.data_params_pre.beneficiaryId=t},pre_EventId(e,t){e.data_params_pre.eventId=t},pre_TeamId(e,t){e.data_params_pre.teamId=t},preUserLogin(e,t){e.userLogon=t},pre_ExternalId(e,t){e.externalId=t},pre_Login(e,t){e.login=t},teamNameChange(e,t){e.details_team.teamName=t},teamTargetChange(e,t){e.details_team.teamTarget=t},selected_details(e,t){e.details_team.router_name=t},createIndividualPageChange(e,t){e.details_team.createIndividualPage=t},setPageType(e,t){e.pageType=t},setIsRegister(e,t){e.isRegister=t},setIsCreatingNewUser(e,t){e.isCreatingNewUser=t},setApiDomain(e,t){e.apiDomain=t},setReferrer(e,t){e.referrer=t},setActivationId(e,t){t==""&&(t=null),e.userIsActivatingCreatedPage=!(t===null||t.length===0),e.activationId=t},setPageId(e,t){e.pageId=t},setRegion(e,t){e.region=t},setRegionId(e,t){e.regionId=t},setCaptchaKey(e,t){e.captchaPublicKey=t},setRegisterUrl(e,t){e.registerUrl=t},setFacebookScope(e,t){e.facebookScope=t},setFacebookAppId(e,t){e.facebookAppId=t},setRedirectUrl(e,t){e.redirectUrl=t},setLoginStatus(e,t){e.loginStatus=t},setAlertMsg(e,t){e.alertMsg=t},setAccessToken(e,t){e.accessToken=t,e.shouldLinkAccount=e.accountLink&&e.accessToken&&e.accessToken.length>0},setAccountLinkMode(e,t){e.accountLink=t,e.shouldLinkAccount=e.accountLink&&e.accessToken&&e.accessToken.length>0},setTokenErrorMessage(e,t){e.tokenErrorMessage=t},resetCreatingPageState(e){e.creatingPage=!1},creatingPage(e){e.alertMsg="",e.creatingPage=!0}}}),Jce="",Ft=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},E2={props:{show:{type:Boolean,default:!1}},computed:{isActive(){return this.show}}},S2=[a.createElementVNode("span",{class:"processing"},null,-1)];function C2(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([{active:i.isActive},"loader-container"])},S2,2)}const Iu=Ft(E2,[["render",C2]]);var Lr={installed:!1,p:Promise.resolve(),version:"2.1.0",loaded:{},install(e,t={}){if(!Lr.installed){var n=["unload"],r=n.concat(["src","type","async","integrity","text","crossorigin"]);e.component("script2",{props:r,render(o){return o("div",{style:"display:none"},this.$slots.default)},mounted(){var o=this.$el.parentElement;if(!this.src)Lr.p=Lr.p.then(()=>{var l=document.createElement("script"),h=this.$el.innerHTML;h=h.replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&amp;/gi,"&"),l.type="text/javascript",l.appendChild(document.createTextNode(h)),o.appendChild(l),this.$emit("loaded")});else{var i=da.omitBy(da.pick(this,r),da.isUndefined);i.parent=o;var s=()=>Lr.load(this.src,i).then(()=>this.$emit("loaded"),l=>this.$emit("error",l));da.isUndefined(this.async)||this.async==="false"?Lr.p=Lr.p.then(s):s()}this.$nextTick(()=>{this.$el.parentElement.removeChild(this.$el)})},destroyed(){this.unload&&(new Function(this.unload)(),delete Lr.loaded[this.src])}}),Lr.installed=!0}},load(e,t={parent:document.head}){return Lr.loaded[e]||(Lr.loaded[e]=new Promise((n,r)=>{var o=document.createElement("script");da.defaults2(o,da.omit(t,["unload","parent"]),{type:"text/javascript"}),o.async=!1,o.src=e,t.crossorigin&&(o.crossOrigin=t.crossorigin),o.onload=()=>n(e),o.onerror=()=>r(new Error(e)),t.parent.appendChild(o)})),Lr.loaded[e]}},da={isUndefined(e){return e===void 0},pick(e,t){var n={};return t.forEach(r=>{n[r]=e[r]}),n},omit(e,t){var n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n},omitBy(e,t){var n={};return Object.keys(e).forEach(r=>{t(e[r])||(n[r]=e[r])}),n},defaults2(e,...t){t.forEach(n=>{Object.keys(n).forEach(r=>{(da.isUndefined(e[r])||e[r]==="")&&(e[r]=n[r])})})}};const ha={name:"GfAnalyticsMixin",data(){return{scriptLoader:Lr}},methods:{initialize(e){var t=e[0];this.scriptLoader.load(`https://www.googletagmanager.com/gtag/js?i
30d=${t}`).then(()=>{this.analytics("js",new Date);for(var n=0;n<e.length;n++)this.analytics("config",e[n])})},analytics(...e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(...e)}}},Zce="",x2={components:{Loader:Iu},mixins:[ha],computed:{AuthenticationRouterTeamId:{get:function(){return at.state.data_params_pre.teamId==""}}},data(){return{store:at}},methods:{setPageType:function(e){var t=this.getCreateType(e);this.analytics({event:"create_page",createType:t,stepNumber:e=="joinTeam"?"1 of 3":"1 of 4",stepName:"select page type"}),this.store.commit("setCreateType",t),this.store.commit("setPageType",e)},getCreateType(e){var t="";switch(e){case"joinTeam":t="team_member";break;case"createTeam":t="team";break;default:t=e;break}return t}}},bl=e=>(a.pushScopeId("data-v-b14a50e5"),e=e(),a.popScopeId(),e),A2={class:"container"},T2={class:"row justify-content-md-center"},I2={class:"col-md-10"},k2=bl(()=>a.createElementVNode("div",{class:"col-md-12"},[a.createElementVNode("h3",{class:"pt-3 pb-3"}," How would you like to fundraise? ")],-1)),P2={class:"col-md-12 p-0"},N2=["onClick"],D2=[bl(()=>a.createElementVNode("div",{class:"card border-0 panel_box_gf gf-driver-button-hollow-no-border p-lg-3"},[a.createElementVNode("div",{class:"row"},[a.createElementVNode("div",{class:"col-5 col-lg-12 box_individual py-4 mx-0"}
30,[a.createElementVNode("div",{class:"gf_icon_team_db icon_individual"})]),a.createElementVNode("div",{class:"col-7 col-lg-12 align-self-center"},[a.createElementVNode("div",{class:"card-block"},[a.createElementVNode("p",{class:"card-text mobile-title-text"},[a.createTextVNode(" Create an "),a.createElementVNode("br"),a.createTextVNode("individual page ")])])])])],-1))],F2=["onClick"],R2=[bl(()=>a.createElementVNode("div",{class:"card border-0 panel_box_gf gf-driver-button-hollow-no-border p-lg-3"},[a.createElementVNode("div",{class:"row"},[a.createElementVNode("div",{class:"col-5 col-lg-12 box_team py-4 mx-0"},[a.createElementVNode("div",{class:"gf_icon_team_db icon_team"})]),a.createElementVNode("div",{class:"col-7 col-lg-12 align-self-center"},[a.createElementVNode("div",{class:"card-block"},[a.createElementVNode("p",{class:"card-text mobile-title-text"},[a.createTextVNode(" Create a "),a.createElementVNode("br"),a.createTextVNode("team page ")])])])])],-1))],B2=["onClick"],O2=[bl(()=>a.createElementVNode("div",{class:"card border-0 panel_box_gf gf-driver-button-hollow-no-border p-lg-3"},[a.createElementVNode("div",{class:"row"},[a.createElementVNode("div",{class:"col-5 col-lg-12 box_jointeam py-4 mx-0"},[a.createElementVNode("div",{class:"gf_icon_team_db icon_jointeam"})]),a.createElementVNode("div",{class:"col-7 col-lg-12 align-self-center"},[a.createElementVNode("div",{class:"card-block"},[a.createElementVNode("p",{class:"card-text mobile-title-text"},[a.createTextVNode(" join an "),a.createElementVNode("br"),a.createTextVNode("existing team ")])])])])],-1))];function U2(e,t,n,r,o,i){const s=a.resolveComponent("Loader"),l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",A2,[a.createElementVNode("div",T2,[a.createElementVNode("div",I2,[a.createElementVNode("div",{class:a.normalizeClass(["row justify-content-center text-center",{disabled:!o.store.state.appLoaded}])},[k2,o.store.state.appLoaded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,show:!0})),a.createElementVNode("div",P2,[a.withDirectives(a.createVNode(l,{to:{name:"charity_individual",params:{}},custom:""},{default:a.withCtx(({navigate:h})=>[a.createElementVNode("div",{onClick:h,class:a.normalizeClass(["square_dashboards col-lg-4 col mt-4",o.store.state.data_params_pre.teamId!=""?"":"none_params"])},[a.createElementVNode("div",{class:"row d-block mx-lg-3 mx-1 card_box",onClick:t[0]||(t[0]=f=>i.setPageType("individual"))},D2)],10,N2)]),_:1},512),[[a.vShow,i.AuthenticationRouterTeamId]]),a.withDirectives(a.createVNode(l,{to:{name:"charity_team",params:{}},custom:""},{default:a.withCtx(({navigate:h})=>[a.createElementVNode("div",{onClick:h,class:a.normalizeClass(["square_dashboards col-lg-4 col mt-4",o.store.state.data_params_pre.teamId!=""?"":"none_params"])},[a.createElementVNode("div",{class:"row d-block mx-lg-3 mx-1 card_box",onClick:t[1]||(t[1]=f=>i.setPageType("createTeam"))},R2)],10,F2)]),_:1},512),[[a.vShow,i.AuthenticationRouterTeamId]]),a.createVNode(l,{to:{name:"select_team",params:{}},custom:""},{default:a.withCtx(({navigate:h})=>[a.createElementVNode("div",{onClick:h,class:a.normalizeClass(["square_dashboards col-lg-4 col mt-4",o.store.state.data_params_pre.teamId!=""?"m-auto":"none_params"])},[a.createElementVNode("div",{class:"row d-block mx-lg-3 mx-1 card_box",onClick:t[2]||(t[2]=f=>i.setPageType("joinTeam"))},O2)],10,B2)]),_:1})])],2)])])])}const $2=Ft(x2,[["render",U2],["__scopeId","data-v-b14a50e5"]]),ap={name:"NavigationMixin",data(){return{store:at}},methods:{$_navigationMixin_navigateBack:function(){window.history.back()},$_navigationMixin_linkIsDisabled:function(e){return e.name==="Complete"&&(!this.charitySelected()||!this.eventSelected())},$_navigationMixin_itemSelected:function(e){return e.name.toLowerCase()==="cause"?this.charitySelected():e.name.toLowerCase()==="event"?this.eventSelected():e.name.toLowerCase()==="select team"?this.teamSelected():e.name.toLowerCase()==="complete"?this.charitySelected()&&this.eventSelected()||this.teamSelected():!1},eventSelected:function(){return this.store.state.selected_event!==""||this.store.state.pageType==="joinTeam"&&this.teamSelected()},charitySelected:function(){return this.store.state.selected_charity!==""||this.store.state.pageType==="joinTeam"&&this.teamSelected()},teamSelected:function(){return this.store.state.selected_teampage!==""}}},M2={mixins:[ap],data(){return{store:at,items_navigation:[{name:"Cause",faIconClass:"fas fa-ribbon",link_router:"charity_individual",general_router:"charity_team",class:"gf-ft",display:at.state.data_params_pre.beneficiaryId==""},{name:"Event",faIconClass:"far fa-calendar",link_router:"event_individual",general_router:"Event_team",class:"gf-ft",display:at.state.data_params_pre.eventId==""},{name:"Complete",faIconClass:"far fa-check-circle",link_router:"complete_individual",general_router:"",class:"gf-ft",display:!0}]}}},L2={class:"container"},V2={class:"row justify-content-md-center"},j2={class:"col-12 text-center px-0"},z2={class:"row"},H2={class:"col-12"},G2=[a.createElementVNode("i",{class:"fas fa-chevron-circle-left"},null,-1),a.createElementVNode("span",null," Back",-1)],W2={class:"col-12 col-md-8 col-lg-6 m-auto pb-2 png-wrap"},q2={class:"nav nav-fill row"},K2=[a.createElementVNode("p",{class:"pag-gap d-none d-sm-none d-md-block my-1"},"----------",-1)],Y2={class:"col-12 px-0 pt-1"};function J2(e,t,n,r,o,i){const s=a.resolveComponent("router-link"),l=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",L2,[a.createElementVNode("div",V2,[a.createElementVNode("div",j2,[a.createElementVNode("div",z2,[a.createElementVNode("div",H2,[a.createElementVNode("div",{class:"float-left back-btn driver-colour font-weight-bold",onClick:t[0]||(t[0]=h=>e.$_navigationMixin_navigateBack())},G2)]),a.createElementVNode("div",W2,[a.createElementVNode("ul",q2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.items_navigation,h=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h.name},[a.withDirectives(a.createElementVNode("li",{class:a.normalizeClass(["nav-item font-weight-bold nav-breadcrumbs","nav-item-"+h.name.toLowerCase(),h.class,h.link_router==e.$route.name?"active":"",e.$_navigationMixin_linkIsDisabled(h)?"disabled":"",e.$_navigationMixin_itemSelected(h)?"selected":""])},[a.createVNode(s,{class:"nav-link",to:{name:h.link_router,params:o.store.state.selected_charity.benef
30iciaryId&&o.store.state.selected_charity.Router_Name==h.link_router?{beneficiaryId:o.store.state.selected_charity.beneficiaryId}:{}}},{default:a.withCtx(()=>[a.createElementVNode("i",{class:a.normalizeClass(h.faIconClass)}," ",2),a.createTextVNode(a.toDisplayString(h.name),1)]),_:2},1032,["to"])],2),[[a.vShow,h.display]]),a.withDirectives(a.createElementVNode("li",null,K2,512),[[a.vShow,h.name!="Complete"&&h.display]])],64))),128))])])])]),a.createElementVNode("div",Y2,[a.createVNode(l,null,{default:a.withCtx(({Component:h})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h),null,{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms")]),_:2},1024))]),_:3})])])])}const X2=Ft(M2,[["render",J2]]);function d_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(n),!0).forEach(function(r){Pn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}function Z2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q2(e,t,n){return t&&h_(e.prototype,t),n&&h_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sp(e,t){return tT(e)||rT(e,t)||p_(e,t)||oT()}function ku(e){return eT(e)||nT(e)||p_(e)||iT()}function eT(e){if(Array.isArray(e))return up(e)}function tT(e){if(Array.isArray(e))return e}function nT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(h){i=!0,l=h}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function p_(e,t){if(e){if(typeof e=="string")return up(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return up(e,t)}}function up(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
31In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g_=function(){},cp={},m_={},y_=null,v_={mark:g_,measure:g_};try{typeof window<"u"&&(cp=window),typeof document<"u"&&(m_=document),typeof MutationObserver<"u"&&(y_=MutationObserver),typeof performance<"u"&&(v_=performance)}catch{}var aT=cp.navigator||{},__=aT.userAgent,w_=__===void 0?"":__,To=cp,cn=m_,b_=y_,Sl=v_;To.document;var Ki=!!cn.documentElement&&!!cn.head&&typeof cn.addEventListener=="function"&&typeof cn.createElement=="function",E_=~w_.indexOf("MSIE")||~w_.indexOf("Trident/"),Cl,xl,Al,Tl,Il,Yi="___FONT_AWESOME___",lp=16,S_="fa",C_="svg-inline--fa",pa="data-fa-i2svg",fp="data-fa-pseudo-element",sT="data-fa-pseudo-element-pending",dp="data-prefix",hp="data-icon",x_="fontawesome-i2svg",uT="async",cT=["HTML","HEAD","STYLE","SCRIPT"],A_=function(){try{return{}.NODE_ENV==="production"}catch{return!1}}(),ln="classic",_n="sharp",pp=[ln,_n];function Pu(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[ln]}})}var Nu=Pu((Cl={},Pn(Cl,ln,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),Pn(Cl,_n,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Cl)),Du=Pu((xl={},Pn(xl,ln,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Pn(xl,_n,{solid:"fass",regular:"fasr",light:"fasl"}),xl)),Fu=Pu((Al={},Pn(Al,ln,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Pn(Al,_n,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Al)),lT=Pu((Tl={},Pn(Tl,ln,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Pn(Tl,_n,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Tl)),fT=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,T_="fa-layers-text",dT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,hT=Pu((Il={}
32,Pn(Il,ln,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Pn(Il,_n,{900:"fass",400:"fasr",300:"fasl"}),Il)),I_=[1,2,3,4,5,6,7,8,9,10],pT=I_.concat([11,12,13,14,15,16,17,18,19,20]),gT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ga={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ru=new Set;Object.keys(Du[ln]).map(Ru.add.bind(Ru)),Object.keys(Du[_n]).map(Ru.add.bind(Ru));var mT=[].concat(pp,ku(Ru),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ga.GROUP,ga.SWAP_OPACITY,ga.PRIMARY,ga.SECONDARY]).concat(I_.map(function(e){return"".concat(e,"x")})).concat(pT.map(function(e){return"w-".concat(e)})),Bu=To.FontAwesomeConfig||{};function yT(e){var t=cn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function vT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(cn&&typeof cn.querySelector=="function"){var _T=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];_T.forEach(function(e){var t=sp(e,2),n=t[0],r=t[1],o=vT(yT(n));o!=null&&(Bu[r]=o)})}var k_={styleDefault:"solid",familyDefault:"classic",cssPrefix:S_,replacementClass:C_,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Bu.familyPrefix&&(Bu.cssPrefix=Bu.familyPrefix);var ns=Ke(Ke({},k_),Bu);ns.autoReplaceSvg||(ns.observeMutations=!1);var tt={};Object.keys(k_).forEach(function(e){Object.defineProperty(tt,e,{enumerable:!0,set:function(n){ns[e]=n,Ou.forEach(function(r){return r(tt)})},get:function(){return ns[e]}})}),Object.defineProperty(tt,"familyPrefix",{enumerable:!0,set:function(t){ns.cssPrefix=t,Ou.forEach(function(n){return n(tt)})},get:function(){return ns.cssPrefix}}),To.FontAwesomeConfig=tt;var Ou=[];function wT(e){return Ou.push(e),function(){Ou.splice(Ou.indexOf(e),1)}}var Io=lp,vi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function bT(e){if(!(!e||!Ki)){var t=cn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=cn.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return cn.head.insertBefore(t,r),e}}var ET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Uu(){for(var e=12,t="";e-- >0;)t+=ET[Math.random()*62|0];return t}function rs(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function gp(e){return e.classList?rs(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function P_(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ST(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(P_(e[n]),'" ')},"").trim()}function kl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function mp(e){return e.size!==vi.size||e.x!==vi.x||e.y!==vi.y||e.rotate!==vi.rotate||e.flipX||e.flipY}function CT(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),h={transform:"".concat(i," ").concat(s," ").concat(l)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:h,path:f}}function xT(e){var t=e.transform,n=e.width,r=n===void 0?lp:n,o=e.height,i=o===void 0?lp:o,s=e.startCentered,l=s===void 0?!1:s,h="";return l&&E_?h+="translate(".concat(t.x/Io-r/2,"em, ").concat(t.y/Io-i/2,"em) "):l?h+="translate(calc(-50% + ".concat(t.x/Io,"em), calc(-50% + ").concat(t.y/Io,"em)) "):h+="translate(".concat(t.x/Io,"em, ").concat(t.y/Io,"em) "),h+="scale(".concat(t.size/Io*(t.flipX?-1:1),", ").concat(t.size/Io*(t.flipY?-1:1),") "),h+="rotate(".concat(t.rotate,"deg) "),h}var AT=`:root, :host {
33  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
34  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
35  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
36  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
37  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
38  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
39  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
40  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
41  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
42}
43
44svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
45  overflow: visible;
46  box-sizing: content-box;
47}
48
49.svg-inline--fa {
50  display: var(--fa-display, inline-block);
51  height: 1em;
52  overflow: visible;
53  vertical-align: -0.125em;
54}
55.svg-inline--fa.fa-2xs {
56  vertical-align: 0.1em;
57}
58.svg-inline--fa.fa-xs {
59  vertical-align: 0em;
60}
61.svg-inline--fa.fa-sm {
62  vertical-align: -0.0714285705em;
63}
64.svg-inline--fa.fa-lg {
65  vertical-align: -0.2em;
66}
67.svg-inline--fa.fa-xl {
68  vertical-align: -0.25em;
69}
70.svg-inline--fa.fa-2xl {
71  vertical-align: -0.3125em;
72}
73.svg-inline--fa.fa-pull-left {
74  margin-right: var(--fa-pull-margin, 0.3em);
75  width: auto;
76}
77.svg-inline--fa.fa-pull-right {
78  margin-left: var(--fa-pull-margin, 0.3em);
79  width: auto;
80}
81.svg-inline--fa.fa-li {
82  width: var(--fa-li-width, 2em);
83  top: 0.25em;
84}
85.svg-inline--fa.fa-fw {
86  width: var(--fa-fw-width, 1.25em);
87}
88
89.fa-layers svg.svg-inline--fa {
90  bottom: 0;
91  left: 0;
92  margin: auto;
93  position: absolute;
94  right: 0;
95  top: 0;
96}
97
98.fa-layers-counter, .fa-layers-text {
99  display: inline-block;
100  position: absolute;
101  text-align: center;
102}
103
104.fa-layers {
105  display: inline-block;
106  height: 1em;
107  position: relative;
108  text-align: center;
109  vertical-align: -0.125em;
110  width: 1em;
111}
112.fa-layers svg.svg-inline--fa {
113  -webkit-transform-origin: center center;
114          transform-origin: center center;
115}
116
117.fa-layers-text {
118  left: 50%;
119  top: 50%;
120  -webkit-transform: translate(-50%, -50%);
121          transform: translate(-50%, -50%);
122  -webkit-transform-origin: center center;
123          transform-origin: center center;
124}
125
126.fa-layers-counter {
127  background-color: var(--fa-counter-background-color, #ff253a);
128  border-radius: var(--fa-counter-border-radius, 1em);
129  box-sizing: border-box;
130  color: var(--fa-inverse, #fff);
131  line-height: var(--fa-counter-line-height, 1);
132  max-width: var(--fa-counter-max-width, 5em);
133  min-width: var(--fa-counter-min-width, 1.5em);
134  overflow: hidden;
135  padding: var(--fa-counter-padding, 0.25em 0.5em);
136  right: var(--fa-right, 0);
137  text-overflow: ellipsis;
138  top: var(--fa-top, 0);
139  -webkit-transform: scale(var(--fa-counter-scale, 0.25));
140          transform: scale(var(--fa-counter-scale, 0.25));
141  -webkit-transform-origin: top right;
142          transform-origin: top right;
143}
144
145.fa-layers-bottom-right {
146  bottom: var(--fa-bottom, 0);
147  right: var(--fa-right, 0);
148  top: auto;
149  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
150          transform: scale(var(--fa-layers-scale, 0.25));
151  -webkit-transform-origin: bottom right;
152          transform-origin: bottom right;
153}
154
155.fa-layers-bottom-left {
156  bottom: var(--fa-bottom, 0);
157  left: var(--fa-left, 0);
158  right: auto;
159  top: auto;
160  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
161          transform: scale(var(--fa-layers-scale, 0.25));
162  -webkit-transform-origin: bottom left;
163          transform-origin: bottom left;
164}
165
166.fa-layers-top-right {
167  top: var(--fa-top, 0);
168  right: var(--fa-right, 0);
169  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
170          transform: scale(var(--fa-layers-scale, 0.25));
171  -webkit-transform-origin: top right;
172          transform-origin: top right;
173}
174
175.fa-layers-top-left {
176  left: var(--fa-left, 0);
177  right: auto;
178  top: var(--fa-top, 0);
179  -webkit-transform: scale(var(--fa-layers-scale, 0.25));
180          transform: scale(var(--fa-layers-scale, 0.25));
181  -webkit-transform-origin: top left;
182          transform-origin: top left;
183}
184
185.fa-1x {
186  font-size: 1em;
187}
188
189.fa-2x {
190  font-size: 2em;
191}
192
193.fa-3x {
194  font-size: 3em;
195}
196
197.fa-4x {
198  font-size: 4em;
199}
200
201.fa-5x {
202  font-size: 5em;
203}
204
205.fa-6x {
206  font-size: 6em;
207}
208
209.fa-7x {
210  font-size: 7em;
211}
212
213.fa-8x {
214  font-size: 8em;
215}
216
217.fa-9x {
218  font-size: 9em;
219}
220
221.fa-10x {
222  font-size: 10em;
223}
224
225.fa-2xs {
226  font-size: 0.625em;
227  line-height: 0.1em;
228  vertical-align: 0.225em;
229}
230
231.fa-xs {
232  font-size: 0.75em;
233  line-height: 0.0833333337em;
234  vertical-align: 0.125em;
235}
236
237.fa-sm {
238  font-size: 0.875em;
239  line-height: 0.0714285718em;
240  vertical-align: 0.0535714295em;
241}
242
243.fa-lg {
244  font-size: 1.25em;
245  line-height: 0.05em;
246  vertical-align: -0.075em;
247}
248
249.fa-xl {
250  font-size: 1.5em;
251  line-height: 0.0416666682em;
252  vertical-align: -0.125em;
253}
254
255.fa-2xl {
256  font-size: 2em;
257  line-height: 0.03125em;
258  vertical-align: -0.1875em;
259}
260
261.fa-fw {
262  text-align: center;
263  width: 1.25em;
264}
265
266.fa-ul {
267  list-style-type: none;
268  margin-left: var(--fa-li-margin, 2.5em);
269  padding-left: 0;
270}
271.fa-ul > li {
272  position: relative;
273}
274
275.fa-li {
276  left: calc(var(--fa-li-width, 2em) * -1);
277  position: absolute;
278  text-align: center;
279  width: var(--fa-li-width, 2em);
280  line-height: inherit;
281}
282
283.fa-border {
284  border-color: var(--fa-border-color, #eee);
285  border-radius: var(--fa-border-radius, 0.1em);
286  border-style: var(--fa-border-style, solid);
287  border-width: var(--fa-border-width, 0.08em);
288  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
289}
290
291.fa-pull-left {
292  float: left;
293  margin-right: var(--fa-pull-margin, 0.3em);
294}
295
296.fa-pull-right {
297  float: right;
298  margin-left: var(--fa-pull-margin, 0.3em);
299}
300
301.fa-beat {
302  -webkit-animation-name: fa-beat;
303          animation-name: fa-beat;
304  -webkit-animation-delay: var(--fa-animation-delay, 0s);
305          animation-delay: var(--fa-animation-delay, 0s);
306  -webkit-animation-direction: var(--fa-animation-direction, normal);
307          animation-direction: var(--fa-animation-direction, normal);
308  -webkit-animation-duration: var(--fa-animation-duration, 1s);
309          animation-duration: var(--fa-animation-duration, 1s);
310  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
311          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
312  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
313          animation-timing-function: var(--fa-animation-timing, ease-in-out);
314}
315
316.fa-bounce {
317  -webkit-animation-name: fa-bounce;
318          animation-name: fa-bounce;
319  -webkit-animation-delay: var(--fa-animation-delay, 0s);
320          animation-delay: var(--fa-animation-delay, 0s);
321  -webkit-animation-direction: var(--fa-animation-direction, normal);
322          animation-direction: var(--fa-animation-direction, normal);
323  -webkit-animation-duration: var(--fa-animation-duration, 1s);
324          animation-duration: var(--fa-animation-duration, 1s);
325  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
326          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
327  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
328          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
329}
330
331.fa-fade {
332  -webkit-animation-name: fa-fade;
333          animation-name: fa-fade;
334  -webkit-animation-delay: var(--fa-animation-delay, 0s);
335          animation-delay: var(--fa-animation-delay, 0s);
336  -webkit-animation-direction: var(--fa-animation-direction, normal);
337          animation-direction: var(--fa-animation-direction, normal);
338  -webkit-animation-duration: var(--fa-animation-duration, 1s);
339          animation-duration: var(--fa-animation-duration, 1s);
340  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
341          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
342  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
343          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
344}
345
346.fa-beat-fade {
347  -webkit-animation-name: fa-beat-fade;
348          animation-name: fa-beat-fade;
349  -webkit-animation-delay: var(--fa-animation-delay, 0s);
350          animation-delay: var(--fa-animation-delay, 0s);
351  -webkit-animation-direction: var(--fa-animation-direction, normal);
352          animation-direction: var(--fa-animation-direction, normal);
353  -webkit-animation-duration: var(--fa-animation-duration, 1s);
354          animation-duration: var(--fa-animation-duration, 1s);
355  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
356          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
357  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
358          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
359}
360
361.fa-flip {
362  -webkit-animation-name: fa-flip;
363          animation-name: fa-flip;
364  -webkit-animation-delay: var(--fa-animation-delay, 0s);
365          animation-delay: var(--fa-animation-delay, 0s);
366  -webkit-animation-direction: var(--fa-animation-direction, normal);
367          animation-direction: var(--fa-animation-direction, normal);
368  -webkit-animation-duration: var(--fa-animation-duration, 1s);
369          animation-duration: var(--fa-animation-duration, 1s);
370  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
371          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
372  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
373          animation-timing-function: var(--fa-animation-timing, ease-in-out);
374}
375
376.fa-shake {
377  -webkit-animation-name: fa-shake;
378          animation-name: fa-shake;
379  -webkit-animation-delay: var(--fa-animation-delay, 0s);
380          animation-delay: var(--fa-animation-delay, 0s);
381  -webkit-animation-direction: var(--fa-animation-direction, normal);
382          animation-direction: var(--fa-animation-direction, normal);
383  -webkit-animation-duration: var(--fa-animation-duration, 1s);
384          animation-duration: var(--fa-animation-duration, 1s);
385  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
386          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
387  -webkit-animation-timing-function: var(--fa-animation-timing, linear);
388          animation-timing-function: var(--fa-animation-timing, linear);
389}
390
391.fa-spin {
392  -webkit-animation-name: fa-spin;
393          animation-name: fa-spin;
394  -webkit-animation-delay: var(--fa-animation-delay, 0s);
395          animation-delay: var(--fa-animation-delay, 0s);
396  -webkit-animation-direction: var(--fa-animation-direction, normal);
397          animation-direction: var(--fa-animation-direction, normal);
398  -webkit-animation-duration: var(--fa-animation-duration, 2s);
399          animation-duration: var(--fa-animation-duration, 2s);
400  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
401          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
402  -webkit-animation-timing-function: var(--fa-animation-timing, linear);
403          animation-timing-function: var(--fa-animation-timing, linear);
404}
405
406.fa-spin-reverse {
407  --fa-animation-direction: reverse;
408}
409
410.fa-pulse,
411.fa-spin-pulse {
412  -webkit-animation-name: fa-spin;
413          animation-name: fa-spin;
414  -webkit-animation-direction: var(--fa-animation-direction, normal);
415          animation-direction: var(--fa-animation-direction, normal);
416  -webkit-animation-duration: var(--fa-animation-duration, 1s);
417          animation-duration: var(--fa-animation-duration, 1s);
418  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
419          animation-iteration-count: var(--fa-animation-iteration-count, infinite);
420  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
421          animation-timing-function: var(--fa-animation-timing, steps(8));
422}
423
424@media (prefers-reduced-motion: reduce) {
425  .fa-beat,
426.fa-bounce,
427.fa-fade,
428.fa-beat-fade,
429.fa-flip,
430.fa-pulse,
431.fa-shake,
432.fa-spin,
433.fa-spin-pulse {
434    -webkit-animation-delay: -1ms;
435            animation-delay: -1ms;
436    -webkit-animation-duration: 1ms;
437            animation-duration: 1ms;
438    -webkit-animation-iteration-count: 1;
439            animation-iteration-count: 1;
440    -webkit-transition-delay: 0s;
441            transition-delay: 0s;
442    -webkit-transition-duration: 0s;
443            transition-duration: 0s;
444  }
445}
446@-webkit-keyframes fa-beat {
447  0%, 90% {
448    -webkit-transform: scale(1);
449            transform: scale(1);
450  }
451  45% {
452    -webkit-transform: scale(var(--fa-beat-scale, 1.25));
453            transform: scale(var(--fa-beat-scale, 1.25));
454  }
455}
456@keyframes fa-beat {
457  0%, 90% {
458    -webkit-transform: scale(1);
459            transform: scale(1);
460  }
461  45% {
462    -webkit-transform: scale(var(--fa-beat-scale, 1.25));
463            transform: scale(var(--fa-beat-scale, 1.25));
464  }
465}
466@-webkit-keyframes fa-bounce {
467  0% {
468    -webkit-transform: scale(1, 1) translateY(0);
469            transform: scale(1, 1) translateY(0);
470  }
471  10% {
472    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
473            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
474  }
475  30% {
476    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
477            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
478  }
479  50% {
480    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
481            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
482  }
483  57% {
484    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
485            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
486  }
487  64% {
488    -webkit-transform: scale(1, 1) translateY(0);
489            transform: scale(1, 1) translateY(0);
490  }
491  100% {
492    -webkit-transform: scale(1, 1) translateY(0);
493            transform: scale(1, 1) translateY(0);
494  }
495}
496@keyframes fa-bounce {
497  0% {
498    -webkit-transform: scale(1, 1) translateY(0);
499            transform: scale(1, 1) translateY(0);
500  }
501  10% {
502    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
503            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
504  }
505  30% {
506    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
507            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
508  }
509  50% {
510    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
511            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
512  }
513  57% {
514    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
515            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
516  }
517  64% {
518    -webkit-transform: scale(1, 1) translateY(0);
519            transform: scale(1, 1) translateY(0);
520  }
521  100% {
522    -webkit-transform: scale(1, 1) translateY(0);
523            transform: scale(1, 1) translateY(0);
524  }
525}
526@-webkit-keyframes fa-fade {
527  50% {
528    opacity: var(--fa-fade-opacity, 0.4);
529  }
530}
531@keyframes fa-fade {
532  50% {
533    opacity: var(--fa-fade-opacity, 0.4);
534  }
535}
536@-webkit-keyframes fa-beat-fade {
537  0%, 100% {
538    opacity: var(--fa-beat-fade-opacity, 0.4);
539    -webkit-transform: scale(1);
540            transform: scale(1);
541  }
542  50% {
543    opacity: 1;
544    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
545            transform: scale(var(--fa-beat-fade-scale, 1.125));
546  }
547}
548@keyframes fa-beat-fade {
549  0%, 100% {
550    opacity: var(--fa-beat-fade-opacity, 0.4);
551    -webkit-transform: scale(1);
552            transform: scale(1);
553  }
554  50% {
555    opacity: 1;
556    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
557            transform: scale(var(--fa-beat-fade-scale, 1.125));
558  }
559}
560@-webkit-keyframes fa-flip {
561  50% {
562    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
563            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
564  }
565}
566@keyframes fa-flip {
567  50% {
568    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
569            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
570  }
571}
572@-webkit-keyframes fa-shake {
573  0% {
574    -webkit-transform: rotate(-15deg);
575            transform: rotate(-15deg);
576  }
577  4% {
578    -webkit-transform: rotate(15deg);
579            transform: rotate(15deg);
580  }
581  8%, 24% {
582    -webkit-transform: rotate(-18deg);
583            transform: rotate(-18deg);
584  }
585  12%, 28% {
586    -webkit-transform: rotate(18deg);
587            transform: rotate(18deg);
588  }
589  16% {
590    -webkit-transform: rotate(-22deg);
591            transform: rotate(-22deg);
592  }
593  20% {
594    -webkit-transform: rotate(22deg);
595            transform: rotate(22deg);
596  }
597  32% {
598    -webkit-transform: rotate(-12deg);
599            transform: rotate(-12deg);
600  }
601  36% {
602    -webkit-transform: rotate(12deg);
603            transform: rotate(12deg);
604  }
605  40%, 100% {
606    -webkit-transform: rotate(0deg);
607            transform: rotate(0deg);
608  }
609}
610@keyframes fa-shake {
611  0% {
612    -webkit-transform: rotate(-15deg);
613            transform: rotate(-15deg);
614  }
615  4% {
616    -webkit-transform: rotate(15deg);
617            transform: rotate(15deg);
618  }
619  8%, 24% {
620    -webkit-transform: rotate(-18deg);
621            transform: rotate(-18deg);
622  }
623  12%, 28% {
624    -webkit-transform: rotate(18deg);
625            transform: rotate(18deg);
626  }
627  16% {
628    -webkit-transform: rotate(-22deg);
629            transform: rotate(-22deg);
630  }
631  20% {
632    -webkit-transform: rotate(22deg);
633            transform: rotate(22deg);
634  }
635  32% {
636    -webkit-transform: rotate(-12deg);
637            transform: rotate(-12deg);
638  }
639  36% {
640    -webkit-transform: rotate(12deg);
641            transform: rotate(12deg);
642  }
643  40%, 100% {
644    -webkit-transform: rotate(0deg);
645            transform: rotate(0deg);
646  }
647}
648@-webkit-keyframes fa-spin {
649  0% {
650    -webkit-transform: rotate(0deg);
651            transform: rotate(0deg);
652  }
653  100% {
654    -webkit-transform: rotate(360deg);
655            transform: rotate(360deg);
656  }
657}
658@keyframes fa-spin {
659  0% {
660    -webkit-transform: rotate(0deg);
661            transform: rotate(0deg);
662  }
663  100% {
664    -webkit-transform: rotate(360deg);
665            transform: rotate(360deg);
666  }
667}
668.fa-rotate-90 {
669  -webkit-transform: rotate(90deg);
670          transform: rotate(90deg);
671}
672
673.fa-rotate-180 {
674  -webkit-transform: rotate(180deg);
675          transform: rotate(180deg);
676}
677
678.fa-rotate-270 {
679  -webkit-transform: rotate(270deg);
680          transform: rotate(270deg);
681}
682
683.fa-flip-horizontal {
684  -webkit-transform: scale(-1, 1);
685          transform: scale(-1, 1);
686}
687
688.fa-flip-vertical {
689  -webkit-transform: scale(1, -1);
690          transform: scale(1, -1);
691}
692
693.fa-flip-both,
694.fa-flip-horizontal.fa-flip-vertical {
695  -webkit-transform: scale(-1, -1);
696          transform: scale(-1, -1);
697}
698
699.fa-rotate-by {
700  -webkit-transform: rotate(var(--fa-rotate-angle, none));
701          transform: rotate(var(--fa-rotate-angle, none));
702}
703
704.fa-stack {
705  display: inline-block;
706  vertical-align: middle;
707  height: 2em;
708  position: relative;
709  width: 2.5em;
710}
711
712.fa-stack-1x,
713.fa-stack-2x {
714  bottom: 0;
715  left: 0;
716  margin: auto;
717  position: absolute;
718  right: 0;
719  top: 0;
720  z-index: var(--fa-stack-z-index, auto);
721}
722
723.svg-inline--fa.fa-stack-1x {
724  height: 1em;
725  width: 1.25em;
726}
727.svg-inline--fa.fa-stack-2x {
728  height: 2em;
729  width: 2.5em;
730}
731
732.fa-inverse {
733  color: var(--fa-inverse, #fff);
734}
735
736.sr-only,
737.fa-sr-only {
738  position: absolute;
739  width: 1px;
740  height: 1px;
741  padding: 0;
742  margin: -1px;
743  overflow: hidden;
744  clip: rect(0, 0, 0, 0);
745  white-space: nowrap;
746  border-width: 0;
747}
748
749.sr-only-focusable:not(:focus),
750.fa-sr-only-focusable:not(:focus) {
751  position: absolute;
752  width: 1px;
753  height: 1px;
754  padding: 0;
755  margin: -1px;
756  overflow: hidden;
757  clip: rect(0, 0, 0, 0);
758  white-space: nowrap;
759  border-width: 0;
760}
761
762.svg-inline--fa .fa-primary {
763  fill: var(--fa-primary-color, currentColor);
764  opacity: var(--fa-primary-opacity, 1);
765}
766
767.svg-inline--fa .fa-secondary {
768  fill: var(--fa-secondary-color, currentColor);
769  opacity: var(--fa-secondary-opacity, 0.4);
770}
771
772.svg-inline--fa.fa-swap-opacity .fa-primary {
773  opacity: var(--fa-secondary-opacity, 0.4);
774}
775
776.svg-inline--fa.fa-swap-opacity .fa-secondary {
777  opacity: var(--fa-primary-opacity, 1);
778}
779
780.svg-inline--fa mask .fa-primary,
781.svg-inline--fa mask .fa-secondary {
782  fill: black;
783}
784
785.fad.fa-inverse,
786.fa-duotone.fa-inverse {
787  color: var(--fa-inverse, #fff);
788}`;function N_(){var e=S_,t=C_,n=tt.cssPrefix,r=tt.replacementClass,o=AT;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(l,".".concat(r))}return o}var D_=!1;function yp(){tt.autoAddCss&&!D_&&(bT(N_()),D_=!0)}var TT={mixout:function(){return{dom:{css:N_,insertCss:yp}}},hooks:function(){return{beforeDOMElementCreation:function(){yp()},beforeI2svg:function(){yp()}}}},Ji=To||{};Ji[Yi]||(Ji[Yi]={}),Ji[Yi].styles||(Ji[Yi].styles={}),Ji[Yi].hooks||(Ji[Yi].hooks={}),Ji[Yi].shims||(Ji[Yi].shims=[]);var ai=Ji[Yi],F_=[],IT=function e(){cn.removeEventListener("DOMContentLoaded",e),Pl=1,F_.map(function(t){return t()})},Pl=!1;Ki&&(Pl=(cn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(cn.readyState),Pl||cn.addEventListener("DOMContentLoaded",IT));function kT(e){Ki&&(Pl?setTimeout(e,0):F_.push(e))}function $u(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?P_(e):"<".concat(t," ").concat(ST(r),">").concat(i.map($u).join(""),"</").concat(t,">")}function R_(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var PT=function(t,n){return function(r,o,i,s){return t.call(n,r,o,i,s)}},vp=function(t,n,r,o){var i=Object.keys(t),s=i.length,l=o!==void 0?PT(n,o):n,h,f,g;for(r===void 0?(h=1,g=t[i[0]]):(h=0,g=r);h<s;h++)f=i[h],g=l(g,t[f],f,t);return g};function NT(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function _p(e){var t=NT(e);return t.length===1?t[0].toString(16):null}function DT(e,t){var n=e.length,r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function B_(e){return Object.keys(e).reduce(function(t,n){var r=e[n],o=!!r.icon;return o?t[r.iconName]=r.icon:t[n]=r,t},{})}function wp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,i=B_(t);typeof ai.hooks.addPack=="function"&&!o?ai.hooks.addPack(e,B_(t)):ai.styles[e]=Ke(Ke({},ai.styles[e]||{}),i),e==="fas"&&wp("fa",t)}var Nl,Dl,Fl,is=ai.styles,FT=ai.shims,RT=(Nl={},Pn(Nl,ln,Object.values(Fu[ln])),Pn(Nl,_n,Object.values(Fu[_n])),Nl),bp=null,O_={},U_={},$_={},M_={},L_={},BT=(Dl={}
788,Pn(Dl,ln,Object.keys(Nu[ln])),Pn(Dl,_n,Object.keys(Nu[_n])),Dl);function OT(e){return~mT.indexOf(e)}function UT(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!OT(o)?o:null}var V_=function(){var t=function(i){return vp(is,function(s,l,h){return s[h]=vp(l,i,{}),s},{})};O_=t(function(o,i,s){if(i[3]&&(o[i[3]]=s),i[2]){var l=i[2].filter(function(h){return typeof h=="number"});l.forEach(function(h){o[h.toString(16)]=s})}return o}),U_=t(function(o,i,s){if(o[s]=s,i[2]){var l=i[2].filter(function(h){return typeof h=="string"});l.forEach(function(h){o[h]=s})}return o}),L_=t(function(o,i,s){var l=i[2];return o[s]=s,l.forEach(function(h){o[h]=s}),o});var n="far"in is||tt.autoFetchSvg,r=vp(FT,function(o,i){var s=i[0],l=i[1],h=i[2];return l==="far"&&!n&&(l="fas"),typeof s=="string"&&(o.names[s]={prefix:l,iconName:h}),typeof s=="number"&&(o.unicodes[s.toString(16)]={prefix:l,iconName:h}),o},{names:{},unicodes:{}});$_=r.names,M_=r.unicodes,bp=Rl(tt.styleDefault,{family:tt.familyDefault})};wT(function(e){bp=Rl(e.styleDefault,{family:tt.familyDefault})}),V_();function Ep(e,t){return(O_[e]||{})[t]}function $T(e,t){return(U_[e]||{})[t]}function ma(e,t){return(L_[e]||{})[t]}function j_(e){return $_[e]||{prefix:null,iconName:null}}function MT(e){var t=M_[e],n=Ep("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ko(){return bp}var Sp=function(){return{prefix:null,iconName:null,rest:[]}};function Rl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?ln:n,o=Nu[r][e],i=Du[r][e]||Du[r][o],s=e in ai.styles?e:null;return i||s||null}var z_=(Fl={},Pn(Fl,ln,Object.keys(Fu[ln])),Pn(Fl,_n,Object.keys(Fu[_n])),Fl);function Bl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,o=r===void 0?!1:r,i=(t={},Pn(t,ln,"".concat(tt.cssPrefix,"-").concat(ln)),Pn(t,_n,"".concat(tt.cssPrefix,"-").concat(_n)),t),s=null,l=ln;(e.includes(i[ln])||e.some(function(f){return z_[ln].includes(f)}))&&(l=ln),(e.includes(i[_n])||e.some(function(f){return z_[_n].includes(f)}))&&(l=_n);var h=e.reduce(function(f,g){var w=UT(tt.cssPrefix,g);if(is[g]?(g=RT[l].includes(g)?lT[l][g]:g,s=g,f.prefix=g):BT[l].indexOf(g)>-1?(s=g,f.prefix=Rl(g,{family:l})):w?f.iconName=w:g!==tt.replacementClass&&g!==i[ln]&&g!==i[_n]&&f.rest.push(g),!o&&f.prefix&&f.iconName){var E=s==="fa"?j_(f.iconName):{},C=ma(f.prefix,f.iconName);E.prefix&&(s=null),f.iconName=E.iconName||C||f.iconName,f.prefix=E.prefix||f.prefix,f.prefix==="far"&&!is.far&&is.fas&&!tt.autoFetchSvg&&(f.prefix="fas")}return f},Sp());return(e.includes("fa-brands")||e.includes("fab"))&&(h.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(h.prefix="fad"),!h.prefix&&l===_n&&(is.fass||tt.autoFetchSvg)&&(h.prefix="fass",h.iconName=ma(h.prefix,h.iconName)||h.iconName),(h.prefix==="fa"||s==="fa")&&(h.prefix=ko()||"fas"),h}var LT=function(){function e(){Z2(this,e),this.definitions={}}return Q2(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var s=o.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(l){n.definitions[l]=Ke(Ke({},n.definitions[l]||{}),s[l]),wp(l,s[l]);var h=Fu[ln][l];h&&wp(h,s[l]),V_()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(i){var s=o[i],l=s.prefix,h=s.iconName,f=s.icon,g=f[2];n[l]||(n[l]={}),g.length>0&&g.forEach(function(w){typeof w=="string"&&(n[l][w]=f)}),n[l][h]=f}),n}}]),e}(),H_=[],os={},as={},VT=Object.keys(as);function jT(e,t){var n=t.mixoutsTo;return H_=e,os={},Object.keys(as).forEach(function(r){VT.indexOf(r)===-1&&delete as[r]}),H_.forEach(function(r){var o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(function(s){typeof o[s]=="function"&&(n[s]=o[s]),El(o[s])==="object"&&Object.keys(o[s]).forEach(function(l){n[s]||(n[s]={}),n[s][l]=o[s][l]})}),r.hooks){var i=r.hooks();
788Object.keys(i).forEach(function(s){os[s]||(os[s]=[]),os[s].push(i[s])})}r.provides&&r.provides(as)}),n}function Cp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=os[e]||[];return i.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function ya(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=os[e]||[];o.forEach(function(i){i.apply(null,n)})}function Xi(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return as[e]?as[e].apply(null,t):void 0}function xp(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||ko();if(t)return t=ma(n,t)||t,R_(G_.definitions,n,t)||R_(ai.styles,n,t)}var G_=new LT,zT=function(){tt.autoReplaceSvg=!1,tt.observeMutations=!1,ya("noAuto")},HT={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ki?(ya("beforeI2svg",t),Xi("pseudoElements2svg",t),Xi("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;tt.autoReplaceSvg===!1&&(tt.autoReplaceSvg=!0),tt.observeMutations=!0,kT(function(){WT({autoReplaceSvgRoot:n}),ya("watch",t)})}},GT={icon:function(t){if(t===null)return null;if(El(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ma(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Rl(t[0]);return{prefix:r,iconName:ma(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(tt.cssPrefix,"-"))>-1||t.match(fT))){var o=Bl(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||ko(),iconName:ma(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var i=ko();return{prefix:i,iconName:ma(i,t)||t}}}},kr={noAuto:zT,config:tt,dom:HT,parse:GT,library:G_,findIconDefinition:xp,toHtml:$u},WT=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?cn:n;(Object.keys(ai.styles).length>0||tt.autoFetchSvg)&&Ki&&tt.autoReplaceSvg&&kr.dom.i2svg({node:r})};function Ol(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return $u(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Ki){var r=cn.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function qT(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(mp(s)&&n.found&&!r.found){var l=n.width,h=n.height,f={x:l/h/2,y:.5};o.style=kl(Ke(Ke({},i),{},{"transform-origin":"".concat(f.x+s.x/16,"em ").concat(f.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function KT(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,s=i===!0?"".concat(t,"-").concat(tt.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ke(Ke({},o),{},{id:s}),children:r}]}]}function Ap(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,s=e.transform,l=e.symbol,h=e.title,f=e.maskId,g=e.titleId,w=e.extra,E=e.watchable,C=E===void 0?!1:E,A=r.found?r:n,k=A.width,U=A.height,N=o==="fak",R=[tt.replacementClass,i?"".concat(tt.cssPrefix,"-").concat(i):""].filter(function(ae){return w.classes.indexOf(ae)===-1}).filter(function(ae){return ae!==""||!!ae}).concat(w.classes).join(" "),L={children:[],attributes:Ke(Ke({},w.attributes),{},{"data-prefix":o,"data-icon":i,class:R,role:w.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(k," ").concat(U)})},z=N&&!~w.classes.indexOf("fa-fw")?{width:"".concat(k/U*16*.0625,"em")}:{};C&&(L.attributes[pa]=""),h&&(L.children.push({tag:"title",attributes:{id:L.attributes["aria-labelledby"]||"title-".concat(g||Uu())},children:[h]}),delete L.attributes.title);var W=Ke(Ke({},L),{},{prefix:o,iconName:i,main:n,mask:r,maskId:f,transform:s,symbol:l,styles:Ke(Ke({},z),w.styles)}),ee=r.found&&n.found?Xi("generateAbstractMask",W)||{children:[],attributes:{}}:Xi("generateAbstractIcon",W)||{children:[],attributes:{}},b=ee.children,fe=ee.attributes;return W.children=b,W.attributes=fe,l?KT(W):qT(W)}function W_(e){var t=e.content,n=e.width,r=e.height,o=e.transform,i=e.title,s=e.extra,l=e.watchable,h=l===void 0?!1:l,f=Ke(Ke(Ke({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});h&&(f[pa]="");var g=Ke({},s.styles);mp(o)&&(g.transform=xT({transform:o,startCentered:!0,width:n,height:r}),g["-webkit-transform"]=g.transform);var w=kl(g);w.length>0&&(f.style=w);var E=[];return E.push({tag:"span",attributes:f,children:[t]}),i&&E.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),E}function YT(e){var t=e.content,n=e.title,r=e.extra,o=Ke(Ke(Ke({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=kl(r.styles);i.length>0&&(o.style=i);var s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Tp=ai.styles;function Ip(e){var t=e[0],n=e[1],r=e.slice(4),o=sp(r,1),i=o[0],s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(tt.cssPrefix,"-").concat(ga.GROUP)},children:[{tag:"path",attributes:{class:"".concat(tt.cssPrefix,"-").concat(ga.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(tt.cssPrefix,"-").concat(ga.PRIMARY),fill:"currentColor",d:i[1]}}]}
788:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}var JT={found:!1,width:512,height:512};function XT(e,t){!A_&&!tt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function kp(e,t){var n=t;return t==="fa"&&tt.styleDefault!==null&&(t=ko()),new Promise(function(r,o){if(Xi("missingIconAbstract"),n==="fa"){var i=j_(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Tp[t]&&Tp[t][e]){var s=Tp[t][e];return r(Ip(s))}XT(e,t),r(Ke(Ke({},JT),{},{icon:tt.showMissingIcons&&e?Xi("missingIconAbstract")||{}:{}}))})}var q_=function(){},Pp=tt.measurePerformance&&Sl&&Sl.mark&&Sl.measure?Sl:{mark:q_,measure:q_},Mu='FA "6.4.2"',ZT=function(t){return Pp.mark("".concat(Mu," ").concat(t," begins")),function(){return K_(t)}},K_=function(t){Pp.mark("".concat(Mu," ").concat(t," ends")),Pp.measure("".concat(Mu," ").concat(t),"".concat(Mu," ").concat(t," begins"),"".concat(Mu," ").concat(t," ends"))},Np={begin:ZT,end:K_},Ul=function(){};function Y_(e){var t=e.getAttribute?e.getAttribute(pa):null;return typeof t=="string"}function QT(e){var t=e.getAttribute?e.getAttribute(dp):null,n=e.getAttribute?e.getAttribute(hp):null;return t&&n}function eI(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(tt.replacementClass)}function tI(){if(tt.autoReplaceSvg===!0)return $l.replace;var e=$l[tt.autoReplaceSvg];return e||$l.replace}function nI(e){return cn.createElementNS("http://www.w3.org/2000/svg",e)}function rI(e){return cn.createElement(e)}function J_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?nI:rI:n;if(typeof e=="string")return cn.createTextNode(e);var o=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){o.setAttribute(s,e.attributes[s])});var i=e.children||[];return i.forEach(function(s){o.appendChild(J_(s,{ceFn:r}))}),o}function iI(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var $l={replace:function(t){var n=t[0];
788if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(J_(o),n)}),n.getAttribute(pa)===null&&tt.keepOriginalSource){var r=cn.createComment(iI(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~gp(n).indexOf(tt.replacementClass))return $l.replace(t);var o=new RegExp("".concat(tt.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(l,h){return h===tt.replacementClass||h.match(o)?l.toSvg.push(h):l.toNode.push(h),l},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var s=r.map(function(l){return $u(l)}).join(`
789`);n.setAttribute(pa,""),n.innerHTML=s}};function X_(e){e()}function Z_(e,t){var n=typeof t=="function"?t:Ul;if(e.length===0)n();else{var r=X_;tt.mutateApproach===uT&&(r=To.requestAnimationFrame||X_),r(function(){var o=tI(),i=Np.begin("mutate");e.map(o),i(),n()})}}var Dp=!1;function Q_(){Dp=!0}function Fp(){Dp=!1}var Ml=null;function e1(e){if(b_&&tt.observeMutations){var t=e.treeCallback,n=t===void 0?Ul:t,r=e.nodeCallback,o=r===void 0?Ul:r,i=e.pseudoElementsCallback,s=i===void 0?Ul:i,l=e.observeMutationsRoot,h=l===void 0?cn:l;Ml=new b_(function(f){if(!Dp){var g=ko();rs(f).forEach(function(w){if(w.type==="childList"&&w.addedNodes.length>0&&!Y_(w.addedNodes[0])&&(tt.searchPseudoElements&&s(w.target),n(w.target)),w.type==="attributes"&&w.target.parentNode&&tt.searchPseudoElements&&s(w.target.parentNode),w.type==="attributes"&&Y_(w.target)&&~gT.indexOf(w.attributeName))if(w.attributeName==="class"&&QT(w.target)){var E=Bl(gp(w.target)),C=E.prefix,A=E.iconName;w.target.setAttribute(dp,C||g),A&&w.target.setAttribute(hp,A)}else eI(w.target)&&o(w.target)})}}),Ki&&Ml.observe(h,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function oI(){Ml&&Ml.disconnect()}function aI(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,o){var i=o.split(":"),s=i[0],l=i.slice(1);return s&&l.length>0&&(r[s]=l.join(":").trim()),r},{})),n}function sI(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",o=Bl(gp(e));return o.prefix||(o.prefix=ko()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=$T(o.prefix,e.innerText)||Ep(o.prefix,_p(e.innerText))),!o.iconName&&tt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function uI(e){var t=rs(e.attributes).reduce(function(o,i){return o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return tt.autoA11y&&(n?t["aria-labelledby"]="".concat(tt.replacementClass,"-title-").concat(r||Uu()):(t["aria-hidden"]="true",t.focusable="false")),t}function cI(){return{iconName:null,title:null,titleId:null,prefix:null,transform:vi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function t1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=sI(e),r=n.iconName,o=n.prefix,i=n.rest,s=uI(e),l=Cp("parseNodeAttributes",{},e),h=t.styleParser?aI(e):[];return Ke({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:vi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:h,attributes:s}},l)}var lI=ai.styles;function n1(e){var t=tt.autoReplaceSvg==="nest"?t1(e,{styleParser:!1}):t1(e);return~t.extra.classes.indexOf(T_)?Xi("generateLayersText",e,t):Xi("generateSvgReplacementMutation",e,t)}var Po=new Set;pp.map(function(e){Po.add("fa-".concat(e))}),Object.keys(Nu[ln]).map(Po.add.bind(Po)),Object.keys(Nu[_n]).map(Po.add.bind(Po)),Po=ku(Po);function r1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ki)return Promise.resolve();var n=cn.documentElement.classList,r=function(w){return n.add("".concat(x_,"-").concat(w))},o=function(w){return n.remove("".concat(x_,"-").concat(w))},i=tt.autoFetchSvg?Po:pp.map(function(g){return"fa-".concat(g)}).concat(Object.keys(lI));i.includes("fa")||i.push("fa");var s=[".".concat(T_,":not([").concat(pa,"])")].concat(i.map(function(g){return".".concat(g,":not([").concat(pa,"])")})).join(", ");
789if(s.length===0)return Promise.resolve();var l=[];try{l=rs(e.querySelectorAll(s))}catch{}if(l.length>0)r("pending"),o("complete");else return Promise.resolve();var h=Np.begin("onTree"),f=l.reduce(function(g,w){try{var E=n1(w);E&&g.push(E)}catch(C){A_||C.name==="MissingIcon"&&console.error(C)}return g},[]);return new Promise(function(g,w){Promise.all(f).then(function(E){Z_(E,function(){r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),h(),g()})}).catch(function(E){h(),w(E)})})}function fI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;n1(e).then(function(n){n&&Z_([n],t)})}function dI(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:xp(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:xp(o||{})),e(r,Ke(Ke({},n),{},{mask:o}))}}var hI=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,o=r===void 0?vi:r,i=n.symbol,s=i===void 0?!1:i,l=n.mask,h=l===void 0?null:l,f=n.maskId,g=f===void 0?null:f,w=n.title,E=w===void 0?null:w,C=n.titleId,A=C===void 0?null:C,k=n.classes,U=k===void 0?[]:k,N=n.attributes,R=N===void 0?{}:N,L=n.styles,z=L===void 0?{}:L;if(t){var W=t.prefix,ee=t.iconName,b=t.icon;return Ol(Ke({type:"icon"},t),function(){return ya("beforeDOMElementCreation",{iconDefinition:t,params:n}),tt.autoA11y&&(E?R["aria-labelledby"]="".concat(tt.replacementClass,"-title-").concat(A||Uu()):(R["aria-hidden"]="true",R.focusable="false")),Ap({icons:{main:Ip(b),mask:h?Ip(h.icon):{found:!1,width:null,height:null,icon:{}}},prefix:W,iconName:ee,transform:Ke(Ke({},vi),o),symbol:s,title:E,maskId:g,titleId:A,extra:{attributes:R,styles:z,classes:U}})})}},pI={mixout:function(){return{icon:dI(hI)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=r1,n.nodeCallback=fI,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,o=r===void 0?cn:r,i=n.callback,s=i===void 0?function(){}:i;return r1(o,s)},t.generateSvgReplacementMutation=function(n,r){var o=r.iconName,i=r.title,s=r.titleId,l=r.prefix,h=r.transform,f=r.symbol,g=r.mask,w=r.maskId,E=r.extra;return new Promise(function(C,A){Promise.all([kp(o,l),g.iconName?kp(g.iconName,g.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(k){var U=sp(k,2),N=U[0],R=U[1];C([n,Ap({icons:{main:N,mask:R},prefix:l,iconName:o,transform:h,symbol:f,maskId:w,title:i,titleId:s,extra:E,watchable:!0})])}).catch(A)})},t.generateAbstractIcon=function(n){var r=n.children,o=n.attributes,i=n.main,s=n.transform,l=n.styles,h=kl(l);h.length>0&&(o.style=h);var f;return mp(s)&&(f=Xi("generateAbstractTransformGrouping",{main:i,transform:s,containerWidth:i.width,iconWidth:i.width})),r.push(f||i.icon),{children:r,attributes:o}}}},gI={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.classes,i=o===void 0?[]:o;return Ol({type:"layer"},function(){ya("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(l){Array.isArray(l)?l.map(function(h){s=s.concat(h.abstract)}):s=s.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(tt.cssPrefix,"-layers")].concat(ku(i)).join(" ")},children:s}]})}}}},mI={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.title,i=o===void 0?null:o,s=r.classes,l=s===void 0?[]:s,h=r.attributes,f=h===void 0?{}:h,g=r.styles,w=g===void 0?{}:g;return Ol({type:"counter",content:n},function(){return ya("beforeDOMElementCreation",{content:n,params:r}),YT({content:n.toString(),title:i,extra:{attributes:f,styles:w,classes:["".concat(tt.cssPrefix,"-layers-counter")].concat(ku(l))}})})}}}},yI={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,i=o===void 0?vi:o,s=r.title,l=s===void 0?null:s,h=r.classes,f=h===void 0?[]:h,g=r.attributes,w=g===void 0?{}:g,E=r.styles,C=E===void 0?{}:E;return Ol({type:"text",content:n},function(){return ya("beforeDOMElementCreation",{content:n,params:r}),W_({content:n,transform:Ke(Ke({},vi),i),title:l,extra:{attributes:w,styles:C,classes:["".concat(tt.cssPrefix,"-layers-text")].concat(ku(f))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var o=r.title,i=r.transform,s=r.extra,l=null,h=null;if(E_){var f=parseInt(getComputedStyle(n).fontSize,10),g=n.getBoundingClientRect();l=g.width/f,h=g.height/f}
789return tt.autoA11y&&!o&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,W_({content:n.innerHTML,width:l,height:h,transform:i,title:o,extra:s,watchable:!0})])}}},vI=new RegExp('"',"ug"),i1=[1105920,1112319];function _I(e){var t=e.replace(vI,""),n=DT(t,0),r=n>=i1[0]&&n<=i1[1],o=t.length===2?t[0]===t[1]:!1;return{value:_p(o?t[0]:t),isSecondary:r||o}}function o1(e,t){var n="".concat(sT).concat(t.replace(":","-"));return new Promise(function(r,o){if(e.getAttribute(n)!==null)return r();var i=rs(e.children),s=i.filter(function(b){return b.getAttribute(fp)===t})[0],l=To.getComputedStyle(e,t),h=l.getPropertyValue("font-family").match(dT),f=l.getPropertyValue("font-weight"),g=l.getPropertyValue("content");if(s&&!h)return e.removeChild(s),r();if(h&&g!=="none"&&g!==""){var w=l.getPropertyValue("content"),E=~["Sharp"].indexOf(h[2])?_n:ln,C=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(h[2])?Du[E][h[2].toLowerCase()]:hT[E][f],A=_I(w),k=A.value,U=A.isSecondary,N=h[0].startsWith("FontAwesome"),R=Ep(C,k),L=R;if(N){var z=MT(k);z.iconName&&z.prefix&&(R=z.iconName,C=z.prefix)}if(R&&!U&&(!s||s.getAttribute(dp)!==C||s.getAttribute(hp)!==L)){e.setAttribute(n,L),s&&e.removeChild(s);var W=cI(),ee=W.extra;ee.attributes[fp]=t,kp(R,C).then(function(b){var fe=Ap(Ke(Ke({},W),{},{icons:{main:b,mask:Sp()},prefix:C,iconName:L,extra:ee,watchable:!0})),ae=cn.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(ae,e.firstChild):e.appendChild(ae),ae.outerHTML=fe.map(function(Ie){return $u(Ie)}).join(`
790`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function wI(e){return Promise.all([o1(e,"::before"),o1(e,"::after")])}function bI(e){return e.parentNode!==document.head&&!~cT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(fp)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function a1(e){if(Ki)return new Promise(function(t,n){var r=rs(e.querySelectorAll("*")).filter(bI).map(wI),o=Np.begin("searchPseudoElements");Q_(),Promise.all(r).then(function(){o(),Fp(),t()}).catch(function(){o(),Fp(),n()})})}var EI={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=a1,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,o=r===void 0?cn:r;tt.searchPseudoElements&&a1(o)}}},s1=!1,SI={mixout:function(){return{dom:{unwatch:function(){Q_(),s1=!0}}}},hooks:function(){return{bootstrap:function(){e1(Cp("mutationObserverCallbacks",{}))},noAuto:function(){oI()},watch:function(n){var r=n.observeMutationsRoot;s1?Fp():e1(Cp("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},u1=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,o){var i=o.toLowerCase().split("-"),s=i[0],l=i.slice(1).join("-");if(s&&l==="h")return r.flipX=!0,r;if(s&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(s){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},CI={mixout:function(){return{parse:{transform:function(n){return u1(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-transform");return o&&(n.transform=u1(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,o=n.transform,i=n.containerWidth,s=n.iconWidth,l={transform:"translate(".concat(i/2," 256)")},h="translate(".concat(o.x*32,", ").concat(o.y*32,") "),f="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),g="rotate(".concat(o.rotate," 0 0)"),w={transform:"".concat(h," ").concat(f," ").concat(g)},E={transform:"translate(".concat(s/2*-1," -256)")},C={outer:l,inner:w,path:E};return{tag:"g",attributes:Ke({},C.outer),children:[{tag:"g",attributes:Ke({},C.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Ke(Ke({},r.icon.attributes),C.path)}]}]}}}},Rp={x:0,y:0,width:"100%",height:"100%"};function c1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function xI(e){return e.tag==="g"?e.children:[e]}var AI={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-mask"),i=o?Bl(o.split(" ").map(function(s){return s.trim()})):Sp();return i.prefix||(i.prefix=ko()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,o=n.attributes,i=n.main,s=n.mask,l=n.maskId,h=n.transform,f=i.width,g=i.icon,w=s.width,E=s.icon,C=CT({transform:h,containerWidth:w,iconWidth:f}),A={tag:"rect",attributes:Ke(Ke({},Rp),{},{fill:"white"})},k=g.children?{children:g.children.map(c1)}:{},U={tag:"g",attributes:Ke({},C.inner),children:[c1(Ke({tag:g.tag,attributes:Ke(Ke({},g.attributes),C.path)},k))]},N={tag:"g",attributes:Ke({},C.outer),children:[U]},R="mask-".concat(l||Uu()),L="clip-".concat(l||Uu()),z={tag:"mask",attributes:Ke(Ke({},Rp),{},{id:R,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[A,N]},W={tag:"defs",children:[{tag:"clipPath",attributes:{id:L},children:xI(E)},z]};return r.push(W,{tag:"rect",attributes:Ke({fill:"currentColor","clip-path":"url(#".concat(L,")"),mask:"url(#".concat(R,")")},Rp)}),{children:r,attributes:o}}}},TI={provides:function(t){var n=!1;To.matchMedia&&(n=To.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],o={fill:"
790currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Ke(Ke({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=Ke(Ke({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Ke(Ke({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:Ke(Ke({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ke(Ke({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:Ke(Ke({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Ke(Ke({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Ke(Ke({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ke(Ke({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},II={hooks:function(){return{parseNodeAttributes:function(n,r){var o=r.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return n.symbol=i,n}}}},kI=[TT,pI,gI,mI,yI,EI,SI,CI,AI,TI,II];jT(kI,{mixoutsTo:kr}),kr.noAuto;var l1=kr.config,f1=kr.library;kr.dom;var Ll=kr.parse;kr.findIconDefinition,kr.toHtml;var PI=kr.icon;kr.layer;var NI=kr.text;kr.counter;var DI={prefix:"far",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},FI=DI,RI={prefix:"far",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"]},BI=RI;const OI={install(){f1.add(BI),f1.add(FI)}},UI={appender:{log:function(e){console.log(e.msg),e.additionalData!==void 0&&console.log(e.additionalData)}},debug:function(){if({}.NODE_ENV=="test")return!1;try{return localStorage&&localStorage.GfDebug==="true"}catch{return!1}},logInfo:function(e,t){this.debug()&&this.appender.log({msg:e,additionalData:t,timeStamp:new Date().toISOString()})},setAppender:function(e){this.appender=e}}
790,Bp={install:e=>{e.config.globalProperties.$gfLogger=UI}};var pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vl(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Op={exports:{}};(function(e,t){(function(n,r){r(t)})(pn,function(n){function r(C,A){return function(k){if(Array.isArray(k))return k}(C)||function(k,U){var N=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(N!=null){var R,L,z=[],W=!0,ee=!1;try{for(N=N.call(k);!(W=(R=N.next()).done)&&(z.push(R.value),!U||z.length!==U);W=!0);}catch(b){ee=!0,L=b}finally{try{W||N.return==null||N.return()}finally{if(ee)throw L}}return z}}(C,A)||function(k,U){if(k){if(typeof k=="string")return o(k,U);var N=Object.prototype.toString.call(k).slice(8,-1);if(N==="Object"&&k.constructor&&(N=k.constructor.name),N==="Map"||N==="Set")return Array.from(k);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return o(k,U)}}(C,A)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
791In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function o(C,A){(A==null||A>C.length)&&(A=C.length);for(var k=0,U=new Array(A);k<A;k++)U[k]=C[k];return U}function i(C,A){var k,U,N,R,L=null,z=typeof A=="number"?A:(k=r(String(A).split(/(ms|s)/i),2),U=k[0],N=k[1],R=N===void 0?"ms":N,Number(U)*{ms:1,s:1e3}[R]),W=function(){for(var ee=this,b=arguments.length,fe=new Array(b),ae=0;ae<b;ae++)fe[ae]=arguments[ae];var Ie=function(){L=null,C.apply(ee,fe)};clearTimeout(L),(L=setTimeout(Ie,z))||C.apply(this,fe)};return W.cancel=function(){clearTimeout(L),L=null},W}function s(C){return C.map(function(A){return A.toLowerCase()})}function l(C,A){var k,U=C?C["debounce-events"]:[];return U&&U.length>0?Array.isArray(U)?s(U):s(U.split(",")):s((k=A,Array.isArray(k)?k:k==null?[]:[k]))}function h(C){return C===""}function f(C,A){return C==="Enter"&&(!A.lock||A.unlock)}function g(C,A,k){return h(C)&&k.fireonempty&&(A==="Enter"||A===" ")}function w(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=C.lock,k=A!==void 0&&A,U=C.listenTo,N=U===void 0?"keyup":U,R=C.defaultTime,L=R===void 0?"300ms":R,z=C.fireOnEmpty,W=z!==void 0&&z,ee=C.cancelOnEmpty,b=ee!==void 0&&ee,fe=C.trim,ae=fe!==void 0&&fe;return{bind:function(Ie,xe,De){var ye=xe.value,je=xe.arg,rt=je===void 0?L:je,ot=xe.modifiers,Je=Object.assign({lock:k,trim:ae,fireonempty:W,cancelonempty:b},ot),dt=l(De.data.attrs,N),mt=i(function(ne){ye(ne.target.value,ne)},rt);function Ue(ne){var oe=Je.trim?ne.target.value.trim():ne.target.value;h(oe)&&Je.cancelonempty?mt.cancel():f(ne.key,Je)||g(oe,ne.key,Je)?(mt.cancel(),ye(ne.target.value,ne)):mt(ne)}dt.forEach(function(ne){Ie.addEventListener(ne,Ue)})}}}var E={install:function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.directive("debounce",w(A))}};n.debounce=i,n.default=E,n.vue3Debounce=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=C.lock,k=A!==void 0&&A,U=C.listenTo,N=U===void 0?"keyup":U,R=C.defaultTime,L=R===void 0?"300ms":R,z=C.fireOnEmpty,W=z!==void 0&&z,ee=C.cancelOnEmpty,b=ee!==void 0&&ee,fe=C.trim,ae=fe!==void 0&&fe;return{created:function(Ie,xe,De){var ye=xe.value,je=xe.arg,rt=je===void 0?L:je,ot=xe.modifiers,Je=Object.assign({lock:k,trim:ae,fireonempty:W,cancelonempty:b},ot),dt=l(De.props,N),mt=i(function(ne){ye(ne.target.value,ne)},rt);function Ue(ne){var oe=Je.trim?ne.target.value.trim():ne.target.value;h(oe)&&Je.cancelonempty?mt.cancel():f(ne.key,Je)||g(oe,ne.key,Je)?(mt.cancel(),ye(ne.target.value,ne)):mt(ne)}dt.forEach(function(ne){Ie.addEventListener(ne,Ue)})}}},Object.defineProperty(n,"__esModule",{value:!0})})}
vendor: 28,064 bytes, lines 791-795
791)(Op,Op.exports);var d1=Op.exports;const $I=Lu(d1);function h1(e,t){return function(){return e.apply(t,arguments)}}const{toString:MI}=Object.prototype,{getPrototypeOf:Up}=Object,jl=(e=>t=>{const n=MI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_i=e=>(e=e.toLowerCase(),t=>jl(t)===e),zl=e=>t=>typeof t===e,{isArray:ss}=Array,Vu=zl("undefined");function LI(e){return e!==null&&!Vu(e)&&e.constructor!==null&&!Vu(e.constructor)&&Vr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p1=_i("ArrayBuffer");function VI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&p1(e.buffer),t}const jI=zl("string"),Vr=zl("function"),g1=zl("number"),Hl=e=>e!==null&&typeof e=="object",zI=e=>e===!0||e===!1,Gl=e=>{if(jl(e)!=="object")return!1;const t=Up(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},HI=_i("Date"),GI=_i("File"),WI=_i("Blob"),qI=_i("FileList"),KI=e=>Hl(e)&&Vr(e.pipe),YI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vr(e.append)&&((t=jl(e))==="formdata"||t==="object"&&Vr(e.toString)&&e.toString()==="[object FormData]"))},JI=_i("URLSearchParams"),XI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ju(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ss(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(r=0;r<s;r++)l=i[r],t.call(null,e[l],l,e)}}function m1(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const y1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),v1=e=>!Vu(e)&&e!==y1;function $p(){const{caseless:e}=v1(this)&&this||{},t={},n=(r,o)=>{const i=e&&m1(t,o)||o;Gl(t[i])&&Gl(r)?t[i]=$p(t[i],r):Gl(r)?t[i]=$p({},r):ss(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ju(arguments[r],n);return t}const ZI=(e,t,n,{allOwnKeys:r}={})=>(ju(t,(o,i)=>{n&&Vr(o)?e[i]=h1(o,n):e[i]=o},{allOwnKeys:r}),e),QI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ek=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tk=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Up(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},rk=e=>{if(!e)return null;if(ss(e))return e;let t=e.length;if(!g1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ik=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Up(Uint8Array)),ok=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ak=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sk=_i("HTMLFormElement"),uk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),_1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ck=_i("RegExp"),w1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ju(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},lk=e=>{w1(e,(t,n)=>{if(Vr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Vr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fk=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ss(e)?r(e):r(String(e).split(t)),n},dk=()=>{},hk=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Mp="abcdefghijklmnopqrstuvwxyz",b1="0123456789",E1={DIGIT:b1,ALPHA:Mp,ALPHA_DIGIT:Mp+Mp.toUpperCase()+b1},pk=(e=16,t=E1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gk(e){return!!(e&&Vr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mk=e=>{const t=new Array(10),n=(r,o)=>{if(Hl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ss(r)?[]:{};return ju(r,(s,l)=>{const h=n(s,o+1);!Vu(h)&&(i[l]=h)}),t[o]=void 0,i}}return r};return n(e,0)},yk=_i("AsyncFunction"),Se={isArray:ss,isArrayBuffer:p1,isBuffer:LI,isFormData:YI,isArrayBufferView:VI,isString:jI,isNumber:g1,isBoolean:zI,isObject:Hl,isPlainObject:Gl,isUndefined:Vu,isDate:HI,isFile:GI,isBlob:WI,isRegExp:ck,isFunction:Vr,isStream:KI,isURLSearchParams:JI,isTypedArray:ik,isFileList:qI,forEach:ju,merge:$p,extend:ZI,trim:XI,stripBOM:QI,inherits:ek,toFlatObject:tk,kindOf:jl,kindOfTest:_i,endsWith:nk,toArray:rk,forEachEntry:ok,matchAll:ak,isHTMLForm:sk,hasOwnProperty:_1,hasOwnProp:_1,reduceDescriptors:w1,freezeMethods:lk,toObjectSet:fk,toCamelCase:uk,noop:dk,toFiniteNumber:hk,findKey:m1,global:y1,isContextDefined:v1,ALPHABET:E1,generateString:pk,isSpecCompliantForm:gk,toJSONObject:mk,isAsyncFn:yk,isThenable:e=>e&&(Hl(e)||Vr(e))&&Vr(e.then)&&Vr(e.catch)};function Vt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Se.inherits(Vt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Se.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const S1=Vt.prototype,C1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{C1[e]={value:e}}),Object.defineProperties(Vt,C1),Object.defineProperty(S1,"isAxiosError",{value:!0}),Vt.from=(e,t,n,r,o,i)=>{const s=Object.create(S1);return Se.toFlatObject(e,s,function(h){return h!==Error.prototype},l=>l!=="isAxiosError"),Vt.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const vk=null;function Lp(e){return Se.isPlainObject(e)||Se.isArray(e)}function x1(e){return Se.endsWith(e,"[]")?e.slice(0,-2):e}function A1(e,t,n){return e?e.concat(t).map(function(o,i){return o=x1(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function _k(e){return Se.isArray(e)&&!e.some(Lp)}const wk=Se.toFlatObject(Se,{},null,function(t){return/^is[A-Z]/.test(t)});function Wl(e,t,n){if(!Se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,U){return!Se.isUndefined(U[k])});const r=n.metaTokens,o=n.visitor||g,i=n.dots,s=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(o))throw new TypeError("visitor must be a function");function f(A){if(A===null)return"";if(Se.isDate(A))return A.toISOString();if(!h&&Se.isBlob(A))throw new Vt("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(A)||Se.isTypedArray(A)?h&&typeof Blob=="function"?new Blob([A]):Buffer.from(A):A}function g(A,k,U){let N=A;if(A&&!U&&typeof A=="object"){if(Se.endsWith(k,"{}"))k=r?k:k.slice(0,-2),A=JSON.stringify(A);else if(Se.isArray(A)&&_k(A)||(Se.isFileList(A)||Se.endsWith(k,"[]"))&&(N=Se.toArray(A)))return k=x1(k),N.forEach(function(L,z){!(Se.isUndefined(L)||L===null)&&t.append(s===!0?A1([k],z,i):s===null?k:k+"[]",f(L))}),!1}return Lp(A)?!0:(t.append(A1(U,k,i),f(A)),!1)}const w=[],E=Object.assign(wk,{defaultVisitor:g,convertValue:f,isVisitable:Lp});function C(A,k){if(!Se.isUndefined(A)){if(w.indexOf(A)!==-1)throw Error("Circular reference detected in "+k.join("."));w.push(A),Se.forEach(A,function(N,R){(!(Se.isUndefined(N)||N===null)&&o.call(t,N,Se.isString(R)?R.trim():R,k,E))===!0&&C(N,k?k.concat(R):[R])}),w.pop()}}if(!Se.isObject(e))throw new TypeError("data must be an object");return C(e),t}function T1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vp(e,t){this._pairs=[],e&&Wl(e,this,t)}const I1=Vp.prototype;I1.append=function(t,n){this._pairs.push([t,n])},I1.toString=function(t){const n=t?function(r){return t.call(this,r,T1)}:T1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function k1(e,t,n){if(!t)return e;const r=n&&n.encode||bk,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Se.isURLSearchParams(t)?t.toString():new Vp(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ek{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Se.forEach(this.handlers,function(r){r!==null&&t(r)})}}const P1=Ek,N1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sk=typeof URLSearchParams<"u"?URLSearchParams:Vp,Ck=typeof FormData<"u"?FormData:null,xk=typeof Blob<"u"?Blob:null,Ak=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Tk=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),wi={isBrowser:!0,classes:{URLSearchParams:Sk,FormData:Ck,Blob:xk},isStandardBrowserEnv:Ak,isStandardBrowserWebWorkerEnv:Tk,protocols:["http","https","file","blob","url","data"]};function Ik(e,t){return Wl(e,new wi.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return wi.isNode&&Se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function kk(e){return Se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Pk(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function D1(e){function t(n,r,o,i){let s=n[i++];const l=Number.isFinite(+s),h=i>=n.length;return s=!s&&Se.isArray(o)?o.length:s,h?(Se.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Se.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&Se.isArray(o[s])&&(o[s]=Pk(o[s])),!l)}if(Se.isFormData(e)&&Se.isFunction(e.entries)){const n={};return Se.forEachEntry(e,(r,o)=>{t(kk(r),o,n,0)}),n}return null}function Nk(e,t,n){if(Se.isString(e))try{return(t||JSON.parse)(e),Se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const jp={transitional:N1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Se.isObject(t);if(i&&Se.isHTMLForm(t)&&(t=new FormData(t)),Se.isFormData(t))return o&&o?JSON.stringify(D1(t)):t;if(Se.isArrayBuffer(t)||Se.isBuffer(t)||Se.isStream(t)||Se.isFile(t)||Se.isBlob(t))return t;if(Se.isArrayBufferView(t))return t.buffer;if(Se.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ik(t,this.formSerializer).toString();if((l=Se.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Wl(l?{"files[]":t}:t,h&&new h,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Nk(t)):t}],transformResponse:[function(t){const n=this.transitional||jp.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Se.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Vt.from(l,Vt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wi.classes.FormData,Blob:wi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],e=>{jp.headers[e]={}});const zp=jp,Dk=Se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fk=e=>{const t={};let n,r,o;return e&&e.split(`
792`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Dk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},F1=Symbol("internals");function zu(e){return e&&String(e).trim().toLowerCase()}function ql(e){return e===!1||e==null?e:Se.isArray(e)?e.map(ql):String(e)}function Rk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Bk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hp(e,t,n,r,o){if(Se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function Ok(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Uk(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Kl{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,h,f){const g=zu(h);if(!g)throw new Error("header name must be a non-empty string");const w=Se.findKey(o,g);(!w||o[w]===void 0||f===!0||f===void 0&&o[w]!==!1)&&(o[w||h]=ql(l))}const s=(l,h)=>Se.forEach(l,(f,g)=>i(f,g,h));return Se.isPlainObject(t)||t instanceof this.constructor?s(t,n):Se.isString(t)&&(t=t.trim())&&!Bk(t)?s(Fk(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=zu(t),t){const r=Se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Rk(o);if(Se.isFunction(n))return n.call(this,o,r);if(Se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zu(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Hp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=zu(s),s){const l=Se.findKey(r,s);l&&(!n||Hp(r,r[l],l,n))&&(delete r[l],o=!0)}}return Se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Hp(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Se.forEach(this,(o,i)=>{const s=Se.findKey(r,i);if(s){n[s]=ql(o),delete n[i];return}const l=t?Ok(i):String(i).trim();l!==i&&delete n[i],n[l]=ql(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
793`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[F1]=this[F1]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=zu(s);r[l]||(Uk(o,s),r[l]=!0)}return Se.isArray(t)?t.forEach(i):i(t),this}}Kl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Se.reduceDescriptors(Kl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Se.freezeMethods(Kl);const Zi=Kl;function Gp(e,t){const n=this||zp,r=t||n,o=Zi.from(r.headers);let i=r.data;return Se.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function R1(e){return!!(e&&e.__CANCEL__)}function Hu(e,t,n){Vt.call(this,e??"canceled",Vt.ERR_CANCELED,t,n),this.name="CanceledError"}Se.inherits(Hu,Vt,{__CANCEL__:!0});function $k(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Vt("Request failed with status code "+n.status,[Vt.ERR_BAD_REQUEST,Vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Mk=wi.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,l){const h=[];h.push(n+"="+encodeURIComponent(r)),Se.isNumber(o)&&h.push("expires="+new Date(o).toGMTString()),Se.isString(i)&&h.push("path="+i),Se.isString(s)&&h.push("domain="+s),l===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Lk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vk(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function B1(e,t){return e&&!Lk(t)?Vk(e,t):t}const jk=wi.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=Se.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function zk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(h){const f=Date.now(),g=r[i];s||(s=f),n[o]=h,r[o]=f;let w=i,E=0;for(;w!==o;)E+=n[w++],w=w%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s<t)return;const C=g&&f-g;return C?Math.round(E*1e3/C):void 0}}function O1(e,t){let n=0;const r=Hk(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,h=r(l),f=i<=s;n=i;const g={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:h||void 0,estimated:h&&s&&f?(s-i)/h:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const Wp={http:vk,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let o=e.data;const i=Zi.from(e.headers).normalize(),s=e.responseType;let l;function h(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;Se.isFormData(o)&&(wi.isStandardBrowserEnv||wi.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?Se.isString(f=i.getContentType())&&i.setContentType(f.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let g=new XMLHttpRequest;if(e.auth){const A=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(A+":"+k))}const w=B1(e.baseURL,e.url);g.open(e.method.toUpperCase(),k1(w,e.params,e.paramsSerializer),!0),g.timeout=e.timeout;function E(){if(!g)return;const A=Zi.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),U={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:A,config:e,request:g};$k(function(R){n(R),h()},function(R){r(R),h()},U),g=null}if("onloadend"in g?g.onloadend=E:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(E)},g.onabort=function(){g&&(r(new Vt("Request aborted",Vt.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new Vt("Network Error",Vt.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const U=e.transitional||N1;e.timeoutErrorMessage&&(k=e.timeoutErrorMessage),r(new Vt(k,U.clarifyTimeoutError?Vt.ETIMEDOUT:Vt.ECONNABORTED,e,g)),g=null},wi.isStandardBrowserEnv){const A=(e.withCredentials||jk(w))&&e.xsrfCookieName&&Mk.read(e.xsrfCookieName);A&&i.set(e.xsrfHeaderName,A)}o===void 0&&i.setContentType(null),"setRequestHeader"in g&&Se.forEach(i.toJSON(),function(k,U){g.setRequestHeader(U,k)}),Se.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),s&&s!=="json"&&(g.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&g.addEventListener("progress",O1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",O1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=A=>{g&&(r(!A||A.type?new Hu(null,e,g):A),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const C=zk(w);if(C&&wi.protocols.indexOf(C)===-1){r(new Vt("Unsupported protocol "+C+":",Vt.ERR_BAD_REQUEST,e));return}g.send(o||null)})}};Se.forEach(Wp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const U1=e=>`- ${e}`,Gk=e=>Se.isFunction(e)||e===null||e===!1,$1={getAdapter:e=>{e=Se.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!Gk(n)&&(r=Wp[(s=String(n)).toLowerCase()],r===void 0))throw new Vt(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,h])=>`adapter ${l} `+(h===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
794`+i.map(U1).join(`
795`):" "+U1(i[0]):"as no adapter specified";throw new Vt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Wp};function qp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hu(null,e)}function M1(e){return qp(e),e.headers=Zi.from(e.headers),e.data=Gp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$1.getAdapter(e.adapter||zp.adapter)(e).then(function(r){return qp(e),r.data=Gp.call(e,e.transformResponse,r),r.headers=Zi.from(r.headers),r},function(r){return R1(r)||(qp(e),r&&r.response&&(r.response.data=Gp.call(e,e.transformResponse,r.response),r.response.headers=Zi.from(r.response.headers))),Promise.reject(r)})}const L1=e=>e instanceof Zi?e.toJSON():e;function us(e,t){t=t||{};const n={};function r(f,g,w){return Se.isPlainObject(f)&&Se.isPlainObject(g)?Se.merge.call({caseless:w},f,g):Se.isPlainObject(g)?Se.merge({},g):Se.isArray(g)?g.slice():g}function o(f,g,w){if(Se.isUndefined(g)){if(!Se.isUndefined(f))return r(void 0,f,w)}else return r(f,g,w)}function i(f,g){if(!Se.isUndefined(g))return r(void 0,g)}function s(f,g){if(Se.isUndefined(g)){if(!Se.isUndefined(f))return r(void 0,f)}else return r(void 0,g)}function l(f,g,w){if(w in t)return r(f,g);if(w in e)return r(void 0,f)}const h={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,g)=>o(L1(f),L1(g),!0)};return Se.forEach(Object.keys(Object.assign({},e,t)),function(g){const w=h[g]||o,E=w(e[g],t[g],g);Se.isUndefined(E)&&w!==l||(n[g]=E)}),n}const V1="1.5.1",Kp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const j1={};Kp.transitional=function(t,n,r){function o(i,s){return"[Axios v"+V1+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new Vt(o(s," has been removed"+(n?" in "+n:"")),Vt.ERR_DEPRECATED);return n&&!j1[s]&&(j1[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Wk(e,t,n){if(typeof e!="object")throw new Vt("options must be an object",Vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],h=l===void 0||s(l,i,e);if(h!==!0)throw new Vt("option "+i+" must be "+h,Vt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Vt("Unknown option "+i,Vt.ERR_BAD_OPTION)}}const Yp={assertOptions:Wk,validators:Kp},No=Yp.validators;class Yl{constructor(t){this.defaults=t,this.interceptors={request:new P1,response:new P1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=us(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Yp.assertOptions(r,{silentJSONParsing:No.transitional(No.boolean),forcedJSONParsing:No.transitional(No.boolean),clarifyTimeoutError:No.transitional(No.boolean)},!1),o!=null&&(Se.isFunction(o)?n.paramsSerializer={serialize:o}:Yp.assertOptions(o,{encode:No.function,serialize:No.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&Se.merge(i.common,i[n.method]);i&&Se.forEach(["delete","get","head","post","put","patch","common"],A=>{delete i[A]}),n.headers=Zi.concat(s,i);const l=[];let h=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(h=h&&k.synchronous,l.unshift(k.fulfilled,k.rejected))});const f=[];this.interceptors.response.forEach(function(k){f.push(k.fulfilled,k.rejected)});let g,w=0,E;if(!h){const A=[M1.bind(this),void 0];for(A.unshift.apply(A,l),A.push.apply(A,f),E=A.length,g=Promise.resolve(n);w<E;)g=g.then(A[w++],A[w++]);return g}E=l.length;let C=n;for(w=0;w<E;){const A=l[w++],k=l[w++];try{C=A(C)}catch(U){k.call(this,U);break}}try{g=M1.call(this,C)}catch(A){return Promise.reject(A)}for(w=0,E=f.length;w<E;)g=g.then(f[w++],f[w++]);return g}getUri(t){t=us(this.defaults,t);const n=B1(t.baseURL,t.url);return k1(n,t.params,t.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(t){Yl.prototype[t]=function(n,r){return this.request(us(r||{},{method:t,url:n,data:(r||{}).data}))}}),Se.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,l){return this.request(us(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Yl.prototype[t]=n(),Yl.prototype[t+"Form"]=n(!0)});const Jl=Yl;class Jp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new Hu(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Jp(function(o){t=o}),cancel:t}}}const qk=Jp;function Kk(e){return function(n){return e.apply(null,n)}}function Yk(e){return Se.isObject(e)&&e.isAxiosError===!0}const Xp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
795alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xp).forEach(([e,t])=>{Xp[t]=e});const Jk=Xp;function z1(e){const t=new Jl(e),n=h1(Jl.prototype.request,t);return Se.extend(n,Jl.prototype,t,{allOwnKeys:!0}),Se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return z1(us(e,o))},n}const In=z1(zp);In.Axios=Jl,In.CanceledError=Hu,In.CancelToken=qk,In.isCancel=R1,In.VERSION=V1,In.toFormData=Wl,In.AxiosError=Vt,In.Cancel=In.CanceledError,In.all=function(t){return Promise.all(t)},In.spread=Kk,In.isAxiosError=Yk,In.mergeConfig=us,In.AxiosHeaders=Zi,In.formToJSON=e=>D1(Se.isHTMLForm(e)?new FormData(e):e),In.getAdapter=$1.getAdapter,In.HttpStatusCode=Jk,In.default=In;const kn=In,Xk={install(e,t){const n=t.apiDomain;e.config.globalProperties.$beneficiaryService={async searchWithParams(r){return r&&(r.region=t.region),await kn.get(n+"/v1/beneficiaries/search",{params:r})},async searchByEvent(r,o,i=!1){var s={eventcampaignid:r,includeinactivebeneficiaries:i};return o&&o.length>0&&(s.tags=o),await this.searchWithParams(s)},async getBeneficiaryById(r){return await this.searchWithParams({beneficiaryid:r})},async getbeneficiaryForTiers(r,o){return r.pagesize=o,r.pageindex=1,await this.searchWithParams(r)}}}},Zk={install(e,t){var n=(t==null?void 0:t.apiDomain)||"",r=(t==null?void 0:t.region)||"";e.config.globalProperties.$eventsService={async searchWithParams(o){return o&&(o.region=r),await kn.get(n+"/v1/events/search",{params:o})},async getEventById(o){return await this.searchWithParams({eventcampaignid:o})}}}},Do=ip({state:{props:null,instance:null},mutations:{setProps(e,t){e.props=t},setInstance(e,t){e.instance=t}}}),Qk={install(e){a.getCurrentInstance().appContext.app.use(Bp),a.getCurrentInstance().appContext.app.use(Xk,{apiDomain:(e==null?void 0:e.apiDomain)||""}),a.getCurrentInstance().appContext.app.use(Zk,{apiDomain:(e==null?void 0:e.apiDomain)||"",region:(e==null?void 0:e.region)||""}),a.getCurrentInstance().appContext.app.use($I),a.getCurrentInstance().appContext.app.use(Do)}};var Xl={exports:{}};/**
796 * @license
797 * Lodash <https://lodash.com/>
798 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
799 * Released under MIT license <https://lodash.com/license>
800 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
801 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
802 */Xl.exports,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",f=500,g="__lodash_placeholder__",w=1,E=2,C=4,A=1,k=2,U=1,N=2,R=4,L=8,z=16,W=32,ee=64,b=128,fe=256,ae=512,Ie=30,xe="...",De=800,ye=16,je=1,rt=2,ot=3,Je=1/0,dt=9007199254740991,mt=17976931348623157e292,Ue=0/0,ne=4294967295,oe=ne-1,Pe=ne>>>1,Oe=[["ary",b],["bind",U],["bindKey",N],["curry",L],["curryRight",z],["flip",ae],["partial",W],["partialRight",ee],["rearg",fe]],We="[object Arguments]",Qe="[object Array]",se="[object AsyncFunction]",be="[object Boolean]",Ae="[object Date]",Ne="[object DOMException]",Me="[object Error]",Ye="[object Function]",pe="[object GeneratorFunction]",Le="[object Map]",st="[object Number]",Bt="[object Null]",et="[object Object]",I="[object Promise]",m="[object Proxy]",y="[object RegExp]",P="[object Set]",$="[object String]",K="[object Symbol]",J="[object Undef
802ined]",me="[object WeakMap]",Be="[object WeakSet]",Ze="[object ArrayBuffer]",ie="[object DataView]",de="[object Float32Array]",$e="[object Float64Array]",ut="[object Int8Array]",lt="[object Int16Array]",gt="[object Int32Array]",qt="[object Uint8Array]",Gn="[object Uint8ClampedArray]",Ri="[object Uint16Array]",hn="[object Uint32Array]",Cn=/\b__p \+= '';/g,tn=/\b(__p \+=) '' \+/g,Bc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yr=/&(?:amp|lt|gt|quot|#39);/g,Bi=/[&<>"']/g,Ua=RegExp(Yr.source),tu=RegExp(Bi.source),wr=/<%-([\s\S]+?)%>/g,er=/<%([\s\S]+?)%>/g,nu=/<%=([\s\S]+?)%>/g,ty=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Od=/^\w*$/,Ud=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oi=/[\\^$.*+?()[\]{}|]/g,Jo=RegExp(Oi.source),$a=/^\s+/,ru=/\s/,ny=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ry=/\{\n\/\* \[wrapped with (.+)\] \*/,iy=/,? & /,$d=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oy=/[()=,{}\[\]\/\s]/,ay=/\\(\\)?/g,Md=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ld=/\w*$/,Xo=/^[-+]0x[0-9a-f]+$/i,Vd=/^0b[01]+$/i,Oc=/^\[object .+?Constructor\]$/,Uc=/^0o[0-7]+$/i,iu=/^(?:0|[1-9]\d*)$/,jd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,126 bytes, line 802
8027f]/g,ou=/($^)/,Ma=/['\n\r\u2028\u2029\\]/g,La="\\ud800-\\udfff",zd="\\u0300-\\u036f",Hd="\\ufe20-\\ufe2f",Gd="\\u20d0-\\u20ff",Wd=zd+Hd+Gd,au="\\u2700-\\u27bf",qd="a-z\\xdf-\\xf6\\xf8-\\xff",sy="\\xac\\xb1\\xd7\\xf7",Kd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yd="\\u2000-\\u206f",$c=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mc="A-Z\\xc0-\\xd6\\xd8-\\xde",Wn="\\ufe0e\\ufe0f",lo=sy+Kd+Yd+$c,Zo="['’]",uy="["+La+"]",Jd="["+lo+"]",Qo="["+Wd+"]",Lc="\\d+",su="["+au+"]",Vc="["+qd+"]",Xd="[^"+La+lo+Lc+au+qd+Mc+"]",jc="\\ud83c[\\udffb-\\udfff]",Dr="(?:"+Qo+"|"+jc+")",zc="[^"+La+"]",fo="(?:\\ud83c[\\udde6-\\uddff]){2}",Hc="[\\ud800-\\udbff][\\udc00-\\udfff]",ea="["+Mc+"]",Ui="\\u200d",$i="(?:"+Vc+"|"+Xd+")",Gc="(?:"+ea+"|"+Xd+")",Zd="(?:"+Zo+"(?:d|ll|m|re|s|t|ve))?",ta="(?:"+Zo+"(?:D|LL|M|RE|S|T|VE))?",Wc=Dr+"?",uu="["+Wn+"]?",Qd="(?:"+Ui+"(?:"+[zc,fo,Hc].join("|")+")"+uu+Wc+")*",eh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qc=uu+Wc+Qd,ly="(?:"+[su,fo,Hc].join("|")+")"+qc,fy="(?:"+[zc+Qo+"?",Qo,fo,Hc,uy].join("|")+")",Kc=RegExp(Zo,"g"),dy=RegExp(Qo,"g"),Yc=RegExp(jc+"(?="+jc+")|"+fy+qc,"g"),hy=RegExp([ea+"?"+Vc+"+"+Zd+"(?="+[Jd,ea,"$"].join("|")+")",Gc+"+"+ta+"(?="+[Jd,ea+$i,"$"].join("|")+")",ea+"?"+$i+"+"+Zd,ea+"+"+ta,cy,eh,Lc,ly].join("|"),"g"),py=RegExp("["+Ui+La+Wd+Wn+"]"),gy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,my=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yy=-1,rn={};rn[de]=rn[$e]=rn[ut]=rn[lt]=rn[gt]=rn[qt]=rn[Gn]=rn[Ri]=rn[hn]=!0,rn[We]=rn[Qe]=rn[Ze]=rn[be]=rn[ie]=rn[Ae]=rn[Me]=rn[Ye]=rn[Le]=rn[st]=rn[et]=rn[y]=rn[P]=rn[$]=rn[me]=!1;var Qt={};Qt[We]=Qt[Qe]=Qt[Ze]=Qt[ie]=Qt[be]=Qt[Ae]=Qt[de]=Qt[$e]=Qt[ut]=Qt[lt]=Qt[gt]=Qt[Le]=Qt[st]=Qt[et]=Qt[y]=Qt[P]=Qt[$]=Qt[K]=Qt[qt]=Qt[Gn]=Qt[Ri]=Qt[hn]=!0,Qt[Me]=Qt[Ye]=Qt[me]=!1;var th={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nh={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},rh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xc=parseFloat,vy=parseInt,ih=typeof pn=="object"&&pn&&pn.Object===Object&&pn,_y=typeof self=="object"&&self&&self.Object===Object&&self,mn=ih||_y||Function("return this")(),cu=t&&!t.nodeType&&t,fi=cu&&!0&&e&&!e.nodeType&&e,oh=fi&&fi.exports===cu,Zc=oh&&ih.process,br=function(){try{var j=fi&&fi.require&&fi.require("util").t
vendor: 10,004 bytes, line 802
802ypes;return j||Zc&&Zc.binding&&Zc.binding("util")}catch{}}(),p=br&&br.isArrayBuffer,_=br&&br.isDate,S=br&&br.isMap,T=br&&br.isRegExp,D=br&&br.isSet,F=br&&br.isTypedArray;function O(j,Z,X){switch(X.length){case 0:return j.call(Z);case 1:return j.call(Z,X[0]);case 2:return j.call(Z,X[0],X[1]);case 3:return j.call(Z,X[0],X[1],X[2])}return j.apply(Z,X)}function Y(j,Z,X,_e){for(var we=-1,Ge=j==null?0:j.length;++we<Ge;){var qe=j[we];Z(_e,qe,X(qe),j)}return _e}function G(j,Z){for(var X=-1,_e=j==null?0:j.length;++X<_e&&Z(j[X],X,j)!==!1;);return j}function re(j,Z){for(var X=j==null?0:j.length;X--&&Z(j[X],X,j)!==!1;);return j}function ge(j,Z){for(var X=-1,_e=j==null?0:j.length;++X<_e;)if(!Z(j[X],X,j))return!1;return!0}function ve(j,Z){for(var X=-1,_e=j==null?0:j.length,we=0,Ge=[];++X<_e;){var qe=j[X];Z(qe,X,j)&&(Ge[we++]=qe)}return Ge}function le(j,Z){var X=j==null?0:j.length;return!!X&&nn(j,Z,0)>-1}function Fe(j,Z,X){for(var _e=-1,we=j==null?0:j.length;++_e<we;)if(X(Z,j[_e]))return!0;return!1}function He(j,Z){for(var X=-1,_e=j==null?0:j.length,we=Array(_e);++X<_e;)we[X]=Z(j[X],X,j);return we}function _t(j,Z){for(var X=-1,_e=Z.length,we=j.length;++X<_e;)j[we+X]=Z[X];return j}function vt(j,Z,X,_e){var we=-1,Ge=j==null?0:j.length;for(_e&&Ge&&(X=j[++we]);++we<Ge;)X=Z(X,j[we],we,j);return X}function Nn(j,Z,X,_e){var we=j==null?0:j.length;for(_e&&we&&(X=j[--we]);we--;)X=Z(X,j[we],we,j);return X}function yn(j,Z){for(var X=-1,_e=j==null?0:j.length;++X<_e;)if(Z(j[X],X,j))return!0;return!1}var Jr=ho("length");function Xr(j){return j.split("")}function Pt(j){return j.match($d)||[]}function Mi(j,Z,X){var _e;return X(j,function(we,Ge,qe){if(Z(we,Ge,qe))return _e=Ge,!1}),_e}function Nt(j,Z,X,_e){for(var we=j.length,Ge=X+(_e?1:-1);_e?Ge--:++Ge<we;)if(Z(j[Ge],Ge,j))return Ge;return-1}function nn(j,Z,X){return Z===Z?Ey(j,Z,X):Nt(j,lu,X)}function Va(j,Z,X,_e){for(var we=X-1,Ge=j.length;++we<Ge;)if(_e(j[we],Z))return we;return-1}function lu(j){return j!==j}function Fr(j,Z){var X=j==null?0:j.length;return X?tr(j,Z)/X:Ue}function ho(j){return function(Z){return Z==null?n:Z[j]}}function Er(j){return function(Z){return j==null?n:j[Z]}}function di(j,Z,X,_e,we){return we(j,function(Ge,qe,ze){X=_e?(_e=!1,Ge):Z(X,Ge,qe,ze)}),X}function Li(j,Z){var X=j.length;for(j.sort(Z);X--;)j[X]=j[X].value;return j}function tr(j,Z){for(var X,_e=-1,we=j.length;++_e<we;){var Ge=Z(j[_e]);Ge!==n&&(X=X===n?Ge:X+Ge)}return X}function ja(j,Z){for(var X=-1,_e=Array(j);++X<j;)_e[X]=Z(X);return _e}function hi(j,Z){return He(Z,function(X){return[X,j[X]]})}function Zr(j){return j&&j.slice(0,sh(j)+1).replace($a,"")}function cr(j){return function(Z){return j(Z)}}function Qc(j,Z){return He(Z,function(X){return j[X]})}function za(j,Z){return j.has(Z)}function Kt(j,Z){for(var X=-1,_e=j.length;++X<_e&&nn(Z,j[X],0)>-1;);return X}function Ha(j,Z){for(var X=j.length;X--&&nn(Z,j[X],0)>-1;);return X}function Rr(j,Z){for(var X=j.length,_e=0;X--;)j[X]===Z&&++_e;return _e}var na=Er(th),wy=Er(Jc);function by(j){return"\\"+rh[j]}function ah(j,Z){return j==null?n:j[Z]}function Sr(j){return py.test(j)}function el(j){return gy.test(j)}function Vi(j){for(var Z,X=[];!(Z=j.next()).done;)X.push(Z.value);return X}function fu(j){var Z=-1,X=Array(j.size);return j.forEach(function(_e,we){X[++Z]=[we,_e]}),X}function ra(j,Z){return function(X){return j(Z(X))}}function Br(j,Z){for(var X=-1,_e=j.length,we=0,Ge=[];++X<_e;){var qe=j[X];(qe===Z||qe===g)&&(j[X]=g,Ge[we++]=X)}return Ge}function po(j){var Z=-1,X=Array(j.size);return j.forEach(function(_e){X[++Z]=_e}),X}function tl(j){var Z=-1,X=Array(j.size);return j.forEach(function(_e){X[++Z]=[_e,_e]}),X}function Ey(j,Z,X){for(var _e=X-1,we=j.length;++_e<we;)if(j[_e]===Z)return _e;return-1}function du(j,Z,X){for(var _e=X+1;_e--;)if(j[_e]===Z)return _e;return _e}function ji(j){return Sr(j)?uh(j):Jr(j)}function lr(j){return Sr(j)?H(j):Xr(j)}function sh(j){for(var Z=j.length;Z--&&ru.test(j.charAt(Z)););return Z}var nl=Er(nh);function uh(j){for(var Z=Yc.lastIndex=0;Yc.test(j);)++Z;return Z}function H(j){return j.match(Yc)||[]}function te(j){return j.match(hy)||[]}var ce=function j(Z){Z=Z==null?mn:he.defaults(mn.Object(),Z,he.pick(mn,my));var X=Z.Array,_e=Z.Date,we=Z.Error,Ge=Z.Function,qe=Z.Math,ze=Z.Object,bt=Z.RegExp,ct=Z.String,At=Z.TypeError,Dn=X.prototype,Mn=Ge.prototype,Fn=ze.prototype,fr=Z["__core-js_shared__"],pi=Mn.toString,yt=Fn.hasOwnProperty,jre=0,zC=function(){var u=/[^.]+$/.exec(fr&&fr.keys&&fr.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),ch=Fn.toString,zre=pi.call(ze),Hre=mn._,Gre=bt("^"+pi.call(yt).replace(Oi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lh=oh?Z.Buffer:n,ia=Z.Symbol,fh=Z.Uint8Array,HC=lh?lh.allocUnsafe:n,dh=ra(ze.getPrototypeOf,ze),GC=ze.create,WC=Fn.propertyIsEnumerable,hh=Dn.splice,qC=ia?ia.isConcatSpreadable:n,rl=ia?ia.iterator:n,Ga=ia?ia.toStringTag:n,ph=function(){try{var u=Ja(ze,"defineProperty");return u({},"",{}),u}catch{}}(),Wre=Z.clearTimeout!==mn.clearTimeout&&Z.clearTimeout,qre=_e&&_e.now!==mn.Date.now&&_e.now,Kre=Z.setTimeout!==mn.setTimeout&&Z.setTimeout,gh=qe.ceil,mh=qe.floor,Sy=ze.getOwnPropertySymbols,Yre=lh?lh.isBuffer:n,KC=Z.isFinite,Jre=Dn.join,Xre=ra(ze.keys,ze),Rn=qe.max,nr=qe.min,Zre=_e.now,Qre=Z.parseInt,YC=qe.random,eie=Dn.reverse,Cy=Ja(Z,"DataView"),il=Ja(Z,"Map"),xy=Ja(Z,"Promise"),hu=Ja(Z,"Set"),ol=Ja(Z,"WeakMap"),al=Ja(ze,"create"),yh=ol&&new ol,pu={},tie=Xa(Cy),nie=Xa(il),rie=Xa(xy),iie=Xa(hu),oie=Xa(ol),vh=ia?ia.prototype:n,sl=vh?vh.valueOf:n,JC=vh?vh.toString:n;function M(u){if(xn(u)&&!wt(u)&&!(u instanceof Ot)){if(u instanceof Qr)return u;if(yt.call(u,"__wrapped__"))return X3(u)}return new Qr(u)}var gu=function(){function u(){}return function(d){if(!vn(d))return{};if(GC)return GC(d);u.prototype=d;var v=new u;return u.prototype=n,v}}();function _h(){}function Qr(u,d){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}M.templateSettings={escape:wr,evaluate:er,interpolate:nu,variable:"",imports:{_:M}},M.prototype=_h.prototype,M.prototype.constructor=M,Qr.prototype=gu(_h.prototype),Qr.prototype.constructor=Qr;function Ot(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function aie(){var u=new Ot(this.__wrapped__);return u.__actions__=Cr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Cr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Cr(this.__views__),u}function sie(){if(this.__filtered__){var u=new Ot(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function uie(){var u=this.__wrapped__.value(),d=this.__dir__,v=wt(u),x=d<0,B=v?u.length:0,V=woe(0,B,this.__views__),q=V.start,Q=V.end,ue=Q-q,Ee=x?Q:q-1,Ce=this.__iteratees__,ke=Ce.length,Ve=0,nt=nr(ue,this.__takeCount__);if(!v||!x&&B==ue&&nt==ue)return w3(u,this.__actions__);var ht=[];e:for(;ue--&&Ve<nt;){Ee+=d;for(var St=-1,pt=u[Ee];++St<ke;){var Dt=Ce[St],Lt=Dt.iteratee,$r=Dt.type,pr=Lt(pt);if($r==rt)pt=pr;else if(!pr){if($r==je)continue e;break e}}ht[Ve++]=pt}return ht}Ot.prototype=gu(_h.prototype),Ot.prototype.constructor=Ot;function Wa(u){var d=-1,v=u==null?0:u.length;for(this.clear();++d<v;){var x=u[d];this.set(x[0],x[1])}}function cie(){this.__data__=al?al(null):{},this.size=0}function lie(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}function fie(u){var d=this.__data__;if(al){var v=d[u];return v===h?n:v}return yt.call(d,u)?d[u]:n}function die(u){var d=this.__data__;return al?d[u]!==n:yt.call(d,u)}function hie(u,d){var v=this.__data__;return this.size+=this.has(u)?0:1,v[u]=al&&d===n?h:d,this}Wa.prototype.clear=cie,Wa.prototype.delete=lie,Wa.prototype.get=fie,Wa.prototype.has=die,Wa.prototype.set=hie;function go(u){var d=-1,v=u==null?0:u.length;for(this.clear();++d<v;){var x=u[d];this.set(x[0],x[1])}}function pie(){this.__data__=[],this.size=0}function gie(u){var d=this.__data__,v=wh(d,u);if(v<0)return!1;var x=d.length-1;return v==x?d.pop():hh.call(d,v,1),--this.size,!0}function mie(u){var d=this.__data__,v=wh(d,u);return v<0?n:d[v][1]}function yie(u){return wh(this.__data__,u)>-1}function vie(u,d){var v=this.__data__,x=wh(v,u);return x<0?(++this.size,v.push([u,d])):v[x][1]=d,this}go.prototype.clear=pie,go.prototype.delete=gie,go.prototype.get=mie,go.prototype.has=yie,go.prototype.set=vie;function mo(u){var d=-1,v=u==null?0:u.length;for(this.clear();++d<v;){var x=u[d];this.set(x[0],x[1])}}function _ie(){this.size=0,this.__data__={hash:new Wa,map:new(il||go),string:new Wa}}function wie(u){var d=Dh(this,u).delete(u);return this.size-=d?1:0,d}function bie(u){return Dh(this,u).get(u)}function Eie(u){return Dh(this,u).has(u)}function Sie(u,d){var v=Dh(this,u),x=v.size;return v.set(u,d),this.size+=v.size==x?0:1,this}mo.prototype.clear=_ie,mo.prototype.delete=wie,mo.prototype.get=bie,mo.prototype.has=Eie,mo.prototype.set=Sie;function qa(u){var d=-1,v=u==null?0:u.length;for(this.__data__=new mo;++d<v;)this.add(u[d])}function Cie(u){return this.__data__.set(u,h),this}function xie(u){return this.__data__.has(u)}qa.prototype.add=qa.prototype.push=Cie,qa.prototype.has=xie;function gi(u){var d=this.__data__=new go(u);this.size=d.size}function Aie(){this.__data__=new go,this.size=0}function Tie(u){var d=this.__data__,v=d.delete(u);return this.size=d.size,v}function Iie(u){return this.__data__.get(u)}function kie(u){return this.__data__.has(u)}function Pie(u,d){var v=this.__data__;if(v instanceof go){var x=v.__data__;if(!il||x.length<o-1)return x.push([u,d]),this.size=++v.size,this;v=this.__data__=new mo(x)}return v.set(u,d),this.size=v.size,this}gi.prototype.clear=Aie,gi.prototype.delete=Tie,gi.prototype.get=Iie,gi.prototype.has=kie,gi.prototype.set=Pie;function XC(u,d){var v=wt(u),x=!v&&Za(u),B=!v&&!x&&ca(u),V=!v&&!x&&!B&&_u(u),q=v||x||B||V,Q=q?ja(u.length,ct):[],ue=Q.length;for(var Ee in u)(d||yt.call(u,Ee))&&!(q&&(Ee=="length"||B&&(Ee=="offset"||Ee=="parent")||V&&
vendor: 8,843 bytes, line 802
802(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||wo(Ee,ue)))&&Q.push(Ee);return Q}function ZC(u){var d=u.length;return d?u[Oy(0,d-1)]:n}function Nie(u,d){return Fh(Cr(u),Ka(d,0,u.length))}function Die(u){return Fh(Cr(u))}function Ay(u,d,v){(v!==n&&!mi(u[d],v)||v===n&&!(d in u))&&yo(u,d,v)}function ul(u,d,v){var x=u[d];(!(yt.call(u,d)&&mi(x,v))||v===n&&!(d in u))&&yo(u,d,v)}function wh(u,d){for(var v=u.length;v--;)if(mi(u[v][0],d))return v;return-1}function Fie(u,d,v,x){return oa(u,function(B,V,q){d(x,B,v(B),q)}),x}function QC(u,d){return u&&Hi(d,Ln(d),u)}function Rie(u,d){return u&&Hi(d,Ar(d),u)}function yo(u,d,v){d=="__proto__"&&ph?ph(u,d,{configurable:!0,enumerable:!0,value:v,writable:!0}):u[d]=v}function Ty(u,d){for(var v=-1,x=d.length,B=X(x),V=u==null;++v<x;)B[v]=V?n:sv(u,d[v]);return B}function Ka(u,d,v){return u===u&&(v!==n&&(u=u<=v?u:v),d!==n&&(u=u>=d?u:d)),u}function ei(u,d,v,x,B,V){var q,Q=d&w,ue=d&E,Ee=d&C;if(v&&(q=B?v(u,x,B,V):v(u)),q!==n)return q;if(!vn(u))return u;var Ce=wt(u);if(Ce){if(q=Eoe(u),!Q)return Cr(u,q)}else{var ke=rr(u),Ve=ke==Ye||ke==pe;if(ca(u))return S3(u,Q);if(ke==et||ke==We||Ve&&!B){if(q=ue||Ve?{}:j3(u),!Q)return ue?foe(u,Rie(q,u)):loe(u,QC(q,u))}else{if(!Qt[ke])return B?u:{};q=Soe(u,ke,Q)}}V||(V=new gi);var nt=V.get(u);if(nt)return nt;V.set(u,q),yx(u)?u.forEach(function(pt){q.add(ei(pt,d,v,pt,u,V))}):gx(u)&&u.forEach(function(pt,Dt){q.set(Dt,ei(pt,d,v,Dt,u,V))});var ht=Ee?ue?qy:Wy:ue?Ar:Ln,St=Ce?n:ht(u);return G(St||u,function(pt,Dt){St&&(Dt=pt,pt=u[Dt]),ul(q,Dt,ei(pt,d,v,Dt,u,V))}),q}function Bie(u){var d=Ln(u);return function(v){return e3(v,u,d)}}function e3(u,d,v){var x=v.length;if(u==null)return!x;for(u=ze(u);x--;){var B=v[x],V=d[B],q=u[B];if(q===n&&!(B in u)||!V(q))return!1}return!0}function t3(u,d,v){if(typeof u!="function")throw new At(s);return gl(function(){u.apply(n,v)},d)}function cl(u,d,v,x){var B=-1,V=le,q=!0,Q=u.length,ue=[],Ee=d.length;if(!Q)return ue;v&&(d=He(d,cr(v))),x?(V=Fe,q=!1):d.length>=o&&(V=za,q=!1,d=new qa(d));e:for(;++B<Q;){var Ce=u[B],ke=v==null?Ce:v(Ce);if(Ce=x||Ce!==0?Ce:0,q&&ke===ke){for(var Ve=Ee;Ve--;)if(d[Ve]===ke)continue e;ue.push(Ce)}else V(d,ke,x)||ue.push(Ce)}return ue}var oa=I3(zi),n3=I3(ky,!0);function Oie(u,d){var v=!0;return oa(u,function(x,B,V){return v=!!d(x,B,V),v}),v}function bh(u,d,v){for(var x=-1,B=u.length;++x<B;){var V=u[x],q=d(V);if(q!=null&&(Q===n?q===q&&!Ur(q):v(q,Q)))var Q=q,ue=V}return ue}function Uie(u,d,v,x){var B=u.length;for(v=Et(v),v<0&&(v=-v>B?0:B+v),x=x===n||x>B?B:Et(x),x<0&&(x+=B),x=v>x?0:_x(x);v<x;)u[v++]=d;return u}function r3(u,d){var v=[];return oa(u,function(x,B,V){d(x,B,V)&&v.push(x)}),v}function qn(u,d,v,x,B){var V=-1,q=u.length;for(v||(v=xoe),B||(B=[]);++V<q;){var Q=u[V];d>0&&v(Q)?d>1?qn(Q,d-1,v,x,B):_t(B,Q):x||(B[B.length]=Q)}return B}var Iy=k3(),i3=k3(!0);function zi(u,d){return u&&Iy(u,d,Ln)}function ky(u,d){return u&&i3(u,d,Ln)}function Eh(u,d){return ve(d,function(v){return bo(u[v])})}function Ya(u,d){d=sa(d,u);for(var v=0,x=d.length;u!=null&&v<x;)u=u[Gi(d[v++])];return v&&v==x?u:n}function o3(u,d,v){var x=d(u);return wt(u)?x:_t(x,v(u))}function dr(u){return u==null?u===n?J:Bt:Ga&&Ga in ze(u)?_oe(u):Doe(u)}function Py(u,d){return u>d}function $ie(u,d){return u!=null&&yt.call(u,d)}function Mie(u,d){return u!=null&&d in ze(u)}function Lie(u,d,v){return u>=nr(d,v)&&u<Rn(d,v)}function Ny(u,d,v){for(var x=v?Fe:le,B=u[0].length,V=u.length,q=V,Q=X(V),ue=1/0,Ee=[];q--;){var Ce=u[q];q&&d&&(Ce=He(Ce,cr(d))),ue=nr(Ce.length,ue),Q[q]=!v&&(d||B>=120&&Ce.length>=120)?new qa(q&&Ce):n}Ce=u[0];var ke=-1,Ve=Q[0];e:for(;++ke<B&&Ee.length<ue;){var nt=Ce[ke],ht=d?d(nt):nt;if(nt=v||nt!==0?nt:0,!(Ve?za(Ve,ht):x(Ee,ht,v))){for(q=V;--q;){var St=Q[q];if(!(St?za(St,ht):x(u[q],ht,v)))continue e}Ve&&Ve.push(ht),Ee.push(nt)}}return Ee}function Vie(u,d,v,x){return zi(u,function(B,V,q){d(x,v(B),V,q)}),x}function ll(u,d,v){d=sa(d,u),u=W3(u,d);var x=u==null?u:u[Gi(ni(d))];return x==null?n:O(x,u,v)}function a3(u){return xn(u)&&dr(u)==We}function jie(u){return xn(u)&&dr(u)==Ze}function zie(u){return xn(u)&&dr(u)==Ae}function fl(u,d,v,x,B){return u===d?!0:u==null||d==null||!xn(u)&&!xn(d)?u!==u&&d!==d:Hie(u,d,v,x,fl,B)}function Hie(u,d,v,x,B,V){var q=wt(u),Q=wt(d),ue=q?Qe:rr(u),Ee=Q?Qe:rr(d);ue=ue==We?et:ue,Ee=Ee==We?et:Ee;var Ce=ue==et,ke=Ee==et,Ve=ue==Ee;if(Ve&&ca(u)){if(!ca(d))return!1;q=!0,Ce=!1}if(Ve&&!Ce)return V||(V=new gi),q||_u(u)?M3(u,d,v,x,B,V):yoe(u,d,ue,v,x,B,V);if(!(v&A)){var nt=Ce&&yt.call(u,"__wrapped__"),ht=ke&&yt.call(d,"__wrapped__");if(nt||ht){var St=nt?u.value():u,pt=ht?d.value():d;return V||(V=new gi),B(St,pt,v,x,V)}}return Ve?(V||(V=new gi),voe(u,d,v,x,B,V)):!1}function Gie(u){return xn(u)&&rr(u)==Le}function Dy(u,d,v,x){var B=v.length,V=B,q=!x;if(u==null)return!V;for(u=ze(u);B--;){var Q=v[B];if(q&&Q[2]?Q[1]!==u[Q[0]]:!(Q[0]in u))return!1}for(;++B<V;){Q=v[B];var ue=Q[0],Ee=u[ue],Ce=Q[1];if(q&&Q[2]){if(Ee===n&&!(ue in u))return!1}else{var ke=new gi;if(x)var Ve=x(Ee,Ce,ue,u,d,ke);if(!(Ve===n?fl(Ce,Ee,A|k,x,ke):Ve))return!1}}return!0}function s3(u){if(!vn(u)||Toe(u))return!1;var d=bo(u)?Gre:Oc;return d.test(Xa(u))}function Wie(u){return xn(u)&&dr(u)==y}function qie(u){return xn(u)&&rr(u)==P}function Kie(u){return xn(u)&&Mh(u.length)&&!!rn[dr(u)]}function u3(u){return typeof u=="function"?u:u==null?Tr:typeof u=="object"?wt(u)?f3(u[0],u[1]):l3(u):Px(u)}function Fy(u){if(!pl(u))return Xre(u);var d=[];for(var v in ze(u))yt.call(u,v)&&v!="constructor"&&d.push(v);return d}function Yie(u){if(!vn(u))return Noe(u);var d=pl(u),v=[];for(var x in u)x=="constructor"&&(d||!yt.call(u,x))||v.push(x);return v}function Ry(u,d){return u<d}function c3(u,d){var v=-1,x=xr(u)?X(u.length):[];return oa(u,function(B,V,q){x[++v]=d(B,V,q)}),x}function l3(u){var d=Yy(u);return d.length==1&&d[0][2]?H3(d[0][0],d[0][1]):function(v){return v===u||Dy(v,u,d)}}function f3(u,d){return Xy(u)&&z3(d)?H3(Gi(u),d):function(v){var x=sv(v,u);return x===n&&x===d?uv(v,u):fl(d,x,A|k)}}function Sh(u,d,v,x,B){u!==d&&Iy(d,function(V,q){if(B||(B=new gi),vn(V))Jie(u,d,q,v,Sh,x,B);else{var Q=x?x(Qy(u,q),V,q+"",u,d,B):n;Q===n&&(Q=V),Ay(u,q,Q)}},Ar)}function Jie(u,d,v,x,B,V,q){var Q=Qy(u,v),ue=Qy(d,v),Ee=q.get(ue);if(Ee){Ay(u,v,Ee);return}var Ce=V?V(Q,ue,v+"",u,d,q):n,ke=Ce===n;if(ke){var Ve=wt(ue),nt=!Ve&&ca(ue),ht=!Ve&&!nt&&_u(ue);Ce=ue,Ve||nt||ht?wt(Q)?Ce=Q:An(Q)?Ce=Cr(Q):nt?(ke=!1,Ce=S3(ue,!0)):ht?(ke=!1,Ce=C3(ue,!0)):Ce=[]:ml(ue)||Za(ue)?(Ce=Q,Za(Q)?Ce=wx(Q):(!vn(Q)||bo(Q))&&(Ce=j3(ue))):ke=!1}ke&&(q.set(ue,Ce),B(Ce,ue,x,V,q),q.delete(ue)),Ay(u,v,Ce)}function d3(u,d){var v=u.length;if(v)return d+=d<0?v:0,wo(d,v)?u[d]:n}function h3(u,d,v){d.length?d=He(d,function(V){return wt(V)?function(q){return Ya(q,V.length===1?V[0]:V)}:V}):d=[Tr];var x=-1;d=He(d,cr(ft()));var B=c3(u,function(V,q,Q){var ue=He(d,function(Ee){return Ee(V)});return{criteria:ue,index:++x,value:V}});return Li(B,function(V,q){return coe(V,q,v)})}function Xie(u,d){return p3(u,d,function(v,x){return uv(u,x)})}function p3(u,d,v){for(var x=-1,B=d.length,V={};++x<B;){var q=d[x],Q=Ya(u,q);v(Q,q)&&dl(V,sa(q,u),Q)}return V}function Zie(u){return function(d){return Ya(d,u)}}function By(u,d,v,x){var B=x?Va:nn,V=-1,q=d.length,Q=u;for(u===d&&(d=Cr(d)),v&&(Q=He(u,cr(v)));++V<q;)for(var ue=0,Ee=d[V],Ce=v?v(Ee):Ee;(ue=B(Q,Ce,ue,x))>-1;)Q!==u&&hh.call(Q,ue,1),hh.call(u,ue,1);return u}function g3(u,d){for(var v=u?d.length:0,x=v-1;v--;){var B=d[v];if(v==x||B!==V){var V=B;wo(B)?hh.call(u,B,1):My(u,B)}}return u}function Oy(u,d){return u+mh(YC()*(d-u+1))}function Qie(u,d,v,x){for(var B=-1,V=Rn(gh((d-u)/(v||1)),0),q=X(V);V--;)q[x?V:++B]=u,u+=v;return q}function Uy(u,d){var v="";if(!u||d<1||d>dt)return v;do d%2&&(v+=u),d=mh(d/2),d&&(u+=u);while(d);return v}function Tt(u,d){return ev(G3(u,d,Tr),u+"")}function eoe(u){return ZC(wu(u))}function toe(u,d){var v=wu(u);return Fh(v,Ka(d,0,v.length))}function dl(u,d,v,x){if(!vn(u))return u;d=sa(d,u);for(var B=-1,V=d.length,q=V-1,Q=u;Q!=null&&++B<V;){var ue=Gi(d[B]),Ee=v;if(ue==="__proto__"||ue==="constructor"||ue==="prototype")return u;if(B!=q){var Ce=Q[ue];Ee=x?x(Ce,ue,Q):n,Ee===n&&(Ee=vn(Ce)?Ce:wo(d[B+1])?[]:{})}ul(Q,ue,Ee),Q=Q[ue]}return u}var m3=yh?function(u,d){return yh.set(u,d),u}:Tr,noe=ph?function(u,d){return ph(u,"toString",{configurable:!0,enumerable:!1,value:lv(d),writable:!0})}:Tr;function roe(u){return Fh(wu(u))}function ti(u,d,v){var x=-1,B=u.length;d<0&&(d=-d>B?0:B+d),v=v>B?B:v,v<0&&(v+=B),B=d>v?0:v-d>>>0,d>>>=0;for(var V=X(B);++x<B;)V[x]=u[x+d];return V}function ioe(u,d){var v;return oa(u,function(x,B,V){return v=d(x,B,V),!v}),!!v}function Ch(u,d,v){var x=0,B=u==null?x:u.length;if(typeof d=="number"&&d===d&&B<=Pe){for(;x<B;){var V=x+B>>>1,q=u[V];q!==null&&!Ur(q)&&(v?q<=d:q<d)?x=V+1:B=V}return B}return $y(u,d,Tr,v)}function $y(u,d,v,x){var B=0,V=u==null?0:u.length;if(V===0)return 0;d=v(d);for(var q=d!==d,Q=d===null,ue=Ur(d),Ee=d===n;B<V;
vendor: 18,633 bytes, lines 802-804
802){var Ce=mh((B+V)/2),ke=v(u[Ce]),Ve=ke!==n,nt=ke===null,ht=ke===ke,St=Ur(ke);if(q)var pt=x||ht;else Ee?pt=ht&&(x||Ve):Q?pt=ht&&Ve&&(x||!nt):ue?pt=ht&&Ve&&!nt&&(x||!St):nt||St?pt=!1:pt=x?ke<=d:ke<d;pt?B=Ce+1:V=Ce}return nr(V,oe)}function y3(u,d){for(var v=-1,x=u.length,B=0,V=[];++v<x;){var q=u[v],Q=d?d(q):q;if(!v||!mi(Q,ue)){var ue=Q;V[B++]=q===0?0:q}}return V}function v3(u){return typeof u=="number"?u:Ur(u)?Ue:+u}function Or(u){if(typeof u=="string")return u;if(wt(u))return He(u,Or)+"";if(Ur(u))return JC?JC.call(u):"";var d=u+"";return d=="0"&&1/u==-Je?"-0":d}function aa(u,d,v){var x=-1,B=le,V=u.length,q=!0,Q=[],ue=Q;if(v)q=!1,B=Fe;else if(V>=o){var Ee=d?null:goe(u);if(Ee)return po(Ee);q=!1,B=za,ue=new qa}else ue=d?[]:Q;e:for(;++x<V;){var Ce=u[x],ke=d?d(Ce):Ce;if(Ce=v||Ce!==0?Ce:0,q&&ke===ke){for(var Ve=ue.length;Ve--;)if(ue[Ve]===ke)continue e;d&&ue.push(ke),Q.push(Ce)}else B(ue,ke,v)||(ue!==Q&&ue.push(ke),Q.push(Ce))}return Q}function My(u,d){return d=sa(d,u),u=W3(u,d),u==null||delete u[Gi(ni(d))]}function _3(u,d,v,x){return dl(u,d,v(Ya(u,d)),x)}function xh(u,d,v,x){for(var B=u.length,V=x?B:-1;(x?V--:++V<B)&&d(u[V],V,u););return v?ti(u,x?0:V,x?V+1:B):ti(u,x?V+1:0,x?B:V)}function w3(u,d){var v=u;return v instanceof Ot&&(v=v.value()),vt(d,function(x,B){return B.func.apply(B.thisArg,_t([x],B.args))},v)}function Ly(u,d,v){var x=u.length;if(x<2)return x?aa(u[0]):[];for(var B=-1,V=X(x);++B<x;)for(var q=u[B],Q=-1;++Q<x;)Q!=B&&(V[B]=cl(V[B]||q,u[Q],d,v));return aa(qn(V,1),d,v)}function b3(u,d,v){for(var x=-1,B=u.length,V=d.length,q={};++x<B;){var Q=x<V?d[x]:n;v(q,u[x],Q)}return q}function Vy(u){return An(u)?u:[]}function jy(u){return typeof u=="function"?u:Tr}function sa(u,d){return wt(u)?u:Xy(u,d)?[u]:J3(en(u))}var ooe=Tt;function ua(u,d,v){var x=u.length;return v=v===n?x:v,!d&&v>=x?u:ti(u,d,v)}var E3=Wre||function(u){return mn.clearTimeout(u)};function S3(u,d){if(d)return u.slice();var v=u.length,x=HC?HC(v):new u.constructor(v);return u.copy(x),x}function zy(u){var d=new u.constructor(u.byteLength);return new fh(d).set(new fh(u)),d}function aoe(u,d){var v=d?zy(u.buffer):u.buffer;return new u.constructor(v,u.byteOffset,u.byteLength)}function soe(u){var d=new u.constructor(u.source,Ld.exec(u));return d.lastIndex=u.lastIndex,d}function uoe(u){return sl?ze(sl.call(u)):{}}function C3(u,d){var v=d?zy(u.buffer):u.buffer;return new u.constructor(v,u.byteOffset,u.length)}function x3(u,d){if(u!==d){var v=u!==n,x=u===null,B=u===u,V=Ur(u),q=d!==n,Q=d===null,ue=d===d,Ee=Ur(d);if(!Q&&!Ee&&!V&&u>d||V&&q&&ue&&!Q&&!Ee||x&&q&&ue||!v&&ue||!B)return 1;if(!x&&!V&&!Ee&&u<d||Ee&&v&&B&&!x&&!V||Q&&v&&B||!q&&B||!ue)return-1}return 0}function coe(u,d,v){for(var x=-1,B=u.criteria,V=d.criteria,q=B.length,Q=v.length;++x<q;){var ue=x3(B[x],V[x]);if(ue){if(x>=Q)return ue;var Ee=v[x];return ue*(Ee=="desc"?-1:1)}}return u.index-d.index}function A3(u,d,v,x){for(var B=-1,V=u.length,q=v.length,Q=-1,ue=d.length,Ee=Rn(V-q,0),Ce=X(ue+Ee),ke=!x;++Q<ue;)Ce[Q]=d[Q];for(;++B<q;)(ke||B<V)&&(Ce[v[B]]=u[B]);for(;Ee--;)Ce[Q++]=u[B++];return Ce}function T3(u,d,v,x){for(var B=-1,V=u.length,q=-1,Q=v.length,ue=-1,Ee=d.length,Ce=Rn(V-Q,0),ke=X(Ce+Ee),Ve=!x;++B<Ce;)ke[B]=u[B];for(var nt=B;++ue<Ee;)ke[nt+ue]=d[ue];for(;++q<Q;)(Ve||B<V)&&(ke[nt+v[q]]=u[B++]);return ke}function Cr(u,d){var v=-1,x=u.length;for(d||(d=X(x));++v<x;)d[v]=u[v];return d}function Hi(u,d,v,x){var B=!v;v||(v={});for(var V=-1,q=d.length;++V<q;){var Q=d[V],ue=x?x(v[Q],u[Q],Q,v,u):n;ue===n&&(ue=u[Q]),B?yo(v,Q,ue):ul(v,Q,ue)}return v}function loe(u,d){return Hi(u,Jy(u),d)}function foe(u,d){return Hi(u,L3(u),d)}function Ah(u,d){return function(v,x){var B=wt(v)?Y:Fie,V=d?d():{};return B(v,u,ft(x,2),V)}}function mu(u){return Tt(function(d,v){var x=-1,B=v.length,V=B>1?v[B-1]:n,q=B>2?v[2]:n;for(V=u.length>3&&typeof V=="function"?(B--,V):n,q&&hr(v[0],v[1],q)&&(V=B<3?n:V,B=1),d=ze(d);++x<B;){var Q=v[x];Q&&u(d,Q,x,V)}return d})}function I3(u,d){return function(v,x){if(v==null)return v;if(!xr(v))return u(v,x);for(var B=v.length,V=d?B:-1,q=ze(v);(d?V--:++V<B)&&x(q[V],V,q)!==!1;);return v}}function k3(u){return function(d,v,x){for(var B=-1,V=ze(d),q=x(d),Q=q.length;Q--;){var ue=q[u?Q:++B];if(v(V[ue],ue,V)===!1)break}return d}}function doe(u,d,v){var x=d&U,B=hl(u);function V(){var q=this&&this!==mn&&this instanceof V?B:u;return q.apply(x?v:this,arguments)}return V}function P3(u){return function(d){d=en(d);var v=Sr(d)?lr(d):n,x=v?v[0]:d.charAt(0),B=v?ua(v,1).join(""):d.slice(1);return x[u]()+B}}function yu(u){return function(d){return vt(Ix(Tx(d).replace(Kc,"")),u,"")}}function hl(u){return function(){var d=arguments;switch(d.length){case 0:return new u;case 1:return new u(d[0]);case 2:return new u(d[0],d[1]);case 3:return new u(d[0],d[1],d[2]);case 4:return new u(d[0],d[1],d[2],d[3]);case 5:return new u(d[0],d[1],d[2],d[3],d[4]);case 6:return new u(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new u(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var v=gu(u.prototype),x=u.apply(v,d);return vn(x)?x:v}}function hoe(u,d,v){var x=hl(u);function B(){for(var V=arguments.length,q=X(V),Q=V,ue=vu(B);Q--;)q[Q]=arguments[Q];var Ee=V<3&&q[0]!==ue&&q[V-1]!==ue?[]:Br(q,ue);if(V-=Ee.length,V<v)return B3(u,d,Th,B.placeholder,n,q,Ee,n,n,v-V);var Ce=this&&this!==mn&&this instanceof B?x:u;return O(Ce,this,q)}return B}function N3(u){return function(d,v,x){var B=ze(d);if(!xr(d)){var V=ft(v,3);d=Ln(d),v=function(Q){return V(B[Q],Q,B)}}var q=u(d,v,x);return q>-1?B[V?d[q]:q]:n}}function D3(u){return _o(function(d){var v=d.length,x=v,B=Qr.prototype.thru;for(u&&d.reverse();x--;){var V=d[x];if(typeof V!="function")throw new At(s);if(B&&!q&&Nh(V)=="wrapper")var q=new Qr([],!0)}for(x=q?x:v;++x<v;){V=d[x];var Q=Nh(V),ue=Q=="wrapper"?Ky(V):n;ue&&Zy(ue[0])&&ue[1]==(b|L|W|fe)&&!ue[4].length&&ue[9]==1?q=q[Nh(ue[0])].apply(q,ue[3]):q=V.length==1&&Zy(V)?q[Q]():q.thru(V)}return function(){var Ee=arguments,Ce=Ee[0];if(q&&Ee.length==1&&wt(Ce))return q.plant(Ce).value();for(var ke=0,Ve=v?d[ke].apply(this,Ee):Ce;++ke<v;)Ve=d[ke].call(this,Ve);return Ve}})}function Th(u,d,v,x,B,V,q,Q,ue,Ee){var Ce=d&b,ke=d&U,Ve=d&N,nt=d&(L|z),ht=d&ae,St=Ve?n:hl(u);function pt(){for(var Dt=arguments.length,Lt=X(Dt),$r=Dt;$r--;)Lt[$r]=arguments[$r];if(nt)var pr=vu(pt),Mr=Rr(Lt,pr);if(x&&(Lt=A3(Lt,x,B,nt)),V&&(Lt=T3(Lt,V,q,nt)),Dt-=Mr,nt&&Dt<Ee){var Tn=Br(Lt,pr);return B3(u,d,Th,pt.placeholder,v,Lt,Tn,Q,ue,Ee-Dt)}var yi=ke?v:this,So=Ve?yi[u]:u;return Dt=Lt.length,Q?Lt=Foe(Lt,Q):ht&&Dt>1&&Lt.reverse(),Ce&&ue<Dt&&(Lt.length=ue),this&&this!==mn&&this instanceof pt&&(So=St||hl(So)),So.apply(yi,Lt)}return pt}function F3(u,d){return function(v,x){return Vie(v,u,d(x),{})}}function Ih(u,d){return function(v,x){var B;if(v===n&&x===n)return d;if(v!==n&&(B=v),x!==n){if(B===n)return x;typeof v=="string"||typeof x=="string"?(v=Or(v),x=Or(x)):(v=v3(v),x=v3(x)),B=u(v,x)}return B}}function Hy(u){return _o(function(d){return d=He(d,cr(ft())),Tt(function(v){var x=this;return u(d,function(B){return O(B,x,v)})})})}function kh(u,d){d=d===n?" ":Or(d);var v=d.length;if(v<2)return v?Uy(d,u):d;var x=Uy(d,gh(u/ji(d)));return Sr(d)?ua(lr(x),0,u).join(""):x.slice(0,u)}function poe(u,d,v,x){var B=d&U,V=hl(u);function q(){for(var Q=-1,ue=arguments.length,Ee=-1,Ce=x.length,ke=X(Ce+ue),Ve=this&&this!==mn&&this instanceof q?V:u;++Ee<Ce;)ke[Ee]=x[Ee];for(;ue--;)ke[Ee++]=arguments[++Q];return O(Ve,B?v:this,ke)}return q}function R3(u){return function(d,v,x){return x&&typeof x!="number"&&hr(d,v,x)&&(v=x=n),d=Eo(d),v===n?(v=d,d=0):v=Eo(v),x=x===n?d<v?1:-1:Eo(x),Qie(d,v,x,u)}}function Ph(u){return function(d,v){return typeof d=="string"&&typeof v=="string"||(d=ri(d),v=ri(v)),u(d,v)}}function B3(u,d,v,x,B,V,q,Q,ue,Ee){var Ce=d&L,ke=Ce?q:n,Ve=Ce?n:q,nt=Ce?V:n,ht=Ce?n:V;d|=Ce?W:ee,d&=~(Ce?ee:W),d&R||(d&=~(U|N));var St=[u,d,B,nt,ke,ht,Ve,Q,ue,Ee],pt=v.apply(n,St);return Zy(u)&&q3(pt,St),pt.placeholder=x,K3(pt,u,d)}function Gy(u){var d=qe[u];return function(v,x){if(v=ri(v),x=x==null?0:nr(Et(x),292),x&&KC(v)){var B=(en(v)+"e").split("e"),V=d(B[0]+"e"+(+B[1]+x));return B=(en(V)+"e").split("e"),+(B[0]+"e"+(+B[1]-x))}return d(v)}}var goe=hu&&1/po(new hu([,-0]))[1]==Je?function(u){return new hu(u)}:hv;function O3(u){return function(d){var v=rr(d);return v==Le?fu(d):v==P?tl(d):hi(d,u(d))}}function vo(u,d,v,x,B,V,q,Q){var ue=d&N;if(!ue&&typeof u!="function")throw new At(s);var Ee=x?x.length:0;if(Ee||(d&=~(W|ee),x=B=n),q=q===n?q:Rn(Et(q),0),Q=Q===n?Q:Et(Q),Ee-=B?B.length:0,d&ee){var Ce=x,ke=B;x=B=n}var Ve=ue?n:Ky(u),nt=[u,d,v,x,B,Ce,ke,V,q,Q];if(Ve&&Poe(nt,Ve),u=nt[0],d=nt[1],v=nt[2],x=nt[3],B=nt[4],Q=nt[9]=nt[9]===n?ue?0:u.length:Rn(nt[9]-Ee,0),!Q&&d&(L|z)&&(d&=~(L|z)),!d||d==U)var ht=doe(u,d,v);else d==L||d==z?ht=hoe(u,d,Q):(d==W||d==(U|W))&&!B.length?ht=poe(u,d,v,x):ht=Th.apply(n,nt);var St=Ve?m3:q3;return K3(St(ht,nt),u,d)}function U3(u,d,v,x){return u===n||mi(u,Fn[v])&&!yt.call(x,v)?d:u}function $3(u,d,v,x,B,V){return vn(u)&&vn(d)&&(V.set(d,u),Sh(u,d,n,$3,V),V.delete(d)),u}function moe(u){return ml(u)?n:u}function M3(u,d,v,x,B,V){var q=v&A,Q=u.length,ue=d.length;if(Q!=ue&&!(q&&ue>Q))return!1;var Ee=V.get(u),Ce=V.get(d);if(Ee&&Ce)return Ee==d&&Ce==u;var ke=-1,Ve=!0,nt=v&k?new qa:n;for(V.set(u,d),V.set(d,u);++ke<Q;){var ht=u[ke],St=d[ke];if(x)var pt=q?x(St,ht,ke,d,u,V):x(ht,St,ke,u,d,V);if(pt!==n){if(pt)continue;Ve=!1;break}if(nt){if(!yn(d,function(Dt,Lt){if(!za(nt,Lt)&&(ht===Dt||B(ht,Dt,v,x,V)))return nt.push(Lt)})){Ve=!1;break}}else if(!(ht===St||B(ht,St,v,x,V))){Ve=!1;break}}return V.delete(u),V.delete(d),Ve}function yoe(u,d,v,x,B,V,q){switch(v){case ie:if(u.byteLength!=d.byteLength||u.byteOffset!=d.byteOffset)return!1;u=u.buffer,d=d.buffer;case Ze:return!(u.byteLength!=d.byteLength||!V(new fh(u),new fh(d)));case be:case Ae:case st:return mi(+u,+d);case Me:return u.name==d.name&&u.message==d.message;case y:case $:return u==d+"";case Le:var Q=fu;case P:var ue=x&A;if(Q||(Q=po),u.size!=d.size&&!ue)return!1;var Ee=q.get(u);if(Ee)return Ee==d;x|=k,q.set(u,d);var Ce=M3(Q(u),Q(d),x,B,V,q);return q.delete(u),Ce;case K:if(sl)return sl.call(u)==sl.call(d)}return!1}function voe(u,d,v,x,B,V){var q=v&A,Q=Wy(u),ue=Q.length,Ee=Wy(d),Ce=Ee.length;if(ue!=Ce&&!q)return!1;for(var ke=ue;ke--;){var Ve=Q[ke];if(!(q?Ve in d:yt.call(d,Ve)))return!1}var nt=V.get(u),ht=V.get(d);if(nt&&ht)return nt==d&&ht==u;var St=!0;V.set(u,d),V.set(d,u);for(var pt=q;++ke<ue;){Ve=Q[ke];var Dt=u[Ve],Lt=d[Ve];if(x)var $r=q?x(Lt,Dt,Ve,d,u,V):x(Dt,Lt,Ve,u,d,V);if(!($r===n?Dt===Lt||B(Dt,Lt,v,x,V):$r)){St=!1;break}pt||(pt=Ve=="constructor")}if(St&&!pt){var pr=u.constructor,Mr=d.constructor;pr!=Mr&&"constructor"in u&&"constructor"in d&&!(typeof pr=="function"&&pr instanceof pr&&typeof Mr=="function"&&Mr instanceof Mr)&&(St=!1)}return V.delete(u),V.delete(d),St}function _o(u){return ev(G3(u,n,ex),u+"")}function Wy(u){return o3(u,Ln,Jy)}function qy(u){return o3(u,Ar,L3)}var Ky=yh?function(u){return yh.get(u)}:hv;function Nh(u){for(var d=u.name+"",v=pu[d],x=yt.call(pu,d)?v.length:0;x--;){var B=v[x],V=B.func;if(V==null||V==u)return B.name}return d}function vu(u){var d=yt.call(M,"placeholder")?M:u;return d.placeholder}function ft(){var u=M.iteratee||fv;return u=u===fv?u3:u,arguments.length?u(arguments[0],arguments[1]):u}function Dh(u,d){var v=u.__data__;return Aoe(d)?v[typeof d=="string"?"string":"hash"]:v.map}function Yy(u){for(var d=Ln(u),v=d.length;v--;){var x=d[v],B=u[x];d[v]=[x,B,z3(B)]}return d}function Ja(u,d){var v=ah(u,d);return s3(v)?v:n}function _oe(u){var d=yt.call(u,Ga),v=u[Ga];try{u[Ga]=n;var x=!0}catch{}var B=ch.call(u);return x&&(d?u[Ga]=v:delete u[Ga]),B}var Jy=Sy?function(u){return u==null?[]:(u=ze(u),ve(Sy(u),function(d){return WC.call(u,d)}))}:pv,L3=Sy?function(u){for(var d=[];u;)_t(d,Jy(u)),u=dh(u);return d}:pv,rr=dr;(Cy&&rr(new Cy(new ArrayBuffer(1)))!=ie||il&&rr(new il)!=Le||xy&&rr(xy.resolve())!=I||hu&&rr(new hu)!=P||ol&&rr(new ol)!=me)&&(rr=function(u){var d=dr(u),v=d==et?u.constructor:n,x=v?Xa(v):"";if(x)switch(x){case tie:return ie;case nie:return Le;case rie:return I;case iie:return P;case oie:return me}return d});function woe(u,d,v){for(var x=-1,B=v.length;++x<B;){var V=v[x],q=V.size;switch(V.type){case"drop":u+=q;break;case"dropRight":d-=q;break;case"take":d=nr(d,u+q);break;case"takeRight":u=Rn(u,d-q);break}}return{start:u,end:d}}function boe(u){var d=u.match(ry);return d?d[1].split(iy):[]}function V3(u,d,v){d=sa(d,u);for(var x=-1,B=d.length,V=!1;++x<B;){var q=Gi(d[x]);if(!(V=u!=null&&v(u,q)))break;u=u[q]}return V||++x!=B?V:(B=u==null?0:u.length,!!B&&Mh(B)&&wo(q,B)&&(wt(u)||Za(u)))}function Eoe(u){var d=u.length,v=new u.constructor(d);return d&&typeof u[0]=="string"&&yt.call(u,"index")&&(v.index=u.index,v.input=u.input),v}function j3(u){return typeof u.constructor=="function"&&!pl(u)?gu(dh(u)):{}}function Soe(u,d,v){var x=u.constructor;switch(d){case Ze:return zy(u);case be:case Ae:return new x(+u);case ie:return aoe(u,v);case de:case $e:case ut:case lt:case gt:case qt:case Gn:case Ri:case hn:return C3(u,v);case Le:return new x;case st:case $:return new x(u);case y:return soe(u);case P:return new x;case K:return uoe(u)}}function Coe(u,d){var v=d.length;if(!v)return u;var x=v-1;return d[x]=(v>1?"& ":"")+d[x],d=d.join(v>2?", ":" "),u.replace(ny,`{
803/* [wrapped with `+d+`] */
804`)}function xoe(u){return wt(u)||Za(u)||!!(qC&&u&&u[qC])}function wo(u,d){var v=typeof u;return d=d??dt,!!d&&(v=="number"||v!="symbol"&&iu.test(u))&&u>-1&&u%1==0&&u<d}function hr(u,d,v){if(!vn(v))return!1;var x=typeof d;return(x=="number"?xr(v)&&wo(d,v.length):x=="string"&&d in v)?mi(v[d],u):!1}function Xy(u,d){if(wt(u))return!1;var v=typeof u;return v=="number"||v=="symbol"||v=="boolean"||u==null||Ur(u)?!0:Od.test(u)||!ty.test(u)||d!=null&&u in ze(d)}function Aoe(u){var d=typeof u;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?u!=="__proto__":u===null}function Zy(u){var d=Nh(u),v=M[d];if(typeof v!="function"||!(d in Ot.prototype))return!1;if(u===v)return!0;var x=Ky(v);return!!x&&u===x[0]}function Toe(u){return!!zC&&zC in u}var Ioe=fr?bo:gv;function pl(u){var d=u&&u.constructor,v=typeof d=="function"&&d.prototype||Fn;return u===v}function z3(u){return u===u&&!vn(u)}function H3(u,d){return function(v){return v==null?!1:v[u]===d&&(d!==n||u in ze(v))}}function koe(u){var d=Uh(u,function(x){return v.size===f&&v.clear(),x}),v=d.cache;return d}function Poe(u,d){var v=u[1],x=d[1],B=v|x,V=B<(U|N|b),q=x==b&&v==L||x==b&&v==fe&&u[7].length<=d[8]||x==(b|fe)&&d[7].length<=d[8]&&v==L;if(!(V||q))return u;x&U&&(u[2]=d[2],B|=v&U?0:R);var Q=d[3];if(Q){var ue=u[3];u[3]=ue?A3(ue,Q,d[4]):Q,u[4]=ue?Br(u[3],g):d[4]}return Q=d[5],Q&&(ue=u[5],u[5]=ue?T3(ue,Q,d[6]):Q,u[6]=ue?Br(u[5],g):d[6]),Q=d[7],Q&&(u[7]=Q),x&b&&(u[8]=u[8]==null?d[8]:nr(u[8],d[8])),u[9]==null&&(u[9]=d[9]),u[0]=d[0],u[1]=B,u}function Noe(u){var d=[];if(u!=null)for(var v in ze(u))d.push(v);return d}function Doe(u){return ch.call(u)}function G3(u,d,v){return d=Rn(d===n?u.length-1:d,0),function(){for(var x=arguments,B=-1,V=Rn(x.length-d,0),q=X(V);++B<V;)q[B]=x[d+B];B=-1;for(var Q=X(d+1);++B<d;)Q[B]=x[B];return Q[d]=v(q),O(u,this,Q)}}function W3(u,d){return d.length<2?u:Ya(u,ti(d,0,-1))}function Foe(u,d){for(var v=u.length,x=nr(d.length,v),B=Cr(u);x--;){var V=d[x];u[x]=wo(V,v)?B[V]:n}return u}function Qy(u,d){if(!(d==="constructor"&&typeof u[d]=="function")&&d!="__proto__")return u[d]}var q3=Y3(m3),gl=Kre||function(u,d){return mn.setTimeout(u,d)},ev=Y3(noe);function K3(u,d,v){var x=d+"";return ev(u,Coe(x,Roe(boe(x),v)))}function Y3(u){var d=0,v=0;return function(){var x=Zre(),B=ye-(x-v);if(v=x,B>0){if(++d>=De)return arguments[0]}else d=0;return u.apply(n,arguments)}}function Fh(u,d){var v=-1,x=u.length,B=x-1;for(d=d===n?x:d;++v<d;){var V=Oy(v,B),q=u[V];u[V]=u[v],u[v]=q}return u.length=d,u}var J3=koe(function(u){var d=[];return u.charCodeAt(0)===46&&d.push(""),u.replace(Ud,function(v,x,B,V){d.push(B?V.replace(ay,"$1"):x||v)}),d});function Gi(u){if(typeof u=="string"||Ur(u))return u;var d=u+"";return d=="0"&&1/u==-Je?"-0":d}function Xa(u){if(u!=null){try{return pi.call(u)}catch{}try{return u+""}catch{}}return""}function Roe(u,d){return G(Oe,function(v){var x="_."+v[0];d&v[1]&&!le(u,x)&&u.push(x)}),u.sort()}function X3(u){if(u instanceof Ot)return u.clone();var d=new Qr(u.__wrapped__,u.__chain__);return d.__actions__=Cr(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d}function Boe(u,d,v){(v?hr(u,d,v):d===n)?d=1:d=Rn(Et(d),0);var x=u==null?0:u.length;if(!x||d<1)return[];for(var B=0,V=0,q=X(gh(x/d));B<x;)q[V++]=ti(u,B,B+=d);return q}function Ooe(u){for(var d=-1,v=u==null?0:u.length,x=0,B=[];++d<v;){var V=u[d];V&&(B[x++]=V)}return B}function Uoe(){var u=arguments.length;if(!u)return[];for(var d=X(u-1),v=arguments[0],x=u;x--;)d[x-1]=arguments[x];return _t(wt(v)?Cr(v):[v],qn(d,1))}var $oe=Tt(function(u,d){return An(u)?cl(u,qn(d,1,An,!0)):[]}),Moe=Tt(function(u,d){var v=ni(d);return An(v)&&(v=n),An(u)?cl(u,qn(d,1,An,!0),ft(v,2)):[]}),Loe=Tt(function(u,d){var v=ni(d);return An(v)&&(v=n),An(u)?cl(u,qn(d,1,An,!0),n,v):[]});function Voe(u,d,v){var x=u==null?0:u.length;return x?(d=v||d===n?1:Et(d),ti(u,d<0?0:d,x)):[]}function joe(u,d,v){var x=u==null?0:u.length;return x?(d=v||d===n?1:Et(d),d=x-d,ti(u,0,d<0?0:d)):[]}function zoe(u,d){return u&&u.length?xh(u,ft(d,3),!0,!0):[]}function Hoe(u,d){return u&&u.length?xh(u,ft(d,3),!0):[]}function Goe(u,d,v,x){var B=u==null?0:u.length;return B?(v&&typeof v!="number"&&hr(u,d,v)&&(v=0,x=B),Uie(u,d,v,x)):[]}function Z3(u,d,v){var x=u==null?0:u.length;if(!x)return-1;var B=v==null?0:Et(v);return B<0&&(B=Rn(x+B,0)),Nt(u,ft(d,3),B)}function Q3(u,d,v){var x=u==null?0:u.length;if(!x)return-1;var B=x-1;return v!==n&&(B=Et(v),B=v<0?Rn(x+B,0):nr(B,x-1)),Nt(u,ft(d,3),B,!0)}function ex(u){var d=u==null?0:u.length;return d?qn(u,1):[]}function Woe(u){var d=u==null?0:u.length;return d?qn(u,Je):[]}function qoe(u,d){var v=u==null?0:u.length;return v?(d=d===n?1:Et(d),qn(u,d)):[]}function Koe(u){for(var d=-1,v=u==null?0:u.length,x={};++d<v;){var B=u[d];x[B[0]]=B[1]}return x}function tx(u){return u&&u.length?u[0]:n}function Yoe(u,d,v){var x=u==null?0:u.length;if(!x)return-1;var B=v==null?0:Et(v);return B<0&&(B=Rn(x+B,0)),nn(u,d,B)}function Joe(u){var d=u==null?0:u.length;return d?ti(u,0,-1):[]}var Xoe=Tt(function(u){var d=He(u,Vy);return d.length&&d[0]===u[0]?Ny(d):[]}),Zoe=Tt(function(u){var d=ni(u),v=He(u,Vy);return d===ni(v)?d=n:v.pop(),v.length&&v[0]===u[0]?Ny(v,ft(d,2)):[]}),Qoe=Tt(function(u){var d=ni(u),v=He(u,Vy);return d=typeof d=="function"?d:n,d&&v.pop(),v.length&&v[0]===u[0]?Ny(v,n,d):[]});function eae(u,d){return u==null?"":Jre.call(u,d)}function ni(u){var d=u==null?0:u.length;return d?u[d-1]:n}function tae(u,d,v){var x=u==null?0:u.length;if(!x)return-1;var B=x;
vendor: 9,004 bytes, line 804
804return v!==n&&(B=Et(v),B=B<0?Rn(x+B,0):nr(B,x-1)),d===d?du(u,d,B):Nt(u,lu,B,!0)}function nae(u,d){return u&&u.length?d3(u,Et(d)):n}var rae=Tt(nx);function nx(u,d){return u&&u.length&&d&&d.length?By(u,d):u}function iae(u,d,v){return u&&u.length&&d&&d.length?By(u,d,ft(v,2)):u}function oae(u,d,v){return u&&u.length&&d&&d.length?By(u,d,n,v):u}var aae=_o(function(u,d){var v=u==null?0:u.length,x=Ty(u,d);return g3(u,He(d,function(B){return wo(B,v)?+B:B}).sort(x3)),x});function sae(u,d){var v=[];if(!(u&&u.length))return v;var x=-1,B=[],V=u.length;for(d=ft(d,3);++x<V;){var q=u[x];d(q,x,u)&&(v.push(q),B.push(x))}return g3(u,B),v}function tv(u){return u==null?u:eie.call(u)}function uae(u,d,v){var x=u==null?0:u.length;return x?(v&&typeof v!="number"&&hr(u,d,v)?(d=0,v=x):(d=d==null?0:Et(d),v=v===n?x:Et(v)),ti(u,d,v)):[]}function cae(u,d){return Ch(u,d)}function lae(u,d,v){return $y(u,d,ft(v,2))}function fae(u,d){var v=u==null?0:u.length;if(v){var x=Ch(u,d);if(x<v&&mi(u[x],d))return x}return-1}function dae(u,d){return Ch(u,d,!0)}function hae(u,d,v){return $y(u,d,ft(v,2),!0)}function pae(u,d){var v=u==null?0:u.length;if(v){var x=Ch(u,d,!0)-1;if(mi(u[x],d))return x}return-1}function gae(u){return u&&u.length?y3(u):[]}function mae(u,d){return u&&u.length?y3(u,ft(d,2)):[]}function yae(u){var d=u==null?0:u.length;return d?ti(u,1,d):[]}function vae(u,d,v){return u&&u.length?(d=v||d===n?1:Et(d),ti(u,0,d<0?0:d)):[]}function _ae(u,d,v){var x=u==null?0:u.length;return x?(d=v||d===n?1:Et(d),d=x-d,ti(u,d<0?0:d,x)):[]}function wae(u,d){return u&&u.length?xh(u,ft(d,3),!1,!0):[]}function bae(u,d){return u&&u.length?xh(u,ft(d,3)):[]}var Eae=Tt(function(u){return aa(qn(u,1,An,!0))}),Sae=Tt(function(u){var d=ni(u);return An(d)&&(d=n),aa(qn(u,1,An,!0),ft(d,2))}),Cae=Tt(function(u){var d=ni(u);return d=typeof d=="function"?d:n,aa(qn(u,1,An,!0),n,d)});function xae(u){return u&&u.length?aa(u):[]}function Aae(u,d){return u&&u.length?aa(u,ft(d,2)):[]}function Tae(u,d){return d=typeof d=="function"?d:n,u&&u.length?aa(u,n,d):[]}function nv(u){if(!(u&&u.length))return[];var d=0;return u=ve(u,function(v){if(An(v))return d=Rn(v.length,d),!0}),ja(d,function(v){return He(u,ho(v))})}function rx(u,d){if(!(u&&u.length))return[];var v=nv(u);return d==null?v:He(v,function(x){return O(d,n,x)})}var Iae=Tt(function(u,d){return An(u)?cl(u,d):[]}),kae=Tt(function(u){return Ly(ve(u,An))}),Pae=Tt(function(u){var d=ni(u);return An(d)&&(d=n),Ly(ve(u,An),ft(d,2))}),Nae=Tt(function(u){var d=ni(u);return d=typeof d=="function"?d:n,Ly(ve(u,An),n,d)}),Dae=Tt(nv);function Fae(u,d){return b3(u||[],d||[],ul)}function Rae(u,d){return b3(u||[],d||[],dl)}var Bae=Tt(function(u){var d=u.length,v=d>1?u[d-1]:n;return v=typeof v=="function"?(u.pop(),v):n,rx(u,v)});function ix(u){var d=M(u);return d.__chain__=!0,d}function Oae(u,d){return d(u),u}function Rh(u,d){return d(u)}var Uae=_o(function(u){var d=u.length,v=d?u[0]:0,x=this.__wrapped__,B=function(V){return Ty(V,u)};return d>1||this.__actions__.length||!(x instanceof Ot)||!wo(v)?this.thru(B):(x=x.slice(v,+v+(d?1:0)),x.__actions__.push({func:Rh,args:[B],thisArg:n}),new Qr(x,this.__chain__).thru(function(V){return d&&!V.length&&V.push(n),V}))});function $ae(){return ix(this)}function Mae(){return new Qr(this.value(),this.__chain__)}function Lae(){this.__values__===n&&(this.__values__=vx(this.value()));var u=this.__index__>=this.__values__.length,d=u?n:this.__values__[this.__index__++];return{done:u,value:d}}function Vae(){return this}function jae(u){for(var d,v=this;v instanceof _h;){var x=X3(v);x.__index__=0,x.__values__=n,d?B.__wrapped__=x:d=x;var B=x;v=v.__wrapped__}return B.__wrapped__=u,d}function zae(){var u=this.__wrapped__;if(u instanceof Ot){var d=u;return this.__actions__.length&&(d=new Ot(this)),d=d.reverse(),d.__actions__.push({func:Rh,args:[tv],thisArg:n}),new Qr(d,this.__chain__)}return this.thru(tv)}function Hae(){return w3(this.__wrapped__,this.__actions__)}var Gae=Ah(function(u,d,v){yt.call(u,v)?++u[v]:yo(u,v,1)});function Wae(u,d,v){var x=wt(u)?ge:Oie;return v&&hr(u,d,v)&&(d=n),x(u,ft(d,3))}function qae(u,d){var v=wt(u)?ve:r3;return v(u,ft(d,3))}var Kae=N3(Z3),Yae=N3(Q3);function Jae(u,d){return qn(Bh(u,d),1)}function Xae(u,d){return qn(Bh(u,d),Je)}function Zae(u,d,v){return v=v===n?1:Et(v),qn(Bh(u,d),v)}function ox(u,d){var v=wt(u)?G:oa;return v(u,ft(d,3))}function ax(u,d){var v=wt(u)?re:n3;return v(u,ft(d,3))}var Qae=Ah(function(u,d,v){yt.call(u,v)?u[v].push(d):yo(u,v,[d])});function ese(u,d,v,x){u=xr(u)?u:wu(u),v=v&&!x?Et(v):0;var B=u.length;return v<0&&(v=Rn(B+v,0)),Lh(u)?v<=B&&u.indexOf(d,v)>-1:!!B&&nn(u,d,v)>-1}var tse=Tt(function(u,d,v){var x=-1,B=typeof d=="function",V=xr(u)?X(u.length):[];return oa(u,function(q){V[++x]=B?O(d,q,v):ll(q,d,v)}),V}),nse=Ah(function(u,d,v){yo(u,v,d)});function Bh(u,d){var v=wt(u)?He:c3;return v(u,ft(d,3))}function rse(u,d,v,x){return u==null?[]:(wt(d)||(d=d==null?[]:[d]),v=x?n:v,wt(v)||(v=v==null?[]:[v]),h3(u,d,v))}var ise=Ah(function(u,d,v){u[v?0:1].push(d)},function(){return[[],[]]});function ose(u,d,v){var x=wt(u)?vt:di,B=arguments.length<3;return x(u,ft(d,4),v,B,oa)}function ase(u,d,v){var x=wt(u)?Nn:di,B=arguments.length<3;return x(u,ft(d,4),v,B,n3)}function sse(u,d){var v=wt(u)?ve:r3;return v(u,$h(ft(d,3)))}function use(u){var d=wt(u)?ZC:eoe;return d(u)}function cse(u,d,v){(v?hr(u,d,v):d===n)?d=1:d=Et(d);var x=wt(u)?Nie:toe;return x(u,d)}function lse(u){var d=wt(u)?Die:roe;return d(u)}function fse(u){if(u==null)return 0;if(xr(u))return Lh(u)?ji(u):u.length;var d=rr(u);return d==Le||d==P?u.size:Fy(u).length}function dse(u,d,v){var x=wt(u)?yn:ioe;return v&&hr(u,d,v)&&(d=n),x(u,ft(d,3))}var hse=Tt(function(u,d){if(u==null)return[];var v=d.length;return v>1&&hr(u,d[0],d[1])?d=[]:v>2&&hr(d[0],d[1],d[2])&&(d=[d[0]]),h3(u,qn(d,1),[])}),Oh=qre||function(){return mn.Date.now()};function pse(u,d){if(typeof d!="function")throw new At(s);return u=Et(u),function(){if(--u<1)return d.apply(this,arguments)}}function sx(u,d,v){return d=v?n:d,d=u&&d==null?u.length:d,vo(u,b,n,n,n,n,d)}function ux(u,d){var v;if(typeof d!="function")throw new At(s);return u=Et(u),function(){return--u>0&&(v=d.apply(this,arguments)),u<=1&&(d=n),v}}var rv=Tt(function(u,d,v){var x=U;if(v.length){var B=Br(v,vu(rv));x|=W}return vo(u,x,d,v,B)}),cx=Tt(function(u,d,v){var x=U|N;if(v.length){var B=Br(v,vu(cx));x|=W}return vo(d,x,u,v,B)});function lx(u,d,v){d=v?n:d;var x=vo(u,L,n,n,n,n,n,d);return x.placeholder=lx.placeholder,x}function fx(u,d,v){d=v?n:d;var x=vo(u,z,n,n,n,n,n,d);return x.placeholder=fx.placeholder,x}function dx(u,d,v){var x,B,V,q,Q,ue,Ee=0,Ce=!1,ke=!1,Ve=!0;if(typeof u!="function")throw new At(s);d=ri(d)||0,vn(v)&&(Ce=!!v.leading,ke="maxWait"in v,V=ke?Rn(ri(v.maxWait)||0,d):V,Ve="trailing"in v?!!v.trailing:Ve);function nt(Tn){var yi=x,So=B;return x=B=n,Ee=Tn,q=u.apply(So,yi),q}function ht(Tn){return Ee=Tn,Q=gl(Dt,d),Ce?nt(Tn):q}function St(Tn){var yi=Tn-ue,So=Tn-Ee,Nx=d-yi;return ke?nr(Nx,V-So):Nx}function pt(Tn){var yi=Tn-ue,So=Tn-Ee;return ue===n||yi>=d||yi<0||ke&&So>=V}function Dt(){var Tn=Oh();if(pt(Tn))return Lt(Tn);Q=gl(Dt,St(Tn))}function Lt(Tn){return Q=n,Ve&&x?nt(Tn):(x=B=n,q)}function $r(){Q!==n&&E3(Q),Ee=0,x=ue=B=Q=n}function pr(){return Q===n?q:Lt(Oh())}function Mr(){var Tn=Oh(),yi=pt(Tn);if(x=arguments,B=this,ue=Tn,yi){if(Q===n)return ht(ue);if(ke)return E3(Q),Q=gl(Dt,d),nt(ue)}return Q===n&&(Q=gl(Dt,d)),q}return Mr.cancel=$r,Mr.flush=pr,Mr}var gse=Tt(function(u,d){return t3(u,1,d)}),mse=Tt(function(u,d,v){return t3(u,ri(d)||0,v)});function yse(u){return vo(u,ae)}function Uh(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new At(s);var v=function(){var x=arguments,B=d?d.apply(this,x):x[0],V=v.cache;if(V.has(B))return V.get(B);var q=u.apply(this,x);return v.cache=V.set(B,q)||V,q};return v.cache=new(Uh.Cache||mo),v}Uh.Cache=mo;function $h(u){if(typeof u!="function")throw new At(s);return function(){var d=arguments;switch(d.length){case 0:return!u.call(this);case 1:return!u.call(this,d[0]);case 2:return!u.call(this,d[0],d[1]);case 3:return!u.call(this,d[0],d[1],d[2])}return!u.apply(this,d)}}function vse(u){return ux(2,u)}var _se=ooe(function(u,d){d=d.length==1&&wt(d[0])?He(d[0],cr(ft())):He(qn(d,1),cr(ft()));var v=d.length;return Tt(function(x){for(var B=-1,V=nr(x.length,v);++B<V;)x[B]=d[B].call(this,x[B]);return O(u,this,x)})}),iv=Tt(function(u,d){var v=Br(d,vu(iv));return vo(u,W,n,d,v)}),hx=Tt(function(u,d){var v=Br(d,vu(hx));return vo(u,ee,n,d,v)}),wse=_o(function(u,d){return vo(u,fe,n,n,n,d)});function bse(u,d){if(typeof u!="function")throw new At(s);return d=d===n?d:Et(d),Tt(u,d)}function Ese(u,d){if(typeof u!="function")throw new At(s);return d=d==null?0:Rn(Et(d),0),Tt(function(v){var x=v[d],B=ua(v,0,d);return x&&_t(B,x),O(u,this,B)})}function Sse(u,d,v){var x=!0,B=!0;if(typeof u!="function")throw new At(s);return vn(v)&&(x="leading"in v?!!v.leading:x,B="trailing"in v?!!v.trailing:B),dx(u,d,{leading:x,maxWait:d,trailing:B})}function Cse(u){return sx(u,1)}function xse(u,d){return iv(jy(d),u)}
vendor: 4,169 bytes, line 804
804function Ase(){if(!arguments.length)return[];var u=arguments[0];return wt(u)?u:[u]}function Tse(u){return ei(u,C)}function Ise(u,d){return d=typeof d=="function"?d:n,ei(u,C,d)}function kse(u){return ei(u,w|C)}function Pse(u,d){return d=typeof d=="function"?d:n,ei(u,w|C,d)}function Nse(u,d){return d==null||e3(u,d,Ln(d))}function mi(u,d){return u===d||u!==u&&d!==d}var Dse=Ph(Py),Fse=Ph(function(u,d){return u>=d}),Za=a3(function(){return arguments}())?a3:function(u){return xn(u)&&yt.call(u,"callee")&&!WC.call(u,"callee")},wt=X.isArray,Rse=p?cr(p):jie;function xr(u){return u!=null&&Mh(u.length)&&!bo(u)}function An(u){return xn(u)&&xr(u)}function Bse(u){return u===!0||u===!1||xn(u)&&dr(u)==be}var ca=Yre||gv,Ose=_?cr(_):zie;function Use(u){return xn(u)&&u.nodeType===1&&!ml(u)}function $se(u){if(u==null)return!0;if(xr(u)&&(wt(u)||typeof u=="string"||typeof u.splice=="function"||ca(u)||_u(u)||Za(u)))return!u.length;var d=rr(u);if(d==Le||d==P)return!u.size;if(pl(u))return!Fy(u).length;for(var v in u)if(yt.call(u,v))return!1;return!0}function Mse(u,d){return fl(u,d)}function Lse(u,d,v){v=typeof v=="function"?v:n;var x=v?v(u,d):n;return x===n?fl(u,d,n,v):!!x}function ov(u){if(!xn(u))return!1;var d=dr(u);return d==Me||d==Ne||typeof u.message=="string"&&typeof u.name=="string"&&!ml(u)}function Vse(u){return typeof u=="number"&&KC(u)}function bo(u){if(!vn(u))return!1;var d=dr(u);return d==Ye||d==pe||d==se||d==m}function px(u){return typeof u=="number"&&u==Et(u)}function Mh(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=dt}function vn(u){var d=typeof u;return u!=null&&(d=="object"||d=="function")}function xn(u){return u!=null&&typeof u=="object"}var gx=S?cr(S):Gie;function jse(u,d){return u===d||Dy(u,d,Yy(d))}function zse(u,d,v){return v=typeof v=="function"?v:n,Dy(u,d,Yy(d),v)}function Hse(u){return mx(u)&&u!=+u}function Gse(u){if(Ioe(u))throw new we(i);return s3(u)}function Wse(u){return u===null}function qse(u){return u==null}function mx(u){return typeof u=="number"||xn(u)&&dr(u)==st}function ml(u){if(!xn(u)||dr(u)!=et)return!1;var d=dh(u);if(d===null)return!0;var v=yt.call(d,"constructor")&&d.constructor;return typeof v=="function"&&v instanceof v&&pi.call(v)==zre}var av=T?cr(T):Wie;function Kse(u){return px(u)&&u>=-dt&&u<=dt}var yx=D?cr(D):qie;function Lh(u){return typeof u=="string"||!wt(u)&&xn(u)&&dr(u)==$}function Ur(u){return typeof u=="symbol"||xn(u)&&dr(u)==K}var _u=F?cr(F):Kie;function Yse(u){return u===n}function Jse(u){return xn(u)&&rr(u)==me}function Xse(u){return xn(u)&&dr(u)==Be}var Zse=Ph(Ry),Qse=Ph(function(u,d){return u<=d});function vx(u){if(!u)return[];if(xr(u))return Lh(u)?lr(u):Cr(u);if(rl&&u[rl])return Vi(u[rl]());var d=rr(u),v=d==Le?fu:d==P?po:wu;return v(u)}function Eo(u){if(!u)return u===0?u:0;if(u=ri(u),u===Je||u===-Je){var d=u<0?-1:1;return d*mt}return u===u?u:0}function Et(u){var d=Eo(u),v=d%1;return d===d?v?d-v:d:0}function _x(u){return u?Ka(Et(u),0,ne):0}function ri(u){if(typeof u=="number")return u;if(Ur(u))return Ue;if(vn(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=vn(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=Zr(u);var v=Vd.test(u);return v||Uc.test(u)?vy(u.slice(2),v?2:8):Xo.test(u)?Ue:+u}function wx(u){return Hi(u,Ar(u))}function eue(u){return u?Ka(Et(u),-dt,dt):u===0?u:0}function en(u){return u==null?"":Or(u)}var tue=mu(function(u,d){if(pl(d)||xr(d)){Hi(d,Ln(d),u);return}for(var v in d)yt.call(d,v)&&ul(u,v,d[v])}),bx=mu(function(u,d){Hi(d,Ar(d),u)}),Vh=mu(function(u,d,v,x){Hi(d,Ar(d),u,x)}),nue=mu(function(u,d,v,x){Hi(d,Ln(d),u,x)}),rue=_o(Ty);function iue(u,d){var v=gu(u);return d==null?v:QC(v,d)}var oue=Tt(function(u,d){u=ze(u);var v=-1,x=d.length,B=x>2?d[2]:n;for(B&&hr(d[0],d[1],B)&&(x=1);++v<x;)for(var V=d[v],q=Ar(V),Q=-1,ue=q.length;++Q<ue;){var Ee=q[Q],Ce=u[Ee];(Ce===n||mi(Ce,Fn[Ee])&&!yt.call(u,Ee))&&(u[Ee]=V[Ee])}return u}),aue=Tt(function(u){return u.push(n,$3),O(Ex,n,u)});function sue(u,d){return Mi(u,ft(d,3),zi)}function uue(u,d){return Mi(u,ft(d,3),ky)}function cue(u,d){return u==null?u:Iy(u,ft(d,3),Ar)}function lue(u,d){return u==null?u:i3(u,ft(d,3),Ar)}function fue(u,d){return u&&zi(u,ft(d,3))}function due(u,d){return u&&ky(u,ft(d,3))}
vendor: 12,295 bytes, lines 804-821
804function hue(u){return u==null?[]:Eh(u,Ln(u))}function pue(u){return u==null?[]:Eh(u,Ar(u))}function sv(u,d,v){var x=u==null?n:Ya(u,d);return x===n?v:x}function gue(u,d){return u!=null&&V3(u,d,$ie)}function uv(u,d){return u!=null&&V3(u,d,Mie)}var mue=F3(function(u,d,v){d!=null&&typeof d.toString!="function"&&(d=ch.call(d)),u[d]=v},lv(Tr)),yue=F3(function(u,d,v){d!=null&&typeof d.toString!="function"&&(d=ch.call(d)),yt.call(u,d)?u[d].push(v):u[d]=[v]},ft),vue=Tt(ll);function Ln(u){return xr(u)?XC(u):Fy(u)}function Ar(u){return xr(u)?XC(u,!0):Yie(u)}function _ue(u,d){var v={};return d=ft(d,3),zi(u,function(x,B,V){yo(v,d(x,B,V),x)}),v}function wue(u,d){var v={};return d=ft(d,3),zi(u,function(x,B,V){yo(v,B,d(x,B,V))}),v}var bue=mu(function(u,d,v){Sh(u,d,v)}),Ex=mu(function(u,d,v,x){Sh(u,d,v,x)}),Eue=_o(function(u,d){var v={};if(u==null)return v;var x=!1;d=He(d,function(V){return V=sa(V,u),x||(x=V.length>1),V}),Hi(u,qy(u),v),x&&(v=ei(v,w|E|C,moe));for(var B=d.length;B--;)My(v,d[B]);return v});function Sue(u,d){return Sx(u,$h(ft(d)))}var Cue=_o(function(u,d){return u==null?{}:Xie(u,d)});function Sx(u,d){if(u==null)return{};var v=He(qy(u),function(x){return[x]});return d=ft(d),p3(u,v,function(x,B){return d(x,B[0])})}function xue(u,d,v){d=sa(d,u);var x=-1,B=d.length;for(B||(B=1,u=n);++x<B;){var V=u==null?n:u[Gi(d[x])];V===n&&(x=B,V=v),u=bo(V)?V.call(u):V}return u}function Aue(u,d,v){return u==null?u:dl(u,d,v)}function Tue(u,d,v,x){return x=typeof x=="function"?x:n,u==null?u:dl(u,d,v,x)}var Cx=O3(Ln),xx=O3(Ar);function Iue(u,d,v){var x=wt(u),B=x||ca(u)||_u(u);if(d=ft(d,4),v==null){var V=u&&u.constructor;B?v=x?new V:[]:vn(u)?v=bo(V)?gu(dh(u)):{}:v={}}return(B?G:zi)(u,function(q,Q,ue){return d(v,q,Q,ue)}),v}function kue(u,d){return u==null?!0:My(u,d)}function Pue(u,d,v){return u==null?u:_3(u,d,jy(v))}function Nue(u,d,v,x){return x=typeof x=="function"?x:n,u==null?u:_3(u,d,jy(v),x)}function wu(u){return u==null?[]:Qc(u,Ln(u))}function Due(u){return u==null?[]:Qc(u,Ar(u))}function Fue(u,d,v){return v===n&&(v=d,d=n),v!==n&&(v=ri(v),v=v===v?v:0),d!==n&&(d=ri(d),d=d===d?d:0),Ka(ri(u),d,v)}function Rue(u,d,v){return d=Eo(d),v===n?(v=d,d=0):v=Eo(v),u=ri(u),Lie(u,d,v)}function Bue(u,d,v){if(v&&typeof v!="boolean"&&hr(u,d,v)&&(d=v=n),v===n&&(typeof d=="boolean"?(v=d,d=n):typeof u=="boolean"&&(v=u,u=n)),u===n&&d===n?(u=0,d=1):(u=Eo(u),d===n?(d=u,u=0):d=Eo(d)),u>d){var x=u;u=d,d=x}if(v||u%1||d%1){var B=YC();return nr(u+B*(d-u+Xc("1e-"+((B+"").length-1))),d)}return Oy(u,d)}var Oue=yu(function(u,d,v){return d=d.toLowerCase(),u+(v?Ax(d):d)});function Ax(u){return cv(en(u).toLowerCase())}function Tx(u){return u=en(u),u&&u.replace(jd,na).replace(dy,"")}function Uue(u,d,v){u=en(u),d=Or(d);var x=u.length;v=v===n?x:Ka(Et(v),0,x);var B=v;return v-=d.length,v>=0&&u.slice(v,B)==d}function $ue(u){return u=en(u),u&&tu.test(u)?u.replace(Bi,wy):u}function Mue(u){return u=en(u),u&&Jo.test(u)?u.replace(Oi,"\\$&"):u}var Lue=yu(function(u,d,v){return u+(v?"-":"")+d.toLowerCase()}),Vue=yu(function(u,d,v){return u+(v?" ":"")+d.toLowerCase()}),jue=P3("toLowerCase");function zue(u,d,v){u=en(u),d=Et(d);var x=d?ji(u):0;if(!d||x>=d)return u;var B=(d-x)/2;return kh(mh(B),v)+u+kh(gh(B),v)}function Hue(u,d,v){u=en(u),d=Et(d);var x=d?ji(u):0;return d&&x<d?u+kh(d-x,v):u}function Gue(u,d,v){u=en(u),d=Et(d);var x=d?ji(u):0;return d&&x<d?kh(d-x,v)+u:u}function Wue(u,d,v){return v||d==null?d=0:d&&(d=+d),Qre(en(u).replace($a,""),d||0)}function que(u,d,v){return(v?hr(u,d,v):d===n)?d=1:d=Et(d),Uy(en(u),d)}function Kue(){var u=arguments,d=en(u[0]);return u.length<3?d:d.replace(u[1],u[2])}var Yue=yu(function(u,d,v){return u+(v?"_":"")+d.toLowerCase()});function Jue(u,d,v){return v&&typeof v!="number"&&hr(u,d,v)&&(d=v=n),v=v===n?ne:v>>>0,v?(u=en(u),u&&(typeof d=="string"||d!=null&&!av(d))&&(d=Or(d),!d&&Sr(u))?ua(lr(u),0,v):u.split(d,v)):[]}var Xue=yu(function(u,d,v){return u+(v?" ":"")+cv(d)});function Zue(u,d,v){return u=en(u),v=v==null?0:Ka(Et(v),0,u.length),d=Or(d),u.slice(v,v+d.length)==d}function Que(u,d,v){var x=M.templateSettings;v&&hr(u,d,v)&&(d=n),u=en(u),d=Vh({},d,x,U3);var B=Vh({},d.imports,x.imports,U3),V=Ln(B),q=Qc(B,V),Q,ue,Ee=0,Ce=d.interpolate||ou,ke="__p += '",Ve=bt((d.escape||ou).source+"|"+Ce.source+"|"+(Ce===nu?Md:ou).source+"|"+(d.evaluate||ou).source+"|$","g"),nt="//# sourceURL="+(yt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yy+"]")+`
805`;u.replace(Ve,function(pt,Dt,Lt,$r,pr,Mr){return Lt||(Lt=$r),ke+=u.slice(Ee,Mr).replace(Ma,by),Dt&&(Q=!0,ke+=`' +
806__e(`+Dt+`) +
807'`),pr&&(ue=!0,ke+=`';
808`+pr+`;
809__p += '`),Lt&&(ke+=`' +
810((__t = (`+Lt+`)) == null ? '' : __t) +
811'`),Ee=Mr+pt.length,pt}),ke+=`';
812`;var ht=yt.call(d,"variable")&&d.variable;if(!ht)ke=`with (obj) {
813`+ke+`
814}
815`;else if(oy.test(ht))throw new we(l);ke=(ue?ke.replace(Cn,""):ke).replace(tn,"$1").replace(Bc,"$1;"),ke="function("+(ht||"obj")+`) {
816`+(ht?"":`obj || (obj = {});
817`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join;
818function print() { __p += __j.call(arguments, '') }
819`:`;
820`)+ke+`return __p
821}`;var St=kx(function(){return Ge(V,nt+"return "+ke).apply(n,q)});if(St.source=ke,ov(St))throw St;return St}function ece(u){return en(u).toLowerCase()}function tce(u){return en(u).toUpperCase()}function nce(u,d,v){if(u=en(u),u&&(v||d===n))return Zr(u);if(!u||!(d=Or(d)))return u;var x=lr(u),B=lr(d),V=Kt(x,B),q=Ha(x,B)+1;return ua(x,V,q).join("")}function rce(u,d,v){if(u=en(u),u&&(v||d===n))return u.slice(0,sh(u)+1);if(!u||!(d=Or(d)))return u;var x=lr(u),B=Ha(x,lr(d))+1;return ua(x,0,B).join("")}function ice(u,d,v){if(u=en(u),u&&(v||d===n))return u.replace($a,"");if(!u||!(d=Or(d)))return u;var x=lr(u),B=Kt(x,lr(d));return ua(x,B).join("")}function oce(u,d){var v=Ie,x=xe;if(vn(d)){var B="separator"in d?d.separator:B;v="length"in d?Et(d.length):v,x="omission"in d?Or(d.omission):x}u=en(u);var V=u.length;if(Sr(u)){var q=lr(u);V=q.length}if(v>=V)return u;var Q=v-ji(x);if(Q<1)return x;var ue=q?ua(q,0,Q).join(""):u.slice(0,Q);if(B===n)return ue+x;if(q&&(Q+=ue.length-Q),av(B)){if(u.slice(Q).search(B)){var Ee,Ce=ue;for(B.global||(B=bt(B.source,en(Ld.exec(B))+"g")),B.lastIndex=0;Ee=B.exec(Ce);)var ke=Ee.index;ue=ue.slice(0,ke===n?Q:ke)}}else if(u.indexOf(Or(B),Q)!=Q){var Ve=ue.lastIndexOf(B);Ve>-1&&(ue=ue.slice(0,Ve))}return ue+x}function ace(u){return u=en(u),u&&Ua.test(u)?u.replace(Yr,nl):u}var sce=yu(function(u,d,v){return u+(v?" ":"")+d.toUpperCase()}),cv=P3("toUpperCase");function Ix(u,d,v){return u=en(u),d=v?n:d,d===n?el(u)?te(u):Pt(u):u.match(d)||[]}var kx=Tt(function(u,d){try{return O(u,n,d)}catch(v){return ov(v)?v:new we(v)}}),uce=_o(function(u,d){return G(d,function(v){v=Gi(v),yo(u,v,rv(u[v],u))}),u});function cce(u){var d=u==null?0:u.length,v=ft();return u=d?He(u,function(x){if(typeof x[1]!="function")throw new At(s);return[v(x[0]),x[1]]}):[],Tt(function(x){for(var B=-1;++B<d;){var V=u[B];if(O(V[0],this,x))return O(V[1],this,x)}})}function lce(u){return Bie(ei(u,w))}function lv(u){return function(){return u}}function fce(u,d){return u==null||u!==u?d:u}var dce=D3(),hce=D3(!0);function Tr(u){return u}function fv(u){return u3(typeof u=="function"?u:ei(u,w))}function pce(u){return l3(ei(u,w))}function gce(u,d){return f3(u,ei(d,w))}var mce=Tt(function(u,d){return function(v){return ll(v,u,d)}}),yce=Tt(function(u,d){return function(v){return ll(u,v,d)}});function dv(u,d,v){var x=Ln(d),B=Eh(d,x);v==null&&!(vn(d)&&(B.length||!x.length))&&(v=d,d=u,u=this,B=Eh(d,Ln(d)));var V=!(vn(v)&&"chain"in v)||!!v.chain,q=bo(u);return G(B,function(Q){var ue=d[Q];u[Q]=ue,q&&(u.prototype[Q]=function(){var Ee=this.__chain__;if(V||Ee){var Ce=u(this.__wrapped__),ke=Ce.__actions__=Cr(this.__actions__);return ke.push({func:ue,args:arguments,thisArg:u}),Ce.__chain__=Ee,Ce}return ue.apply(u,_t([this.value()],arguments))})}),u}function vce(){return mn._===this&&(mn._=Hre),this}function hv(){}function _ce(u){return u=Et(u),Tt(function(d){return d3(d,u)})}var wce=Hy(He),bce=Hy(ge),Ece=Hy(yn);function Px(u){return Xy(u)?ho(Gi(u)):Zie(u)}function Sce(u){return function(d){return u==null?n:Ya(u,d)}}var Cce=R3(),xce=R3(!0);function pv(){return[]}function gv(){return!1}function Ace(){return{}}function Tce(){return""}function Ice(){return!0}function kce(u,d){if(u=Et(u),u<1||u>dt)return[];var v=ne,x=nr(u,ne);d=ft(d),u-=ne;for(var B=ja(x,d);++v<u;)d(v);return B}function Pce(u){return wt(u)?He(u,Gi):Ur(u)?[u]:Cr(J3(en(u)))}function Nce(u){var d=++jre;return en(u)+d}var Dce=Ih(function(u,d){return u+d},0),Fce=Gy("ceil"),Rce=Ih(function(u,d){return u/d},1),Bce=Gy("floor");function Oce(u){return u&&u.length?bh(u,Tr,Py):n}function Uce(u,d){return u&&u.length?bh(u,ft(d,2),Py):n}function $ce(u){return Fr(u,Tr)}function Mce(u,d){return Fr(u,ft(d,2))}function Lce(u){return u&&u.length?bh(u,Tr,Ry):n}function Vce(u,d){return u&&u.length?bh(u,ft(d,2),Ry):n}var jce=Ih(function(u,d){return u*d},1),zce=Gy("round"),Hce=Ih(function(u,d){return u-d},0);function Gce(u){return u&&u.length?tr(u,Tr):0}function Wce(u,d){return u&&u.length?tr(u,ft(d,2)):0}return M.after=pse,M.ary=sx,M.assign=tue,M.assignIn=bx,M.assignInWith=Vh,M.assignWith=nue,M.at=rue,M.before=ux,M.bind=rv,M.bindAll=uce,M.bindKey=cx,M.castArray=Ase,M.chain=ix,M.chunk=Boe,M.compact=Ooe,M.concat=Uoe,M.cond=cce,M.conforms=lce,M.constant=lv,M.countBy=Gae,M.create=iue,M.curry=lx,M.curryRight=fx,M.debounce=dx,M.defaults=oue,M.defaultsDeep=aue,M.defer=gse,M.delay=mse,M.difference=$oe,M.differenceBy=Moe,M.differenceWith=Loe,M.drop=Voe,M.dropRight=joe,M.dropRightWhile=zoe,M.dropWhile=Hoe,M.fill=Goe,M.filter=qae,M.flatMap=Jae,M.flatMapDeep=Xae,M.flatMapDepth=Zae,M.flatten=ex,M.flattenDeep=Woe,M.flattenDepth=qoe,M.flip=yse,M.flow=dce,M.flowRight=hce,M.fromPairs=Koe,M.functions=hue,M.functionsIn=pue,M.groupBy=Qae,M.initial=Joe,M.intersection=Xoe,M.intersectionBy=Zoe,M.intersectionWith=Qoe,M.invert=mue,M.invertBy=yue,M.invokeMap=tse,M.iteratee=fv,M.keyBy=nse,M.keys=Ln,M.keysIn=Ar,M.map=Bh,M.mapKeys=_ue,M.mapValues=wue,M.matches=pce,M.matchesProperty=gce,M.memoize=Uh,M.merge=bue,M.mergeWith=Ex,M.method=mce,M.methodOf=yce,M.mixin=dv,M.negate=$h,M.nthArg=_ce,M.omit=Eue,M.omitBy=Sue,M.once=vse,M.orderBy=rse,M.over=wce,M.overArgs=_se,M.overEvery=bce,M.overSome=Ece,M.partial=iv,M.partialRight=hx,M.partition=ise,M.pick=Cue,M.pickBy=Sx,M.property=Px,M.propertyOf=Sce,M.pull=rae,M.pullAll=nx,M.pullAllBy=iae,M.pullAllWith=oae,M.pullAt=aae,M.range=Cce,M.rangeRight=xce,M.rearg=wse,M.reject=sse,M.remove=sae,M.rest=bse,M.reverse=tv,M.sampleSize=cse,M.set=Aue,M.setWith=Tue,M.shuffle=lse,M.slice=uae,M.sortBy=hse,M.sortedUniq=gae,M.sortedUniqBy=mae,M.split=Jue,M.spread=Ese,M.tail=yae,M.take=vae,M.takeRight=_ae,M.takeRightWhile=wae,M.takeWhile=bae,M.tap=Oae,M.throttle=Sse,M.thru=Rh,M.toArray=vx,M.toPairs=Cx,M.toPairsIn=xx,M.toPath=Pce,M.toPlainObject=wx,M.transform=Iue,M.unary=Cse,M.union=Eae,M.unionBy=Sae,M.unionWith=Cae,M.uniq=xae,M.uniqBy=Aae,M.uniqWith=Tae,M.unset=kue,M.unzip=nv,M.unzipWith=rx,M.update=Pue,M.updateWith=Nue,M.values=wu,M.valuesIn=Due,M.without=Iae,M.words=Ix,M.wrap=xse,M.xor=kae,M.xorBy=Pae,M.xorWith=Nae,M.zip=Dae,M.zipObject=Fae,M.zipObjectDeep=Rae,M.zipWith=Bae,M.entries=Cx,M.entriesIn=xx,M.extend=bx,M.extendWith=Vh,dv(M,M),M.add=Dce,M.attempt=kx,M.camelCase=Oue,M.capitalize=Ax,M.ceil=Fce,M.clamp=Fue,M.clone=Tse,M.cloneDeep=kse,M.cloneDeepWith=Pse,M.cloneWith=Ise,M.conformsTo=Nse,M.deburr=Tx,M.defaultTo=fce,M.divide=Rce,M.endsWith=Uue,M.eq=mi,M.escape=$ue,M.escapeRegExp=Mue,M.every=Wae,M.find=Kae,M.findIndex=Z3,M.findKey=sue,M.findLast=Yae,M.findLastIndex=Q3,M.findLastKey=uue,M.floor=Bce,M.forEach=ox,M.forEachRight=ax,M.forIn=cue,M.forInRight=lue,M.forOwn=fue,M.forOwnRight=due,M.get=sv,M.gt=Dse,M.gte=Fse,M.has=gue,M.hasIn=uv,M.head=tx,M.identity=Tr,M.includes=ese,M.indexOf=Yoe,M.inRange=Rue,M.invoke=vue,M.isArguments=Za,M.isArray=wt,M.isArrayBuffer=Rse,M.isArrayLike=xr,M.isArrayLikeObject=An,M.isBoolean=Bse,M.isBuffer=ca,M.isDate=Ose,M.isElement=Use,M.isEmpty=$se,M.isEqual=Mse,M.isEqualWith=Lse,M.isError=ov,M.isFinite=Vse,M.isFunction=bo,M.isInteger=px,M.isLength=Mh,M.isMap=gx,M.isMatch=jse,M.isMatchWith=zse,M.isNaN=Hse,M.isNative=Gse,M.isNil=qse,M.isNull=Wse,M.isNumber=mx,M.isObject=vn,M.isObjectLike=xn,M.isPlainObject=ml,M.isRegExp=av,M.isSafeInteger=Kse,M.isSet=yx,M.isString=Lh,M.isSymbol
821=Ur,M.isTypedArray=_u,M.isUndefined=Yse,M.isWeakMap=Jse,M.isWeakSet=Xse,M.join=eae,M.kebabCase=Lue,M.last=ni,M.lastIndexOf=tae,M.lowerCase=Vue,M.lowerFirst=jue,M.lt=Zse,M.lte=Qse,M.max=Oce,M.maxBy=Uce,M.mean=$ce,M.meanBy=Mce,M.min=Lce,M.minBy=Vce,M.stubArray=pv,M.stubFalse=gv,M.stubObject=Ace,M.stubString=Tce,M.stubTrue=Ice,M.multiply=jce,M.nth=nae,M.noConflict=vce,M.noop=hv,M.now=Oh,M.pad=zue,M.padEnd=Hue,M.padStart=Gue,M.parseInt=Wue,M.random=Bue,M.reduce=ose,M.reduceRight=ase,M.repeat=que,M.replace=Kue,M.result=xue,M.round=zce,M.runInContext=j,M.sample=use,M.size=fse,M.snakeCase=Yue,M.some=dse,M.sortedIndex=cae,M.sortedIndexBy=lae,M.sortedIndexOf=fae,M.sortedLastIndex=dae,M.sortedLastIndexBy=hae,M.sortedLastIndexOf=pae,M.startCase=Xue,M.startsWith=Zue,M.subtract=Hce,M.sum=Gce,M.sumBy=Wce,M.template=Que,M.times=kce,M.toFinite=Eo,M.toInteger=Et,M.toLength=_x,M.toLower=ece,M.toNumber=ri,M.toSafeInteger=eue,M.toString=en,M.toUpper=tce,M.trim=nce,M.trimEnd=rce,M.trimStart=ice,M.truncate=oce,M.unescape=ace,M.uniqueId=Nce,M.upperCase=sce,M.upperFirst=cv,M.each=ox,M.eachRight=ax,M.first=tx,dv(M,function(){var u={};return zi(M,function(d,v){yt.call(M.prototype,v)||(u[v]=d)}),u}(),{chain:!1}),M.VERSION=r,G(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){M[u].placeholder=M}),G(["drop","take"],function(u,d){Ot.prototype[u]=function(v){v=v===n?1:Rn(Et(v),0);var x=this.__filtered__&&!d?new Ot(this):this.clone();return x.__filtered__?x.__takeCount__=nr(v,x.__takeCount__):x.__views__.push({size:nr(v,ne),type:u+(x.__dir__<0?"Right":"")}),x},Ot.prototype[u+"Right"]=function(v){return this.reverse()[u](v).reverse()}}),G(["filter","map","takeWhile"],function(u,d){var v=d+1,x=v==je||v==ot;Ot.prototype[u]=function(B){var V=this.clone();return V.__iteratees__.push({iteratee:ft(B,3),type:v}),V.__filtered__=V.__filtered__||x,V}}),G(["head","last"],function(u,d){var v="take"+(d?"Right":"");Ot.prototype[u]=function(){return this[v](1).value()[0]}}),G(["initial","tail"],function(u,d){var v="drop"+(d?"":"Right");Ot.prototype[u]=function(){return this.__filtered__?new Ot(this):this[v](1)}}),Ot.prototype.compact=function(){return this.filter(Tr)},Ot.prototype.find=function(u){return this.filter(u).head()},Ot.prototype.findLast=function(u){return this.reverse().find(u)},Ot.prototype.invokeMap=Tt(function(u,d){return typeof u=="function"?new Ot(this):this.map(function(v){return ll(v,u,d)})}),Ot.prototype.reject=function(u){return this.filter($h(ft(u)))},Ot.prototype.slice=function(u,d){u=Et(u);var v=this;return v.__filtered__&&(u>0||d<0)?new Ot(v):(u<0?v=v.takeRight(-u):u&&(v=v.drop(u)),d!==n&&(d=Et(d),v=d<0?v.dropRight(-d):v.take(d-u)),v)},Ot.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ot.prototype.toArray=function(){return this.take(ne)},zi(Ot.prototype,function(u,d){var v=/^(?:filter|find|map|reject)|While$/.test(d),x=/^(?:head|last)$/.test(d),B=M[x?"take"+(d=="last"?"Right":""):d],V=x||/^find/.test(d);B&&(M.prototype[d]=function(){var q=this.__wrapped__,Q=x?[1]:arguments,ue=q instanceof Ot,Ee=Q[0],Ce=ue||wt(q),ke=function(Dt){var Lt=B.apply(M,_t([Dt],Q));return x&&Ve?Lt[0]:Lt};Ce&&v&&typeof Ee=="function"&&Ee.length!=1&&(ue=Ce=!1);var Ve=this.__chain__,nt=!!this.__actions__.length,ht=V&&!Ve,St=ue&&!nt;if(!V&&Ce){q=St?q:new Ot(this);var pt=u.apply(q,Q);return pt.__actions__.push({func:Rh,args:[ke],thisArg:n}),new Qr(pt,Ve)}return ht&&St?u.apply(this,Q):(pt=this.thru(ke),ht?x?pt.value()[0]:pt.value():pt)})}),G(["pop","push","shift","sort","splice","unshift"],function(u){var d=Dn[u],v=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",x=/^(?:pop|shift)$/.test(u);M.prototype[u]=function(){var B=arguments;if(x&&!this.__chain__){var V=this.value();return d.apply(wt(V)?V:[],B)}return this[v](function(q){return d.apply(wt(q)?q:[],B)})}}),zi(Ot.prototype,function(u,d){var v=M[d];if(v){var x=v.name+"";yt.call(pu,x)||(pu[x]=[]),pu[x].push({name:d,func:v})}}),pu[Th(n,N).name]=[{name:"wrapper",func:n}],Ot.prototype.clone=aie,Ot.prototype.reverse=sie,Ot.prototype.value=uie,M.prototype.at=Uae,M.prototype.chain=$ae,M.prototype.commit=Mae,M.prototype.next=Lae,M.prototype.plant=jae,M.prototype.reverse=zae,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Hae,M.prototype.first=M.prototype.head,rl&&(M.prototype[rl]=Vae),M},he=ce();fi?((fi.exports=he)._=he,cu._=he):mn._=he}).call(pn)}(Xl,Xl.exports);var eP=Xl.exports;const Kn=Lu(eP),Gu=()=>{const e=Kn.get(Do.state,"props.apiDomain","https://api.gofundraise.com");return{async searchWithParams(t){return t&&(t.region=Kn.get(Do.state,"props.region")?Do.state.props.region.toUpperCase():""),await kn.get(e+"/v1/beneficiaries/search",{params:t})},async searchByEvent(t,n,r=!1){var o={eventcampaignid:t,includeinactivebeneficiaries:r};return n&&n.length>0&&(o.tags=n),await this.searchWithParams(o)},async getBeneficiaryById(t){return await this.searchWithParams({beneficiaryid:t})},async getbeneficiaryForTiers(t,n){return t.pagesize=n,t.pageindex=1,await this.searchWithParams(t)}}},H1=()=>{const e=Kn.get(Do.state,"props.apiDomain","");return{async searchWithParams(t){return t&&(t.region=Kn.get(Do.state,"props.region")?Do.state.props.region.toUpperCase():""),await kn.get(e+"/v1/events/search",{params:t})},async getEventById(t){return await this.searchWithParams({eventcampaignid:t})}}};var G1={exports:{}};/*!
822  * vue-scrollto v2.20.0
823  * (c) 2019 Randjelovic Igor
824  * @license MIT
825  */(function(e,t){(function(n,r){e.exports=r()})(pn,function(){function n(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(oe){return typeof oe}:n=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},n(ne)}function r(){return r=Object.assign||function(ne){for(var oe=1;oe<arguments.length;oe++){var Pe=arguments[oe];for(var Oe in Pe)Object.prototype.hasOwnProperty.call(Pe,Oe)&&(ne[Oe]=Pe[Oe])}return ne},r.apply(this,arguments)}var o=4,i=.001,s=1e-7,l=10,h=11,f=1/(h-1),g=typeof Float32Array=="function";function w(ne,oe){return 1-3*oe+3*ne}function E(ne,oe){return 3*oe-6*ne}function C(ne){return 3*ne}function A(ne,oe,Pe){return((w(oe,Pe)*ne+E(oe,Pe))*ne+C(oe))*ne}function k(ne,oe,Pe){return 3*w(oe,Pe)*ne*ne+2*E(oe,Pe)*ne+C(oe)}function U(ne,oe,Pe,Oe,We){var Qe,se,be=0;do se=oe+(Pe-oe)/2,Qe=A(se,Oe,We)-ne,Qe>0?Pe=se:oe=se;
825while(Math.abs(Qe)>s&&++be<l);return se}function N(ne,oe,Pe,Oe){for(var We=0;We<o;++We){var Qe=k(oe,Pe,Oe);if(Qe===0)return oe;var se=A(oe,Pe,Oe)-ne;oe-=se/Qe}return oe}function R(ne){return ne}var L=function(oe,Pe,Oe,We){if(!(0<=oe&&oe<=1&&0<=Oe&&Oe<=1))throw new Error("bezier x values must be in [0, 1] range");if(oe===Pe&&Oe===We)return R;for(var Qe=g?new Float32Array(h):new Array(h),se=0;se<h;++se)Qe[se]=A(se*f,oe,Oe);function be(Ae){for(var Ne=0,Me=1,Ye=h-1;Me!==Ye&&Qe[Me]<=Ae;++Me)Ne+=f;--Me;var pe=(Ae-Qe[Me])/(Qe[Me+1]-Qe[Me]),Le=Ne+pe*f,st=k(Le,oe,Oe);return st>=i?N(Ae,Le,oe,Oe):st===0?Le:U(Ae,Ne,Ne+f,oe,Oe)}return function(Ne){return Ne===0?0:Ne===1?1:A(be(Ne),Pe,We)}},z={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},W=!1;try{var ee=Object.defineProperty({},"passive",{get:function(){W=!0}});window.addEventListener("test",null,ee)}catch{}var b={$:function(oe){return typeof oe!="string"?oe:document.querySelector(oe)},on:function(oe,Pe,Oe){var We=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};Pe instanceof Array||(Pe=[Pe]);for(var Qe=0;Qe<Pe.length;Qe++)oe.addEventListener(Pe[Qe],Oe,W?We:!1)},off:function(oe,Pe,Oe){Pe instanceof Array||(Pe=[Pe]);for(var We=0;We<Pe.length;We++)oe.removeEventListener(Pe[We],Oe)},cumulativeOffset:function(oe){var Pe=0,Oe=0;do Pe+=oe.offsetTop||0,Oe+=oe.offsetLeft||0,oe=oe.offsetParent;while(oe);return{top:Pe,left:Oe}}},fe=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],ae={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function Ie(ne){ae=r({},ae,ne)}var xe=function(){var oe,Pe,Oe,We,Qe,se,be,Ae,Ne,Me,Ye,pe,Le,st,Bt,et,I,m,y,P,$,K,J,me=function(Cn){Ae&&(J=Cn,P=!0)},Be,Ze,ie,de;function $e(hn){var Cn=hn.scrollTop;return hn.tagName.toLowerCase()==="body"&&(Cn=Cn||document.documentElement.scrollTop),Cn}function ut(hn){var Cn=hn.scrollLeft;return hn.tagName.toLowerCase()==="body"&&(Cn=Cn||document.documentElement.scrollLeft),Cn}function lt(){$=b.cumulativeOffset(Pe),K=b.cumulativeOffset(oe),pe&&(Bt=K.left-$.left+se,m=Bt-st),Le&&(I=K.top-$.top+se,y=I-et)}function gt(hn){if(P)return qt();Ze||(Ze=hn),Qe||lt(),ie=hn-Ze,de=Math.min(ie/Oe,1),de=Be(de),Gn(Pe,et+y*de,st+m*de),ie<Oe?window.requestAnimationFrame(gt):qt()}function qt(){P||Gn(Pe,I,Bt),Ze=!1,b.off(Pe,fe,me),P&&Ye&&Ye(J,oe),!P&&Me&&Me(oe)}function Gn(hn,Cn,tn){Le&&(hn.scrollTop=Cn),pe&&(hn.scrollLeft=tn),hn.tagName.toLowerCase()==="body"&&(Le&&(document.documentElement.scrollTop=Cn),pe&&(document.documentElement.scrollLeft=tn))}function Ri(hn,Cn){var tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(Cn)==="object"?tn=Cn:typeof Cn=="number"&&(tn.duration=Cn),oe=b.$(hn),!oe)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+hn);if(Pe=b.$(tn.container||ae.container),Oe=tn.hasOwnProperty("duration")?tn.duration:ae.duration,Qe=tn.hasOwnProperty("lazy")?tn.lazy:ae.lazy,We=tn.easing||ae.easing,se=tn.hasOwnProperty("offset")?tn.offset:ae.offset,be=tn.hasOwnProperty("force")?tn.force!==!1:ae.force,Ae=tn.hasOwnProperty("cancelable")?tn.cancelable!==!1:ae.cancelable,Ne=tn.onStart||ae.onStart,Me=tn.onDone||ae.onDone,Ye=tn.onCancel||ae.onCancel,pe=tn.x===void 0?ae.x:tn.x,Le=tn.y===void 0?ae.y:tn.y,typeof se=="function"&&(se=se(oe,Pe)),st=ut(Pe),et=$e(Pe),lt(),P=!1,!be){var Bc=Pe.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:Pe.offsetHeight,Yr=et,Bi=Yr+Bc,Ua=I-se,tu=Ua+oe.offsetHeight;if(Ua>=Yr&&tu<=Bi){Me&&Me(oe);return}}if(Ne&&Ne(oe),!y&&!m){Me&&Me(oe);return}return typeof We=="string"&&(We=z[We]||z.ease),Be=L.apply(L,We),b.on(Pe,fe,me,{passive:!0}),window.requestAnimationFrame(gt),function(){J=null,P=!0}}return Ri},De=xe(),ye=[];function je(ne){for(var oe=0;oe<ye.length;++oe)if(ye[oe].el===ne)return ye.splice(oe,1),!0;return!1}function rt(ne){for(var oe=0;oe<ye.length;++oe)if(ye[oe].el===ne)return ye[oe]}function ot(ne){var oe=rt(ne);return oe||(ye.push(oe={el:ne,binding:{}}),oe)}function Je(ne){var oe=ot(this).binding;if(oe.value){if(ne.preventDefault(),typeof oe.value=="string")return De(oe.value);De(oe.value.el||oe.value.element,oe.value)}}var dt={bind:function(oe,Pe){ot(oe).binding=Pe,b.on(oe,"click",Je)},unbind:function(oe){je(oe),b.off(oe,"click",Je)},update:function(oe,Pe){ot(oe).binding=Pe}},mt={bind:dt.bind,unbind:dt.unbind,update:dt.update,beforeMount:dt.bind,unmounted:dt.unbind,updated:dt.update,scrollTo:De,bindings:ye},Ue=function(oe,Pe){Pe&&Ie(Pe),oe.directive("scroll-to",mt);var Oe=oe.config.globalProperties||oe.prototype;Oe.$scrollTo=mt.scrollTo};return typeof window<"u"&&window.Vue&&(window.VueScrollTo=mt,window.VueScrollTo.setDefaults=Ie,window.VueScrollTo.scroller=xe,window.Vue.use&&window.Vue.use(Ue)),mt.install=Ue,mt})})(G1);var tP=G1.exports;const Zp=Lu(tP);var Qp={};Object.defineProperty(Qp,"__esModule",{value:!0});var nP=Qp.clickOutSide={mounted:function(t,n,r){t.clickOutsideEvent=function(o){t==o.target||t.contains(o.target)||n.value(o,t)},document.addEventListener("click",t.clickOutsideEvent)},unmounted:function(t){document.removeEventListener("click",t.clickOutsideEvent)}},eg=Qp.default=nP;const fle="",rP={directives:{ClickOutside:eg,debounce:d1.vue3Debounce({lock:!0})},props:{beneficiaryAutoCompleteList:{type:Array,default:()=>[]},loadingSearch:{type:Boolean,default:!1},valueEnterSearch:{type:Boolean,default:!1},textValue:{type:String,default:""}},data(){return{searchText:""}}
825,watch:{textValue(e){this.searchText=e}},methods:{clickedOutside(){this.$emit("clickedOutside")},itemSelected(e){this.$emit("itemSelected",e)},searchForItems(){(!this.searchText||this.searchText==="")&&this.$emit("textChanged",""),this.$emit("textChanged",this.searchText)}}},W1=e=>(a.pushScopeId("data-v-08cb4217"),e=e(),a.popScopeId(),e),iP={class:"input-group"},oP=W1(()=>a.createElementVNode("span",{class:"input-group-btn"},[a.createElementVNode("button",{class:"btn btn-search rounded-0",type:"button"})],-1)),aP={key:0,class:"image_loading_search"},sP=[W1(()=>a.createElementVNode("img",{src:"https://www.gofundraise.com.au/Content/images/loader-orange.gif",alt:""},null,-1))],uP={key:1,class:"search_result"},cP={class:"list-unstyled mb-0"},lP=["onClick"];function fP(e,t,n,r,o,i){const s=a.resolveDirective("debounce"),l=a.resolveDirective("click-outside");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",iP,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=h=>o.searchText=h),type:"text",class:"form-control et-gf-search",placeholder:"Search"},null,512),[[a.vModelText,o.searchText],[s,i.searchForItems]]),oP]),n.loadingSearch?(a.openBlock(),a.createElementBlock("span",aP,sP)):a.createCommentVNode("",!0),n.valueEnterSearch?a.withDirectives((a.openBlock(),a.createElementBlock("div",uP,[a.createElementVNode("ul",cP,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.beneficiaryAutoCompleteList,(h,f)=>(a.openBlock(),a.createElementBlock("li",{key:f,onClick:g=>i.itemSelected(h)},a.toDisplayString(h.BeneficiaryName),9,lP))),128))])])),[[l,i.clickedOutside]]):a.createCommentVNode("",!0)])}const dP=Ft(rP,[["render",fP],["__scopeId","data-v-08cb4217"]]),hP={props:{message:{type:String,default:""}},methods:{clicked(e){e.preventDefault(),this.$emit("clicked")}}},pP={id:"refineSearchMsg",class:"col text-center alert alert-warning primary"};function gP(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",pP,[a.createTextVNode(a.toDisplayString(n.message)+" ",1),a.createElementVNode("a",{class:"alert-link",href:"#",onClick:t[0]||(t[0]=(...s)=>i.clicked&&i.clicked(...s))},"Back to Top")])}const mP=Ft(hP,[["render",gP]]);function q1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(n),!0).forEach(function(r){mr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zl(e){"@babel/helpers - typeof";return Zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zl(e)}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function vP(e,t){if(e==null)return{};var n=yP(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tg(e){return _P(e)||wP(e)||bP(e)||EP()}function _P(e){if(Array.isArray(e))return ng(e)}function wP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bP(e,t){if(e){if(typeof e=="string")return ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ng(e,t)}}function ng(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
826In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var SP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},K1={exports:{}};
826(function(e){(function(t){var n=function(N,R,L){if(!f(R)||w(R)||E(R)||C(R)||h(R))return R;var z,W=0,ee=0;if(g(R))for(z=[],ee=R.length;W<ee;W++)z.push(n(N,R[W],L));else{z={};for(var b in R)Object.prototype.hasOwnProperty.call(R,b)&&(z[N(b,L)]=n(N,R[b],L))}return z},r=function(N,R){R=R||{};var L=R.separator||"_",z=R.split||/(?=[A-Z])/;return N.split(z).join(L)},o=function(N){return A(N)?N:(N=N.replace(/[\-_\s]+(.)?/g,function(R,L){return L?L.toUpperCase():""}),N.substr(0,1).toLowerCase()+N.substr(1))},i=function(N){var R=o(N);return R.substr(0,1).toUpperCase()+R.substr(1)},s=function(N,R){return r(N,R).toLowerCase()},l=Object.prototype.toString,h=function(N){return typeof N=="function"},f=function(N){return N===Object(N)},g=function(N){return l.call(N)=="[object Array]"},w=function(N){return l.call(N)=="[object Date]"},E=function(N){return l.call(N)=="[object RegExp]"},C=function(N){return l.call(N)=="[object Boolean]"},A=function(N){return N=N-0,N===N},k=function(N,R){var L=R&&"process"in R?R.process:R;return typeof L!="function"?N:function(z,W){return L(z,N,W)}},U={camelize:o,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(N,R){return n(k(o,R),N)},decamelizeKeys:function(N,R){return n(k(s,R),N,R)},pascalizeKeys:function(N,R){return n(k(i,R),N)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=U:t.humps=U})(SP)})(K1);var CP=K1.exports,xP=["class","style"];function AP(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=CP.camelize(n.slice(0,r)),i=n.slice(r+1).trim();return t[o]=i,t},{})}function TP(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(h){return rg(h)}),o=Object.keys(e.attributes||{}).reduce(function(h,f){var g=e.attributes[f];switch(f){case"class":h.class=TP(g);break;case"style":h.style=AP(g);break;default:h.attrs[f]=g}return h},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,l=vP(n,xP);return a.h(e.tag,si(si(si({},t),{},{class:o.class,style:si(si({},o.style),s)},o.attrs),l),r)}var Y1=!1;try{Y1={}.NODE_ENV==="production"}catch{}function IP(){if(!Y1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Wu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?mr({},e,t):{}}function kP(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},mr(t,"fa-".concat(e.size),e.size!==null),mr(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),mr(t,"fa-pull-".concat(e.pull),e.pull!==null),mr(t,"fa-swap-opacity",e.swapOpacity),mr(t,"fa-bounce",e.bounce),mr(t,"fa-shake",e.shake),mr(t,"fa-beat",e.beat),mr(t,"fa-fade",e.fade),mr(t,"fa-beat-fade",e.beatFade),mr(t,"fa-flash",e.flash),mr(t,"fa-spin-pulse",e.spinPulse),mr(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function J1(e){if(e&&Zl(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Ll.icon)return Ll.icon(e);if(e===null)return null;if(Zl(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var X1=a.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,o=a.computed(function(){return J1(t.icon)}),i=a.computed(function(){return Wu("classes",kP(t))}),s=a.computed(function(){return Wu("transform",typeof t.transform=="string"?Ll.transform(t.transform):t.transform)}),l=a.computed(function(){return Wu("mask",J1(t.mask))}),h=a.computed(function(){return PI(o.value,si(si(si(si({},i.value),s.value),l.value),{},{symbol:t.symbol,title:t.title}))});a.watch(h,function(g){if(!g)return IP("Could not find one or more icon(s)",o.value,l.value)},{immediate:!0});var f=a.computed(function(){return h.value?rg(h.value.abstract[0],{},r):null});return function(){return f.value}}});a.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,o=l1.familyPrefix,i=a.computed(function(){return["".concat(o,"-layers")].concat(tg(t.fixedWidth?["".concat(o,"-fw")]:[]))});return function(){return a.h("div",{class:i.value},r.default?r.default():[])}}}),a.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,o=l1.familyPrefix,i=a.computed(function(){return Wu("classes",[].concat(tg(t.counter?["".concat(o,"-layers-counter")]:[]),tg(t.position?["".concat(o,"-layers-").concat(t.position)]:[])))}),s=a.computed(function(){return Wu("transform",typeof t.transform=="string"?Ll.transform(t.transform):t.transform)}),l=a.computed(function(){var f=NI(t.value.toString(),si(si({},s.value),i.value)),g=f.abstract;return t.counter&&(g[0].attributes.class=g[0].attributes.class.replace("fa-layers-text","")),g[0]}),h=a.computed(function(){return rg(l.value,{},r)});return function(){return h.value}}});const hle="",PP={components:{FontAwesomeIcon:X1},props:{beneficiaryName:{type:String,default:""},allowDeselection:{type:Boolean,default:!0},imagePath:{type:String,default:""},isSelected:{type:Boolean,default:!1},cardStyle:{type:String,default:"square"},imageSize:{type:String,default:"200px"}},computed:{logoSize(){return{width:this.imageSize,height:this.imageSize}}}},NP=["title"],DP={class:"pt-1 success_hv"},FP={class:"pt-1 remove_item_card"},RP=["src"],BP={class:"mt-2 px-0 d-block"},OP={class:"beneficiary-name px-2 text-center"};function UP(e,t,n,r,o,i){const s=a.resolveComponent("font-awesome-icon");return a.openBlock(),a.createElementBlock("div",{title:n.beneficiaryName,class:a.normalizeClass(["beneficiary-card cursor-pointer",n.isSelected?"card_selected":""])},[a.withDirectives(a.createElementVNode("span",DP,null,512),[[a.vShow,!n.isSelected]]),a.withDirectives(a.createElementVNode("span",FP,[a.createVNode(s,{icon:["far","times-circle"],class:"success_hv"})],512),[[a.vShow,n.isSelected&&n.allowDeselection]]),a.createElementVNode("div",{style:a.normalizeStyle(i.logoSize),class:"beneficiary-logo"},[a.createElementVNode("img",{src:n.imagePath,alt:"Card image cap"},null,8,RP)],4),a.createElementVNode("div",BP,[a.createElementVNode("p",OP,a.toDisplayString(n.beneficiaryName),1)])],10,NP)}const $P=Ft(PP,[["render",UP],["__scopeId","data-v-283915f6"]]),ple="",MP={name:"ProgressBar",props:{styling:{type:Object,default:()=>null},progressValue:{type:Number,default:0}}
826,data(){return{key:0,style:{height:"15px",borderRadius:"15px",trackColour:"",fillColour:""}}},watch:{styling(e){this.setStyles(e)}},mounted(){this.styling&&this.setStyles(this.styling)},methods:{setStyles(e){var t=getComputedStyle(document.getElementsByClassName("gf-driver-button")[0],null).getPropertyValue("background-color");!e.fillColour||e.fillColour==""?this.style.fillColour=t:this.style.fillColour=e.fillColour,!e.trackColour||e.trackColour==""?this.style.trackColour=this.getRgb(this.style.fillColour).replace("rgb","rgba").replace(")",", 0.25)"):this.style.trackColour=e.trackColour,e.height&&(this.style.height=e.height),e.borderRadius&&(this.style.borderRadius=e.borderRadius)},getRgb(e){if(e.startsWith("rgb"))return e;if(/^#([a-f0-9]{3}){1,2}$/.test(e)){e.length==4&&(e="#"+[e[1],e[1],e[2],e[2],e[3],e[3]].join(""));var t="0x"+e.substring(1);return"rgb("+[t>>16&255,t>>8&255,t&255].join(",")+")"}}}},LP=(e=>(a.pushScopeId("data-v-62e0c630"),e=e(),a.popScopeId(),e))(()=>a.createElementVNode("div",{class:"gf-driver-button",style:{display:"none"}},null,-1)),VP={class:"row mx-2 py-0"},jP=["data-done"];function zP(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",null,[LP,a.createElementVNode("div",VP,[a.createElementVNode("div",{class:"progress col-12 px-0",style:a.normalizeStyle({height:o.style.height,"background-color":o.style.trackColour})},[a.createElementVNode("div",{class:"progress-done",style:a.normalizeStyle({width:n.progressValue+"%","background-color":o.style.fillColour}),"data-done":n.progressValue},null,12,jP)],4)])])}const HP=Ft(MP,[["render",zP],["__scopeId","data-v-62e0c630"]]),qu={BENEFICIARYBOXRAISE_DRIVERBUTTON_DEFAULTS:{text:"Donation",urlLink:"/payments/donate/beneficiary/{{Id}}",show:!0},BENEFICIARYBOXRAISE_SECONDARYBUTTON_DEFAULTS:{text:"Start Fundraising",urlLink:"/pages/create?cid={{Id}}",show:!0},BENEFICIARYBOXRAISE_AMOUNT_DEFAULTS:{text:"Raised so far",show:!0},DriverButtonBackgroundColour:"#f47d32",SecondaryButtonColour:"#1a3a49"},mle="",GP={components:{FontAwesomeIcon:X1,ProgressBar:HP},props:{beneficiary:{type:Object,default:()=>{}},beneficiaryName:{type:String,default:""},allowDeselection:{type:Boolean,default:!0},imagePath:{type:String,default:""},isSelected:{type:Boolean,default:!1},imageSize:{type:String,default:"200px"},minWidth:{type:String,default:"210px"},componentSettings:{type:Object,default:()=>{}}},data(){return{settings:{showLoadingBar:!1,driverButton:{},secondaryButton:{},amount:{}},progressValue:0,progressBarSettings:{styleSettings:{fillColour:"#117ec2",trackColour:"#ddd"}}}},computed:{totalRaised(){if(!this.beneficiary.BeneficiaryTotal)return"0";var e=this.beneficiary.BeneficiaryTotal;return e===""&&!isNaN(e)?"0":this.formattedFinancialFigure(e)},driverButtonBackground(){return this.beneficiary.BeneficiaryTheme&&this.beneficiary.BeneficiaryTheme.DriverButtonBackgroundColour?this.beneficiary.BeneficiaryTheme.DriverButtonBackgroundColour:qu.DriverButtonBackgroundColour},secondaryButtonBackground(){return this.beneficiary.BeneficiaryTheme&&this.beneficiary.BeneficiaryTheme.SecondaryButtonColour?this.beneficiary.BeneficiaryTheme.SecondaryButtonColour:qu.SecondaryButtonColour},logoSize(){return{width:this.imageSize,height:this.imageSize}},cardStyle(){return{"min-width":this.minWidth}},donationLink(){return this.buildLink(this.settings.driverButton.urlLink)},startFrdLink(){return this.buildLink(this.settings.secondaryButton.urlLink)},benficiaryProfileLink(){return this.beneficiary.BeneficiaryUrl}},created(){this.settings.driverButton=Object.assign(this.settings.driverButton,qu.BENEFICIARYBOXRAISE_DRIVERBUTTON_DEFAULTS),this.settings.secondaryButton=Object.assign(this.settings.secondaryButton,qu.BENEFICIARYBOXRAISE_SECONDARYBUTTON_DEFAULTS),this.settings.amount=Object.assign(this.settings.amount,qu.BENEFICIARYBOXRAISE_AMOUNT_DEFAULTS)},mounted(){this.componentSettings&&(this.componentSettings.showLoadingBar&&(this.settings.showLoadingBar=this.componentSettings.showLoadingBar),this.componentSettings.driverButton&&(this.settings.driverButton=this.componentSettings.driverButton),this.componentSettings.secondaryButton&&(this.settings.secondaryButton=this.componentSettings.secondaryButton),this.componentSettings.amount&&(this.settings.amount=this.componentSettings.amount),this.loadProgressbarData())},methods:{buildLink(e){return e.replace("{{Id}}",this.beneficiary.BeneficiaryAccountId)},loadProgressbarData(){var e=this.beneficiary.BeneficiaryTotal,t=this.beneficiary.BeneficiaryTarget,n=e===""&&!isNaN(e)?0:parseInt(e),r=t===""&&!isNaN(t)?100:parseInt(t);this.progressValue=r?parseInt(n/r*100):0},formattedFinancialFigure(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}}},WP=e=>(a.pushScopeId("data-v-29e4f4a0"),e=e(),a.popScopeId(),e),qP={class:"pt-1 success_hv"},KP={class:"pt-1 remove_item_card"},YP=["data-charity-id"],JP={class:"search-item-image"},XP=["href"],ZP={class:"search-item-desc"},QP={class:"event-theme-h3-font-family"},eN=["href"],tN={class:"search-item-btns"},nN=["href"],rN=WP(()=>a.createElementVNode("span",{class:"fa fa-heart"},null,-1)),iN=["href"],oN={class:"raised-amount"},aN={key:0,class:"amount-text"},sN={key:1,class:"amount-value"}
826,uN={id:"GfEcbTotal"};function cN(e,t,n,r,o,i){const s=a.resolveComponent("font-awesome-icon"),l=a.resolveComponent("ProgressBar");return a.openBlock(),a.createElementBlock("div",{class:"cards span_1_of_5",style:a.normalizeStyle(i.cardStyle)},[a.withDirectives(a.createElementVNode("span",qP,null,512),[[a.vShow,!n.isSelected]]),a.withDirectives(a.createElementVNode("span",KP,[a.createVNode(s,{icon:["far","times-circle"],class:"success_hv"})],512),[[a.vShow,n.isSelected&&n.allowDeselection]]),a.createElementVNode("div",{class:"beneficiary-card cursor-pointer","data-charity-id":n.beneficiary.BeneficiaryAccountId},[a.createElementVNode("div",JP,[a.createElementVNode("a",{class:"charity",href:i.benficiaryProfileLink},[a.createElementVNode("div",{class:"item-image",style:a.normalizeStyle({backgroundImage:"url("+n.imagePath+")"})},null,4)],8,XP)]),a.createElementVNode("div",ZP,[a.createElementVNode("h3",QP,[a.createElementVNode("a",{class:"charity",href:i.benficiaryProfileLink},a.toDisplayString(n.beneficiaryName),9,eN)]),o.settings.showLoadingBar?(a.openBlock(),a.createBlock(l,{key:0,"progress-value":o.progressValue,styling:o.progressBarSettings.styleSettings},null,8,["progress-value","styling"])):a.createCommentVNode("",!0),a.createElementVNode("div",tN,[o.settings.driverButton.show?(a.openBlock(),a.createElementBlock("a",{key:0,style:a.normalizeStyle({background:i.driverButtonBackground}),href:i.donationLink,class:"search-item-donate transition event-theme-driver-button-font-family"},[rN,a.createTextVNode(a.toDisplayString(o.settings.driverButton.text),1)],12,nN)):a.createCommentVNode("",!0),o.settings.secondaryButton.show?(a.openBlock(),a.createElementBlock("a",{key:1,style:a.normalizeStyle({background:i.secondaryButtonBackground}),href:i.startFrdLink,class:"search-item-fundraise transition event-theme-driver-button-font-family"},a.toDisplayString(o.settings.secondaryButton.text),13,iN)):a.createCommentVNode("",!0),a.createElementVNode("div",oN,[o.settings.amount.text?(a.openBlock(),a.createElementBlock("h4",aN,a.toDisplayString(o.settings.amount.text),1)):a.createCommentVNode("",!0),o.settings.amount.show?(a.openBlock(),a.createElementBlock("span",sN,[a.createTextVNode("$"),a.createElementVNode("span",uN,a.toDisplayString(i.totalRaised),1)])):a.createCommentVNode("",!0)])])])],8,YP)],4)}var lN=[{name:"beneficiaryCard",component:$P},{name:"beneficiaryBoxRaise",component:Ft(GP,[["render",cN],["__scopeId","data-v-29e4f4a0"]])}];const Z1={LoadComponent:function(e){return lN.find(t=>t.name.toLowerCase()===e.toLowerCase()).component}},vle="",fN={props:{modelValue:{type:Number},pageCount:{type:Number,required:!0},forcePage:{type:Number},clickHandler:{type:Function,default:()=>{}},pageRange:{type:Number,default:5},marginPages:{type:Number,default:1},prevText:{type:String,default:"Prev"},nextText:{type:String,default:"Next"},breakViewText:{type:String,default:"..."},containerClass:{type:String},pageClass:{type:String},pageLinkClass:{type:String,default:"page-link"},prevClass:{type:String},prevLinkClass:{type:String,default:"page-link"},nextClass:{type:String},nextLinkClass:{type:String,default:"page-link"},breakViewClass:{type:String},breakViewLinkClass:{type:String},activeClass:{type:String,default:"active"},disabledClass:{type:String,default:"disabled"},noLiSurround:{type:Boolean,default:!1},firstLastButton:{type:Boolean,default:!1},firstButtonText:{type:String,default:"First"},lastButtonText:{type:String,default:"Last"},hidePrevNext:{type:Boolean,default:!1}},data(){return{innerValue:1}},computed:{selected:{get:function(){return this.modelValue||this.innerValue},set:function(e){this.innerValue=e}},pages:function(){let e={};if(this.pageCount<=this.pageRange)for(let t=0;t<this.pageCount;t++){let n={index:t,content:t+1,selected:t===this.selected-1};e[t]=n}else{const t=Math.floor(this.pageRange/2);let n=s=>{let l={index:s,content:s+1,selected:s===this.selected-1};e[s]=l},r=s=>{let l={disabled:!0,breakView:!0,index:s};e[s]=l};for(let s=0;s<this.marginPages;s++)n(s);let o=0;this.selected-t>0&&(o=this.selected-1-t);let i=o+this.pageRange-1;i>=this.pageCount&&(i=this.pageCount-1,o=i-this.pageRange+1);for(let s=o;s<=i&&s<=this.pageCount-1;s++)n(s);o>this.marginPages&&r(o-1),i+1<this.pageCount-this.marginPages&&r(i+1);for(let s=this.pageCount-1;s>=this.pageCount-this.marginPages;s--)n(s)}return e}},beforeUpdate(){this.forcePage!==void 0&&this.forcePage!==this.selected&&(this.selected=this.forcePage)},methods:{handlePageSelected(e){this.selected!==e&&(this.innerValue=e,this.$emit("input",e),this.clickHandler(e))},prevPage(){this.selected<=1||this.handlePageSelected(this.selected-1)},nextPage(){this.selected>=this.pageCount||this.handlePageSelected(this.selected+1)},firstPageSelected(){return this.selected===1},lastPageSelected(){return this.selected===this.pageCount||this.pageCount===0},selectFirstPage(){this.selected<=1||this.handlePageSelected(1)},selectLastPage(){this.selected>=this.pageCount||this.handlePageSelected(this.pageCount)}}},dN=["tabindex"],hN=["tabindex"],pN=["onClick","onKeyup"],gN=["tabindex"],mN=["tabindex"],yN=["onClick","onKeyup"],vN=["innerHTML"];function _N(e,t,n,r,o,i){return n.noLiSurround?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(n.containerClass)},[n.firstLastButton?(a.openBlock(),a.createElementBlock("a",{key:0,class:a.normalizeClass([n.pageLinkClass,i.firstPageSelected()?n.disabledClass:""]),tabindex:"0",onClick:t[8]||(t[8]=s=>i.selectFirstPage()),onKeyup:t[9]||(t[9]=a.withKeys(s=>i.selectFirstPage(),["enter"]))},a.toDisplayString(n.firstButtonText),35)):a.createCommentVNode("",!0),i.firstPageSelected()&&n.hidePrevNext?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:1,class:a.normalizeClass([n.prevLinkClass,i.firstPageSelected()?n.disabledClass:""]),tabindex:"0",onClick:t[10
826]||(t[10]=s=>i.prevPage()),onKeyup:t[11]||(t[11]=a.withKeys(s=>i.prevPage(),["enter"]))},a.toDisplayString(n.prevText),35)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.pages,s=>(a.openBlock(),a.createElementBlock("span",{key:`breakview-${s.index}`},[s.breakView?(a.openBlock(),a.createElementBlock("a",{key:0,class:a.normalizeClass([n.pageLinkClass,n.breakViewLinkClass,s.disabled?n.disabledClass:""]),tabindex:"0"},[a.renderSlot(e.$slots,"breakViewContent",{},()=>[a.createTextVNode(a.toDisplayString(n.breakViewText),1)],!0)],2)):s.disabled?(a.openBlock(),a.createElementBlock("a",{key:1,class:a.normalizeClass([n.pageLinkClass,s.selected?n.activeClass:"",n.disabledClass]),tabindex:"0"},a.toDisplayString(s.content),3)):(a.openBlock(),a.createElementBlock("a",{key:2,class:a.normalizeClass([n.pageLinkClass,s.selected?n.activeClass:""]),tabindex:"0",onClick:l=>i.handlePageSelected(s.index+1),onKeyup:a.withKeys(l=>i.handlePageSelected(s.index+1),["enter"])},a.toDisplayString(s.content),43,yN))]))),128)),i.lastPageSelected()&&n.hidePrevNext?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:2,class:a.normalizeClass([n.nextLinkClass,i.lastPageSelected()?n.disabledClass:""]),tabindex:"0",onClick:t[12]||(t[12]=s=>i.nextPage()),onKeyup:t[13]||(t[13]=a.withKeys(s=>i.nextPage(),["enter"])),innerHTML:n.nextText},null,42,vN)),n.firstLastButton?(a.openBlock(),a.createElementBlock("a",{key:3,class:a.normalizeClass([n.pageLinkClass,i.lastPageSelected()?n.disabledClass:""]),tabindex:"0",onClick:t[14]||(t[14]=s=>i.selectLastPage()),onKeyup:t[15]||(t[15]=a.withKeys(s=>i.selectLastPage(),["enter"]))},a.toDisplayString(n.lastButtonText),35)):a.createCommentVNode("",!0)],2)):(a.openBlock(),a.createElementBlock("ul",{key:0,class:a.normalizeClass(n.containerClass)},[n.firstLastButton?(a.openBlock(),a.createElementBlock("li",{key:0,class:a.normalizeClass([n.pageClass,i.firstPageSelected()?n.disabledClass:""])},[a.createElementVNode("a",{class:a.normalizeClass(n.pageLinkClass),tabindex:i.firstPageSelected()?-1:0,onClick:t[0]||(t[0]=s=>i.selectFirstPage()),onKeyup:t[1]||(t[1]=a.withKeys(s=>i.selectFirstPage(),["enter"]))},a.toDisplayString(n.firstButtonText),43,dN)],2)):a.createCommentVNode("",!0),i.firstPageSelected()&&n.hidePrevNext?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("li",{key:1,class:a.normalizeClass([n.prevClass,i.firstPageSelected()?n.disabledClass:""])},[a.createElementVNode("a",{class:a.normalizeClass(n.prevLinkClass),tabindex:i.firstPageSelected()?-1:0,onClick:t[2]||(t[2]=s=>i.prevPage()),onKeyup:t[3]||(t[3]=a.withKeys(s=>i.prevPage(),["enter"]))},a.toDisplayString(n.prevText),43,hN)],2)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.pages,s=>(a.openBlock(),a.createElementBlock("li",{key:`page-${s.index}`,class:a.normalizeClass(["page-item",n.pageClass,s.selected?n.activeClass:"",s.disabled?n.disabledClass:"",s.breakView?n.breakViewClass:""])},[s.breakView?(a.openBlock(),a.createElementBlock("a",{key:0,class:a.normalizeClass([n.pageLinkClass,n.breakViewLinkClass])},[a.renderSlot(e.$slots,"breakViewContent",{},()=>[a.createTextVNode(a.toDisplayString(n.breakViewText),1)],!0)],2)):s.disabled?(a.openBlock(),a.createElementBlock("a",{key:1,class:a.normalizeClass(n.pageLinkClass)},a.toDisplayString(s.content),3)):(a.openBlock(),a.createElementBlock("a",{key:2,class:a.normalizeClass(n.pageLinkClass),onClick:l=>i.handlePageSelected(s.index+1),onKeyup:a.withKeys(l=>i.handlePageSelected(s.index+1),["enter"])},a.toDisplayString(s.content),43,pN))],2))),128)),i.lastPageSelected()&&n.hidePrevNext?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("li",{key:2,class:a.normalizeClass([n.nextClass,i.lastPageSelected()?n.disabledClass:""])},[a.createElementVNode("a",{class:a.normalizeClass(n.nextLinkClass),tabindex:i.lastPageSelected()?-1:0,onClick:t[4]||(t[4]=s=>i.nextPage()),onKeyup:t[5]||(t[5]=a.withKeys(s=>i.nextPage(),["enter"]))},a.toDisplayString(n.nextText),43,gN)],2)),n.firstLastButton?(a.openBlock(),a.createElementBlock("li",{key:3,class:a.normalizeClass([n.pageClass,i.lastPageSelected()?n.disabledClass:""])},[a.createElementVNode("a",{class:a.normalizeClass(n.pageLinkClass),tabindex:i.lastPageSelected()?-1:0,onClick:t[6]||(t[6]=s=>i.selectLastPage()),onKeyup:t[7]||(t[7]=a.withKeys(s=>i.selectLastPage(),["enter"]))},a.toDisplayString(n.lastButtonText),43,mN)],2)):a.createCommentVNode("",!0)],2))}const wN=Ft(fN,[["render",_N],["__scopeId","data-v-f65d8507"]]);var Q1={exports:{}};/*!
827 * jQuery JavaScript Library v3.7.1
828 * https://jquery.com/
829 *
830 * Copyright OpenJS Foundation and other contributors
831 * Released under the MIT license
832 * https://jquery.org/license
833 *
834 * Date: 2023-08-28T13:37Z
835 */(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:pn,function(t,n){var r=[],o=Object.getPrototypeOf,i=r.slice,s=r.flat?function(p){return r.flat.call(p)}:function(p){return r.concat.apply([],p)},l=r.push,h=r.indexOf,f={},g=f.toString,w=f.hasOwnProperty,E=w.toString,C=E.call(Object),A={},k=function(_){return typeof _=="function"&&typeof _.nodeType!="number"&&typeof _.item!="function"},U=function(_){return _!=null&&_===_.window}
vendor: 25,833 bytes, line 835
835,N=t.document,R={type:!0,src:!0,nonce:!0,noModule:!0};function L(p,_,S){S=S||N;var T,D,F=S.createElement("script");if(F.text=p,_)for(T in R)D=_[T]||_.getAttribute&&_.getAttribute(T),D&&F.setAttribute(T,D);S.head.appendChild(F).parentNode.removeChild(F)}function z(p){return p==null?p+"":typeof p=="object"||typeof p=="function"?f[g.call(p)]||"object":typeof p}var W="3.7.1",ee=/HTML$/i,b=function(p,_){return new b.fn.init(p,_)};b.fn=b.prototype={jquery:W,constructor:b,length:0,toArray:function(){return i.call(this)},get:function(p){return p==null?i.call(this):p<0?this[p+this.length]:this[p]},pushStack:function(p){var _=b.merge(this.constructor(),p);return _.prevObject=this,_},each:function(p){return b.each(this,p)},map:function(p){return this.pushStack(b.map(this,function(_,S){return p.call(_,S,_)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,function(p,_){return(_+1)%2}))},odd:function(){return this.pushStack(b.grep(this,function(p,_){return _%2}))},eq:function(p){var _=this.length,S=+p+(p<0?_:0);return this.pushStack(S>=0&&S<_?[this[S]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:r.sort,splice:r.splice},b.extend=b.fn.extend=function(){var p,_,S,T,D,F,O=arguments[0]||{},Y=1,G=arguments.length,re=!1;for(typeof O=="boolean"&&(re=O,O=arguments[Y]||{},Y++),typeof O!="object"&&!k(O)&&(O={}),Y===G&&(O=this,Y--);Y<G;Y++)if((p=arguments[Y])!=null)for(_ in p)T=p[_],!(_==="__proto__"||O===T)&&(re&&T&&(b.isPlainObject(T)||(D=Array.isArray(T)))?(S=O[_],D&&!Array.isArray(S)?F=[]:!D&&!b.isPlainObject(S)?F={}:F=S,D=!1,O[_]=b.extend(re,F,T)):T!==void 0&&(O[_]=T));return O},b.extend({expando:"jQuery"+(W+Math.random()).replace(/\D/g,""),isReady:!0,error:function(p){throw new Error(p)},noop:function(){},isPlainObject:function(p){var _,S;return!p||g.call(p)!=="[object Object]"?!1:(_=o(p),_?(S=w.call(_,"constructor")&&_.constructor,typeof S=="function"&&E.call(S)===C):!0)},isEmptyObject:function(p){var _;for(_ in p)return!1;return!0},globalEval:function(p,_,S){L(p,{nonce:_&&_.nonce},S)},each:function(p,_){var S,T=0;if(fe(p))for(S=p.length;T<S&&_.call(p[T],T,p[T])!==!1;T++);else for(T in p)if(_.call(p[T],T,p[T])===!1)break;return p},text:function(p){var _,S="",T=0,D=p.nodeType;if(!D)for(;_=p[T++];)S+=b.text(_);return D===1||D===11?p.textContent:D===9?p.documentElement.textContent:D===3||D===4?p.nodeValue:S},makeArray:function(p,_){var S=_||[];return p!=null&&(fe(Object(p))?b.merge(S,typeof p=="string"?[p]:p):l.call(S,p)),S},inArray:function(p,_,S){return _==null?-1:h.call(_,p,S)},isXMLDoc:function(p){var _=p&&p.namespaceURI,S=p&&(p.ownerDocument||p).documentElement;return!ee.test(_||S&&S.nodeName||"HTML")},merge:function(p,_){for(var S=+_.length,T=0,D=p.length;T<S;T++)p[D++]=_[T];return p.length=D,p},grep:function(p,_,S){for(var T,D=[],F=0,O=p.length,Y=!S;F<O;F++)T=!_(p[F],F),T!==Y&&D.push(p[F]);return D},map:function(p,_,S){var T,D,F=0,O=[];if(fe(p))for(T=p.length;F<T;F++)D=_(p[F],F,S),D!=null&&O.push(D);else for(F in p)D=_(p[F],F,S),D!=null&&O.push(D);return s(O)},guid:1,support:A}),typeof Symbol=="function"&&(b.fn[Symbol.iterator]=r[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(p,_){f["[object "+_+"]"]=_.toLowerCase()});function fe(p){var _=!!p&&"length"in p&&p.length,S=z(p);return k(p)||U(p)?!1:S==="array"||_===0||typeof _=="number"&&_>0&&_-1 in p}function ae(p,_){return p.nodeName&&p.nodeName.toLowerCase()===_.toLowerCase()}var Ie=r.pop,xe=r.sort,De=r.splice,ye="[\\x20\\t\\r\\n\\f]",je=new RegExp("^"+ye+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ye+"+$","g");b.contains=function(p,_){var S=_&&_.parentNode;return p===S||!!(S&&S.nodeType===1&&(p.contains?p.contains(S):p.compareDocumentPosition&&p.compareDocumentPosition(S)&16))};var rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ot(p,_){return _?p==="\0"?"�":p.slice(0,-1)+"\\"+p.charCodeAt(p.length-1).toString(16)+" ":"\\"+p}b.escapeSelector=function(p){return(p+"").replace(rt,ot)};var Je=N,dt=l;(function(){var p,_,S,T,D,F=dt,O,Y,G,re,ge,ve=b.expando,le=0,Fe=0,He=Ha(),_t=Ha(),vt=Ha(),Nn=Ha(),yn=function(H,te){return H===te&&(D=!0),0},Jr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Xr="(?:\\\\[\\da-fA-F]{1,6}"+ye+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Pt="\\["+ye+"*("+Xr+")(?:"+ye+"*([*^$|!~]?=)"+ye+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Xr+"))|)"+ye+"*\\]",Mi=":("+Xr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Pt+")*)|.*)\\)|)",Nt=new RegExp(ye+"+","g"),nn=new RegExp("^"+ye+"*,"+ye+"*"),Va=new RegExp("^"+ye+"*([>+~]|"+ye+")"+ye+"*"),lu=new RegExp(ye+"|>"),Fr=new RegExp(Mi),ho=new RegExp("^"+Xr+"$"),Er={ID:new RegExp("^#("+Xr+")"),CLASS:new RegExp("^\\.("+Xr+")"),TAG:new RegExp("^("+Xr+"|[*])"),ATTR:new RegExp("^"+Pt),PSEUDO:new RegExp("^"+Mi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ye+"*(even|odd|(([+-]|)(\\d*)n|)"+ye+"*(?:([+-]|)"+ye+"*(\\d+)|))"+ye+"*\\)|)","i"),bool:new RegExp("^(?:"+Jr+")$","i"),needsContext:new RegExp("^"+ye+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ye+"*((?:-\\d)?\\d*)"+ye+"*\\)|)(?=[^-]|$)","i")},di=/^(?:input|select|textarea|button)$/i,Li=/^h\d$/i,tr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ja=/[+~]/,hi=new RegExp("\\\\[\\da-fA-F]{1,6}"+ye+"?|\\\\([^\\r\\n\\f])","g"),Zr=function(H,te){var ce="0x"+H.slice(1)-65536;return te||(ce<0?String.fromCharCode(ce+65536):String.fromCharCode(ce>>10|55296,ce&1023|56320))},cr=function(){Vi()},Qc=po(function(H){return H.disabled===!0&&ae(H,"fieldset")},{dir:"parentNode",next:"legend"});function za(){try{return O.activeElement}catch{}}try{F.apply(r=i.call(Je.childNodes),Je.childNodes),r[Je.childNodes.length].nodeType}catch{F={apply:function(te,ce){dt.apply(te,i.call(ce))},call:function(te){dt.apply(te,i.call(arguments,1))}}}function Kt(H,te,ce,he){var j,Z,X,_e,we,Ge,qe,ze=te&&te.ownerDocument,bt=te?te.nodeType:9;if(ce=ce||[],typeof H!="string"||!H||bt!==1&&bt!==9&&bt!==11)return ce;if(!he&&(Vi(te),te=te||O,G)){if(bt!==11&&(we=tr.exec(H)))if(j=we[1]){if(bt===9)if(X=te.getElementById(j)){if(X.id===j)return F.call(ce,X),ce}else return ce;else if(ze&&(X=ze.getElementById(j))&&Kt.contains(te,X)&&X.id===j)return F.call(ce,X),ce}else{if(we[2])return F.apply(ce,te.getElementsByTagName(H)),ce;if((j=we[3])&&te.getElementsByClassName)return F.apply(ce,te.getElementsByClassName(j)),ce}if(!Nn[H+" "]&&(!re||!re.test(H))){if(qe=H,ze=te,bt===1&&(lu.test(H)||Va.test(H))){for(ze=ja.test(H)&&el(te.parentNode)||te,(ze!=te||!A.scope)&&((_e=te.getAttribute("id"))?_e=b.escapeSelector(_e):te.setAttribute("id",_e=ve)),Ge=ra(H),Z=Ge.length;Z--;)Ge[Z]=(_e?"#"+_e:":scope")+" "+Br(Ge[Z]);qe=Ge.join(",")}try{return F.apply(ce,ze.querySelectorAll(qe)),ce}catch{Nn(H,!0)}finally{_e===ve&&te.removeAttribute("id")}}}return uh(H.replace(je,"$1"),te,ce,he)}function Ha(){var H=[];function te(ce,he){return H.push(ce+" ")>_.cacheLength&&delete te[H.shift()],te[ce+" "]=he}return te}function Rr(H){return H[ve]=!0,H}function na(H){var te=O.createElement("fieldset");try{return!!H(te)}catch{return!1}finally{te.parentNode&&te.parentNode.removeChild(te),te=null}}function wy(H){return function(te){return ae(te,"input")&&te.type===H}}function by(H){return function(te){return(ae(te,"input")||ae(te,"button"))&&te.type===H}}function ah(H){return function(te){return"form"in te?te.parentNode&&te.disabled===!1?"label"in te?"label"in te.parentNode?te.parentNode.disabled===H:te.disabled===H:te.isDisabled===H||te.isDisabled!==!H&&Qc(te)===H:te.disabled===H:"label"in te?te.disabled===H:!1}}function Sr(H){return Rr(function(te){return te=+te,Rr(function(ce,he){for(var j,Z=H([],ce.length,te),X=Z.length;X--;)ce[j=Z[X]]&&(ce[j]=!(he[j]=ce[j]))})})}function el(H){return H&&typeof H.getElementsByTagName<"u"&&H}function Vi(H){var te,ce=H?H.ownerDocument||H:Je;return ce==O||ce.nodeType!==9||!ce.documentElement||(O=ce,Y=O.documentElement,G=!b.isXMLDoc(O),ge=Y.matches||Y.webkitMatchesSelector||Y.msMatchesSelector,Y.msMatchesSelector&&Je!=O&&(te=O.defaultView)&&te.top!==te&&te.addEventListener("unload",cr),A.getById=na(function(he){return Y.appendChild(he).id=b.expando,!O.getElementsByName||!O.getElementsByName(b.expando).length}),A.disconnectedMatch=na(function(he){return ge.call(he,"*")}),A.scope=na(function(){return O.querySelectorAll(":scope")}),A.cssHas=na(function(){try{return O.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),A.getById?(_.filter.ID=function(he){var j=he.replace(hi,Zr);return function(Z){return Z.getAttribute("id")===j}},_.find.ID=function(he,j){if(typeof j.getElementById<"u"&&G){var Z=j.getElementById(he);return Z?[Z]:[]}}):(_.filter.ID=function(he){var j=he.replace(hi,Zr);return function(Z){var X=typeof Z.getAttributeNode<"u"&&Z.getAttributeNode("id");return X&&X.value===j}},_.find.ID=function(he,j){if(typeof j.getElementById<"u"&&G){var Z,X,_e,we=j.getElementById(he);if(we){if(Z=we.getAttributeNode("id"),Z&&Z.value===he)return[we];for(_e=j.getElementsByName(he),X=0;we=_e[X++];)if(Z=we.getAttributeNode("id"),Z&&Z.value===he)return[we]}return[]}}),_.find.TAG=function(he,j){return typeof j.getElementsByTagName<"u"?j.getElementsByTagName(he):j.querySelectorAll(he)},_.find.CLASS=function(he,j){if(typeof j.getElementsByClassName<"u"&&G)return j.getElementsByClassName(he)},re=[],na(function(he){var j;Y.appendChild(he).innerHTML="<a id='"+ve+"' href='' disabled='disabled'></a><select id='"+ve+"-\r\\' disabled='disabled'><option selected=''></option></select>",he.querySelectorAll("[selected]").length||re.push("\\["+ye+"*(?:value|"+Jr+")"),he.querySelectorAll("[id~="+ve+"-]").length||re.push("~="),he.querySelectorAll("a#"+ve+"+*").length||re.push(".#.+[+~]"),he.querySelectorAll(":checked").length||re.push(":checked"),j=O.createElement("input"),j.setAttribute("type","hidden"),he.appendChild(j).setAttribute("name","D"),Y.appendChild(he).disabled=!0,he.querySelectorAll(":disabled").length!==2&&re.push(":enabled",":disabled"),j=O.createElement("input"),j.setAttribute("name",""),he.appendChild(j),he.querySelectorAll("[name='']").length||re.push("\\["+ye+"*name"+ye+"*="+ye+`*(?:''|"")`)}),A.cssHas||re.push(":has"),re=re.length&&new RegExp(re.join("|")),yn=function(he,j){if(he===j)return D=!0,0;var Z=!he.compareDocumentPosition-!j.compareDocumentPosition;return Z||(Z=(he.ownerDocument||he)==(j.ownerDocument||j)?he.compareDocumentPosition(j):1,Z&1||!A.sortDetached&&j.compareDocumentPosition(he)===Z?he===O||he.ownerDocument==Je&&Kt.contains(Je,he)?-1:j===O||j.ownerDocument==Je&&Kt.contains(Je,j)?1:T?h.call(T,he)-h.call(T,j):0:Z&4?-1:1)}),O}Kt.matches=function(H,te){return Kt(H,null,null,te)},Kt.matchesSelector=function(H,te){if(Vi(H),G&&!Nn[te+" "]&&(!re||!re.test(te)))try{var ce=ge.call(H,te);if(ce||A.disconnectedMatch||H.document&&H.document.nodeType!==11)return ce}catch{Nn(te,!0)}return Kt(te,O,null,[H]).length>0},Kt.contains=function(H,te){return(H.ownerDocument||H)!=O&&Vi(H),b.contains(H,te)},Kt.attr=function(H,te){(H.ownerDocument||H)!=O&&Vi(H);var ce=_.attrHandle[te.toLowerCase()],he=ce&&w.call(_.attrHandle,te.toLowerCase())?ce(H,te,!G):void 0;return he!==void 0?he:H.getAttribute(te)},Kt.error=function(H){throw new Error("Syntax error, unrecognized expression: "+H)},b.uniqueSort=function(H){var te,ce=[],he=0,j=0;if(D=!A.sortStable,T=!A.sortStable&&i.call(H,0),xe.call(H,yn),D){for(;te=H[j++];)te===H[j]&&(he=ce.push(j));for(;he--;)De.call(H,ce[he],1)}return T=null,H},b.fn.uniqueSort=function(){return this.pushStack(b.uniqueSort(i.apply(this)))},_=b.expr={cacheLength:50,createPseudo:Rr,match:Er,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(H){return H[1]=H[1].replace(hi,Zr),H[3]=(H[3]||H[4]||H[5]||"").replace(hi,Zr),H[2]==="~="&&(H[3]=" "+H[3]+" "),H.slice(0,4)},CHILD:function(H){return H[1]=H[1].toLowerCase(),H[1].slice(0,3)==="nth"?(H[3]||Kt.error(H[0]),H[4]=+(H[4]?H[5]+(H[6]||1):2*(H[3]==="even"||H[3]==="odd")),H[5]=+(H[7]+H[8]||H[3]==="odd")):H[3]&&Kt.error(H[0]),H},PSEUDO:function(H){var te,ce=!H[6]&&H[2];return Er.CHILD.test(H[0])?null:(H[3]?H[2]=H[4]||H[5]||"":ce&&Fr.test(ce)&&(te=ra(ce,!0))&&(te=ce.indexOf(")",ce.length-te)-ce.length)&&(H[0]=H[0].slice(0,te),H[2]=ce.slice(0,te)),H.slice(0,3))}},filter:{TAG:function(H){var te=H.replace(hi,Zr).toLowerCase();return H==="*"?function(){return!0}:function(ce){return ae(ce,te)}},CLASS:function(H){var te=He[H+" "];return te||(te=new RegExp("(^|"+ye+")"+H+"("+ye+"|$)"))&&He(H,function(ce){return te.test(typeof ce.className=="string"&&ce.className||typeof ce.getAttribute<"u"&&ce.getAttribute("class")||"")})},ATTR:function(H,te,ce){return function(he){var j=Kt.attr(he,H);return j==null?te==="!=":te?(j+="",te==="="?j===ce:te==="!="?j!==ce:te==="^="?ce&&j.indexOf(ce)===0:te==="*="?ce&&j.indexOf(ce)>-1:te==="$="?ce&&j.slice(-ce.length)===ce:te==="~="?(" "+j.replace(Nt," ")+" ").indexOf(ce)>-1:te==="|="?j===ce||j.slice(0,ce.length+1)===ce+"-":!1):!0}},CHILD:function(H,te,ce,he,j){var Z=H.slice(0,3)!=="nth",X=H.slice(-4)!=="last",_e=te==="of-type";return he===1&&j===0?function(we){return!!we.parentNode}:function(we,Ge,qe){var ze,bt,ct,At,Dn,Mn=Z!==X?"nextSibling":"previousSibling",Fn=we.parentNode,fr=_e&&we.nodeName.toLowerCase(),pi=!qe&&!_e,yt=!1;if(Fn){if(Z){for(;Mn;){for(ct=we;ct=ct[Mn];)if(_e?ae(ct,fr):ct.nodeType===1)return!1;Dn=Mn=H==="only"&&!Dn&&"nextSibling"}return!0}if(Dn=[X?Fn.firstChild:Fn.lastChild],X&&pi){for(bt=Fn[ve]||(Fn[ve]={}),ze=bt[H]||[],At=ze[0]===le&&ze[1],yt=At&&ze[2],ct=At&&Fn.childNodes[At];ct=++At&&ct&&ct[Mn]||(yt=At=0)||Dn.pop();)if(ct.nodeType===1&&++yt&&ct===we){bt[H]=[le,At,yt];break}}else if(pi&&(bt=we[ve]||(we[ve]={}),ze=bt[H]||[],At=ze[0]===le&&ze[1],yt=At),yt===!1)for(;(ct=++At&&ct&&ct[Mn]||(yt=At=0)||Dn.pop())&&!((_e?ae(ct,fr):ct.nodeType===1)&&++yt&&(pi&&(bt=ct[ve]||(ct[ve]={}),bt[H]=[le,yt]),ct===we)););return yt-=j,yt===he||yt%he===0&&yt/he>=0}}},PSEUDO:function(H,te){var ce,he=_.pseudos[H]||_.setFilters[H.toLowerCase()]||Kt.error("unsupported pseudo: "+H);return he[ve]?he(te):he.length>1?(ce=[H,H,"",te],_.setFilters.hasOwnProperty(H.toLowerCase())?Rr(function(j,Z){for(var X,_e=he(j,te),we=_e.length;we--;)X=h.call(j,_e[we]),j[X]=!(Z[X]=_e[we])}):function(j){return he(j,0,ce)}):he}},pseudos:{not:Rr(function(H){var te=[],ce=[],he=nl(H.replace(je,"$1"));return he[ve]?Rr(function(j,Z,X,_e){for(var we,Ge=he(j,null,_e,[]),qe=j.length;qe--;)(we=Ge[qe])&&(j[qe]=!(Z[qe]=we))}):function(j,Z,X){return te[0]=j,he(te,null,X,ce),te[0]=null,!ce.pop()}}),has:Rr(function(H){return function(te){return Kt(H,te).length>0}}),contains:Rr(function(H){return H=H.replace(hi,Zr),function(te){return(te.textContent||b.text(te)).indexOf(H)>-1}}),lang:Rr(function(H){return ho.test(H||"")||Kt.error("unsupported lang: "+H),H=H.replace(hi,Zr).toLowerCase(),function(te){var ce;do if(ce=G?te.lang:te.getAttribute("xml:lang")||te.getAttribute("lang"))return ce=ce.toLowerCase(),ce===H||ce.indexOf(H+"-")===0;while((te=te.parentNode)&&te.nodeType===1);return!1}}),target:function(H){var te=t.location&&t.location.hash;return te&&te.slice(1)===H.id},root:function(H){return H===Y},focus:function(H){return H===za()&&O.hasFocus()&&!!(H.type||H.href||~H.tabIndex)},enabled:ah(!1),disabled:ah(!0),checked:function(H){return ae(H,"input")&&!!H.checked||ae(H,"option")&&!!H.selected},selected:function(H){return H.parentNode&&H.parentNode.selectedIndex,H.selected===!0},empty:function(H){for(H=H.firstChild;H;H=H.nextSibling)if(H.nodeType<6)return!1;return!0},parent:function(H){return!_.pseudos.empty(H)},header:function(H){return Li.test(H.nodeName)},input:function(H){return di.test(H.nodeName)},button:function(H){return ae(H,"input")&&H.type==="button"||ae(H,"button")},text:function(H){var te;return ae(H,"input")&&H.type==="text"&&((te=H.getAttribute("type"))==null||te.toLowerCase()==="text")},first:Sr(function(){return[0]}),last:Sr(function(H,te){return[te-1]}),eq:Sr(function(H,te,ce){return[ce<0?ce+te:ce]}),even:Sr(function(H,te){for(var ce=0;ce<te;ce+=2)H.push(ce);return H}),odd:Sr(function(H,te){for(var ce=1;ce<te;ce+=2)H.push(ce);return H}),lt:Sr(function(H,te,ce){var he;for(ce<0?he=ce+te:ce>te?he=te:he=ce;--he>=0;)H.push(he);return H}),gt:Sr(function(H,te,ce){for(var he=ce<0?ce+te:ce;++he<te;)H.push(he);return H})}},_.pseudos.nth=_.pseudos.eq;for(p in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[p]=wy(p);for(p in{submit:!0,reset:!0})_.pseudos[p]=by(p);function fu(){}fu.prototype=_.filters=_.pseudos,_.setFilters=new fu;function ra(H,te){var ce,he,j,Z,X,_e,we,Ge=_t[H+" "];if(Ge)return te?0:Ge.slice(0);for(X=H,_e=[],we=_.preFilter;X;){(!ce||(he=nn.exec(X)))&&(he&&(X=X.slice(he[0].length)||X),_e.push(j=[])),ce=!1,(he=Va.exec(X))&&(ce=he.shift(),j.push({value:ce,type:he[0].replace(je," ")}),X=X.slice(ce.length));for(Z in _.filter)(he=Er[Z].exec(X))&&(!we[Z]||(he=we[Z](he)))&&(ce=he.shift(),j.push({value:ce,type:Z,matches:he}),X=X.slice(ce.length));if(!ce)break}return te?X.length:X?Kt.error(H):_t(H,_e).slice(0)}function Br(H){for(var te=0,ce=H.length,he="";te<ce;te++)he+=H[te].value;return he}function po(H,te,ce){var he=te.dir,j=te.next,Z=j||he,X=ce&&Z==="parentNode",_e=Fe++;return te.first?function(we,Ge,qe){for(;we=we[he];)if(we.nodeType===1||X)return H(we,Ge,qe);return!1}:function(we,Ge,qe){var ze,bt,ct=[le,_e];if(qe){for(;we=we[he];)if((we.nodeType===1||X)&&H(we,Ge,qe))return!0}else for(;we=we[he];)if(we.nodeType===1||X)if(bt=we[ve]||(we[ve]={}),j&&ae(we,j))we=we[he]||we;else{if((ze=bt[Z])&&ze[0]===le&&ze[1]===_e)return ct[2]=ze[2];if(bt[Z]=ct,ct[2]=H(we,Ge,qe))return!0}return!1}}function tl(H){return H.length>1?function(te,ce,he){for(var j=H.length;j--;)if(!H[j](te,ce,he))return!1;return!0}:H[0]}function Ey(H,te,ce){for(var he=0,j=te.length;he<j;he++)Kt(H,te[he],ce);return ce}function du(H,te,ce,he,j){for(var Z,X=[],_e=0,we=H.length,Ge=te!=null;_e<we;_e++)(Z=H[_e])&&(!ce||ce(Z,he,j))&&(X.push(Z),Ge&&te.push(_e));return X}function ji(H,te,ce,he,j,Z){return he&&!he[ve]&&(he=ji(he)),j&&!j[ve]&&(j=ji(j,Z)),Rr(function(X,_e,we,Ge){var qe,ze,bt,ct,At=[],Dn=[],Mn=_e.length,Fn=X||Ey(te||"*",we.nodeType?[we]:we,[]),fr=H&&(X||!te)?du(Fn,At,H,we,Ge):Fn;if(ce?(ct=j||(X?H:Mn||he)?[]:_e,ce(fr,ct,we,Ge)):ct=fr,he)for(qe=du(ct,Dn),he(qe,[],we,Ge),ze=qe.length;ze--;)(bt=qe[ze])&&(ct[Dn[ze]]=!(fr[Dn[ze]]=bt));if(X){if(j||H){if(j){for(qe=[],ze=ct.length;ze--;)(bt=ct[ze])&&qe.push(fr[ze]=bt);j(null,ct=[],qe,Ge)}for(ze=ct.length;ze--;)(bt=ct[ze])&&(qe=j?h.call(X,bt):At[ze])>-1&&(X[qe]=!(_e[qe]=bt))}}else ct=du(ct===_e?ct.splice(Mn,ct.length):ct),j?j(null,_e,ct,Ge):F.apply(_e,ct)})}function lr(H){for(var te,ce,he,j=H.length,Z=_.relative[H[0].type],X=Z||_.relative[" "],_e=Z?1:0,we=po(function(ze){return ze===te},X,!0),Ge=po(function(ze){return h.call(te,ze)>-1},X,!0),qe=[function(ze,bt,ct){var At=!Z&&(ct||bt!=S)||((te=bt).nodeType?we(ze,bt,ct):Ge(ze,bt,ct));return te=null,At}];_e<j;_e++)if(ce=_.relative[H[_e].type])qe=[po(tl(qe),ce)];else{if(ce=_.filter[H[_e].type].apply(null,H[_e].matches),ce[ve]){for(he=++_e;he<j&&!_.relative[H[he].type];he++);return ji(_e>1&&tl(qe),_e>1&&Br(H.slice(0,_e-1).concat({value:H[_e-2].type===" "?"*":""})).replace(je,"$1"),ce,_e<he&&lr(H.slice(_e,he)),he<j&&lr(H=H.slice(he)),he<j&&Br(H))}qe.push(ce)}return tl(qe)}function sh(H,te){var ce=te.length>0,he=H.length>0,j=function(Z,X,_e,we,Ge){var qe,ze,bt,ct=0,At="0",Dn=Z&&[],Mn=[],Fn=S,fr=Z||he&&_.find.TAG("*",Ge),pi=le+=Fn==null?1:Math.random()||.1,yt=fr.length;for(Ge&&(S=X==O||X||Ge);At!==yt&&(qe=fr[At])!=null;At++){if(he&&qe){for(ze=0,!X&&qe.ownerDocument!=O&&(Vi(qe),_e=!G);bt=H[ze++];)if(bt(qe,X||O,_e)){F.call(we,qe);break}Ge&&(le=pi)}ce&&((qe=!bt&&qe)&&ct--,Z&&Dn.push(qe))}if(ct+=At,ce&&At!==ct){for(ze=0;bt=te[ze++];)bt(Dn,Mn,X,_e);if(Z){if(ct>0)for(;At--;)Dn[At]||Mn[At]||(Mn[At]=Ie.call(we));Mn=du(Mn)}F.apply(we,Mn),Ge&&!Z&&Mn.length>0&&ct+te.length>1&&b.uniqueSort(we)}return Ge&&(le=pi,S=Fn),Dn};return ce?Rr(j):j}function nl(H,te){var ce,he=[],j=[],Z=vt[H+" "];if(!Z){for(te||(te=ra(H)),ce=te.length;ce--;)Z=lr(te[ce]),Z[ve]?he.push(Z):j.push(Z);Z=vt(H,sh(j,he)),Z.selector=H}return Z}function uh(H,te,ce,he){var j,Z,X,_e,we,Ge=typeof H=="function"&&H,qe=!he&&ra(H=Ge.selector||H);if(ce=ce||[],qe.length===1){if(Z=qe[0]=qe[0].slice(0),Z.length>2&&(X=Z[0]).type==="ID"&&te.nodeType===9&&G&&_.relative[Z[1].type]){if(te=(_.find.ID(X.matches[0].replace(hi,Zr),te)||[])[0],te)Ge&&(te=te.parentNode);else return ce;H=H.slice(Z.shift().value.length)}for(j=Er.needsContext.test(H)?0:Z.length;j--&&(X=Z[j],!_.relative[_e=X.type]);)if((we=_.find[_e])&&(he=we(X.matches[0].replace(hi,Zr),ja.test(Z[0].type)&&el(te.parentNode)||te))){if(Z.splice(j,1),H=he.length&&Br(Z),!H)return F.apply(ce,he),ce;break}}return(Ge||nl(H,qe))(he,te,!G,ce,!te||ja.test(H)&&el(te.parentNode)||te),ce}A.sortStable=ve.split("").sort(yn).join("")===ve,Vi(),A.sortDetached=na(function(H){return H.compareDocumentPosition(O.createElement("fieldset"))&1}),b.find=Kt,b.expr[":"]=b.expr.pseudos,b.unique=b.uniqueSort,Kt.compile=nl,Kt.select=uh,Kt.setDocument=Vi,Kt.tokenize=ra,Kt.escape=b.escapeSelector,Kt.getText=b.text,Kt.isXML=b.isXMLDoc,Kt.selectors=b.expr,Kt.support=b.support,Kt.uniqueSort=b.uniqueSort})();var mt=function(p,_,S){for(var T=[],D=S!==void 0;(p=p[_])&&p.nodeType!==9;)if(p.nodeType===1){if(D&&b(p).is(S))break;T.push(p)}return T},Ue=function(p,_){for(var S=[];p;p=p.nextSibling)p.nodeType===1&&p!==_&&S.push(p);return S},ne=b.expr.match.needsContext,oe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Pe(p,_,S){return k(_)?b.grep(p,function(T,D){return!!_.call(T,D,T)!==S}):_.nodeType?b.grep(p,function(T){return T===_!==S}):typeof _!="string"?b.grep(p,function(T){return h.call(_,T)>-1!==S}):b.filter(_,p,S)}b.filter=function(p,_,S){var T=_[0];return S&&(p=":not("+p+")"),_.length===1&&T.nodeType===1?b.find.matchesSelector(T,p)?[T]:[]:b.find.matches(p,b.grep(_,function(D){return D.nodeType===1}))},b.fn.extend({find:function(p){var _,S,T=this.length,D=this;if(typeof p!="string")return this.pushStack(b(p).filter(function(){for(_=0;_<T;_++)if(b.contains(D[_],this))return!0}));for(S=this.pushStack([]),_=0;_<T;_++)b.find(p,D[_],S);return T>1?b.uniqueSort(S):S},filter:function(p){return this.pushStack(Pe(this,p||[],!1))},not:function(p){return this.pushStack(Pe(this,p||[],!0))},is:function(p){return!!Pe(this,typeof p=="string"&&ne.test(p)?b(p):p||[],!1).length}});var Oe,We=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Qe=b.fn.init=function(p,_,S){var T,D;if(!p)return this;if(S=S||Oe,typeof p=="string")if(p[0]==="<"&&p[p.length-1]===">"&&p.length>=3?T=[null,p,null]:T=We.exec(p),T&&(T[1]||!_))if(T[1]){if(_=_ instanceof b?_[0]:_,b.merge(this,b.parseHTML(T[1],_&&_.nodeType?_.ownerDocument||_:N,!0)),oe.test(T[1])&&b.isPlainObject(_))for(T in _)k(this[T])?this[T](_[T]):this.attr(T,_[T]);return this}else return D=N.getElementById(T[2]),D&&(this[0]=D,this.length=1),this;else return!_||_.jquery?(_||S).find(p):this.constructor(_).find(p);else{if(p.nodeType)return this[0]=p,this.length=1,this;if(k(p))return S.ready!==void 0?S.ready(p):p(b)}return b.makeArray(p,this)};Qe.prototype=b.fn,Oe=b(N);var se=/^(?:parents|prev(?:Until|All))/,be={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({has:function(p){var _=b(p,this),S=_.length;return this.filter(function(){for(var T=0;T<S;T++)if(b.contains(this,_[T]))return!0})},closest:function(p,_){var S,T=0,D=this.length,F=[],O=typeof p!="string"&&b(p);if(!ne.test(p)){for(;T<D;T++)for(S=this[T];S&&S!==_;S=S.parentNode)if(S.nodeType<11&&(O?O.index(S)>-1:S.nodeType===1&&b.find.matchesSelector(S,p))){F.push(S);break}}return this.pushStack(F.length>1?b.uniqueSort(F):F)},index:function(p){return p?typeof p=="string"?h.call(b(p),this[0]):h.call(this,p.jquery?p[0]:p):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(p,_){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(p,_))))},addBack:function(p){return this.add(p==null?this.prevObject:this.prevObject.filter(p))}});function Ae(p,_){for(;(p=p[_])&&p.nodeType!==1;);return p}b.each({parent:function(p){var _=p.parentNode;return _&&_.nodeType!==11?_:null},parents:function(p){return mt(p,"parentNode")},parentsUntil:function(p,_,S){return mt(p,"parentNode",S)},next:function(p){return Ae(p,"nextSibling")},prev:function(p){return Ae(p,"previousSibling")},nextAll:function(p){return mt(p,"nextSibling")},prevAll:function(p){return mt(p,"previousSibling")},nextUntil:function(p,_,S){return mt(p,"nextSibling",S)},prevUntil:function(p,_,S){return mt(p,"previousSibling",S)},siblings:function(p){return Ue((p.parentNode||{}).firstChild,p)},children:function(p){return Ue(p.firstChild)},contents:function(p){return p.contentDocument!=null&&o(p.contentDocument)?p.contentDocument:(ae(p,"template")&&(p=p.content||p),b.merge([],p.childNodes))}},function(p,_){b.fn[p]=function(S,T){var D=b.map(this,_,S);return p.slice(-5)!=="Until"&&(T=S),T&&typeof T=="string"&&(D=b.filter(T,D)),this.length>1&&(be[p]||b.uniqueSort(D),se.test(p)&&D.reverse()),this.pushStack(D)}});var Ne=/[^\x20\t\r\n\f]+/g;function Me(p){var _={};return b.each(p.match(Ne)||[],function(S,T){_[T]=!0}),_}b.Callbacks=function(p){p=typeof p=="string"?Me(p):b.extend({},p);var _,S,T,D,F=[],O=[],Y=-1,G=function(){for(D=D||p.once,T=_=!0;O.length;Y=-1)for(S=O.shift();++Y<F.length;)F[Y].apply(S[0],S[1])===!1&&p.stopOnFalse&&(Y=F.length,S=!1);p.memory||(S=!1),_=!1,D&&(S?F=[]:F="")},re={add:function(){return F&&(S&&!_&&(Y=F.length-1,O.push(S)),function ge(ve){b.each(ve,function(le,Fe){k(Fe)?(!p.unique||!re.has(Fe))&&F.push(Fe):Fe&&Fe.length&&z(Fe)!=="str
835ing"&&ge(Fe)})}(arguments),S&&!_&&G()),this},remove:function(){return b.each(arguments,function(ge,ve){for(var le;(le=b.inArray(ve,F,le))>-1;)F.splice(le,1),le<=Y&&Y--}),this},has:function(ge){return ge?b.inArray(ge,F)>-1:F.length>0},empty:function(){return F&&(F=[]),this},disable:function(){return D=O=[],F=S="",this},disabled:function(){return!F},lock:function(){return D=O=[],!S&&!_&&(F=S=""),this},locked:function(){return!!D},fireWith:function(ge,ve){return D||(ve=ve||[],ve=[ge,ve.slice?ve.slice():ve],O.push(ve),_||G()),this},fire:function(){return re.fireWith(this,arguments),this},fired:function(){return!!T}};return re};function Ye(p){return p}function pe(p){throw p}function Le(p,_,S,T){var D;try{p&&k(D=p.promise)?D.call(p).done(_).fail(S):p&&k(D=p.then)?D.call(p,_,S):_.apply(void 0,[p].slice(T))}catch(F){S.apply(void 0,[F])}}b.extend({Deferred:function(p){var _=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],S="pending",T={state:function(){return S},always:function(){return D.done(arguments).fail(arguments),this},catch:function(F){return T.then(null,F)},pipe:function(){var F=arguments;return b.Deferred(function(O){b.each(_,function(Y,G){var re=k(F[G[4]])&&F[G[4]];D[G[1]](function(){var ge=re&&re.apply(this,arguments);ge&&k(ge.promise)?ge.promise().progress(O.notify).done(O.resolve).fail(O.reject):O[G[0]+"With"](this,re?[ge]:arguments)})}),F=null}).promise()},then:function(F,O,Y){var G=0;function re(ge,ve,le,Fe){return function(){var He=this,_t=arguments,vt=function(){var yn,Jr;if(!(ge<G)){if(yn=le.apply(He,_t),yn===ve.promise())throw new TypeError("Thenable self-resolution");Jr=yn&&(typeof yn=="object"||typeof yn=="function")&&yn.then,k(Jr)?Fe?Jr.call(yn,re(G,ve,Ye,Fe),re(G,ve,pe,Fe)):(G++,Jr.call(yn,re(G,ve,Ye,Fe),re(G,ve,pe,Fe),re(G,ve,Ye,ve.notifyWith))):(le!==Ye&&(He=void 0,_t=[yn]),(Fe||ve.resolveWith)(He,_t))}},Nn=Fe?vt:function(){try{vt()}catch(yn){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(yn,Nn.error),ge+1>=G&&(le!==pe&&(He=void 0,_t=[yn]),ve.rejectWith(He,_t))}};ge?Nn():(b.Deferred.getErrorHook?Nn.error=b.Deferred.getErrorHook():b.Deferred.getStackHook&&(Nn.error=b.Deferred.getStackHook()),t.setTimeout(Nn))}}return b.Deferred(function(ge){_[0][3].add(re(0,ge,k(Y)?Y:Ye,ge.notifyWith)),_[1][3].add(re(0,ge,k(F)?F:Ye)),_[2][3].add(re(0,ge,k(O)?O:pe))}).promise()},promise:function(F){return F!=null?b.extend(F,T):T}},D={};return b.each(_,function(F,O){var Y=O[2],G=O[5];T[O[1]]=Y.add,G&&Y.add(function(){S=G},_[3-F][2].disable,_[3-F][3].disable,_[0][2].lock,_[0][3].lock),Y.add(O[3].fire),D[O[0]]=function(){return D[O[0]+"With"](this===D?void 0:this,arguments),this},D[O[0]+"With"]=Y.fireWith}),T.promise(D),p&&p.call(D,D),D},when:function(p){var _=arguments.length,S=_,T=Array(S),D=i.call(arguments),F=b.Deferred(),O=function(Y){return function(G){T[Y]=this,D[Y]=arguments.length>1?i.call(arguments):G,--_||F.resolveWith(T,D)}};if(_<=1&&(Le(p,F.done(O(S)).resolve,F.reject,!_),F.state()==="pending"||k(D[S]&&D[S].then)))return F.then();for(;S--;)Le(D[S],O(S),F.reject);return F.promise()}});var st=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(p,_){t.console&&t.console.warn&&p&&st.test(p.name)&&t.console.warn("jQuery.Deferred exception: "+p.message,p.stack,_)},b.readyException=function(p){t.setTimeout(function(){throw p})};var Bt=b.Deferred();b.fn.ready=function(p){return Bt.then(p).catch(function(_){b.readyException(_)}),this},b.extend({isReady:!1,readyWait:1,ready:function(p){(p===!0?--b.readyWait:b.isReady)||(b.isReady=!0,!(p!==!0&&--b.readyWait>0)&&Bt.resolveWith(N,[b]))}}),b.ready.then=Bt.then;function et(){N.removeEventListener("DOMContentLoaded",et),t.removeEventListener("load",et),b.ready()}N.readyState==="complete"||N.readyState!=="loading"&&!N.documentElement.doScroll?t.setTimeout(b.ready):(N.addEventListener("DOMContentLoaded",et),t.addEventListener("load",et));var I=function(p,_,S,T,D,F,O){var Y=0,G=p.length,re=S==null;if(z(S)==="object"){D=!0;for(Y in S)I(p,_,Y,S[Y],!0,F,O)}else if(T!==void 0&&(D=!0,k(T)||(O=!0),re&&(O?(_.call(p,T),_=null):(re=_,_=function(ge,ve,le){return re.call(b
vendor: 4,269 bytes, line 835
835(ge),le)})),_))for(;Y<G;Y++)_(p[Y],S,O?T:T.call(p[Y],Y,_(p[Y],S)));return D?p:re?_.call(p):G?_(p[0],S):F},m=/^-ms-/,y=/-([a-z])/g;function P(p,_){return _.toUpperCase()}function $(p){return p.replace(m,"ms-").replace(y,P)}var K=function(p){return p.nodeType===1||p.nodeType===9||!+p.nodeType};function J(){this.expando=b.expando+J.uid++}J.uid=1,J.prototype={cache:function(p){var _=p[this.expando];return _||(_={},K(p)&&(p.nodeType?p[this.expando]=_:Object.defineProperty(p,this.expando,{value:_,configurable:!0}))),_},set:function(p,_,S){var T,D=this.cache(p);if(typeof _=="string")D[$(_)]=S;else for(T in _)D[$(T)]=_[T];return D},get:function(p,_){return _===void 0?this.cache(p):p[this.expando]&&p[this.expando][$(_)]},access:function(p,_,S){return _===void 0||_&&typeof _=="string"&&S===void 0?this.get(p,_):(this.set(p,_,S),S!==void 0?S:_)},remove:function(p,_){var S,T=p[this.expando];if(T!==void 0){if(_!==void 0)for(Array.isArray(_)?_=_.map($):(_=$(_),_=_ in T?[_]:_.match(Ne)||[]),S=_.length;S--;)delete T[_[S]];(_===void 0||b.isEmptyObject(T))&&(p.nodeType?p[this.expando]=void 0:delete p[this.expando])}},hasData:function(p){var _=p[this.expando];return _!==void 0&&!b.isEmptyObject(_)}};var me=new J,Be=new J,Ze=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ie=/[A-Z]/g;function de(p){return p==="true"?!0:p==="false"?!1:p==="null"?null:p===+p+""?+p:Ze.test(p)?JSON.parse(p):p}function $e(p,_,S){var T;if(S===void 0&&p.nodeType===1)if(T="data-"+_.replace(ie,"-$&").toLowerCase(),S=p.getAttribute(T),typeof S=="string"){try{S=de(S)}catch{}Be.set(p,_,S)}else S=void 0;return S}b.extend({hasData:function(p){return Be.hasData(p)||me.hasData(p)},data:function(p,_,S){return Be.access(p,_,S)},removeData:function(p,_){Be.remove(p,_)},_data:function(p,_,S){return me.access(p,_,S)},_removeData:function(p,_){me.remove(p,_)}}),b.fn.extend({data:function(p,_){var S,T,D,F=this[0],O=F&&F.attributes;if(p===void 0){if(this.length&&(D=Be.get(F),F.nodeType===1&&!me.get(F,"hasDataAttrs"))){for(S=O.length;S--;)O[S]&&(T=O[S].name,T.indexOf("data-")===0&&(T=$(T.slice(5)),$e(F,T,D[T])));me.set(F,"hasDataAttrs",!0)}return D}return typeof p=="object"?this.each(function(){Be.set(this,p)}):I(this,function(Y){var G;if(F&&Y===void 0)return G=Be.get(F,p),G!==void 0||(G=$e(F,p),G!==void 0)?G:void 0;this.each(function(){Be.set(this,p,Y)})},null,_,arguments.length>1,null,!0)},removeData:function(p){return this.each(function(){Be.remove(this,p)})}}),b.extend({queue:function(p,_,S){var T;if(p)return _=(_||"fx")+"queue",T=me.get(p,_),S&&(!T||Array.isArray(S)?T=me.access(p,_,b.makeArray(S)):T.push(S)),T||[]},dequeue:function(p,_){_=_||"fx";var S=b.queue(p,_),T=S.length,D=S.shift(),F=b._queueHooks(p,_),O=function(){b.dequeue(p,_)};D==="inprogress"&&(D=S.shift(),T--),D&&(_==="fx"&&S.unshift("inprogress"),delete F.stop,D.call(p,O,F)),!T&&F&&F.empty.fire()},_queueHooks:function(p,_){var S=_+"queueHooks";return me.get(p,S)||me.access(p,S,{empty:b.Callbacks("once memory").add(function(){me.remove(p,[_+"queue",S])})})}}),b.fn.extend({queue:function(p,_){var S=2;return typeof p!="string"&&(_=p,p="fx",S--),arguments.length<S?b.queue(this[0],p):_===void 0?this:this.each(function(){var T=b.queue(this,p,_);b._queueHooks(this,p),p==="fx"&&T[0]!=="inprogress"&&b.dequeue(this,p)})},dequeue:function(p){return this.each(function(){b.dequeue(this,p)})},clearQueue:function(p){return this.queue(p||"fx",[])},promise:function(p,_){var S,T=1,D=b.Deferred(),F=this,O=this.length,Y=function(){--T||D.resolveWith(F,[F])};for(typeof p!="string"&&(_=p,p=void 0),p=p||"fx";O--;)S=me.get(F[O],p+"queueHooks"),S&&S.empty&&(T++,S.empty.add(Y));return Y(),D.promise(_)}});var ut=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,lt=new RegExp("^(?:([+-])=|)("+ut+")([a-z%]*)$","i"),gt=["Top","Right","Bottom","Left"],qt=N.documentElement,Gn=function(p){return b.contains(p.ownerDocument,p)},Ri={composed:!0};qt.getRootNode&&(Gn=function(p){return b.contains(p.ownerDocument,p)||p.getRootNode(Ri)===p.ownerDocument});var hn=function(p,_){return p=_||p,p.style.display==="none"||p.style.display===""&&Gn(p)&&b.css(p,"display")==="none"};function Cn(p,_,S,T){var D,F,O=20,Y=T?function(){return T.cur()}:function(){return b.css(p,_,"")},G=Y(),re=S&&S[3]||(b.cssNumber[_]?"":"px"),ge=p.nodeType&&(b.cssNumber[_]||re
vendor: 7,644 bytes, line 835
835!=="px"&&+G)&&lt.exec(b.css(p,_));if(ge&&ge[3]!==re){for(G=G/2,re=re||ge[3],ge=+G||1;O--;)b.style(p,_,ge+re),(1-F)*(1-(F=Y()/G||.5))<=0&&(O=0),ge=ge/F;ge=ge*2,b.style(p,_,ge+re),S=S||[]}return S&&(ge=+ge||+G||0,D=S[1]?ge+(S[1]+1)*S[2]:+S[2],T&&(T.unit=re,T.start=ge,T.end=D)),D}var tn={};function Bc(p){var _,S=p.ownerDocument,T=p.nodeName,D=tn[T];return D||(_=S.body.appendChild(S.createElement(T)),D=b.css(_,"display"),_.parentNode.removeChild(_),D==="none"&&(D="block"),tn[T]=D,D)}function Yr(p,_){for(var S,T,D=[],F=0,O=p.length;F<O;F++)T=p[F],T.style&&(S=T.style.display,_?(S==="none"&&(D[F]=me.get(T,"display")||null,D[F]||(T.style.display="")),T.style.display===""&&hn(T)&&(D[F]=Bc(T))):S!=="none"&&(D[F]="none",me.set(T,"display",S)));for(F=0;F<O;F++)D[F]!=null&&(p[F].style.display=D[F]);return p}b.fn.extend({show:function(){return Yr(this,!0)},hide:function(){return Yr(this)},toggle:function(p){return typeof p=="boolean"?p?this.show():this.hide():this.each(function(){hn(this)?b(this).show():b(this).hide()})}});var Bi=/^(?:checkbox|radio)$/i,Ua=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,tu=/^$|^module$|\/(?:java|ecma)script/i;(function(){var p=N.createDocumentFragment(),_=p.appendChild(N.createElement("div")),S=N.createElement("input");S.setAttribute("type","radio"),S.setAttribute("checked","checked"),S.setAttribute("name","t"),_.appendChild(S),A.checkClone=_.cloneNode(!0).cloneNode(!0).lastChild.checked,_.innerHTML="<textarea>x</textarea>",A.noCloneChecked=!!_.cloneNode(!0).lastChild.defaultValue,_.innerHTML="<option></option>",A.option=!!_.lastChild})();var wr={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,"",""]};wr.tbody=wr.tfoot=wr.colgroup=wr.caption=wr.thead,wr.th=wr.td,A.option||(wr.optgroup=wr.option=[1,"<select multiple='multiple'>","</select>"]);function er(p,_){var S;return typeof p.getElementsByTagName<"u"?S=p.getElementsByTagName(_||"*"):typeof p.querySelectorAll<"u"?S=p.querySelectorAll(_||"*"):S=[],_===void 0||_&&ae(p,_)?b.merge([p],S):S}function nu(p,_){for(var S=0,T=p.length;S<T;S++)me.set(p[S],"globalEval",!_||me.get(_[S],"globalEval"))}var ty=/<|&#?\w+;/;function Od(p,_,S,T,D){for(var F,O,Y,G,re,ge,ve=_.createDocumentFragment(),le=[],Fe=0,He=p.length;Fe<He;Fe++)if(F=p[Fe],F||F===0)if(z(F)==="object")b.merge(le,F.nodeType?[F]:F);else if(!ty.test(F))le.push(_.createTextNode(F));else{for(O=O||ve.appendChild(_.createElement("div")),Y=(Ua.exec(F)||["",""])[1].toLowerCase(),G=wr[Y]||wr._default,O.innerHTML=G[1]+b.htmlPrefilter(F)+G[2],ge=G[0];ge--;)O=O.lastChild;b.merge(le,O.childNodes),O=ve.firstChild,O.textContent=""}for(ve.textContent="",Fe=0;F=le[Fe++];){if(T&&b.inArray(F,T)>-1){D&&D.push(F);continue}if(re=Gn(F),O=er(ve.appendChild(F),"script"),re&&nu(O),S)for(ge=0;F=O[ge++];)tu.test(F.type||"")&&S.push(F)}return ve}var Ud=/^([^.]*)(?:\.(.+)|)/;function Oi(){return!0}function Jo(){return!1}function $a(p,_,S,T,D,F){var O,Y;if(typeof _=="object"){typeof S!="string"&&(T=T||S,S=void 0);for(Y in _)$a(p,Y,S,T,_[Y],F);return p}if(T==null&&D==null?(D=S,T=S=void 0):D==null&&(typeof S=="string"?(D=T,T=void 0):(D=T,T=S,S=void 0)),D===!1)D=Jo;else if(!D)return p;return F===1&&(O=D,D=function(G){return b().off(G),O.apply(this,arguments)},D.guid=O.guid||(O.guid=b.guid++)),p.each(function(){b.event.add(this,_,D,T,S)})}b.event={global:{},add:function(p,_,S,T,D){var F,O,Y,G,re,ge,ve,le,Fe,He,_t,vt=me.get(p);if(K(p))for(S.handler&&(F=S,S=F.handler,D=F.selector),D&&b.find.matchesSelector(qt,D),S.guid||(S.guid=b.guid++),(G=vt.events)||(G=vt.events=Object.create(null)),(O=vt.handle)||(O=vt.handle=function(Nn){return typeof b<"u"&&b.event.triggered!==Nn.type?b.event.dispatch.apply(p,arguments):void 0}),_=(_||"").match(Ne)||[""],re=_.length;re--;)Y=Ud.exec(_[re])||[],Fe=_t=Y[1],He=(Y[2]||"").split(".").sort(),Fe&&(ve=b.event.special[Fe]||{},Fe=(D?ve.delegateType:ve.bindType)||Fe,ve=b.event.special[Fe]||{},ge=b.extend({type:Fe,origType:_t,data:T,handler:S,guid:S.guid,selector:D,needsContext:D&&b.expr.match.needsContext.test(D),namespace:He.join(".")},F),(le=G[Fe])||(le=G[Fe]=[],le.delegateCount=0,(!ve.setup||ve.setup.call(p,T,He,O)===!1)&&p.addEventListener&&p.addEventListener(Fe,O)),ve.add&&(ve.add.call(p,ge),ge.handler.guid||(ge.handler.guid=S.guid)),D?le.splice(le.delegateCount++,0,ge):le.push(ge),b.event.global[Fe]=!0)},remove:function(p,_,S,T,D){var F,O,Y,G,re,ge,ve,le,Fe,He,_t,vt=me.hasData(p)&&me.get(p);if(!(!vt||!(G=vt.events))){for(_=(_||"").match(Ne)||[""],re=_.length;re--;){if(Y=Ud.exec(_[re])||[],Fe=_t=Y[1],He=(Y[2]||"").split(".").sort(),!Fe){for(Fe in G)b.event.remove(p,Fe+_[re],S,T,!0);continue}for(ve=b.event.special[Fe]||{},Fe=(T?ve.delegateType:ve.bindType)||Fe,le=G[Fe]||[],Y=Y[2]&&new RegExp("(^|\\.)"+He.join("\\.(?:.*\\.|)")+"(\\.|$)"),O=F=le.length;F--;)ge=le[F],(D||_t===ge.origType)&&(!S||S.guid===ge.guid)&&(!Y||Y.test(ge.namespace))&&(!T||T===ge.selector||T==="**"&&ge.selector)&&(le.splice(F,1),ge.selector&&le.delegateCount--,ve.remove&&ve.remove.call(p,ge));O&&!le.length&&((!ve.teardown||ve.teardown.call(p,He,vt.handle)===!1)&&b.removeEvent(p,Fe,vt.handle),delete G[Fe])}b.isEmptyObject(G)&&me.remove(p,"handle events")}},dispatch:function(p){var _,S,T,D,F,O,Y=new Array(arguments.length),G=b.event.fix(p),re=(me.get(this,"events")||Object.create(null))[G.type]||[],ge=b.event.special[G.type]||{};for(Y[0]=G,_=1;_<arguments.length;_++)Y[_]=arguments[_];if(G.delegateTarget=this,!(ge.preDispatch&&ge.preDispatch.call(this,G)===!1)){for(O=b.event.handlers.call(this,G,re),_=0;(D=O[_++])&&!G.isPropagationStopped();)for(G.currentTarget=D.elem,S=0;(F=D.handlers[S++])&&!G.isImmediatePropagationStopped();)(!G.rnamespace||F.namespace===!1||G.rnamespace.test(F.namespace))&&(G.handleObj=F,G.data=F.data,T=((b.event.special[F.origType]||{}).handle||F.handler).apply(D.elem,Y),T!==void 0&&(G.result=T)===!1&&(G.preventDefault(),G.stopPropagation()));return ge.postDispatch&&ge.postDispatch.call(this,G),G.result}},handlers:function(p,_){var S,T,D,F,O,Y=[],G=_.delegateCount,re=p.target;if(G&&re.nodeType&&!(p.type==="click"&&p.button>=1)){for(;re!==this;re=re.parentNode||this)if(re.nodeType===1&&!(p.type==="click"&&re.disabled===!0)){for(F=[],O={},S=0;S<G;S++)T=_[S],D=T.selector+" ",O[D]===void 0&&(O[D]=T.needsContext?b(D,this).index(re)>-1:b.find(D,this,null,[re]).length),O[D]&&F.push(T);F.length&&Y.push({elem:re,handlers:F})}}return re=this,G<_.length&&Y.push({elem:re,handlers:_.slice(G)}),Y},addProp:function(p,_){Object.defineProperty(b.Event.prototype,p,{enumerable:!0,configurable:!0,get:k(_)?function(){if(this.originalEvent)return _(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[p]},set:function(S){Object.defineProperty(this,p,{enumerable:!0,configurable:!0,writable:!0,value:S})}})},fix:function(p){return p[b.expando]?p:new b.Event(p)},special:{load:{noBubble:!0},click:{setup:function(p){var _=this||p;return Bi.test(_.type)&&_.click&&ae(_,"input")&&ru(_,"click",!0),!1},trigger:function(p){var _=this||p;return Bi.test(_.type)&&_.click&&ae(_,"input")&&ru(_,"click"),!0},_default:function(p){var _=p.target;return Bi.test(_.type)&&_.click&&ae(_,"input")&&me.get(_,"click")||ae(_,"a")}},beforeunload:{postDispatch:function(p){p.result!==void 0&&p.originalEvent&&(p.originalEvent.returnValue=p.result)}}}};function ru(p,_,S){if(!S){me.get(p,_)===void 0&&b.event.add(p,_,Oi);return}me.set(p,_,!1),b.event.add(p,_,{namespace:!1,handler:function(T){var D,F=me.get(this,_);if(T.isTrigger&1&&this[_]){if(F)(b.event.special[_]||{}).delegateType&&T.stopPropagation();
835else if(F=i.call(arguments),me.set(this,_,F),this[_](),D=me.get(this,_),me.set(this,_,!1),F!==D)return T.stopImmediatePropagation(),T.preventDefault(),D}else F&&(me.set(this,_,b.event.trigger(F[0],F.slice(1),this)),T.stopPropagation(),T.isImmediatePropagationStopped=Oi)}})}b.removeEvent=function(p,_,S){p.removeEventListener&&p.removeEventListener(_,S)},b.Event=function(p,_){if(!(this instanceof b.Event))return new b.Event(p,_);p&&p.type?(this.originalEvent=p,this.type=p.type,this.isDefaultPrevented=p.defaultPrevented||p.defaultPrevented===void 0&&p.returnValue===!1?Oi:Jo,this.target=p.target&&p.target.nodeType===3?p.target.parentNode:p.target,this.currentTarget=p.currentTarget,this.relatedTarget=p.relatedTarget):this.type=p,_&&b.extend(this,_),this.timeStamp=p&&p.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Jo,isPropagationStopped:Jo,isImmediatePropagationStopped:Jo,isSimulated:!1,preventDefault:function(){var p=this.originalEvent;this.isDefaultPrevented=Oi,p&&!this.isSimulated&&p.preventDefault()},stopPropagation:function(){var p=this.originalEvent;this.isPropagationStopped=Oi,p&&!this.isSimulated&&p.stopPropagation()},stopImmediatePropagation:function(){var p=this.originalEvent;this.isImmediatePropagationStopped=Oi,p&&!this.isSimulated&&p.stopImmediatePropagation(),this.stopPropagation()}},b.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},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},function(p,_){function S(T){if(N.documentMode){var D=me.get(this,"handle"),F=b.event.fix(T);F.type=T.type==="focusin"?"focus":"blur",F.isSimulated=!0,D(T),F.target===F.currentTarget&&D(F)}else b.event.simulate(_,T.target,b.event.fix(T))}b.event.special[p]={setup:function(){var T;if(ru(this,p,!0),N.documentMode)T=me.get(this,_),T||this.addEventListener(_,S),me.set(this,_,(T||0)+1);else return!1},trigger:function(){return ru(this,p),!0},teardown:function(){var T;if(N.documentMode)T=me.get(this,_)-1,T?me.set(this,_,T):(this.removeEventListener(_,S),me.remove(this,_));else return!1},_default:function(T){return me.get(T.target,p)},delegateType:_},b.event.special[_]={setup:function(){var T=this.ownerDocument||this.document||this,D=N.documentMode?this:T,F=me.get(D,_);F||(N.documentMode?this.addEventListener(_,S):T.addEventListener(p,S,!0)),me.set(D,_,(F||0)+1)},teardown:function(){var T=this.ownerDocument||this.document||this,D=N.documentMode?this:T,F=me.get(D,_)-1;F?me.set(D,_,F):(N.documentMode?this.removeEventListener(_,S):T.removeEventListener(p,S,!0),me.remove(D,_))}}}
vendor: 5,548 bytes, line 835
835),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(p,_){b.event.special[p]={delegateType:_,bindType:_,handle:function(S){var T,D=this,F=S.relatedTarget,O=S.handleObj;return(!F||F!==D&&!b.contains(D,F))&&(S.type=O.origType,T=O.handler.apply(this,arguments),S.type=_),T}}}),b.fn.extend({on:function(p,_,S,T){return $a(this,p,_,S,T)},one:function(p,_,S,T){return $a(this,p,_,S,T,1)},off:function(p,_,S){var T,D;if(p&&p.preventDefault&&p.handleObj)return T=p.handleObj,b(p.delegateTarget).off(T.namespace?T.origType+"."+T.namespace:T.origType,T.selector,T.handler),this;if(typeof p=="object"){for(D in p)this.off(D,_,p[D]);return this}return(_===!1||typeof _=="function")&&(S=_,_=void 0),S===!1&&(S=Jo),this.each(function(){b.event.remove(this,p,S,_)})}});var ny=/<script|<style|<link/i,ry=/checked\s*(?:[^=]|=\s*.checked.)/i,iy=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function $d(p,_){return ae(p,"table")&&ae(_.nodeType!==11?_:_.firstChild,"tr")&&b(p).children("tbody")[0]||p}function oy(p){return p.type=(p.getAttribute("type")!==null)+"/"+p.type,p}function ay(p){return(p.type||"").slice(0,5)==="true/"?p.type=p.type.slice(5):p.removeAttribute("type"),p}function Md(p,_){var S,T,D,F,O,Y,G;if(_.nodeType===1){if(me.hasData(p)&&(F=me.get(p),G=F.events,G)){me.remove(_,"handle events");for(D in G)for(S=0,T=G[D].length;S<T;S++)b.event.add(_,D,G[D][S])}Be.hasData(p)&&(O=Be.access(p),Y=b.extend({},O),Be.set(_,Y))}}function Ld(p,_){var S=_.nodeName.toLowerCase();S==="input"&&Bi.test(p.type)?_.checked=p.checked:(S==="input"||S==="textarea")&&(_.defaultValue=p.defaultValue)}function Xo(p,_,S,T){_=s(_);var D,F,O,Y,G,re,ge=0,ve=p.length,le=ve-1,Fe=_[0],He=k(Fe);if(He||ve>1&&typeof Fe=="string"&&!A.checkClone&&ry.test(Fe))return p.each(function(_t){var vt=p.eq(_t);He&&(_[0]=Fe.call(this,_t,vt.html())),Xo(vt,_,S,T)});if(ve&&(D=Od(_,p[0].ownerDocument,!1,p,T),F=D.firstChild,D.childNodes.length===1&&(D=F),F||T)){for(O=b.map(er(D,"script"),oy),Y=O.length;ge<ve;ge++)G=D,ge!==le&&(G=b.clone(G,!0,!0),Y&&b.merge(O,er(G,"script"))),S.call(p[ge],G,ge);if(Y)for(re=O[O.length-1].ownerDocument,b.map(O,ay),ge=0;ge<Y;ge++)G=O[ge],tu.test(G.type||"")&&!me.access(G,"globalEval")&&b.contains(re,G)&&(G.src&&(G.type||"").toLowerCase()!=="module"?b._evalUrl&&!G.noModule&&b._evalUrl(G.src,{nonce:G.nonce||G.getAttribute("nonce")},re):L(G.textContent.replace(iy,""),G,re))}return p}function Vd(p,_,S){for(var T,D=_?b.filter(_,p):p,F=0;(T=D[F])!=null;F++)!S&&T.nodeType===1&&b.cleanData(er(T)),T.parentNode&&(S&&Gn(T)&&nu(er(T,"script")),T.parentNode.removeChild(T));return p}b.extend({htmlPrefilter:function(p){return p},clone:function(p,_,S){var T,D,F,O,Y=p.cloneNode(!0),G=Gn(p);if(!A.noCloneChecked&&(p.nodeType===1||p.nodeType===11)&&!b.isXMLDoc(p))for(O=er(Y),F=er(p),T=0,D=F.length;T<D;T++)Ld(F[T],O[T]);if(_)if(S)for(F=F||er(p),O=O||er(Y),T=0,D=F.length;T<D;T++)Md(F[T],O[T]);else Md(p,Y);return O=er(Y,"script"),O.length>0&&nu(O,!G&&er(p,"script")),Y},cleanData:function(p){for(var _,S,T,D=b.event.special,F=0;(S=p[F])!==void 0;F++)if(K(S)){if(_=S[me.expando]){if(_.events)for(T in _.events)D[T]?b.event.remove(S,T):b.removeEvent(S,T,_.handle);S[me.expando]=void 0}S[Be.expando]&&(S[Be.expando]=void 0)}}}),b.fn.extend({detach:function(p){return Vd(this,p,!0)},remove:function(p){return Vd(this,p)},text:function(p){return I(this,function(_){return _===void 0?b.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=_)})},null,p,arguments.length)},append:function(){return Xo(this,arguments,function(p){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var _=$d(this,p);_.appendChild(p)}})},prepend:function(){return Xo(this,arguments,function(p){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var _=$d(this,p);_.insertBefore(p,_.firstChild)}})},before:function(){return Xo(this,arguments,function(p){this.parentNode&&this.parentNode.insertBefore(p,this)})},after:function(){return Xo(this,arguments,function(p){this.parentNode&&this.parentNode.insertBefore(p,this.nextSibling)})},empty:function(){for(var p,_=0;(p=this[_])!=null;_++)p.nodeType===1&&(b.cleanData(er(p,!1)),p.textContent="");return this},clone:function(p,_){return p=p??!1,_=_??p,this.map(function(){return b.clone(this,p,_)})},html:function(p){return I(this,function(_){var S=this[0]||{},T=0,D=this.length;if(_===void 0&&S.nodeType===1)return S.innerHTML;if(typeof _=="string"&&!ny.test(_)&&!wr[(Ua.exec(_)||["",""])[1].toLowerCase()]){_=b.htmlPrefilter(_);try{for(;T<D;T++)S=this[T]||{},S.nodeType===1&&(b.cleanData(er(S,!1)),S.innerHTML=_);S=0}catch{}}S&&this.empty().append(_)},null,p,arguments.length)},replaceWith:function(){var p=[];return Xo(this,arguments,function(_){var S=this.parentNode;b.inArray(this,p)<0&&(b.cleanData(er(this)),S&&S.replaceChild(_,this))},p)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(p,_){b.fn[p]=function(S){for(var T,D=[],F=b(S),O=F.length-1,Y=0;Y<=O;Y++)T=Y===O?this:this.clone(!0),b(F[Y])[_](T),l.apply(D,T.get());return this.pushStack(D)}});var Oc=new RegExp("^("+ut+")(?!px)[a-z%]+$","i"),Uc=/^--/,iu=function(p){var _=p.ownerDocument.defaultView;return(!_||!_.opener)&&(_=t),_.getComputedStyle(p)},jd=function(p,_,S){var T,D,F={};for(D in _)F[D]=p.style[D],p.style[D]=_[D];T=S.call(p);for(D in _)p.style[D]=F[D];return T},ou=new RegExp(gt.join("|"),"i");(function(){function p(){if(re){G.style.cssText="position:absolute;
835left:-11111px;width:60px;margin-top:1px;padding:0;border:0",re.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",qt.appendChild(G).appendChild(re);var ge=t.getComputedStyle(re);S=ge.top!=="1%",Y=_(ge.marginLeft)===12,re.style.right="60%",F=_(ge.right)===36,T=_(ge.width)===36,re.style.position="absolute",D=_(re.offsetWidth/3)===12,qt.removeChild(G),re=null}}function _(ge){return Math.round(parseFloat(ge))}var S,T,D,F,O,Y,G=N.createElement("div"),re=N.createElement("div");re.style&&(re.style.backgroundClip="content-box",re.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle=re.style.backgroundClip==="content-box",b.extend(A,{boxSizingReliable:function(){return p(),T},pixelBoxStyles:function(){return p(),F},pixelPosition:function(){return p(),S},reliableMarginLeft:function(){return p(),Y},scrollboxSize:function(){return p(),D},reliableTrDimensions:function(){var ge,ve,le,Fe;return O==null&&(ge=N.createElement("table"),ve=N.createElement("tr"),le=N.createElement("div"),ge.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ve.style.cssText="box-sizing:content-box;border:1px solid",ve.style.height="1px",le.style.height="9px",le.style.display="block",qt.appendChild(ge).appendChild(ve).appendChild(le),Fe=t.getComputedStyle(ve),O=parseInt(Fe.height,10)+parseInt(Fe.borderTopWidth,10)+parseInt(Fe.borderBottomWidth,10)===ve.offsetHeight,qt.removeChild(ge)),O}}))})();function Ma(p,_,S){var T,D,F,O,Y=Uc.test(_),G=p.style;return S=S||iu(p),S&&(O=S.getPropertyValue(_)||S[_],Y&&O&&(O=O.replace(je,"$1")||void 0),O===""&&!Gn(p)&&(O=b.style(p,_)),!A.pixelBoxStyles()&&Oc.test(O)&&ou.test(_)&&(T=G.width,D=G.minWidth,F=G.maxWidth,G.minWidth=G.maxWidth=G.width=O,O=S.width,G.width=T,G.minWidth=D,G.maxWidth=F)),O!==void 0?O+"":O}function La(p,_){return{get:function(){if(p()){delete this.get;return}return(this.get=_).apply(this,arguments)}}}var zd=["Webkit","Moz","ms"],Hd=N.createElement("div").style,Gd={};function Wd(p){for(var _=p[0].toUpperCase()+p.slice(1),S=zd.length;S--;)if(p=zd[S]+_,p in Hd)return p}function au(p){var _=b.cssProps[p]||Gd[p];return _||(p in Hd?p:Gd[p]=Wd(p)||p)}var qd=/^(none|table(?!-c[ea]).+)/,sy={position:"absolute",visibility:"hidden",display:"block"},Kd={letterSpacing:"0",fontWeight:"400"};function Yd(p,_,S){var T=lt.exec(_);return T?Math.max(0,T[2]-(S||0))+(T[3]||"px"):_}function $c(p,_,S,T,D,F){var O=_==="width"?1:0,Y=0,G=0,re=0;if(S===(T?"border":"content"))return 0;for(;O<4;O+=2)S==="margin"&&(re+=b.css(p,S+gt[O],!0,D)),T?(S==="content"&&(G-=b.css(p,"padding"+gt[O],!0,D)),S!=="margin"&&(G-=b.css(p,"border"+gt[O]+"Width",!0,D))):(G+=b.css(p,"padding"+gt[O],!0,D),S!=="padding"?G+=b.css(p,"border"+gt[O]+"Width",!0,D):Y+=b.css(p,"border"+gt[O]+"Width",!0,D));return!T&&F>=0&&(G+=Math.max(0,Math.ceil(p["offset"+_[0].toUpperCase()+_.slice(1)]-F-G-Y-.5))||0),G+re}function Mc(p,_,S){var T=iu(p),D=!A.boxSizingReliable()||S,F=D&&b.css(p,"boxSizing",!1,T)==="border-box",O=F,Y=Ma(p,_,T),G="offset"+_[0].toUpperCase()+_.slice(1);if(Oc.test(Y)){if(!S)return Y;Y="auto"}return(!A.boxSizingReliable()&&F||!A.reliableTrDimensions()&&ae(p,"tr")||Y==="auto"||!parseFloat(Y)&&b.css(p,"display",!1,T)==="inline")&&p.getClientRects().length&&(F=b.css(p,"boxSizing",!1,T)==="border-box",O=G in p,O&&(Y=p[G])),Y=parseFloat(Y)||0,Y+$c(p,_,S||(F?"border":"content"),O,T,Y)+"px"}b.extend({cssHooks:{opacity:{get:function(p,_){if(_){var S=Ma(p,"opacity");return S===""?"1":S}}}},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(p,_,S,T){if(!(!p||p.nodeType===3||p.nodeType===8||!p.style)){var D,F,O,Y=$(_),G=Uc.test(_),re=p.style;if(G||(_=au(Y)),O=b.cssHooks[_]||b.cssHooks[Y],S!==void 0){if(F=typeof S,F==="string"&&(D=lt.exec(S))&&D[1]&&(S=Cn(p,_,D),F="number"),S==null||S!==S)return;F==="number"&&!G&&(S+=D&&D[3]||(b.cssNumber[Y]?"":"px")),!A.clearCloneStyle&&S===""&&_.indexOf("background")===0&&(re[_]="inherit"),(!O||!("set"in O)||(S=O.set(p,S,T))!==void 0)&&(G?re.setProperty(_,S):re[_]=S)}else return O&&"get"in O&&(D=O.get(p,!1,T))!==void 0?D:re[_]}},css:function(p,_,S,T){var D,F,O,Y=$(_),G=Uc.test(_);return G||(_=au(Y)),O=b.cssHooks[_]||b.cssHooks[Y],O&&"get"in O&&(D=O.get(p,!0,S)),D===void 0&&(D=Ma(p,_,T)),D==="normal"&&_ in Kd&&(D=Kd[_]),S===""||S?(F=parseFloat(D),S===!0||isFinite(F)?F||0:D):D}}),b.each(["height","width"],function(p,_){b.cssHooks[_]={get:function(S,T,D){if(T)return qd.test(b.css(S,"display"))&&(!S.getClientRects().length||!S.getBoundingClientRect().width)?jd(S,sy,function(){return Mc(S,_,D)}):Mc(S,_,D)},set:function(S,T,D){var F,O=iu(S),Y=!A.scrollboxSize()&&O.position==="absolute",G=Y||D,re=G&&b.css(S,"boxSizing",!1,O)==="border-box",ge=D?$c(S,_,D,re,O):0;return re&&Y&&(ge-=Math.ceil(S["offset"+_[0].toUpperCase()+_.slice(1)]-parseFloat(O[_])-$c(S,_,"border",!1,O)-.5)),ge&&(F=lt.exec(T))&&(F[3]||"px")!=="px"&&(S.style[_]=T,T=b.css(S,_)),Yd(S,T,ge)}}}),b.cssHooks.marginLeft=La(A.reliableMarginLeft,function(p,_){if(_)return(parseFloat(Ma(p,"marginLeft"))||p.getBoundingClientRect().left-jd(p,{marginLeft:0},function(){return p.getBoundingClientRect().left}))+"px"}),b.each({margin:"",padding:"",border:"Width"},function(p,_){b.cssHooks[p+_]={expand:function(S){for(var T=0,D={},F=typeof S=="string"?S.split(" "):[S];T<4;T++)D[p+gt[T]+_]=F[T]||F[T-2]||F[0];return D}},p!=="margin"&&(b.cssHooks[p+_].set=Yd)}),b.fn.extend({css:function(p,_){return I(this,function(S,T,D){var F,O,Y={},G=0;if(Array.isArray(T)){for(F=iu(S),O=T.length;G<O;G++)Y[T[G]]=b.css(S,T[G],!1,F);return Y}return D!==void 0?b.style(S,T,D):b.css(S,T)},p,_,arguments.length>1)}});
vendor: 10,997 bytes, line 835
835function Wn(p,_,S,T,D){return new Wn.prototype.init(p,_,S,T,D)}b.Tween=Wn,Wn.prototype={constructor:Wn,init:function(p,_,S,T,D,F){this.elem=p,this.prop=S,this.easing=D||b.easing._default,this.options=_,this.start=this.now=this.cur(),this.end=T,this.unit=F||(b.cssNumber[S]?"":"px")},cur:function(){var p=Wn.propHooks[this.prop];return p&&p.get?p.get(this):Wn.propHooks._default.get(this)},run:function(p){var _,S=Wn.propHooks[this.prop];return this.options.duration?this.pos=_=b.easing[this.easing](p,this.options.duration*p,0,1,this.options.duration):this.pos=_=p,this.now=(this.end-this.start)*_+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),S&&S.set?S.set(this):Wn.propHooks._default.set(this),this}},Wn.prototype.init.prototype=Wn.prototype,Wn.propHooks={_default:{get:function(p){var _;return p.elem.nodeType!==1||p.elem[p.prop]!=null&&p.elem.style[p.prop]==null?p.elem[p.prop]:(_=b.css(p.elem,p.prop,""),!_||_==="auto"?0:_)},set:function(p){b.fx.step[p.prop]?b.fx.step[p.prop](p):p.elem.nodeType===1&&(b.cssHooks[p.prop]||p.elem.style[au(p.prop)]!=null)?b.style(p.elem,p.prop,p.now+p.unit):p.elem[p.prop]=p.now}}},Wn.propHooks.scrollTop=Wn.propHooks.scrollLeft={set:function(p){p.elem.nodeType&&p.elem.parentNode&&(p.elem[p.prop]=p.now)}},b.easing={linear:function(p){return p},swing:function(p){return .5-Math.cos(p*Math.PI)/2},_default:"swing"},b.fx=Wn.prototype.init,b.fx.step={};var lo,Zo,uy=/^(?:toggle|show|hide)$/,Jd=/queueHooks$/;function Qo(){Zo&&(N.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Qo):t.setTimeout(Qo,b.fx.interval),b.fx.tick())}function Lc(){return t.setTimeout(function(){lo=void 0}),lo=Date.now()}function su(p,_){var S,T=0,D={height:p};for(_=_?1:0;T<4;T+=2-_)S=gt[T],D["margin"+S]=D["padding"+S]=p;return _&&(D.opacity=D.width=p),D}function Vc(p,_,S){for(var T,D=(Dr.tweeners[_]||[]).concat(Dr.tweeners["*"]),F=0,O=D.length;F<O;F++)if(T=D[F].call(S,_,p))return T}function Xd(p,_,S){var T,D,F,O,Y,G,re,ge,ve="width"in _||"height"in _,le=this,Fe={},He=p.style,_t=p.nodeType&&hn(p),vt=me.get(p,"fxshow");S.queue||(O=b._queueHooks(p,"fx"),O.unqueued==null&&(O.unqueued=0,Y=O.empty.fire,O.empty.fire=function(){O.unqueued||Y()}),O.unqueued++,le.always(function(){le.always(function(){O.unqueued--,b.queue(p,"fx").length||O.empty.fire()})}));for(T in _)if(D=_[T],uy.test(D)){if(delete _[T],F=F||D==="toggle",D===(_t?"hide":"show"))if(D==="show"&&vt&&vt[T]!==void 0)_t=!0;else continue;Fe[T]=vt&&vt[T]||b.style(p,T)}if(G=!b.isEmptyObject(_),!(!G&&b.isEmptyObject(Fe))){ve&&p.nodeType===1&&(S.overflow=[He.overflow,He.overflowX,He.overflowY],re=vt&&vt.display,re==null&&(re=me.get(p,"display")),ge=b.css(p,"display"),ge==="none"&&(re?ge=re:(Yr([p],!0),re=p.style.display||re,ge=b.css(p,"display"),Yr([p]))),(ge==="inline"||ge==="inline-block"&&re!=null)&&b.css(p,"float")==="none"&&(G||(le.done(function(){He.display=re}),re==null&&(ge=He.display,re=ge==="none"?"":ge)),He.display="inline-block")),S.overflow&&(He.overflow="hidden",le.always(function(){He.overflow=S.overflow[0],He.overflowX=S.overflow[1],He.overflowY=S.overflow[2]})),G=!1;for(T in Fe)G||(vt?"hidden"in vt&&(_t=vt.hidden):vt=me.access(p,"fxshow",{display:re}),F&&(vt.hidden=!_t),_t&&Yr([p],!0),le.done(function(){_t||Yr([p]),me.remove(p,"fxshow");for(T in Fe)b.style(p,T,Fe[T])})),G=Vc(_t?vt[T]:0,T,le),T in vt||(vt[T]=G.start,_t&&(G.end=G.start,G.start=0))}}function jc(p,_){var S,T,D,F,O;for(S in p)if(T=$(S),D=_[T],F=p[S],Array.isArray(F)&&(D=F[1],F=p[S]=F[0]),S!==T&&(p[T]=F,delete p[S]),O=b.cssHooks[T],O&&"expand"in O){F=O.expand(F),delete p[T];for(S in F)S in p||(p[S]=F[S],_[S]=D)}else _[T]=D}function Dr(p,_,S){var T,D,F=0,O=Dr.prefilters.length,Y=b.Deferred().always(function(){delete G.elem}),G=function(){if(D)return!1;for(var ve=lo||Lc(),le=Math.max(0,re.startTime+re.duration-ve),Fe=le/re.duration||0,He=1-Fe,_t=0,vt=re.tweens.length;_t<vt;_t++)re.tweens[_t].run(He);return Y.notifyWith(p,[re,He,le]),He<1&&vt?le:(vt||Y.notifyWith(p,[re,1,0]),Y.resolveWith(p,[re]),!1)},re=Y.promise({elem:p,props:b.extend({},_),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},S),originalProperties:_,originalOptions:S,startTime:lo||Lc(),duration:S.duration,tweens:[],createTween:function(ve,le){var Fe=b.Tween(p,re.opts,ve,le,re.opts.specialEasing[ve]||re.opts.easing);return re.tweens.push(Fe),Fe},stop:function(ve){var le=0,Fe=ve?re.tweens.length:0;if(D)return this;for(D=!0;le<Fe;le++)re.tweens[le].run(1);return ve?(Y.notifyWith(p,[re,1,0]),Y.resolveWith(p,[re,ve])):Y.rejectWith(p,[re,ve]),this}}),ge=re.props;for(jc(ge,re.opts.specialEasing);F<O;F++)if(T=Dr.prefilters[F].call(re,p,ge,re.opts),T)return k(T.stop)&&(b._queueHooks(re.elem,re.opts.queue).stop=T.stop.bind(T)),T;return b.map(ge,Vc,re),k(re.opts.start)&&re.opts.start.call(p,re),re.progress(re.opts.progress).done(re.opts.done,re.opts.complete).fail(re.opts.fail).always(re.opts.always),b.fx.timer(b.extend(G,{elem:p,anim:re,queue:re.opts.queue})),re}b.Animation=b.extend(Dr,{tweeners:{"*":[function(p,_){var S=this.createTween(p,_);return Cn(S.elem,p,lt.exec(_),S),S}]},tweener:function(p,_){k(p)?(_=p,p=["*"]):p=p.match(Ne);for(var S,T=0,D=p.length;T<D;T++)S=p[T],Dr.tweeners[S]=Dr.tweeners[S]||[],Dr.tweeners[S].unshift(_)},prefilters:[Xd],prefilter:function(p,_){_?Dr.prefilters.unshift(p):Dr.prefilters.push(p)}}),b.speed=function(p,_,S){var T=p&&typeof p=="object"?b.extend({},p):{complete:S||!S&&_||k(p)&&p,duration:p,easing:S&&_||_&&!k(_)&&_};return b.fx.off?T.duration=0:typeof T.duration!="number"&&(T.duration in b.fx.speeds?T.duration=b.fx.speeds[T.duration]:T.duration=b.fx.speeds._default),(T.queue==null||T.queue===!0)&&(T.queue="fx"),T.old=T.complete,T.complete=function(){k(T.old)&&T.old.call(this),T.queue&&b.dequeue(this,T.queue)},T},b.fn.extend({fadeTo:function(p,_,S,T){return this.filter(hn).css("opacity",0).show().end().animate({opacity:_},p,S,T)},animate:function(p,_,S,T){var D=b.isEmptyObject(p),F=b.speed(_,S,T),O=function(){var Y=Dr(this,b.extend({},p),F);(D||me.get(this,"finish"))&&Y.stop(!0)};return O.finish=O,D||F.queue===!1?this.each(O):this.queue(F.queue,O)},stop:function(p,_,S){var T=function(D){var F=D.stop;delete D.stop,F(S)};return typeof p!="string"&&(S=_,_=p,p=void 0),_&&this.queue(p||"fx",[]),this.each(function(){var D=!0,F=p!=null&&p+"queueHooks",O=b.timers,Y=me.get(this);if(F)Y[F]&&Y[F].stop&&T(Y[F]);else for(F in Y)Y[F]&&Y[F].stop&&Jd.test(F)&&T(Y[F]);for(F=O.length;F--;)O[F].elem===this&&(p==null||O[F].queue===p)&&(O[F].anim.stop(S),D=!1,O.splice(F,1));(D||!S)&&b.dequeue(this,p)})},finish:function(p){return p!==!1&&(p=p||"fx"),this.each(function(){var _,S=me.get(this),T=S[p+"queue"],D=S[p+"queueHooks"],F=b.timers,O=T?T.length:0;for(S.finish=!0,b.queue(this,p,[]),D&&D.stop&&D.stop.call(this,!0),_=F.length;_--;)F[_].elem===this&&F[_].queue===p&&(F[_].anim.stop(!0),F.splice(_,1));for(_=0;_<O;_++)T[_]&&T[_].finish&&T[_].finish.call(this);delete S.finish})}}),b.each(["toggle","show","hide"],function(p,_){var S=b.fn[_];b.fn[_]=function(T,D,F){return T==null||typeof T=="boolean"?S.apply(this,arguments):this.animate(su(_,!0),T,D,F)}}),b.each({slideDown:su("show"),slideUp:su("hide"),slideToggle:su("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(p,_){b.fn[p]=function(S,T,D){return this.animate(_,S,T,D)}}),b.timers=[],b.fx.tick=function(){var p,_=0,S=b.timers;for(lo=Date.now();_<S.length;_++)p=S[_],!p()&&S[_]===p&&S.splice(_--,1);S.length||b.fx.stop(),lo=void 0},b.fx.timer=function(p){b.timers.push(p),b.fx.start()},b.fx.interval=13,b.fx.start=function(){Zo||(Zo=!0,Qo())},b.fx.stop=function(){Zo=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(p,_){return p=b.fx&&b.fx.speeds[p]||p,_=_||"fx",this.queue(_,function(S,T){var D=t.setTimeout(S,p);T.stop=function(){t.clearTimeout(D)}})},function(){var p=N.createElement("input"),_=N.createElement("select"),S=_.appendChild(N.createElement("option"));p.type="checkbox",A.checkOn=p.value!=="",A.optSelected=S.selected,p=N.createElement("input"),p.value="t",p.type="radio",A.radioValue=p.value==="t"}();var zc,fo=b.expr.attrHandle;b.fn.extend({attr:function(p,_){return I(this,b.attr,p,_,arguments.length>1)},removeAttr:function(p){return this.each(function(){b.removeAttr(this,p)})}}),b.extend({attr:function(p,_,S){var T,D,F=p.nodeType;if(!(F===3||F===8||F===2)){if(typeof p.getAttribute>"u")return b.prop(p,_,S);if((F!==1||!b.isXMLDoc(p))&&(D=b.attrHooks[_.toLowerCase()]||(b.expr.match.bool.test(_)?zc:void 0)),S!==void 0){if(S===null){b.removeAttr(p,_);return}return D&&"set"in D&&(T=D.set(p,S,_))!==void 0?T:(p.setAttribute(_,S+""),S)}return D&&"get"in D&&(T=D.get(p,_))!==null?T:(T=b.find.attr(p,_),T??void 0)}},attrHooks:{type:{set:function(p,_){if(!A.radioValue&&_==="radio"&&ae(p,"input")){var S=p.value;return p.setAttribute("type",_),S&&(p.value=S),_}}}},removeAttr:function(p,_){var S,T=0,D=_&&_.match(Ne);if(D&&p.nodeType===1)for(;S=D[T++];)p.removeAttribute(S)}}),zc={set:function(p,_,S){return _===!1?b.removeAttr(p,S):p.setAttribute(S,S),S}},b.each(b.expr.match.bool.source.match(/\w+/g),function(p,_){var S=fo[_]||b.find.attr;fo[_]=function(T,D,F){var O,Y,G=D.toLowerCase();return F||(Y=fo[G],fo[G]=O,O=S(T,D,F)!=null?G:null,fo[G]=Y),O}});var Hc=/^(?:input|select|textarea|button)$/i,ea=/^(?:a|area)$/i;b.fn.extend({prop:function(p,_){return I(this,b.prop,p,_,arguments.length>1)},removeProp:function(p){return this.each(function(){delete this[b.propFix[p]||p]})}}),b.extend({prop:function(p,_,S){var T,D,F=p.nodeType;if(!(F===3||F===8||F===2))return(F!==1||!b.isXMLDoc(p))&&(_=b.propFix[_]||_,D=b.propHooks[_]),S!==void 0?D&&"set"in D&&(T=D.set(p,S,_))!==void 0?T:p[_]=S:D&&"get"in D&&(T=D.get(p,_))!==null?T:p[_]},propHooks:{tabIndex:{get:function(p){var _=b.find.attr(p,"tabindex");return _?parseInt(_,10):Hc.test(p.nodeName)||ea.test(p.nodeName)&&p.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),A.optSelected||(b.propHooks.selected={get:function(p){var _=p.parentNode;return _&&_.parentNode&&_.parentNode.selectedIndex,null},set:function(p){var _=p.parentNode;_&&(_.selectedIndex,_.parentNode&&_.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this});function Ui(p){var _=p.match(Ne)||[];return _.join(" ")}function $i(p){return p.getAttribute&&p.getAttribute("class")||""}function Gc(p){return Array.isArray(p)?p:typeof p=="string"?p.match(Ne)||[]:[]}b.fn.extend({addClass:function(p){var _,S,T,D,F,O;return k(p)?this.each(function(Y){b(this).addClass(p.call(this,Y,$i(this)))}):(_=Gc(p),_.length?this.each(function(){if(T=$i(this),S=this.nodeType===1&&" "+Ui(T)+" ",S){for(F=0;F<_.length;F++)D=_[F],S.indexOf(" "+D+" ")<0&&(S+=D+" ");O=Ui(S),T!==O&&this.setAttribute("class",O)}}):this)},removeClass:function(p){var _,S,T,D,F,O;return k(p)?this.each(function(Y){b(this).removeClass(p.call(this,Y,$i(this)))}
vendor: 5,562 bytes, lines 835-836
835):arguments.length?(_=Gc(p),_.length?this.each(function(){if(T=$i(this),S=this.nodeType===1&&" "+Ui(T)+" ",S){for(F=0;F<_.length;F++)for(D=_[F];S.indexOf(" "+D+" ")>-1;)S=S.replace(" "+D+" "," ");O=Ui(S),T!==O&&this.setAttribute("class",O)}}):this):this.attr("class","")},toggleClass:function(p,_){var S,T,D,F,O=typeof p,Y=O==="string"||Array.isArray(p);return k(p)?this.each(function(G){b(this).toggleClass(p.call(this,G,$i(this),_),_)}):typeof _=="boolean"&&Y?_?this.addClass(p):this.removeClass(p):(S=Gc(p),this.each(function(){if(Y)for(F=b(this),D=0;D<S.length;D++)T=S[D],F.hasClass(T)?F.removeClass(T):F.addClass(T);else(p===void 0||O==="boolean")&&(T=$i(this),T&&me.set(this,"__className__",T),this.setAttribute&&this.setAttribute("class",T||p===!1?"":me.get(this,"__className__")||""))}))},hasClass:function(p){var _,S,T=0;for(_=" "+p+" ";S=this[T++];)if(S.nodeType===1&&(" "+Ui($i(S))+" ").indexOf(_)>-1)return!0;return!1}});var Zd=/\r/g;b.fn.extend({val:function(p){var _,S,T,D=this[0];return arguments.length?(T=k(p),this.each(function(F){var O;this.nodeType===1&&(T?O=p.call(this,F,b(this).val()):O=p,O==null?O="":typeof O=="number"?O+="":Array.isArray(O)&&(O=b.map(O,function(Y){return Y==null?"":Y+""})),_=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],(!_||!("set"in _)||_.set(this,O,"value")===void 0)&&(this.value=O))})):D?(_=b.valHooks[D.type]||b.valHooks[D.nodeName.toLowerCase()],_&&"get"in _&&(S=_.get(D,"value"))!==void 0?S:(S=D.value,typeof S=="string"?S.replace(Zd,""):S??"")):void 0}}),b.extend({valHooks:{option:{get:function(p){var _=b.find.attr(p,"value");return _??Ui(b.text(p))}},select:{get:function(p){var _,S,T,D=p.options,F=p.selectedIndex,O=p.type==="select-one",Y=O?null:[],G=O?F+1:D.length;for(F<0?T=G:T=O?F:0;T<G;T++)if(S=D[T],(S.selected||T===F)&&!S.disabled&&(!S.parentNode.disabled||!ae(S.parentNode,"optgroup"))){if(_=b(S).val(),O)return _;Y.push(_)}return Y},set:function(p,_){for(var S,T,D=p.options,F=b.makeArray(_),O=D.length;O--;)T=D[O],(T.selected=b.inArray(b.valHooks.option.get(T),F)>-1)&&(S=!0);return S||(p.selectedIndex=-1),F}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(p,_){if(Array.isArray(_))return p.checked=b.inArray(b(p).val(),_)>-1}},A.checkOn||(b.valHooks[this].get=function(p){return p.getAttribute("value")===null?"on":p.value})});var ta=t.location,Wc={guid:Date.now()},uu=/\?/;b.parseXML=function(p){var _,S;if(!p||typeof p!="string")return null;try{_=new t.DOMParser().parseFromString(p,"text/xml")}catch{}return S=_&&_.getElementsByTagName("parsererror")[0],(!_||S)&&b.error("Invalid XML: "+(S?b.map(S.childNodes,function(T){return T.textContent}).join(`
836`):p)),_};var Qd=/^(?:focusinfocus|focusoutblur)$/,eh=function(p){p.stopPropagation()};b.extend(b.event,{trigger:function(p,_,S,T){var D,F,O,Y,G,re,ge,ve,le=[S||N],Fe=w.call(p,"type")?p.type:p,He=w.call(p,"namespace")?p.namespace.split("."):[];if(F=ve=O=S=S||N,!(S.nodeType===3||S.nodeType===8)&&!Qd.test(Fe+b.event.triggered)&&(Fe.indexOf(".")>-1&&(He=Fe.split("."),Fe=He.shift(),He.sort()),G=Fe.indexOf(":")<0&&"on"+Fe,p=p[b.expando]?p:new b.Event(Fe,typeof p=="object"&&p),p.isTrigger=T?2:3,p.namespace=He.join("."),p.rnamespace=p.namespace?new RegExp("(^|\\.)"+He.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,p.result=void 0,p.target||(p.target=S),_=_==null?[p]:b.makeArray(_,[p]),ge=b.event.special[Fe]||{},!(!T&&ge.trigger&&ge.trigger.apply(S,_)===!1))){if(!T&&!ge.noBubble&&!U(S)){for(Y=ge.delegateType||Fe,Qd.test(Y+Fe)||(F=F.parentNode);F;F=F.parentNode)le.push(F),O=F;O===(S.ownerDocument||N)&&le.push(O.defaultView||O.parentWindow||t)}for(D=0;(F=le[D++])&&!p.isPropagationStopped();)ve=F,p.type=D>1?Y:ge.bindType||Fe,re=(me.get(F,"events")||Object.create(null))[p.type]&&me.get(F,"handle"),re&&re.apply(F,_),re=G&&F[G],re&&re.apply&&K(F)&&(p.result=re.apply(F,_),p.result===!1&&p.preventDefault());return p.type=Fe,!T&&!p.isDefaultPrevented()&&(!ge._default||ge._default.apply(le.pop(),_)===!1)&&K(S)&&G&&k(S[Fe])&&!U(S)&&(O=S[G],O&&(S[G]=null),b.event.triggered=Fe,p.isPropagationStopped()&&ve.addEventListener(Fe,eh),S[Fe](),p.isPropagationStopped()&&ve.removeEventListener(Fe,eh),b.event.triggered=void 0,O&&(S[G]=O)),p.result}},simulate:function(p,_,S){var T=b.extend(new b.Event,S,{type:p,isSimulated:!0});b.event.trigger(T,null,_)}}),b.fn.extend({trigger:function(p,_){return this.each(function(){b.event.trigger(p,_,this)})},triggerHandler:function(p,_){var S=this[0];if(S)return b.event.trigger(p,_,S,!0)}});var cy=/\[\]$/,qc=/\r?\n/g,ly=/^(?:submit|button|image|reset|file)$/i,fy=/^(?:input|select|textarea|keygen)/i;function Kc(p,_,S,T){var D;if(Array.isArray(_))b.each(_,function(F,O){S||cy.test(p)?T(p,O):Kc(p+"["+(typeof O=="object"&&O!=null?F:"")+"]",O,S,T)});else if(!S&&z(_)==="object")for(D in _)Kc(p+"["+D+"]",_[D],S,T);else T(p,_)}b.param=function(p,_){var S,T=[],D=function(F,O){var Y=k(O)?O():O;T[T.length]=encodeURIComponent(F)+"="+encodeURIComponent(Y??"")};if(p==null)return"";if(Array.isArray(p)||p.jquery&&!b.isPlainObject(p))b.each(p,function(){D(this.name,this.value)});else for(S in p)Kc(S,p[S],_,D);return T.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var p=b.prop(this,"elements");return p?b.makeArray(p):this}).filter(function(){var p=this.type;return this.name&&!b(this).is(":disabled")&&fy.test(this.nodeName)&&!ly.test(p)&&(this.checked||!Bi.test(p))}).map(function(p,_){var S=b(this).val();return S==null?null:Array.isArray(S)?b.map(S,function(T){return{name:_.n
vendor: 17,842 bytes, lines 836-838
836ame,value:T.replace(qc,`\r
837`)}}):{name:_.name,value:S.replace(qc,`\r
838`)}}).get()}});var dy=/%20/g,Yc=/#.*$/,hy=/([?&])_=[^&]*/,py=/^(.*?):[ \t]*([^\r\n]*)$/mg,gy=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,my=/^(?:GET|HEAD)$/,yy=/^\/\//,rn={},Qt={},th="*/".concat("*"),Jc=N.createElement("a");Jc.href=ta.href;function nh(p){return function(_,S){typeof _!="string"&&(S=_,_="*");var T,D=0,F=_.toLowerCase().match(Ne)||[];if(k(S))for(;T=F[D++];)T[0]==="+"?(T=T.slice(1)||"*",(p[T]=p[T]||[]).unshift(S)):(p[T]=p[T]||[]).push(S)}}function rh(p,_,S,T){var D={},F=p===Qt;function O(Y){var G;return D[Y]=!0,b.each(p[Y]||[],function(re,ge){var ve=ge(_,S,T);if(typeof ve=="string"&&!F&&!D[ve])return _.dataTypes.unshift(ve),O(ve),!1;if(F)return!(G=ve)}),G}return O(_.dataTypes[0])||!D["*"]&&O("*")}function Xc(p,_){var S,T,D=b.ajaxSettings.flatOptions||{};for(S in _)_[S]!==void 0&&((D[S]?p:T||(T={}))[S]=_[S]);return T&&b.extend(!0,p,T),p}function vy(p,_,S){for(var T,D,F,O,Y=p.contents,G=p.dataTypes;G[0]==="*";)G.shift(),T===void 0&&(T=p.mimeType||_.getResponseHeader("Content-Type"));if(T){for(D in Y)if(Y[D]&&Y[D].test(T)){G.unshift(D);break}}if(G[0]in S)F=G[0];else{for(D in S){if(!G[0]||p.converters[D+" "+G[0]]){F=D;break}O||(O=D)}F=F||O}if(F)return F!==G[0]&&G.unshift(F),S[F]}function ih(p,_,S,T){var D,F,O,Y,G,re={},ge=p.dataTypes.slice();if(ge[1])for(O in p.converters)re[O.toLowerCase()]=p.converters[O];for(F=ge.shift();F;)if(p.responseFields[F]&&(S[p.responseFields[F]]=_),!G&&T&&p.dataFilter&&(_=p.dataFilter(_,p.dataType)),G=F,F=ge.shift(),F){if(F==="*")F=G;else if(G!=="*"&&G!==F){if(O=re[G+" "+F]||re["* "+F],!O){for(D in re)if(Y=D.split(" "),Y[1]===F&&(O=re[G+" "+Y[0]]||re["* "+Y[0]],O)){O===!0?O=re[D]:re[D]!==!0&&(F=Y[0],ge.unshift(Y[1]));break}}if(O!==!0)if(O&&p.throws)_=O(_);else try{_=O(_)}catch(ve){return{state:"parsererror",error:O?ve:"No conversion from "+G+" to "+F}}}}return{state:"success",data:_}}b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ta.href,type:"GET",isLocal:gy.test(ta.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":th,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":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(p,_){return _?Xc(Xc(p,b.ajaxSettings),_):Xc(b.ajaxSettings,p)},ajaxPrefilter:nh(rn),ajaxTransport:nh(Qt),ajax:function(p,_){typeof p=="object"&&(_=p,p=void 0),_=_||{};var S,T,D,F,O,Y,G,re,ge,ve,le=b.ajaxSetup({},_),Fe=le.context||le,He=le.context&&(Fe.nodeType||Fe.jquery)?b(Fe):b.event,_t=b.Deferred(),vt=b.Callbacks("once memory"),Nn=le.statusCode||{},yn={},Jr={},Xr="canceled",Pt={readyState:0,getResponseHeader:function(Nt){var nn;if(G){if(!F)for(F={};nn=py.exec(D);)F[nn[1].toLowerCase()+" "]=(F[nn[1].toLowerCase()+" "]||[]).concat(nn[2]);nn=F[Nt.toLowerCase()+" "]}return nn==null?null:nn.join(", ")},getAllResponseHeaders:function(){return G?D:null},setRequestHeader:function(Nt,nn){return G==null&&(Nt=Jr[Nt.toLowerCase()]=Jr[Nt.toLowerCase()]||Nt,yn[Nt]=nn),this},overrideMimeType:function(Nt){return G==null&&(le.mimeType=Nt),this},statusCode:function(Nt){var nn;if(Nt)if(G)Pt.always(Nt[Pt.status]);else for(nn in Nt)Nn[nn]=[Nn[nn],Nt[nn]];return this},abort:function(Nt){var nn=Nt||Xr;return S&&S.abort(nn),Mi(0,nn),this}};if(_t.promise(Pt),le.url=((p||le.url||ta.href)+"").replace(yy,ta.protocol+"//"),le.type=_.method||_.type||le.method||le.type,le.dataTypes=(le.dataType||"*").toLowerCase().match(Ne)||[""],le.crossDomain==null){Y=N.createElement("a");try{Y.href=le.url,Y.href=Y.href,le.crossDomain=Jc.protocol+"//"+Jc.host!=Y.protocol+"//"+Y.host}catch{le.crossDomain=!0}}if(le.data&&le.processData&&typeof le.data!="string"&&(le.data=b.param(le.data,le.traditional)),rh(rn,le,_,Pt),G)return Pt;re=b.event&&le.global,re&&b.active++===0&&b.event.trigger("ajaxStart"),le.type=le.type.toUpperCase(),le.hasContent=!my.test(le.type),T=le.url.replace(Yc,""),le.hasContent?le.data&&le.processData&&(le.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(le.data=le.data.replace(dy,"+")):(ve=le.url.slice(T.length),le.data&&(le.processData||typeof le.data=="string")&&(T+=(uu.test(T)?"&":"?")+le.data,delete le.data),le.cache===!1&&(T=T.replace(hy,"$1"),ve=(uu.test(T)?"&":"?")+"_="+Wc.guid+++ve),le.url=T+ve),le.ifModified&&(b.lastModified[T]&&Pt.setRequestHeader("If-Modified-Since",b.lastModified[T]),b.etag[T]&&Pt.setRequestHeader("If-None-Match",b.etag[T])),(le.data&&le.hasContent&&le.contentType!==!1||_.contentType)&&Pt.setRequestHeader("Content-Type",le.contentType),Pt.setRequestHeader("Accept",le.dataTypes[0]&&le.accepts[le.dataTypes[0]]?le.accepts[le.dataTypes[0]]+(le.dataTypes[0]!=="*"?", "+th+"; q=0.01":""):le.accepts["*"]);for(ge in le.headers)Pt.setRequestHeader(ge,le.headers[ge]);if(le.beforeSend&&(le.beforeSend.call(Fe,Pt,le)===!1||G))return Pt.abort();if(Xr="abort",vt.add(le.complete),Pt.done(le.success),Pt.fail(le.error),S=rh(Qt,le,_,Pt),!S)Mi(-1,"No Transport");else{if(Pt.readyState=1,re&&He.trigger("ajaxSend",[Pt,le]),G)return Pt;le.async&&le.timeout>0&&(O=t.setTimeout(function(){Pt.abort("timeout")},le.timeout));try{G=!1,S.send(yn,Mi)}catch(Nt){if(G)throw Nt;Mi(-1,Nt)}}function Mi(Nt,nn,Va,lu){var Fr,ho,Er,di,Li,tr=nn;G||(G=!0,O&&t.clearTimeout(O),S=void 0,D=lu||"",Pt.readyState=Nt>0?4:0,Fr=Nt>=200&&Nt<300||Nt===304,Va&&(di=vy(le,Pt,Va)),!Fr&&b.inArray("script",le.dataTypes)>-1&&b.inArray("json",le.dataTypes)<0&&(le.converters["text script"]=function(){}),di=ih(le,di,Pt,Fr),Fr?(le.ifModified&&(Li=Pt.getResponseHeader("Last-Modified"),Li&&(b.lastModified[T]=Li),Li=Pt.getResponseHeader("etag"),Li&&(b.etag[T]=Li)),Nt===204||le.type==="HEAD"?tr="nocontent":Nt===304?tr="notmodified":(tr=di.state,ho=di.data,Er=di.error,Fr=!Er)):(Er=tr,(Nt||!tr)&&(tr="error",Nt<0&&(Nt=0))),Pt.status=Nt,Pt.statusText=(nn||tr)+"",Fr?_t.resolveWith(Fe,[ho,tr,Pt]):_t.rejectWith(Fe,[Pt,tr,Er]),Pt.statusCode(Nn),Nn=void 0,re&&He.trigger(Fr?"ajaxSuccess":"ajaxError",[Pt,le,Fr?ho:Er]),vt.fireWith(Fe,[Pt,tr]),re&&(He.trigger("ajaxComplete",[Pt,le]),--b.active||b.event.trigger("ajaxStop")))}return Pt},getJSON:function(p,_,S){return b.get(p,_,S,"json")},getScript:function(p,_){return b.get(p,void 0,_,"script")}}),b.each(["get","post"],function(p,_){b[_]=function(S,T,D,F){return k(T)&&(F=F||D,D=T,T=void 0),b.ajax(b.extend({url:S,type:_,dataType:F,data:T,success:D},b.isPlainObject(S)&&S))}}),b.ajaxPrefilter(function(p){var _;for(_ in p.headers)_.toLowerCase()==="content-type"&&(p.contentType=p.headers[_]||"")}),b._evalUrl=function(p,_,S){return b.ajax({url:p,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(T){b.globalEval(T,_,S)}})},b.fn.extend({wrapAll:function(p){var _;return this[0]&&(k(p)&&(p=p.call(this[0])),_=b(p,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&_.insertBefore(this[0]),_.map(function(){for(var S=this;S.firstElementChild;)S=S.firstElementChild;return S}).append(this)),this},wrapInner:function(p){return k(p)?this.each(function(_){b(this).wrapInner(p.call(this,_))}):this.each(function(){var _=b(this),S=_.contents();S.length?S.wrapAll(p):_.append(p)})},wrap:function(p){var _=k(p);return this.each(function(S){b(this).wrapAll(_?p.call(this,S):p)})},unwrap:function(p){return this.parent(p).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(p){return!b.expr.pseudos.visible(p)},b.expr.pseudos.visible=function(p){return!!(p.offsetWidth||p.offsetHeight||p.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var _y={0:200,1223:204},mn=b.ajaxSettings.xhr();A.cors=!!mn&&"withCredentials"in mn,A.ajax=mn=!!mn,b.ajaxTransport(function(p){var _,S;if(A.cors||mn&&!p.crossDomain)return{send:function(T,D){var F,O=p.xhr();if(O.open(p.type,p.url,p.async,p.username,p.password),p.xhrFields)for(F in p.xhrFields)O[F]=p.xhrFields[F];p.mimeType&&O.overrideMimeType&&O.overrideMimeType(p.mimeType),!p.crossDomain&&!T["X-Requested-With"]&&(T["X-Requested-With"]="XMLHttpRequest");for(F in T)O.setRequestHeader(F,T[F]);_=function(Y){return function(){_&&(_=S=O.onload=O.onerror=O.onabort=O.ontimeout=O.onreadystatechange=null,Y==="abort"?O.abort():Y==="error"?typeof O.status!="number"?D(0,"error"):D(O.status,O.statusText):D(_y[O.status]||O.status,O.statusText,(O.responseType||"text")!=="text"||typeof O.responseText!="string"?{binary:O.response}:{text:O.responseText},O.getAllResponseHeaders()))}},O.onload=_(),S=O.onerror=O.ontimeout=_("error"),O.onabort!==void 0?O.onabort=S:O.onreadystatechange=function(){O.readyState===4&&t.setTimeout(function(){_&&S()})},_=_("abort");try{O.send(p.hasContent&&p.data||null)}catch(Y){if(_)throw Y}},abort:function(){_&&_()}}}),b.ajaxPrefilter(function(p){p.crossDomain&&(p.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(p){return b.globalEval(p),p}}}),b.ajaxPrefilter("script",function(p){p.cache===void 0&&(p.cache=!1),p.crossDomain&&(p.type="GET")}),b.ajaxTransport("script",function(p){if(p.crossDomain||p.scriptAttrs){var _,S;return{send:function(T,D){_=b("<script>").attr(p.scriptAttrs||{}).prop({charset:p.scriptCharset,src:p.url}).on("load error",S=function(F){_.remove(),S=null,F&&D(F.type==="error"?404:200,F.type)}),N.head.appendChild(_[0])},abort:function(){S&&S()}}}});var cu=[],fi=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var p=cu.pop()||b.expando+"_"+Wc.guid++;return this[p]=!0,p}}),b.ajaxPrefilter("json jsonp",function(p,_,S){var T,D,F,O=p.jsonp!==!1&&(fi.test(p.url)?"url":typeof p.data=="string"&&(p.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&fi.test(p.data)&&"data");if(O||p.dataTypes[0]==="jsonp")return T=p.jsonpCallback=k(p.jsonpCallback)?p.jsonpCallback():p.jsonpCallback,O?p[O]=p[O].replace(fi,"$1"+T):p.jsonp!==!1&&(p.url+=(uu.test(p.url)?"&":"?")+p.jsonp+"="+T),p.converters["script json"]=function(){return F||b.error(T+" was not called"),F[0]},p.dataTypes[0]="json",D=t[T],t[T]=function(){F=arguments},S.always(function(){D===void 0?b(t).removeProp(T):t[T]=D,p[T]&&(p.jsonpCallback=_.jsonpCallback,cu.push(T)),F&&k(D)&&D(F[0]),F=D=void 0}),"script"}),A.createHTMLDocument=function(){var p=N.implementation.createHTMLDocument("").body;return p.innerHTML="<form></form><form></form>",p.childNodes.length===2}(),b.parseHTML=function(p,_,S){if(typeof p!="string")return[];typeof _=="boolean"&&(S=_,_=!1);var T,D,F;return _||(A.createHTMLDocument?(_=N.implementation.createHTMLDocument(""),T=_.createElement("base"),T.href=N.location.href,_.head.appendChild(T)):_=N),D=oe.exec(p),F=!S&&[],D?[_.createElement(D[1])]:(D=Od([p],_,F),F&&F.length&&b(F).remove(),b.merge([],D.childNodes))},b.fn.load=function(p,_,S){var T,D,F,O=this,Y=p.indexOf(" ");return Y>-1&&(T=Ui(p.slice(Y)),p=p.slice(0,Y)),k(_)?(S=_,_=void 0):_&&typeof _=="object"&&(D="POST"),O.length>0&&b.ajax({url:p,type:D||"GET",dataType:"html",data:_}).done(function(G){F=arguments,O.html(T?b("<div>").append(b.parseHTML(G)).find(T):G)}).always(S&&function(G,re){O.each(function(){S.apply(this,F||[G.responseText,re,G])})}),this},b.expr.pseudos.animated=function(p){return b.grep(b.timers,function(_){return p===_.elem}).length},b.offset={setOffset:function(p,_,S){var T,D,F,O,Y,G,re,ge=b.css(p,"position"),ve=b(p),le={};ge==="static"&&(p.style.position="relative"),Y=ve.offset(),F=b.css(p,"top"),G=b.css(p,"left"),re=(ge==="absolute"||ge==="fixed")&&(F+G).indexOf("auto")>-1,re?(T=ve.position(),O=T.top,D=T.left):(O=parseFloat(F)||0,D=parseFloat(G)||0),k(_)&&(_=_.call(p,S,b.extend({},Y))),_.top!=null&&(le.top=_.top-Y.top+O),_.left!=null&&(le.left=_.left-Y.left+D),"using"in _?_.using.call(p,le):ve.css(le)}},b.fn.extend({offset:function(p){if(arguments.length)return p===void 0?this:this.each(function(D){b.offset.setOffset(this,p,D)});var _,S,T=this[0];if(T)return T.getClientRects().length?(_=T.getBoundingClientRect(),S=T.ownerDocument.defaultView,{top:_.top+S.pageYOffset,left:_.left+S.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var p,_,S,T=this[0],D={top:0,left:0};if(b.css(T,"position")==="fixed")_=T.getBoundingClientRect();else{for(_=this.offset(),S=T.ownerDocument,p=T.offsetParent||S.documentElement;p&&(p===S.body||p===S.documentElement)&&b.css(p,"position")==="static";)p=p.parentNode;p&&p!==T&&p.nodeType===1&&(D=b(p).offset(),D.top+=b.css(p,"borderTopWidth",!0),D.left+=b.css(p,"borderLeftWidth",!0))}return{top:_.top-D.top-b.css(T,"marginTop",!0),left:_.left-D.left-b.css(T,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var p=this.offsetParent;p&&b.css(p,"position")==="static";)p=p.offsetParent;return p||qt})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(p,_){var S=_==="pageYOffset";b.fn[p]=function(T){return I(this,function(D,F,O){var Y;if(U(D)?Y=D:D.nodeType===9&&(Y=D.defaultView),O===void 0)return Y?Y[_]:D[F];Y?Y.scrollTo(S?Y.pageXOffset:O,S?O:Y.pageYOffset):D[F]=O},p,T,arguments.length)}}),b.each(["top","left"],function(p,_){b.cssHooks[_]=La(A.pixelPosition,function(S,T){if(T)return T=Ma(S,_),Oc.test(T)?b(S).position()[_]+"px":T})}),b.each({Height:"height",Width:"width"},function(p,_){b.each({padding:"inner"+p,content:_,"":"outer"+p},function(S,T){b.fn[T]=function(D,F){var O=arguments.length&&(S||typeof D!="boolean"),Y=S||(D===!0||F===!0?"margin":"border");return I(this,function(G,re,ge){var ve;return U(G)?T.indexOf("outer")===0?G["inner"+p]:G.document.documentElement["client"+p]:G.nodeType===9?(ve=G.documentElement,Math.max(G.body["scroll"+p],ve["scroll"+p],G.body["offset"+p],ve["offset"+p],ve["client"+p])):ge===void 0?b.css(G,re,Y):b.style(G,re,ge,Y)},_,O?D:void 0,O)}})}),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(p,_){b.fn[_]=function(S){return this.on(_,S)}}),b.fn.extend({bind:function(p,_,S){return this.on(p,null,_,S)},unbind:function(p,_){return this.off(p,null,_)},delegate:function(p,_,S,T){return this.on(_,p,S,T)},undelegate:function(p,_,S){return arguments.length===1?this.off(p,"**"):this.off(_,p||"**",S)},hover:function(p,_){return this.on("mouseenter",p).on("mouseleave",_||p)}}),b.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(p,_){b.fn[_]=function(S,T){return arguments.length>0?this.on(_,null,S,T):this.trigger(_)}});var oh=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;b.proxy=function(p,_){var S,T,D;if(typeof _=="string"&&(S=p[_],_=p,p=S),!!k(p))return T=i.call(arguments,2),D=function(){return p.apply(_||this,T.concat(i.call(arguments)))},D.guid=p.guid=p.guid||b.guid++,D},b.holdReady=function(p){p?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=ae,b.isFunction=k,b.isWindow=U,b.camelCase=$,b.type=z,b.now=Date.now,b.isNumeric=function(p){var _=b.type(p);return(_==="number"||_==="string")&&!isNaN(p-parseFloat(p))},b.trim=function(p){return p==null?"":(p+"").replace(oh,"$1")};var Zc=t.jQuery,br=t.$;return b.noConflict=function(p){return t.$===b&&(t.$=br),p&&t.jQuery===b&&(t.jQuery=Zc),b},typeof n>"u"&&(t.jQuery=t.$=b),b})})(Q1);var bN=Q1.exports;const Qi=Lu(bN);function EN(){return{vueinstance:null,configure(e){this.vueInstance=e},getNonTieredCharityList(){var e=this.vueInstance;if(e.availableTiers.length===0||e.searchText.length===0)return[];var t=e.availableTiers[0].Settings.map(r=>e.charityResults.filter(o=>!o.BeneficiaryTags||o.BeneficiaryTags.length==0)||!c.BeneficiaryTags.find(o=>o.TagId==r.Entity.Value)),n=[];return t.forEach(r=>{r.forEach(o=>{n.find(i=>i.BeneficiaryAccountId==o.BeneficiaryAccountId)||n.push(o)})}),n},getTieredCharityList(){var e=this.vueInstance;if(e.availableTiers.length===0)return[{displayName:"",charities:e.charityResults}];var t=e.availableTiers[0].Settings.map(n=>({displayName:n.DisplayName,charities:e.charityResults.filter(r=>r.BeneficiaryTags&&r.BeneficiaryTags.length>0&&r.BeneficiaryTags.find(o=>o.TagId==n.Entity.Value))}));return t},async getAvailableTiers(e){var t=this.vueInstance,n=(await H1().getEventById(e)).data;t.availableTiers=[],n&&n.Events&&n.Events.length>0&&!t.ignoreEventTiering&&(n.Events[0].Tiers.length>0&&n.Events[0].Tiers[0].DisplaySettings&&n.Events[0].Tiers[0].DisplaySettings!==null&&typeof n.Events[0].Tiers[0].DisplaySettings=="object"&&Object.assign(t.defaultConfig,this._toCamelCase(n.Events[0].Tiers[0].DisplaySettings)),t.availableTiers=n.Events[0].Tiers)},_toCamelCase(e){return Kn.transform(e,(t,n,r,o)=>{const i=Kn.isArray(o)?r:Kn.camelCase(r);t[i]=Kn.isObject(n)?this._toCamelCase(n):n})}}}const Fo={BENEFICIARY_TIER_TYPE:"Beneficiary",TAG_ENTITY_TYPE:"Tag",PAGING_SETTINGS:{INFINITE:"infinite",PAGED:"paged",NONE:"none"}};function SN(){return{vueinstance:null,configure(e){this.vueInstance=e},getBeneficiariesLazyLoading(){var e=this.vueInstance;if(!e.lazyLoading&&!e.maxSearchResultsReached){e.lazyLoading=!0;let t={query:e.searchText,pageindex:e.pageNumber,eventcampaignid:e.eventCampaignId,tags:[],pagesize:e.pageSize,includeinactivebeneficiaries:e.includeInactiveBeneficiaries};if(e.tagIdsAsCsv){let n=e.tagIdsAsCsv.split(",");t.tags=[...new Set(n)].join(",")}t=e.passParamsExternal(t),Gu().searchWithParams(t).then(function(n){e.pageNumber=n.data.PageNumber+1,e.totalPages=n.data.TotalPages,e.selectedCharity.benef
838iciaryId==0&&(e.beneficiaryList=n.data.Beneficiaries)}).then(function(){e.lazyLoading=!1})}},loadBeneficiaries(e){var t=this.vueInstance;Gu().searchWithParams(e).then(function(n){t.pagingSettings==Fo.PAGING_SETTINGS.PAGED&&(t.charityResults=[]),n.data.Beneficiaries.forEach(r=>{t.charityResults.find(o=>o.BeneficiaryAccountId==r.BeneficiaryAccountId)||t.charityResults.push(r)}),t.totalPages=n.data.TotalPages,t.pagingSettings==Fo.PAGING_SETTINGS.PAGED&&Zp.scrollTo("#vue-gf-beneficiary-search","100",{easing:"ease-in",offset:-60,force:!0})}).then(function(){t.lazyLoading=!1,t.valueEnterSearch=!1,t.configureLoadingCharitiesOnScroll(),t.beneficiaryId>0&&!t.stagedPreselectedBeneficiary&&t.charityResults.length>0&&(t.$_charityManagementMixin_stageCharity(t.charityResults[0]),t.stagedPreselectedBeneficiary=!0)}),t.pageNumber=t.pagingSettings!=Fo.PAGING_SETTINGS.PAGED?t.pageNumber+1:e.pageindex},loadBeneficiariesForTiers(e,t){var n=this.vueInstance,r=0;Gu().getbeneficiaryForTiers(e,t).then(o=>{o.status===200&&o.data.ResultsReturned>0&&o.data.Beneficiaries.forEach(i=>{!n.charityResults.find(s=>s.BeneficiaryAccountId==i.BeneficiaryAccountId)&&r<t&&(n.charityResults.push(i),r++)})}).then(function(){n.lazyLoading=!1,n.valueEnterSearch=!1,n.configureLoadingCharitiesOnScroll(),n.beneficiaryId>0&&!n.stagedPreselectedBeneficiary&&n.charityResults.length>0&&(n.$_charityManagementMixin_stageCharity(n.charityResults[0]),n.stagedPreselectedBeneficiary=!0)})},async performSearchForBeneficiaries(e,t,n,r,o){var i=this.vueInstance;i.pageNumber=1,e!=""?(i.loadingSearch=!0,i.valueEnterSearch=!0):(i.loadingSearch=!1,i.valueEnterSearch=!1);let s={query:e,region:t,eventcampaignid:n,tags:[],pagesize:r,includeinactivebeneficiaries:i.includeInactiveBeneficiaries};if(o){let h=o.split(",");s.tags=[...new Set(h)].join(",")}var l=await Gu().searchWithParams(s);i.selectedCharity.beneficiaryId==0&&(i.charityResults=l.data.Beneficiaries),i.totalPages=l.data.TotalPages,i.loadingSearch=!1,i.pagingSettings!=Fo.PAGING_SETTINGS.PAGED&&(i.pageNumber=i.pageNumber+1)}}}const CN={name:"CharityManagementMixin",components:{SearchBar:dP,AlertMessage:mP,Paginate:wN},props:{eventCampaignId:{type:String,default:""},beneficiaryId:{type:Number,default:0},region:{type:String,default:""},afterSelectCallBack:{type:String,default:""},afterResetCallBack:{type:String,default:""},external:{type:Object,default:()=>{}},config:{type:Object,required:!0,default:()=>{}},tagIdsAsCsv:{type:String,default:""},allowPreselectionChange:{type:Boolean,default:!1},ignoreEventTiering:{type:Boolean,default:!1},pageSize:{type:Number,default:25},mode:{type:Object,default:()=>{}},showMoreResultsInfoText:{type:Boolean,default:!0},pagingSettings:{type:String,default:Fo.PAGING_SETTINGS.INFINITE},includeInactiveBeneficiaries:{type:Boolean,default:!1}},data(){return{searchText:"",charityResults:[],pageNumber:1,totalPages:1,maxNumberOfPages:5,defaultMaxResultsToDisplay:1e3,valueEnterSearch:!1,lazyLoading:!0,loadingSearch:!1,availableTiers:[],cachedAvailableTiers:[],selectedCharity:{beneficiaryId:0,beneficiaryImagePath:"",beneficiaryName:"",tags:[]},stagedPreselectedBeneficiary:!1,resetSearch:!1,tierManager:new EN,beneficiaryManager:new SN,componentMode:"",gfComponents:Z1,settings:{},constants:Fo}},computed:{componentToLoad(){return!this.componentMode||this.componentMode==""?null:Z1.LoadComponent(this.componentMode)},alertMessageToDisplay(){return!this.showMoreResultsInfoText||this.pagingSettings==this.constants.PAGING_SETTINGS.PAGED?"":this.availableTiers.length>0&&this.containsTieredCharities&&this.searchText===""?this.config.tieredRefineSearchText:this.maxSearchResultsReached&&this.selectedCharity.beneficiaryId===0?this.config.tooManyResultsText:""},beneficiaryList:{get:function(){return this.charityResults},set:function(e){e!=null&&(this.charityResults=this.charityResults.concat(e))}}
838,highestDisplayedTier(){return this.tieredCharityList.filter(e=>e.charities.length>0)[0].displayName},maxSearchResultsReached(){return this.pageNumber>=this.maxNumberOfPages},beneficiaryAutoCompleteList(){return this.beneficiaryList.slice(0,7)},tieredCharityList(){return this.tierManager.getTieredCharityList()},nonTieredCharityList(){return this.tierManager.getNonTieredCharityList()},containsTieredCharities(){return this.tieredCharityList.map(e=>e.charities).reduce((e,t)=>e.concat(t)).length>0},isAllowForPreselectionChange(){return this.beneficiaryId>0&&this.allowPreselectionChange},isNotAllowedForPreselectionChange(){return this.beneficiaryId>0&&!this.allowPreselectionChange},getNoResultsText(){return this.config.noResultsText}},watch:{searchText:async function(e){this.configureLoadingCharitiesOnScroll(),e!==""?await this.beneficiaryManager.performSearchForBeneficiaries(e,this.region,this.eventCampaignId,this.pageSize,this.tagIdsAsCsv):this.loadList()},eventCampaignId(){this.$nextTick(async()=>await this.doInitialLoad())},beneficiaryId(){this.$nextTick(async()=>await this.doInitialLoad())}},created(){this.tierManager.configure(this),this.beneficiaryManager.configure(this),this.mode&&(this.componentMode=this.mode.name,this.settings=this.mode.settings)},async mounted(){await this.doInitialLoad()},methods:{async doInitialLoad(){this.eventCampaignId.length>0&&await this.tierManager.getAvailableTiers(this.eventCampaignId),await this.loadList(),Object.assign(this.cachedAvailableTiers,this.availableTiers)},loadList(){var e=this;e.lazyLoading=!0;let t={query:e.searchText,eventcampaignid:e.eventCampaignId,tags:[],pagesize:e.pageSize,includeinactivebeneficiaries:e.includeInactiveBeneficiaries};if(e.beneficiaryId>0&&!e.resetSearch&&(t.beneficiaryid=e.beneficiaryId),this._shouldLoadTieredLayout())e.loadBeneficiariesForTiers(t);else{if(e.tagIdsAsCsv){let n=e.tagIdsAsCsv.split(",");t.tags=[...new Set(n)].join(",")}e.beneficiaryManager.loadBeneficiaries(t)}t.tags="",t=e.passParamsExternal(t),e.resetSearch=!1},loadBeneficiariesForTiers(e){var t=this;t.availableTiers.forEach(n=>{n.Type==Fo.BENEFICIARY_TIER_TYPE&&n.Settings.length>0?(n.Settings.forEach(r=>{if(r.Entity.Type==Fo.TAG_ENTITY_TYPE){if(t.tagIdsAsCsv){let o=t.tagIdsAsCsv.split(",");o.push(r.Entity.Value),e.tags=[...new Set(o)].join(",")}else e.tags=r.Entity.Value;t.beneficiaryManager.loadBeneficiariesForTiers(e,t.getMaxResultsToDisplay(r.MaxResultsToDisplay))}}),t.pageNumber=t.pageNumber+1):t.beneficiaryManager.loadBeneficiaries(e)})},_shouldLoadTieredLayout(){return this.availableTiers.length>0&&!this.ignoreEventTiering},getMaxResultsToDisplay(e){var t=this.defaultMaxResultsToDisplay;return e!==""&&(t=parseInt(e)),t},hide(){this.valueEnterSearch=!1},$_charityManagementMixin_stageCharity(e){},onCharitySelectedFromAutoComplete(e){this.$gfLogger.logInfo("CharityManagementMixin.onCharitySelectedFromAutoComplete(), item: ",e);var t=this;t.valueEnterSearch=!1,t.searchText=e.BeneficiaryName,t.charityResults=[e],t.$_charityManagementMixin_stageCharity(e)},passParamsExternal(e){return this.external&&this.external.id&&this.external.type&&(e.externalidtype=this.external.type,e.externalid=this.external.id),this.region!=""&&(e.region=this.region),e},configureLoadingCharitiesOnScroll(){if(this._shouldLoadTieredLayout()&&this.searchText===""||this.pagingSettings!=this.constants.PAGING_SETTINGS.INFINITE){Qi(window).unbind("scroll");return}var e=this;Qi(window).scroll(function(){if(Qi("#scroll-loader-charity")[0]){var t=Qi("#scroll-loader-charity").offset().top,n=Qi("#scroll-loader-charity").outerHeight(),r=Qi(window).height(),o=Qi(this).scrollTop();o>t+n-r&&e.beneficiaryManager.getBeneficiariesLazyLoading()}})},removeBeneficiaryId(){this.isNotAllowedForPreselectionChange||(this.allowPreselectionChange&&(this.resetSearch=!0,this.charityResults=[]),Object.assign(this.availableTiers,this.cachedAvailableTiers),this.searchText="",this.selectedCharity.beneficiaryId=0,this.beneficiaryImagePath="",this.beneficiaryName="",this.afterResetCallBack&&this.afterResetCallBack!==""&&window[this.afterResetCallBack](null),this.$emit("reset",null),this.$nextTick(async()=>{this.eventCampaignId.length>0&&await this.tierManager.getAvailableTiers(this.eventCampaignId),this.loadList()}))},scrollToSearchBar(){Qi([document.documentElement,document.body]).animate({scrollTop:Qi("#vue-gf-beneficiary-search").offset().top-20},1500)},onPageChange(e){let t={query:this.searchText,eventcampaignid:this.eventCampaignId,tags:[],pagesize:this.pageSize,pageindex:e,includeinactivebeneficiaries:this.includeInactiveBeneficiaries};if(this.lazyLoading=!0,this.beneficiaryId>0&&!this.resetSearch&&(t.beneficiaryid=this.beneficiaryId),this.tagIdsAsCsv){let n=this.tagIdsAsCsv.split(",");t.tags=[...new Set(n)].join(",")}this.beneficiaryManager.loadBeneficiaries(t),t.tags="",t=this.passParamsExternal(t),this.resetSearch=!1}}},xN={class:"container mb-2 card_box"},AN={class:"row mb-3"},TN={key:0,class:"col-md-8 m-auto"}
838,IN={key:0},kN={class:"beneficiary-small-margin",style:{width:"200px"}},PN={key:1},NN={key:0,class:"row w-100 mx-auto mt-3"},DN={class:"h3 col-12 text-center pb-4 tier-heading"},FN={class:"row w-100 m-auto justify-content-center"},RN=["onClick"],BN=["innerHTML"],ON={key:2,class:"w-100"},UN={key:1,class:"row text-center content-charity"},$N={key:0,class:"row w-100 mx-auto"},MN={class:"h3 col-12 text-center pb-4 tier-heading"},LN={class:"row w-100 m-auto justify-content-center mt-3"},VN=["onClick"],jN={key:2},zN=["innerHTML"],HN={class:"d-flex justify-content-center"},GN={class:"lds-ring"},WN=[a.createElementVNode("div",null,null,-1),a.createElementVNode("div",null,null,-1),a.createElementVNode("div",null,null,-1),a.createElementVNode("div",null,null,-1)],qN=a.createElementVNode("div",{class:"row w-100"},[a.createElementVNode("div",{id:"scroll-loader-charity"})],-1),KN={class:"row"},YN={key:2};function JN(e,t,n,r,o,i){const s=a.resolveComponent("SearchBar"),l=a.resolveComponent("AlertMessage"),h=a.resolveComponent("Paginate");return a.openBlock(),a.createElementBlock("div",xN,[a.createElementVNode("div",AN,[n.beneficiaryId==0||i.isAllowForPreselectionChange?(a.openBlock(),a.createElementBlock("div",TN,[a.createVNode(s,{"loading-search":o.loadingSearch,"value-enter-search":o.valueEnterSearch,"beneficiary-auto-complete-list":i.beneficiaryAutoCompleteList,"text-value":o.searchText,onClickedOutside:i.hide,onTextChanged:t[0]||(t[0]=f=>o.searchText=f),onItemSelected:t[1]||(t[1]=f=>i.onCharitySelectedFromAutoComplete(f))},null,8,["loading-search","value-enter-search","beneficiary-auto-complete-list","text-value","onClickedOutside"])])):a.createCommentVNode("",!0)]),o.selectedCharity.beneficiaryId>0?(a.openBlock(),a.createElementBlock("div",IN,[a.createElementVNode("div",{class:"row w-100 m-auto justify-content-center",onClick:t[2]||(t[2]=(...f)=>i.removeBeneficiaryId&&i.removeBeneficiaryId(...f))},[a.createElementVNode("div",kN,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.componentToLoad),{beneficiary:o.selectedCharity.beneficiary,"beneficiary-name":o.selectedCharity.beneficiaryName,"image-path":o.selectedCharity.beneficiaryImagePath,"component-settings":o.settings,"is-selected":"","allow-deselection":n.beneficiaryId==0||i.isAllowForPreselectionChange,"image-size":"200px","min-width":"210px"},null,8,["beneficiary","beneficiary-name","image-path","component-settings","allow-deselection"]))])])])):a.createCommentVNode("",!0),o.selectedCharity.beneficiaryId==0?(a.openBlock(),a.createElementBlock("div",PN,[i.tieredCharityList.length>0?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(i.tieredCharityList,(f,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"row text-center content-charity"},[f.charities&&f.charities.length>0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[f.displayName&&f.displayName.length>0?(a.openBlock(),a.createElementBlock("div",NN,[a.createElementVNode("div",DN,a.toDisplayString(f.displayName),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",FN,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.charities,w=>(a.openBlock(),a.createElementBlock("div",{key:w.BeneficiaryAccountId,class:a.normalizeClass(["wow bounceInUp mb-3",i.highestDisplayedTier==f.displayName?"beneficiary-small-margin":"beneficiary-large-margin"]),style:a.normalizeStyle(i.highestDisplayedTier==f.displayName?"width:200px":"width:115px"),onClick:E=>i.$_charityManagementMixin_stageCharity(w)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.componentToLoad),{beneficiary:w,"beneficiary-name":w.BeneficiaryName,"image-path":w.BeneficiaryImagePath,"component-settings":o.settings,"image-size":i.highestDisplayedTier==f.displayName?"200px":"115px","min-width":i.highestDisplayedTier==f.displayName?"210px":"165px"},null,8,["beneficiary","beneficiary-name","image-path","component-settings","image-size","min-width"]))],14,RN))),128))])],64)):i.containsTieredCharities&&i.tieredCharityList.length==0&&o.searchText.length>0?(a.openBlock(),a.createElementBlock("div",{key:1,class:"col text-center alert alert-warning primary",innerHTML:i.getNoResultsText},null,8,BN)):a.createCommentVNode("",!0),f.charities&&f.charities.length>0?(a.openBlock(),a.createElementBlock("hr",ON)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0),i.nonTieredCharityList.length>0?(a.openBlock(),a.createElementBlock("div",UN,[i.containsTieredCharities?(a.openBlock(),a.createElementBlock("div",$N,[a.createElementVNode("div",MN,a.toDisplayString(n.config.otherCharitiesTitle),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",LN,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.nonTieredCharityList,f=>(a.openBlock(),a.createElementBlock("div",{key:f.beneficiaryId,class:"beneficiary-large-margin",style:{width:"115px"},onClick:g=>i.$_charityManagementMixin_stageCharity(f)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.componentToLoad),{beneficiary:f,"beneficiary-name":f.BeneficiaryName,"image-path":f.BeneficiaryImagePath,"component-settings":o.settings,"image-size":"115px","min-width":"165px"},null,8,["beneficiary","beneficiary-name","image-path","component-settings"]))],8,VN))),128))])])):!i.containsTieredCharities&&i.nonTieredCharityList.length==0&&o.searchText.length>0?(a.openBlock(),a.createElementBlock("div",jN,[a.createElementVNode("div",{class:"col text-center alert alert-warning primary",innerHTML:i.getNoResultsText},null,8,zN)])):a.createCommentVNode("",!0),a.createElementVNode("div",HN,[a.withDirectives(a.createElementVNode("div",GN,WN,512),[[a.vShow,o.lazyLoading]])]),qN])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",KN,[a.createVNode(l,{message:i.alertMessageToDisplay,onClicked:i.scrollToSearchBar},null,8,["message","onClicked"])],512),[[a.vShow,i.alertMessageToDisplay.length>0]]),n.pagingSettings==o.constants.PAGING_SETTINGS.PAGED&&!o.lazyLoading?(a.openBlock(),a.createElementBlock("div",YN,[a.createVNode(h,{modelValue:o.pageNumber,"onUpdate:modelValue":t[3]||(t[3]=f=>o.pageNumber=f),"page-count":o.totalPages,"click-handler":i.onPageChange,"container-class":"pagination justify-content-center","prev-text":"<","next-text":">"},{breakViewContent:a.withCtx(()=>[a.createTextVNode(" ... ")]),_:1},8,["modelValue","page-count","click-handler"])])):a.createCommentVNode("",!0)])}const XN=Ft(CN,[["render",JN]]),Sle="",Cle="",ZN=Ft({name:"GfCharity",mixins:[XN],methods:{stage(e){var t={beneficiaryId:e.BeneficiaryAccountId,beneficiaryName:e.BeneficiaryName,beneficiaryImagePath:e.BeneficiaryImagePath,beneficiaryTags:e.BeneficiaryTags};
838this.selectedCharity.beneficiary=e,this.selectedCharity.beneficiaryImagePath=e.BeneficiaryImagePath,this.selectedCharity.beneficiaryName=e.BeneficiaryName,this.selectedCharity.tags=e.BeneficiaryTags,this.afterSelectCallBack&&this.afterSelectCallBack!==""&&window[this.afterSelectCallBack](t),this.$emit("selected",t),this.loadList()},$_charityManagementMixin_stageCharity(e){return this.$gfLogger.logInfo(e),this.availableTiers=[],this.stage(e)}}},[["__scopeId","data-v-a826ac17"]]),Ale="",QN={components:{GfCharity:ZN},props:{eventCampaignId:{type:Number,default:0},beneficiaryId:{type:Number,default:0},region:{type:String,default:""},apiDomain:{type:String,default:""},afterSelectCallBack:{type:String,default:""},afterResetCallBack:{type:String,default:""},external:{type:Object,default:()=>{}},mode:{type:Object,default:()=>({name:"beneficiaryCard",settings:{}})},config:{type:Object,default:()=>{}},tagIdsAsCsv:{type:String,default:""},allowPreselectionChange:{type:Boolean,default:!1},ignoreEventTiering:{type:Boolean,default:!1},showMoreResultsInfoText:{type:Boolean,default:!0},pagingSettings:{type:String,default:"infinite"},disableAutoFocus:{type:Boolean,default:!1}},setup(e,{emit:t}){const n=a.ref(e.beneficiaryId),r=a.ref(e.allowPreselectionChange),o=a.ref({otherCharitiesTitle:"Other",tieredRefineSearchText:"More charities may be available, try entering a search text",tooManyResultsText:"Looks like there's too many results, try refining your search",noResultsText:"Can't see your charity here? Email [email protected] to nominate your charity.",disableSelectOnSingleCharity:!1}),i=a.computed(()=>Object.assign(o.value,e.config)),s=()=>{Qk.install({apiDomain:e.apiDomain,region:e.region?e.region.toUpperCase():e.region}),OI.install(),Do.commit("setProps",e)},l=()=>{e.disableAutoFocus||(t("scrollToComponent",!0),setTimeout(()=>{Zp.scrollTo("#vue-gf-beneficiary-search","100",{easing:"ease-in",offset:-60,force:!0})},1e3))},h=async()=>{var w=await H1().searchWithParams({eventcampaignid:e.eventCampaignId,pagesize:1});if(!(w.data&&w.data.Events&&w.data.Events.length===1&&w.data.Events[0].IsMultiCharity)){var E=await Gu().searchByEvent(e.eventCampaignId);E.data&&E.data.Beneficiaries&&E.data.Beneficiaries.length===1&&(n.value=parseInt(E.data.Beneficiaries[0].BeneficiaryAccountId),r.value=!1)}},f=w=>{t("reset",w)},g=w=>{t("selected",w)};return s(),a.onMounted(async()=>{l(),e.eventCampaignId&&e.eventCampaignId>0&&e.beneficiaryId==0&&await h()}),{beneficiaryIdToPass:n,allowPreselectionChangeSettings:r,defaultConfig:o,getConfig:i,reset:f,selected:g}}},e5={id:"vue-gf-beneficiary-search",class:"container px-0 mb-4"};function t5(e,t,n,r,o,i){const s=a.resolveComponent("GfCharity");return a.openBlock(),a.createElementBlock("div",e5,[a.createVNode(s,{"event-campaign-id":n.eventCampaignId>0?n.eventCampaignId.toString():"","beneficiary-id":r.beneficiaryIdToPass,"allow-preselection-change":r.allowPreselectionChangeSettings,"ignore-event-tiering":n.ignoreEventTiering,region:n.region?n.region.toUpperCase():n.region,"after-select-call-back":n.afterSelectCallBack,"after-reset-call-back":n.afterResetCallBack,external:n.external,mode:n.mode,config:r.getConfig,"tag-ids-as-csv":n.tagIdsAsCsv,"show-more-results-info-text":n.showMoreResultsInfoText,"paging-settings":n.pagingSettings,onReset:r.reset,onSelected:r.selected},null,8,["event-campaign-id","beneficiary-id","allow-preselection-change","ignore-event-tiering","region","after-select-call-back","after-reset-call-back","external","mode","config","tag-ids-as-csv","show-more-results-info-text","paging-settings","onReset","onSelected"])])}const ew=Ft(QN,[["render",t5]]),n5={components:{GfBeneficairySearch:ew},mixins:[ha],data(){return{ready:!1,external:{id:at.state.externalId,type:at.state.referrer},store:at}},mounted(){this.$nextTick(()=>this.ready=!0)},methods:{selected(e){this.$gfLogger.logInfo("charity.onSelected(), params: ",e),this.stage(e.beneficiaryId,e.beneficiaryName,e.beneficiaryImagePath),this.analytics({event:"create_page",createType:"individual",stepNumber:"2 of 4",stepName:"select cause",causeName:e.beneficiaryName})},stage(e,t,n){this.store.commit("change_Beneficiary",{beneficiaryId:e,BeneficiaryName:t,BeneficiaryImagePath:n,Router_Name:this.$route.name}),this.store.state.selected_charity!=""&&this.store.state.selected_event!=""?this.$router.push({name:"complete_individual"}):this.$router.push({name:"event_individual"})}}};function r5(e,t,n,r,o,i){const s=a.resolveComponent("GfBeneficairySearch");return a.openBlock(),a.createElementBlock("div",null,[o.ready?(a.openBlock(),a.createBlock(s,{key:0,"event-campaign-id":o.store.state.selected_event.EventCampaignId,external:o.external,region:o.store.state.regi
838on,"api-domain":o.store.state.apiDomain,onSelected:i.selected},null,8,["event-campaign-id","external","region","api-domain","onSelected"])):a.createCommentVNode("",!0)])}const i5=Ft(n5,[["render",r5]]),Ql=()=>({getImageWithResolution(e,t){if(!(!e||!t))return e.replace("images/200/","images/"+t+"/")}}),Tle="",o5={name:"EventList",props:{items:{type:Array},listIdentifier:""},data(){return{store:at,useImagePlugin:Ql}},methods:{stage(e,t,n,r){this.$.appContext.config.globalProperties.emitter.emit("stageEvent",{eventCampaignId:e,eventCampaignId:e,eventName:t,eventImagePath:n,eventUrl:r,listIdentifier:this.listIdentifier})},removeEventCampaignId(){this.$.appContext.config.globalProperties.emitter.emit("clearEvent")},onEventClick(e){return this.store.state.selected_event.EventCampaignId!=e.EventCampaignId?this.stage(e.EventCampaignId,e.EventName,e.EventImagePath,e.EventUrl):this.removeEventCampaignId()}}},a5={class:"row mx-0 px-0 col-md-12 py-2"},s5=["onClick"],u5=["title"],c5={class:"pt-1 success_hv far fa-check-circle"},l5={class:"pt-1 remove_item_card far fa-times-circle"},f5={class:"bg-light-grey py-0"},d5={class:"align-middle py-2 my-0"},h5={class:"light bg-light-grey"},p5={class:"table"},g5={class:"align-top"},m5=["src"];function y5(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",a5,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,(s,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"col-md-6 col-12 wow bounceInUp mb-4",onClick:h=>i.onEventClick(s)},[a.createElementVNode("div",{title:s.EventName,class:a.normalizeClass(["card bg-light-grey",o.store.state.selected_event.EventCampaignId==s.EventCampaignId?"card_selected":""])},[a.withDirectives(a.createElementVNode("span",c5,null,512),[[a.vShow,o.store.state.selected_event.EventCampaignId!=s.EventCampaignId]]),a.withDirectives(a.createElementVNode("span",l5,null,512),[[a.vShow,o.store.state.selected_event.EventCampaignId==s.EventCampaignId]]),a.createElementVNode("div",f5,[a.createElementVNode("h5",d5,a.toDisplayString(s.EventName),1)]),a.createElementVNode("div",h5,[a.createElementVNode("div",p5,[a.createElementVNode("div",g5,[a.createElementVNode("img",{class:a.normalizeClass(["card-img-top px-2",{"obj-cover":n.listIdentifier==="internalEvents"}]),src:o.useImagePlugin().getImageWithResolution(s.EventImagePath,1e3),alt:"Card image cap"},null,10,m5)])])])],10,u5)],8,s5))),128))])}const v5=Ft(o5,[["render",y5],["__scopeId","data-v-845b0a75"]]),Ile="",_5={name:"EventTypeTabs",props:{defaultSelectedTab:""},data(){return{selectedEventTab:""}},mounted(){this.selectedEventTab=this.defaultSelectedTab,!this.selectedEventTab||this.selectedEventTab===""||this.selectedEventTab==="occasion"?this.occasionsTabSelected():this.eventsTabSelected()},methods:{occasionsTabSelected(){this.selectedEventTab="occasion",this.$emit("eventTypeSelection","occasion")},eventsTabSelected(){this.selectedEventTab="event",this.$emit("eventTypeSelection","event")}}},w5={class:"nav nav-pills col-12 mb-2 p-0"};function b5(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("ul",w5,[a.createElementVNode("li",{class:"nav-item btn-square col-6 m-0 p-0",onClick:t[0]||(t[0]=(...s)=>i.occasionsTabSelected&&i.occasionsTabSelected(...s))},[a.createElementVNode("a",{class:a.normalizeClass(["nav-link text-center",{active:o.selectedEventTab==="occasion"}])}," Occasions ",2)]),a.createElementVNode("li",{class:"nav-item btn-square col-6 m-0 p-0",onClick:t[1]||(t[1]=(...s)=>i.eventsTabSelected&&i.eventsTabSelected(...s))},[a.createElementVNode("a",{class:a.normalizeClass(["nav-link text-center",{active:o.selectedEventTab==="event"}])}," Events ",2)])])}const E5=Ft(_5,[["render",b5],["__scopeId","data-v-8c5796d1"]]);function S5(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const ef=()=>{const e=()=>{const n=S5();a.getCurrentInstance().appContext.config.globalProperties.emitter=n};return{install:e,emitter:()=>(typeof a.getCurrentInstance().appContext.config.globalProperties.emitter>"u"&&e(),a.getCurrentInstance().appContext.config.globalProperties.emitter)}},C5={name:"EventManagementMixin",components:{EventList:v5,EventTypeTabs:E5},directives:{ClickOutside:eg},data(){return{ValueEnterSearch:!1,LazyLoading:!1,LoadingSearch:!1,eventcampaignid:"",eventTypeSelected:"",selectedEventType:"",internalEventsPageNumber:1,customEventsPageNumber:1,customEventSearchTotalPages:1,text_search_event:"",data_event:[],data_event_internal:[],store:at}},computed:{showTab:{get(){return this.text_search_event===""&&this.hasEvent}},hasEvent:{get(){return this.store.state.selected_event&&this.store.state.selected_event!==""&&this.store.state.selected_event.EventCampaignId!==""}},eventsList:{get(){return this.data_event},set(e){e!=null&&(this.data_event=this.data_event.concat(e))}},eventsListInternal:{get(){return this.data_event_internal},set(e){e!=null&&(this.data_event_internal=this.data_event_internal.concat(e))}}}
838,watch:{text_search_event(e){e===""&&this.searchTextChanged()}},created(){var e=this;this.LazyLoading=!0,this.text_search_event=this.store.state.res_text_search_event;let t={params:{query:this.text_search_event,region:this.store.state.region,beneficiaryaccountid:this.store.state.selected_charity.beneficiaryId}};this.$_eventManagementMixin_internalEventSearch(t).then(n=>{e.internalEventsPageNumber=n.data.PageNumber+1,e.data_event_internal=n.data.Events}).then(()=>{e.LazyLoading=!1,e.ValueEnterSearch=!1,e.$_eventManagementMixin_scrollLoadMoreData("#scroll-loader-ev"),e.$_eventManagementMixin_customEventSearch()}),ef().emitter().on("stageEvent",e.stage),ef().emitter().on("stageEvent",e.$_eventManagementMixin_setEventName),ef().emitter().on("clearEvent",e.$_eventManagementMixin_clearEvent)},methods:{hideAutoCompleteSearchResults(){this.ValueEnterSearch=!1},$_eventManagementMixin_selectedEventIsInternal(){var e=this,t=!1;return this.store.state.selected_event&&this.store.state.selected_event!==""&&(t=this.data_event_internal.find(function(n){return n.EventCampaignId===e.store.state.selected_event.EventCampaignId})),t},$_eventManagementMixin_eventTypeChanged(e){this.eventTypeSelected=e},$_eventManagementMixin_setEventName(e){this.store.commit("res_text_search_event",e.eventName||""),this.selectedEventType="internal"},$_eventManagementMixin_clearEvent(){this.store.commit("change_event",""),this.store.commit("res_text_search_event",""),this.text_search_event=""},async $_eventManagementMixin_eventSearch(e){return await kn.get(this.store.state.apiDomain+"/v1/events/search",e)},async $_eventManagementMixin_internalEventSearch(e){return e.params.eventtype="I",this.$_eventManagementMixin_eventSearch(e)},$_eventManagementMixin_customEventSearch(){var e=this;if(!e.LazyLoading){e.LazyLoading=!0;let t={params:{query:e.text_search_event,excludeeventswithrestrictedpagecreation:!0,region:e.store.state.region,pageindex:e.customEventsPageNumber,eventtype:"C",beneficiaryaccountid:e.store.state.selected_charity.beneficiaryId}};if(e.customEventsPageNumber>e.customEventSearchTotalPages){e.LazyLoading=!1;return}e.$_eventManagementMixin_eventSearch(t).then(n=>{n&&(e.customEventsPageNumber=n.data.PageNumber+1,e.eventsList=n.data.Events,e.customEventSearchTotalPages=n.data.TotalPages)}).then(()=>{e.LazyLoading=!1})}},$_eventManagementMixin_scrollLoadMoreData(e){var t=this;window.addEventListener("scroll",function(){var n=document.querySelector(e);if(n){var r=n.offsetTop,o=n.offsetHeight,i=window.innerHeight,s=window.scrollY;s>r+o-i&&t.eventTypeSelected==="event"&&t.$_eventManagementMixin_customEventSearch()}})},$_eventManagementMixin_searchEventByName(e){var t=this;let n={params:{query:e,excludeeventswithrestrictedpagecreation:!0,region:t.store.state.region}};this.$_eventManagementMixin_eventSearch(n).then(r=>{t.text_search_event=r.data.Events[0].EventName,t.data_event=r.data.Events}).then(()=>{t.ValueEnterSearch=!1})},searchTextChanged(){var e=this.text_search_event,t=this;t.LoadingSearch=!1,t.ValueEnterSearch=e!=="",this.$_eventManagementMixin_internalEventSearch({params:{region:this.store.state.region,beneficiaryaccountid:this.store.state.selected_charity.beneficiaryId,query:e}}).then(r=>{t.data_event_internal=r.data.Events});let n={params:{query:this.text_search_event,region:this.store.state.region,excludeeventswithrestrictedpagecreation:!0,eventtype:e===""?"C":"",beneficiaryaccountid:this.store.state.selected_charity.beneficiaryId}};this.$_eventManagementMixin_eventSearch(n).then(r=>{t.data_event=r.data.Events}).then(()=>{t.LoadingSearch=!1}),this.store.commit("res_text_search_event",e)}}},x5={class:"container mb-2 card_box"},A5={class:"row"},T5={class:"col-md-8 m-auto"},I5={class:"input-group"},k5=a.createElementVNode("label",{for:"Search",class:"d-none"},"Search",-1),P5={class:"input-group-btn"},N5={class:"btn btn-search rounded-0",type:"button"},D5=[a.createElementVNode("span",{class:"d-none"},"Search",-1)],F5={key:0,class:"image_loading_search"},R5=[a.createElementVNode("img",{src:"https://www.gofundraise.com.au/Content/images/loader-orange.gif"},null,-1)],B5={key:1,class:"search_result"},O5={class:"list-unstyled"},U5=["onClick"],$5={class:"row text-center content-team mt-3"},M5={class:a.normalizeClass(["row w-100 m-auto"])},L5={class:a.normalizeClass(["row w-100 m-auto"])},V5={class:"row w-100"},j5={class:"lazy-load"},z5=[a.createElementVNode("img",{src:"https://www.gofundraise.com.au/Content/images/loader-orange.gif"},null,-1)],H5=a.createElementVNode("div",{id:"scroll-loader-ev"},null,-1);function G5(e,t,n,r,o,i){const s=a.resolveComponent("EventTypeTabs"),l=a.resolveComponent("EventList"),h=a.resolveDirective("click-outside");return a.openBlock(),a.createElementBlock("div",x5,[a.createElementVNode("div",A5,[a.createElementVNode("div",T5,[a.createElementVNode("div",I5,[k5,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=f=>o.text_search_event=f),id:"Search",type:"text",class:"form-control et-gf-search",placeholder:"Search",onKeyup:t[1]||(t[1]=(...f)=>i.searchTextChanged&&i.searchTextChanged(...f))},null,544),[[a.vShow,i.hasEvent],[a.vModelText,o.text_search_event]]),a.createElementVNode("span",P5,[a.withDirectives(a.createElementVNode("button",N5,D5,512),[[a.vShow,i.hasEvent]])])]),o.LoadingSearch?(a.openBlock(),a.createElementBlock("span",F5,R5)):a.createCommentVNode("",!0),o.ValueEnterSearch?a.withDirectives((a.openBlock(),a.createElementBlock("div",B5,[a.createElementVNode("ul",O5,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.eventsList,(f,g)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:g},[g<3?(a.openBlock(),a.createElementBlock("li",{key:0,onClick:w=>i.$_eventManagementMixin_searchEventByName(f.EventName)},a.toDisplayString(f.EventName),9,U5)):a.createCommentVNode("",!0)],64))),128))])])),[[h,i.hideAutoCompleteSearchResults]]):a.createCommentVNode("",!0)])]),a.createElementVNode("div",$5,[a.withDirectives(a.createVNode(s,{"default-selected-tab":"occasion",onEventTypeSelection:i.$_eventManagementMixin_eventTypeChanged},null,8,["onEventTypeSelection"]),[[a.vShow,i.showTab]]),a.withDirectives(a.createElementVNode("div",M5,[a.createVNode(l,{items:i.eventsListInternal,"list-identifier":"internalEvents"},null,8,["items"])],512),[[a.vShow,o.data_event_internal.length>0&&(o.text_search_event===""&&o.eventTypeSelected==="occasion"||i.$_eventManagementMixin_selectedEventIsInternal())]]),a.withDirectives(a.createElementVNode("div",L5,[a.createVNode(l,{items:i.eventsList,"list-identifier":"externalEvents"},null,8,["items"])],512),[[a.vShow,o.data_event.length>0&&(o.text_search_event!=""||o.eventTypeSelected==="event")]]),a.createElementVNode("div",V5,[a.withDirectives(a.createElementVNode("div",j5,z5,512),[[a.vShow,o.LazyLoading]]),H5])])])}const tw=Ft(C5,[["render",G5]]),W5={mixins:[tw,ha],methods:{stage(e,t,n,r){this.store.commit("change_event",{EventCampaignId:e.eventCampaignId||e,EventName:e.eventName||t,EventImagePath:e.eventImagePath||n,EventUrl:e.eventUrl||r,Router_Name:this.$route.name}),this.store.state.selected_charity!=""&&this.store.state.selected_event!=""?this.$router.push({name:"complete_individual"}):this.$router.push({name:"charity_individual"}),this.analytics({event:"create_page",createType:"individual",stepNumber:"3 of 4",stepName:"select event",causeName:this.store.state.selected_charity.BeneficiaryName,eventName:e.eventName||t})}}},Dle="",q5={components:{Loader:Iu},data(){return{store:at}},methods:{LogoutUser(){var e=this;kn.get("/account/logoff?isPopUp=true",{headers:{"Content-Type":"application/json"}}).then(function(t){t.data.success?e._onSuccessfulLogout():this.$gfLogger.logInfo("logoff failed")})},teamDetailsInValid:function(){return this.store.state.pageType!=="createTeam"?!1:this.store.state.details_team.teamTarget===""||this.store.state.details_team.teamName===""},submitFormComplete(){this.$.appContext.config.globalProperties.emitter.emit("createFrp")},_onSuccessfulLogout:function(){this.store.commit("preUserLogin","")}}},K5={class:"col-md-12 text-center"},Y5={class:"loggedin-text mt-4"},J5=a.createElementVNode("br",null,null,-1),X5={class:"row"},Z5={class:"col-md-6 m-auto"},Q5=["disabled"];function eD(e,t,n,r,o,i){const s=a.resolveComponent("Loader");return a.openBlock(),a.createElementBlock("div",K5,[a.createVNode(s,{show:o.store.state.creatingPage},null,8,["show"]),a.createElementVNode("p",Y5,[a.createTextVNode("Signed in as "+a.toDisplayString(o.store.state.userLogon),1),J5,a.createTextVNode("not you? "),a.createElementVNode("a",{class:"stLogout primary-link",onClick:t[0]||(t[0]=(...l)=>i.LogoutUser&&i.LogoutUser(...l))},"Logout")]),a.createElementVNode("div",X5,[a.createElementVNode("div",Z5,[a.createElementVNode("button",{id:"btn-create",disabled:o.store.state.creatingPage||i.teamDetailsInValid(),class:"btn btn-block btn-driver",onClick:t[1]||(t[1]=(...l)=>i.submitFormComplete&&i.submitFormComplete(...l))},"Create",8,Q5)])])])}const ig=Ft(q5,[["render",eD]]),og={name:"CreateFundraisingPageMixin",mixins:[ha],data:function(){return{store:at,pageType:"",teamId:0,teamName:"",charityId:at.state.selected_charity.benef
838iciaryId,eventCampaignId:at.state.selected_event.EventCampaignId,createIndividualPageForTeam:at.state.details_team.createIndividualPage,referrer:at.state.referrer,pageCreationErrorMsg:"",activationId:at.state.activationId,pageId:at.state.pageId,disclaimerText:""}},computed:{providerDetails(){return this.store.state.auth.provider},facebookAuth(){return this.store.state.auth.facebook},captchaPublicKey(){return this.store.state.captchaPublicKey},registerUrl(){return this.store.state.registerUrl}},mounted:function(){var e=this;const t=this.$.appContext.config.globalProperties.emitter;t&&(t.all.has("createFrp")&&t.all.delete("createFrp"),t.on("createFrp",function(){e.pageCreationErrorMsg="",e.store.commit("creatingPage"),e.$_createFundraisingPageMixin_makeRequest()}))},methods:{async loadVueAnalytics(){try{await this.$_createFundraisingPageMixin_loadVueAnalytics()}catch{console.log("Failed to load google Analytics.")}},$_createFundraisingPageMixin_loadDisclaimer:async function(){var r,o;var e=this,t={SettingsContext:{EventId:this.eventCampaignId,Region:this.store.state.regionId,BeneficiaryId:this.charityId},Types:[{ConfigurationName:"FundraisingPage",ConfigurationSubType:"Disclaimer"}]},n=await kn.post("/configuration/get-settings",t,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}});if(n.data){const i=(o=(r=n.data.Settings[0])==null?void 0:r.Settings)==null?void 0:o.Settings;if(i){const l=JSON.parse(i),h=l==null?void 0:l.settings.filter(f=>f.type==="PageCreation");h&&h.length>0&&(this.disclaimerText=h[0].disclaimerText)}const s={charityName:this.store.state.selected_charity.BeneficiaryName};this.disclaimerText=this.disclaimerText.replace(/{(\w+)}/g,(l,h)=>s[h]||l),e.store.commit("setDisclaimerText",this.disclaimerText)}},$_createFundraisingPageMixin_loadVueAnalytics:async function(){var e={SettingsContext:{EventId:this.eventCampaignId,Region:this.store.state.regionId},Types:[{ConfigurationName:"EventCampaign",ConfigurationSubType:"Analytics"}]},t=await kn.post("/configuration/get-settings",e,{headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}});if(t.data){var n=JSON.parse(t.data.Settings[0].Settings.Settings),r=n.filter(i=>i.type=="Google"),o=r.map(i=>i.settings.id);this.initialize(o)}},$_createFundraisingPageMixin_makeRequest:function(){var e=this,t=e.store.state.isRegister==!0?"new":"existing";e.store.state.pageType==="joinTeam"?e.analytics({event:"create_page",createType:e.store.state.createType,stepNumber:"3 of 3",stepName:"fundraiser details",fundraiserType:t}):e.analytics({event:"create_page",createType:e.store.state.createType,stepNumber:"4 of 4",stepName:"complete",causeName:e.store.state.selected_charity.BeneficiaryName,eventName:e.store.state.selected_event.EventName,fundraiserType:t});var n=parseInt(this.pageId);n===NaN&&(n=null),kn.post("/pages/create-fundraising-page",{data:JSON.stringify({PageModel:{CharityId:this.charityId,ActivationId:this.activationId,PageId:n,EventCampaignId:this.eventCampaignId,PageType:this.pageType,TeamId:this.teamId,TeamName:this.pageType==="T"?this.store.state.details_team.teamName:"",CreateIndividualPageForTeam:this.pageType==="T"&&this.store.state.details_team.createIndividualPage,IsCreatingNewUser:this.store.state.isCreatingNewUser,TeamTarget:this.store.state.details_team.teamTarget===""||this.pageType==="S"?"0":this.store.state.details_team.teamTarget,Referrer:this.referrer}})},{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(r){if(!r.data.success){e.onPageCreationError(r.data.text);return}window.opener&&e.sendPostMessageToOpener(r.data.data),e.pageType==="T"&&e.store.state.details_team.createIndividualPage,e.store.state.pageType==="createTeam"?e.analytics({event:"page_creation",createType:e.store.state.createType,causeName:r.data.data.charityName,eventName:r.data.data.eventName,teamId:r.data.data.pageId}):e.analytics({event:"page_creation",createType:e.store.state.createType,causeName:r.data.data.charityName,eventName:r.data.data.eventName,pageId:r.data.data.pageId}),window.location=r.data.data.pageUrl}).catch(function(r){e.onPageCreationError("An unknown error occurred creating the fundraising page. Please contact support.")})},$_createFundraisingPageMixin_onLoggedIn(e,t){this.$gfLogger.logInfo("_createFundraisingPageMixin_onLoggedIn, userEmail:",e),this.$gfLogger.logInfo("_createFundraisingPageMixin_onLoggedIn, isCreatingNewUser:",t),this.store.commit("preUserLogin",e),this.store.commit("setIsCreatingNewUser",t),this.$.appContext.config.globalProperties.emitter.emit("createFrp")},onPageCreationError:function(e){this.$.appContext.config.globalProperties.emitter.emit("pageCreationFailed",e),this.store.commit("resetCreatingPageState"),this.pageCreationErrorMsg=e},sendPostMessageToOpener:function(e){for(var t=e.charityExternalIds,n=[],r=0;r<t.length;r++){var o=new Object;o.Id=t[r].ExternalId,o.Type=t[r].Type,n.push(o)}var i={Application:"GoFundraise",Type:"Page",Action:"Create",Data:{Page:{PageId:e.pageId,PageImagePath:e.pageImagePath,PageTitle:e.pageTitle,PageCreatorName:e.page
838CreatorName,PageUrl:e.pageUrl,PageRaiseTarget:e.pageTarget,PageTotal:e.pageRaised,PageDonationUrl:e.pageDonationUrl},Beneficiary:{BeneficiaryAccountId:e.charityId,BeneficiaryImagePath:e.charityImagePath,BeneficiaryName:e.charityName,BeneficiaryUrl:e.charityUrl,BeneficiaryExternalIds:n},Event:{EventCampaignId:e.eventCampaignId,EventImagePath:e.eventImagePath,EventName:e.eventName,EventUrl:e.eventUrl}}};window.opener.postMessage(JSON.stringify(i),"*")}}},nw={isCurrentWindowInIFrame:function(){return window.top!==window.self},isCurrentWindowInPopup:function(){return window.opener},reloadParentWindow:function(){window.parent.location.reload()}},Bn=ip({state:{currentRoute:"login",userEmail:"",appProps:{},routeProps:{}},mutations:{setRoute(e,t){e.currentRoute=t},setAppProps(e,t){e.appProps=t},setRouteProps(e,t){e.routeProps=t},setUserEmail(e,t){e.userEmail=t}}}),cs={INCLUDE_HASH_MODULE:["/eventcreator/console"],PROVIDER_COGNITO:"Cognito",PROVIDER_GOFUNDRAISE:"GoFundraise",GOFUNDRAISE_OAUTH_TOKEN:"gofundraise_oauth_token"};var bi={};function rw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var iw={exports:{}};/*!
839 * @overview es6-promise - a tiny implementation of Promises/A+.
840 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
841 * @license   Licensed under MIT license
842 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
843 * @version   4.0.5
844 */(function(e,t){(function(n,r){e.exports=r()})(pn,function(){function n(ie){return typeof ie=="function"||typeof ie=="object"&&ie!==null}function r(ie){return typeof ie=="function"}var o=void 0;Array.isArray?o=Array.isArray:o=function(ie){return Object.prototype.toString.call(ie)==="[object Array]"};var i=o,s=0,l=void 0,h=void 0,f=function(de,$e){ee[s]=de,ee[s+1]=$e,s+=2,s===2&&(h?h(b):ae())};function g(ie){h=ie}function w(ie){f=ie}var E=typeof window<"u"?window:void 0,C=E||{},A=C.MutationObserver||C.WebKitMutationObserver,k=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",U=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function N(){return function(){return process.nextTick(b)}}function R(){return typeof l<"u"?function(){l(b)}:W()}function L(){var ie=0,de=new A(b),$e=document.createTextNode("");return de.observe($e,{characterData:!0}),function(){$e.data=ie=++ie%2}}function z(){var ie=new MessageChannel;return ie.port1.onmessage=b,function(){return ie.port2.postMessage(0)}}function W(){var ie=setTimeout;return function(){return ie(b,1)}}var ee=new Array(1e3);function b(){for(var ie=0;ie<s;ie+=2){var de=ee[ie],$e=ee[ie+1];de($e),ee[ie]=void 0,ee[ie+1]=void 0}s=0}function fe(){try{var ie=rw,de=ie("vertx");return l=de.runOnLoop||de.runOnContext,R()}catch{return W()}}var ae=void 0;k?ae=N():A?ae=L():U?ae=z():E===void 0&&typeof rw=="function"?ae=fe():ae=W();function Ie(ie,de){var $e=arguments,ut=this,lt=new this.constructor(ye);lt[De]===void 0&&I(lt);var gt=ut._state;return gt?function(){var qt=$e[gt-1];f(function(){return Le(gt,lt,qt,ut._result)})}():Ae(ut,lt,ie,de),lt}function xe(ie){var de=this;if(ie&&typeof ie=="object"&&ie.constructor===de)return ie;var $e=new de(ye);return We($e,ie),$e}var De=Math.random().toString(36).substring(16);function ye(){}var je=void 0,rt=1,ot=2,Je=new Me;function dt(){return new TypeError("You cannot resolve a promise with itself")}function mt(){return new TypeError("A promises callback cannot return that same promise.")}function Ue(ie){try{return ie.then}catch(de){return Je.error=de,Je}}function ne(ie,de,$e,ut){try{ie.call(de,$e,ut)}catch(lt){return lt}}function oe(ie,de,$e){f(function(ut){var lt=!1,gt=ne($e,de,function(qt){lt||(lt=!0,de!==qt?We(ut,qt):se(ut,qt))},function(qt){lt||(lt=!0,be(ut,qt))},"Settle: "+(ut._label||" unknown promise"));!lt&&gt&&(lt=!0,be(ut,gt))},ie)}function Pe(ie,de){de._state===rt?se(ie,de._result):de._state===ot?be(ie,de._result):Ae(de,void 0,function($e){return We(ie,$e)},function($e){return be(ie,$e)})}function Oe(ie,de,$e){de.constructor===ie.constructor&&$e===Ie&&de.constructor.resolve===xe?Pe(ie,de):$e===Je?be(ie,Je.error):$e===void 0?se(ie,de):r($e)?oe(ie,de,$e):se(ie,de)}function We(ie,de){ie===de?be(ie,dt()):n(de)?Oe(ie,de,Ue(de)):se(ie,de)}
844function Qe(ie){ie._onerror&&ie._onerror(ie._result),Ne(ie)}function se(ie,de){ie._state===je&&(ie._result=de,ie._state=rt,ie._subscribers.length!==0&&f(Ne,ie))}function be(ie,de){ie._state===je&&(ie._state=ot,ie._result=de,f(Qe,ie))}function Ae(ie,de,$e,ut){var lt=ie._subscribers,gt=lt.length;ie._onerror=null,lt[gt]=de,lt[gt+rt]=$e,lt[gt+ot]=ut,gt===0&&ie._state&&f(Ne,ie)}function Ne(ie){var de=ie._subscribers,$e=ie._state;if(de.length!==0){for(var ut=void 0,lt=void 0,gt=ie._result,qt=0;qt<de.length;qt+=3)ut=de[qt],lt=de[qt+$e],ut?Le($e,ut,lt,gt):lt(gt);ie._subscribers.length=0}}function Me(){this.error=null}var Ye=new Me;function pe(ie,de){try{return ie(de)}catch($e){return Ye.error=$e,Ye}}function Le(ie,de,$e,ut){var lt=r($e),gt=void 0,qt=void 0,Gn=void 0,Ri=void 0;if(lt){if(gt=pe($e,ut),gt===Ye?(Ri=!0,qt=gt.error,gt=null):Gn=!0,de===gt){be(de,mt());return}}else gt=ut,Gn=!0;de._state!==je||(lt&&Gn?We(de,gt):Ri?be(de,qt):ie===rt?se(de,gt):ie===ot&&be(de,gt))}function st(ie,de){try{de(function(ut){We(ie,ut)},function(ut){be(ie,ut)})}catch($e){be(ie,$e)}}var Bt=0;function et(){return Bt++}function I(ie){ie[De]=Bt++,ie._state=void 0,ie._result=void 0,ie._subscribers=[]}function m(ie,de){this._instanceConstructor=ie,this.promise=new ie(ye),this.promise[De]||I(this.promise),i(de)?(this._input=de,this.length=de.length,this._remaining=de.length,this._result=new Array(this.length),this.length===0?se(this.promise,this._result):(this.length=this.length||0,this._enumerate(),this._remaining===0&&se(this.promise,this._result))):be(this.promise,y())}function y(){return new Error("Array Methods must be provided an Array")}m.prototype._enumerate=function(){for(var ie=this.length,de=this._input,$e=0;this._state===je&&$e<ie;$e++)this._eachEntry(de[$e],$e)},m.prototype._eachEntry=function(ie,de){var $e=this._instanceConstructor,ut=$e.resolve;if(ut===xe){var lt=Ue(ie);if(lt===Ie&&ie._state!==je)this._settledAt(ie._state,de,ie._result);else if(typeof lt!="function")this._remaining--,this._result[de]=ie;else if($e===Be){var gt=new $e(ye);Oe(gt,ie,lt),this._willSettleAt(gt,de)}else this._willSettleAt(new $e(function(qt){return qt(ie)}),de)}else this._willSettleAt(ut(ie),de)},m.prototype._settledAt=function(ie,de,$e){var ut=this.promise;ut._state===je&&(this._remaining--,ie===ot?be(ut,$e):this._result[de]=$e),this._remaining===0&&se(ut,this._result)},m.prototype._willSettleAt=function(ie,de){var $e=this;Ae(ie,void 0,function(ut){return $e._settledAt(rt,de,ut)},function(ut){return $e._settledAt(ot,de,ut)})};function P(ie){return new m(this,ie).promise}function $(ie){var de=this;return i(ie)?new de(function($e,ut){for(var lt=ie.length,gt=0;gt<lt;gt++)de.resolve(ie[gt]).then($e,ut)}):new de(function($e,ut){return ut(new TypeError("You must pass an array to race."))})}function K(ie){var de=this,$e=new de(ye);return be($e,ie),$e}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function me(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
844onstructor cannot be called as a function.")}function Be(ie){this[De]=et(),this._result=this._state=void 0,this._subscribers=[],ye!==ie&&(typeof ie!="function"&&J(),this instanceof Be?st(this,ie):me())}Be.all=P,Be.race=$,Be.resolve=xe,Be.reject=K,Be._setScheduler=g,Be._setAsap=w,Be._asap=f,Be.prototype={constructor:Be,then:Ie,catch:function(de){return this.then(null,de)}};function Ze(){var ie=void 0;if(typeof pn<"u")ie=pn;else if(typeof self<"u")ie=self;else try{ie=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var de=ie.Promise;if(de){var $e=null;try{$e=Object.prototype.toString.call(de.resolve())}catch{}if($e==="[object Promise]"&&!de.cast)return}ie.Promise=Be}return Be.polyfill=Ze,Be.Promise=Be,Be})})(iw);var tf=iw.exports,ow={exports:{}},aw={exports:{}},ag={exports:{}};(function(e,t){t=e.exports=typeof Object.keys=="function"?Object.keys:n,t.shim=n;function n(r){var o=[];for(var i in r)o.push(i);return o}})(ag,ag.exports);var tD=ag.exports,sg={exports:{}};(function(e,t){var n=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=e.exports=n?r:o,t.supported=r;function r(i){return Object.prototype.toString.call(i)=="[object Arguments]"}t.unsupported=o;function o(i){return i&&typeof i=="object"&&typeof i.length=="number"&&Object.prototype.hasOwnProperty.call(i,"callee")&&!Object.prototype.propertyIsEnumerable.call(i,"callee")||!1}})(sg,sg.exports);var nD=sg.exports,sw=Array.prototype.slice,uw=tD,cw=nD,lw=aw.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?n.strict?e===t:e==t:rD(e,t,n)};function fw(e){return e==null}function dw(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function rD(e,t,n){var r,o;if(fw(e)||fw(t)||e.prototype!==t.prototype)return!1;if(cw(e))return cw(t)?(e=sw.call(e),t=sw.call(t),lw(e,t,n)):!1;if(dw(e)){if(!dw(t)||e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}try{var i=uw(e),s=uw(t)}catch{return!1}if(i.length!=s.length)return!1;for(i.sort(),s.sort(),r=i.length-1;r>=0;r--)if(i[r]!=s[r])return!1;for(r=i.length-1;r>=0;r--)if(o=i[r],!lw(e[o],t[o],n))return!1;return typeof e==typeof t}var hw=aw.exports,ug,pw;function iD(){return pw||(pw=1,ug={error:"Error.",required:"Required.",float:"Must be a number.",integer:"Must be an integer.",number:"Must be a number.",lessThan:"Must be less than {0}.",lessThanOrEqualTo:"Must be less than or equal to {0}.",greaterThan:"Must be greater than {0}.",greaterThanOrEqualTo:"Must greater than or equal to {0}.",between:"Must be between {0} and {1}.",size:"Size must be {0}.",length:"Length must be {0}.",minLength:"Must have at least {0} characters.",maxLength:"Must have up to {0} characters.",lengthBetween:"Length must between {0} and {1}.",in:"Must be {0}.",notIn:"Must not be {0}.",match:"Not matched.",regex:"Invalid format.",digit:"Must be a digit.",email:"Invalid email.",url:"Invalid url.",optionCombiner:function(e){return e.length>2&&(e=[e.slice(0,e.length-1).join(", "),e[e.length-1]]),e.join(" or ")}}),ug}(function(e){var t=hw;e.exports.debounce=function(n,r,o){var i;return function(){var s=this,l=arguments,h=function(){i=null,o||n.apply(s,l)},f=o&&!i;clearTimeout(i),i=setTimeout(h,r),f&&n.apply(s,l)}},e.exports.format=function(n){var r=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(o,i){return typeof r[i]<"u"?r[i]:o})},e.exports.isArray=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Object.prototype.toString.call(n)==="[object Array]"},e.exports.isEmpty=function(n){return e.exports.isArray(n)?!n.length:n==null?!0:!String(n).trim().length},e.exports.isEqual=function(n,r){return t(n,r)},e.exports.isFunction=function(n){return typeof n=="function"},e.exports.isNaN=function(n){return/^\s*$/.test(n)||isNaN(n)},e.exports.isNull=function(n){return n===null},e.exports.isString=function(n){return typeof n=="string"||n instanceof String},e.exports.isUndefined=function(n){return typeof n>"u"},e.exports.omit=function(r,o){var i={};for(var s in r)s!==o&&(i[s]=r[s]);return i},e.exports.templates=iD(),e.exports.mode="interactive"})(ow);var Ku=ow.exports,cg=tf.Promise,yr=Ku;function wn(){this.sessionId=0,this.resetting=0,this.errors=[],this.validatingRecords=[],this.passedRecords=[],this.touchedRecords=[],this.activated=!1}wn.prototype._setVM=function(e){this._vm=e},wn.prototype.addError=function(e,t){this.resetting||this.errors.push({f
844ield:e,message:t})},wn.prototype.removeErrors=function(e){yr.isUndefined(e)?this.errors=[]:this.errors=this.errors.filter(function(t){return t.field!==e})},wn.prototype.hasError=function(e){return yr.isUndefined(e)?!!this.errors.length:!!this.firstError(e)},wn.prototype.firstError=function(e){for(var t=0;t<this.errors.length;t++)if(yr.isUndefined(e)||this.errors[t].field===e)return this.errors[t].message;return null},wn.prototype.allErrors=function(e){return this.errors.filter(function(t){return yr.isUndefined(e)||t.field===e}).map(function(t){return t.message})},wn.prototype.countErrors=function(e){return yr.isUndefined(e)?this.errors.length:this.errors.filter(function(t){return e===t.field}).length},wn.prototype.setValidating=function(e,t){if(!this.resetting){t=t||wn.newValidatingId();var n=this.validatingRecords.filter(function(r){return r.field===e&&r.id===t});if(!yr.isEmpty(n))throw new Error("Validating id already set: "+t);return this.validatingRecords.push({field:e,id:t}),t}},wn.prototype.resetValidating=function(e,t){if(!e){this.validatingRecords=[];return}function n(s){return yr.isUndefined(t)?!0:s.id===t}for(var r=!0;r;){for(var o=-1,i=0;i<this.validatingRecords.length;i++)if(this.validatingRecords[i].field===e&&n(this.validatingRecords[i])){o=i;break}o>=0?this.validatingRecords.splice(o,1):r=!1}},wn.prototype.isValidating=function(e,t){function n(o){return yr.isUndefined(t)?!0:o.id===t}var r=this.validatingRecords.filter(function(o){return(yr.isUndefined(e)||o.field===e)&&n(o)});return!yr.isEmpty(r)},wn.prototype.setPassed=function(e){this.resetting||gw(this.passedRecords,e)},wn.prototype.resetPassed=function(e){mw(this.passedRecords,e)},wn.prototype.isPassed=function(e){return yw(this.passedRecords,e)},wn.prototype.setTouched=function(e){this.resetting||gw(this.touchedRecords,e)},wn.prototype.resetTouched=function(e){mw(this.touchedRecords,e)},wn.prototype.isTouched=function(e){return yw(this.touchedRecords,e)};function gw(e,t){var n=e.filter(function(r){return r.field===t});yr.isEmpty(n)?e.push({field:t,value:!0}):n[0].value=!0}function mw(e,t){if(!t){e.splice(0,e.length);return}var n=e.filter(function(r){return r.field===t});yr.isEmpty(n)||(n[0].value=!1)}function yw(e,t){var n=e.filter(function(r){return r.field===t});return!yr.isEmpty(n)&&n[0].value}wn.prototype.reset=function(){this.sessionId++,this.errors=[],this.validatingRecords=[],this.passedRecords=[],this.touchedRecords=[],this._vm&&(this.resetting++,this._vm.$nextTick((function(){this.resetting--}).bind(this))),this.activated=!1},wn.prototype.setError=function(e,t){if(!this.resetting){this.removeErrors(e),this.resetPassed(e);var n=yr.isArray(t)?t:[t],r=(function(l){var h=!1;return l.forEach(function(f){f&&(this.addError(e,f),h=!0)},this),h||this.setPassed(e),h}).bind(this),o=n.filter(function(l){return l&&l.then}).length>0;if(o){this.resetValidating(e);var i=this.setValidating(e),s=(function(){this.resetValidating(e,i)}).bind(this);return cg.all(n).then((function(l){return this.isValidating(e,i)?r(l):!1}).bind(this)).then(function(l){return s(),l}).catch((function(l){return s(),cg.reject(l)}).bind(this))}else return cg.resolve(r(n))}},wn.prototype.checkRule=function(e){if(!this.resetting)return this.setError(e._field,e._messages)};var oD=0;wn.newValidatingId=function(){return(++oD).toString()};var vw=wn,Ct=Ku;function on(e){this._field="",this._value=void 0,this._messages=[],e?(this.templates={},Object.keys(Ct.templates).forEach((function(t){this.templates[t]=Ct.templates[t]}).bind(this)),Object.keys(e).forEach((function(t){this.templates[t]=e[t]}).bind(this))):this.templates=Ct.templates}on.prototype.field=function(e){return this._field=e,this},on.prototype.value=function(e){return this._value=e,this},on.prototype.custom=function(e,t){var n=t?e.call(t):e();if(n){if(n.then){var r=this;n=Promise.resolve(n).then(function(o){return o}).catch(function(o){return console.error(o.toString()),r.templates.error})}this._messages.push(n)}return this},on.prototype._checkValue=function(){if(this._value===void 0)throw new Error("Validator.value not set");return this._value},on.prototype.required=function(e){var t=this._checkValue();return Ct.isEmpty(t)&&this._messages.push(e||this.templates.required),this},on.prototype.float=function(e){var t=this._checkValue(),n=/^([-+])?([0-9]+(\.[0-9]+)?|Infinity)$/;return!Ct.isEmpty(t)&&!n.test(t)&&this._messages.push(e||this.templates.float),this},on.prototype.integer=function(e){var t=this._checkValue(),n=/^([-+])?([0-9]+|Infinity)$/;return!Ct.isEmpty(t)&&!n.test(t)&&this._messages.push(e||this.templates.integer),this},on.prototype.lessThan=function(e,t){var n=this._checkValue();if(!Ct.isEmpty(n)){var r=parseFloat(n);Ct.isNaN(r)?this._messages.push(t||this.templates.number):r>=e&&this._messages.push(t||Ct.format(this.templates.lessThan,e))}return this},on.prototype.lessThanOrEqualTo=function(e,t){var n=this._checkValue();if(!Ct.isEmpty(n)){var r=parseFloat(n);Ct.isNaN(r)?this._messages.push(t||this.templates.number):r>e&&this._messages.push(t||Ct.format(this.templates.lessThanOrEqualTo,e))}return this},on.prototype.greaterThan=function(e,t){var n=this._checkValue();if(!Ct.isEmpty(n)){var r=parseFloat(n);Ct.isNaN(r)?this._messages.push(t||this.templates.number):r<=e&&this._messages.push(t||Ct.format(this.templates.greaterThan,e))}return this},on.prototype.greaterThanOrEqualTo=function(e,t){var n=this._checkValue();if(!Ct.isEmpty(n)){var r=parseFloat(n);Ct.isNaN(r)?this._messages.push(t||this.templates.number):r<e&&this._messages.push(t||Ct.format(this.templates.greaterThanOrEqualTo,e))}return this},on.prototype.between=function(e,t,n){var r=this._checkValue();if(!Ct.isEmpty(r)){var o=parseFloat(r);Ct.isNaN(o)?this._messages.push(n||this.templates.number):(o<e||o>t)&&this._messages.push(n||Ct.format(this.templates.between,e,t))}return this},on.prototype.size=function(e,t){var n=this._checkValue();return!Ct.isEmpty(n)&&Ct.isArray(n)&&n.length!==e&&this._messages.push(t||Ct.format(this.templates.size,e)),this},on.prototype.length=function(e,t){var n=this._checkValue();return!Ct.isEmpty(n)&&String(n).length!==e&&this._messages.push(t||Ct.format(this.templates.length,e)),this},on.prototype.minLength=function(e,t){var n=this._checkValue();return!Ct.isEmpty(n)&&String(n).length<e&&this._messages.push(t||Ct.format(this.templates.minLength,e)),this},on.prototype.maxLength=function(e,t){var n=this._checkValue();return!Ct.isEmpty(n)&&String(n).length>e&&this._messages.push(t||Ct.format(this.templates.maxLength,e)),this},on.prototype.lengthBetween=function(e,t,n){var r=this._checkValue();if(!Ct.isEmpty(r)){var o=String(r);(o.length<e||o.length>t)&&this._messages.push(n||Ct.format(this.templates.lengthBetween,e,t))}return this},on.prototype.in=function(e,t){var n=this._checkValue();return!Ct.isEmpty(n)&&e.indexOf(n)<0&&this._messages.push(t||Ct.format(this.templates.in,this.templates.optionCombiner(e))),this},on.prototype.notIn=function(e,t){var n=this._checkValue();return!Ct.isEmpty(n)&&e.indexOf(n)>=0&&this._messages.push(t||Ct.format(this.templates.notIn,this.templates.optionCombiner(e))),this},on.prototype.match=function(e,t){var n=this._checkValue();return!Ct.isEmpty(n)&&n!==e&&this._messages.push(t||this.templates.match),this},on.prototype.regex=function(e,t){var n=this._checkValue();return Ct.isEmpty(n)||(Ct.isString(e)&&(e=new RegExp(e)),e.test(n)||this._messages.push(t||this.templates.regex)),this},on.prototype.digit=function(e){return this.regex(/^\d*$/,e||this.templates.digit)},on.prototype.email=function(e){return this.regex(/^(([^<>()\[\]\\.,;:\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,}))$/,e||this.templates.email)},on.prototype.url=function(e){return this.regex(/(http|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:\/~+#-]*[\w@?^=%&amp;\/~+#-])?/,e||this.templates.url)},on.prototype.hasImmediateError=function(){for(var e=0;e<this._messages.length;e++)if(this._messages[e]&&!this._messages[e].then)return!0;return!1};var _w=on,ww=Ku,bw=_w,Ew=Sw();Ew.create=function(e){return Sw(e)};function Sw(e){e=e||{};var t={};return Object.keys(bw.prototype).forEach(function(n){t[n]=function(){var r=new bw(e.templates);return r[n].apply(r,arguments)}}),t.isEmpty=ww.isEmpty,t.format=ww.format,t}var aD=Ew,sD="Expected a function",Cw="__lodash_hash_undefined__",xw=1/0,uD="[object Function]",cD="[object GeneratorFunction]",lD="[object Symbol]",fD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dD=/^\w*$/,hD=/^\./,pD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gD=/[\\^$.*+?()[\]{}|]/g,mD=/\\(\\)?/g,yD=/^\[object .+?Constructor\]$/,vD=typeof pn=="object"&&pn&&pn.Object===Object&&pn,_D=typeof self=="object"&&self&&self.Object===Object&&self,lg=vD||_D||Function("return this")();function wD(e,t){return e==null?void 0:e[t]}function bD(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var ED=Array.prototype,SD=Function.prototype,Aw=Object.prototype,fg=lg["__core-js_shared__"],Tw=function(){var e=/[^.]+$/.exec(fg&&fg.keys&&fg.keys.IE_PROTO||"");
844return e?"Symbol(src)_1."+e:""}(),Iw=SD.toString,dg=Aw.hasOwnProperty,kw=Aw.toString,CD=RegExp("^"+Iw.call(dg).replace(gD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pw=lg.Symbol,xD=ED.splice,AD=Fw(lg,"Map"),Yu=Fw(Object,"create"),Nw=Pw?Pw.prototype:void 0,Dw=Nw?Nw.toString:void 0;function va(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function TD(){this.__data__=Yu?Yu(null):{}}function ID(e){return this.has(e)&&delete this.__data__[e]}function kD(e){var t=this.__data__;if(Yu){var n=t[e];return n===Cw?void 0:n}return dg.call(t,e)?t[e]:void 0}function PD(e){var t=this.__data__;return Yu?t[e]!==void 0:dg.call(t,e)}function ND(e,t){var n=this.__data__;return n[e]=Yu&&t===void 0?Cw:t,this}va.prototype.clear=TD,va.prototype.delete=ID,va.prototype.get=kD,va.prototype.has=PD,va.prototype.set=ND;function ls(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function DD(){this.__data__=[]}function FD(e){var t=this.__data__,n=nf(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xD.call(t,n,1),!0}function RD(e){var t=this.__data__,n=nf(t,e);return n<0?void 0:t[n][1]}function BD(e){return nf(this.__data__,e)>-1}function OD(e,t){var n=this.__data__,r=nf(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}ls.prototype.clear=DD,ls.prototype.delete=FD,ls.prototype.get=RD,ls.prototype.has=BD,ls.prototype.set=OD;function _a(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function UD(){this.__data__={hash:new va,map:new(AD||ls),string:new va}}function $D(e){return rf(this,e).delete(e)}function MD(e){return rf(this,e).get(e)}function LD(e){return rf(this,e).has(e)}function VD(e,t){return rf(this,e).set(e,t),this}_a.prototype.clear=UD,_a.prototype.delete=$D,_a.prototype.get=MD,_a.prototype.has=LD,_a.prototype.set=VD;function nf(e,t){for(var n=e.length;n--;)if(ZD(e[n][0],t))return n;return-1}function jD(e,t){t=WD(t,e)?[t]:GD(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[JD(t[n++])];return n&&n==r?e:void 0}function zD(e){if(!Bw(e)||KD(e))return!1;var t=QD(e)||bD(e)?CD:yD;return t.test(XD(e))}function HD(e){if(typeof e=="string")return e;if(pg(e))return Dw?Dw.call(e):"";var t=e+"";return t=="0"&&1/e==-xw?"-0":t}function GD(e){return Rw(e)?e:YD(e)}function rf(e,t){var n=e.__data__;return qD(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fw(e,t){var n=wD(e,t);return zD(n)?n:void 0}function WD(e,t){if(Rw(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||pg(e)?!0:dD.test(e)||!fD.test(e)||t!=null&&e in Object(t)}function qD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function KD(e){return!!Tw&&Tw in e}var YD=hg(function(e){e=tF(e);var t=[];return hD.test(e)&&t.push(""),e.replace(pD,function(n,r,o,i){t.push(o?i.replace(mD,"$1"):r||n)}),t});function JD(e){if(typeof e=="string"||pg(e))return e;var t=e+"";return t=="0"&&1/e==-xw?"-0":t}function XD(e){if(e!=null){try{return Iw.call(e)}catch{}try{return e+""}catch{}}return""}function hg(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(sD);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(hg.Cache||_a),n}hg.Cache=_a;function ZD(e,t){return e===t||e!==e&&t!==t}var Rw=Array.isArray;function QD(e){var t=Bw(e)?kw.call(e):"";return t==uD||t==cD}function Bw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function eF(e){return!!e&&typeof e=="object"}function pg(e){return typeof e=="symbol"||eF(e)&&kw.call(e)==lD}function tF(e){return e==null?"":HD(e)}function nF(e,t,n){var r=e==null?void 0:jD(e,t);return r===void 0?n:r}var rF=nF,ir=Ku,iF=vw,oF=rF,gg={Promise:null,beforeMount:function(){this.$setValidators(this.$options.validators),this.validation&&this.validation._setVM(this)},beforeUnmount:function(){Ow(this.$options.validatorsUnwatchCallbacks)},data:function(){return this.$options.validators?{validation:new iF}:{}},methods:{$setValidators:function(e){Ow(this.$options.validatorsUnwatchCallbacks);var t={};this.$options.validateMethods=t;var n=[];this.$options.validatorsUnwatchCallbacks=n,e&&Object.keys(e).forEach(function(r){var o=r.split(",");o=o.map(function(k){return k.trim()});var i=o.map(function(k){return aF(this,k)},this),s=e[r],l={};if(ir.isFunction(s)||(l=ir.omit(s,"validator"),s=s.validator),l.cache){var h=l.cache==="last"?"last":"all";s=uF(s,h)}var f=this.validation,g=(function(){if(ir.mode==="conservative"&&!f.activated)return Ju().resolve(!1);var k=i.map(function(N){return N()}),U=s.apply(this,k);return U?(U._field||U.field(o[0]),this.validation.checkRule(U)):Ju().resolve(!1)}).bind(this);t[o[0]]=g;var w=g;if(l.debounce){var E=(function(){return E.sessionId!==this.validation.sessionId?Ju().resolve(!1):g.apply(this,arguments)}).bind(this),C=ir.debounce(E,parseInt(l.debounce)),A=o[0];w=(function(){this.validation.resetPassed(A),E.sessionId=this.validation.sessionId,C.apply(this,arguments)}).bind(this)}
844ir.mode!=="manual"&&sF(this,o,w).forEach(function(k){n.push(k)})},this)},$validate:function(e){if(this.validation._validate)return this.validation._validate;this.validation.activated=!0;var t=this.$options.validateMethods;if(ir.isUndefined(e)?t=Object.keys(t).map(function(r){return t[r]}):(e=ir.isArray(e)?e:[e],t=e.map(function(r){return t[r]})),ir.isEmpty(t))return Ju().resolve(!0);var n=(function(){this.validation._validate=null}).bind(this);return this.validation._validate=Ju().all(t.map(function(r){return r()})).then((function(r){return n(),r.filter(function(o){return!!o}).length<=0}).bind(this)).catch(function(r){throw n(),r}),this.validation._validate}}};function Ow(e){e&&e.forEach(function(t){t()})}function aF(e,t){var n=t.split(".");return function(){for(var r=e,o=0;o<n.length&&!(ir.isNull(r)||ir.isUndefined(r));o++)r=r[n[o]];return r}}function sF(e,t,n){return t.map(function(r){return e.$watch(function(){return oF(e,r)},function(){e.validation.setTouched(r),n.call()})})}function uF(e,t){return function(){var n=e.cache;n||(n=[],e.cache=n);var r=Array.prototype.slice.call(arguments),o=cF(n,r);if(!ir.isUndefined(o))return o;var i=e.apply(this,r);if(!ir.isUndefined(i))return i.then?i.tab(function(s){ir.isUndefined(s)||(t!=="all"&&n.splice(0,n.length),n.push({args:r,result:s}))}):(t!=="all"&&n.splice(0,n.length),n.push({args:r,result:i}),i)}}function Ju(){return gg.Promise?gg.Promise:tf.Promise}function cF(e,t){var n=e.filter(function(r){return ir.isEqual(t,r.args)});if(!ir.isEmpty(n))return n[0].result}var lF=gg,fF=vw,dF=_w,hF=aD,mg=lF,Uw=Ku;function pF(e,t){e.mixin(mg),t&&t.templates&&$w(t.templates),t&&t.mode&&Mw(t.mode),t&&t.Promise&&(mg.Promise=t.Promise)}function $w(e){Object.keys(e).forEach(function(t){Uw.templates[t]=e[t]})}function Mw(e){if(e!=="interactive"&&e!=="conservative"&&e!=="manual")throw new Error("Invalid mode: "+e);Uw.mode=e}bi.name="SimpleVueValidator",bi.ValidationBag=fF,bi.Rule=dF;var wa=bi.Validator=hF;bi.mixin=mg,bi.install=pF,bi.extendTemplates=$w,bi.setMode=Mw;const gF=[{name:"login"},{name:"register"},{name:"forgot-password"},{name:"fb-connect"}],Ro=()=>{const e=()=>{const h=gF.find(f=>f.name==Bn.state.currentRoute);if(h)return h.component},t=()=>Bn.state.currentRoute,n=h=>typeof h<"u"?Bn.state.appProps[h]:Bn.state.appProps,r=h=>typeof h<"u"?Bn.state.routeProps[h]!="undefined"?Bn.state.routeProps[h]:"":Bn.state.routeProps,o=h=>{Bn.commit("setAppProps",h)},i=h=>{Bn.commit("setRouteProps",h)};return{getComponent:e,getRoute:t,getAppProps:n,getRouteParams:r,setAppProps:o,setRouteParams:i,watchRouteParams:(h,f)=>{a.watch(()=>Bn.state.routeProps[h],g=>{f(g)})},show:(h,f)=>{Bn.commit("setRoute",h),typeof f<"u"&&i(f)}}};function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yg.apply(this,arguments)}var mF=function(){var t=!1,n=[],r=function(){if(!t){t=!0;for(var l=0,h=n.length;l<h;l++)n[l]()}},o=function(l){if(!t){n.push(l);return}l()},i={resolved:function(){return t},resolve:r,promise:{then:o}};return i},Lw=Object.prototype.hasOwnProperty;function yF(){var e=mF();return{notify:function(){e.resolve()},wait:function(){return e.promise},render:function(n,r,o){this.wait().then(function(){o(window.grecaptcha.render(n,r))})},reset:function(n){typeof n>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(n)}))},execute:function(n){typeof n>"u"||(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(n)}))},checkRecaptchaLoad:function(){Lw.call(window,"grecaptcha")&&Lw.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!e.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var Xu=yF();typeof window<"u"&&(window.vueRecaptchaApiLoaded=Xu.notify);var Vw=a.defineComponent({name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!0},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},emits:["render","verify","expired","error"],setup:function(t,n){var r=n.slots,o=n.emit,i=a.ref(null),s=a.ref(null),l=function(w){o("verify",w)},h=function(){o("expired")},f=function(){o("error")};return a.onMounted(function(){if(Xu.checkRecaptchaLoad(),t.loadRecaptchaScript&&!document.getElementById(t.recaptchaScriptId)){var g=document.createElement("script");
844g.id=t.recaptchaScriptId,g.src="https://"+t.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+t.language,g.async=!0,g.defer=!0,document.head.appendChild(g)}var w=yg({},t,{callback:l,"expired-callback":h,"error-callback":f}),E=i.value,C=r.default?E.children[0]:E;Xu.render(C,w,function(A){s.value=A,o("render",A)})}),{root:i,widgetId:s,reset:function(){Xu.reset(s.value)},execute:function(){Xu.execute(s.value)}}},render:function(){var t=this.$slots.default,n;return typeof t=="function"?n=t():n=t,a.h("div",{ref:"root"},n)}}),vF=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},jw=typeof Symbol<"u"&&Symbol,_F=vF,wF=function(){return typeof jw!="function"||typeof Symbol!="function"||typeof jw("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_F()},zw={foo:{}},bF=Object,EF=function(){return{__proto__:zw}.foo===zw.foo&&!({__proto__:null}instanceof bF)},SF="Function.prototype.bind called on incompatible ",CF=Object.prototype.toString,xF=Math.max,AF="[object Function]",Hw=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},TF=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},IF=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},kF=function(t){var n=this;if(typeof n!="function"||CF.apply(n)!==AF)throw new TypeError(SF+n);for(var r=TF(arguments,1),o,i=function(){if(this instanceof o){var g=n.apply(this,Hw(r,arguments));return Object(g)===g?g:this}return n.apply(t,Hw(r,arguments))},s=xF(0,n.length-r.length),l=[],h=0;h<s;h++)l[h]="$"+h;if(o=Function("binder","return function ("+IF(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var f=function(){};f.prototype=n.prototype,o.prototype=new f,f.prototype=null}return o},PF=kF,Gw=Function.prototype.bind||PF,Ww={}.hasOwnProperty,vg=Function.prototype.call,NF=vg.bind?vg.bind(Ww):function(e,t){return vg.call(Ww,e,t)},Rt,fs=SyntaxError,qw=Function,ds=TypeError,_g=function(e){try{return qw('"use strict"; return ('+e+").constructor;")()}catch{}},ba=Object.getOwnPropertyDescriptor;if(ba)try{ba({},"")}catch{ba=null}var wg=function(){throw new ds},DF=ba?function(){try{return arguments.callee,wg}catch{try{return ba(arguments,"callee").get}catch{return wg}}}():wg,hs=wF(),FF=EF(),On=Object.getPrototypeOf||(FF?function(e){return e.__proto__}:null),ps={},RF=typeof Uint8Array>"u"||!On?Rt:On(Uint8Array),Ea={"%AggregateError%":typeof AggregateError>"u"?Rt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Rt:ArrayBuffer,"%ArrayIteratorPrototype%":hs&&On?On([][Symbol.iterator]()):Rt,"%AsyncFromSyncIteratorPrototype%":Rt,"%AsyncFunction%":ps,"%AsyncGenerator%":ps,"%AsyncGeneratorFunction%":ps,"%AsyncIteratorPrototype%":ps,"%Atomics%":typeof Atomics>"u"?Rt:Atomics,"%BigInt%":typeof BigInt>"u"?Rt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Rt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Rt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Rt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Rt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Rt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Rt:FinalizationRegistry,"%Function%":qw,"%GeneratorFunction%":ps,"%Int8Array%":typeof Int8Array>"u"?Rt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Rt:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 4,824 bytes, line 844
844"u"?Rt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hs&&On?On(On([][Symbol.iterator]())):Rt,"%JSON%":typeof JSON=="object"?JSON:Rt,"%Map%":typeof Map>"u"?Rt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hs||!On?Rt:On(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Rt:Promise,"%Proxy%":typeof Proxy>"u"?Rt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Rt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Rt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hs||!On?Rt:On(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Rt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hs&&On?On(""[Symbol.iterator]()):Rt,"%Symbol%":hs?Symbol:Rt,"%SyntaxError%":fs,"%ThrowTypeError%":DF,"%TypedArray%":RF,"%TypeError%":ds,"%Uint8Array%":typeof Uint8Array>"u"?Rt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Rt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Rt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Rt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Rt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Rt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Rt:WeakSet};if(On)try{null.error}catch(e){var BF=On(On(e));Ea["%Error.prototype%"]=BF}var OF=function e(t){var n;if(t==="%AsyncFunction%")n=_g("async function () {}");else if(t==="%GeneratorFunction%")n=_g("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=_g("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&On&&(n=On(o.prototype))}return Ea[t]=n,n},Kw={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Zu=Gw,of=NF,UF=Zu.call(Function.call,Array.prototype.concat),$F=Zu.call(Function.apply,Array.prototype.splice),Yw=Zu.call(Function.call,String.prototype.replace),af=Zu.call(Function.call,String.prototype.slice),MF=Zu.call(Function.call,RegExp.prototype.exec),LF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,VF=/\\(\\)?/g,jF=function(t){var n=af(t,0,1),r=af(t,-1);if(n==="%"&&r!=="%")throw new fs("invalid intrinsic syntax, expected closing `%`");
844if(r==="%"&&n!=="%")throw new fs("invalid intrinsic syntax, expected opening `%`");var o=[];return Yw(t,LF,function(i,s,l,h){o[o.length]=l?Yw(h,VF,"$1"):s||i}),o},zF=function(t,n){var r=t,o;if(of(Kw,r)&&(o=Kw[r],r="%"+o[0]+"%"),of(Ea,r)){var i=Ea[r];if(i===ps&&(i=OF(r)),typeof i>"u"&&!n)throw new ds("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new fs("intrinsic "+t+" does not exist!")},Sa=function(t,n){if(typeof t!="string"||t.length===0)throw new ds("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new ds('"allowMissing" argument must be a boolean');if(MF(/^%?[^%]*%?$/,t)===null)throw new fs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=jF(t),o=r.length>0?r[0]:"",i=zF("%"+o+"%",n),s=i.name,l=i.value,h=!1,f=i.alias;f&&(o=f[0],$F(r,UF([0,1],f)));for(var g=1,w=!0;g<r.length;g+=1){var E=r[g],C=af(E,0,1),A=af(E,-1);if((C==='"'||C==="'"||C==="`"||A==='"'||A==="'"||A==="`")&&C!==A)throw new fs("property names with quotes must have matching quotes");if((E==="constructor"||!w)&&(h=!0),o+="."+E,s="%"+o+"%",of(Ea,s))l=Ea[s];else if(l!=null){if(!(E in l)){if(!n)throw new ds("base intrinsic for "+t+" exists, but the property is not available.");return}if(ba&&g+1>=r.length){var k=ba(l,E);w=!!k,w&&"get"in k&&!("originalValue"in k.get)?l=k.get:l=l[E]}else w=of(l,E),l=l[E];w&&!h&&(Ea[s]=l)}}return l},Jw={exports:{}},HF=Sa,bg=HF("%Object.defineProperty%",!0),Eg=function(){if(bg)try{return bg({},"a",{value:1}),!0}catch{return!1}return!1};Eg.hasArrayLengthDefineBug=function(){if(!Eg())return null;try{return bg([],"length",{value:1}).length!==1}catch{return!0}};var Xw=Eg,GF=Sa,sf=GF("%Object.getOwnPropertyDescriptor%",!0);if(sf)try{sf([],"length")}catch{sf=null}var Zw=sf,WF=Xw(),Sg=Sa,Qu=WF&&Sg("%Object.defineProperty%",!0);if(Qu)try{Qu({},"a",{value:1})}catch{Qu=!1}var qF=Sg("%SyntaxError%"),gs=Sg("%TypeError%"),Qw=Zw,KF=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new gs("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new gs("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new gs("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new gs("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new gs("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new gs("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,h=!!Qw&&Qw(t,n);if(Qu)Qu(t,n,{configurable:s===null&&h?h.configurable:!s,enumerable:o===null&&h?h.enumerable:!o,value:r,writable:i===null&&h?h.writable:!i});else if(l||!o&&!i&&!s)t[n]=r;else throw new qF("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},eb=Sa,tb=KF,YF=Xw(),nb=Zw,rb=eb("%TypeError%"),JF=eb("%Math.floor%"),XF=function(t,n){if(typeof t!="function")throw new rb("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||JF(n)!==n)throw new rb("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&nb){var s=nb(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(YF?tb(t,"length",n,!0,!0):tb(t,"length",n)),t};(function(e){var t=Gw,n=Sa,r=XF,o=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(i,o),l=n("%Object.defineProperty%",!0),h=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(w){var E=s(t,i,arguments);return r(E,1+h(0,w.length-(arguments.length-1)),!0)};var f=function(){return s(t,o,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f})(Jw);var ZF=Jw.exports,ib=Sa,ob=ZF,QF=ob(ib("String.prototype.indexOf")),eR=function(t,n){var r=ib(t,!!n);return typeof r=="function"&&QF(t,".prototype.")>-1?ob(r):r};const tR=Vl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Cg=typeof Map=="function"&&Map.prototype,xg=Object.getOwnPropertyDescriptor&&Cg?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,uf=Cg&&xg&&typeof xg.get=="function"?xg.get:null,ab=Cg&&Map.prototype.forEach,Ag=typeof Set=="function"&&Set.prototype,Tg=Object.getOwnPropertyDescriptor&&Ag?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,cf=Ag&&Tg&&typeof Tg.get=="function"?Tg.get:null,sb=Ag&&Set.prototype.forEach,nR=typeof WeakMap=="function"&&WeakMap.prototype,ec=nR?WeakMap.prototype.has:null,rR=typeof WeakSet=="function"&&WeakSet.prototype,tc=rR?WeakSet.prototype.has:null,iR=typeof WeakRef=="function"&&WeakRef.prototype,ub=iR?WeakRef.prototype.deref:null,oR=Boolean.prototype.valueOf,aR=Object.prototype.toString,sR=Function.prototype.toString,uR=String.prototype.match,Ig=String.prototype.slice,Bo=String.prototype.replace,cR=String.prototype.toUpperCase,cb=String.prototype.toLowerCase,lb=RegExp.prototype.test,fb=Array.prototype.concat,Ei=Array.prototype.join,lR=Array.prototype.slice,db=Math.floor,kg=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Pg=Object.getOwnPropertySymbols,Ng=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ms=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Yn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ms||"symbol")?Symbol.toStringTag:null,hb=Object.prototype.propertyIsEnumerable,pb=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function gb(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||lb.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-db(-e):db(e);
vendor: 15,075 bytes, lines 844-847
844if(r!==e){var o=String(r),i=Ig.call(t,o.length+1);return Bo.call(o,n,"$&_")+"."+Bo.call(Bo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Bo.call(t,n,"$&_")}var Dg=tR,mb=Dg.custom,yb=wb(mb)?mb:null,fR=function e(t,n,r,o){var i=n||{};if(Oo(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Oo(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Oo(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Oo(i,"indent")&&i.indent!==null&&i.indent!=="	"&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Oo(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Eb(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var h=String(t);return l?gb(t,h):h}if(typeof t=="bigint"){var f=String(t)+"n";return l?gb(t,f):f}var g=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=g&&g>0&&typeof t=="object")return Fg(t)?"[Array]":"[Object]";var w=kR(i,r);if(typeof o>"u")o=[];else if(bb(o,t)>=0)return"[Circular]";function E(ye,je,rt){if(je&&(o=lR.call(o),o.push(je)),rt){var ot={depth:i.depth};return Oo(i,"quoteStyle")&&(ot.quoteStyle=i.quoteStyle),e(ye,ot,r+1,o)}return e(ye,i,r+1,o)}if(typeof t=="function"&&!_b(t)){var C=wR(t),A=lf(t,E);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(A.length>0?" { "+Ei.call(A,", ")+" }":"")}if(wb(t)){var k=ms?Bo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ng.call(t);return typeof t=="object"&&!ms?nc(k):k}if(AR(t)){for(var U="<"+cb.call(String(t.nodeName)),N=t.attributes||[],R=0;R<N.length;R++)U+=" "+N[R].name+"="+vb(dR(N[R].value),"double",i);return U+=">",t.childNodes&&t.childNodes.length&&(U+="..."),U+="</"+cb.call(String(t.nodeName))+">",U}if(Fg(t)){if(t.length===0)return"[]";var L=lf(t,E);return w&&!IR(L)?"["+Bg(L,w)+"]":"[ "+Ei.call(L,", ")+" ]"}if(pR(t)){var z=lf(t,E);return!("cause"in Error.prototype)&&"cause"in t&&!hb.call(t,"cause")?"{ ["+String(t)+"] "+Ei.call(fb.call("[cause]: "+E(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ei.call(z,", ")+" }"}if(typeof t=="object"&&s){if(yb&&typeof t[yb]=="function"&&Dg)return Dg(t,{depth:g-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(bR(t)){var W=[];return ab&&ab.call(t,function(ye,je){W.push(E(je,t,!0)+" => "+E(ye,t))}),Sb("Map",uf.call(t),W,w)}if(CR(t)){var ee=[];return sb&&sb.call(t,function(ye){ee.push(E(ye,t))}),Sb("Set",cf.call(t),ee,w)}if(ER(t))return Rg("WeakMap");if(xR(t))return Rg("WeakSet");if(SR(t))return Rg("WeakRef");if(mR(t))return nc(E(Number(t)));if(vR(t))return nc(E(kg.call(t)));if(yR(t))return nc(oR.call(t));if(gR(t))return nc(E(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===pn)return"{ [object globalThis] }";if(!hR(t)&&!_b(t)){var b=lf(t,E),fe=pb?pb(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Ie=!fe&&Yn&&Object(t)===t&&Yn in t?Ig.call(Uo(t),8,-1):ae?"Object":"",xe=fe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",De=xe+(Ie||ae?"["+Ei.call(fb.call([],Ie||[],ae||[]),": ")+"] ":"");return b.length===0?De+"{}":w?De+"{"+Bg(b,w)+"}":De+"{ "+Ei.call(b,", ")+" }"}return String(t)};function vb(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function dR(e){return Bo.call(String(e),/"/g,"&quot;")}function Fg(e){return Uo(e)==="[object Array]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function hR(e){return Uo(e)==="[object Date]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function _b(e){return Uo(e)==="[object RegExp]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function pR(e){return Uo(e)==="[object Error]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function gR(e){return Uo(e)==="[object String]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function mR(e){return Uo(e)==="[object Number]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function yR(e){return Uo(e)==="[object Boolean]"&&(!Yn||!(typeof e=="object"&&Yn in e))}function wb(e){if(ms)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ng)return!1;try{return Ng.call(e),!0}catch{}return!1}function vR(e){if(!e||typeof e!="object"||!kg)return!1;try{return kg.call(e),!0}catch{}return!1}var _R=Object.prototype.hasOwnProperty||function(e){return e in this};function Oo(e,t){return _R.call(e,t)}function Uo(e){return aR.call(e)}function wR(e){if(e.name)return e.name;var t=uR.call(sR.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function bb(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function bR(e){if(!uf||!e||typeof e!="object")return!1;try{uf.call(e);try{cf.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ER(e){if(!ec||!e||typeof e!="object")return!1;try{ec.call(e,ec);try{tc.call(e,tc)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function SR(e){if(!ub||!e||typeof e!="object")return!1;try{return ub.call(e),!0}catch{}return!1}function CR(e){if(!cf||!e||typeof e!="object")return!1;try{cf.call(e);try{uf.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function xR(e){if(!tc||!e||typeof e!="object")return!1;try{tc.call(e,tc);try{ec.call(e,ec)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function AR(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Eb(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Eb(Ig.call(e,0,t.maxStringLength),t)+r}var o=Bo.call(Bo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,TR);return vb(o,"single",t)}function TR(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+cR.call(t.toString(16))}function nc(e){return"Object("+e+")"}function Rg(e){return e+" { ? }"}function Sb(e,t,n,r){var o=r?Bg(n,r):Ei.call(n,", ");return e+" ("+t+") {"+o+"}"}function IR(e){for(var t=0;t<e.length;t++)if(bb(e[t],`
845`)>=0)return!1;return!0}function kR(e,t){var n;if(e.indent==="	")n="	";else if(typeof e.indent=="number"&&e.indent>0)n=Ei.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ei.call(Array(t+1),n)}}function Bg(e,t){if(e.length===0)return"";var n=`
846`+t.prev+t.base;return n+Ei.call(e,","+n)+`
847`+t.prev}function lf(e,t){var n=Fg(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Oo(e,o)?t(e[o],e):""}var i=typeof Pg=="function"?Pg(e):[],s;if(ms){s={};for(var l=0;l<i.length;l++)s["$"+i[l]]=i[l]}for(var h in e)Oo(e,h)&&(n&&String(Number(h))===h&&h<e.length||ms&&s["$"+h]instanceof Symbol||(lb.call(/[^\w$]/,h)?r.push(t(h,e)+": "+t(e[h],e)):r.push(h+": "+t(e[h],e))));if(typeof Pg=="function")for(var f=0;f<i.length;f++)hb.call(e,i[f])&&r.push("["+t(i[f])+"]: "+t(e[i[f]],e));return r}var Og=Sa,ys=eR,PR=fR,NR=Og("%TypeError%"),ff=Og("%WeakMap%",!0),df=Og("%Map%",!0),DR=ys("WeakMap.prototype.get",!0),FR=ys("WeakMap.prototype.set",!0),RR=ys("WeakMap.prototype.has",!0),BR=ys("Map.prototype.get",!0),OR=ys("Map.prototype.set",!0),UR=ys("Map.prototype.has",!0),Ug=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},$R=function(e,t){var n=Ug(e,t);return n&&n.value},MR=function(e,t,n){var r=Ug(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},LR=function(e,t){return!!Ug(e,t)},VR=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new NR("Side channel does not contain "+PR(i))},get:function(i){if(ff&&i&&(typeof i=="object"||typeof i=="function")){if(t)return DR(t,i)}else if(df){if(n)return BR(n,i)}else if(r)return $R(r,i)},has:function(i){if(ff&&i&&(typeof i=="object"||typeof i=="function")){if(t)return RR(t,i)}else if(df){if(n)return UR(n,i)}else if(r)return LR(r,i);return!1},set:function(i,s){ff&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new ff),FR(t,i,s)):df?(n||(n=new df),OR(n,i,s)):(r||(r={key:{},next:null}),MR(r,i,s))}};return o},jR=String.prototype.replace,zR=/%20/g,$g={RFC1738:"RFC1738",RFC3986:"RFC3986"},Mg={default:$g.RFC3986,formatters:{RFC1738:function(e){return jR.call(e,zR,"+")},RFC3986:function(e){return String(e)}},RFC1738:$g.RFC1738,RFC3986:$g.RFC3986},HR=Mg,Lg=Object.prototype.hasOwnProperty,Ca=Array.isArray,Si=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),GR=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Ca(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},Cb=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},WR=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ca(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Lg.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Ca(t)&&!Ca(n)&&(o=Cb(t,r)),Ca(t)&&Ca(n)?(n.forEach(function(i,s){if(Lg.call(t,s)){var l=t[s];l&&typeof l=="object"&&i&&typeof i=="object"?t[s]=e(l,i,r):t.push(i)}else t[s]=i}),t):Object.keys(n).reduce(function(i,s){var l=n[s];return Lg.call(i,s)?i[s]=e(i[s],l,r):i[s]=l,i},o)},qR=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},KR=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},YR=function(t,n,r,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var l="",h=0;h<s.length;++h){var f=s.charCodeAt(h);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===HR.RFC1738&&(f===40||f===41)){l+=s.charAt(h);continue}if(f<128){l=l+Si[f];continue}if(f<2048){l=l+(Si[192|f>>6]+Si[128|f&63]);continue}if(f<55296||f>=57344){l=l+(Si[224|f>>12]+Si[128|f>>6&63]+Si[128|f&63]);continue}h+=1,f=65536+((f&1023)<<10|s.charCodeAt(h)&1023),l+=Si[240|f>>18]+Si[128|f>>12&63]+Si[128|f>>6&63]+Si[128|f&63]}return l},JR=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],l=Object.keys(s),h=0;h<l.length;++h){var f=l[h],g=s[f];typeof g=="object"&&g!==null&&r.indexOf(g)===-1&&(n.push({obj:s,prop:f}),r.push(g))}return GR(n),t},XR=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ZR=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},QR=function(t,n){return[].concat(t,n)},eB=function(t,n){if(Ca(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},xb={arrayToObject:Cb,assign:qR,combine:QR,compact:JR,decode:KR,encode:YR,isBuffer:ZR,isRegExp:XR,maybeMap:eB,merge:WR},Ab=VR,hf=xb,rc=Mg,tB=Object.prototype.hasOwnProperty,Tb={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},eo=Array.isArray,nB=Array.prototype.push,Ib=function(e,t){nB.apply(e,eo(t)?t:[t])},rB=Date.prototype.toISOString,kb=rc.default,Jn={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:hf.encode,encodeValuesOnly:!1,format:kb,formatter:rc.formatters[kb],indices:!1,serializeDate:function(t){return rB.call(t)},skipNulls:!1,strictNullHandling:!1},iB=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Vg={},oB=function e(t,n,r,o,i,s,l,h,f,g,w,E,C,A,k,U){for(var N=t,R=U,L=0,z=!1;(R=R.get(Vg))!==void 0&&!z;){var W=R.get(t);if(L+=1,typeof W<"u"){if(W===L)throw new RangeError("Cyclic object value");z=!0}typeof R.get(Vg)>"u"&&(L=0)}if(typeof h=="function"?N=h(n,N):N instanceof Date?N=w(N):r==="comma"&&eo(N)&&(N=hf.maybeMap(N,function(ot){return ot instanceof Date?w(ot):ot})),N===null){if(i)return l&&!A?l(n,Jn.encoder,k,"key",E):n;N=""}if(iB(N)||hf.isBuffer(N)){if(l){var ee=A?n:l(n,Jn.encoder,k,"key",E);return[C(ee)+"="+C(l(N,Jn.encoder,k,"value",E))]}return[C(n)+"="+C(String(N))]}var b=[];if(typeof N>"u")return b;var fe;if(r==="comma"&&eo(N))A&&l&&(N=hf.maybeMap(N,l)),fe=[{value:N.length>0?N.join(",")||null:void 0}];else if(eo(h))fe=h;else{var ae=Object.keys(N);fe=f?ae.sort(f):ae}for(var Ie=o&&eo(N)&&N.length===1?n+"[]":n,xe=0;xe<fe.length;++xe){var De=fe[xe],ye=typeof De=="object"&&typeof De.value<"u"?De.value:N[De];if(!(s&&ye===null)){var je=eo(N)?typeof r=="function"?r(Ie,De):Ie:Ie+(g?"."+De:"["+De+"]");U.set(t,L);var rt=Ab();rt.set(Vg,U),Ib(b,e(ye,je,r,o,i,s,r==="comma"&&A&&eo(N)?null:l,h,f,g,w,E,C,A,k,rt))}}return b},aB=function(t){if(!t)return Jn;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Jn.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=rc.default;if(typeof t.format<"u"){if(!tB.call(rc.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=rc.formatters[r],i=Jn.filter;return(typeof t.filter=="function"||eo(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Jn.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Jn.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Jn.charsetSentinel,delimiter:typeof t.delimiter>"u"?Jn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Jn.encode,encoder:typeof t.encoder=="function"?t.encoder:Jn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Jn.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Jn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Jn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Jn.strictNullHandling}},sB=function(e,t){var n=e,r=aB(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):eo(r.filter)&&(i=r.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var l;t&&t.arrayFormat in Tb?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var h=Tb[l];
vendor: 4,368 bytes, line 847
847if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=h==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var g=Ab(),w=0;w<o.length;++w){var E=o[w];r.skipNulls&&n[E]===null||Ib(s,oB(n[E],E,h,f,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,g))}var C=s.join(r.delimiter),A=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?A+="utf8=%26%2310003%3B&":A+="utf8=%E2%9C%93&"),C.length>0?A+C:""},vs=xb,jg=Object.prototype.hasOwnProperty,uB=Array.isArray,Un={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:vs.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cB=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Pb=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},lB="utf8=%26%2310003%3B",fB="utf8=%E2%9C%93",dB=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),l=-1,h,f=n.charset;if(n.charsetSentinel)for(h=0;h<s.length;++h)s[h].indexOf("utf8=")===0&&(s[h]===fB?f="utf-8":s[h]===lB&&(f="iso-8859-1"),l=h,h=s.length);for(h=0;h<s.length;++h)if(h!==l){var g=s[h],w=g.indexOf("]="),E=w===-1?g.indexOf("="):w+1,C,A;E===-1?(C=n.decoder(g,Un.decoder,f,"key"),A=n.strictNullHandling?null:""):(C=n.decoder(g.slice(0,E),Un.decoder,f,"key"),A=vs.maybeMap(Pb(g.slice(E+1),n),function(k){return n.decoder(k,Un.decoder,f,"value")})),A&&n.interpretNumericEntities&&f==="iso-8859-1"&&(A=cB(A)),g.indexOf("[]=")>-1&&(A=uB(A)?[A]:A),jg.call(r,C)?r[C]=vs.combine(r[C],A):r[C]=A}return r},hB=function(e,t,n,r){for(var o=r?t:Pb(t,n),i=e.length-1;i>=0;--i){var s,l=e[i];if(l==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var h=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,f=parseInt(h,10);!n.parseArrays&&h===""?s={0:o}:!isNaN(f)&&l!==h&&String(f)===h&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(s=[],s[f]=o):h!=="__proto__"&&(s[h]=o)}o=s}return o},pB=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,h=r.depth>0&&s.exec(i),f=h?i.slice(0,h.index):i,g=[];if(f){if(!r.plainObjects&&jg.call(Object.prototype,f)&&!r.allowPrototypes)return;g.push(f)}for(var w=0;r.depth>0&&(h=l.exec(i))!==null&&w<r.depth;){if(w+=1,!r.plainObjects&&jg.call(Object.prototype,h[1].slice(1,-1))&&!r.allowPrototypes)return;g.push(h[1])}return h&&g.push("["+i.slice(h.index)+"]"),hB(g,n,r,o)}},gB=function(t){if(!t)return Un;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Un.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Un.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Un.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Un.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Un.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Un.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Un.comma,decoder:typeof t.decoder=="function"?t.decoder:Un.decoder,delimiter:typeof t.delimiter=="string"||vs.isRegExp(t.delimiter)?t.delimiter:Un.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Un.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Un.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Un.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Un.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Un.strictNullHandling}},mB=function(e,t){var n=gB(t);
847if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?dB(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var l=i[s],h=pB(l,r[l],n,typeof e=="string");o=vs.merge(o,h,n)}return n.allowSparse===!0?o:vs.compact(o)},yB=sB,vB=mB,_B=Mg,wB={formats:_B,parse:vB,stringify:yB};const bB=Lu(wB),EB={components:{VueRecaptcha:Vw},data(){return{minPasswordLength:9,recaptchaVerified:!1,userEmail:"",userPassword:"",serverMessage:"",tempUserFeedback:"",linkAccountMode:!1,accountAccessToken:null,userEmailChecked:!1,userProvider:"",isPasswordSetupRequired:!1,showProviderForm:!1}},watch:{userEmail:function(){this.serverMessage="",this.tempUserFeedback=""},userPassword:function(){this.serverMessage="",this.tempUserFeedback=""}},methods:{async submitGfLoginAccount(){var e=this,t=this.$validate();t&&(e.captchaPublicKey!=""&&!e.recaptchaVerified&&!e.demo?this.executeRecaptcha():e.makeLogonRequest())},RecaptchaAsVerified(e){this.recaptchaVerified=!0,this.makeLogonRequest(e)},async postLogon(e){var t=this;return kn.post("/account/logon",t.constructFormData(e),{headers:{"Content-Type":"application/json"}})},executeRecaptcha(){var e=this;e.$refs.invisibleRecaptcha.execute()},resetRecaptcha(){var e=this;e.captchaPublicKey!=""&&e.$refs.invisibleRecaptcha.reset()},emitEvent(e,t){var n=this;n.$emit(e,t)},async makeLogonRequest(e){var t=this;if(this.resetRecaptcha(),this.linkAccountMode&&this.accountAccessToken&&this.accountAccessToken.length>0)return this.linkAccount();try{var n=await t.postLogon(e);if(t.$gfLogger.logInfo("LoginAccountInitializer.vue makeLogonRequest /account/logon, accountLogonResponse:",n),n.data.Success){t.userProvider=n.data.DefaultProvider,t.showProviderForm=!0,t.isInitialSetup=!0,t.$gfLogger.logInfo("LoginAccountInitializer accountLogonResponse.data.Success",n);return}return n.data.TempData===void 0?(t.emitEvent("loggedIn",t.userEmail),n.data.redirectUrl?t.redirectToPage(n.data.redirectUrl):t.redirectToPage(t.returnUrl)):t.processServerResponse(n.data)}catch(r){if(t.$gfLogger.logInfo("LoginAccountInitializer.vue makeLogonRequest, err:",r),r!==void 0&&r.response!==void 0&&r.response.status!==void 0&&r.response.status==302){t.redirectToPage(t.returnUrl);return}}},async submitEmailAddress(){var e=this,t=await this.$validate();t&&(e.$gfLogger.logInfo("LoginAccountInitializer.vue submitEmailAddress success, vm.userEmail:",e.userEmail),await e.getUserLoginProvider(e.userEmail))},async executeGetUserLoginProvider(e){return kn.post("/account/get-user-login-provider?emailAddress="+encodeURIComponent(e),null,{headers:{"content-type":"application/x-www-form-urlencoded;charset=utf-8","x-requested-with":"XMLHttpRequest"}})},async getUserLoginProvider(e){var t=this;t.$gfLogger.logInfo("getUserLoginProvider, userEmail:",e);try{var n=await t.executeGetUserLoginProvider(e);t.$gfLogger.logInfo("get-user-login-provider success",n),Bn.commit("setUserEmail",e),t.userEmailChecked=!0,t.isPasswordSetupRequired=n.data.IsPasswordSetupRequired,t.userProvider=n.data.DefaultProvider.toLowerCase()==cs.PROVIDER_GOFUNDRAISE.toLowerCase()?"":n.data.DefaultProvider,t.showProviderForm=n.data.DefaultProvider.toLowerCase()!=cs.PROVIDER_GOFUNDRAISE.toLowerCase()}catch(r){t.$gfLogger.logInfo("get-user-login-provider failed",r)}},linkAccount(){var e=this;this.$gfLogger.logInfo(`Linking account using access token ${this.accountAccessToken}`),kn({method:"post",url:"/account/link-account-facebook",data:bB.stringify({ReturnUrl:"",Provider:"facebook",Data:this.accountAccessToken,InFrame:this.inframe,UserName:this.userEmail,Password:this.userPassword}),headers:{"content-type":"application/x-www-form-urlencoded;charset=utf-8","x-requested-with":"XMLHttpRequest"}}).then(function(t){e.$gfLogger.logInfo("Link account response:",t),t.data&&t.data.success===!0?(e.$gfLogger.logInfo("Successfully linked account"),e.emitEvent("loggedIn"),e.redirectToPage(e.returnUrl)):e.serverMessage="The username / password specified is not valid. Please confirm details and try again."})},constructFormData(e){var t=this;return{TuringTest:e,ReturnUrl:t.returnUrl,InFrame:t.inframe,UserName:t.userEmail,Password:t.userPassword,Data:""}},redirectToPage(e){this.disableRedirect||window.location.replace(e)},processServerResponse(e){e.TempData["Status.Css"]&&e.TempData["Status.Css"].toLowerCase()=="error"&&(this.serverMessage=e.TempData["Status.Message"],this.recaptchaVerified=!1)}},validators:{userEmail:function(e){return wa.value(e).required().email()},userPassword:function(e){if(this.userEmailChecked)return wa.value(e).required()}}},Ule="",SB={props:["facebook","returnUrl","inFrame","actionType","demo","disableRedirect"],data(){return{accesTokenFacebook:"",provider:"facebook",stateParam:""}},computed:{getActionType:{get:function(){return this.actionType}}},mounted(){this.stateParam=btoa(window.location.origin)},methods:{async postLogonProvider(){return kn.post("/account/logon-provider",{ReturnUrl:"/",InFrame:this.inFrame,Provider:this.provider,Data:this.accesTokenFacebook},{headers:{"Content-Type":"application/json"}})},emitEvent(e,t){var n=this;n.$emit(e,t)},async submitFaceBookAccount(){var e=this;try{var t=await e.postLogonProvider();t!==void 0&&t.status===200&&(t.data==="new-connect"?Ro().show("fb-connect",{accessToken:e.accesTokenFacebook}):e.redirectToPage(),this.emitEvent("loggedIn"))}catch(n){console.log("Error connecting to facebook. "+n)}},openFbDialog(){window.open("https://www.facebook.com/dialog/oauth?client_id=","","toolbar=no")},processFacebookLogin(){var e=this;e.openFacebookLoginDialog(e.stateParam,e.facebook.redirectUrl)},redirectToPage:function(){this.disableRedirect||this.returnUrl&&window.location.replace(this.returnUrl)},openFacebookLoginDialog(e,t){var n=this,r=500,o=600,i=0,s=0,l=0,h=0,f=0,g=0;typeof window.screenLeft<"u"?(i=window.screenLeft,s=window.screenTop):typeof window.screenX<"u"&&(i=window.screenX,s=window.screenY),l=window.screen.width,h=window.screen.height,window.navigator.userAgent.indexOf("MSIE")>
847-1?(f=i-l/2,g=s-h/2):window.navigator.userAgent.indexOf("Edge")>-1?(f=i-l,g=s-h):(f=i+l/2-o/2,g=window.screen.height/2-r/2),window.open("https://www.facebook.com/dialog/oauth?client_id="+this.facebook.appId+"&redirect_uri="+encodeURIComponent(t)+"&auth_type=rerequest&scope=email&state="+e+"&display=popup","","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width="+o+",height="+r+", top="+g+", left="+f),/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent)?window.addEventListener("storage",n.receivedAccessTokenMobileDevice,!1):window.addEventListener("message",n.receivedAccessToken,!1)},receivedAccessTokenMobileDevice(e){var t=this;e.key===cs.GOFUNDRAISE_OAUTH_TOKEN&&e.newValue&&t.receivedAccessToken({data:JSON.parse(e.newValue)})},receivedAccessToken(e){this.$gfLogger.logInfo("receivedAccessToken(), event: ",e);var t=this;if(e.data&&e.data.provider&&e.data.provider==="facebook"&&e.data.data&&e.data.data.hasOwnProperty("token"))if(window.removeEventListener("message",t.receivedAccessToken),window.removeEventListener("storage",t.receivedAccessTokenMobileDevice),localStorage.removeItem(cs.GOFUNDRAISE_OAUTH_TOKEN),e.data.data.error!=null&&e.data.data.error!==""){this.$emit("tokenError",e.data.data.error);return}else t.accesTokenFacebook=e.data.data.token,t.submitFaceBookAccount()}}},CB=e=>(a.pushScopeId("data-v-70014a6e"),e=e(),a.popScopeId(),e),xB={class:"col-12"},AB={class:"row"},TB=a.createStaticVNode('<div class="col-12" data-v-70014a6e><div class="using-fb" data-v-70014a6e><div class="hr-p" data-v-70014a6e></div><div class="text-us" data-v-70014a6e><h3 class="text-center login-using-fb" data-v-70014a6e>Or login with</h3></div><div class="hr-p" data-v-70014a6e></div></div></div>',1),IB={class:"col-md-8 m-auto"},kB=[CB(()=>a.createElementVNode("p",{class:"d-inline align-middle"},"Facebook",-1))];function PB(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",xB,[a.createElementVNode("div",AB,[TB,a.createElementVNode("div",IB,[a.createElementVNode("button",{type:"button",class:"btn btn-login-facebook btn-block mt-3 mb-4",onClick:t[0]||(t[0]=(...s)=>i.processFacebookLogin&&i.processFacebookLogin(...s))},kB)])])])}const Nb=Ft(SB,[["render",PB],["__scopeId","data-v-70014a6e"]]),NB={props:{userEmail:{type:String,default:""},returnUrl:{type:String,default:""},providerDetails:{type:Object,default:function(){return{}}}}};var DB="Logging",FB=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_s=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},ws=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Db={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5},ui;(function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE"})(ui||(ui={}));var vr=function(){function e(t,n){n===void 0&&(n=ui.WARN),this.name=t,this.level=n,this._pluggables=[]}return e.prototype._padding=function(t){return t<10?"0"+t:""+t},e.prototype._ts=function(){var t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()},e.prototype.configure=function(t){return t?(this._config=t,this._config):this._config},e.prototype._log=function(t){for(var n,r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var s=this.level;e.LOG_LEVEL&&(s=e.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(s=window.LOG_LEVEL);var l=Db[s],h=Db[t];if(h>=l){var f=console.log.bind(console);
847t===ui.ERROR&&console.error&&(f=console.error.bind(console)),t===ui.WARN&&console.warn&&(f=console.warn.bind(console));var g="[".concat(t,"] ").concat(this._ts()," ").concat(this.name),w="";if(o.length===1&&typeof o[0]=="string")w="".concat(g," - ").concat(o[0]),f(w);else if(o.length===1)w="".concat(g," ").concat(o[0]),f(g,o[0]);else if(typeof o[0]=="string"){var E=o.slice(1);E.length===1&&(E=E[0]),w="".concat(g," - ").concat(o[0]," ").concat(E),f("".concat(g," - ").concat(o[0]),E)}else w="".concat(g," ").concat(o),f(g,o);try{for(var C=FB(this._pluggables),A=C.next();!A.done;A=C.next()){var k=A.value,U={message:w,timestamp:Date.now()};k.pushLogs([U])}}catch(N){n={error:N}}finally{try{A&&!A.done&&(r=C.return)&&r.call(C)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._log.apply(this,ws([ui.INFO],_s(t),!1))},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._log.apply(this,ws([ui.INFO],_s(t),!1))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._log.apply(this,ws([ui.WARN],_s(t),!1))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._log.apply(this,ws([ui.ERROR],_s(t),!1))},e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._log.apply(this,ws([ui.DEBUG],_s(t),!1))},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._log.apply(this,ws([ui.VERBOSE],_s(t),!1))},e.prototype.addPluggable=function(t){t&&t.getCategoryName()===DB&&(this._pluggables.push(t),t.configure(this._config))},e.prototype.listPluggables=function(){return this._pluggables},e.LOG_LEVEL=null,e}(),RB=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},zg=new vr("Amplify"),BB=function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Notifications=null,this.Logger=vr,this.ServiceWorker=null}return e.prototype.register=function(t){zg.debug("component registered in amplify",t),this._components.push(t),typeof t.getModuleName=="function"?(this._modules[t.getModuleName()]=t,this[t.getModuleName()]=t):zg.debug("no getModuleName method for component",t),t.configure(this._config)},e.prototype.configure=function(t){var n=this;return t?(this._config=Object.assign(this._config,t),zg.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(r){var o=RB(r,2);o[0];var i=o[1];
847Object.keys(i).forEach(function(s){n._modules[s]&&(i[s]=n._modules[s])})}),this._components.map(function(r){r.configure(n._config)}),this._config):this._config},e.prototype.addPluggable=function(t){t&&t.getCategory&&typeof t.getCategory=="function"&&this._components.map(function(n){n.addPluggable&&typeof n.addPluggable=="function"&&n.addPluggable(t)})},e}(),bs=new BB,bn;(function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"})(bn||(bn={}));var Hg;(function(e){e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"})(Hg||(Hg={}));var Fb;(function(e){e.Record="1",e.UpdateEndpoint="2"})(Fb||(Fb={}));var Rb;(function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"})(Rb||(Rb={}));var Gg;(function(e){e.FederatedSignIn="30"})(Gg||(Gg={}));var Bb;(function(e){e.Subscribe="1",e.GraphQl="2"})(Bb||(Bb={}));var Ob;(function(e){e.None="0"})(Ob||(Ob={}));var Ub;(function(e){e.None="0"})(Ub||(Ub={}));var $b;(function(e){e.None="0"})($b||($b={}));var Mb;(function(e){e.Convert="1",e.Identify="2",e.Interpret="3"})(Mb||(Mb={}));var Lb;(function(e){e.Subscribe="1"})(Lb||(Lb={}));var Vb;(function(e){e.None="0"})(Vb||(Vb={}));var jb;(function(e){e.Put="1",e.Get="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6"})(jb||(jb={}));var zb="5.3.11",pf=function(){return typeof global<"u"},Es=function(){return typeof window<"u"},Hb=function(){return typeof document<"u"},Wg=function(){return typeof process<"u"},ic=function(e,t){return!!Object.keys(e).find(function(n){return n.startsWith(t)})};function OB(){var e=function(r){return r.startsWith("_react")||r.startsWith("__react")},t=function(r){return Object.keys(r).find(e)},n=function(){return Array.from(document.querySelectorAll("[id]"))};return Hb()&&n().some(t)}function UB(){return Wg()&&typeof{}<"u"&&!!Object.keys({}).find(function(e){return e.includes("react")})}function $B(){return Es()&&ic(window,"__VUE")}function MB(){return pf()&&ic(global,"__VUE")}function LB(){return Es()&&ic(window,"__SVELTE")}function VB(){return Wg()&&typeof{}<"u"&&!!Object.keys({}).find(function(e){return e.includes("svelte")})}function jB(){return Es()&&window.next&&typeof window.next=="object"}function zB(){return pf()&&(ic(global,"__next")||ic(global,"__NEXT"))}function HB(){return Es()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function GB(){return pf()&&typeof global.__NUXT_PATHS__<"u"}function WB(){var e=!!(Hb()&&document.querySelector("[ng-version]")),t=!!(Es()&&typeof window.ng<"u");return e||t}function qB(){var e;return Wg()&&typeof{}=="object"&&((e={}.npm_lifecycle_script)===null||e===void 0?void 0:e.startsWith("ng "))||!1}function KB(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function YB(){return pf()&&typeof global.expo<"u"}function JB(){return Es()}var XB=[{platform:bn.Expo,detectionMethod:YB},{platform:bn.ReactNative,detectionMethod:KB},{platform:bn.NextJs,detectionMethod:jB},{platform:bn.Nuxt,detectionMethod:HB},{platform:bn.Angular,detectionMethod:WB},{platform:bn.React,detectionMethod:OB},{platform:bn.VueJs,detectionMethod:$B},{platform:bn.Svelte,detectionMethod:LB},{platform:bn.WebUnknown,detectionMethod:JB},{platform:bn.NextJsSSR,detectionMethod:zB},{platform:bn.NuxtSSR,detectionMethod:GB},{platform:bn.ReactSSR,detectionMethod:UB},{platform:bn.VueJsSSR,detectionMethod:MB},{platform:bn.AngularSSR,detectionMethod:qB},{platform:bn.SvelteSSR,detectionMethod:VB}];function ZB(){var e;return((e=XB.find(function(t){return t.detectionMethod()}))===null||e===void 0?void 0:e.platform)||bn.ServerSideUnknown}var oc,gf=[],mf=!1,QB=10,eO=10,tO=1e3,qg=function(){if(!oc){if(oc=ZB(),mf)for(;gf.length;)gf.pop()();else gf.forEach(function(e){return e()});Wb(bn.ServerSideUnknown,QB),Wb(bn.WebUnknown,eO)}return oc},Gb=function(e){mf||gf.push(e)};function nO(){oc=void 0}function Wb(e,t){oc===e&&!mf&&setTimeout(function(){nO(),mf=!0,setTimeout(qg,tO)},t)}var rO=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},qb="aws-amplify",iO=function(){function e(){this.userAgent="".concat(qb,"/").concat(zb)}return Object.defineProperty(e.prototype,"framework",{get:function(){return qg()}
847,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReactNative",{get:function(){return this.framework===bn.ReactNative||this.framework===bn.Expo},enumerable:!1,configurable:!0}),e.prototype.observeFrameworkChanges=function(t){Gb(t)},e}(),Kg=new iO,oO=function(e){var t=e===void 0?{}:e,n=t.category,r=t.action;t.framework;var o=[[qb,zb]];return n&&o.push([n,r]),o.push(["framework",qg()]),o},Yg=function(e){var t=oO(e),n=t.map(function(r){var o=rO(r,2),i=o[0],s=o[1];return"".concat(i,"/").concat(s)}).join(" ");return n},ac=globalThis&&globalThis.__assign||function(){return ac=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ac.apply(this,arguments)},Jg=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},Kb=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},to=new vr("Hub"),aO=typeof Symbol<"u"&&typeof Symbol.for=="function"?Symbol.for("amplify_default"):"@@amplify_default";function sO(e){return e.onHubCapsule!==void 0}var uO=function(){function e(t){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=t}return e.prototype._remove=function(t,n){if(t instanceof RegExp){var r=this.patterns.find(function(i){var s=i.pattern;return s.source===t.source});if(!r){to.warn("No listeners for ".concat(t));return}this.patterns=Kb([],Jg(this.patterns.filter(function(i){return i!==r})),!1)}else{var o=this.listeners[t];if(!o){to.warn("No listeners for ".concat(t));return}this.listeners[t]=Kb([],Jg(o.filter(function(i){var s=i.callback;return s!==n})),!1)}},e.prototype.remove=function(t,n){this._remove(t,n)},e.prototype.dispatch=function(t,n,r,o){if(r===void 0&&(r=""),this.protectedChannels.indexOf(t)>-1){var i=o===aO;i||to.warn("WARNING: ".concat(t," is protected and dispatching on it can have unintended consequences"))}var s={channel:t,payload:ac({},n),source:r,patternInfo:[]};try{this._toListeners(s)}catch(l){to.error(l)}},e.prototype.listen=function(t,n,r){var o=this;r===void 0&&(r="noname");var i;if(sO(n))to.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),i=n.onHubCapsule.bind(n);else{if(typeof n!="function")throw new Error("No callback supplied to Hub");i=n}if(t instanceof RegExp)this.patterns.push({pattern:t,callback:i});else{var s=this.listeners[t];s||(s=[],this.listeners[t]=s),s.push({name:r,callback:i})}return function(){o._remove(t,i)}},e.prototype._toListeners=function(t){var n=t.channel,r=t.payload,o=this.listeners[n];if(o&&o.forEach(function(s){to.debug("Dispatching to ".concat(n," with "),r);try{s.callback(t)}catch(l){to.error(l)}}),this.patterns.length>0){if(!r.message){to.warn("Cannot perform pattern matching without a message 
847key");return}var i=r.message;this.patterns.forEach(function(s){var l=i.match(s.pattern);if(l){var h=Jg(l),f=h.slice(1),g=ac(ac({},t),{patternInfo:f});try{s.callback(g)}catch(w){to.error(w)}}})}},e}(),ci=new uO("__default__"),yf=globalThis&&globalThis.__assign||function(){return yf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yf.apply(this,arguments)},cO=new vr("I18n"),Yb=function(){function e(t){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},t),this._lang=this._options.language,!this._lang&&typeof window<"u"&&window&&window.navigator&&(this._lang=window.navigator.language),cO.debug(this._lang)}return e.prototype.setLanguage=function(t){this._lang=t},e.prototype.get=function(t,n){if(n===void 0&&(n=void 0),!this._lang)return typeof n<"u"?n:t;var r=this._lang,o=this.getByLanguage(t,r);return o||(r.indexOf("-")>0&&(o=this.getByLanguage(t,r.split("-")[0])),o)?o:typeof n<"u"?n:t},e.prototype.getByLanguage=function(t,n,r){if(r===void 0&&(r=null),!n)return r;var o=this._dict[n];return o?o[t]:r},e.prototype.putVocabulariesForLanguage=function(t,n){var r=this._dict[t];r||(r=this._dict[t]={}),this._dict[t]=yf(yf({},r),n)},e.prototype.putVocabularies=function(t){var n=this;Object.keys(t).map(function(r){n.putVocabulariesForLanguage(r,t[r])})},e}(),Jb=new vr("I18n"),Ss=null,$o=null,Cs=function(){function e(){}return e.configure=function(t){return Jb.debug("configure I18n"),t&&(Ss=Object.assign({},Ss,t.I18n||t),e.createInstance()),Ss},e.getModuleName=function(){return"I18n"},e.createInstance=function(){Jb.debug("create I18n instance"),!$o&&($o=new Yb(Ss))},e.setLanguage=function(t){return e.checkConfig(),$o.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?$o.get(t,n):typeof n>"u"?t:n},e.putVocabulariesForLanguage=function(t,n){return e.checkConfig(),$o.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t){return e.checkConfig(),$o.putVocabularies(t)},e.checkConfig=function(){return $o||($o=new Yb(Ss)),!0},e}();bs.register(Cs);var lO=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then(function(i){return r=!0,t=!1,i},function(i){throw n=!0,t=!1,i});return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},no=function(){var e=typeof window<"u"&&typeof window.document<"u",t=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;return{isBrowser:e,isNode:t}},fO=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xb=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},Xg=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},dO=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},hO=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},vf=new vr("Util"),xa=function(e){fO(t,e);function t(n){var r=e.call(this,n)||this;return r.nonRetryable=!0,r}return t}(Error),pO=function(e){var t="nonRetryable";return e&&e[t]};function gO(e,t,n,r){return Xb(this,void 0,void 0,function(){var o=this;return Xg(this,function(i){if(typeof e!="function")throw Error("functionToRetry must be a function");return[2,new Promise(function(s,l){return Xb(o,void 0,void 0,function(){var h,f,g,w,E,C,A;return Xg(this,function(k){switch(k.label){case 0:h=0,f=!1,w=function(){},r&&r.then(function(){f=!0,clearTimeout(g),w()}),C=function(){var U,N,R,L;return Xg(this,function(z){switch(z.label){case 0:h++,vf.debug("".concat(e.name," attempt #").concat(h," with this vars: ").concat(JSON.stringify(t))),z.label=1;
847case 1:return z.trys.push([1,3,,7]),U={},N=s,[4,e.apply(void 0,hO([],dO(t),!1))];case 2:return[2,(U.value=N.apply(void 0,[z.sent()]),U)];case 3:return R=z.sent(),E=R,vf.debug("error on ".concat(e.name),R),pO(R)?(vf.debug("".concat(e.name," non retryable error"),R),[2,{value:l(R)}]):(L=n(h,t,R),vf.debug("".concat(e.name," retrying in ").concat(L," ms")),L===!1||f?[2,{value:l(R)}]:[3,4]);case 4:return[4,new Promise(function(W){w=W,g=setTimeout(w,L)})];case 5:z.sent(),z.label=6;case 6:return[3,7];case 7:return[2]}})},k.label=1;case 1:return f?[3,3]:[5,C()];case 2:return A=k.sent(),typeof A=="object"?[2,A.value]:[3,1];case 3:return l(E),[2]}})})})]})})}var Zb=5*60*1e3;function Qb(e){e===void 0&&(e=Zb);var t=100,n=100;return function(r){var o=Math.pow(2,r)*t+n*Math.random();return o>e?!1:o}}var mO=function(e,t,n,r){return n===void 0&&(n=Zb),gO(e,t,Qb(n),r)};function yO(e){return e.split("").map(function(t){return t.charCodeAt(0).toString(16).padStart(2,"0")}).join("")}function vO(e){return e.match(/.{2}/g).map(function(t){return String.fromCharCode(parseInt(t,16))}).join("")}var Aa={};/*! *****************************************************************************
848    Copyright (c) Microsoft Corporation.
849
850    Permission to use, copy, modify, and/or distribute this software for any
851    purpose with or without fee is hereby granted.
852
853    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
854    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
855    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
856    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
857    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
858    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
859    PERFORMANCE OF THIS SOFTWARE.
860    ***************************************************************************** */var Zg=function(e,t){return Zg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},Zg(e,t)};function _O(e,t){Zg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Qg=function(){return Qg=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Qg.apply(this,arguments)};function wO(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function bO(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function EO(e,t){return function(n,r){t(n,r,e)}}function SO(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function CO(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})}function xO(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function AO(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}function TO(e,t){for(var n in e)n!=="default"&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function em(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 3,007 bytes, line 860
860if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function e4(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function IO(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(e4(arguments[t]));return e}function kO(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,o++)r[o]=i[s];return r}function sc(e){return this instanceof sc?(this.v=e,this):new sc(e)}function PO(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(E){r[E]&&(o[E]=function(C){return new Promise(function(A,k){i.push([E,C,A,k])>1||l(E,C)})})}function l(E,C){try{h(r[E](C))}catch(A){w(i[0][3],A)}}function h(E){E.value instanceof sc?Promise.resolve(E.value.v).then(f,g):w(i[0][2],E)}function f(E){l("next",E)}function g(E){l("throw",E)}function w(E,C){E(C),i.shift(),i.length&&l(i[0][0],i[0][1])}}function NO(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(s){return(n=!n)?{value:sc(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function DO(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof em=="function"?em(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(l,h){s=e[i](s),o(l,h,s.done,s.value)})}}function o(i,s,l,h){Promise.resolve(h).then(function(f){i({value:f,done:l})},s)}}function FO(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function RO(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function BO(e){return e&&e.__esModule?e:{default:e}}function OO(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function UO(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}const t4=Vl(Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Qg},__asyncDelegator:NO,__asyncGenerator:PO,__asyncValues:DO,__await:sc,__awaiter:CO,__classPrivateFieldGet:OO,__classPrivateFieldSet:UO,__createBinding:AO,__decorate:bO,__exportStar:TO,__extends:_O,__generator:xO,__importDefault:BO,__importStar:RO,__makeTemplateOb
vendor: 4,420 bytes, line 860
860ject:FO,__metadata:SO,__param:EO,__read:e4,__rest:wO,__spread:IO,__spreadArrays:kO,__values:em},Symbol.toStringTag,{value:"Module"})));var _f={},Pr={};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.MAX_HASHABLE_LENGTH=Pr.INIT=Pr.KEY=Pr.DIGEST_LENGTH=Pr.BLOCK_SIZE=void 0,Pr.BLOCK_SIZE=64,Pr.DIGEST_LENGTH=32,Pr.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Pr.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Pr.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1;var wf={};Object.defineProperty(wf,"__esModule",{value:!0}),wf.RawSha256=void 0;var jr=Pr,$O=function(){function e(){this.state=Int32Array.from(jr.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>jr.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===jr.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%jr.BLOCK_SIZE>=jr.BLOCK_SIZE-8){for(var o=this.bufferLength;o<jr.BLOCK_SIZE;o++)n.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<jr.BLOCK_SIZE-8;o++)n.setUint8(o,0);n.setUint32(jr.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),n.setUint32(jr.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(jr.DIGEST_LENGTH),o=0;o<8;o++)i[o*4]=this.state[o]>>>24&255,i[o*4+1]=this.state[o]>>>16&255,i[o*4+2]=this.state[o]>>>8&255,i[o*4+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,o=r[0],i=r[1],s=r[2],l=r[3],h=r[4],f=r[5],g=r[6],w=r[7],E=0;E<jr.BLOCK_SIZE;E++){if(E<16)this.temp[E]=(n[E*4]&255)<<24|(n[E*4+1]&255)<<16|(n[E*4+2]&255)<<8|n[E*4+3]&255;else{var C=this.temp[E-2],A=(C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10;C=this.temp[E-15];var k=(C>>>7|C<<25)^(C>>>18|C<<14)^C>>>3;this.temp[E]=(A+this.temp[E-7]|0)+(k+this.temp[E-16]|0)}var U=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&f^~h&g)|0)+(w+(jr.KEY[E]+this.temp[E]|0)|0)|0,N=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&i^o&s^i&s)|0;w=g,g=f,f=h,h=l+U|0,l=s,s=i,i=o,o=U+N|0}r[0]+=o,r[1]+=i,r[2]+=s,r[3]+=l,r[4]+=h,r[5]+=f,r[6]+=g,r[7]+=w},e}();wf.RawSha256=$O;var n4={},bf={},MO=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e.charCodeAt(n);if(o<128)t.push(o);else if(o<2048)t.push(o>>6|192,o&63|128);else if(n+1<e.length&&(o&64512)===55296&&(e.charCodeAt(n+1)&64512)===56320){var i=65536+((o&1023)<<10)+(e.charCodeAt(++n)&1023);t.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else t.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(t)},LO=function(e){for(var t="",n=0,r=e.length;n<r;n++){var o=e[n];if(o<128)t+=String.fromCharCode(o);else if(192<=o&&o<224){var i=e[++n];t+=String.fromCharCode((o&31)<<6|i&63)}else if(240<=o&&o<365){var s=[o,e[++n],e[++n],e[++n]],l="%"+s.map(function(h){return h.toString(16)}).join("%");t+=decodeURIComponent(l)}else t+=String.fromCharCode((o&15)<<12|(e[++n]&63)<<6|e[++n]&63)}return t};function VO(e){return new TextEncoder().encode(e)}function jO(e){return new TextDecoder("utf-8").decode(e)}var zO=function(e){return typeof TextEncoder=="function"?VO(e):MO(e)},HO=function(e){return typeof TextDecoder=="function"?jO(e):LO(e)};const GO=Vl(Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:zO,toUtf8:HO},Symbol.toStringTag,{value:"Module"})));
860Object.defineProperty(bf,"__esModule",{value:!0}),bf.convertToBuffer=void 0;var WO=GO,qO=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:WO.fromUtf8;function KO(e){return e instanceof Uint8Array?e:typeof e=="string"?qO(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}bf.convertToBuffer=KO;var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.isEmptyData=void 0;function YO(e){return typeof e=="string"?e.length===0:e.byteLength===0}Ef.isEmptyData=YO;var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.numToUint8=void 0;function JO(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}Sf.numToUint8=JO;var Cf={};Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.uint32ArrayFrom=void 0;function XO(e){if(!Array.from){for(var t=new Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n];return t}return Uint32Array.from(e)}Cf.uint32ArrayFrom=XO,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=bf;Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var n=Ef;Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return n.isEmptyData}});var r=Sf;Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var o=Cf;Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return o.uint32ArrayFrom}})}(n4),Object.defineProperty(_f,"__esModule",{value:!0}),_f.Sha256=void 0;var r4=t4,xf=Pr,tm=wf,nm=n4,ZO=function(){function e(t){if(this.hash=new tm.RawSha256,t){this.outer=new tm.RawSha256;var n=QO(t),r=new Uint8Array(xf.BLOCK_SIZE);r.set(n);for(var o=0;o<xf.BLOCK_SIZE;o++)n[o]^=54,r[o]^=92;this.hash.update(n),this.outer.update(r);for(var o=0;o<n.byteLength;o++)n[o]=0}}return e.prototype.update=function(t){if(!((0,nm.isEmptyData)(t)||this.error))try{this.hash.update((0,nm.convertToBuffer)(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,r4.__awaiter)(this,void 0,void 0,function(){return(0,r4.__generator)(this,function(t){return[2,this.digestSync()]})})},e}();_f.Sha256=ZO;function QO(e){var t=(0,nm.convertToBuffer)(e);if(t.byteLength>xf.BLOCK_SIZE){var n=new tm.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(xf.BLOCK_SIZE);return r.set(t),r}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=t4;(0,t.__exportStar)(_f,e)})(Aa);var Af=globalThis&&globalThis.__assign||function(){return Af=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Af.apply(this,arguments)},e8=new vr("Parser"),i4=function(e){var t={};if(e.aws_mobile_analytics_app_id){var n={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};t.Analytics=n}(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(t.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:e.aws_mandatory_sign_in==="enable",signUpVerificationMethod:e.aws_cognito_sign_up_verification_method||"code"});var r;return e.aws_user_files_s3_bucket?r={AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:r=e?e.Storage||e:{},e.Logging&&(t.Logging=Af(Af({},e.Logging),{region:e.aws_project_region})),e.geo&&(t.Geo=Object.assign({},e.geo),e.geo.amazon_location_service&&(t.Geo={AmazonLocationService:e.geo.amazon_location_service})),t.Analytics=Object.assign({},t.Analytics,e.Analytics),t.Auth=Object.assign({},t.Auth,e.Auth),t.Storage=Object.assign({},r),t.Logging=Object.assign({},t.Logging,e.Logging),e8.debug("parse config",e,"to amplifyconfig",t),t},t8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
860return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},n8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Mo=new vr("CognitoCredentials"),r8=new Promise(function(e,t){if(!no().isBrowser)return Mo.debug("not in the browser, directly resolved"),e();var n=window.gapi&&window.gapi.auth2?window.gapi.auth2:null;if(n)return Mo.debug("google api already loaded"),e();setTimeout(function(){return e()},2e3)}),i8=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){return t8(this,void 0,void 0,function(){return n8(this,function(t){switch(t.label){case 0:return this.initialized?[3,2]:(Mo.debug("need to wait for the Google SDK loaded"),[4,r8]);case 1:t.sent(),this.initialized=!0,Mo.debug("finish waiting"),t.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}})})},e.prototype._refreshGoogleTokenImpl=function(){var t=null;return no().isBrowser&&(t=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),t?new Promise(function(n,r){t.getAuthInstance().then(function(o){o||(Mo.debug("google Auth undefined"),r(new xa("google Auth undefined")));var i=o.currentUser.get();i.isSignedIn()?(Mo.debug("refreshing the google access token"),i.reloadAuthResponse().then(function(s){var l=s.id_token,h=s.expires_at;n({token:l,expires_at:h})}).catch(function(s){s&&s.error==="network_error"?r("Network error reloading google auth response"):r(new xa("Failed to reload google auth response"))})):r(new xa("User is not signed in with Google"))}).catch(function(o){Mo.debug("Failed to refresh google token",o),r(new xa("Failed to refresh google token"))})}):(Mo.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),o8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},a8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Ta=new vr("CognitoCredentials"),s8=new Promise(function(e,t){if(!no().isBrowser)return Ta.debug("not in the browser, directly resolved"),e();var n=window.FB;if(n)return Ta.debug("FB SDK already loaded"),e();setTimeout(function(){return e()},2e3)}),u8=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){return o8(this,void 0,void 0,function(){return a8(this,function(t){switch(t.label){case 0:return this.initialized?[3,2]:(Ta.debug("need to wait for the Facebook SDK loaded"),[4,s8]);case 1:t.sent(),this.initialized=!0,Ta.debug("finish waiting"),t.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}})})},e.prototype._refreshFacebookTokenImpl=function(){var t=null;if(no().isBrowser&&(t=window.FB),!t){var n="no fb sdk available";return Ta.debug(n),Promise.reject(new xa(n))}return new Promise(function(r,o){t.getLoginStatus(function(i){if(!i||!i.authResponse){var s="no response from facebook when refreshing the jwt token";Ta.debug(s),o(new xa(s))}
860else{var l=i.authResponse,h=l.accessToken,f=l.expiresIn,g=new Date,w=f*1e3+g.getTime();if(!h){var s="the jwtToken is undefined";Ta.debug(s),o(new xa(s))}r({token:h,expires_at:w})}},{scope:"public_profile,email"})})},e}(),c8=new i8,l8=new u8,Ia={},f8=function(){function e(){}return e.setItem=function(t,n){return Ia[t]=n,Ia[t]},e.getItem=function(t){return Object.prototype.hasOwnProperty.call(Ia,t)?Ia[t]:void 0},e.removeItem=function(t){return delete Ia[t]},e.clear=function(){return Ia={},Ia},e}(),o4=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch{this.storageWindow=f8}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),a4={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},d8={partitions:[a4,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},h8=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p8=function(e){var t,n,r=d8.partitions;try{for(var o=h8(r),i=o.next();!i.done;i=o.next()){var s=i.value,l=s.regions,h=s.outputs,f=s.regionRegex,g=new RegExp(f);if(l.includes(e)||g.test(e))return h.dnsSuffix}}catch(w){t={error:w}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a4.outputs.dnsSuffix};function g8(e,t){return t=t||{},new Promise(function(n,r){var o=new XMLHttpRequest,i=[],s=[],l={},h=function(){return{ok:(o.status/100|0)==2,statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:h,headers:{keys:function(){return i},entries:function(){return s},get:function(g){return l[g.toLowerCase()]},has:function(g){return g.toLowerCase()in l}}}};for(var f in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(g,w,E){i.push(w=w.toLowerCase()),s.push([w,E]),l[w]=l[w]?l[w]+","+E:E}),n(h())},o.onerror=r,o.withCredentials=t.credentials=="include",t.headers)o.setRequestHeader(f,t.headers[f]);o.send(t.body||null)})}const s4=Vl(Object.freeze(Object.defineProperty({__proto__:null,default:g8},Symbol.toStringTag,{value:"Module"})));self.fetch||(self.fetch=s4.default||s4);var rm=function(e){var t;return function(){return t||(t=e()),t}},Tf=globalThis&&globalThis.__assign||function(){return Tf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Tf.apply(this,arguments)},m8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},y8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},v8=function(e){return!["HEAD","GET","DELETE"].includes(e.toUpperCase())},_8=function(e,t){var n=e.url,r=e.method,o=e.headers,i=e.body,s=t.abortSignal;return m8(void 0,void 0,void 0,function(){var l,h,f,g,w,E,C;return y8(this,function(A){switch(A.label){case 0:return A.trys.push([0,2,,3]),[4,fetch(n,{method:r,headers:o,body:v8(r)?i:void 0,signal:s})];case 1:return l=A.sent(),[3,3];case 2:throw h=A.sent(),h instanceof TypeError?new Error("Network error"):h;case 3:return f={}
860,(E=l.headers)===null||E===void 0||E.forEach(function(k,U){f[U.toLowerCase()]=k}),g={statusCode:l.status,headers:f,body:null},w=Object.assign((C=l.body)!==null&&C!==void 0?C:{},{text:rm(function(){return l.text()}),blob:rm(function(){return l.blob()}),json:rm(function(){return l.json()})}),[2,Tf(Tf({},g),{body:w})]}})})},If=globalThis&&globalThis.__assign||function(){return If=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},If.apply(this,arguments)},w8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},b8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},E8=3,S8=function(e){var t=e.maxAttempts,n=t===void 0?E8:t,r=e.retryDecider,o=e.computeDelay,i=e.abortSignal;if(n<1)throw new Error("maxAttempts must be greater than 0");return function(s,l){return function(f){var g;return w8(this,void 0,void 0,function(){var w,E,C,A,k,U;return b8(this,function(N){switch(N.label){case 0:E=(g=l.attemptsCount)!==null&&g!==void 0?g:0,A=function(){if(C)return u4(C,E),C;throw u4(w,E),w},N.label=1;case 1:if(!(!(i!=null&&i.aborted)&&E<n))return[3,11];N.label=2;case 2:return N.trys.push([2,4,,5]),[4,s(f)];case 3:return C=N.sent(),w=void 0,[3,5];case 4:return k=N.sent(),w=k,C=void 0,[3,5];case 5:return E=l.attemptsCount>E?l.attemptsCount:E+1,l.attemptsCount=E,[4,r(C,w)];case 6:return N.sent()?!(i!=null&&i.aborted)&&E<n?(U=o(E),[4,C8(U,i)]):[3,8]:[3,9];case 7:N.sent(),N.label=8;case 8:return[3,1];case 9:return[2,A()];case 10:return[3,1];case 11:if(i!=null&&i.aborted)throw new Error("Request aborted.");return[2,A()]}})})}}},C8=function(e,t){if(t!=null&&t.aborted)return Promise.resolve();var n,r,o=new Promise(function(i){r=i,n=setTimeout(i,e)});return t==null||t.addEventListener("abort",function i(s){clearTimeout(n),t==null||t.removeEventListener("abort",i),r()}),o},u4=function(e,t){var n;Object.prototype.toString.call(e)==="[object Object]"&&(e.$metadata=If(If({},(n=e.$metadata)!==null&&n!==void 0?n:{}),{attempts:t}))},c4=5*60*1e3,x8=function(e){var t=Qb(c4),n=t(e);return n===!1?c4:n},A8=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],T8=function(e){return A8.includes(e)},I8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},k8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},P8=function(e){return function(t,n){return I8(void 0,void 0,void 0,function(){var r,o,i,s;return k8(this,function(l){switch(l.label){case 0:return n==null?[3,1]:(o=n,[3,3]);case 1:return[4,e(t)];case 2:o=l.sent(),l.label=3;case 3:return r=((s=o)!==null&&s!==void 0?s:{}).name,i=t==null?void 0:t.statusCode,[2,R8(n)||F8(i,r)||T8(r)||B8(i,r)]}})})}},N8=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],D8=["TimeoutError","RequestTimeout","RequestTimeoutException"],F8=function(e,t){return e===429||N8.includes(t)},R8=function(e){return(e==null?void 0:e.name)==="Network error"},B8=function(e,t){return[500,502,503,504].includes(e)||D8.includes(t)},O8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
860return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},U8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},$8=function(e){var t=e.userAgentHeader,n=t===void 0?"x-amz-user-agent":t,r=e.userAgentValue,o=r===void 0?"":r;return function(i){return function(l){return O8(this,void 0,void 0,function(){var h,f,g;return U8(this,function(w){switch(w.label){case 0:return o.trim().length!==0?[3,2]:[4,i(l)];case 1:return h=w.sent(),[2,h];case 2:return f=n.toLowerCase(),l.headers[f]=l.headers[f]?"".concat(l.headers[f]," ").concat(o):o,[4,i(l)];case 3:return g=w.sent(),[2,g]}})})}}},l4=function(e,t){return function(n,r){for(var o={},i=function(f){return e(f,r)},s=t.length-1;s>=0;s--){var l=t[s],h=l(r);i=h(i,o)}return i(n)}},M8=l4(_8,[$8,S8]),kf=globalThis&&globalThis.__assign||function(){return kf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},kf.apply(this,arguments)},Pf=function(e){var t,n,r=e.headers,o=e.statusCode;return kf(kf({},L8(e)?e.$metadata:{}),{httpStatusCode:o,requestId:(n=(t=r["x-amzn-requestid"])!==null&&t!==void 0?t:r["x-amzn-request-id"])!==null&&n!==void 0?n:r["x-amz-request-id"],extendedRequestId:r["x-amz-id-2"],cfId:r["x-amz-cf-id"]})},L8=function(e){return typeof(e==null?void 0:e.$metadata)=="object"},f4=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},d4=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},V8=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},im=function(e){return f4(void 0,void 0,void 0,function(){var t,n,r,o,i,s,l,h,f,g;return d4(this,function(w){switch(w.label){case 0:return!e||e.statusCode<300?[2]:[4,om(e)];case 1:return t=w.sent(),n=function(E){var C=V8(E.toString().split(/[\,\:]+/),1),A=C[0];return A.includes("#")?A.split("#")[1]:A},r=n((h=(l=(s=e.headers["x-amzn-errortype"])!==null&&s!==void 0?s:t.code)!==null&&l!==void 0?l:t.__type)!==null&&h!==void 0?h:"UnknownError"),o=(g=(f=t.message)!==null&&f!==void 0?f:t.Message)!==null&&g!==void 0?g:"Unknown error",i=new Error(o),[2,Object.assign(i,{name:r,$metadata:Pf(e)})]}})})},om=function(e){return f4(void 0,void 0,void 0,function(){var t;return d4(this,function(n){switch(n.label){case 0:if(!e.body)throw new Error("Missing response payload");return[4,e.body.json()];case 1:return t=n.sent(),[2,Object.assign(t,{$metadata:Pf(e)})]}})})},j8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
860return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},z8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},H8="cognito-identity",G8=function(e){var t=e.region;return{url:new URL("https://cognito-identity.".concat(t,".").concat(p8(t)))}},W8=function(){return function(e,t){return function(r){return j8(this,void 0,void 0,function(){return z8(this,function(o){return r.headers["cache-control"]="no-store",[2,e(r)]})})}}},h4=l4(M8,[W8]),am={service:H8,endpointResolver:G8,retryDecider:P8(im),computeDelay:x8,userAgentValue:Yg()};Gb(function(){am.userAgentValue=Yg()});var p4=function(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.".concat(e)}},g4=function(e,t,n){var r=e.url;return{headers:t,url:r,body:n,method:"POST"}},uc=globalThis&&globalThis.__assign||function(){return uc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},uc.apply(this,arguments)},q8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},K8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},m4=function(e,t,n,r){return function(o,i){return q8(void 0,void 0,void 0,function(){var s,l,h,f;return K8(this,function(g){switch(g.label){case 0:return s=uc(uc({},r),o),[4,s.endpointResolver(s,i)];case 1:return l=g.sent(),[4,t(i,l)];case 2:return h=g.sent(),[4,e(h,uc({},s))];case 3:return f=g.sent(),[4,n(f)];case 4:return[2,g.sent()]}})})}},Y8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
860return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},J8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},X8=function(e,t){var n=p4("GetId"),r=JSON.stringify(e);return g4(t,n,r)},Z8=function(e){return Y8(void 0,void 0,void 0,function(){var t,n;return J8(this,function(r){switch(r.label){case 0:return e.statusCode>=300?[4,im(e)]:[3,2];case 1:throw t=r.sent(),t;case 2:return[4,om(e)];case 3:return n=r.sent(),[2,{IdentityId:n.IdentityId,$metadata:Pf(e)}]}})})},Nf=m4(h4,X8,Z8,am),Q8=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},eU=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},tU=function(e,t){var n=p4("GetCredentialsForIdentity"),r=JSON.stringify(e);return g4(t,n,r)},nU=function(e){return Q8(void 0,void 0,void 0,function(){var t,n;return eU(this,function(r){switch(r.label){case 0:return e.statusCode>=300?[4,im(e)]:[3,2];case 1:throw t=r.sent(),t;case 2:return[4,om(e)];case 3:return n=r.sent(),[2,{IdentityId:n.IdentityId,Credentials:rU(n.Credentials),$metadata:Pf(e)}]}})})},rU=function(e){return e===void 0&&(e={}),{AccessKeyId:e.AccessKeyId,SecretKey:e.SecretKey,SessionToken:e.SessionToken,Expiration:new Date(e.Expiration*1e3)}},Df=m4(h4,tU,nU,am),Ff=globalThis&&globalThis.__assign||function(){return Ff=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ff.apply(this,arguments)},Xn=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
860return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})},Zn=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(n=0)),n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},It=new vr("Credentials"),iU=50*60*1e3,oU="CognitoIdentityId-",aU=typeof Symbol<"u"&&typeof Symbol.for=="function"?Symbol.for("amplify_default"):"@@amplify_default",sU=function(e,t,n){ci.dispatch("core",{event:e,data:t,message:n},"Credentials",aU)},uU=function(){function e(t){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(t),this._refreshHandlers.google=c8.refreshGoogleToken,this._refreshHandlers.facebook=l8.refreshFacebookToken}return e.prototype.getModuleName=function(){return"Credentials"},e.prototype.getCredSource=function(){return this._credentials_source},e.prototype.configure=function(t){if(!t)return this._config||{};this._config=Object.assign({},this._config,t);var n=this._config.refreshHandlers;return n&&(this._refreshHandlers=Ff(Ff({},this._refreshHandlers),n)),this._storage=this._config.storage,this._storage||(this._storage=new o4().getStorage()),this._storageSync=Promise.resolve(),typeof this._storage.sync=="function"&&(this._storageSync=this._storage.sync()),sU("credentials_configured",null,"Credentials has been configured successfully"),this._config},e.prototype.get=function(){return It.debug("getting credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKey=function(t){return"".concat(oU).concat(t)},e.prototype._pickupCredentials=function(){return It.debug("picking up credentials"),!this._gettingCredPromise||!this._gettingCredPromise.isPending()?(It.debug("getting new cred promise"),this._gettingCredPromise=lO(this._keepAlive())):It.debug("getting old cred promise"),this._gettingCredPromise},e.prototype._keepAlive=function(){return Xn(this,void 0,void 0,function(){var t,n,r,o,i,s,l,h;return Zn(this,function(f){switch(f.label){case 0:if(It.debug("checking if credentials exists and not expired"),t=this._credentials,t&&!this._isExpired(t)&&!this._isPastTTL())return It.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(t)];if(It.debug("need to get a new credential or refresh the existing one"),n=this.Auth,r=n===void 0?bs.Auth:n,!r||typeof r.currentUserCredentials!="function")return[2,this._setCredentialsForGuest()];if(!(!this._isExpired(t)&&this._isPastTTL()))return[3,6];It.debug("ttl has passed but token is not yet expired"),f.label=1;case 1:return f.trys.push([1,5,,6]),[4,r.currentUserPoolUser()];case 2:return o=f.sent(),[4,r.currentSession()];case 3:return i=f.sent(),s=i.refreshToken,l=new Promise(function(g,w){o.refreshSession(s,function(E,C){return E?w(E):g(C)})}),[4,l];case 4:return f.sent(),[3,6];case 5:return h=f.sent(),It.debug("Error attempting to refreshing the session",h),[3,6];case 6:return[2,r.currentUserCredentials()]}})})},e.prototype.refreshFederatedToken=function(t){It.debug("Getting federated credentials");var n=t.provider,r=t.user,o=t.token,i=t.identity_id,s=t.expires_at;s=new Date(s).getFullYear()===1970?s*1e3:s;var l=this;return It.debug("checking if federated jwt token expired"),s>new Date().getTime()?(It.debug("token not expired"),this._setCredentialsFromFederation({provider:n,token:o,user:r,identity_id:i,expires_at:s})):l._refreshHandlers[n]&&typeof l._refreshHandlers[n]=="function"?(It.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:l._refreshHandlers[n],provider:n,user:r})):(It.debug("no refresh handler for provider:",n),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(t){var n=this,r=t.refreshHandler,o=t.provider,i=t.user,s=10*1e3;return mO(r,[],s).then(function(l){return It.debug("refresh federated token sucessfully",l),n._setCredentialsFromFederation({provider:o,token:l.token,user:i,identity_id:l.identity_id,expires_at:l.expires_at})}).catch(function(l){var h=typeof l=="string"&&l.toLowerCase().lastIndexOf("network error",l.length)===0;return h||n.clear(),It.debug("refresh federated token failed",l),Promise.reject("refreshing federation token failed: "+l)})},e.prototype._isExpired=function(t){if(!t)return It.debug("no credentials for expiration check"),!0;It.debug("are these credentials expired?",t);var n=Date.now(),r=t.expiration;return r.getTime()<=n},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){var t;return Xn(this,void 0,void 0,function(){var n,r,o,i,s,l,h,f,g,w,E=this;return Zn(this,function(C){switch(C.label){case 0:return It.debug("setting credentials for guest"),!((t=this._config)===null||t===void 0)&&t.identityPoolId||(this._config=Object.assign({},this._config,i4(this._config||{}).Auth)),n=this._config,r=n.identityPoolId,o=n.region,i=n.mandatorySignIn,s=n.identityPoolRegion,i?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:r?!s&&!o?(It.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(h=this,[4,this._getGuestIdentityId()]):(It.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return l=h._identityId=C.sent(),f={region:s??o},g=function(){return Xn(E,void 0,void 0,function(){var A,k;return Zn(this,function(U){switch(U.label){case 0:return l?[3,2]:[4,Nf(f,{IdentityPoolId:r})];case 1:A=U.sent().IdentityId,this._identityId=A,U.label=2;case 2:return[4,Df(f,{IdentityId:this._identityId})];case 3:return k=U.sent().Credentials,[2,{identityId:this._identityId,accessKeyId:k.AccessKeyId,secretAccessKey:k.SecretKey,sessionToken:k.SessionToken,expiration:k.Expiration}]}})})},w=g().catch(function(A){return Xn(E,void 0,void 0,function(){return Zn(this,function(k){throw A})})}),[2,this._loadCredentials(w,"guest",!1,null).then(function(A){return A}).catch(function(A){return Xn(E,void 0,void 0,function(){var k,U=this;return Zn(this,function(N){switch(N.label){case 0:return A.name==="ResourceNotFoundException"&&A.message==="Identity '".concat(l,"' not found.")?(It.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]):[3,2];case 1:return N.sent(),k=function(){return Xn(U,void 0,void 0,function(){var R,L;return Zn(this,function(z){switch(z.label){case 0:return[4,Nf(f,{IdentityPoolId:r})];case 1:return R=z.sent().IdentityId,this._identityId=R,[4,Df(f,{IdentityId:R})];case 2:return L=z.sent().Credentials,[2,{identityId:R,accessKeyId:L.Acce
860ssKeyId,secretAccessKey:L.SecretKey,sessionToken:L.SessionToken,expiration:L.Expiration}]}})})},w=k().catch(function(R){return Xn(U,void 0,void 0,function(){return Zn(this,function(L){throw R})})}),[2,this._loadCredentials(w,"guest",!1,null)];case 2:return[2,A]}})})})]}})})},e.prototype._setCredentialsFromFederation=function(t){var n=this,r=t.provider,o=t.token,i=t.identity_id,s={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"},l=s[r]||r;if(!l)return Promise.reject("You must specify a federated provider");var h={};h[l]=o;var f=this._config,g=f.identityPoolId,w=f.region,E=f.identityPoolRegion;if(!g)return It.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!E&&!w)return It.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var C={region:E??w},A=function(){return Xn(n,void 0,void 0,function(){var U,N;return Zn(this,function(R){switch(R.label){case 0:return i?[3,2]:[4,Nf(C,{IdentityPoolId:g,Logins:h})];case 1:U=R.sent().IdentityId,i=U,R.label=2;case 2:return[4,Df(C,{IdentityId:i,Logins:h})];case 3:return N=R.sent().Credentials,[2,{identityId:i,accessKeyId:N.AccessKeyId,secretAccessKey:N.SecretKey,sessionToken:N.SessionToken,expiration:N.Expiration}]}})})},k=A().catch(function(U){return Xn(n,void 0,void 0,function(){return Zn(this,function(N){throw U})})});return this._loadCredentials(k,"federated",!0,t)},e.prototype._setCredentialsFromSession=function(t){var n=this;It.debug("set credentials from session");var r=t.getIdToken().getJwtToken(),o=this._config,i=o.region,s=o.userPoolId,l=o.identityPoolId,h=o.identityPoolRegion;if(!l)return It.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!h&&!i)return It.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var f="cognito-idp."+i+".amazonaws.com/"+s,g={};g[f]=r;var w={region:h??i},E=function(){return Xn(n,void 0,void 0,function(){var A,k,U,N,R,L,z,W,ee,b;return Zn(this,function(fe){switch(fe.label){case 0:return[4,this._getGuestIdentityId()];case 1:return A=fe.sent(),A?[3,3]:[4,Nf(w,{IdentityPoolId:l,Logins:g})];case 2:U=fe.sent().IdentityId,k=U,fe.label=3;case 3:return[4,Df(w,{IdentityId:A||k,Logins:g})];case 4:return N=fe.sent(),R=N.Credentials,L=R.AccessKeyId,z=R.Expiration,W=R.SecretKey,ee=R.SessionToken,b=N.IdentityId,this._identityId=b,A?(It.debug("The guest identity ".concat(A," has been successfully linked to the logins")),A===b&&It.debug("The guest identity ".concat(A," has become the primary identity")),[4,this._removeGuestIdentityId()]):[3,6];case 5:fe.sent(),fe.label=6;case 6:return[2,{accessKeyId:L,secretAccessKey:W,sessionToken:ee,expiration:z,identityId:b}]}})})},C=E().catch(function(A){return Xn(n,void 0,void 0,function(){return Zn(this,function(k){throw A})})});return this._loadCredentials(C,"userPool",!0,null)},e.prototype._loadCredentials=function(t,n,r,o){var i=this,s=this;return new Promise(function(l,h){t.then(function(f){return Xn(i,void 0,void 0,function(){var g,w,E,C,A;return Zn(this,function(k){switch(k.label){case 0:if(It.debug("Load credentials successfully",f),this._identityId&&!f.identityId&&(f.identityId=this._identityId),s._credentials=f,s._credentials.authenticated=r,s._credentials_source=n,s._nextCredentialsRefresh=new Date().getTime()+iU,n==="federated"){g=Object.assign({id:this._credentials.identityId},o.user),w=o.provider,E=o.token,C=o.expires_at,A=o.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:w,token:E,user:g,expires_at:C,identity_id:A}))}catch(U){It.debug("Failed to put federated info into auth storage",U)}}return n!=="guest"?[3,2]:[4,this._setGuestIdentityId(f.identityId)];case 1:k.sent(),k.label=2;case 2:return l(s._credentials),[2]}})})}).catch(function(f){if(f){It.debug("Failed to load credentials",t),It.debug("Error loading credentials",f),h(f);return}})})},e.prototype.set=function(t,n){return n==="session"?this._setCredentialsFromSession(t):n==="federation"?this._setCredentialsFromFederation(t):n==="guest"?this._setCredentialsForGuest():(It.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return Xn(this,void 0,void 0,function(){return Zn(this,function(t){return this._credentials=null,this._credentials_source=null,It.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},e.prototype._getGuestIdentityId=function(){return Xn(this,void 0,void 0,function(){var t,n;return Zn(this,function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(t))];case 3:return n=r.sent(),It.debug("Failed to get the cached guest identityId",n),[3,4];case 4:return[2]}})})},e.prototype._setGuestIdentityId=function(t){return Xn(this,void 0,void 0,function(){var n,r;return Zn(this,function(o){switch(o.label){case 0:n=this._config.identityPoolId,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._storageSync];case 2:return o.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(n),t),[3,4];case 3:return r=o.sent(),It.debug("Failed to cache guest identityId",r),[3,4];case 4:return[2]}})})},e.prototype._removeGuestIdentityId=function(){return Xn(this,void 0,void 0,function(){var t;return Zn(this,function(n){return t=this._config.identityPoolId,It.debug("removing ".concat(this._getCognitoIdentityIdStorageKey(t)," from storage")),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(t)),[2]})})},e.prototype.shear=function(t){return{accessKeyId:t.accessKeyId,sessionToken:t.sessionToken,secretAccessKey:t.secretAccessKey,identityId:t.
860identityId,authenticated:t.authenticated}},e}(),y4=new uU(null);bs.register(y4);/*!
861 * cookie
862 * Copyright(c) 2012-2014 Roman Shtylman
863 * Copyright(c) 2015 Douglas Christopher Wilson
864 * MIT Licensed
865 */var v4=fU,_4=dU,cU=decodeURIComponent,lU=encodeURIComponent,Rf=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function fU(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=e.split(";"),i=r.decode||cU,s=0;s<o.length;s++){var l=o[s],h=l.indexOf("=");if(!(h<0)){var f=l.substring(0,h).trim();if(n[f]==null){var g=l.substring(h+1,l.length).trim();g[0]==='"'&&(g=g.slice(1,-1)),n[f]=hU(g,i)}}}return n}function dU(e,t,n){var r=n||{},o=r.encode||lU;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!Rf.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!Rf.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(r.maxAge!=null){var l=r.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(l)}if(r.domain){if(!Rf.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Rf.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invali
865d");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var h=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(h){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function hU(e,t){try{return t(e)}catch{return e}}function pU(){return typeof document=="object"&&typeof document.cookie=="string"}function gU(e,t){return typeof e=="string"?v4(e,t):typeof e=="object"&&e!==null?e:{}}function mU(e,t){return typeof t>"u"&&(t=!e||e[0]!=="{"&&e[0]!=="["&&e[0]!=='"'),!t}function w4(e,t){t===void 0&&(t={});var n=yU(e);if(mU(n,t.doNotParse))try{return JSON.parse(n)}catch{}return e}function yU(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}var ka=globalThis&&globalThis.__assign||function(){return ka=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ka.apply(this,arguments)},vU=function(){function e(t,n){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=gU(t,n),new Promise(function(){r.HAS_DOCUMENT_COOKIE=pU()}).catch(function(){})}return e.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=v4(document.cookie,t))},e.prototype._emitChange=function(t){for(var n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)},e.prototype.get=function(t,n,r){return n===void 0&&(n={}),this._updateBrowserValues(r),w4(this.cookies[t],n)},e.prototype.getAll=function(t,n){t===void 0&&(t={}),this._updateBrowserValues(n);var r={};for(var o in this.cookies)r[o]=w4(this.cookies[o],t);return r},e.prototype.set=function(t,n,r){var o;typeof n=="object"&&(n=JSON.stringify(n)),this.cookies=ka(ka({},this.cookies),(o={},o[t]=n,o)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=_4(t,n,r)),this._emitChange({name:t,value:n,options:r})},e.prototype.remove=function(t,n){var r=n=ka(ka({},n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=ka({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=_4(t,"",r)),this._emitChange({name:t,value:void 0,options:n})},e.prototype.addChangeListener=function(t){this.changeListeners.push(t)},e.prototype.removeChangeListener=function(t){var n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1)},e}();const sm=vU;var Bf=globalThis&&globalThis.__assign||function(){return Bf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bf.apply(this,arguments)},b4=no().isBrowser,_U=365*24*60*60*1e3,wU=function(){function e(t){t===void 0&&(t={}),this.cookies=new sm,this.store=b4?window.localStorage:Object.create(null),this.cookies=t.req?new sm(decodeURIComponent(t.req.headers.cookie)):new sm,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!1,configurable:!0}),e.prototype.clear=function(){var t=this;Array.from(new Array(this.length)).map(function(n,r){return t.key(r)}).forEach(function(n){return t.removeItem(n)})},e.prototype.getItem=function(t){return this.getLocalItem(t)},e.prototype.getLocalItem=function(t){return Object.prototype.hasOwnProperty.call(this.store,t)?this.store[t]:null},e.prototype.getUniversalItem=function(t){return this.cookies.get(t)},e.prototype.key=function(t){return Object.keys(this.store)[t]},e.prototype.removeItem=function(t){this.removeLocalItem(t),this.removeUniversalItem(t)},e.prototype.removeLocalItem=function(t){delete this.store[t]},e.prototype.removeUniversalItem=function(t){this.cookies.remove(t,{path:"/"})},e.prototype.setItem=function(t,n){this.setLocalItem(t,n);var r=t.split(".").pop(),o=["LastAuthUser","accessToken","refreshToken","idToken"];o.includes(r??"")&&this.setUniversalItem(t,n,{expires:new Date(Date.now()+_U)})},e.prototype.setLocalItem=function(t,n){this.store[t]=n},e.prototype.setUniversalItem=function(t,n,r){r===void 0&&(r={}),this.cookies.set(t,n,Bf(Bf({},r),{path:"/",sameSite:!0,secure:!(b4&&window.location.hostname==="localhost")}))},e}(),bU="x-amz-user-agent";/*! *****************************************************************************
866    Copyright (c) Microsoft Corporation.
867
868    Permission to use, copy, modify, and/or distribute this software for any
869    purpose with or without fee is hereby granted.
870
871    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
872    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
873    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
874    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
875    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
876    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
877    PERFORMANCE OF THIS SOFTWARE.
878    ***************************************************************************** */var um=function(e,t){return um=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o])},um(e,t)};function E4(e,t){um(e,t);function n(){this.constructor=e}
878e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Vn=function(){return Vn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Vn.apply(this,arguments)};function zt(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})}function Ht(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(g){return h([f,g])}}function h(f){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,o=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){n.label=f[1];break}if(f[0]===6&&n.label<i[1]){n.label=i[1],i=f;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(f);break}i[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(g){f=[6,g],o=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function ro(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}var Of;(function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"})(Of||(Of={}));function cm(e){var t=["provider"];return e&&!!t.find(function(n){return e.hasOwnProperty(n)})}function EU(e){var t=["customProvider"];return e&&!!t.find(function(n){return e.hasOwnProperty(n)})}function SU(e){var t=["customState"];return e&&!!t.find(function(n){return e.hasOwnProperty(n)})}function Pa(e){return e.redirectSignIn!==void 0}var Jt;(function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError"})(Jt||(Jt={}));function CU(e){return!!e.username}var S4;(function(e){e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.OPENID_CONNECT="OPENID_CONNECT",e.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.AWS_LAMBDA="AWS_LAMBDA"})(S4||(S4={}));/*!
879 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
880 * SPDX-License-Identifier: Apache-2.0
881 */var C4=function(){function e(n){var r=n||{},o=r.ValidationData,i=r.Username,s=r.Password,l=r.AuthParameters,h=r.ClientMetadata;this.validationData=o||{},this.authParameters=l||{},this.clientMetadata=h||{},this.username=i,this.password=s}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),an={},cc={};cc.byteLength=TU,cc.toByteArray=kU,cc.fromByteArray=DU;for(var Ci=[],zr=[],xU=typeof Uint8Array<"u"?Uint8Array:Array,lm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xs=0,AU=lm.length;xs<AU;++xs)Ci[xs]=lm[xs],zr[lm.charCodeAt(xs)]=xs;zr["-".charCodeAt(0)]=62,zr["_".charCodeAt(0)]=63;function x4(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function TU(e){var t=x4(e),n=t[0],r=t[1];return(n+r)*3/4-r}
vendor: 20,676 bytes, lines 881-886
881function IU(e,t,n){return(t+n)*3/4-n}function kU(e){var t,n=x4(e),r=n[0],o=n[1],i=new xU(IU(e,r,o)),s=0,l=o>0?r-4:r,h;for(h=0;h<l;h+=4)t=zr[e.charCodeAt(h)]<<18|zr[e.charCodeAt(h+1)]<<12|zr[e.charCodeAt(h+2)]<<6|zr[e.charCodeAt(h+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=t&255;return o===2&&(t=zr[e.charCodeAt(h)]<<2|zr[e.charCodeAt(h+1)]>>4,i[s++]=t&255),o===1&&(t=zr[e.charCodeAt(h)]<<10|zr[e.charCodeAt(h+1)]<<4|zr[e.charCodeAt(h+2)]>>2,i[s++]=t>>8&255,i[s++]=t&255),i}function PU(e){return Ci[e>>18&63]+Ci[e>>12&63]+Ci[e>>6&63]+Ci[e&63]}function NU(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(PU(r));return o.join("")}function DU(e){for(var t,n=e.length,r=n%3,o=[],i=16383,s=0,l=n-r;s<l;s+=i)o.push(NU(e,s,s+i>l?l:s+i));return r===1?(t=e[n-1],o.push(Ci[t>>2]+Ci[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Ci[t>>10]+Ci[t>>4&63]+Ci[t<<2&63]+"=")),o.join("")}var Uf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Uf.read=function(e,t,n,r,o){var i,s,l=o*8-r-1,h=(1<<l)-1,f=h>>1,g=-7,w=n?o-1:0,E=n?-1:1,C=e[t+w];for(w+=E,i=C&(1<<-g)-1,C>>=-g,g+=l;g>0;i=i*256+e[t+w],w+=E,g-=8);for(s=i&(1<<-g)-1,i>>=-g,g+=r;g>0;s=s*256+e[t+w],w+=E,g-=8);if(i===0)i=1-f;else{if(i===h)return s?NaN:(C?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-f}return(C?-1:1)*s*Math.pow(2,i-r)},Uf.write=function(e,t,n,r,o,i){var s,l,h,f=i*8-o-1,g=(1<<f)-1,w=g>>1,E=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=r?0:i-1,A=r?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,s=g):(s=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+w>=1?t+=E/h:t+=E*Math.pow(2,1-w),t*h>=2&&(s++,h/=2),s+w>=g?(l=0,s=g):s+w>=1?(l=(t*h-1)*Math.pow(2,o),s=s+w):(l=t*Math.pow(2,w-1)*Math.pow(2,o),s=0));o>=8;e[n+C]=l&255,C+=A,l/=256,o-=8);for(s=s<<o|l,f+=o;f>0;e[n+C]=s&255,C+=A,s/=256,f-=8);e[n+C-A]|=k*128};var FU={}.toString,A4=Array.isArray||function(e){return FU.call(e)=="[object Array]"};/*!
882 * The buffer module from node.js, for the browser.
883 *
884 * @author   Feross Aboukhadijeh <http://feross.org>
885 * @license  MIT
886 */(function(e){var t=cc,n=Uf,r=A4;e.Buffer=l,e.SlowBuffer=N,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=pn.TYPED_ARRAY_SUPPORT!==void 0?pn.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=i();function o(){try{var I=new Uint8Array(1);return I.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},I.foo()===42&&typeof I.subarray=="function"&&I.subarray(1,1).byteLength===0}catch{return!1}}function i(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(I,m){if(i()<m)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(I=new Uint8Array(m),I.__proto__=l.prototype):(I===null&&(I=new l(m)),I.length=m),I}function l(I,m,y){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(I,m,y);if(typeof I=="number"){if(typeof m=="string")throw new Error("If encoding is specified then the first argument must be a string");return w(this,I)}return h(this,I,m,y)}l.poolSize=8192,l._augment=function(I){return I.__proto__=l.prototype,I};function h(I,m,y,P){if(typeof m=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&m instanceof ArrayBuffer?A(I,m,y,P):typeof m=="string"?E(I,m,y):k(I,m)}l.from=function(I,m,y){return h(null,I,m,y)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0}));function f(I){if(typeof I!="number")throw new TypeError('"size" argument must be a number');if(I<0)throw new RangeError('"size" argument must not be negative')}function g(I,m,y,P){return f(m),m<=0?s(I,m):y!==void 0?typeof P=="string"?s(I,m).fill(y,P):s(I,m).fill(y):s(I,m)}l.alloc=function(I,m,y){return g(null,I,m,y)};function w(I,m){if(f(m),I=s(I,m<0?0:U(m)|0),!l.TYPED_ARRAY_SUPPORT)for(var y=0;y<m;++y)I[y]=0;return I}l.allocUnsafe=function(I){return w(null,I)},l.allocUnsafeSlow=function(I){return w(null,I)};function E(I,m,y){if((typeof y!="string"||y==="")&&(y="utf8"),!l.isEncoding(y))throw new TypeError('"encoding" must be a valid string encoding');var P=R(m,y)|0;I=s(I,P);var $=I.write(m,y);return $!==P&&(I=I.slice(0,$)),I}function C(I,m){var y=m.length<0?0:U(m.length)|0;I=s(I,y);for(var P=0;P<y;P+=1)I[P]=m[P]&255;return I}function A(I,m,y,P){if(m.byteLength,y<0||m.byteLength<y)throw new RangeError("'offset' is out of bounds");if(m.byteLength<y+(P||0))throw new RangeError("'length' is out of bounds");return y===void 0&&P===void 0?m=new Uint8Array(m):P===void 0?m=new Uint8Array(m,y):m=new Uint8Array(m,y,P),l.TYPED_ARRAY_SUPPORT?(I=m,I.__proto__=l.prototype):I=C(I,m),I}function k(I,m){if(l.isBuffer(m)){var y=U(m.length)|0;return I=s(I,y),I.length===0||m.copy(I,0,0,y),I}if(m){if(typeof ArrayBuffer<"u"&&m.buffer instanceof ArrayBuffer||"length"in m)return typeof m.length!="number"||et(m.length)?s(I,0):C(I,m);if(m.type==="Buffer"&&r(m.data))return C(I,m.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function U(I){if(I>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return I|0}function N(I){return+I!=I&&(I=0),l.alloc(+I)}l.isBuffer=function(m){return!!(m!=null&&m._isBuffer)},l.compare=function(m,y){if(!l.isBuffer(m)||!l.isBuffer(y))throw new TypeError("Arguments must be Buffers");if(m===y)return 0;for(var P=m.length,$=y.length,K=0,J=Math.min(P,$);K<J;++K)if(m[K]!==y[K]){P=m[K],$=y[K];break}return P<$?-1:$<P?1:0},l.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(m,y){if(!r(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return l.alloc(0);var P;if(y===void 0)for(y=0,P=0;P<m.length;++P)y+=m[P].length;var $=l.allocUnsafe(y),K=0;for(P=0;P<m.length;++P){var J=m[P];if(!l.isBuffer(J))throw new TypeError('"list" argument must be an Array of Buffers');J.copy($,K),K+=J.length}return $};function R(I,m){if(l.isBuffer(I))return I.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(I)||I instanceof ArrayBuffer))return I.byteLength;typeof I!="string"&&(I=""+I);var y=I.length;if(y===0)return 0;for(var P=!1;;)switch(m){case"ascii":case"latin1":case"binary":return y;case"utf8":case"utf-8":case void 0:return Ye(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y*2;case"hex":return y>>>1;case"base64":return st(I).length;default:if(P)return Ye(I).length;m=(""+m).toLowerCase(),P=!0}}l.byteLength=R;function L(I,m,y){var P=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((y===void 0||y>this.length)&&(y=this.length),y<=0)||(y>>>=0,m>>>=0,y<=m))return"";for(I||(I="utf8");;)switch(I){case"hex":return mt(this,m,y);case"utf8":case"utf-8":return je(this,m,y);case"ascii":return Je(this,m,y);case"latin1":case"binary":return dt(this,m,y);case"base64":return ye(this,m,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue(this,m,y);default:if(P)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),P=!0}}l.prototype._isBuffer=!0;function z(I,m,y){var P=I[m];I[m]=I[y],I[y]=P}l.prototype.swap16=function(){var m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var y=0;y<m;y+=2)z(this,y,y+1);return this},l.prototype.swap32=function(){var m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var y=0;y<m;y+=4)z(this,y,y+3),z(this,y+1,y+2);return this},l.prototype.swap64=function(){var m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var y=0;y<m;y+=8)z(this,y,y+7),z(this,y+1,y+6),z(this,y+2,y+5),z(this,y+3,y+4);return this},l.prototype.toString=function(){var m=this.length|0;return m===0?"":arguments.length===0?je(this,0,m):L.apply(this,arguments)},l.prototype.equals=function(m){if(!l.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:l.compare(this,m)===0},l.prototype.inspect=function(){var m="",y=e.INSPECT_MAX_BYTES;return this.length>0&&(m=this.toString("hex",0,y).match(/.{2}/g).join(" "),this.length>y&&(m+=" ... ")),"<Buffer "+m+">"},l.prototype.compare=function(m,y,P,$,K){if(!l.isBuffer(m))throw new TypeError("Argument must be a Buffer");if(y===void 0&&(y=0),P===void 0&&(P=m?m.length:0),$===void 0&&($=0),K===void 0&&(K=this.length),y<0||P>m.length||$<0||K>this.length)throw new RangeError("out of range index");if($>=K&&y>=P)return 0;if($>=K)return-1;if(y>=P)return 1;if(y>>>=0,P>>>=0,$>>>=0,K>>>=0,this===m)return 0;for(var J=K-$,me=P-y,Be=Math.min(J,me),Ze=this.slice($,K),ie=m.slice(y,P),de=0;de<Be;++de)if(Ze[de]!==ie[de]){J=Ze[de],me=ie[de];break}return J<me?-1:me<J?1:0};function W(I,m,y,P,$){if(I.length===0)return-1;if(typeof y=="string"?(P=y,y=0):y>2147483647?y=2147483647:y<-2147483648&&(y=-2147483648),y=+y,isNaN(y)&&(y=$?0:I.length-1),y<0&&(y=I.length+y),y>=I.length){if($)return-1;y=I.length-1}else if(y<0)if($)y=0;else return-1;if(typeof m=="string"&&(m=l.from(m,P)),l.isBuffer(m))return m.length===0?-1:ee(I,m,y,P,$);if(typeof m=="number")return m=m&255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(I,m,y):Uint8Array.prototype.lastIndexOf.call(I,m,y):ee(I,[m],y,P,$);throw new TypeError("val must be string, number or Buffer")}function ee(I,m,y,P,$){var K=1,J=I.length,me=m.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(I.length<2||m.length<2)return-1;K=2,J/=2,me/=2,y/=2}function Be(ut,lt){return K===1?ut[lt]:ut.readUInt16BE(lt*K)}var Ze;if($){var ie=-1;for(Ze=y;Ze<J;Ze++)if(Be(I,Ze)===Be(m,ie===-1?0:Ze-ie)){if(ie===-1&&(ie=Ze),Ze-ie+1===me)return ie*K}else ie!==-1&&(Ze-=Ze-ie),ie=-1}else for(y+me>J&&(y=J-me),Ze=y;Ze>=0;Ze--){for(var de=!0,$e=0;$e<me;$e++)if(Be(I,Ze+$e)!==Be(m,$e)){de=!1;break}if(de)return Ze}return-1}l.prototype.includes=function(m,y,P){return this.indexOf(m,y,P)!==-1},l.prototype.indexOf=function(m,y,P){return W(this,m,y,P,!0)},l.prototype.lastIndexOf=function(m,y,P){return W(this,m,y,P,!1)};function b(I,m,y,P){y=Number(y)||0;var $=I.length-y;P?(P=Number(P),P>$&&(P=$)):P=$;var K=m.length;if(K%2!==0)throw new TypeError("Invalid hex string");P>K/2&&(P=K/2);for(var J=0;J<P;++J){var me=parseInt(m.substr(J*2,2),16);if(isNaN(me))return J;I[y+J]=me}return J}function fe(I,m,y,P){return Bt(Ye(m,I.length-y),I,y,P)}function ae(I,m,y,P){return Bt(pe(m),I,y,P)}function Ie(I,m,y,P){return ae(I,m,y,P)}function xe(I,m,y,P){return Bt(st(m),I,y,P)}function De(I,m,y,P){return Bt(Le(m,I.length-y),I,y,P)}l.prototype.write=function(m,y,P,$){if(y===void 0)$="utf8",P=this.length,y=0;else if(P===void 0&&typeof y=="string")$=y,P=this.length,y=0;else if(isFinite(y))y=y|0,isFinite(P)?(P=P|0,$===void 0&&($="utf8")):($=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-y;if((P===void 0||P>K)&&(P=K),m.length>0&&(P<0||y<0)||y>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var J=!1;;)switch($){case"hex":return b(this,m,y,P);case"utf8":case"utf-8":return fe(this,m,y,P);case"ascii":return ae(this,m,y,P);case"latin1":case"binary":return Ie(this,m,y,P);case"base64":return xe(this,m,y,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,m,y,P);default:if(J)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),J=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ye(I,m,y){return m===0&&y===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(m,y))}function je(I,m,y){y=Math.min(I.length,y);for(var P=[],$=m;$<y;){var K=I[$],J=null,me=K>239?4:K>223?3:K>191?2:1;if($+me<=y){var Be,Ze,ie,de;switch(me){case 1:K<128&&(J=K);break;case 2:Be=I[$+1],(Be&192)===128&&(de=(K&31)<<6|Be&63,de>127&&(J=de));break;case 3:Be=I[$+1],Ze=I[$+2],(Be&192)===128&&(Ze&192)===128&&(de=(K&15)<<12|(Be&63)<<6|Ze&63,de>2047&&(de<55296||de>57343)&&(J=de));break;case 4:Be=I[$+1],Ze=I[$+2],ie=I[$+3],(Be&192)===128&&(Ze&192)===128&&(ie&192)===128&&(de=(K&15)<<18|(Be&63)<<12|(Ze&63)<<6|ie&63,de>65535&&de<1114112&&(J=de))}}J===null?(J=65533,me=1):J>65535&&(J-=65536,P.push(J>>>10&1023|55296),J=56320|J&1023),P.push(J),$+=me}return ot(P)}var rt=4096;function ot(I){var m=I.length;if(m<=rt)return String.fromCharCode.apply(String,I);for(var y="",P=0;P<m;)y+=String.fromCharCode.apply(String,I.slice(P,P+=rt));return y}function Je(I,m,y){var P="";y=Math.min(I.length,y);for(var $=m;$<y;++$)P+=String.fromCharCode(I[$]&127);return P}function dt(I,m,y){var P="";y=Math.min(I.length,y);for(var $=m;$<y;++$)P+=String.fromCharCode(I[$]);return P}function mt(I,m,y){var P=I.length;(!m||m<0)&&(m=0),(!y||y<0||y>P)&&(y=P);for(var $="",K=m;K<y;++K)$+=Me(I[K]);return $}function Ue(I,m,y){for(var P=I.slice(m,y),$="",K=0;K<P.length;K+=2)$+=String.fromCharCode(P[K]+P[K+1]*256);return $}l.prototype.slice=function(m,y){var P=this.length;m=~~m,y=y===void 0?P:~~y,m<0?(m+=P,m<0&&(m=0)):m>P&&(m=P),y<0?(y+=P,y<0&&(y=0)):y>P&&(y=P),y<m&&(y=m);var $;if(l.TYPED_ARRAY_SUPPORT)$=this.subarray(m,y),$.__proto__=l.prototype;else{var K=y-m;$=new l(K,void 0);for(var J=0;J<K;++J)$[J]=this[J+m]}return $};function ne(I,m,y){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+m>y)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=this[m],K=1,J=0;++J<y&&(K*=256);)$+=this[m+J]*K;return $},l.prototype.readUIntBE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=this[m+--y],K=1;y>0&&(K*=256);)$+=this[m+--y]*K;return $},l.prototype.readUInt8=function(m,y){return y||ne(m,1,this.length),this[m]},l.prototype.readUInt16LE=function(m,y){return y||ne(m,2,this.length),this[m]|this[m+1]<<8},l.prototype.readUInt16BE=function(m,y){return y||ne(m,2,this.length),this[m]<<8|this[m+1]},l.prototype.readUInt32LE=function(m,y){return y||ne(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},l.prototype.readUInt32BE=function(m,y){return y||ne(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},l.prototype.readIntLE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=this[m],K=1,J=0;++J<y&&(K*=256);)$+=this[m+J]*K;return K*=128,$>=K&&($-=Math.pow(2,8*y)),$},l.prototype.readIntBE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=y,K=1,J=this[m+--$];$>0&&(K*=256);)J+=this[m+--$]*K;return K*=128,J>=K&&(J-=Math.pow(2,8*y)),J},l.prototype.readInt8=function(m,y){return y||ne(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},l.prototype.readInt16LE=function(m,y){y||ne(m,2,this.length);var P=this[m]|this[m+1]<<8;return P&32768?P|4294901760:P},l.prototype.readInt16BE=function(m,y){y||ne(m,2,this.length);var P=this[m+1]|this[m]<<8;return P&32768?P|4294901760:P},l.prototype.readInt32LE=function(m,y){return y||ne(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},l.prototype.readInt32BE=function(m,y){return y||ne(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},l.prototype.readFloatLE=function(m,y){return y||ne(m,4,this.length),n.read(this,m,!0,23,4)},l.prototype.readFloatBE=function(m,y){return y||ne(m,4,this.length),n.read(this,m,!1,23,4)},l.prototype.readDoubleLE=function(m,y){return y||ne(m,8,this.length),n.read(this,m,!0,52,8)},l.prototype.readDoubleBE=function(m,y){return y||ne(m,8,this.length),n.read(this,m,!1,52,8)};function oe(I,m,y,P,$,K){if(!l.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>$||m<K)throw new RangeError('"value" argument is out of bounds');if(y+P>I.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function(m,y,P,$){if(m=+m,y=y|0,P=P|0,!$){var K=Math.pow(2,8*P)-1;oe(this,m,y,P,K,0)}var J=1,me=0;for(this[y]=m&255;++me<P&&(J*=256);)this[y+me]=m/J&255;return y+P},l.prototype.writeUIntBE=function(m,y,P,$){if(m=+m,y=y|0,P=P|0,!$){var K=Math.pow(2,8*P)-1;oe(this,m,y,P,K,0)}var J=P-1,me=1;for(this[y+J]=m&255;--J>=0&&(me*=256);)this[y+J]=m/me&255;return y+P},l.prototype.writeUInt8=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,1,255,0),l.TYPED_ARRAY_SUPPORT||(m=Math.floor(m)),this[y]=m&255,y+1};function Pe(I,m,y,P){m<0&&(m=65535+m+1);for(var $=0,K=Math.min(I.length-y,2);$<K;++$)I[y+$]=(m&255<<8*(P?$:1-$))>>>(P?$:1-$)*8}l.prototype.writeUInt16LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[y]=m&255,this[y+1]=m>>>8):Pe(this,m,y,!0),y+2},l.prototype.writeUInt16BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>8,this[y+1]=m&255):Pe(this,m,y,!1),y+2};function Oe(I,m,y,P){m<0&&(m=4294967295+m+1);for(var $=0,K=Math.min(I.length-y,4);$<K;++$)I[y+$]=m>>>(P?$:3-$)*8&255}l.prototype.writeUInt32LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[y+3]=m>>>24,this[y+2]=m>>>16,this[y+1]=m>>>8,this[y]=m&255):Oe(this,m,y,!0),y+4},l.prototype.writeUInt32BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>24,this[y+1]=m>>>16,this[y+2]=m>>>8,this[y+3]=m&255):Oe(this,m,y,!1),y+4},l.prototype.writeIntLE=function(m,y,P,$){if(m=+m,y=y|0,!$){var K=Math.pow(2,8*P-1);oe(this,m,y,P,K-1,-K)}var J=0,me=1,Be=0;for(this[y]=m&255;++J<P&&(me*=256);)m<0&&Be===0&&this[y+J-1]!==0&&(Be=1),this[y+J]=(m/me>>0)-Be&255;return y+P},l.prototype.writeIntBE=function(m,y,P,$){if(m=+m,y=y|0,!$){var K=Math.pow(2,8*P-1);oe(this,m,y,P,K-1,-K)}var J=P-1,me=1,Be=0;for(this[y+J]=m&255;--J>=0&&(me*=256);)m<0&&Be===0&&this[y+J+1]!==0&&(Be=1),this[y+J]=(m/me>>0)-Be&255;return y+P},l.prototype.writeInt8=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,1,127,-128),l.TYPED_ARRAY_SUPPORT||(m=Math.floor(m)),m<0&&(m=255+m+1),this[y]=m&255,y+1},l.prototype.writeInt16LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[y]=m&255,this[y+1]=m>>>8):Pe(this,m,y,!0),y+2},l.prototype.writeInt16BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>8,this[y+1]=m&255):Pe(this,m,y,!1),y+2},l.prototype.writeInt32LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[y]=m&255,this[y+1]=m>>>8,this[y+2]=m>>>16,this[y+3]=m>>>24):Oe(this,m,y,!0),y+4},l.prototype.writeInt32BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>24,this[y+1]=m>>>16,this[y+2]=m>>>8,this[y+3]=m&255):Oe(this,m,y,!1),y+4};function We(I,m,y,P,$,K){if(y+P>I.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("Index out of range")}function Qe(I,m,y,P,$){return $||We(I,m,y,4),n.write(I,m,y,P,23,4),y+4}l.prototype.writeFloatLE=function(m,y,P){return Qe(this,m,y,!0,P)},l.prototype.writeFloatBE=function(m,y,P){return Qe(this,m,y,!1,P)};function se(I,m,y,P,$){return $||We(I,m,y,8),n.write(I,m,y,P,52,8),y+8}l.prototype.writeDoubleLE=function(m,y,P){return se(this,m,y,!0,P)},l.prototype.writeDoubleBE=function(m,y,P){return se(this,m,y,!1,P)},l.prototype.copy=function(m,y,P,$){if(P||(P=0),!$&&$!==0&&($=this.length),y>=m.length&&(y=m.length),y||(y=0),$>0&&$<P&&($=P),$===P||m.length===0||this.length===0)return 0;if(y<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),m.length-y<$-P&&($=m.length-y+P);var K=$-P,J;if(this===m&&P<y&&y<$)for(J=K-1;J>=0;--J)m[J+y]=this[J+P];else if(K<1e3||!l.TYPED_ARRAY_SUPPORT)for(J=0;J<K;++J)m[J+y]=this[J+P];else Uint8Array.prototype.set.call(m,this.subarray(P,P+K),y);return K},l.prototype.fill=function(m,y,P,$){if(typeof m=="string"){if(typeof y=="string"?($=y,y=0,P=this.length):typeof P=="string"&&($=P,P=this.length),m.length===1){var K=m.charCodeAt(0);K<256&&(m=K)}if($!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!l.isEncoding($))throw new TypeError("Unknown encoding: "+$)}else typeof m=="number"&&(m=m&255);if(y<0||this.length<y||this.length<P)throw new RangeError("Out of range index");if(P<=y)return this;y=y>>>0,P=P===void 0?this.length:P>>>0,m||(m=0);var J;if(typeof m=="number")for(J=y;J<P;++J)this[J]=m;
886else{var me=l.isBuffer(m)?m:Ye(new l(m,$).toString()),Be=me.length;for(J=0;J<P-y;++J)this[J+y]=me[J%Be]}return this};var be=/[^+\/0-9A-Za-z-_]/g;function Ae(I){if(I=Ne(I).replace(be,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ne(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}function Me(I){return I<16?"0"+I.toString(16):I.toString(16)}function Ye(I,m){m=m||1/0;for(var y,P=I.length,$=null,K=[],J=0;J<P;++J){if(y=I.charCodeAt(J),y>55295&&y<57344){if(!$){if(y>56319){(m-=3)>-1&&K.push(239,191,189);continue}else if(J+1===P){(m-=3)>-1&&K.push(239,191,189);continue}$=y;continue}if(y<56320){(m-=3)>-1&&K.push(239,191,189),$=y;continue}y=($-55296<<10|y-56320)+65536}else $&&(m-=3)>-1&&K.push(239,191,189);if($=null,y<128){if((m-=1)<0)break;K.push(y)}else if(y<2048){if((m-=2)<0)break;K.push(y>>6|192,y&63|128)}else if(y<65536){if((m-=3)<0)break;K.push(y>>12|224,y>>6&63|128,y&63|128)}else if(y<1114112){if((m-=4)<0)break;K.push(y>>18|240,y>>12&63|128,y>>6&63|128,y&63|128)}else throw new Error("Invalid code point")}return K}function pe(I){for(var m=[],y=0;y<I.length;++y)m.push(I.charCodeAt(y)&255);return m}function Le(I,m){for(var y,P,$,K=[],J=0;J<I.length&&!((m-=2)<0);++J)y=I.charCodeAt(J),P=y>>8,$=y%256,K.push($),K.push(P);return K}function st(I){return t.toByteArray(Ae(I))}function Bt(I,m,y,P){for(var $=0;$<P&&!($+y>=m.length||$>=I.length);++$)m[$+y]=I[$];return $}function et(I){return I!==I}})(an);var Hr;if(typeof window<"u"&&window.crypto&&(Hr=window.crypto),!Hr&&typeof window<"u"&&window.msCrypto&&(Hr=window.msCrypto),!Hr&&typeof global<"u"&&global.crypto&&(Hr=global.crypto),!Hr&&typeof require=="function")try{Hr=require("crypto")}catch{}function RU(){if(Hr){if(typeof Hr.getRandomValues=="function")try{return Hr.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof Hr.randomBytes=="function")try{return Hr.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function BU(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((i&15).toString(16))}return r.join("")}var OU=function(){function e(n,r){n=this.words=n||[],r!=null?this.sigBytes=r:this.sigBytes=n.length*4}var t=e.prototype;return t.random=function(r){for(var o=[],i=0;i<r;i+=4)o.push(RU());return new e(o,r)},t.toString=function(){return BU(this)},e}();function Xe(e,t){e!=null&&this.fromString(e,t)}function or(){return new Xe(null)}var Lo,UU=0xdeadbeefcafe,T4=(UU&16777215)==15715070;function $U(e,t,n,r,o,i){for(;--i>=0;){var s=t*this[e++]+n[r]+o;o=Math.floor(s/67108864),n[r++]=s&67108863}return o}function MU(e,t,n,r,o,i){for(var s=t&32767,l=t>>15;--i>=0;){var h=this[e]&32767,f=this[e++]>>15,g=l*h+f*s;h=s*h+((g&32767)<<15)+n[r]+(o&1073741823),o=(h>>>30)+(g>>>15)+l*f+(o>>>30),n[r++]=h&1073741823}return o}function LU(e,t,n,r,o,i){for(var s=t&16383,l=t>>14;--i>=0;){var h=this[e]&16383,f=this[e++]>>14,g=l*h+f*s;h=s*h+((g&16383)<<14)+n[r]+o,o=(h>>28)+(g>>14)+l*f,n[r++]=h&268435455}return o}var I4=typeof navigator<"u";I4&&T4&&navigator.appName=="Microsoft Internet Explorer"?(Xe.prototype.am=MU,Lo=30):I4&&T4&&navigator.appName!="Netscape"?(Xe.prototype.am=$U,Lo=26):(Xe.prototype.am=LU,Lo=28),Xe.prototype.DB=Lo,Xe.prototype.DM=(1<<Lo)-1,Xe.prototype.DV=1<<Lo;var fm=52;Xe.prototype.FV=Math.pow(2,fm),Xe.prototype.F1=fm-Lo,Xe.prototype.F2=2*Lo-fm;var VU="0123456789abcdefghijklmnopqrstuvwxyz",$f=new Array,As,Gr;for(As="0".charCodeAt(0),Gr=0;Gr<=9;++Gr)$f[As++]=Gr;for(As="a".charCodeAt(0),Gr=10;Gr<36;++Gr)$f[As++]=Gr;for(As="A".charCodeAt(0),Gr=10;Gr<36;++Gr)$f[As++]=Gr;function k4(e){return VU.charAt(e)}function jU(e,t){var n=$f[e.charCodeAt(t)];return n??-1}function zU(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function HU(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function dm(e){var t=or();return t.fromInt(e),t}function GU(e,t){var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var r=e.length,o=!1,i=0;--r>=0;){var s=jU(e,r);if(s<0){e.charAt(r)=="-"&&(o=!0);continue}o=!1,i==0?this[this.t++]=s:i+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-i)-1)<<i,this[this.t++]=s>>this.DB-i):this[this.t-1]|=s<<i,i+=n,i>=this.DB&&(i-=this.DB)}this.clamp(),o&&Xe.ZERO.subTo(this,this)}function WU(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}function qU(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var n=(1<<t)-1,r,o=!1,i="",s=this.t,l=this.DB-s*this.DB%t;if(s-- >0)for(l<this.DB&&(r=this[s]>>l)>0&&(o=!0,i=k4(r));s>=0;)l<t?(r=(this[s]&(1<<l)-1)<<t-l,r|=this[--s]>>(l+=this.DB-t)):(r=this[s]>>(l-=t)&n,l<=0&&(l+=this.DB,--s)),r>0&&(o=!0),o&&(i+=k4(r));return o?i:"0"}function KU(){var e=or();return Xe.ZERO.subTo(this,e),e}function YU(){return this.s<0?this.negate():this}function JU(e){var t=this.s-e.s;if(t!=0)return t;var n=this.t;if(t=n-e.t,t!=0)return this.s<0?-t:t;for(;--n>=0;)if((t=this[n]-e[n])!=0)return t;return 0}function hm(e){var t=1,n;return(n=e>>>16)!=0&&(e=n,t+=16),(n=e>>8)!=0&&(e=n,t+=8),(n=e>>4)!=0&&(e=n,t+=4),(n=e>>2)!=0&&(e=n,t+=2),(n=e>>1)!=0&&(e=n,t+=1),t}function XU(){return this.t<=0?0:this.DB*(this.t-1)+hm(this[this.t-1]^this.s&this.DM)}function ZU(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function QU(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function e6(e,t){var n=e%this.DB,r=this.DB-n,o=(1<<r)-1,i=Math.floor(e/this.DB),s=this.s<<n&this.DM,l;for(l=this.t-1;l>=0;--l)t[l+i+1]=this[l]>>r|s,s=(this[l]&o)<<n;for(l=i-1;l>=0;--l)t[l]=0;t[i]=s,t.t=this.t+i+1,t.s=this.s,t.clamp()}function t6(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t){t.t=0;return}var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t[0]=this[n]>>r;
vendor: 5,138 bytes, lines 886-889
886for(var s=n+1;s<this.t;++s)t[s-n-1]|=(this[s]&i)<<o,t[s-n]=this[s]>>r;r>0&&(t[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}function n6(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function r6(e,t){var n=this.abs(),r=e.abs(),o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o<r.t;++o)t[o+n.t]=n.am(0,r[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&Xe.ZERO.subTo(t,t)}function i6(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function o6(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t){t!=null&&t.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=or());var i=or(),s=this.s,l=e.s,h=this.DB-hm(r[r.t-1]);h>0?(r.lShiftTo(h,i),o.lShiftTo(h,n)):(r.copyTo(i),o.copyTo(n));var f=i.t,g=i[f-1];if(g!=0){var w=g*(1<<this.F1)+(f>1?i[f-2]>>this.F2:0),E=this.FV/w,C=(1<<this.F1)/w,A=1<<this.F2,k=n.t,U=k-f,N=t??or();for(i.dlShiftTo(U,N),n.compareTo(N)>=0&&(n[n.t++]=1,n.subTo(N,n)),Xe.ONE.dlShiftTo(f,N),N.subTo(i,i);i.t<f;)i[i.t++]=0;for(;--U>=0;){var R=n[--k]==g?this.DM:Math.floor(n[k]*E+(n[k-1]+A)*C);if((n[k]+=i.am(0,R,n,U,0,f))<R)for(i.dlShiftTo(U,N),n.subTo(N,n);n[k]<--R;)n.subTo(N,n)}t!=null&&(n.drShiftTo(f,t),s!=l&&Xe.ZERO.subTo(t,t)),n.t=f,n.clamp(),h>0&&n.rShiftTo(h,n),s<0&&Xe.ZERO.subTo(n,n)}}}function a6(e){var t=or();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Xe.ZERO)>0&&e.subTo(t,t),t}function s6(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function u6(e){return this.compareTo(e)==0}function c6(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function l6(e){var t=or();return this.addTo(e,t),t}function f6(e){var t=or();return this.subTo(e,t),t}function d6(e){var t=or();return this.multiplyTo(e,t),t}function h6(e){var t=or();return this.divRemTo(e,t,null),t}function Ts(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function p6(e){var t=or();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Xe.ZERO)>0&&this.m.subTo(t,t),t}function g6(e){var t=or();return e.copyTo(t),this.reduce(t),t}function m6(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=e[t]&32767,r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function y6(e,t){e.squareTo(t),this.reduce(t)}function v6(e,t,n){e.multiplyTo(t,n),this.reduce(n)}Ts.prototype.convert=p6,Ts.prototype.revert=g6,Ts.prototype.reduce=m6,Ts.prototype.mulTo=v6,Ts.prototype.sqrTo=y6;function _6(e,t,n){var r=e.bitLength(),o,i=dm(1),s=new Ts(t);if(r<=0)return i;r<18?o=1:r<48?o=3:r<144?o=4:r<768?o=5:o=6;var l=new Array,h=3,f=o-1,g=(1<<o)-1;if(l[1]=s.convert(this),o>1){var w=or();for(s.sqrTo(l[1],w);h<=g;)l[h]=or(),s.mulTo(w,l[h-2],l[h]),h+=2}var E=e.t-1,C,A=!0,k=or(),U;for(r=hm(e[E])-1;E>=0;){for(r>=f?C=e[E]>>r-f&g:(C=(e[E]&(1<<r+1)-1)<<f-r,E>0&&(C|=e[E-1]>>this.DB+r-f)),h=o;!(C&1);)C>>=1,--h;if((r-=h)<0&&(r+=this.DB,--E),A)l[C].copyTo(i),A=!1;else{for(;h>1;)s.sqrTo(i,k),s.sqrTo(k,i),h-=2;h>0?s.sqrTo(i,k):(U=i,i=k,k=U),s.mulTo(k,l[C],i)}for(;E>=0&&!(e[E]&1<<r);)s.sqrTo(i,k),U=i,i=k,k=U,--r<0&&(r=this.DB-1,--E)}var N=s.revert(i);return n(null,N),N}Xe.prototype.copyTo=zU,Xe.prototype.fromInt=HU,Xe.prototype.fromString=GU,Xe.prototype.clamp=WU,Xe.prototype.dlShiftTo=ZU,Xe.prototype.drShiftTo=QU,Xe.prototype.lShiftTo=e6,Xe.prototype.rShiftTo=t6,Xe.prototype.subTo=n6,Xe.prototype.multiplyTo=r6,Xe.prototype.squareTo=i6,Xe.prototype.divRemTo=o6,Xe.prototype.invDigit=s6,Xe.prototype.addTo=c6,Xe.prototype.toString=qU,Xe.prototype.negate=KU,Xe.prototype.abs=YU,Xe.prototype.compareTo=JU,Xe.prototype.bitLength=XU,Xe.prototype.mod=a6,Xe.prototype.equals=u6,Xe.prototype.add=l6,Xe.prototype.subtract=f6,Xe.prototype.multiply=d6,Xe.prototype.divide=h6,Xe.prototype.modPow=_6,Xe.ZERO=dm(0),Xe.ONE=dm(1);/*!
887 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
888 * SPDX-License-Identifier: Apache-2.0
889 */function pm(e){return an.Buffer.from(new OU().random(e).toString(),"hex")}var w6=/^[89a-f]/i,b6="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E
8897EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",E6="userAttributes.",Is=function(){function e(n){this.N=new Xe(b6,16),this.g=new Xe("2",16),this.k=new Xe(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=an.Buffer.from("Caldera Derived Key","utf8"),this.poolName=n}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(r){var o=this;this.largeAValue?r(null,this.largeAValue):this.calculateA(this.smallAValue,function(i,s){i&&r(i,null),o.largeAValue=s,r(null,o.largeAValue)})},t.generateRandomSmallA=function(){var r=pm(128).toString("hex"),o=new Xe(r,16);return o},t.generateRandomString=function(){return pm(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(r,o,i){var s=this;this.randomPassword=this.generateRandomString();var l=""+r+o+":"+this.randomPassword,h=this.hash(l),f=pm(16).toString("hex");this.SaltToHashDevices=this.padHex(new Xe(f,16)),this.g.modPow(new Xe(this.hexHash(this.SaltToHashDevices+h),16),this.N,function(g,w){g&&i(g,null),s.verifierDevices=s.padHex(w),i(null,null)})},t.calculateA=function(r,o){var i=this;this.g.modPow(r,this.N,function(s,l){s&&o(s,null),l.mod(i.N).equals(Xe.ZERO)&&o(new Error("Illegal paramater. A mod N cannot be 0."),null),o(null,l)})},t.calculateU=function(r,o){this.UHexHash=this.hexHash(this.padHex(r)+this.padHex(o));var i=new Xe(this.UHexHash,16);return i},t.hash=function(r){var o=new Aa.Sha256;o.update(r);var i=o.digestSync(),s=an.Buffer.from(i).toString("hex");return new Array(64-s.length).join("0")+s},t.hexHash=function(r){return this.hash(an.Buffer.from(r,"hex"))},t.computehkdf=function(r,o){var i=an.Buffer.concat([this.infoBits,an.Buffer.from(String.fromCharCode(1),"utf8")]),s=new Aa.Sha256(o);s.update(r);var l=s.digestSync(),h=new Aa.Sha256(l);h.update(i);var f=h.digestSync(),g=f,w=g.slice(0,16);return w},t.getPasswordAuthenticationKey=function(r,o,i,s,l){var h=this;if(i.mod(this.N).equals(Xe.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,i),this.UValue.equals(Xe.ZERO))throw new Error("U cannot be zero.");var f=""+this.poolName+r+":"+o,g=this.hash(f),w=new Xe(this.hexHash(this.padHex(s)+g),16);this.calculateS(w,i,function(E,C){E&&l(E,null);var A=h.computehkdf(an.Buffer.from(h.padHex(C),"hex"),an.Buffer.from(h.padHex(h.UValue),"hex"));l(null,A)})},t.calculateS=function(r,o,i){var s=this;this.g.modPow(r,this.N,function(l,h){l&&i(l,null);var f=o.subtract(s.k.multiply(h));f.modPow(s.smallAValue.add(s.UValue.multiply(r)),s.N,function(g,w){g&&i(g,null),i(null,w.mod(s.N))})})},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return E6},t.padHex=function(r){if(!(r instanceof Xe))throw new Error("Not a BigInteger");var o=r.compareTo(Xe.ZERO)<0,i=r.abs().toString(16);if(i=i.length%2!==0?"0"+i:i,i=w6.test(i)?"00"+i:i,o){var s=i.split("").map(function(h){var f=~parseInt(h,16)&15;return"0123456789ABCDEF".charAt(f)}).join(""),l=new Xe(s,16).add(Xe.ONE);i=l.toString(16),i.toUpperCase().startsWith("FF8")&&(i=i.substring(2))}return i},e}();/*!
890 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
891 * SPDX-License-Identifier: Apache-2.0
892 */var P4=function(){function e(n){this.jwtToken=n||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var r=this.jwtToken.split(".")[1];try{return JSON.parse(an.Buffer.from(r,"base64").toString("utf8"))}catch{return{}}},e}();function S6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gm(e,t)}function gm(e,t){return gm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gm(e,t)}
892var mm=function(e){S6(t,e);function t(n){var r=n===void 0?{}:n,o=r.AccessToken;return e.call(this,o||"")||this}return t}(P4);function C6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ym(e,t)}function ym(e,t){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ym(e,t)}var vm=function(e){C6(t,e);function t(n){var r=n===void 0?{}:n,o=r.IdToken;return e.call(this,o||"")||this}return t}(P4);/*!
893 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
894 * SPDX-License-Identifier: Apache-2.0
895 */var _m=function(){function e(n){var r=n===void 0?{}:n,o=r.RefreshToken;this.token=o||""}var t=e.prototype;return t.getToken=function(){return this.token},e}(),x6="5.0.4";/*!
896 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
897 * SPDX-License-Identifier: Apache-2.0
898 */var A6="aws-amplify/"+x6,N4={userAgent:A6,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},T6=function(){return N4.userAgent};/*!
899 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
900 * SPDX-License-Identifier: Apache-2.0
901 */var wm=function(){function e(n){var r=n===void 0?{}:n,o=r.IdToken,i=r.RefreshToken,s=r.AccessToken,l=r.ClockDrift;if(s==null||o==null)throw new Error("Id token and Access Token must be present.");this.idToken=o,this.refreshToken=i,this.accessToken=s,this.clockDrift=l===void 0?this.calculateClockDrift():l}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){var r=Math.floor(new Date/1e3),o=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return r-o},t.isValid=function(){var r=Math.floor(new Date/1e3),o=r-this.clockDrift;return o<this.accessToken.getExpiration()&&o<this.idToken.getExpiration()},e}();/*!
902 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
903 * SPDX-License-Identifier: Apache-2.0
904 */var I6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],k6=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],D4=function(){function e(){}var t=e.prototype;return t.getNowString=function(){var r=new Date,o=k6[r.getUTCDay()],i=I6[r.getUTCMonth()],s=r.getUTCDate(),l=r.getUTCHours();l<10&&(l="0"+l);var h=r.getUTCMinutes();h<10&&(h="0"+h);var f=r.getUTCSeconds();f<10&&(f="0"+f);var g=r.getUTCFullYear(),w=o+" "+i+" "+s+" "+l+":"+h+":"+f+" UTC "+g;return w},e}();/*!
905 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
906 * SPDX-License-Identifier: Apache-2.0
907 */var ks=function(){function e(n){var r=n===void 0?{}:n,o=r.Name,i=r.Value;this.Name=o||"",this.Value=i||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(r){return this.Value=r,this},t.getName=function(){return this.Name},t.setName=function(r){return this.Name=r,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}();/*!
908 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
909 * SPDX-License-Identifier: Apache-2.0
910 */var Na={},P6=function(){function e(){}return e.setItem=function(n,r){return Na[n]=r,Na[n]},e.getItem=function(n){return Object.prototype.hasOwnProperty.call(Na,n)?Na[n]:void 0},e.removeItem=function(n){return delete Na[n]},e.clear=function(){return Na={},Na},e}(),F4=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=P6}}var t=e.prototype;return t.getStorage=function(){return this.storageWindow},e}();/*!
911 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
912 * SPDX-License-Identifier: Apache-2.0
913 */var N6=typeof navigator<"u",R4=N6?N4.isReactNative?"react-native":navigator.userAgent:"nodejs",bm=function(){function e(n){if(n==null||n.Username==null||n.Pool==null)throw new Error("Username and Pool information are required.");this.username=n.Username||"",this.pool=n.Pool,this.Session=null,this.client=n.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=n.Storage||new F4().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(r){this.clearCachedUserData(),this.signInUserSession=r,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(r){this.authenticationFlowType=r},t.initiateAuth=function(r,o){var i=this,s=r.getAuthParameters();s.USERNAME=this.username;var l=Object.keys(r.getValidationData()).length!==0?r.getValidationData():r.getClientMetadata(),h={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:s,ClientMetadata:l};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",h,function(f,g){if(f)return o.onFailure(f);var w=g.ChallengeName,E=g.ChallengeParameters;return w==="CUSTOM_CHALLENGE"?(i.Session=g.Session,o.customChallenge(E)):(i.signInUserSession=i.getCognitoUserSession(g.AuthenticationResult),i.cacheTokens(),o.onSuccess(i.signInUserSession))})},t.authenticateUser=function(r,o){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(r,o):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(r,o):o.onFailure(new Error("Authentication flow type is invali
913d."))},t.authenticateUserDefaultAuth=function(r,o){var i=this,s=new Is(this.pool.getUserPoolName()),l=new D4,h,f,g={};this.deviceKey!=null&&(g.DEVICE_KEY=this.deviceKey),g.USERNAME=this.username,s.getLargeAValue(function(w,E){w&&o.onFailure(w),g.SRP_A=E.toString(16),i.authenticationFlowType==="CUSTOM_AUTH"&&(g.CHALLENGE_NAME="SRP_A");var C=Object.keys(r.getValidationData()).length!==0?r.getValidationData():r.getClientMetadata(),A={AuthFlow:i.authenticationFlowType,ClientId:i.pool.getClientId(),AuthParameters:g,ClientMetadata:C};i.getUserContextData(i.username)&&(A.UserContextData=i.getUserContextData(i.username)),i.client.request("InitiateAuth",A,function(k,U){if(k)return o.onFailure(k);var N=U.ChallengeParameters;i.username=N.USER_ID_FOR_SRP,i.userDataKey=i.keyPrefix+"."+i.username+".userData",h=new Xe(N.SRP_B,16),f=new Xe(N.SALT,16),i.getCachedDeviceKeyAndPassword(),s.getPasswordAuthenticationKey(i.username,r.getPassword(),h,f,function(R,L){R&&o.onFailure(R);var z=l.getNowString(),W=an.Buffer.concat([an.Buffer.from(i.pool.getUserPoolName(),"utf8"),an.Buffer.from(i.username,"utf8"),an.Buffer.from(N.SECRET_BLOCK,"base64"),an.Buffer.from(z,"utf8")]),ee=new Aa.Sha256(L);ee.update(W);var b=ee.digestSync(),fe=an.Buffer.from(b).toString("base64"),ae={};ae.USERNAME=i.username,ae.PASSWORD_CLAIM_SECRET_BLOCK=N.SECRET_BLOCK,ae.TIMESTAMP=z,ae.PASSWORD_CLAIM_SIGNATURE=fe,i.deviceKey!=null&&(ae.DEVICE_KEY=i.deviceKey);var Ie=function De(ye,je){return i.client.request("RespondToAuthChallenge",ye,function(rt,ot){return rt&&rt.code==="ResourceNotFoundException"&&rt.message.toLowerCase().indexOf("device")!==-1?(ae.DEVICE_KEY=null,i.deviceKey=null,i.randomPassword=null,i.deviceGroupKey=null,i.clearCachedDeviceKeyAndPassword(),De(ye,je)):je(rt,ot)})},xe={ChallengeName:"PASSWORD_VERIFIER",ClientId:i.pool.getClientId(),ChallengeResponses:ae,Session:U.Session,ClientMetadata:C};i.getUserContextData()&&(xe.UserContextData=i.getUserContextData()),Ie(xe,function(De,ye){return De?o.onFailure(De):i.authenticateUserInternal(ye,s,o)})})})})},t.authenticateUserPlainUsernamePassword=function(r,o){var i=this,s={};if(s.USERNAME=this.username,s.PASSWORD=r.getPassword(),!s.PASSWORD){o.onFailure(new Error("PASSWORD parameter is required"));return}var l=new Is(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(s.DEVICE_KEY=this.deviceKey);var h=Object.keys(r.getValidationData()).length!==0?r.getValidationData():r.getClientMetadata(),f={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:s,ClientMetadata:h};this.getUserContextData(this.username)&&(f.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",f,function(g,w){return g?o.onFailure(g):i.authenticateUserInternal(w,l,o)})},t.authenticateUserInternal=function(r,o,i){var s=this,l=r.ChallengeName,h=r.ChallengeParameters;if(l==="SMS_MFA")return this.Session=r.Session,i.mfaRequired(l,h);if(l==="SELECT_MFA_TYPE")return this.Session=r.Session,i.selectMFAType(l,h);if(l==="MFA_SETUP")return this.Session=r.Session,i.mfaSetup(l,h);if(l==="SOFTWARE_TOKEN_MFA")return this.Session=r.Session,i.totpRequired(l,h);if(l==="CUSTOM_CHALLENGE")return this.Session=r.Session,i.customChallenge(h);if(l==="NEW_PASSWORD_REQUIRED"){this.Session=r.Session;var f=null,g=null,w=[],E=o.getNewPasswordRequiredChallengeUserAttributePrefix();if(h&&(f=JSON.parse(r.ChallengeParameters.userAttributes),g=JSON.parse(r.ChallengeParameters.requiredAttributes)),g)for(var C=0;C<g.length;C++)w[C]=g[C].substr(E.length);return i.newPasswordRequired(f,w)}if(l==="DEVICE_SRP_AUTH"){this.Session=r.Session,this.getDeviceResponse(i);return}this.signInUserSession=this.getCognitoUserSession(r.AuthenticationResult),this.challengeName=l,this.cacheTokens();var A=r.AuthenticationResult.NewDeviceMetadata;if(A==null)return i.onSuccess(this.signInUserSession);o.generateHashDevice(r.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,r.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(k){if(k)return i.onFailure(k);var U={Salt:an.Buffer.from(o.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:an.Buffer.from(o.getVerifierDevices(),"hex").toString("base64")};s.verifierDevices=U.PasswordVerifier,s.deviceGroupKey=A.DeviceGroupKey,s.randomPassword=o.getRandomPassword(),s.client.request("ConfirmDevice",{DeviceKey:A.DeviceKey,AccessToken:s.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:U,DeviceName:R4},function(N,R){return N?i.onFailure(N):(s.deviceKey=r.AuthenticationResult.
913NewDeviceMetadata.DeviceKey,s.cacheDeviceKeyAndPassword(),R.UserConfirmationNecessary===!0?i.onSuccess(s.signInUserSession,R.UserConfirmationNecessary):i.onSuccess(s.signInUserSession))})})},t.completeNewPasswordChallenge=function(r,o,i,s){var l=this;if(!r)return i.onFailure(new Error("New password is required."));var h=new Is(this.pool.getUserPoolName()),f=h.getNewPasswordRequiredChallengeUserAttributePrefix(),g={};o&&Object.keys(o).forEach(function(E){g[f+E]=o[E]}),g.NEW_PASSWORD=r,g.USERNAME=this.username;var w={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:g,Session:this.Session,ClientMetadata:s};this.getUserContextData()&&(w.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",w,function(E,C){return E?i.onFailure(E):l.authenticateUserInternal(C,h,i)})},t.getDeviceResponse=function(r,o){var i=this,s=new Is(this.deviceGroupKey),l=new D4,h={};h.USERNAME=this.username,h.DEVICE_KEY=this.deviceKey,s.getLargeAValue(function(f,g){f&&r.onFailure(f),h.SRP_A=g.toString(16);var w={ChallengeName:"DEVICE_SRP_AUTH",ClientId:i.pool.getClientId(),ChallengeResponses:h,ClientMetadata:o,Session:i.Session};i.getUserContextData()&&(w.UserContextData=i.getUserContextData()),i.client.request("RespondToAuthChallenge",w,function(E,C){if(E)return r.onFailure(E);var A=C.ChallengeParameters,k=new Xe(A.SRP_B,16),U=new Xe(A.SALT,16);s.getPasswordAuthenticationKey(i.deviceKey,i.randomPassword,k,U,function(N,R){if(N)return r.onFailure(N);var L=l.getNowString(),z=an.Buffer.concat([an.Buffer.from(i.deviceGroupKey,"utf8"),an.Buffer.from(i.deviceKey,"utf8"),an.Buffer.from(A.SECRET_BLOCK,"base64"),an.Buffer.from(L,"utf8")]),W=new Aa.Sha256(R);W.update(z);var ee=W.digestSync(),b=an.Buffer.from(ee).toString("base64"),fe={};fe.USERNAME=i.username,fe.PASSWORD_CLAIM_SECRET_BLOCK=A.SECRET_BLOCK,fe.TIMESTAMP=L,fe.PASSWORD_CLAIM_SIGNATURE=b,fe.DEVICE_KEY=i.deviceKey;var ae={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i.pool.getClientId(),ChallengeResponses:fe,Session:C.Session};
913i.getUserContextData()&&(ae.UserContextData=i.getUserContextData()),i.client.request("RespondToAuthChallenge",ae,function(Ie,xe){return Ie?r.onFailure(Ie):(i.signInUserSession=i.getCognitoUserSession(xe.AuthenticationResult),i.cacheTokens(),r.onSuccess(i.signInUserSession))})})})})},t.confirmRegistration=function(r,o,i,s){var l={ClientId:this.pool.getClientId(),ConfirmationCode:r,Username:this.username,ForceAliasCreation:o,ClientMetadata:s};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",l,function(h){return h?i(h,null):i(null,"SUCCESS")})},t.sendCustomChallengeAnswer=function(r,o,i){var s=this,l={};l.USERNAME=this.username,l.ANSWER=r;var h=new Is(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(l.DEVICE_KEY=this.deviceKey);var f={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:l,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:i};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",f,function(g,w){return g?o.onFailure(g):s.authenticateUserInternal(w,h,o)})},t.sendMFACode=function(r,o,i,s){var l=this,h={};h.USERNAME=this.username,h.SMS_MFA_CODE=r;var f=i||"SMS_MFA";f==="SOFTWARE_TOKEN_MFA"&&(h.SOFTWARE_TOKEN_MFA_CODE=r),this.deviceKey!=null&&(h.DEVICE_KEY=this.deviceKey);var g={ChallengeName:f,ChallengeResponses:h,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:s};this.getUserContextData()&&(g.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",g,function(w,E){if(w)return o.onFailure(w);var C=E.ChallengeName;if(C==="DEVICE_SRP_AUTH"){l.getDeviceResponse(o);return}if(l.signInUserSession=l.getCognitoUserSession(E.AuthenticationResult),l.cacheTokens(),E.AuthenticationResult.NewDeviceMetadata==null)return o.onSuccess(l.signInUserSession);var A=new Is(l.pool.getUserPoolName());A.generateHashDevice(E.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,E.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(k){if(k)return o.onFailure(k);var U={Salt:an.Buffer.from(A.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:an.Buffer.from(A.getVerifierDevices(),"hex").toString("base64")};l.verifierDevices=U.PasswordVerifier,l.deviceGroupKey=E.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,l.randomPassword=A.getRandomPassword(),l.client.request("ConfirmDevice",{DeviceKey:E.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:l.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:U,DeviceName:R4},function(N,R){return N?o.onFailure(N):(l.deviceKey=E.AuthenticationResult.NewDeviceMetadata.DeviceKey,l.cacheDeviceKeyAndPassword(),R.UserConfirmationNecessary===!0?o.onSuccess(l.signInUserSession,R.UserConfirmationNecessary):o.onSuccess(l.signInUserSession))})})})},t.changePassword=function(r,o,i,s){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return i(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:r,ProposedPassword:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:s},function(l){return l?i(l,null):i(null,"SUCCESS")})},t.enableMFA=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);var o=[],i={DeliveryMedium:"SMS",AttributeName:"phone_number"};o.push(i),this.client.request("SetUserSettings",{MFAOptions:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?r(s,null):r(null,"SUCCESS")})}
913,t.setUserMfaPreference=function(r,o,i){if(this.signInUserSession==null||!this.signInUserSession.isValid())return i(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:r,SoftwareTokenMfaSettings:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?i(s,null):i(null,"SUCCESS")})},t.disableMFA=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);var o=[];this.client.request("SetUserSettings",{MFAOptions:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(i){return i?r(i,null):r(null,"SUCCESS")})},t.deleteUser=function(r,o){var i=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:o},function(s){return s?r(s,null):(i.clearCachedUser(),r(null,"SUCCESS"))})},t.updateAttributes=function(r,o,i){var s=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return o(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:r,ClientMetadata:i},function(l,h){return l?o(l,null):s.getUserData(function(){return o(null,"SUCCESS",h)},{bypassCache:!0})})},t.getUserAttributes=function(r){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return r(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o,i){if(o)return r(o,null);for(var s=[],l=0;l<i.UserAttributes.length;l++){var h={Name:i.UserAttributes[l].Name,Value:i.UserAttributes[l].Value},f=new ks(h);s.push(f)}return r(null,s)})},t.getMFAOptions=function(r){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return r(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o,i){return o?r(o,null):r(null,i.MFAOptions)})},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(r){var o=this;return r===void 0&&(r={}),new Promise(function(i){var s=o.signInUserSession.getRefreshToken();s&&s.getToken()?o.refreshSession(s,i,r.clientMetadata):i()})},t.getUserData=function(r,o){var i=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),r(new Error("User is not authenticated"),null);var s=this.getUserDataFromCache();if(!s){this.fetchUserData().then(function(l){r(null,l)}).catch(r);return}if(this.isFetchUserDataAndTokenRequired(o)){this.fetchUserData().then(function(l){return i.refreshSessionIfPossible(o).then(function(){return l})}).then(function(l){return r(null,l)}).catch(r);return}try{r(null,JSON.parse(s));return}catch(l){this.clearCachedUserData(),r(l,null);return}},t.getUserDataFromCache=function(){var r=this.storage.getItem(this.userDataKey);return r},t.isFetchUserDataAndTokenRequired=function(r){var o=r||{},i=o.bypassCache,s=i===void 0?!1:i;return s},t.fetchUserData=function(){var r=this;return this.createGetUserRequest().then(function(o){return r.cacheUserData(o),o})},t.deleteAttributes=function(r,o){var i=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return o(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:r,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?o(s,null):i.getUserData(function(){return o(null,"SUCCESS")},{bypassCache:!0})})},t.resendConfirmationCode=function(r,o){var i={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:o};this.client.request("ResendConfirmationCode",i,function(s,l){return s?r(s,null):r(null,l)})},t.getSession=function(r,o){if(o===void 0&&(o={}),this.username==null)return r(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return r(null,this.signInUserSession);var i="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,s=i+".idToken",l=i+".accessToken",h=i+".refreshToken",f=i+".clockDrift";if(this.storage.getItem(s)){var g=new vm({IdToken:this.storage.getItem(s)}),w=new mm({AccessToken:this.storage.getItem(l)}),E=new _m({RefreshToken:this.storage.getItem(h)}),C=parseInt(this.storage.getItem(f),0)||0,A={IdToken:g,AccessToken:w,RefreshToken:E,ClockDrift:C},k=new wm(A);if(k.isValid())return this.signInUserSession=k,r(null,this.signInUserSession);if(!E.getToken())return r(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(E,r,o.clientMetadata)}else r(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(r,o,i){var s=this,l=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(o):o,h={};h.REFRESH_TOKEN=r.getToken();
913var f="CognitoIdentityServiceProvider."+this.pool.getClientId(),g=f+".LastAuthUser";if(this.storage.getItem(g)){this.username=this.storage.getItem(g);var w=f+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(w),h.DEVICE_KEY=this.deviceKey}var E={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:h,ClientMetadata:i};this.getUserContextData()&&(E.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",E,function(C,A){if(C)return C.code==="NotAuthorizedException"&&s.clearCachedUser(),l(C,null);if(A){var k=A.AuthenticationResult;return Object.prototype.hasOwnProperty.call(k,"RefreshToken")||(k.RefreshToken=r.getToken()),s.signInUserSession=s.getCognitoUserSession(k),s.cacheTokens(),l(null,s.signInUserSession)}})},t.cacheTokens=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId(),o=r+"."+this.username+".idToken",i=r+"."+this.username+".accessToken",s=r+"."+this.username+".refreshToken",l=r+"."+this.username+".clockDrift",h=r+".LastAuthUser";this.storage.setItem(o,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(i,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(s,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(l,""+this.signInUserSession.getClockDrift()),this.storage.setItem(h,this.username)},t.cacheUserData=function(r){this.storage.setItem(this.userDataKey,JSON.stringify(r))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,o=r+".deviceKey",i=r+".randomPasswordKey",s=r+".deviceGroupKey";this.storage.setItem(o,this.deviceKey),this.storage.setItem(i,this.randomPassword),this.storage.setItem(s,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,o=r+".deviceKey",i=r+".randomPasswordKey",s=r+".deviceGroupKey";this.storage.getItem(o)&&(this.deviceKey=this.storage.getItem(o),this.randomPassword=this.storage.getItem(i),this.deviceGroupKey=this.storage.getItem(s))},t.clearCachedDeviceKeyAndPassword=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,o=r+".deviceKey",i=r+".randomPasswordKey",s=r+".deviceGroupKey";this.storage.removeItem(o),this.storage.removeItem(i),this.storage.removeItem(s)},t.clearCachedTokens=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId(),o=r+"."+this.username+".idToken",i=r+"."+this.username+".accessToken",s=r+"."+this.username+".refreshToken",l=r+".LastAuthUser",h=r+"."+this.username+".clockDrift";this.storage.removeItem(o),this.storage.removeItem(i),this.storage.removeItem(s),this.storage.removeItem(l),this.storage.removeItem(h)},t.getCognitoUserSession=function(r){var o=new vm(r),i=new mm(r),s=new _m(r),l={IdToken:o,AccessToken:i,RefreshToken:s};return new wm(l)},t.forgotPassword=function(r,o){var i={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:o};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",i,function(s,l){return s?r.onFailure(s):typeof r.inputVerificationCode=="function"?r.inputVerificationCode(l):r.onSuccess(l)})},t.confirmPassword=function(r,o,i,s){var l={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:r,Password:o,ClientMetadata:s};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",l,function(h){return h?i.onFailure(h):i.onSuccess("SUCCESS")})}
913,t.getAttributeVerificationCode=function(r,o,i){if(this.signInUserSession==null||!this.signInUserSession.isValid())return o.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:r,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:i},function(s,l){return s?o.onFailure(s):typeof o.inputVerificationCode=="function"?o.inputVerificationCode(l):o.onSuccess("SUCCESS")})},t.verifyAttribute=function(r,o,i){if(this.signInUserSession==null||!this.signInUserSession.isValid())return i.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:r,Code:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?i.onFailure(s):i.onSuccess("SUCCESS")})},t.getDevice=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(o,i){return o?r.onFailure(o):r.onSuccess(i)})},t.forgetSpecificDevice=function(r,o){if(this.signInUserSession==null||!this.signInUserSession.isValid())return o.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:r},function(i){return i?o.onFailure(i):o.onSuccess("SUCCESS")})},t.forgetDevice=function(r){var o=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:r.onFailure,onSuccess:function(s){return o.deviceKey=null,o.deviceGroupKey=null,o.randomPassword=null,o.clearCachedDeviceKeyAndPassword(),r.onSuccess(s)}})},t.setDeviceStatusRemembered=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(o){return o?r.onFailure(o):r.onSuccess("SUCCESS")})},t.setDeviceStatusNotRemembered=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(o){return o?r.onFailure(o):r.onSuccess("SUCCESS")})}
913,t.listDevices=function(r,o,i){if(this.signInUserSession==null||!this.signInUserSession.isValid())return i.onFailure(new Error("User is not authenticated"));var s={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:r};o&&(s.PaginationToken=o),this.client.request("ListDevices",s,function(l,h){return l?i.onFailure(l):i.onSuccess(h)})},t.globalSignOut=function(r){var o=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(i){return i?r.onFailure(i):(o.clearCachedUser(),r.onSuccess("SUCCESS"))})},t.signOut=function(r){var o=this;if(!r||typeof r!="function"){this.cleanClientData();return}this.getSession(function(i,s){if(i)return r(i);o.revokeTokens(function(l){o.cleanClientData(),r(l)})})},t.revokeTokens=function(r){if(r===void 0&&(r=function(){}),typeof r!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession){var o=new Error("User is not authenticated");return r(o)}if(!this.signInUserSession.getAccessToken()){var i=new Error("No Access token available");return r(i)}var s=this.signInUserSession.getRefreshToken().getToken(),l=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(l)&&s)return this.revokeToken({token:s,callback:r});r()},t.isSessionRevocable=function(r){if(r&&typeof r.decodePayload=="function")try{var o=r.decodePayload(),i=o.origin_jti;return!!i}catch{}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(r){var o=r.token,i=r.callback;this.client.requestWithRetry("RevokeToken",{Token:o,ClientId:this.pool.getClientId()},function(s){if(s)return i(s);i()})},t.sendMFASelectionAnswer=function(r,o){var i=this,s={};s.USERNAME=this.username,s.ANSWER=r;var l={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:s,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",l,function(h,f){if(h)return o.onFailure(h);if(i.Session=f.Session,r==="SMS_MFA")return o.mfaRequired(f.ChallengeName,f.ChallengeParameters);if(r==="SOFTWARE_TOKEN_MFA")return o.totpRequired(f.ChallengeName,f.ChallengeParameters)})},t.getUserContextData=function(){var r=this.pool;return r.getUserContextData(this.username)},t.associateSoftwareToken=function(r){var o=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(i,s){return i?r.onFailure(i):r.associateSecretCode(s.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(i,s){return i?r.onFailure(i):(o.Session=s.Session,r.associateSecretCode(s.SecretCode))})},t.verifySoftwareToken=function(r,o,i){var s=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:r,FriendlyDeviceName:o},function(l,h){return l?i.onFailure(l):i.onSuccess(h)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:r,FriendlyDeviceName:o},function(l,h){if(l)return i.onFailure(l);s.Session=h.Session;var f={};f.USERNAME=s.username;var g={ChallengeName:"MFA_SETUP",ClientId:s.pool.getClientId(),ChallengeResponses:f,Session:s.Session};s.getUserContextData()&&(g.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",g,function(w,E){return w?i.onFailure(w):(s.signInUserSession=s.getCognitoUserSession(E.AuthenticationResult),s.cacheTokens(),i.onSuccess(s.signInUserSession))})})},e}(),D6="auth";function ar(){}ar.prototype.userAgent=T6();var F6=function(t){t&&(ar.prototype.userAgent&&!ar.prototype.userAgent.includes(t)&&(ar.prototype.userAgent=ar.prototype.userAgent.concat(" ",t)),(!ar.prototype.userAgent||ar.prototype.userAgent==="")&&(ar.prototype.userAgent=t))},R6=function(){ar.category=D6},B4=function(t){ar.framework=t},B6=function(t){var n=ar.category?" "+ar.category:"",r=ar.framework?" framework/"+ar.framework:"",o=""+ar.prototype.userAgent+n+r;return o};function O6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lc(e,t)}function Em(e){var t=typeof Map=="function"?new Map:void 0;return Em=function(r){if(r===null||!$6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Mf(r,arguments,Sm(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),lc(o,r)},Em(e)}function Mf(e,t,n){return U6()?Mf=Reflect.construct.bind():Mf=function(o,i,s){var l=[null];l.push.apply(l,i);var h=Function.bind.apply(o,l),f=new h;return s&&lc(f,s.prototype),f},Mf.apply(null,arguments)}function U6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $6(e){return Function.toString.call(e).indexOf("[native code]")!==-1}
913function lc(e,t){return lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lc(e,t)}function Sm(e){return Sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sm(e)}var M6=function(e){O6(t,e);function t(n,r,o,i){var s;return s=e.call(this,n)||this,s.code=r,s.name=o,s.statusCode=i,s}return t}(Em(Error)),L6=function(){function e(n,r,o){this.endpoint=r||"https://cognito-idp."+n+".amazonaws.com/";var i=o||{},s=i.credentials;this.fetchOptions=s?{credentials:s}:{}}var t=e.prototype;return t.promisifyRequest=function(r,o){var i=this;return new Promise(function(s,l){i.request(r,o,function(h,f){h?l(new M6(h.message,h.code,h.name,h.statusCode)):s(f)})})},t.requestWithRetry=function(r,o,i){var s=this,l=5*1e3;H6(function(h){return new Promise(function(f,g){s.request(r,h,function(w,E){w?g(w):f(E)})})},[o],l).then(function(h){return i(null,h)}).catch(function(h){return i(h)})},t.request=function(r,o,i){var s={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+r,"X-Amz-User-Agent":B6(),"Cache-Control":"no-store"},l=Object.assign({},this.fetchOptions,{headers:s,method:"POST",mode:"cors",body:JSON.stringify(o)}),h;fetch(this.endpoint,l).then(function(f){return h=f,f},function(f){throw f instanceof TypeError?new Error("Network error"):f}).then(function(f){return f.json().catch(function(){return{}})}).then(function(f){if(h.ok)return i(null,f);var g=(f.__type||f.code).split("#").pop(),w=new Error(f.message||f.Message||null);return w.name=g,w.code=g,i(w)}).catch(function(f){if(h&&h.headers&&h.headers.get("x-amzn-errortype"))try{var g=h.headers.get("x-amzn-errortype").split(":")[0],w=new Error(h.status?h.status.toString():null);return w.code=g,w.name=g,w.statusCode=h.status,i(w)}catch{return i(f)}else f instanceof Error&&f.message==="Network error"&&(f.code="NetworkError");return i(f)})},e}(),Lf={debug:function(){}},V6=function(t){var n="nonRetryable";return t&&t[n]};function O4(e,t,n,r){if(r===void 0&&(r=1),typeof e!="function")throw Error("functionToRetry must be a function");return Lf.debug(e.name+" attempt #"+r+" with args: "+JSON.stringify(t)),e.apply(void 0,t).catch(function(o){if(Lf.debug("error on "+e.name,o),V6(o))throw Lf.debug(e.name+" non retryable error",o),o;var i=n(r,t,o);if(Lf.debug(e.name+" retrying in "+i+" ms"),i!==!1)return new Promise(function(s){return setTimeout(s,i)}).then(function(){return O4(e,t,n,r+1)});throw o})}function j6(e){var t=100,n=100;return function(r){var o=Math.pow(2,r)*t+n*Math.random();return o>e?!1:o}}var z6=5*60*1e3;function H6(e,t,n){return n===void 0&&(n=z6),O4(e,t,j6(n))}/*!
914 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
915 * SPDX-License-Identifier: Apache-2.0
916 */var G6=55,W6=function(){function e(n,r){var o=n||{},i=o.UserPoolId,s=o.ClientId,l=o.endpoint,h=o.fetchOptions,f=o.AdvancedSecurityDataCollectionFlag;if(!i||!s)throw new Error("Both UserPoolId and ClientId are required.");if(i.length>G6||!/^[\w-]+_[0-9a-zA-Z]+$/.test(i))throw new Error("Invalid UserPoolId format.");var g=i.split("_")[0];this.userPoolId=i,this.clientId=s,this.client=new L6(g,l,h),this.advancedSecurityDataCollectionFlag=f!==!1,this.storage=n.Storage||new F4().getStorage(),r&&(this.wrapRefreshSessionCallback=r)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(r,o,i,s,l,h){var f=this,g={ClientId:this.clientId,Username:r,Password:o,UserAttributes:i,ValidationData:s,ClientMetadata:h};this.getUserContextData(r)&&(g.UserContextData=this.getUserContextData(r)),this.client.request("SignUp",g,function(w,E){if(w)return l(w,null);var C={Username:r,Pool:f,Storage:f.storage},A={user:new bm(C),userConfirmed:E.UserConfirmed,userSub:E.UserSub,codeDeliveryDetails:E.CodeDeliveryDetails};return l(null,A)})},t.getCurrentUser=function(){var r="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",o=this.storage.getItem(r);if(o){var i={Username:o,Pool:this,Storage:this.storage};return new bm(i)}return null},t.getUserContextData=function(r){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var o=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var i=o.getData(r,this.userPoolId,this.clientId);if(i){var s={EncodedData:i};return s}}return{}}},e}(),U4={exports:{}};/*!
917 * JavaScript Cookie v2.2.1
918 * https://github.com/js-cookie/js-cookie
919 *
920 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
921 * Released under the MIT license
922 */(function(e,t){(function(n){var r;if(e.exports=n(),r=!0,!r){var o=window.Cookies,i=window.Cookies=n();i.noConflict=function(){return window.Cookies=o,i}}})(function(){function n(){for(var i=0,s={};i<arguments.length;i++){var l=arguments[i];for(var h in l)s[h]=l[h]}return s}function r(i){return i.replace(/(%[0-9A-Z]{2}
922)+/g,decodeURIComponent)}function o(i){function s(){}function l(f,g,w){if(!(typeof document>"u")){w=n({path:"/"},s.defaults,w),typeof w.expires=="number"&&(w.expires=new Date(new Date*1+w.expires*864e5)),w.expires=w.expires?w.expires.toUTCString():"";try{var E=JSON.stringify(g);/^[\{\[]/.test(E)&&(g=E)}catch{}g=i.write?i.write(g,f):encodeURIComponent(String(g)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),f=encodeURIComponent(String(f)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var C="";for(var A in w)w[A]&&(C+="; "+A,w[A]!==!0&&(C+="="+w[A].split(";")[0]));return document.cookie=f+"="+g+C}}function h(f,g){if(!(typeof document>"u")){for(var w={},E=document.cookie?document.cookie.split("; "):[],C=0;C<E.length;C++){var A=E[C].split("="),k=A.slice(1).join("=");!g&&k.charAt(0)==='"'&&(k=k.slice(1,-1));try{var U=r(A[0]);if(k=(i.read||i)(k,U)||r(k),g)try{k=JSON.parse(k)}catch{}if(w[U]=k,f===U)break}catch{}}return f?w[f]:w}}return s.set=l,s.get=function(f){return h(f,!1)},s.getJSON=function(f){return h(f,!0)},s.remove=function(f,g){l(f,"",n(g,{expires:-1}))},s.defaults={},s.withConverter=o,s}return o(function(){})})})(U4);var fc=U4.exports,q6=function(){function e(n){if(n===void 0&&(n={}),n.domain&&(this.domain=n.domain),n.path?this.path=n.path:this.path="/",Object.prototype.hasOwnProperty.call(n,"expires")?this.expires=n.expires:this.expires=365,Object.prototype.hasOwnProperty.call(n,"secure")?this.secure=n.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(n,"sameSite")){if(!["strict","lax","none"].includes(n.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(n.sameSite==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=n.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(r,o){var i={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(i.sameSite=this.sameSite),fc.set(r,o,i),fc.get(r)},t.getItem=function(r){return fc.get(r)},t.removeItem=function(r){var o={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(o.sameSite=this.sameSite),fc.remove(r,o)},t.clear=function(){for(var r=fc.get(),o=Object.keys(r).length,i=0;i<o;++i)this.removeItem(Object.keys(r)[i]);return{}},e}(),Vf={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */Vf.exports,function(e,t){(function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof pn=="object"&&pn;(i.global===i||i.window===i||i.self===i)&&(n=i);var s,l=2147483647,h=36,f=1,g=26,w=38,E=700,C=72,A=128,k="-",U=/^xn--/,N=/[^\x20-\x7E]/,R=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=h-f,W=Math.floor,ee=String.fromCharCode,b;function fe(Ue){throw RangeError(L[Ue])}function ae(Ue,ne){for(var oe=Ue.length,Pe=[];oe--;)Pe[oe]=ne(Ue[oe]);return Pe}function Ie(Ue,ne){var oe=Ue.split("@"),Pe="";oe.length>1&&(Pe=oe[0]+"@",Ue=oe[1]),Ue=Ue.replace(R,".");var Oe=Ue.split("."),We=ae(Oe,ne).join(".");return Pe+We}function xe(Ue){for(var ne=[],oe=0,Pe=Ue.length,Oe,We;oe<Pe;)Oe=Ue.charCodeAt(oe++),Oe>=55296&&Oe<=56319&&oe<Pe?(We=Ue.charCodeAt(oe++),(We&64512)==56320?ne.push(((Oe&1023)<<10)+(We&1023)+65536):(ne.push(Oe),oe--)):ne.push(Oe);return ne}function De(Ue){return ae(Ue,function(ne){var oe="";return ne>65535&&(ne-=65536,oe+=ee(ne>>>10&1023|55296),ne=56320|ne&1023),oe+=ee(ne),oe}).join("")}function ye(Ue){return Ue-48<10?Ue-22:Ue-65<26?Ue-65:Ue-97<26?Ue-97:h}function je(Ue,ne){return Ue+22+75*(Ue<26)-((ne!=0)<<5)}function rt(Ue,ne,oe){var Pe=0;for(Ue=oe?W(Ue/E):Ue>>1,Ue+=W(Ue/ne);Ue>z*g>>1;Pe+=h)Ue=W(Ue/z);return W(Pe+(z+1)*Ue/(Ue+w))}function ot(Ue){var ne=[],oe=Ue.length,Pe,Oe=0,We=A,Qe=C,se,be,Ae,Ne,Me,Ye,pe,Le,st;for(se=Ue.lastIndexOf(k),se<0&&(se=0),be=0;be<se;++be)Ue.charCodeAt(be)>=128&&fe("not-basic"),ne.push(Ue.charCodeAt(be));for(Ae=se>0?se+1:0;Ae<oe;){for(Ne=Oe,Me=1,Ye=h;Ae>=oe&&fe("invalid-input"),pe=ye(Ue.charCodeAt(Ae++)),(pe>=h||pe>W((l-Oe)/Me))&&fe("overflow"),Oe+=pe*Me,Le=Ye<=Qe?f:Ye>=Qe+g?g:Ye-Qe,!(pe<Le);Ye+=h)st=h-Le,Me>W(l/st)&&fe("overflow"),Me*=st;Pe=ne.length+1,Qe=rt(Oe-Ne,Pe,Ne==0),W(Oe/Pe)>l-We&&fe("overflow"),We+=W(Oe/Pe),Oe%=Pe,ne.splice(Oe++,0,We)}return De(ne)}function Je(Ue){var ne,oe,Pe,Oe,We,Qe,se,be,Ae,Ne,Me,Ye=[],pe,Le,st,Bt;for(Ue=xe(Ue),pe=Ue.length,ne=A,oe=0,We=C,Qe=0;Qe<pe;++Qe)Me=Ue[Qe],Me<128&&Ye.push(ee(Me));for(Pe=Oe=Ye.length,Oe&&Ye.push(k);Pe<pe;){for(se=l,Qe=0;Qe<pe;++Qe)Me=Ue[Qe],Me>=ne&&Me<se&&(se=Me);for(Le=Pe+1,se-ne>W((l-oe)/Le)&&fe("overflow"),oe+=(se-ne)*Le,ne=se,Qe=0;Qe<pe;++Qe)if(Me=Ue[Qe],Me<ne&&++oe>l&&fe("overflow"),Me==ne){for(be=oe,Ae=h;Ne=Ae<=We?f:Ae>=We+g?g:Ae-We,!(be<Ne);Ae+=h)Bt=be-Ne,st=h-Ne,Ye.push(ee(je(Ne+Bt%st,0))),be=W(Bt/st);Ye.push(ee(je(be,0))),We=rt(oe,Le,Pe==Oe),oe=0,++Pe}++oe,++ne}return Ye.join("")}function dt(Ue){return Ie(Ue,function(ne){return U.test(ne)?ot(ne.slice(4).toLowerCase()):ne})}function mt(Ue){return Ie(Ue,function(ne){return N.test(ne)?"xn--"+Je(ne):ne})}if(s={version:"1.3.2",ucs2:{decode:xe,encode:De},decode:ot,encode:Je,toASCII:mt,toUnicode:dt},r&&o)if(e.exports==r)o.exports=s;else for(b in s)s.hasOwnProperty(b)&&(r[b]=s[b]);else n.punycode=s})(pn)}(Vf,Vf.exports);var K6=Vf.exports,Y6={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},dc={};function J6(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var X6=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if(typeof e!="string"||e.length===0)return o;var i=/\+/g;e=e.split(t);var s=1e3;r&&typeof r.maxKeys=="number"&&(s=r.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var h=0;h<l;++h){var f=e[h].replace(i,"%20"),g=f.indexOf(n),w,E,C,A;g>=0?(w=f.substr(0,g),E=f.substr(g+1)):(w=f,E=""),C=decodeURIComponent(w),A=decodeURIComponent(E),J6(o,C)?Array.isArray(o[C])?o[C].push(A):o[C]=[o[C],A]:o[C]=A}return o},hc=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Z6=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var i=encodeURIComponent(hc(o))+n;return Array.isArray(e[o])?e[o].map(function(s){return i+encodeURIComponent(hc(s))}).join(t):i+encodeURIComponent(hc(e[o]))}).join(t):r?encodeURIComponent(hc(r))+n+encodeURIComponent(hc(e)):""};dc.decode=dc.parse=X6,dc.encode=dc.stringify=Z6;var Q6=K6,io=Y6,Vo=V4;function oo(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var e$=/^([a-z0-9.+-]+:)/i,t$=/:[0-9]*$/,n$=/^(\/\/?(?!\/)[^\?\s]
vendor: 7,128 bytes, lines 922-923
922*)(\?[^\s]*)?$/,r$=["<",">",'"',"`"," ","\r",`
923`,"	"],i$=["{","}","|","\\","^","`"].concat(r$),Cm=["'"].concat(i$),$4=["%","/","?",";","#"].concat(Cm),M4=["/","?","#"],o$=255,L4=/^[+a-z0-9A-Z_-]{0,63}$/,a$=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,s$={javascript:!0,"javascript:":!0},xm={javascript:!0,"javascript:":!0},Ps={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Am=dc;function V4(e,t,n){if(e&&io.isObject(e)&&e instanceof oo)return e;var r=new oo;return r.parse(e,t,n),r}oo.prototype.parse=function(e,t,n){if(!io.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),e=i.join(o);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var h=n$.exec(l);if(h)return this.path=l,this.href=l,this.pathname=h[1],h[2]?(this.search=h[2],t?this.query=Am.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var f=e$.exec(l);if(f){f=f[0];var g=f.toLowerCase();this.protocol=g,l=l.substr(f.length)}if(n||f||l.match(/^\/\/[^@\/]+@[^@\/]+/)){var w=l.substr(0,2)==="//";w&&!(f&&xm[f])&&(l=l.substr(2),this.slashes=!0)}if(!xm[f]&&(w||f&&!Ps[f])){for(var E=-1,C=0;C<M4.length;C++){var A=l.indexOf(M4[C]);A!==-1&&(E===-1||A<E)&&(E=A)}var k,U;E===-1?U=l.lastIndexOf("@"):U=l.lastIndexOf("@",E),U!==-1&&(k=l.slice(0,U),l=l.slice(U+1),this.auth=decodeURIComponent(k)),E=-1;for(var C=0;C<$4.length;C++){var A=l.indexOf($4[C]);A!==-1&&(E===-1||A<E)&&(E=A)}E===-1&&(E=l.length),this.host=l.slice(0,E),l=l.slice(E),this.parseHost(),this.hostname=this.hostname||"";var N=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!N)for(var R=this.hostname.split(/\./),C=0,L=R.length;C<L;C++){var z=R[C];if(z&&!z.match(L4)){for(var W="",ee=0,b=z.length;ee<b;ee++)z.charCodeAt(ee)>127?W+="x":W+=z[ee];if(!W.match(L4)){var fe=R.slice(0,C),ae=R.slice(C+1),Ie=z.match(a$);Ie&&(fe.push(Ie[1]),ae.unshift(Ie[2])),ae.length&&(l="/"+ae.join(".")+l),this.hostname=fe.join(".");break}}}this.hostname.length>o$?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=Q6.toASCII(this.hostname));var xe=this.port?":"+this.port:"",De=this.hostname||"";this.host=De+xe,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!s$[g])for(var C=0,L=Cm.length;C<L;C++){var ye=Cm[C];if(l.indexOf(ye)!==-1){var je=encodeURIComponent(ye);je===ye&&(je=escape(ye)),l=l.split(ye).join(je)}}var rt=l.indexOf("#");rt!==-1&&(this.hash=l.substr(rt),l=l.slice(0,rt));var ot=l.indexOf("?");if(ot!==-1?(this.search=l.substr(ot),this.query=l.substr(ot+1),t&&(this.query=Am.parse(this.query)),l=l.slice(0,ot)):t&&(this.search="",this.query={}),l&&(this.pathname=l),Ps[g]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var xe=this.pathname||"",Je=this.search||"";this.path=xe+Je}return this.href=this.format(),this},oo.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&io.isObject(this.query)&&Object.keys(this.query).length&&(i=Am.stringify(this.query));var s=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Ps[t])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),r&&r.charAt(0)!=="#"&&(r="#"+r),s&&s.charAt(0)!=="?"&&(s="?"+s),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),s=s.replace("#","%23"),t+o+n+s+r},oo.prototype.resolve=function(e){return this.resolveObject(V4(e,!1,!0)).format()},oo.prototype.resolveObject=function(e){if(io.isString(e)){var t=new oo;t.parse(e,!1,!0),e=t}for(var n=new oo,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var h=s[l];h!=="protocol"&&(n[h]=e[h])}return Ps[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Ps[e.protocol]){for(var f=Object.keys(e),g=0;g<f.length;g++){var w=f[g];n[w]=e[w]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!xm[e.protocol]){for(var L=(e.pathname||"").split("/");L.length&&!(e.host=L.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),L[0]!==""&&L.unshift(""),L.length<2&&L.unshift(""),n.pathname=L.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var E=n.pathname||"",C=n.search||"";n.path=E+C}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var A=n.pathname&&n.pathname.charAt(0)==="/",k=e.host||e.pathname&&e.pathname.charAt(0)==="/",U=k||A||n.host&&e.pathname,N=U,R=n.pathname&&n.pathname.split("/")||[],L=e.pathname&&e.pathname.split("/")||[],z=n.protocol&&!Ps[n.protocol];if(z&&(n.hostname="",n.port=null,n.host&&(R[0]===""?R[0]=n.host:R.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(L[0]===""?L[0]=e.host:L.unshift(e.host)),e.host=null),U=U&&(L[0]===""||R[0]==="")),k)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,R=L;else if(L.length)R||(R=[]),R.pop(),R=R.concat(L),n.search=e.search,n.query=e.query;else if(!io.isNullOrUndefined(e.search)){if(z){n.hostname=n.host=R.shift();var W=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;W&&(n.auth=W.shift(),n.host=n.hostname=W.shift())}return n.search=e.search,n.query=e.query,(!io.isNull(n.pathname)||!io.isNull(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!R.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var ee=R.slice(-1)[0],b=(n.host||e.host||R.length>1)&&(ee==="."||ee==="..")||ee==="",fe=0,ae=R.length;ae>=0;ae--)ee=R[ae],ee==="."?R.splice(ae,1):ee===".."?(R.splice(ae,1),fe++):fe&&(R.splice(ae,1),fe--);if(!U&&!N)for(;fe--;fe)R.unshift("..");U&&R[0]!==""&&(!R[0]||R[0].charAt(0)!=="/")&&R.unshift(""),b&&R.join("/").substr(-1)!=="/"&&R.push("");var Ie=R[0]===""||R[0]&&R[0].charAt(0)==="/";if(z){n.hostname=n.host=Ie?"":R.length?R.shift():"";var W=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;W&&(n.auth=W.shift(),n.host=n.hostname=W.shift())}return U=U||n.host&&R.length,U&&!Ie&&R.unshift(""),R.length?n.pathname=R.join("/"):(n.pathname=null,n.path=null),(!io.isNull(n.pathname)||!io.isNull(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},oo.prototype.parseHost=function(){var e=this.host,t=t$.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var u$="_self",c$=function(e){var t=window.open(e,u$);
vendor: 19,124 bytes, lines 923-928
923return t?Promise.resolve(t):Promise.reject()},l$=function(e){window.sessionStorage.setItem("oauth_state",e)},f$=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e},d$=function(e){window.sessionStorage.setItem("ouath_pkce_key",e)},h$=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e},j4={};/*!
924 * The buffer module from node.js, for the browser.
925 *
926 * @author   Feross Aboukhadijeh <http://feross.org>
927 * @license  MIT
928 */(function(e){var t=cc,n=Uf,r=A4;e.Buffer=l,e.SlowBuffer=N,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=pn.TYPED_ARRAY_SUPPORT!==void 0?pn.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=i();function o(){try{var I=new Uint8Array(1);return I.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},I.foo()===42&&typeof I.subarray=="function"&&I.subarray(1,1).byteLength===0}catch{return!1}}function i(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(I,m){if(i()<m)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(I=new Uint8Array(m),I.__proto__=l.prototype):(I===null&&(I=new l(m)),I.length=m),I}function l(I,m,y){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(I,m,y);if(typeof I=="number"){if(typeof m=="string")throw new Error("If encoding is specified then the first argument must be a string");return w(this,I)}return h(this,I,m,y)}l.poolSize=8192,l._augment=function(I){return I.__proto__=l.prototype,I};function h(I,m,y,P){if(typeof m=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&m instanceof ArrayBuffer?A(I,m,y,P):typeof m=="string"?E(I,m,y):k(I,m)}l.from=function(I,m,y){return h(null,I,m,y)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0}));function f(I){if(typeof I!="number")throw new TypeError('"size" argument must be a number');if(I<0)throw new RangeError('"size" argument must not be negative')}function g(I,m,y,P){return f(m),m<=0?s(I,m):y!==void 0?typeof P=="string"?s(I,m).fill(y,P):s(I,m).fill(y):s(I,m)}l.alloc=function(I,m,y){return g(null,I,m,y)};function w(I,m){if(f(m),I=s(I,m<0?0:U(m)|0),!l.TYPED_ARRAY_SUPPORT)for(var y=0;y<m;++y)I[y]=0;return I}l.allocUnsafe=function(I){return w(null,I)},l.allocUnsafeSlow=function(I){return w(null,I)};function E(I,m,y){if((typeof y!="string"||y==="")&&(y="utf8"),!l.isEncoding(y))throw new TypeError('"encoding" must be a valid string encoding');var P=R(m,y)|0;I=s(I,P);var $=I.write(m,y);return $!==P&&(I=I.slice(0,$)),I}function C(I,m){var y=m.length<0?0:U(m.length)|0;I=s(I,y);for(var P=0;P<y;P+=1)I[P]=m[P]&255;return I}function A(I,m,y,P){if(m.byteLength,y<0||m.byteLength<y)throw new RangeError("'offset' is out of bounds");if(m.byteLength<y+(P||0))throw new RangeError("'length' is out of bounds");return y===void 0&&P===void 0?m=new Uint8Array(m):P===void 0?m=new Uint8Array(m,y):m=new Uint8Array(m,y,P),l.TYPED_ARRAY_SUPPORT?(I=m,I.__proto__=l.prototype):I=C(I,m),I}function k(I,m){if(l.isBuffer(m)){var y=U(m.length)|0;return I=s(I,y),I.length===0||m.copy(I,0,0,y),I}if(m){if(typeof ArrayBuffer<"u"&&m.buffer instanceof ArrayBuffer||"length"in m)return typeof m.length!="number"||et(m.length)?s(I,0):C(I,m);if(m.type==="Buffer"&&r(m.data))return C(I,m.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function U(I){if(I>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return I|0}function N(I){return+I!=I&&(I=0),l.alloc(+I)}l.isBuffer=function(m){return!!(m!=null&&m._isBuffer)},l.compare=function(m,y){if(!l.isBuffer(m)||!l.isBuffer(y))throw new TypeError("Arguments must be Buffers");if(m===y)return 0;for(var P=m.length,$=y.length,K=0,J=Math.min(P,$);K<J;++K)if(m[K]!==y[K]){P=m[K],$=y[K];break}return P<$?-1:$<P?1:0},l.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(m,y){if(!r(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return l.alloc(0);var P;if(y===void 0)for(y=0,P=0;P<m.length;++P)y+=m[P].length;var $=l.allocUnsafe(y),K=0;for(P=0;P<m.length;++P){var J=m[P];if(!l.isBuffer(J))throw new TypeError('"list" argument must be an Array of Buffers');J.copy($,K),K+=J.length}return $};function R(I,m){if(l.isBuffer(I))return I.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(I)||I instanceof ArrayBuffer))return I.byteLength;typeof I!="string"&&(I=""+I);var y=I.length;if(y===0)return 0;for(var P=!1;;)switch(m){case"ascii":case"latin1":case"binary":return y;case"utf8":case"utf-8":case void 0:return Ye(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y*2;case"hex":return y>>>1;case"base64":return st(I).length;default:if(P)return Ye(I).length;m=(""+m).toLowerCase(),P=!0}}l.byteLength=R;function L(I,m,y){var P=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((y===void 0||y>this.length)&&(y=this.length),y<=0)||(y>>>=0,m>>>=0,y<=m))return"";for(I||(I="utf8");;)switch(I){case"hex":return mt(this,m,y);case"utf8":case"utf-8":return je(this,m,y);case"ascii":return Je(this,m,y);case"latin1":case"binary":return dt(this,m,y);case"base64":return ye(this,m,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue(this,m,y);default:if(P)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),P=!0}}l.prototype._isBuffer=!0;function z(I,m,y){var P=I[m];I[m]=I[y],I[y]=P}l.prototype.swap16=function(){var m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var y=0;y<m;y+=2)z(this,y,y+1);return this},l.prototype.swap32=function(){var m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var y=0;y<m;y+=4)z(this,y,y+3),z(this,y+1,y+2);return this},l.prototype.swap64=function(){var m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var y=0;y<m;y+=8)z(this,y,y+7),z(this,y+1,y+6),z(this,y+2,y+5),z(this,y+3,y+4);return this},l.prototype.toString=function(){var m=this.length|0;return m===0?"":arguments.length===0?je(this,0,m):L.apply(this,arguments)},l.prototype.equals=function(m){if(!l.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:l.compare(this,m)===0},l.prototype.inspect=function(){var m="",y=e.INSPECT_MAX_BYTES;return this.length>0&&(m=this.toString("hex",0,y).match(/.{2}/g).join(" "),this.length>y&&(m+=" ... ")),"<Buffer "+m+">"},l.prototype.compare=function(m,y,P,$,K){if(!l.isBuffer(m))throw new TypeError("Argument must be a Buffer");if(y===void 0&&(y=0),P===void 0&&(P=m?m.length:0),$===void 0&&($=0),K===void 0&&(K=this.length),y<0||P>m.length||$<0||K>this.length)throw new RangeError("out of range index");if($>=K&&y>=P)return 0;if($>=K)return-1;if(y>=P)return 1;if(y>>>=0,P>>>=0,$>>>=0,K>>>=0,this===m)return 0;for(var J=K-$,me=P-y,Be=Math.min(J,me),Ze=this.slice($,K),ie=m.slice(y,P),de=0;de<Be;++de)if(Ze[de]!==ie[de]){J=Ze[de],me=ie[de];break}return J<me?-1:me<J?1:0};function W(I,m,y,P,$){if(I.length===0)return-1;if(typeof y=="string"?(P=y,y=0):y>2147483647?y=2147483647:y<-2147483648&&(y=-2147483648),y=+y,isNaN(y)&&(y=$?0:I.length-1),y<0&&(y=I.length+y),y>=I.length){if($)return-1;y=I.length-1}else if(y<0)if($)y=0;else return-1;if(typeof m=="string"&&(m=l.from(m,P)),l.isBuffer(m))return m.length===0?-1:ee(I,m,y,P,$);if(typeof m=="number")return m=m&255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(I,m,y):Uint8Array.prototype.lastIndexOf.call(I,m,y):ee(I,[m],y,P,$);throw new TypeError("val must be string, number or Buffer")}function ee(I,m,y,P,$){var K=1,J=I.length,me=m.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(I.length<2||m.length<2)return-1;K=2,J/=2,me/=2,y/=2}function Be(ut,lt){return K===1?ut[lt]:ut.readUInt16BE(lt*K)}var Ze;if($){var ie=-1;for(Ze=y;Ze<J;Ze++)if(Be(I,Ze)===Be(m,ie===-1?0:Ze-ie)){if(ie===-1&&(ie=Ze),Ze-ie+1===me)return ie*K}else ie!==-1&&(Ze-=Ze-ie),ie=-1}else for(y+me>J&&(y=J-me),Ze=y;Ze>=0;Ze--){for(var de=!0,$e=0;$e<me;$e++)if(Be(I,Ze+$e)!==Be(m,$e)){de=!1;break}if(de)return Ze}return-1}l.prototype.includes=function(m,y,P){return this.indexOf(m,y,P)!==-1},l.prototype.indexOf=function(m,y,P){return W(this,m,y,P,!0)},l.prototype.lastIndexOf=function(m,y,P){return W(this,m,y,P,!1)};function b(I,m,y,P){y=Number(y)||0;var $=I.length-y;P?(P=Number(P),P>$&&(P=$)):P=$;var K=m.length;if(K%2!==0)throw new TypeError("Invalid hex string");P>K/2&&(P=K/2);for(var J=0;J<P;++J){var me=parseInt(m.substr(J*2,2),16);if(isNaN(me))return J;I[y+J]=me}return J}function fe(I,m,y,P){return Bt(Ye(m,I.length-y),I,y,P)}function ae(I,m,y,P){return Bt(pe(m),I,y,P)}function Ie(I,m,y,P){return ae(I,m,y,P)}function xe(I,m,y,P){return Bt(st(m),I,y,P)}function De(I,m,y,P){return Bt(Le(m,I.length-y),I,y,P)}l.prototype.write=function(m,y,P,$){if(y===void 0)$="utf8",P=this.length,y=0;else if(P===void 0&&typeof y=="string")$=y,P=this.length,y=0;else if(isFinite(y))y=y|0,isFinite(P)?(P=P|0,$===void 0&&($="utf8")):($=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-y;if((P===void 0||P>K)&&(P=K),m.length>0&&(P<0||y<0)||y>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var J=!1;;)switch($){case"hex":return b(this,m,y,P);case"utf8":case"utf-8":return fe(this,m,y,P);case"ascii":return ae(this,m,y,P);case"latin1":case"binary":return Ie(this,m,y,P);case"base64":return xe(this,m,y,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,m,y,P);default:if(J)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),J=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ye(I,m,y){return m===0&&y===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(m,y))}function je(I,m,y){y=Math.min(I.length,y);for(var P=[],$=m;$<y;){var K=I[$],J=null,me=K>239?4:K>223?3:K>191?2:1;if($+me<=y){var Be,Ze,ie,de;switch(me){case 1:K<128&&(J=K);break;case 2:Be=I[$+1],(Be&192)===128&&(de=(K&31)<<6|Be&63,de>127&&(J=de));break;case 3:Be=I[$+1],Ze=I[$+2],(Be&192)===128&&(Ze&192)===128&&(de=(K&15)<<12|(Be&63)<<6|Ze&63,de>2047&&(de<55296||de>57343)&&(J=de));break;case 4:Be=I[$+1],Ze=I[$+2],ie=I[$+3],(Be&192)===128&&(Ze&192)===128&&(ie&192)===128&&(de=(K&15)<<18|(Be&63)<<12|(Ze&63)<<6|ie&63,de>65535&&de<1114112&&(J=de))}}J===null?(J=65533,me=1):J>65535&&(J-=65536,P.push(J>>>10&1023|55296),J=56320|J&1023),P.push(J),$+=me}return ot(P)}var rt=4096;function ot(I){var m=I.length;if(m<=rt)return String.fromCharCode.apply(String,I);for(var y="",P=0;P<m;)y+=String.fromCharCode.apply(String,I.slice(P,P+=rt));return y}function Je(I,m,y){var P="";y=Math.min(I.length,y);for(var $=m;$<y;++$)P+=String.fromCharCode(I[$]&127);return P}function dt(I,m,y){var P="";y=Math.min(I.length,y);for(var $=m;$<y;++$)P+=String.fromCharCode(I[$]);return P}function mt(I,m,y){var P=I.length;(!m||m<0)&&(m=0),(!y||y<0||y>P)&&(y=P);for(var $="",K=m;K<y;++K)$+=Me(I[K]);return $}function Ue(I,m,y){for(var P=I.slice(m,y),$="",K=0;K<P.length;K+=2)$+=String.fromCharCode(P[K]+P[K+1]*256);return $}l.prototype.slice=function(m,y){var P=this.length;m=~~m,y=y===void 0?P:~~y,m<0?(m+=P,m<0&&(m=0)):m>P&&(m=P),y<0?(y+=P,y<0&&(y=0)):y>P&&(y=P),y<m&&(y=m);var $;if(l.TYPED_ARRAY_SUPPORT)$=this.subarray(m,y),$.__proto__=l.prototype;else{var K=y-m;$=new l(K,void 0);for(var J=0;J<K;++J)$[J]=this[J+m]}return $};function ne(I,m,y){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+m>y)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=this[m],K=1,J=0;++J<y&&(K*=256);)$+=this[m+J]*K;return $},l.prototype.readUIntBE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=this[m+--y],K=1;y>0&&(K*=256);)$+=this[m+--y]*K;return $},l.prototype.readUInt8=function(m,y){return y||ne(m,1,this.length),this[m]},l.prototype.readUInt16LE=function(m,y){return y||ne(m,2,this.length),this[m]|this[m+1]<<8},l.prototype.readUInt16BE=function(m,y){return y||ne(m,2,this.length),this[m]<<8|this[m+1]},l.prototype.readUInt32LE=function(m,y){return y||ne(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},l.prototype.readUInt32BE=function(m,y){return y||ne(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},l.prototype.readIntLE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=this[m],K=1,J=0;++J<y&&(K*=256);)$+=this[m+J]*K;return K*=128,$>=K&&($-=Math.pow(2,8*y)),$},l.prototype.readIntBE=function(m,y,P){m=m|0,y=y|0,P||ne(m,y,this.length);for(var $=y,K=1,J=this[m+--$];$>0&&(K*=256);)J+=this[m+--$]*K;return K*=128,J>=K&&(J-=Math.pow(2,8*y)),J},l.prototype.readInt8=function(m,y){return y||ne(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},l.prototype.readInt16LE=function(m,y){y||ne(m,2,this.length);var P=this[m]|this[m+1]<<8;return P&32768?P|4294901760:P},l.prototype.readInt16BE=function(m,y){y||ne(m,2,this.length);var P=this[m+1]|this[m]<<8;return P&32768?P|4294901760:P},l.prototype.readInt32LE=function(m,y){return y||ne(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},l.prototype.readInt32BE=function(m,y){return y||ne(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},l.prototype.readFloatLE=function(m,y){return y||ne(m,4,this.length),n.read(this,m,!0,23,4)},l.prototype.readFloatBE=function(m,y){return y||ne(m,4,this.length),n.read(this,m,!1,23,4)},l.prototype.readDoubleLE=function(m,y){return y||ne(m,8,this.length),n.read(this,m,!0,52,8)},l.prototype.readDoubleBE=function(m,y){return y||ne(m,8,this.length),n.read(this,m,!1,52,8)};function oe(I,m,y,P,$,K){if(!l.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>$||m<K)throw new RangeError('"value" argument is out of bounds');if(y+P>I.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function(m,y,P,$){if(m=+m,y=y|0,P=P|0,!$){var K=Math.pow(2,8*P)-1;oe(this,m,y,P,K,0)}var J=1,me=0;for(this[y]=m&255;++me<P&&(J*=256);)this[y+me]=m/J&255;return y+P},l.prototype.writeUIntBE=function(m,y,P,$){if(m=+m,y=y|0,P=P|0,!$){var K=Math.pow(2,8*P)-1;oe(this,m,y,P,K,0)}var J=P-1,me=1;for(this[y+J]=m&255;--J>=0&&(me*=256);)this[y+J]=m/me&255;return y+P},l.prototype.writeUInt8=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,1,255,0),l.TYPED_ARRAY_SUPPORT||(m=Math.floor(m)),this[y]=m&255,y+1};function Pe(I,m,y,P){m<0&&(m=65535+m+1);for(var $=0,K=Math.min(I.length-y,2);$<K;++$)I[y+$]=(m&255<<8*(P?$:1-$))>>>(P?$:1-$)*8}l.prototype.writeUInt16LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[y]=m&255,this[y+1]=m>>>8):Pe(this,m,y,!0),y+2},l.prototype.writeUInt16BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>8,this[y+1]=m&255):Pe(this,m,y,!1),y+2};function Oe(I,m,y,P){m<0&&(m=4294967295+m+1);for(var $=0,K=Math.min(I.length-y,4);$<K;++$)I[y+$]=m>>>(P?$:3-$)*8&255}l.prototype.writeUInt32LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[y+3]=m>>>24,this[y+2]=m>>>16,this[y+1]=m>>>8,this[y]=m&255):Oe(this,m,y,!0),y+4},l.prototype.writeUInt32BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>24,this[y+1]=m>>>16,this[y+2]=m>>>8,this[y+3]=m&255):Oe(this,m,y,!1),y+4},l.prototype.writeIntLE=function(m,y,P,$){if(m=+m,y=y|0,!$){var K=Math.pow(2,8*P-1);oe(this,m,y,P,K-1,-K)}var J=0,me=1,Be=0;for(this[y]=m&255;++J<P&&(me*=256);)m<0&&Be===0&&this[y+J-1]!==0&&(Be=1),this[y+J]=(m/me>>0)-Be&255;return y+P},l.prototype.writeIntBE=function(m,y,P,$){if(m=+m,y=y|0,!$){var K=Math.pow(2,8*P-1);oe(this,m,y,P,K-1,-K)}var J=P-1,me=1,Be=0;for(this[y+J]=m&255;--J>=0&&(me*=256);)m<0&&Be===0&&this[y+J+1]!==0&&(Be=1),this[y+J]=(m/me>>0)-Be&255;return y+P},l.prototype.writeInt8=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,1,127,-128),l.TYPED_ARRAY_SUPPORT||(m=Math.floor(m)),m<0&&(m=255+m+1),this[y]=m&255,y+1},l.prototype.writeInt16LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[y]=m&255,this[y+1]=m>>>8):Pe(this,m,y,!0),y+2},l.prototype.writeInt16BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>8,this[y+1]=m&255):Pe(this,m,y,!1),y+2},l.prototype.writeInt32LE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[y]=m&255,this[y+1]=m>>>8,this[y+2]=m>>>16,this[y+3]=m>>>24):Oe(this,m,y,!0),y+4},l.prototype.writeInt32BE=function(m,y,P){return m=+m,y=y|0,P||oe(this,m,y,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),l.TYPED_ARRAY_SUPPORT?(this[y]=m>>>24,this[y+1]=m>>>16,this[y+2]=m>>>8,this[y+3]=m&255):Oe(this,m,y,!1),y+4};function We(I,m,y,P,$,K){if(y+P>I.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("Index out of range")}function Qe(I,m,y,P,$){return $||We(I,m,y,4),n.write(I,m,y,P,23,4),y+4}l.prototype.writeFloatLE=function(m,y,P){return Qe(this,m,y,!0,P)},l.prototype.writeFloatBE=function(m,y,P){return Qe(this,m,y,!1,P)};function se(I,m,y,P,$){return $||We(I,m,y,8),n.write(I,m,y,P,52,8),y+8}l.prototype.writeDoubleLE=function(m,y,P){return se(this,m,y,!0,P)},l.prototype.writeDoubleBE=function(m,y,P){return se(this,m,y,!1,P)},l.prototype.copy=function(m,y,P,$){if(P||(P=0),!$&&$!==0&&($=this.length),y>=m.length&&(y=m.length),y||(y=0),$>0&&$<P&&($=P),$===P||m.length===0||this.length===0)return 0;if(y<0)throw new RangeError("targetStart out of bounds");if(P<0||P>=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),m.length-y<$-P&&($=m.length-y+P);var K=$-P,J;if(this===m&&P<y&&y<$)for(J=K-1;J>=0;--J)m[J+y]=this[J+P];else if(K<1e3||!l.TYPED_ARRAY_SUPPORT)for(J=0;J<K;++J)m[J+y]=this[J+P];else Uint8Array.prototype.set.call(m,this.subarray(P,P+K),y);return K},l.prototype.fill=function(m,y,P,$){if(typeof m=="string"){if(typeof y=="string"?($=y,y=0,P=this.length):typeof P=="string"&&($=P,P=this.length),m.length===1){var K=m.charCodeAt(0);K<256&&(m=K)}if($!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!l.isEncoding($))throw new TypeError("Unknown encoding: "+$)}else typeof m=="number"&&(m=m&255);if(y<0||this.length<y||this.length<P)throw new RangeError("Out of range index");if(P<=y)return this;y=y>>>0,P=P===void 0?this.length:P>>>0,m||(m=0);var J;if(typeof m=="number")for(J=y;J<P;++J)this[J]=m;
928else{var me=l.isBuffer(m)?m:Ye(new l(m,$).toString()),Be=me.length;for(J=0;J<P-y;++J)this[J+y]=me[J%Be]}return this};var be=/[^+\/0-9A-Za-z-_]/g;function Ae(I){if(I=Ne(I).replace(be,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ne(I){return I.trim?I.trim():I.replace(/^\s+|\s+$/g,"")}function Me(I){return I<16?"0"+I.toString(16):I.toString(16)}function Ye(I,m){m=m||1/0;for(var y,P=I.length,$=null,K=[],J=0;J<P;++J){if(y=I.charCodeAt(J),y>55295&&y<57344){if(!$){if(y>56319){(m-=3)>-1&&K.push(239,191,189);continue}else if(J+1===P){(m-=3)>-1&&K.push(239,191,189);continue}$=y;continue}if(y<56320){(m-=3)>-1&&K.push(239,191,189),$=y;continue}y=($-55296<<10|y-56320)+65536}else $&&(m-=3)>-1&&K.push(239,191,189);if($=null,y<128){if((m-=1)<0)break;K.push(y)}else if(y<2048){if((m-=2)<0)break;K.push(y>>6|192,y&63|128)}else if(y<65536){if((m-=3)<0)break;K.push(y>>12|224,y>>6&63|128,y&63|128)}else if(y<1114112){if((m-=4)<0)break;K.push(y>>18|240,y>>12&63|128,y>>6&63|128,y&63|128)}else throw new Error("Invalid code point")}return K}function pe(I){for(var m=[],y=0;y<I.length;++y)m.push(I.charCodeAt(y)&255);return m}function Le(I,m){for(var y,P,$,K=[],J=0;J<I.length&&!((m-=2)<0);++J)y=I.charCodeAt(J),P=y>>8,$=y%256,K.push($),K.push(P);return K}function st(I){return t.toByteArray(Ae(I))}function Bt(I,m,y,P){for(var $=0;$<P&&!($+y>=m.length||$>=I.length);++$)m[$+y]=I[$];return $}function et(I){return I!==I}})(j4);var p$=typeof Symbol<"u"&&typeof Symbol.for=="function"?Symbol.for("amplify_default"):"@@amplify_default",Tm=function(e,t,n){ci.dispatch("auth",{event:e,data:t,message:n},"Auth",p$)},Ns=new vr("OAuth"),g$=function(){function e(t){var n=t.config,r=t.cognitoClientId,o=t.scopes,i=o===void 0?[]:o;if(this._urlOpener=n.urlOpener||c$,this._config=n,this._cognitoClientId=r,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(t){return Array.isArray(t)&&t.every(function(n){return typeof n=="string"})},e.prototype.oauthSignIn=function(t,n,r,o,i,s){t===void 0&&(t="code"),i===void 0&&(i=Of.Cognito);var l=this._generateState(32),h=s?l+"-"+yO(s):l;l$(h);var f=this._generateRandom(128);d$(f);var g=this._generateChallenge(f),w="S256",E=this._scopes.join(" "),C=Object.entries(Vn(Vn({redirect_uri:r,response_type:t,client_id:o,identity_provider:i,scope:E,state:h},t==="code"?{code_challenge:g}:{}),t==="code"?{code_challenge_method:w}:{})).map(function(k){var U=ro(k,2),N=U[0],R=U[1];return encodeURIComponent(N)+"="+encodeURIComponent(R)}).join("&"),A="https://"+n+"/oauth2/authorize?"+C;Ns.debug("Redirecting to "+A),this._urlOpener(A,r)},e.prototype._handleCodeFlow=function(t){return zt(this,void 0,void 0,function(){var n,r,o,i,s,l,h,f,g,w,E,C,A,k,U,N;return Ht(this,function(R){switch(R.label){case 0:return n=(Vo(t).query||"").split("&").map(function(L){return L.split("=")}).reduce(function(L,z){var W,ee=ro(z,2),b=ee[0],fe=ee[1];return Vn(Vn({},L),(W={},W[b]=fe,W))},{code:void 0}).code,r=Vo(t).pathname||"/",o=Vo(this._config.redirectSignIn).pathname||"/",!n||r!==o?[2]:(i="https://"+this._config.domain+"/oauth2/token",Tm("codeFlow",{},"Retrieving tokens from "+i),s=Pa(this._config)?this._cognitoClientId:this._config.clientID,l=Pa(this._config)?this._config.redirectSignIn:this._config.redirectUri,h=h$(),f=Vn({grant_type:"authorization_code",code:n,client_id:s,redirect_uri:l},h?{code_verifier:h}:{}),Ns.debug("Calling token endpoint: "+i+" with",f),g=Object.entries(f).map(function(L){var z=ro(L,2),W=z[0],ee=z[1];return encodeURIComponent(W)+"="+encodeURIComponent(ee)}).join("&"),w={category:Hg.Auth,action:Gg.FederatedSignIn},[4,fetch(i,{method:"POST",headers:(N={"Content-Type":"application/x-www-form-urlencoded"},N[bU]=Yg(w),N),body:g})]);case 1:return[4,R.sent().json()];case 2:if(E=R.sent(),C=E.access_token,A=E.refresh_token,k=E.id_token,U=E.error,U)throw new Error(U);return[2,{accessToken:C,refreshToken:A,idToken:k}]}})})},e.prototype._handleImplicitFlow=function(t){return zt(this,void 0,void 0,function(){var n,r,o;return Ht(this,function(i){return n=(Vo(t).hash||"#").substr(1).split("&").map(function(s){return s.split("=")}).reduce(function(s,l){var h,f=ro(l,2),g=f[0],w=f[1];return Vn(Vn({},s),(h={},h[g]=w,h))},{id_token:void 0,access_token:void 0}),r=n.id_token,o=n.access_token,Tm("implicitFlow",{},"Got tokens from "+t),Ns.debug("Retrieving implicit tokens from "+t+" with"),[2,{accessToken:o,idToken:r,refreshToken:null}]})})},e.prototype.handleAuthResponse=function(t){return zt(this,void 0,void 0,function(){var n,r,o,i,s,l,h;return Ht(this,function(f){switch(f.label){case 0:if(f.trys.push([0,5,,6]),n=t?Vn(Vn({},(Vo(t).hash||"#").substr(1).split("&").map(function(g){return g.split("=")}).reduce(function(g,w){var E=ro(w,2),C=E[0],A=E[1];return g[C]=A,g},{})),(Vo(t).query||"").split("&").map(function(g){return g.split("=")}).reduce(function(g,w){var E=ro(w,2),C=E[0],A=E[1];return g[C]=A,g},{})):{},r=n.error,o=n.error_description,r)throw new Error(o);
928return i=this._validateState(n),Ns.debug("Starting "+this._config.responseType+" flow with "+t),this._config.responseType!=="code"?[3,2]:(s=[{}],[4,this._handleCodeFlow(t)]);case 1:return[2,Vn.apply(void 0,[Vn.apply(void 0,s.concat([f.sent()])),{state:i}])];case 2:return l=[{}],[4,this._handleImplicitFlow(t)];case 3:return[2,Vn.apply(void 0,[Vn.apply(void 0,l.concat([f.sent()])),{state:i}])];case 4:return[3,6];case 5:throw h=f.sent(),Ns.debug("Error handling auth response.",h),h;case 6:return[2]}})})},e.prototype._validateState=function(t){if(t){var n=f$(),r=t.state;if(n&&n!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return zt(this,void 0,void 0,function(){var t,n,r;return Ht(this,function(o){return t="https://"+this._config.domain+"/logout?",n=Pa(this._config)?this._cognitoClientId:this._config.oauth.clientID,r=Pa(this._config)?this._config.redirectSignOut:this._config.returnTo,t+=Object.entries({client_id:n,logout_uri:encodeURIComponent(r)}).map(function(i){var s=ro(i,2),l=s[0],h=s[1];return l+"="+h}).join("&"),Tm("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+t),Ns.debug("Signing out from "+t),[2,this._urlOpener(t,r)]})})},e.prototype._generateState=function(t){for(var n="",r=t,o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";r>0;--r)n+=o[Math.round(Math.random()*(o.length-1))];return n},e.prototype._generateChallenge=function(t){var n=new Aa.Sha256;n.update(t);var r=n.digestSync(),o=j4.Buffer.from(r).toString("base64"),i=this._base64URL(o);return i},e.prototype._base64URL=function(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=new Uint8Array(t);if(typeof window<"u"&&window.crypto)window.crypto.getRandomValues(r);else for(var o=0;o<t;o+=1)r[o]=Math.random()*n.length|0;return this._bufferToString(r)},e.prototype._bufferToString=function(t){for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=[],o=0;o<t.byteLength;o+=1){var i=t[o]%n.length;r.push(n[i])}return r.join("")},e}();const m$=g$,y$=function(e){if(no().isBrowser&&window.location){var t=window.location.href;e({url:t})}else if(!no().isNode)throw new Error("Not supported")};var jn;(function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in"})(jn||(jn={}));var v$=new vr("AuthError"),jo=function(e){E4(t,e);function t(n){var r=this,o=w$[n],i=o.message,s=o.log;return r=e.call(this,i)||this,r.constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="AuthError",r.log=s||i,v$.error(r.log),r}return t}(Error),_$=function(e){E4(t,e);function t(n){var r=e.call(this,n)||this;return r.constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="NoUserPoolError",r}return t}(jo),w$={noConfig:{message:jn.DEFAULT_MSG,log:`
929            Error: Amplify has not been configured correctly.
930            This error is typically caused by one of the following scenarios:
931
932            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point
933                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information
934            
935            2. There might be multiple conflicting versions of amplify packages in your node_modules.
936				Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)
937        `},missingAuthConfig:{message:jn.DEFAULT_MSG,log:`
938            Error: Amplify has not been configured correctly. 
939            The configuration object is missing required auth properties.
940            This error is typically caused by one of the following scenarios:
941
942            1. Did you run \`amplify push\` after adding auth via \`amplify add auth\`?
943                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information
944
945            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.
946        `},emptyUsername:{message:jn.EMPTY_USERNAME},invalidUsername:{message:jn.INVALID_USERNAME},emptyPassword:{message:jn.EMPTY_PASSWORD},emptyCode:{message:jn.EMPTY_CODE},signUpError:{message:jn.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:jn.NO_MFA},invalidMFA:{message:jn.INVALID_MFA},emptyChallengeResponse:{message:jn.EMPTY_CHALLENGE},noUserSession:{message:jn.NO_USER_SESSION},deviceConfig:{message:jn.DEVICE_CONFIG}
946,networkError:{message:jn.NETWORK_ERROR},autoSignInError:{message:jn.AUTOSIGNIN_ERROR},default:{message:jn.DEFAULT_MSG}},Te=new vr("AuthClass"),z4="aws.cognito.signin.user.admin",b$=10*1e3,E$=typeof Symbol<"u"&&typeof Symbol.for=="function"?Symbol.for("amplify_default"):"@@amplify_default",$t=function(e,t,n){ci.dispatch("auth",{event:e,data:t,message:n},"Auth",E$)},S$=60,C$=3*60*1e3,x$=function(){function e(t){var n=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.autoSignInInitiated=!1,this.inflightSessionPromise=null,this.inflightSessionPromiseCounter=0,this.Credentials=y4,this.wrapRefreshSessionCallback=function(r){var o=function(i,s){return s?$t("tokenRefresh",void 0,"New token retrieved"):$t("tokenRefresh_failure",i,"Failed to retrieve new token"),r(i,s)};return o},this.configure(t),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),ci.listen("auth",function(r){var o=r.payload,i=o.event;switch(i){case"verify":case"signIn":n._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":n._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":n._storage.setItem("amplify-signin-with-hostedUI","true");break}}),R6(),B4(Kg.framework),Kg.observeFrameworkChanges(function(){B4(Kg.framework)})}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(t){var n=this;if(!t)return this._config||{};Te.debug("configure Auth");var r=Object.assign({},this._config,i4(t).Auth,t);this._config=r;var o=this._config,i=o.userPoolId,s=o.userPoolWebClientId,l=o.cookieStorage,h=o.oauth,f=o.region,g=o.identityPoolId,w=o.mandatorySignIn,E=o.refreshHandlers,C=o.identityPoolRegion,A=o.clientMetadata,k=o.endpoint,U=o.storage;if(!U)l?this._storage=new q6(l):this._storage=t.ssr?new wU:new o4().getStorage();else{if(!this._isValidAuthStorage(U))throw Te.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=U}if(this._storageSync=Promise.resolve(),typeof this._storage.sync=="function"&&(this._storageSync=this._storage.sync()),i){var N={UserPoolId:i,ClientId:s,endpoint:k};N.Storage=this._storage,this.userPool=new W6(N,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:w,region:f,userPoolId:i,identityPoolId:g,refreshHandlers:E,storage:this._storage,identityPoolRegion:C});var R=h?Pa(this._config.oauth)?h:h.awsCognito:void 0;if(R){var L=Object.assign({cognitoClientId:s,UserPoolId:i,domain:R.domain,scopes:R.scope,redirectSignIn:R.redirectSignIn,redirectSignOut:R.redirectSignOut,responseType:R.responseType,Storage:this._storage,urlOpener:R.urlOpener,clientMetadata:A},R.options);this._oAuthHandler=new m$({scopes:L.scopes,config:L,cognitoClientId:L.cognitoClientId});var z={};y$(function(ee){var b=ee.url;z[b]||(z[b]=!0,n._handleAuthResponse(b))})}if($t("configured",null,"The Auth category has been configured successfully"),!this.autoSignInInitiated&&typeof this._storage.getItem=="function"){var W=this.isTrueStorageValue("amplify-polling-started");W&&($t("autoSignIn_failure",null,Jt.AutoSignInError),this._storage.removeItem("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-started")}return this._config},e.prototype.signUp=function(t){for(var n=this,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i,s,l;if(!this.userPool)return this.rejectNoUserPool();var h=null,f=null,g=[],w=null,E,C={enabled:!1},A={},k={};if(t&&typeof t=="string"){h=t,f=r?r[0]:null;var U=r?r[1]:null,N=r?r[2]:null;U&&g.push(new ks({Name:"email",Value:U})),N&&g.push(new ks({Name:"phone_number",Value:N}))}else if(t&&typeof t=="object"){h=t.username,f=t.password,t&&t.clientMetadata?E=t.clientMetadata:this._config.clientMetadata&&(E=this._config.clientMetadata);var R=t.attributes;R&&Object.keys(R).map(function(z){g.push(new ks({Name:z,Value:R[z]}))});var L=t.validationData;L&&(w=[],Object.keys(L).map(function(z){w.push(new ks({Name:z,Value:L[z]}))})),C=(i=t.autoSignIn)!==null&&i!==void 0?i:{enabled:!1},C.enabled&&(this._storage.setItem("amplify-auto-sign-in","true"),A=(s=C.validationData)!==null&&s!==void 0?s:{},k=(l=C.clientMetaData)!==null&&l!==void 0?l:{})}else return this.rejectAuthError(Jt.SignUpError);return h?f?(Te.debug("signUp attrs:",g),Te.debug("signUp validation data:",w),new Promise(function(z,W){n.userPool.signUp(h,f,g,w,function(ee,b){ee?($t("signUp_failure",ee,h+" failed to signup"),W(ee)):($t("signUp",b,h+" has signed up successfully"),C.enabled&&n.handleAutoSignIn(h,f,A,k,b),z(b))},E)})):this.rejectAuthError(Jt.EmptyPassword):this.rejectAuthError(Jt.EmptyUsername)}
946,e.prototype.handleAutoSignIn=function(t,n,r,o,i){this.autoSignInInitiated=!0;var s=new C4({Username:t,Password:n,ValidationData:r,ClientMetadata:o});i.userConfirmed?this.signInAfterUserConfirmed(s):this._config.signUpVerificationMethod==="link"?this.handleLinkAutoSignIn(s):this.handleCodeAutoSignIn(s)},e.prototype.handleCodeAutoSignIn=function(t){var n=this,r=function(o){var i=o.payload;i.event==="confirmSignUp"&&n.signInAfterUserConfirmed(t,r)};ci.listen("auth",r)},e.prototype.handleLinkAutoSignIn=function(t){var n=this;this._storage.setItem("amplify-polling-started","true");var r=Date.now(),o=setInterval(function(){Date.now()-r>C$?(clearInterval(o),$t("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),n._storage.removeItem("amplify-auto-sign-in")):n.signInAfterUserConfirmed(t,null,o)},5e3)},e.prototype.signInAfterUserConfirmed=function(t,n,r){return zt(this,void 0,void 0,function(){var o,i,s=this;return Ht(this,function(l){switch(l.label){case 0:o=this.createCognitoUser(t.getUsername()),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,o.authenticateUser(t,this.authCallbacks(o,function(h){$t("autoSignIn",h,t.getUsername()+" has signed in successfully"),n&&ci.remove("auth",n),r&&(clearInterval(r),s._storage.removeItem("amplify-polling-started")),s._storage.removeItem("amplify-auto-sign-in")},function(h){Te.error(h),s._storage.removeItem("amplify-auto-sign-in")}))];case 2:return l.sent(),[3,4];case 3:return i=l.sent(),Te.error(i),[3,4];case 4:return[2]}})})},e.prototype.confirmSignUp=function(t,n,r){var o=this;if(!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(Jt.EmptyUsername);if(!n)return this.rejectAuthError(Jt.EmptyCode);var i=this.createCognitoUser(t),s=r&&typeof r.forceAliasCreation=="boolean"?r.forceAliasCreation:!0,l;return r&&r.clientMetadata?l=r.clientMetadata:this._config.clientMetadata&&(l=this._config.clientMetadata),new Promise(function(h,f){i.confirmRegistration(n,s,function(g,w){if(g)f(g);else{$t("confirmSignUp",w,t+" has been confirmed successfully");var E=o.isTrueStorageValue("amplify-auto-sign-in");E&&!o.autoSignInInitiated&&($t("autoSignIn_failure",null,Jt.AutoSignInError),o._storage.removeItem("amplify-auto-sign-in")),h(w)}},l)})},e.prototype.isTrueStorageValue=function(t){var n=this._storage.getItem(t);return n?n==="true":!1},e.prototype.resendSignUp=function(t,n){if(n===void 0&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(Jt.EmptyUsername);var r=this.createCognitoUser(t);return new Promise(function(o,i){r.resendConfirmationCode(function(s,l){s?i(s):o(l)},n)})},e.prototype.signIn=function(t,n,r){if(r===void 0&&(r=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var o=null,i=null,s={};if(typeof t=="string")o=t,i=n;else if(CU(t))typeof n<"u"&&Te.warn("The password should be defined under the first parameter object!"),o=t.username,i=t.password,s=t.validationData;else return this.rejectAuthError(Jt.InvalidUsername);if(!o)return this.rejectAuthError(Jt.EmptyUsername);var l=new C4({Username:o,Password:i,ValidationData:s,ClientMetadata:r});return i?this.signInWithPassword(l):this.signInWithoutPassword(l)},e.prototype.authCallbacks=function(t,n,r){var o=this,i=this;return{onSuccess:function(s){return zt(o,void 0,void 0,function(){var l,h,f,g;return Ht(this,function(w){switch(w.label){case 0:Te.debug(s),delete t.challengeName,delete t.challengeParam,w.label=1;case 1:return w.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return w.sent(),[4,this.Credentials.set(s,"session")];case 3:return l=w.sent(),Te.debug("succeed to get cognito credentials",l),[3,9];case 4:return h=w.sent(),Te.debug("cannot get cognito credentials",h),[3,9];case 5:return w.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return f=w.sent(),i.user=f,$t("signIn",f,"A user "+t.getUsername()+" has been signed in"),n(f),[3,8];case 7:return g=w.sent(),Te.error("Failed to get the signed in user",g),r(g),[3,8];case 8:return[7];case 9:return[2]}})})},onFailure:function(s){Te.debug("signIn failure",s),$t("signIn_failure",s,t.getUsername()+" failed to signin"),r(s)},customChallenge:function(s){Te.debug("signIn custom challenge answer required"),t.challengeName="CUSTOM_CHALLENGE",t.challengeParam=s,n(t)},mfaRequired:function(s,l){Te.debug("signIn MFA required"),t.challengeName=s,t.challengeParam=l,n(t)},mfaSetup:function(s,l){Te.debug("signIn mfa setup",s),t.challengeName=s,t.challengeParam=l,n(t)},newPasswordRequired:function(s,l){Te.debug("signIn new password"),t.challengeName="NEW_PASSWORD_REQUIRED",t.challengeParam={userAttributes:s,requiredAttributes:l},n(t)},totpRequired:function(s,l){Te.debug("signIn totpRequired"),t.challengeName=s,t.challengeParam=l,n(t)},selectMFAType:function(s,l){Te.debug("signIn selectMFAType",s),t.challengeName=s,t.challengeParam=l,n(t)}}},e.prototype.signInWithPassword=function(t){var n=this;if(this.pendingSignIn)throw new Error("Pending sign-in attempt already in progress");var r=this.createCognitoUser(t.getUsername());return this.pendingSignIn=new Promise(function(o,i){r.authenticateUser(t,n.authCallbacks(r,function(s){n.pendingSignIn=null,o(s)},function(s){n.pendingSignIn=null,i(s)}))}),this.pendingSignIn},e.prototype.signInWithoutPassword=function(t){var n=this,r=this.createCognitoUser(t.getUsername());return r.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise(function(o,i){r.initiateAuth(t,n.authCallbacks(r,o,i))})},e.prototype.getMFAOptions=function(t){return new Promise(function(n,r){t.getMFAOptions(function(o,i){if(o){Te.debug("get MFA Options failed",o),r(o);return}Te.debug("get MFA options success",i),n(i)})})},e.prototype.getPreferredMFA=function(t,n){var r=this,o=this;return new Promise(function(i,s){var l=r._config.clientMetadata,h=n?n.bypassCache:!1;t.getUserData(function(f,g){return zt(r,void 0,void 0,function(){var w,E;return Ht(this,function(C){switch(C.label){case 0:if(!f)return[3,5];if(Te.debug("getting preferred mfa failed",f),!this.isSessionInvalid(f))return[3,4];C.label=1;case 1:return C.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return C.sent(),[3,4];
946case 3:return w=C.sent(),s(new Error("Session is invalid due to: "+f.message+" and failed to clean up invalid session: "+w.message)),[2];case 4:return s(f),[2];case 5:return E=o._getMfaTypeFromUserData(g),E?(i(E),[2]):(s("invalid MFA Type"),[2])}})})},{bypassCache:h,clientMetadata:l})})},e.prototype._getMfaTypeFromUserData=function(t){var n=null,r=t.PreferredMfaSetting;if(r)n=r;else{var o=t.UserMFASettingList;if(o)o.length===0?n="NOMFA":Te.debug("invalid case for getPreferredMFA",t);else{var i=t.MFAOptions;i?n="SMS_MFA":n="NOMFA"}}return n},e.prototype._getUserData=function(t,n){var r=this;return new Promise(function(o,i){t.getUserData(function(s,l){return zt(r,void 0,void 0,function(){var h;return Ht(this,function(f){switch(f.label){case 0:if(!s)return[3,5];if(Te.debug("getting user data failed",s),!this.isSessionInvalid(s))return[3,4];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return f.sent(),[3,4];case 3:return h=f.sent(),i(new Error("Session is invalid due to: "+s.message+" and failed to clean up invalid session: "+h.message)),[2];case 4:return i(s),[2];case 5:o(l),f.label=6;case 6:return[2]}})})},n)})},e.prototype.setPreferredMFA=function(t,n){return zt(this,void 0,void 0,function(){var r,o,i,s,l,h,f,g=this;return Ht(this,function(w){switch(w.label){case 0:return r=this._config.clientMetadata,[4,this._getUserData(t,{bypassCache:!0,clientMetadata:r})];case 1:switch(o=w.sent(),i=null,s=null,l=n,l){case"TOTP":return[3,2];case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":return[3,3];case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return s={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return i={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return h=o.UserMFASettingList,[4,this._getMfaTypeFromUserData(o)];case 5:if(f=w.sent(),f==="NOMFA")return[2,Promise.resolve("No change for mfa type")];if(f==="SMS_MFA")i={PreferredMfa:!1,Enabled:!1};else if(f==="SOFTWARE_TOKEN_MFA")s={PreferredMfa:!1,Enabled:!1};else return[2,this.rejectAuthError(Jt.InvalidMFA)];return h&&h.length!==0&&h.forEach(function(E){E==="SMS_MFA"?i={PreferredMfa:!1,Enabled:!1}:E==="SOFTWARE_TOKEN_MFA"&&(s={PreferredMfa:!1,Enabled:!1})}),[3,7];case 6:return Te.debug("no validmfa method provided"),[2,this.rejectAuthError(Jt.NoMFA)];case 7:return[2,new Promise(function(E,C){t.setUserMfaPreference(i,s,function(A,k){if(A)return Te.debug("Set user mfa preference error",A),C(A);Te.debug("Set user mfa success",k),Te.debug("Caching the latest user data into local"),t.getUserData(function(U,N){return zt(g,void 0,void 0,function(){var R;return Ht(this,function(L){switch(L.label){case 0:if(!U)return[3,5];if(Te.debug("getting user data failed",U),!this.isSessionInvalid(U))return[3,4];L.label=1;case 1:return L.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return L.sent(),[3,4];case 3:return R=L.sent(),C(new Error("Session is invalid due to: "+U.message+" and failed to clean up invalid session: "+R.message)),[2];case 4:return[2,C(U)];case 5:return[2,E(k)]}})})},{bypassCache:!0,clientMetadata:r})})})]}})})},e.prototype.disableSMS=function(t){return new Promise(function(n,r){t.disableMFA(function(o,i){if(o){Te.debug("disable mfa failed",o),r(o);return}Te.debug("disable mfa succeed",i),n(i)})})},e.prototype.enableSMS=function(t){return new Promise(function(n,r){t.enableMFA(function(o,i){if(o){Te.debug("enable mfa failed",o),r(o);return}Te.debug("enable mfa succeed",i),n(i)})})},e.prototype.setupTOTP=function(t){return new Promise(function(n,r){t.associateSoftwareToken({onFailure:function(o){Te.debug("associateSoftwareToken failed",o),r(o)},associateSecretCode:function(o){Te.debug("associateSoftwareToken success",o),n(o)}})})},e.prototype.verifyTotpToken=function(t,n){Te.debug("verification totp token",t,n);var r;t&&typeof t.getSignInUserSession=="function"&&(r=t.getSignInUserSession());var o=r==null?void 0:r.isValid();return new Promise(function(i,s){t.verifySoftwareToken(n,"My TOTP device",{onFailure:function(l){Te.debug("verifyTotpToken failed",l),s(l)},onSuccess:function(l){o||$t("signIn",t,"A user "+t.getUsername()+" has been signed in"),$t("verify",t,"A user "+t.getUsername()+" has been verified"),Te.debug("verifyTotpToken success",l),i(l)}})})},e.prototype.confirmSignIn=function(t,n,r,o){var i=this;if(o===void 0&&(o=this._config.clientMetadata),!n)return this.rejectAuthError(Jt.EmptyCode);var s=this;return new Promise(function(l,h){t.sendMFACode(n,{onSuccess:function(f){return zt(i,void 0,void 0,function(){var g,w,E,C;return Ht(this,function(A){switch(A.label){case 0:Te.debug(f),A.label=1;case 1:return A.trys.push([1,4,5,10]),[4,this.Credentials.clear()];
946case 2:return A.sent(),[4,this.Credentials.set(f,"session")];case 3:return g=A.sent(),Te.debug("succeed to get cognito credentials",g),[3,10];case 4:return w=A.sent(),Te.debug("cannot get cognito credentials",w),[3,10];case 5:s.user=t,A.label=6;case 6:return A.trys.push([6,8,,9]),[4,this.currentUserPoolUser()];case 7:return E=A.sent(),t.attributes=E.attributes,[3,9];case 8:return C=A.sent(),Te.debug("cannot get updated Cognito User",C),[3,9];case 9:return $t("signIn",t,"A user "+t.getUsername()+" has been signed in"),l(t),[7];case 10:return[2]}})})},onFailure:function(f){Te.debug("confirm signIn failure",f),h(f)}},r,o)})},e.prototype.completeNewPassword=function(t,n,r,o){var i=this;if(r===void 0&&(r={}),o===void 0&&(o=this._config.clientMetadata),!n)return this.rejectAuthError(Jt.EmptyPassword);var s=this;return new Promise(function(l,h){t.completeNewPasswordChallenge(n,r,{onSuccess:function(f){return zt(i,void 0,void 0,function(){var g,w;return Ht(this,function(E){switch(E.label){case 0:Te.debug(f),E.label=1;case 1:return E.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return E.sent(),[4,this.Credentials.set(f,"session")];case 3:return g=E.sent(),Te.debug("succeed to get cognito credentials",g),[3,6];case 4:return w=E.sent(),Te.debug("cannot get cognito credentials",w),[3,6];case 5:return s.user=t,$t("signIn",t,"A user "+t.getUsername()+" has been signed in"),l(t),[7];case 6:return[2]}})})},onFailure:function(f){Te.debug("completeNewPassword failure",f),$t("completeNewPassword_failure",f,i.user+" failed to complete the new password flow"),h(f)},mfaRequired:function(f,g){Te.debug("signIn MFA required"),t.challengeName=f,t.challengeParam=g,l(t)},mfaSetup:function(f,g){Te.debug("signIn mfa setup",f),t.challengeName=f,t.challengeParam=g,l(t)},totpRequired:function(f,g){Te.debug("signIn mfa setup",f),t.challengeName=f,t.challengeParam=g,l(t)}},o)})},e.prototype.sendCustomChallengeAnswer=function(t,n,r){var o=this;return r===void 0&&(r=this._config.clientMetadata),this.userPool?n?new Promise(function(i,s){t.sendCustomChallengeAnswer(n,o.authCallbacks(t,i,s),r)}):this.rejectAuthError(Jt.EmptyChallengeResponse):this.rejectNoUserPool()},e.prototype.deleteUserAttributes=function(t,n){var r=this;return new Promise(function(o,i){r.userSession(t).then(function(s){t.deleteAttributes(n,function(l,h){return l?i(l):o(h)})})})},e.prototype.deleteUser=function(){return zt(this,void 0,void 0,function(){var t,n,r=this;return Ht(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this._storageSync];case 1:return o.sent(),[3,3];case 2:throw t=o.sent(),Te.debug("Failed to sync cache info into memory",t),new Error(t);case 3:return n=this._oAuthHandler&&this._storage.getItem("amplify-signin-with-hostedUI")==="true",[2,new Promise(function(i,s){return zt(r,void 0,void 0,function(){var l,h=this;return Ht(this,function(f){if(this.userPool)if(l=this.userPool.getCurrentUser(),l)l.getSession(function(g,w){return zt(h,void 0,void 0,function(){var E,C=this;return Ht(this,function(A){switch(A.label){case 0:if(!g)return[3,5];if(Te.debug("Failed to get the user session",g),!this.isSessionInvalid(g))return[3,4];A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(l)];case 2:return A.sent(),[3,4];case 3:return E=A.sent(),s(new Error("Session is invalid due to: "+g.message+" and failed to clean up invalid session: "+E.message)),[2];case 4:return[2,s(g)];case 5:l.deleteUser(function(k,U){if(k)s(k);else{$t("userDeleted",U,"The authenticated user has been deleted."),l.signOut(),C.user=null;try{C.cleanCachedItems()}catch{Te.debug("failed to clear cached items")}n?C.oAuthSignOutRedirect(i,s):($t("signOut",C.user,"A user has been signed out"),i(U))}}),A.label=6;case 6:return[2]}})})});else return Te.debug("Failed to get user from user pool"),[2,s(new Error("No current user."))];else Te.debug("no Congito User pool"),s(new Error("Cognito User pool does not exist"));return[2]})})})]}})})},e.prototype.updateUserAttributes=function(t,n,r){var o=this;r===void 0&&(r=this._config.clientMetadata);var i=[],s=this;return new Promise(function(l,h){s.userSession(t).then(function(f){for(var g in n)if(g!=="sub"&&g.indexOf("_verified")<0){var w={Name:g,Value:n[g]};i.push(w)}t.updateAttributes(i,function(E,C,A){if(E)return $t("updateUserAttributes_failure",E,"Failed to update attributes"),h(E);var k=o.createUpdateAttributesResultList(n,A==null?void 0:A.CodeDeliveryDetailsList);return $t("updateUserAttributes",k,"Attributes successfully updated"),l(C)},r)})})},e.prototype.createUpdateAttributesResultList=function(t,n){var r={};return Object.keys(t).forEach(function(o){r[o]={isUpdated:!0};var i=n==null?void 0:n.find(function(s){return s.AttributeName===o});i&&(r[o].isUpdated=!1,r[o].codeDeliveryDetails=i)}),r},e.prototype.userAttributes=function(t){var n=this;return new Promise(function(r,o){n.userSession(t).then(function(i){t.getUserAttributes(function(s,l){s?o(s):r(l)})})})},e.prototype.verifiedContact=function(t){var n=this;return this.userAttributes(t).then(function(r){var o=n.attributesToObject(r),i={},s={};return o.email&&(o.email_verified?s.email=o.email:i.email=o.email),o.phone_number&&(o.phone_number_verified?s.phone_number=o.phone_number:i.phone_number=o.phone_number),{verified:s,unverified:i}})},e.prototype.isErrorWithMessage=function(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"message")},e.prototype.isTokenRevokedError=function(t){return this.isErrorWithMessage(t)&&t.message==="Access Token has been revoked"},e.prototype.isRefreshTokenRevokedError=function(t){return this.isErrorWithMessage(t)&&t.message==="Refresh Token has been revoked"},e.prototype.isUserDisabledError=function(t){return this.isErrorWithMessage(t)&&t.message==="User is disabled."},e.prototype.isUserDoesNotExistError=function(t){return this.isErrorWithMessage(t)&&t.message==="User does not exist."},e.prototype.isRefreshTokenExpiredError=function(t){return this.isErrorWithMessage(t)&&t.message==="Refresh Token has expired"},e.prototype.isPasswordResetRequiredError=function(t){return this.isErrorWithMessage(t)&&t.message==="Password reset required for the user"},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&this._storage.getItem("amplify-signin-with-hostedUI")==="true"},e.prototype.isSessionInvalid=function(t){return this.isUserDisabledError(t)||this.isUserDoesNotExistError(t)||this.isTokenRevokedError(t)||this.isRefreshTokenRevokedError(t)||this.isRefreshTokenExpiredError(t)||this.isPasswordResetRequiredError(t)},e.prototype.cleanUpInvalidSession=function(t){return zt(this,void 0,void 0,function(){var n=this;return Ht(this,function(r){switch(r.label){case 0:t.signOut(),this.user=null,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return r.sent(),[3,4];case 3:return r.sent(),Te.debug("failed to clear cached items"),[3,4];case 4:return this.isSignedInHostedUI()?[2,new Promise(function(o,i){n.oAuthSignOutRedirect(o,i)})]:($t("signOut",this.user,"A user has been signed out"),[2])}})})},e.prototype.currentUserPoolUser=function(t){var n=this;return this.userPool?new Promise(function(r,o){n._storageSync.then(function(){return zt(n,void 0,void 0,function(){var i,s,l,h,f,g,w,E=this;return Ht(this,function(C){switch(C.label){case 0:return this.isOAuthInProgress()?(Te.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise(function(A){var k=setTimeout(function(){Te.debug("OAuth signIn in progress timeout"),ci.remove("auth",U),A()},b$);ci.listen("auth",U);function U(N){var R=N.payload,L=R.event;(L==="cognitoHostedUI"||L==="cognitoHostedUI_failure")&&(Te.debug("OAuth signIn resolved: "+L),clearTimeout(k),ci.remove("auth",U),A())}})]):[3,2];
946case 1:C.sent(),C.label=2;case 2:if(i=this.userPool.getCurrentUser(),!i)return Te.debug("Failed to get user from user pool"),o("No current user"),[2];C.label=3;case 3:return C.trys.push([3,7,,8]),[4,this._userSession(i)];case 4:return s=C.sent(),l=t?t.bypassCache:!1,l?[4,this.Credentials.clear()]:[3,6];case 5:C.sent(),C.label=6;case 6:if(h=this._config.clientMetadata,f=s.getAccessToken().decodePayload().scope,g=f===void 0?"":f,g.split(" ").includes(z4))i.getUserData(function(A,k){return zt(E,void 0,void 0,function(){var U,N,R,L,z,W,ee;return Ht(this,function(b){switch(b.label){case 0:if(!A)return[3,7];if(Te.debug("getting user data failed",A),!this.isSessionInvalid(A))return[3,5];b.label=1;case 1:return b.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(i)];case 2:return b.sent(),[3,4];case 3:return U=b.sent(),o(new Error("Session is invalid due to: "+A.message+" and failed to clean up invalid session: "+U.message)),[2];case 4:return o(A),[3,6];case 5:r(i),b.label=6;case 6:return[2];case 7:for(N=k.PreferredMfaSetting||"NOMFA",R=[],L=0;L<k.UserAttributes.length;L++)z={Name:k.UserAttributes[L].Name,Value:k.UserAttributes[L].Value},W=new ks(z),R.push(W);return ee=this.attributesToObject(R),Object.assign(i,{attributes:ee,preferredMFA:N}),[2,r(i)]}})})},{bypassCache:l,clientMetadata:h});else return Te.debug("Unable to get the user data because the "+z4+" is not in the scopes of the access token"),[2,r(i)];return[3,8];case 7:return w=C.sent(),o(w),[3,8];case 8:return[2]}})})}).catch(function(i){return Te.debug("Failed to sync cache info into memory",i),o(i)})}):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(t){return zt(this,void 0,void 0,function(){var n,r,o,i,s;return Ht(this,function(l){switch(l.label){case 0:Te.debug("getting current authenticated user"),n=null,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this._storageSync];case 2:return l.sent(),[3,4];case 3:throw r=l.sent(),Te.debug("Failed to sync cache info into memory",r),r;case 4:try{o=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")),o&&(n=Vn(Vn({},o.user),{token:o.token}))}catch{Te.debug("cannot load federated user from auth storage")}return n?(this.user=n,Te.debug("get current authenticated federated user",this.user),[2,this.user]):[3,5];case 5:Te.debug("get current authenticated userpool user"),i=null,l.label=6;case 6:return l.trys.push([6,8,,9]),[4,this.currentUserPoolUser(t)];case 7:return i=l.sent(),[3,9];case 8:return s=l.sent(),s==="No userPool"&&Te.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),Te.debug("The user is not authenticated by the error",s),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=i,[2,this.user]}})})},e.prototype.currentSession=function(){var t=this;return Te.debug("Getting current session"),this.userPool?new Promise(function(n,r){t.currentUserPoolUser().then(function(o){t.userSession(o).then(function(i){n(i)}).catch(function(i){Te.debug("Failed to get the current session",i),r(i)})}).catch(function(o){Te.debug("Failed to get the current user",o),r(o)})}):Promise.reject(new Error("No User Pool in the configuration."))},e.prototype._userSession=function(t){return zt(this,void 0,void 0,function(){var n,r,o=this;return Ht(this,function(i){switch(i.label){case 0:if(!t)return Te.debug("the user is null"),[2,this.rejectAuthError(Jt.NoUserSession)];n=this._config.clientMetadata,this.inflightSessionPromiseCounter===0&&(this.inflightSessionPromise=new Promise(function(s,l){t.getSession(function(h,f){return zt(o,void 0,void 0,function(){var g;return Ht(this,function(w){switch(w.label){case 0:if(!h)return[3,5];if(Te.debug("Failed to get the session from user",t),!this.isSessionInvalid(h))return[3,4];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return w.sent(),[3,4];case 3:return g=w.sent(),l(new Error("Session is invalid due to: "+h.message+" and failed to clean up invali
946d session: "+g.message)),[2];case 4:return l(h),[2];case 5:return Te.debug("Succeed to get the user session",f),s(f),[2]}})})},{clientMetadata:n})})),this.inflightSessionPromiseCounter++,i.label=1;case 1:return i.trys.push([1,,3,4]),[4,this.inflightSessionPromise];case 2:return r=i.sent(),t.signInUserSession=r,[2,r];case 3:return this.inflightSessionPromiseCounter--,[7];case 4:return[2]}})})},e.prototype.userSession=function(t){return this._userSession(t)},e.prototype.currentUserCredentials=function(){return zt(this,void 0,void 0,function(){var t,n,r=this;return Ht(this,function(o){switch(o.label){case 0:Te.debug("Getting current user credentials"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._storageSync];case 2:return o.sent(),[3,4];case 3:throw t=o.sent(),Te.debug("Failed to sync cache info into memory",t),t;case 4:n=null;try{n=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(i){Te.debug("failed to get or parse item aws-amplify-federatedInfo",i)}return n?[2,this.Credentials.refreshFederatedToken(n)]:[2,this.currentSession().then(function(i){return Te.debug("getting session success",i),r.Credentials.set(i,"session")}).catch(function(){return Te.debug("getting guest credentials"),r.Credentials.set(null,"guest")})]}})})},e.prototype.currentCredentials=function(){return Te.debug("getting current credentials"),this.Credentials.get()},e.prototype.verifyUserAttribute=function(t,n,r){return r===void 0&&(r=this._config.clientMetadata),new Promise(function(o,i){t.getAttributeVerificationCode(n,{onSuccess:function(s){return o(s)},onFailure:function(s){return i(s)}},r)})},e.prototype.verifyUserAttributeSubmit=function(t,n,r){return r?new Promise(function(o,i){t.verifyAttribute(n,r,{onSuccess:function(s){o(s)},onFailure:function(s){i(s)}})}):this.rejectAuthError(Jt.EmptyCode)},e.prototype.verifyCurrentUserAttribute=function(t){var n=this;return n.currentUserPoolUser().then(function(r){return n.verifyUserAttribute(r,t)})},e.prototype.verifyCurrentUserAttributeSubmit=function(t,n){var r=this;return r.currentUserPoolUser().then(function(o){return r.verifyUserAttributeSubmit(o,t,n)})},e.prototype.cognitoIdentitySignOut=function(t,n){return zt(this,void 0,void 0,function(){var r,o,i=this;return Ht(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this._storageSync];case 1:return s.sent(),[3,3];case 2:throw r=s.sent(),Te.debug("Failed to sync cache info into memory",r),r;case 3:return o=this._oAuthHandler&&this._storage.getItem("amplify-signin-with-hostedUI")==="true",[2,new Promise(function(l,h){if(t&&t.global){Te.debug("user global sign out",n);var f=i._config.clientMetadata;n.getSession(function(g,w){return zt(i,void 0,void 0,function(){var E,C=this;return Ht(this,function(A){switch(A.label){case 0:if(!g)return[3,5];if(Te.debug("failed to get the user session",g),!this.isSessionInvalid(g))return[3,4];A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(n)];case 2:return A.sent(),[3,4];case 3:return E=A.sent(),h(new Error("Session is invalid due to: "+g.message+" and failed to clean up invalid session: "+E.message)),[2];case 4:return[2,h(g)];case 5:return n.globalSignOut({onSuccess:function(k){if(Te.debug("global sign out success"),o)C.oAuthSignOutRedirect(l,h);else return l()},onFailure:function(k){return Te.debug("global sign out failed",k),h(k)}}),[2]}})})},{clientMetadata:f})}else Te.debug("user sign out",n),n.signOut(function(){if(o)i.oAuthSignOutRedirect(l,h);else return l()})})]}})})},e.prototype.oAuthSignOutRedirect=function(t,n){var r=no().isBrowser;r?this.oAuthSignOutRedirectOrReject(n):this.oAuthSignOutAndResolve(t)},e.prototype.oAuthSignOutAndResolve=function(t){this._oAuthHandler.signOut(),t()},e.prototype.oAuthSignOutRedirectOrReject=function(t){this._oAuthHandler.signOut(),setTimeout(function(){return t(Error("Signout timeout fail"))},3e3)},e.prototype.signOut=function(t){return zt(this,void 0,void 0,function(){var n;return Ht(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return r.sent(),[3,3];case 2:return r.sent(),Te.debug("failed to clear cached items"),[3,3];case 3:return this.userPool?(n=this.userPool.getCurrentUser(),n?[4,this.cognitoIdentitySignOut(t,n)]:[3,5]):[3,7];case 4:return r.sent(),[3,6];case 5:Te.debug("no current Cognito user"),r.label=6;case 6:return[3,8];case 7:Te.debug("no Cognito User pool"),r.label=8;case 8:return $t("signOut",this.user,"A user has been signed out"),this.user=null,[2]}})})},e.prototype.cleanCachedItems=function(){return zt(this,void 0,void 0,function(){return Ht(this,function(t){switch(t.label){case 0:return[4,this.Credentials.clear()];case 1:return t.sent(),[2]}})})},e.prototype.changePassword=function(t,n,r,o){var i=this;return o===void 0&&(o=this._config.clientMetadata),new Promise(function(s,l){i.userSession(t).then(function(h){t.changePassword(n,r,function(f,g){return f?(Te.debug("change password failure",f),l(f)):s(g)},o)})})},e.prototype.forgotPassword=function(t,n){if(n===void 0&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(Jt.EmptyUsername);var r=this.createCognitoUser(t);return new Promise(function(o,i){r.forgotPassword({onSuccess:function(){o()},onFailure:function(s){Te.debug("forgot password failure",s),$t("forgotPassword_failure",s,t+" forgotPassword failed"),i(s)},inputVerificationCode:function(s){$t("forgotPassword",r,t+" has initiated forgot password flow"),o(s)}},n)})},e.prototype.forgotPasswordSubmit=function(t,n,r,o){if(o===void 0&&(o=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(Jt.EmptyUsername);if(!n)return this.rejectAuthError(Jt.EmptyCode);if(!r)return this.rejectAuthError(Jt.EmptyPassword);var i=this.createCognitoUser(t);return new Promise(function(s,l){i.confirmPassword(n,r,{onSuccess:function(h){$t("forgotPasswordSubmit",i,t+" forgotPasswordSubmit successful"),s(h)},onFailure:function(h){$t("forgotPasswordSubmit_failure",h,t+" forgotPasswordSubmit failed"),l(h)}},o)})},e.prototype.currentUserInfo=function(){return zt(this,void 0,void 0,function(){var t,h,n,r,o,i,s,l,h;return Ht(this,function(f){switch(f.label){case 0:return t=this.Credentials.getCredSource(),!t||t==="aws"||t==="userPool"?[4,this.currentUserPoolUser().catch(function(g){return Te.error(g)})]:[3,9];case 1:if(h=f.sent(),!h)return[2,null];f.label=2;case 2:return f.trys.push([2,8,,9]),[4,this.userAttributes(h)];case 3:n=f.sent(),r=this.attributesToObject(n),o=null,f.label=4;case 4:return f.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return o=f.sent(),[3,7];case 6:return i=f.sent(),Te.debug("Failed to retrieve credentials while getting current user info",i),[3,7];case 7:return s={id:o?o.identityId:void 0,username:h.getUsername(),attributes:r},[2,s];case 8:return l=f.sent(),Te.error("currentUserInfo error",l),[2,{}];case 9:return t==="federated"?(h=this.user,[2,h||{}]):[2]}})})},e.prototype.federatedSignIn=function(t,n,r){return zt(this,void 0,void 0,function(){var o,h,i,s,l,h,f,g,w,E,C,A;return Ht(this,function(k){switch(k.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation requires either a User Pool or Identity Pool in config");if(typeof t>"u"&&this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation with Identity Pools requires tokens passed as arguments");return cm(t)||EU(t)||SU(t)||typeof t>"u"?(o=t||{provider:Of.Cognito},h=cm(o)?o.provider:o.customProvider,i=(cm(o),o.customState),this._config.userPoolId&&(s=Pa(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,l=Pa(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,l,s,h,i)),[3,4]):[3,1];case 1:h=t;try{f=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user),f&&Te.warn("There is already a signed in user: "+f+` in your app.
947																	You should not call Auth.federatedSignIn method again as it may cause unexpected behavior.`)}catch{}return g=n.token,w=n.identity_id,E=n.expires_at,[4,this.Credentials.set({provider:h,token:g,identity_id:w,user:r,expires_at:E},"federation")];case 2:return C=k.sent(),[4,this.currentAuthenticatedUser()];case 3:return A=k.sent(),$t("signIn",A,"A user "+A.username+" has been signed in"),Te.debug("federated sign in credentials",C),[2,C];case 4:return[2]}})})},e.prototype._handleAuthResponse=function(t){return zt(this,void 0,void 0,function(){var n,r,o,i,s,l,h,f,g,w,E,C,A,k;return Ht(this,function(U){switch(U.label){case 0:if(this.oAuthFlowInProgress)return Te.debug("Skipping URL "+t+" current flow in progress"),[2];U.label=1;case 1:if(U.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw new Error("OAuth responses require a User Pool defined in config");if($t("parsingCallbackUrl",{url:t},"The callback url is being parsed"),n=t||(no().isBrowser?window.location.href:""),r=!!(Vo(n).query||"").split("&").map(function(N){return N.split("=")}).find(function(N){var R=ro(N,1),L=R[0];return L==="code"||L==="error"}),o=!!(Vo(n).hash||"#").substr(1).split("&").map(function(N){return N.split("=")}).find(function(N){var R=ro(N,1),L=R[0];return L==="access_token"||L==="error"}),!(r||o))return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),U.label=2;
947case 2:return U.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(n)];case 3:return i=U.sent(),s=i.accessToken,l=i.idToken,h=i.refreshToken,f=i.state,g=new wm({IdToken:new vm({IdToken:l}),RefreshToken:new _m({RefreshToken:h}),AccessToken:new mm({AccessToken:s})}),w=void 0,this._config.identityPoolId?[4,this.Credentials.set(g,"session")]:[3,5];case 4:w=U.sent(),Te.debug("AWS credentials",w),U.label=5;case 5:return E=/-/.test(f),C=this.createCognitoUser(g.getIdToken().decodePayload()["cognito:username"]),C.setSignInUserSession(g),window&&typeof window.history<"u"&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),$t("signIn",C,"A user "+C.getUsername()+" has been signed in"),$t("cognitoHostedUI",C,"A user "+C.getUsername()+" has been signed in via Cognito Hosted UI"),E&&(A=f.split("-").splice(1).join("-"),$t("customOAuthState",vO(A),"State for user "+C.getUsername())),[2,w];case 6:return k=U.sent(),Te.debug("Error in cognito hosted auth response",k),window&&typeof window.history<"u"&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),$t("signIn_failure",k,"The OAuth response flow failed"),$t("cognitoHostedUI_failure",k,"A failure occurred when returning to the Cognito Hosted UI"),$t("customState_failure",k,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}})})},e.prototype.essentialCredentials=function(t){return{accessKeyId:t.accessKeyId,sessionToken:t.sessionToken,secretAccessKey:t.secretAccessKey,identityId:t.identityId,authenticated:t.authenticated}},e.prototype.attributesToObject=function(t){var n=this,r={};return t&&t.map(function(o){o.Name==="email_verified"||o.Name==="phone_number_verified"?r[o.Name]=n.isTruthyString(o.Value)||o.Value===!0:r[o.Name]=o.Value}),r},e.prototype.isTruthyString=function(t){return typeof t.toLowerCase=="function"&&t.toLowerCase()==="true"},e.prototype.createCognitoUser=function(t){var n={Username:t,Pool:this.userPool};n.Storage=this._storage;var r=this._config.authenticationFlowType,o=new bm(n);return r&&o.setAuthenticationFlowType(r),o},e.prototype._isValidAuthStorage=function(t){return!!t&&typeof t.getItem=="function"&&typeof t.setItem=="function"&&typeof t.removeItem=="function"&&typeof t.clear=="function"},e.prototype.noUserPoolErrorHandler=function(t){return t&&(!t.userPoolId||!t.identityPoolId)?Jt.MissingAuthConfig:Jt.NoConfig},e.prototype.rejectAuthError=function(t){return Promise.reject(new jo(t))},e.prototype.rejectNoUserPool=function(){var t=this.noUserPoolErrorHandler(this._config);return Promise.reject(new _$(t))},e.prototype.rememberDevice=function(){return zt(this,void 0,void 0,function(){var t,n;return Ht(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return t=r.sent(),[3,3];case 2:return n=r.sent(),Te.debug("The user is not authenticated by the error",n),[2,Promise.reject("The user is not authenticated")];case 3:return t.getCachedDeviceKeyAndPassword(),[2,new Promise(function(o,i){t.setDeviceStatusRemembered({onSuccess:function(s){o(s)},onFailure:function(s){s.code==="InvalidParameterException"?i(new jo(Jt.DeviceConfig)):s.code==="NetworkError"?i(new jo(Jt.NetworkError)):i(s)}})})]}})})},e.prototype.forgetDevice=function(){return zt(this,void 0,void 0,function(){var t,n;return Ht(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return t=r.sent(),[3,3];case 2:return n=r.sent(),Te.debug("The user is not authenticated by the error",n),[2,Promise.reject("The user is not authenticated")];case 3:return t.getCachedDeviceKeyAndPassword(),[2,new Promise(function(o,i){t.forgetDevice({onSuccess:function(s){o(s)},onFailure:function(s){s.code==="InvalidParameterException"?i(new jo(Jt.DeviceConfig)):s.code==="NetworkError"?i(new jo(Jt.NetworkError)):i(s)}})})]}})})},e.prototype.fetchDevices=function(){return zt(this,void 0,void 0,function(){var t,n;return Ht(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return t=r.sent(),[3,3];case 2:throw n=r.sent(),Te.debug("The user is not authenticated by the error",n),new Error("The user is not authenticated");case 3:return t.getCachedDeviceKeyAndPassword(),[2,new Promise(function(o,i){var s={onSuccess:function(l){var h=l.Devices.map(function(f){var g=f.DeviceAttributes.find(function(E){var C=E.Name;return C==="device_name"})||{},w={id:f.DeviceKey,name:g.Value};return w});o(h)},onFailure:function(l){l.code==="InvalidParameterException"?i(new jo(Jt.DeviceConfig)):l.code==="NetworkError"?i(new jo(Jt.NetworkError)):i(l)}};t.listDevices(S$,null,s)})]}})})},e}(),En=new x$(null);bs.register(En);const xi=a.defineComponent({__name:"base-footer",setup(e){let t=a.useSlots();return(n,r)=>a.renderSlot(n.$slots,"footert",a.mergeProps(n.$attrs,{slotData:a.unref(t).default&&a.unref(t).default()}),()=>[a.createElementVNode("footer",a.normalizeProps(a.guardReactiveProps(n.$attrs)),[a.renderSlot(n.$slots,"default")],16)])}}),Ai=a.defineComponent({__name:"base-form",setup(e){let t=a.useSlots();return(n,r)=>a.renderSlot(n.$slots,"formt",a.mergeProps(n.$attrs,{slotData:a.unref(t).default&&a.unref(t).default()}),()=>[a.createElementVNode("form",a.mergeProps({"data-amplify-form":""},n.$attrs),[a.renderSlot(n.$slots,"default")],16)])}});var jf=(e,t)=>
947{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const A$={};function T$(e,t){return a.openBlock(),a.createElementBlock("div",null,[a.renderSlot(e.$slots,"default")])}var Qn=jf(A$,[["render",T$]]);const I$=["type","data-fullwidth","data-size","data-fontWeight","data-variation","data-loading","data-disabled","disabled"],Wr=a.defineComponent({__name:"amplify-button",props:{type:null,fullWidth:{type:[Boolean,String]},size:null,variation:null,fontWeight:null,loading:{type:[Boolean,String]},disabled:{type:[Boolean,String]}},setup(e){const t=e,{type:n,fullWidth:r,size:o,variation:i,fontWeight:s}=a.toRefs(t);return(l,h)=>a.renderSlot(l.$slots,"buttont",a.normalizeProps(a.guardReactiveProps(l.$attrs)),()=>[a.createElementVNode("button",a.mergeProps({class:["amplify-button",{[`amplify-button--${a.unref(i)}`]:a.unref(i),[`amplify-button--${a.unref(o)}`]:a.unref(o),"amplify-button--fullwidth":a.unref(r),"amplify-button--loading":e.loading,"amplify-button--disabled":e.disabled}],type:a.unref(n),style:{fontWeight:a.unref(s)},"data-fullwidth":a.unref(r),"data-size":a.unref(o),"data-fontWeight":a.unref(s),"data-variation":a.unref(i),"data-loading":e.loading,"data-disabled":e.disabled,disabled:e.disabled},l.$attrs,{"data-amplify-button":""}),[a.renderSlot(l.$slots,"default")],16,I$)])}}),Ds=e=>{var t;return(t=e.context.actorRef)===null||t===void 0?void 0:t.getSnapshot()},zf=e=>{var t;return(t=Ds(e))===null||t===void 0?void 0:t.context};var Im,H4;(function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"})(Im||(Im={})),function(e){e.Email="email",e.PhoneNumber="phone_number"}(H4||(H4={}));const k$=["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],P$=["username","email","phone_number"],G4=[...P$,...k$,"confirmation_code","password","confirm_password"],N$=e=>G4.includes(e);var zn;(function(e){e.Alert="amplify-alert",e.AlertIcon="amplify-alert__icon",e.AlertHeading="amplify-alert__heading",e.AlertBody="amplify-alert__body",e.AlertDismiss="amplify-alert__dismiss",e.Autocomplete="amplify-autocomplete",e.AutocompleteMenu="amplify-autocomplete__menu",e.AutocompleteMenuEmpty="amplify-autocomplete__menu--empty",e.AutocompleteMenuFooter="amplify-autocomplete__menu__footer",e.AutocompleteMenuHeader="amplify-autocomplete__menu__header",e.AutocompleteMenuLoading="amplify-autocomplete__menu--loading",e.AutocompleteMenuOption="amplify-autocomplete__menu__option",e.AutocompleteMenuOptions="amplify-autocomplete__menu__options",e.Badge="amplify-badge",e.Breadcrumbs="amplify-breadcrumbs",e.BreadcrumbsList="amplify-breadcrumbs__list",e.BreadcrumbsItem="amplify-breadcrumbs__item",e.BreadcrumbsSeparator="amplify-breadcrumbs__separator",e.BreadcrumbsLink="amplify-breadcrumbs__link",e.Button="amplify-button",e.ButtonGroup="amplify-buttongroup",e.ButtonLoaderWrapper="amplify-button__loader-wrapper",e.Card="amplify-card",e.Checkbox="amplify-checkbox",e.CheckboxButton="amplify-checkbox__button",e.CheckboxIcon="amplify-checkbox__icon",e.CheckboxInput="amplify-checkbox__input",e.CheckboxLabel="amplify-checkbox__label",e.CheckboxField="amplify-checkboxfield",e.Collection="amplify-collection",e.CollectionItems="amplify-collection-items",e.CollectionSearch="amplify-collection-search",e.CollectionPagination="amplify-collection-pagination",e.CountryCodeSelect="amplify-countrycodeselect",e.DialCodeSelect="amplify-dialcodeselect",e.Divider="amplify-divider",e.DividerLabel="amplify-divider--label",e.DropZone="amplify-dropzone",e.Expander="amplify-expander",e.ExpanderContent="amplify-expander__content",e.ExpanderContentText="amplify-expander__content__text",e.ExpanderHeader="amplify-expander__header",e.ExpanderIcon="amplify-expander__icon",e.ExpanderItem="amplify-expander__item",e.ExpanderTrigger="amplify-expander__trigger",e.Field="amplify-field",e.FieldDescription="amplify-field__description",e.FieldErrorMessage="amplify-field__error-message",e.FieldGroup="amplify-field-group",e.FieldGroupControl="amplify-field-group__control",e.FieldGroupOuterEnd="amplify-field-group__outer-end",e.FieldGroupOuterStart="amplify-field-group__outer-start",e.FieldGroupInnerEnd="amplify-field-group__inner-end",e.FieldGroupInnerStart="amplify-field-group__inner-start",e.FieldGroupIcon="amplify-field-group__icon",e.FieldGroupIconButton="amplify-field-group__icon-button",e.FieldGroupHasInnerEnd="amplify-field-group--has-inner-end",e.FieldGroupHasInnerStart="amplify-field-group--has-inner-start",e.FieldShowPassword="amplify-field__show-password",e.FieldGroupFieldWrapper="amplify-field-group__field-wrapper",e.Fieldset="amplify-fieldset",e.FieldsetLegend="amplify-fieldset__legend",e.FileUploaderDropZone="amplify-fileuploader__dropzone",e.FileUploaderDropZoneIcon="amplify-fileuploader__dropzone__icon",e.FileUploaderDropZoneText="amplify-fileuploader__dropzone__text",e.FileUploaderDropZoneButton="amplify-fileuploader__dropzone__button",e.FileUploaderFile="amplify-fileuploader__file",e.FileUploaderFileWrapper="amplify-fileuploader__file__wrapper",e.FileUploaderFileName="amplify-fileuploader__file__name",e.FileUploaderFileSize="amplify-fileuploader__file__size",e.FileUploaderFileInfo="amplify-fileuploader__file__info",e.FileUploaderFileImage="amplify-fileuploader__file__image",e.FileUploaderFileMain="amplify-fileuploader__file__main",e.FileUploaderFileStatus="amplify-fileuploader__file__status",e.FileUploaderL
947oader="amplify-fileuploader__loader",e.FileUploaderPreviewer="amplify-fileuploader__previewer",e.FileUploaderPreviewerText="amplify-fileuploader__previewer__text",e.FileUploaderPreviewerBody="amplify-fileuploader__previewer__body",e.FileUploaderPreviewerFooter="amplify-fileuploader__previewer__footer",e.FileUploaderPreviewerFooterActions="amplify-fileuploader__previewer__footer__actions",e.Flex="amplify-flex",e.Grid="amplify-grid",e.Heading="amplify-heading",e.HighlightMatch="amplify-highlightmatch",e.HighlightMatchHighlighted="amplify-highlightmatch__highlighted",e.Icon="amplify-icon",e.Image="amplify-image",e.Input="amplify-input",e.Label="amplify-label",e.Link="amplify-link",e.Loader="amplify-loader",e.LoaderDeterminate="amplify-loader--determinate",e.LoaderPercentageText="amplify-loader__percentage-text",e.MenuContent="amplify-menu-content",e.MenuContentWrapper="amplify-menu-content-wrapper",e.MenuItem="amplify-menu-content__item",e.MenuTrigger="amplify-menu-trigger",e.Message="amplify-message",e.MessageIcon="amplify-message__icon",e.MessageHeading="amplify-message__heading",e.MessageBody="amplify-message__body",e.MessageContent="amplify-message__content",e.MessageDismiss="amplify-message__dismiss",e.Pagination="amplify-pagination",e.PaginationItemButton="amplify-pagination__item-button",e.PaginationItemCurrent="amplify-pagination__item-current",e.PaginationItemEllipsis="amplify-pagination__item-ellipsis",e.PasswordField="amplify-passwordfield",e.PhoneNumberField="amplify-phonenumberfield",e.Placeholder="amplify-placeholder",e.Radio="amplify-radio",e.RadioButton="amplify-radio__button",e.RadioInput="amplify-radio__input",e.RadioLabel="amplify-radio__label",e.RadioGroupField="amplify-radiogroupfield",e.RadioGroup="amplify-radiogroup",e.Rating="amplify-rating",e.ScrollView="amplify-scrollview",e.SearchField="amplify-searchfield",e.SearchFieldClear="amplify-searchfield__clear",e.SearchFieldSearch="amplify-searchfield__search",e.Select="amplify-select",e.SelectField="amplify-selectfield",e.SelectWrapper="amplify-select__wrapper",e.SelectIconWrapper="amplify-select__icon-wrapper",e.SliderField="amplify-sliderfield",e.SliderFieldGroup="amplify-sliderfield__group",e.SliderFieldLabel="amplify-sliderfield__label",e.SliderFieldRange="amplify-sliderfield__range",e.SliderFieldRoot="amplify-sliderfield__root",e.SliderFieldThumb="amplify-sliderfield__thumb",e.SliderFieldTrack="amplify-sliderfield__track",e.StepperField="amplify-stepperfield",e.StepperFieldButtonDecrease="amplify-stepperfield__button--decrease",e.StepperFieldButtonIncrease="amplify-stepperfield__button--increase",e.StepperFieldInput="amplify-stepperfield__input",e.StorageImage="amplify-storageimage",e.StorageManager="amplify-storagemanager",e.StorageManagerDropZone="amplify-storagemanager__dropzone",e.StorageManagerDropZoneIcon="amplify-storagemanager__dropzone__icon",e.StorageManagerDropZoneText="amplify-storagemanager__dropzone__text",e.StorageManagerFilePicker="amplify-storagemanager__file__picker",e.StorageManagerFile="amplify-storagemanager__file",e.StorageManagerFileWrapper="amplify-storagemanager__file__wrapper",e.StorageManagerFileList="amplify-storagemanager__file__list",e.StorageManagerFileName="amplify-storagemanager__file__name",e.StorageManagerFileSize="amplify-storagemanager__file__size",e.StorageManagerFileInfo="amplify-storagemanager__file__info",e.StorageManagerFileImage="amplify-storagemanager__file__image",e.StorageManagerFileMain="amplify-storagemanager__file__main",e.StorageManagerFileStatus="amplify-storagemanager__file__status",e.StorageManagerLoader="amplify-storagemanager__loader",e.StorageManagerPreviewer="amplify-storagemanager__previewer",e.StorageManagerPreviewerText="amplify-storagemanager__previewer__text",e.StorageManagerPreviewerActions="amplify-storagemanager__previewer__actions",e.StorageManagerPreviewerFooter="amplify-storagemanager__previewer__footer",e.SwitchField="amplify-switchfield",e.SwitchLabel="amplify-switch-label",e.SwitchThumb="amplify-switch-thumb",e.SwitchTrack="amplify-switch-track",e.SwitchWrapper="amplify-switch__wrapper",e.Table="amplify-table",e.TableCaption="amplify-table__c
947aption",e.TableBody="amplify-table__body",e.TableTd="amplify-table__td",e.TableTh="amplify-table__th",e.TableFoot="amplify-table__foot",e.TableHead="amplify-table__head",e.TableRow="amplify-table__row",e.Tabs="amplify-tabs",e.TabItems="amplify-tabs-item",e.Text="amplify-text",e.Textarea="amplify-textarea",e.TextAreaField="amplify-textareafield",e.TextField="amplify-textfield",e.ToggleButton="amplify-togglebutton",e.ToggleButtonGroup="amplify-togglebuttongroup",e.VisuallyHidden="amplify-visually-hidden"})(zn||(zn={}));const km=e=>{var t;const n=(t=e==null?void 0:e.context.config)===null||t===void 0?void 0:t.loginMechanisms,[r]=n??["username"];return r},D$=e=>{const t=n=>r=>e({type:n,data:r});return{initializeMachine:t("INIT"),resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toResetPassword:t("RESET_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},F$=e=>{var t,n,r,o,i;const s=(t=zf(e))!==null&&t!==void 0?t:{},{codeDeliveryDetails:l,remoteError:h,unverifiedContactMethods:f,validationError:g,totpSecretCode:w=null}=s,{socialProviders:E}=(r=(n=e.context)===null||n===void 0?void 0:n.config)!==null&&r!==void 0?r:{},C=(o=s==null?void 0:s.user)!==null&&o!==void 0?o:(i=e.context)===null||i===void 0?void 0:i.user,A=g&&Object.keys(g).length>0,k=Ds(e),U=e.hasTag("pending")||(k==null?void 0:k.hasTag("pending")),N=(()=>{switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case(k==null?void 0:k.matches("confirmSignUp")):return"confirmSignUp";case(k==null?void 0:k.matches("confirmSignIn")):return"confirmSignIn";case(k==null?void 0:k.matches("setupTOTP.edit")):case(k==null?void 0:k.matches("setupTOTP.submit")):return"setupTOTP";case(k==null?void 0:k.matches("signIn")):return"signIn";case(k==null?void 0:k.matches("signUp")):return"signUp";case(k==null?void 0:k.matches("forceNewPassword")):return"forceNewPassword";case(k==null?void 0:k.matches("resetPassword")):return"resetPassword";case(k==null?void 0:k.matches("confirmResetPassword")):return"confirmResetPassword";case(k==null?void 0:k.matches("verifyUser")):return"verifyUser";case(k==null?void 0:k.matches("confirmVerifyUser")):return"confirmVerifyUser";case(k==null?void 0:k.matches("setupTOTP.getTotpSecretCode")):case e.matches("signIn.runActor"):return"transition";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}})();return{authStatus:(L=>{switch(L){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(N),codeDeliveryDetails:l,error:h,hasValidationErrors:A,isPending:U,route:N,socialProviders:E,totpSecretCode:w,unverifiedContactMethods:f,user:C,validationErrors:g}},R$=({send:e,state:t})=>{const n=D$(e),r=F$(t);return Object.assign(Object.assign({},n),r)},B$=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+29
9471","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],O$={"Account recovery requires verified contact information":"Zurücksetzen des Account benötigt einen verifizierten Account","Back to Sign In":"Zurück zur Anmeldung","Change Password":"Passwort ändern",Changing:"Ändern von",Code:"Code","Confirm Password":"Passwort bestätigen","Please confirm your Password":"Bitte bestätigen Sie Ihr Passwort","Confirm Sign Up":"Registrierung bestätigen","Confirm SMS Code":"SMS-Code bestätigen","Confirm TOTP Code":"TOTP-Code bestätigen",Confirm:"Bestätigen","Confirmation Code":"Bestätigungs-Code",Confirming:"Wird bestätigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",
947Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your Email":"Geben Sie Ihre E-Mail ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen","It may take a minute to arrive":"Es kann eine Minute dauern, bis er ankommt",Loading:"Wird geladen","New password":"Neues Passwort",or:"oder",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zurücksetzen des Passwort","Reset your password":"Zurücksetzen des passwort","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"Überspringen",Submit:"Abschicken",Submitting:"Wird gesendet",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","We Sent A Code":"Wir haben einen Code gesendet","We Texted You":"Wir haben Ihnen eine SMS gesendet","Your code is on the way. To log in, enter the code we sent you":"Ihr Code ist unterwegs. Um sich anzumelden, geben Sie den Code ein, den wir Ihnen gesendet haben","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Confirm a Code":"Code bestätigen","Confirm Sign In":"Anmeldung bestätigen","Create account":"Hier registrieren","Enter your password":"Geben Sie Ihr Passwort ein","Enter your Password":"Geben Sie Ihr Passwort ein","Sign Up with Facebook":"Mit Facebook registrieren","Sign Up with Google":"Mit Google registrieren","Forgot Password":"Passwort vergessen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ungültiges Passwort-Format","Invalid phone number format":"Ungültiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","It may take a minute to arrive.":"Es könnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldever
947suche wurde erreicht","Reset password":"Passwort zurücksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein","We Emailed You":"Email wurde versendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an","Your code is on the way. To log in, enter the code we texted to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an"},U$={"Account recovery requires verified contact information":"Account recovery requires verified contact information","Add your Profile":"Add your Profile","Add your Website":"Add your Website","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Enter your Birthdate":"Enter your Birthdate","Enter your code":"Enter your code","Enter your Confirmation Code":"Enter your Confirmation Code","Enter your Email":"Enter your Email","Enter your Family Name":"Enter your Family Name","Enter your Given Name":"Enter your Given Name","Enter your Middle Name":"Enter your Middle Name","Enter your Name":"Enter your Name","Enter your Nickname":"Enter your Nickname","Enter your Password":"Enter your Password","Enter your phone number":"Enter your phone number","Enter your Preferred Username":"Enter your Preferred Username","Enter your username":"Enter your username","Forgot password?":"Forgot password?","Forgot your password?":"Forgot your password?","Hide password":"Hide password","It may take a minute to arrive":"It may take a minute to arrive",Loading:"Loading","New password":"New password",or:"or",Password:"Password","Phone Number":"Phone Number","Please confirm your Password":"Please confirm your Password","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send code":"Send code","Send Code":"Send Code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in to your account":"Sign in to your account","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"Sign in","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify","We Emailed You":"We Emailed You","We Sent A Code":"We Sent A Code","We Texted You":"We Texted You","Your code is on the way. To log in, enter the code we emailed to":"Your code is on the way. To log in, enter the code we emailed to","Your code is on the way. To log in, enter the code we sent you":"Your code is on the way. To log in, enter the code we sent you","Your code is on the way. To log in, enter the code we texted to":"Your code is on the way. To log in, enter the code we texted to"},$$={"Account recovery requires verified contact information":"La recuperación de la cuenta requiere información de contacto verificada","Back to Sign In":"Volver a inicio de sesión","Change Password":"Cambiar contraseña",Changing:"Cambiando",Code:"Código","Confirm Password":"Confirmar contraseña","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el código de SMS","Confirm TOTP Code":"Confirmar código TOTP",Confirm:"Confirmar","Confirmation Code":"Código de confirmación",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Enter your co
947de":"Ingrese el código","Enter your Email":"Escriba su Email","Enter your Password":"Escriba su Contraseña","Enter your phone number":"Ingrese el número de teléfono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"¿Olvidó su contraseña?","Hide password":"Ocultar contraseña","It may take a minute to arrive":"Es posible que tarde un minuto en llegar",Loading:"Cargando","New password":"Nueva contraseña",or:"o",Password:"Contraseña","Phone Number":"Número de teléfono","Resend Code":"Reenviar código","Reset your password":"Restablecer su contraseña","Reset your Password":"Restablecer su Contraseña","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contraseña","Sign in to your account":"Iniciar sesión en tu cuenta","Sign In with Amazon":"Iniciar Sesión con Amazon","Sign In with Apple":"Iniciar Sesión con Apple","Sign In with Facebook":"Iniciar Sesión con Facebook","Sign In with Google":"Iniciar Sesión con Google","Sign in":"Iniciar sesión","Sign In":"Iniciar Sesión","Signing in":"Iniciando sesión",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","We Emailed You":"Le hemos enviado un correo electrónico","We Sent A Code":"Hemos enviado un código","We Texted You":"Le hemos enviado un mensaje de texto","Your code is on the way. To log in, enter the code we emailed to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por correo electrónico a","Your code is on the way. To log in, enter the code we sent you":"El código está en camino. Para iniciar sesión, escriba el código que le hemos enviado","Your code is on the way. To log in, enter the code we texted to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por mensaje de texto a","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un código","Confirm Sign In":"Confirmar inicio de sesión","Forgot Password":"Olvidé mi contraseña","Incorrect username or password.":"Nombre de usuario o contraseña incorrecta","Invalid password format":"Formato de contraseña inválido","Invalid phone number format":"Formato de número de teléfono inválido","Loading...":"Cargando...","New Password":"Nueva contraseña","Resend a Code":"Reenviar un código","Sign Out":"Cerrar sesión","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vacío","Your passwords must match":"Las contraseñas deben coincidir"},M$={"Account recovery requires verified contact information":"La récupération du compte nécessite des informations de contact vérifiées","Back to Sign In":"Retour à la connexion","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Créer un nouveau compte","Create Account":"Créer un compte","Creating Account":"Création d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your Email":"Saisissez votre adresse email","Enter your phone number":"Saisissez votre numéro de téléphone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oublié ? ","Hide password":"Masquer le mot de passe","It may take a minute to arrive":"Cela peut prendre une minute",Loading:"Chargement en cours","New password":"Nouveau mot de passe",or:"ou",Password:"Mot de passe","Phone Number":"Numéro de téléphone","Resend Code":"Renvoyer le code","Reset your Password":"Réinitialiser votre mot de passe","Reset your password":"Réinitialisez votre mot de passe","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion à votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours",Username:"Nom d'utilisateur","Verify Contact":"Vérifier le contact",Verify:"Vérifier","We Sent A Code":"Nous avons envoyé un code","We Texted You":"Nous vous avons envoyé un 
947SMS","Your code is on the way. To log in, enter the code we sent you":"Votre code est en cours d'envoi. Pour vous connecter, saisissez le code que nous vous avons envoyé","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe déjà.",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Créer un compte","Enter your password":"Saisissez votre mot de passe","Forgot Password":"Mot de passe oublié","Have an account? ":"Déjà un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de numéro de téléphone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur réseau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ","Resend a Code":"Renvoyer un code","Reset password":"Réinitialisez votre mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"Déconnexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe déjà","User does not exist":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit être renseigné","Username/client id combination not found.":"L'utilisateur n'existe pas","We Emailed You":"Nous vous avons envoyé un code","Your code is on the way. To log in, enter the code we emailed to":"Votre code est en route. Pour vous connecter entrez le code reçu sur cette adresse email","Your code is on the way. To log in, enter the code we texted to":"Votre code est en route. Pour vous connecter entrez le code reçu sur ce numéro de téléphone","Your passwords must match":"Vos mots de passe doivent être identiques","It may take a minute to arrive.":"Cela peut prendre quelques minutes."},L$={"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Ignora l'avviso",Email:"Email","Enter your code":"Inserisci il tuo codice","Enter your Email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password","It may take a minute to arrive":"L'arrivo potrebbe richiedere qualche minuto",Loading:"Caricamento in corso","New password":"Nuova password",or:"oppure",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Invia nuovamente il codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accedi","Sign In":"Accedi","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","We Emailed You":"Ti abbiamo inviato un'e-mail","We Sent A Code":"Ti abbiamo inviato un codice","We Texted You":"Ti abbiamo inviato un SMS","Your code is on the way. To log in, enter the code we emailed to":"Il codice è in arrivo. Per effettuare l'accesso, immetti il codice che ti abbiamo inviato via e-mail","Your code is on the way. To log in, enter the code we sent you":"Il codice è in arrivo. Per accedere, immetti il codice che ti abbiamo inviato","Your code is on the way. To log in, enter the code we texted to":"Il codice è in arrivo. Per accedere, immetti il codice che abbiamo inviato tramite SMS","An account with the given email already exists.":"Questa email è già utilizzata da un altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot Password?":"Password dimenticata?","Have an account? ":"Già registrato?","Incorrect username or password":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your co
947de?":"Codice smarrito?","New Password":"Nuova password","No account? ":"Non hai un account?","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti è stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente già esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non può essere vuoto"},V$={"Account recovery requires verified contact information":"アカウントの復旧には確認済みの連絡先が必要です","Back to Sign In":"サインインに戻る","Change Password":"パスワードを変える ",Changing:"変更中",Code:"コード","Confirm Password":"パスワードの確認","Confirm Sign Up":"登録する","Confirm SMS Code":"SMS コードを確認","Confirm TOTP Code":"TOTP コードを確認",Confirm:"確定","Confirmation Code":"確認コード",Confirming:"確認中","Create a new account":"新しいアカウントを作る","Create Account":"アカウントを作る","Creating Account":"アカウントの作成中","Dismiss alert":"アラートを閉じる",Email:"メールアドレス","Enter your code":"コードを入力","Enter your Email":"メールアドレスを入力","Enter your phone number":"電話番号を入力","Enter your username":"ユーザー名を入力 ","Forgot your password?":"パスワードを忘れましたか? ","Hide password":"パスワードを非表示","It may take a minute to arrive":"到着するまでに 1 分かかることがあります。",Loading:"ロード中","New password":"新しいパスワード",or:"又は",Password:"パスワード ","Phone Number":"電話番号","Resend Code":"コードを再送信","Reset your Password":"パスワードをリセット","Reset your password":"パスワードをリセットする","Send code":"コードを送信","Send Code":"コードを送信",Sending:"送信中","Setup TOTP":"TOTP をセットアップ","Show password":"パスワードを表示","Sign in to your account":"アカウントにサインイン ","Sign In with Amazon":"Amazonでサインイン","Sign In with Apple":"Apple でサインイン","Sign In with Facebook":"Facebookでサインイン","Sign In with Google":"Googleでサインイン","Sign In":"サインイン ","Sign in":"サインイン","Signing in":"サインイン中",Skip:"スキップ",Submit:"送信",Submitting:"送信中",Username:"ユーザー名 ","Verify Contact":"連絡先を確認",Verify:"確認","We Sent A Code":"コードが送信されました","We Texted You":"テキストが送信されました","Your code is on the way. To log in, enter the code we sent you":"コードが途中です。ログインするには、送信したコードを入力してください。","An account with the given email already exists.":"入力されたメールアドレスのアカウントが既に存在します","Confirm a Code":"コードを確認","Confirm Sign In":"サインインする","Create account":"アカウントを作る ","Enter your password":"パスワードを入力 ","Enter your Password":"パスワードを入力","Please confirm your Password":"パスワードを入力","Forgot Password":"パスワードを忘れた ","Have an account? ":"アカウントを持っていますか?","Incorrect username or password":"ユーザー名かパスワードが異なります ","Invalid password format":"パスワードの形式が無効です ","Invalid phone number format":`不正な電話番号の形式です。
948+12345678900 の形式で入力してください`,"It may take a minute to arrive.":"コードを受信するまで数分かかる場合があります。","Lost your code? ":"コードを失くしましたか?","New Password":"新しいパスワード","No account? ":"アカウントが無いとき ","Password attempts exceeded":"サインインの試行回数が上限に達しました","Reset password":"パスワードをリセット ","Reset Password":"パスワードをリセット","Sign Out":"サインアウト ","Sign Up":"登録 ","User already exists":"既にユーザーが存在しています ","User does not exist":"ユーザーが存在しません ","Username cannot be empty":"ユーザー名は入力必須です","We Emailed You":"コードを送信しました","Your code is on the way. To log in, enter the code we emailed to":"ログインするには、メールに記載されたコードを入力してください。送信先:","Your code is on the way. To log in, enter the code we texted to":"ログインするには、テキストメッセージに記載されたコードを入力してください。送信先:"},j$={"Account recovery requires verified contact information":"계정 복구를 위해 연락처 확인이 필요합니다","Back to Sign In":"로그인으로 돌아가기","Change Password":"비밀번호 변경하기",Changing:"변경중",Code:"코드","Confirm Password":"비밀번호 재확인","Confirm Sign Up":"회원가입 확인","Confirm SMS Code":"휴대폰 본인 확인","Confirm TOTP Code":"TOTP 인증번호 확인",Confirm:"확인","Confirmation Code":"인증번호",Confirming:"확인중","Create a new account":"회원가입","Create Account":"회원가입","Creating Account":"회원가입중","Dismiss alert":"알림 무시",Email:"이메일","Enter your co
948de":"인증번호를 입력해주세요","Enter your Email":"이메일 입력","Enter your phone number":"전화번호 입력","Enter your username":"아이디를 입력해주세요","Hide password":"비밀번호 숨기기","It may take a minute to arrive":"도착하는 데 1분 정도 걸릴 수 있습니다",Loading:"로딩중","New password":"새 비밀번호",or:"또는",Password:"비밀번호","Phone Number":"전화번호","Resend Code":"인증번호 재전송","Reset your password":"비밀번호 재설정","Reset your Password":"비밀번호 재설정","Send code":"인증코드 보내기","Send Code":"코드 전송",Sending:"전송중","Setup TOTP":"TOTP 설정하기","Show password":"비밀번호 보이기","Sign in to your account":"로그인","Sign In with Amazon":"Amazon 로그인","Sign In with Apple":"Apple 로그인","Sign In with Facebook":"Facebook 로그인","Sign In with Google":"Google 로그인","Sign in":"로그인","Sign In":"로그인","Signing in":"로그인중",Skip:"다음에 하기",Submit:"확인",Submitting:"확인중",Username:"아이디","Verify Contact":"연락처 확인",Verify:"인증","We Emailed You":"이메일을 보냄","We Sent A Code":"코드를 보냄","We Texted You":"문자 메시지를 보냄","Your code is on the way. To log in, enter the code we emailed to":"코드가 전송 중입니다. 로그인하려면 이메일로 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we sent you":"코드가 전송 중입니다. 로그인하려면 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we texted to":"코드가 전송 중입니다. 로그인하려면 문자 메시지로 전송한 코드를 입력하세요",Birthdate:"생년월일","Family Name":"성","Forgot your password?":"비밀번호를 잊으셨나요?","Given Name":"이름",Name:"성함",Nickname:"닉네임","Preferred Username":"닉네임",Profile:"프로필","Reset Password":"비밀번호 재설정",Website:"웹사이트"},z$={"Account recovery requires verified contact information":"Gjenoppretting av konto krever verifisert kontaktinformajson","Add your Profile":"Legg til profilen din","Add your Website":"Legg til nettsiden din","Back to Sign In":"Tilbake til innlogging","Change Password":"Bytt passord",Changing:"Endre",Code:"Kode","Confirm Password":"Bekreft passordet","Confirm Sign Up":"Bekreft registrering","Confirm SMS Code":"Bekreft SMS-kode","Confirm TOTP Code":"Bekreft TOTP-kode",Confirm:"Bekreft","Confirmation Code":"Bekreftelseskode",Confirming:"Bekrefter","Create a new account":"Opprett en ny konto","Create Account":"Opprett konto","Creating Account":"Oppretter konto","Dismiss alert":"Avvis varsel",Email:"E-post","Enter your Birthdate":"Skriv inn fødselsdatoen din","Enter your code":"Skriv inn koden din","Enter your Confirmation Code":"Skriv inn bekreftelseskoden din","Enter your Email":"Skriv inn e-postadressen din","Enter your Family Name":"Skriv inn etternavnet ditt","Enter your Given Name":"Skriv inn fornavnet ditt","Enter your Middle Name":"Skriv inn mellomnavnet ditt","Enter your Name":"Skriv inn navnet ditt","Enter your Nickname":"Skriv inn kallenavnet ditt","Enter your Password":"Skriv inn passordet ditt","Enter your phone number":"Skriv inn telefonnummeret ditt","Enter your Preferred Username":"Skriv inn det foretrukne brukernavnet ditt","Enter your username":"Skriv inn brukernavnet ditt","Forgot password?":"Glemt passord?","Forgot your password?":"Glemt passordet ditt?","Hide password":"Skjul passordet","It may take a minute to arrive":"Det kan ta et minutt for å komme frem",Loading:"Laster inn","New password":"Nytt passord",or:"eller",Password:"Passord","Phone Number":"Telefonnummer","Please confirm your Password":"Vennligst bekreft passordet ditt","Resend Code":"Send koden på nytt","Reset your password":"Nullstill passordet ditt","Reset your Password":"Nullstill passordet ditt","Send code":"Send kode","Send Code":"Send kode",Sending:"Sender","Setup TOTP":"Konfigurer TOTP","Show password":"Vis passordet","Sign in to your account":"Logg inn på kontoen din","Sign In with Amazon":"Logg inn med Amazon","Sign In with Apple":"Logg inn med Apple","Sign In with Facebook":"Logg inn med Facebook","Sign In with Google":"Logg inn med Google","Sign in":"Logg inn","Sign In":"Logg inn","Signing in":"Logger inn",Skip:"Hopp over",Submit:"Send inn",Submitting:"Sender inn",Username:"Brukernavn","Verify Contact":"Bekreft kontakt",Verify:"Bekreft","We Emailed You":"Vi sendte deg en e-post","We Sent A Code":"Vi sendte en kode","We Texted You":"Vi sendte deg en tekstmelding","Your code is on the way. To log in, enter the code we emailed to":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte e-post til","Your code is on the way. To log in, enter the code we sent you":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte deg","Your code is on the way. To log in, enter the code we texted to":"Koden din er på vei. For å logge inn, skriv inn koden vi sendte tekstmelding til","An account with the given email already exists.":"Det finnes allerede en konto med denne e-postadressen","Confirm a Code":"Bekreft koden","Confirm Sign In":"Bekreft innlogging","Create account":"Opprett konto","Enter your password":"Skriv inn passordet ditt","Forgot Password":"Glemt passordet","Have an account? ":"Har en konto allerede? ","Incorrect username or password":"Feil brukernavn eller passord","Invalid password format":"Ugyldig passordformat","Invalid phone number format":"Ugyldig telefonnummerformat","Lost your co
948de? ":"Mistet koden? ","New Password":"Nytt passord","No account? ":"Ingen konto? ","Password attempts exceeded":"For mange mislykkede passordforsøk","Reset password":"Nullstill passord","Sign Out":"Logg ut","Sign Up":"Registrering","User already exists":"Brukeren finnes allerede","User does not exist":"Brukeren finnes ikke","Username cannot be empty":"Brukernavnet kan ikke være tomt"},H$={"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Enter your code":"Vul je code in","Enter your Email":"Vul je e-mail in","Enter your Password":"Vul je wachtwoord in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Enter your Username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord","It may take a minute to arrive":"Het kan even duren voordat deze aankomt",Loading:"Laden","New password":"Nieuw wachtwoord","New Password":"Nieuw Wachtwoord",or:"of",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Please confirm your Password":"Bevestig je wachtwoord","Resend Code":"Verstuur code nogmaals","Reset Password":"Wachtwoord resetten","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer","We Emailed You":"We hebben u een e-mail gestuurd","We Sent A Code":"We hebben een code gestuurd","We Texted You":"We hebben u een sms gestuurd","Your code is on the way. To log in, enter the code we emailed to":"Uw code is onderweg. Om in te loggen, voer de code in die we gemaild hebben naar","Your code is on the way. To log in, enter the code we sent you":"Uw code is onderweg. Om in te loggen, voer de code in die we u hebben gestuurd","Your code is on the way. To log in, enter the code we texted to":"Uw code is onderweg. Om in te loggen, voer de code in die we hebben gestuurd naar","Your passwords must match":"Je wachtwoorden moeten overeenkomen"},G$={"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Back to Sign In":"Powrót do logowania","Change Password":"Zmień hasło",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierdź Hasło","Confirm Sign Up":"Potwierdź rejestrację","Confirm SMS Code":"Potwierdź kod SMS","Confirm TOTP Code":"Potwierdź hasło jednorazowe",Confirm:"Potwierdź","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create a new account":"Utwórz nowe konto","Create Account":"Utwórz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzuć alert",Email:"E-mail","Enter your code":"Wprowadź swój kod","Enter your Email":"Wpisz swój adres e-mail","Enter your phone number":"Wpisz swój numer telefonu","Enter your username":"Wprowadź swoją nazwę użytkownika","Forgot your password?":"Zapomniałeś hasła? ","Hide password":"Ukryj hasło","It may take a minute to arrive":"Może to chwilę potrwać",Loading:"Ładowanie","New password":"Nowe hasło",or:"albo",Password:"Hasło","Phone Number":"Numer telefonu","Resend Code":"Wyślij kod ponownie","Reset your password":"Zresetuj swoje hasło","Reset your Password":"Zresetuj swoje hasło","Send code":"Wyślij kod","Send Code":"Zresetuj hasło",Sending:"Wysyłanie","Setup TOTP":"Konfiguruj TOTP","Show password":"Pokaż hasło","Sign in to your account":"Zaloguj się na swoje konto","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign In":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomiń",Submit:"Wyślij",Submitting:"Wysyłanie",Username:"Nazwa użytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imię","Middle Name":"Drugie imię",Name:"Imię i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa użytkownika",Profile:"Profil",Website:"Strona internetowa","We Emailed You":"Wysłaliśmy Ci wiadomość e-mail","We Sent A Code":"Wysłaliśmy kod","We Texted You":"Wysłaliśmy Ci wiadomość SMS","Your code is on the way. To log in, enter the code we emailed to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany na adres e-mail","Your code is on the way. To log in, enter the code we sent you":"Twój kod został wysłany. Aby się zalogować, wprowadź wysłany do Ciebie k
948od","Your code is on the way. To log in, enter the code we texted to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany do Ciebie w wiadomości SMS pod numer"},W$={"Account recovery requires verified contact information":"A recuperação da conta requer informações de contato verificadas","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"Código","Confirm Password":"Confirme a Senha","Confirm Sign Up":"Confirmar inscrição","Confirm SMS Code":"Confirme o código SMS","Confirm TOTP Code":"Confirme o código TOTP",Confirm:"confirme","Confirmation Code":"Código de confirmação",Confirming:"Confirmando","Create a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Enter your code":"Insira seu código","Enter your Email":"Digite seu e-mail","Enter your phone number":"Digite seu número de telefone","Enter your username":"entre com seu nome de usuário","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha","It may take a minute to arrive":"Pode levar um minuto para chegar",Loading:"Carregando","New password":"Nova Senha",or:"ou",Password:"Senha","Phone Number":"Número de telefone","Resend Code":"Reenviar código","Reset your password":"Redefina sua senha","Reset your Password":"Redefina sua senha","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign in to your account":"Faça login em sua conta","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Faça login no Google","Sign in":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando",Username:"Nome do usuário","Verify Contact":"Verificar contato",Verify:"Verificar","We Emailed You":"Enviamos um e-mail para você","We Sent A Code":"Enviamos um código","We Texted You":"Enviamos um SMS para você","Your code is on the way. To log in, enter the code we emailed to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos um e-mail","Your code is on the way. To log in, enter the code we sent you":"Seu código está a caminho. Para fazer login, insira o código que enviamos para você","Your code is on the way. To log in, enter the code we texted to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos uma mensagem de texto"},q$={"Account recovery requires verified contact information":"账户恢复需要验证过的联系方式","Back to Sign In":"回到登录","Change Password":"更改密码",Changing:"正在修改",Code:"确认码","Confirm Password":"确认密码","Confirm Sign Up":"确认注册","Confirm SMS Code":"确认短信验证码","Confirm TOTP Code":"确认 TOTP 代码",Confirm:"确认","Confirmation Code":"确认码",Confirming:"正在确认","Create a new account":"创建新账户","Create Account":"创建账户","Creating Account":"正在创建账户","Dismiss alert":"关闭警报",Email:"邮箱","Enter your code":"输入验证码","Enter your Email":"输入电子邮件","Enter your phone number":"输入电话号码","Enter your username":"输入用户名","Forgot your password?":"忘记密码了?","Hide password":"隐藏密码","It may take a minute to arrive":"可能需要一分钟才能到达",Loading:"正在加载","New password":"新密码",or:"或者",Password:"密码","Phone Number":"电话","Resend Code":"重发验证码","Reset your password":"重置密码","Reset your Password":"重置密码","Send Code":"发送确认码","Send code":"发送验证码",Sending:"正在发送","Setup TOTP":"设置 TOTP","Show password":"显示密码","Sign in to your account":"登录账户","Sign In with Amazon":"通过 Amazon 登录","Sign In with Apple":"通过 Apple 登录","Sign In with Facebook":"通过 Facebook 登录","Sign In with Google":"通过 Google 登录","Sign in":"登录","Sign In":"登录","Signing in":"正在登录",Skip:"跳过",Submit:"提交",Submitting:"正在提交",Username:"用户名","Verify Contact":"验证联系方式",Verify:"验证","We Emailed You":"我们给您发送了电子邮件","We Sent A Code":"我们发送了代码","We Texted You":"我们给您发送了短信","Your code is on the way. To log in, enter the code we emailed to":"您的代码正在发送中。要登录,请输入我们通过电子邮件发送给以下人员的代码:","Your code is on the way. To log in, enter the code we sent you":"您的代码正在发送中。要登录,请输入我们发送给您的代码","Your code is on the way. To log in, enter the code we texted to":"您的代码正在发送中。要登录,请输入我们通过短信发送给以下人员的代码:","Confirm a Code":"确认码","Confirm Sign In":"确认登录","Forgot Password":"忘记密码","Incorrect username or password":"用户名或密码错误","Invalid password format":"密码格式错误","Invalid phone number format":"电话格式错误,请使用格式 +12345678900","New Password":"新密码","Resend a Code":"重发确认码","Sign Out":"退出","Sign Up":"注册","User already exists":"用户已经存在","User does not exist":"用户不存在"},K$={"Account recovery requires verified contact information":"För att återställa kontot behöver du ett verifierat konto","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt lösenord",Changing:"Ändra",Code:"Kod","Confirm Password":"Bekräfta lösenord","Confirm Sign Up":"Bekräfta registrering","Confirm SMS Code":"Bekräfta SMS-kod","Confirm TOTP Code":"Bekräfta TOTP-kod",Confirm:"Bekräfta","Confirmation Code":"Verifikationskod",Confirming:"Bekräftar","Create a new account":"Skapa ett nytt k
948onto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Enter your code":"Skriv din kod","Enter your Email":"Fyll i din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt användarnamn","Forgot your password?":"Glömt ditt lösenord? ","Hide password":"Dölj lösenord","It may take a minute to arrive":"Det kan ta en minut att komma fram",Loading:"Laddar","New password":"Nytt lösenord",or:"eller",Password:"Lösenord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"Återställ ditt lösenord","Reset your Password":"Återställ ditt lösenord","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup TOTP":"Konfigurera TOTP","Show password":"Visa lösenord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa över",Submit:"Skicka",Submitting:"Skickar in",Username:"Användarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","We Sent A Code":"Vi skickade en kod","We Texted You":"Vi sms:ade dig","Your code is on the way. To log in, enter the code we emailed to":"Din kod är på väg. För att logga in, ange koden vi mejlade till","Your code is on the way. To log in, enter the code we sent you":"Din kod är på väg. För att logga in, ange koden vi skickade till dig","Your code is on the way. To log in, enter the code we texted to":"Din kod är på väg. För att logga in, ange koden vi sms:ade till","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekräfta koden","Confirm Sign In":"Bekräfta inloggning","Create account":"Skapa konto","Enter your password":"Ange ditt lösenord","Forgot Password":"Glömt lösenordet","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt användarnamn eller lösenord","Invalid password format":"Ogiltigt lösenordsformat","Invalid phone number format":"Ogiltigt format för telefonnummer","Lost your code? ":"Förlorat koden? ","New Password":"Nytt lösenord","No account? ":"Inget konto? ","Password attempts exceeded":"Maximalt antal felaktiga inloggningsförsök har uppnåtts","Reset password":"Återställ lösenord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Användaren finns redan","User does not exist":"Användaren finns inte","Username cannot be empty":"Användarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig"},Y$={"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Enter your code":"Masukkan kode anda","Enter your Email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi","It may take a minute to arrive":"Mungkin perlu waktu satu menit untuk tiba",Loa
948ding:"Memuat","New password":"Kata sandi baru",or:"atau",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","We Sent A Code":"Kami Mengirim Kode","We Texted You":"Kami mengirim SMS kepada Anda","Your code is on the way. To log in, enter the code we sent you":"Kode Anda segera hadir. Untuk masuk, masukkan kode yang kami kirimkan kepada Anda","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot Password":"Lupa kata sandi","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","No account? ":"Tidak ada akun?","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"},J$={"Account recovery requires verified contact information":"Hesap kurtarma, doğrulanmış iletişim bilgilerini gerektirir","Back to Sign In":"Oturum Açmaya Geri Dön","Change Password":"Şifreyi Değiştir",Changing:"Değiştiriliyor",Code:"Kod","Confirm Password":"Şifreyi Doğrula","Confirm Sign Up":"Kayıt İşlemini Doğrula","Confirm SMS Code":"SMS Kodunu Doğrula","Confirm TOTP Code":"Tek Kullanımlık Şifreyi Doğrula",Confirm:"Doğrula","Confirmation Code":"Doğrulama Kodu",Confirming:"Doğrulanıyor","Create a new account":"Yeni bir hesap oluştur","Create Account":"Hesap Oluştur","Creating Account":"Hesap Oluşturuluyor","Dismiss alert":"Uyarıyı reddet",Email:"E-posta","Enter your code":"Kodu girin","Enter your Email":"E-posta adresinizi girin","Enter your phone number":"Telefon numaranızı girin","Enter your username":"Kullanıcı adınızı girin","Forgot your password?":"Şifrenizi mi unuttunuz?","Hide password":"Şifreyi gizle","It may take a minute to arrive":"Kodun gelmesi bir dakika sürebilir",Loading:"Yükleniyor","New password":"Yeni şifre",or:"veya",Password:"Şifre","Phone Number":"Telefon Numarası","Resend Code":"Kodu Yeniden Gönder","Reset your password":"Şifrenizi sıfırlayın","Reset your Password":"Şifrenizi Sıfırlayın","Send code":"Kod gönder","Send Code":"Kod Gönder",Sending:"Gönderiliyor","Setup TOTP":"Tek kullanımlık şifre kurulumu yap","Show password":"Şifreyi göster","Sign in to your account":"Hesabınızda oturum açın","Sign In with Amazon":"Amazon ile Oturum Aç","Sign In with Apple":"Apple ile Oturum Aç","Sign In with Facebook":"Facebook ile Oturum Aç","Sign In with Google":"Google ile Oturum Aç","Sign in":"Oturum aç","Sign In":"Oturum Aç","Signing in":"Oturum açılıyor",Skip:"Atla",Submit:"Gönder",Submitting:"Gönderiliyor",Username:"Kullanıcı adı","Verify Contact":"Kişiyi Doğrula",Verify:"Doğrula","We Emailed You":"Size E-posta Gönderdik","We Sent A Code":"Bir Kod Gönderdik","We Texted You":"Size Mesaj Gönderdik","Your code is on the way. To log in, enter the code we emailed to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz e-postadaki kodu girin","Your code is on the way. To log in, enter the code we sent you":"Kodunuz yolda. Oturum açmak için, size gönderdiğimiz kodu girin","Your code is on the way. To log in, enter the code we texted to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz mesajdaki kodu girin","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum Açmayı Doğrula","Have an account? ":"Hesabınız var mı? ","Incorrect username or password":"Yanlış kullanıcı adı ya da şifre","Invalid password format":"Geçersiz parola formatı","Invalid phone number format":"Geçersiz telefon numarası formatı","Lost your co
948de? ":"Kodu mu kaybettiniz? ","No account? ":"Hesabınız yok mu? ","Password attempts exceeded":"Maksimum oturum açma girişimi aşıldı","Sign Out":"Çıkış yap","Sign Up":"Kayıt Ol","User already exists":"Bu kullanıcı zaten var","User does not exist":"Böyle bir kullanıcı mevcut değil","Username cannot be empty":"Kullanıcı adı boş olamaz"},X$={"Account recovery requires verified contact information":"Восстановление учетной записи требует проверки контактной информации","Back to Sign In":"Назад, чтобы войти","Change Password":"изменять пароль",Changing:"Изменение",Code:"Код","Confirm Password":"Подтверждение пароля","Confirm Sign Up":"Подтверждение зарегистрироваться","Confirm SMS Code":"Подтверждение CMC-Код","Confirm TOTP Code":"Подтверждение TOTP-Код",Confirm:"Подтверждать","Confirmation Code":"код подтверждения",Confirming:"подтверждение","Create a new account":"Создавать новую учетную запись","Create Account":"Создать учетную запись","Creating Account":"создание учетная запись","Dismiss alert":"Закрыть оповещение",Email:"электронная почта","Enter your code":"ввести ваш Код","Enter your Email":"ввести ваш электронная почта","Enter your phone number":"ввести ваш номер телефона","Enter your username":"ввести ваш имя пользователя","Forgot your password?":"Забыли ваш пароль?","Hide password":"Скрывать пароль","It may take a minute to arrive":"Доставка может занять некоторое время",Loading:"Загрузка","New password":"Новый пароль",or:"или",Password:"Пароль","Phone Number":"Номер телефона","Resend Code":"Отправь еще раз Код","Reset your password":"сброс ваш пароль","Reset your Password":"сброс ваш Пароль","Send code":"Отправлять Код","Send Code":"Отправлять Код",Sending:"отправка","Setup TOTP":"Настраивать TOTP","Show password":"Показывать пароль","Sign in to your account":"знак в свой аккаунт","Sign In with Amazon":"знак в с Amazon","Sign In with Apple":"знак в с Apple","Sign In with Facebook":"знак в с Facebook","Sign In with Google":"знак в с Google","Sign in":"знак в","Sign In":"знак в","Signing in":"подписание в",Skip:"Пропускать",Submit:"Представлять на рассмотрение",Submitting:"Представив",Username:"Имя пользователя","Verify Contact":"Проверить контакт",Verify:"Проверить","We Emailed You":"Мы отправили вам электронное письмо","We Sent A Code":"Мы отправили код","We Texted You":"Мы отправили вам текстовое сообщение","Your code is on the way. To log in, enter the code we emailed to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили по электронной почте","Your code is on the way. To log in, enter the code we sent you":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы послали вам","Your code is on the way. To log in, enter the code we texted to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили текстовым сообщением"},Z$={"Account recovery requires verified contact information":"שחזור לקוח דורש עוד מידע","Back to Sign In":"חזור להרשמה","Change Password":"עדכון סיסמא",Changing:"מעדכן",Code:"קוד","Confirm Password":"אשר סיסמא","Confirm Sign Up":"אשר הרשמה","Confirm SMS Code":"אשר sms קוד","Confirm TOTP Code":"אשר totp קוד",Confirm:"אישור","Confirmation Code":"אישור קוד",Confirming:"מאשר","Create a new account":"צור משתמש חדש","Create Account":"צור משתמש","Creating Account":"יצירת משתמש","Dismiss alert":"הסר התראה",Email:"אימייל","Enter your co
948de":"הכנס את הקוד","Enter your Email":"הכנס את המייל שלך","Enter your phone number":"הכנס את מספר הטלפון שלך","Enter your username":"הכנס את שם המתמש שלך","Forgot your password?":"שחכת סיסמא ?","Hide password":"הסתר סיסמא",Loading:"טוען","New password":"סיסמא חדשה",or:"אוֹ",Password:"סיסמא","Phone Number":"מספר טלפון","Resend Code":"שלח קוד שוב","Reset your password":"אפס סיסמא","Reset your Password":"אפס סיסמא","Send code":"שלח קוד","Send Code":"שלח קוד",Sending:"שולח","Setup TOTP":"Setup TOTP","Show password":"הצג סיסמא","Sign in to your account":"התחבר לחשבון שלך","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"התחבר","Sign In":"התחבר","Signing in":"מתחבר",Skip:"דלג",Submit:"שלח",Submitting:"שולח",Username:"שם משתמש","Verify Contact":"אמת איש קשר",Verify:"אמת"},Q$={"Account recovery requires verified contact information":"Відновлення облікового запису потребує контактної інформації","Back to Sign In":"Назад на сторінку входу","Change Password":"Змінити пароль",Changing:"Змінюємо",Code:"Код","Confirm Password":"Підтвердіть пароль","Confirm Sign Up":"Підтвердіть реєстрацію","Confirm SMS Code":"Підтвердіть SMS код","Confirm TOTP Code":"Підтвердіть TOTP код",Confirm:"Підтвердити","Confirmation Code":"Код підтвердження",Confirming:"Підтверджуємо","Create a new account":"Зареєструватися","Create Account":"Зареєструватися","Creating Account":"Реєструємо","Dismiss alert":"Відхилити сповіщення",Email:"Email","Enter your code":"Введіть код","Enter your Email":"Введіть ваш email","Enter your phone number":"Введіть ваш номер телефону","Enter your username":"Введіть ваше імʼя користувача","Forgot password?":"Забули пароль?","Forgot your password?":"Забули ваш пароль?","Hide password":"Сховати пароль","It may take a minute to arrive":"Доставка може тривати хвилину",Loading:"Загружаємо","New password":"Новий пароль",or:"або",Password:"Пароль","Phone Number":"Номер Телефону","Resend Code":"Відправити код повторно","Reset your password":"Скинути пароль","Reset your Password":"Скинути пароль","Send code":"Відправити код","Send Code":"Відправити код",Sending:"Відправляємо","Setup TOTP":"Налаштувати TOTP","Show password":"Показати пароль","Sign in to your account":"Увійти у ваш обліковий запис","Sign In with Amazon":"Увійти з Amazon","Sign In with Apple":"Увійти з Apple","Sign In with Facebook":"Увійти з Facebook","Sign In with Google":"Увійти з Google","Sign in":"Увійти","Sign In":"Увійти","Signing in":"Входимо",Skip:"Пропустити",Submit:"Відправити",Submitting:"Відправляємо",Username:"Імʼя користувача","Verify Contact":"Підтвердити Контакт",Verify:"Підтвердити","We Emailed You":"Ми відправили вам Email","We Sent A Code":"Ми відправили код","We Texted You":"Ми відправили вам текстове повідомлення","Your code is on the way. To log in, enter the code we emailed to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам на Email","Your code is on the way. To log in, enter the code we sent you":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми вам відправили","Your code is on the way. To log in, enter the code we texted to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам текстовим повідомленням","An account with the given email already exists.":"Обліковий запис з цим Email вже існує.","Confirm a Code":"Підтвердіть код","Confirm Sign In":"Підтвердіть вхід","Forgot Password":"Забули пароль","Incorrect username or password.":"Невірне імʼя користувача або пароль","Invalid password format":"Невірний формат паролю","Invalid phone number format":"Невірний формат номеру телефону","Loading...":"Загружаємо...","New Password":"Новий пароль","Resend a Code":"В
948ідправити код повторно","Reset Password":"Скинути пароль","Sign Out":"Вийти","Sign Up with Amazon":"Зареєструватися з Amazon","Sign Up with Apple":"Зареєструватися з Apple","Sign Up with Facebook":"Зареєструватися з Facebook","Sign Up with Google":"Зареєструватися з Google","Sign Up":"Зареєструватися","User already exists":"Користувач вже існує","User does not exist":"Такий користувач не існує","Username cannot be empty":"Імʼя користувача не може бути пустим","Your passwords must match":"Паролі мають збігатися"},eM={ADD_PROFILE:"Add your Profile",ADD_WEBSITE:"Add your Website",BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Please confirm your Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_BIRTHDATE:"Enter your Birthdate",ENTER_CODE:"Enter your code",ENTER_CONFIRMATION_CODE:"Enter your Confirmation Code",ENTER_EMAIL:"Enter your Email",ENTER_FAMILY_NAME:"Enter your Family Name",ENTER_GIVEN_NAME:"Enter your Given Name",ENTER_MIDDLE_NAME:"Enter your Middle Name",ENTER_NAME:"Enter your Name",ENTER_NICK_NAME:"Enter your Nickname",ENTER_PASSWORD:"Enter your Password",ENTER_PHONE_NUMBER:"Enter your Phone Number",ENTER_PREFERRED_USERNAME:"Enter your Preferred Username",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",UPPERCASE_COPY:"COPY",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"},tM=Object.assign({},O$),nM=Object.assign({},U$),rM=Object.assign({},$$),iM=Object.assign({},M$),oM=Object.assign({},L$),aM=Object.assign({},V$),W4=Object.assign({},j$),sM=Object.assign({},z$),uM=Object.assign({},H$),cM=Object.assign({},G$),lM=Object.assign({},W$),fM=Object.assign({},q$),dM=Object.assign({},K$),hM=Object.assign({},Y$),pM=Object.assign({},J$),gM=Object.assign({},X$),mM=Object.assign({},Z$),yM=Object.assign({},Q$),vM=Object.assign({},eM),kt=Object.assign({},vM);function it(e){return Cs.get(e)}const _M={de:tM,en:nM,es:rM,fr:iM,id:hM,it:oM,ja:aM,kr:W4,ko:W4,nb:sM,nl:uM,pl:cM,pt:lM,zh:fM,sv:dM,tr:pM,ru:gM,he:mM,ua:yM},Hf={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:B$,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},wM=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Ti=e=>{const t=new FormData(e.target);return Object.fromEntries(t)},q4=e=>G4.includes(e),bM=e=>{return e?(t=e,Array.isArray(t)?e:[e]):null;var t};function K4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function jt(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
948return new(n||(n=Promise))(function(i,s){function l(g){try{f(r.next(g))}catch(w){s(w)}}function h(g){try{f(r.throw(g))}catch(w){s(w)}}function f(g){g.done?i(g.value):o(g.value).then(l,h)}f((r=r.apply(e,t||[])).next())})}var Gf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Y4={},J4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});/*! *****************************************************************************
949Copyright (c) Microsoft Corporation.
950
951Permission to use, copy, modify, and/or distribute this software for any
952purpose with or without fee is hereby granted.
953
954THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
955REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
956AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
957INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
958LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
959OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
960PERFORMANCE OF THIS SOFTWARE.
961***************************************************************************** */e.__assign=function(){return e.__assign=Object.assign||function(s){for(var l,h=1,f=arguments.length;h<f;h++){l=arguments[h];for(var g in l)Object.prototype.hasOwnProperty.call(l,g)&&(s[g]=l[g])}return s},e.__assign.apply(this,arguments)};function t(i,s){var l={};for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&s.indexOf(h)<0&&(l[h]=i[h]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,h=Object.getOwnPropertySymbols(i);f<h.length;f++)s.indexOf(h[f])<0&&Object.prototype.propertyIsEnumerable.call(i,h[f])&&(l[h[f]]=i[h[f]]);return l}function n(i){var s=typeof Symbol=="function"&&Symbol.iterator,l=s&&i[s],h=0;if(l)return l.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&h>=i.length&&(i=void 0),{value:i&&i[h++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(i,s){var l=typeof Symbol=="function"&&i[Symbol.iterator];if(!l)return i;var h=l.call(i),f,g=[],w;try{for(;(s===void 0||s-- >0)&&!(f=h.next()).done;)g.push(f.value)}catch(E){w={error:E}}finally{try{f&&!f.done&&(l=h.return)&&l.call(h)}finally{if(w)throw w.error}}return g}function o(i,s,l){if(l||arguments.length===2)for(var h=0,f=s.length,g;h<f;h++)(g||!(h in s))&&(g||(g=Array.prototype.slice.call(s,0,h)),g[h]=s[h]);return i.concat(g||Array.prototype.slice.call(s))}e.__read=r,e.__rest=t,e.__spreadArray=o,e.__values=n})(J4),Object.defineProperty(Y4,"__esModule",{value:!0});var X4=J4,EM={timeout:1e4};function SM(e,t,n){var r=X4.__assign(X4.__assign({},EM),n);return new Promise(function(o,i){var s=!1,l=r.timeout===1/0?void 0:setTimeout(function(){f.unsubscribe(),i(new Error("Timeout of ".concat(r.timeout," ms exceeded")))},r.timeout),h=function(){clearTimeout(l),s=!0,f==null||f.unsubscribe()},f=e.subscribe({next:function(g){t(g)&&(h(),o(g))},error:function(g){h(),i(g)},complete:function(){h(),i(new Error("Actor terminated without satisfying predicate"))}});s&&f.unsubscribe()})}var CM=Y4.waitFor=SM;function Wf(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function xM(e){return typeof e=="string"||typeof e=="object"&&Object.prototype.toString.call(e)==="[object String]"}function AM(e){return Wf(e)&&Object.prototype.toString.call(e)==="[object Map]"}function TM(e){return Wf(e)&&Object.prototype.toString.call(e)==="[object Set]"}function Pm(e){if(e==null)return!0;if(Wf(e)&&(AM(e)||TM(e)))return!e.size;if(Wf(e)&&(xM(e)||Array.isArray(e)))return!e.length;for(const t in e)if(IM(e,t))return!1;return!0}function IM(e,t){return e!=null&&Object.prototype.hasOwnProperty.call(e,t)}function Z4(e){return typeof e=="function"}const kM=({packageName:e,version:t})=>{F6(`${e}/${t}`)},Q4=e=>jt(void 0,void 0,void 0,function*(){try{yield CM(e,t=>Ds(t).matches("autoSignIn"))}catch{}}),eE=({payload:{data:e,event:t}},n,r)=>jt(void 0,void 0,void 0,function*(){const{send:o}=n,i=n.getSnapshot(),{onSignIn:s,onSignOut:l}=r??{};switch(t){case"tokenRefresh":i.matches("authenticated.idle")&&o("TOKEN_REFRESH");break;case"autoSignIn":if(!i.matches("authenticated")){yield Q4(n);const h=Ds(n.getSnapshot());h!=null&&h.matches("autoSignIn")&&o({type:"AUTO_SIGN_IN",data:e})}break;case"autoSignIn_failure":{yield Q4(n);const h=Ds(n.getSnapshot());h!=null&&h.matches("autoSignIn")&&o({type:"AUTO_SIGN_IN_FAILURE",data:e});break}case"signIn":Z4(s)&&s();break;case"signOut":case"tokenRefresh_failure":Z4(l)&&l(),i.matches("authenticated.idle")&&o("SIGN_OUT")}}),PM=(e,t=eE)=>ci.listen("auth",((n,r)=>o=>{r(o,n)})(e,t),"authenticator-hub-handler"),NM=e=>wM.some(t=>e.includes(t)),DM=(e,t,n)=>encodeURI(`otpauth://totp/${e}:${t}?secret=${n}&issuer=${e}`);function FM(e,...t){return Object.entries(e).reduce((n,[r,o])=>Object.assign(Object.assign({},n),{[r]:t.includes(r)?o:o==null?void 0:o.trim()}),{})}const zo=(e,t)=>{const{country_code:n}=zf(e);let r=Hf[t];const{type:o}=r;return o==="tel"&&(r=Object.assign(Object.assign({},r),{dialCode:n})),r},qf=e=>{const t=km(e);return Object.assign(Object.assign({},zo(e,t)),{autocomplete:"username"})},Kf=e=>({confirmation_code:Object.assign(Object.assign({},zo(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}),RM={signIn:e=>({username:Object.assign({},qf(e)),password:Object.assign(Object.assign({},zo(e,"password")),{autocomplete:"current-password"})}),signUp:e=>{const{loginMechanisms:t,signUpAttributes:n}=e.context.config,r=km(e),o=Array.from(new Set([...t,"password","confirm_password",...n])),i={};for(const s of o)if(q4(s)){const l=s===r?qf(e):zo(e,s);i[s]=Object.assign({},l)}else console.debug(`Authenticator does not have a default implementation for ${s}. Customize SignUp FormFields to add your own.`);return i},confirmSignUp:e=>({confirmation_code:Object.assign(Object.assign({}
961,zo(e,"confirmation_code")),{placeholder:"Enter your code"})}),confirmSignIn:Kf,forceNewPassword:e=>{const t=Ds(e),{requiredAttributes:n}=t.context,r=Array.from(new Set(["password","confirm_password",...n])),o={};for(const i of r)q4(i)?o[i]=Object.assign({},zo(e,i)):console.debug(`Authenticator does not have a default implementation for ${i}. Customize ForceNewPassword FormFields to add your own.`);return o},resetPassword:e=>{const t=km(e),{label:n}=Hf[t];return{username:Object.assign(Object.assign({},qf(e)),{label:`Enter your ${n.toLowerCase()}`,placeholder:`Enter your ${n.toLowerCase()}`})}},confirmResetPassword:e=>Object.assign(Object.assign({},Kf(e)),{password:Object.assign(Object.assign({},zo(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:Object.assign(Object.assign({},zo(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})}),confirmVerifyUser:Kf,setupTOTP:Kf},BM=e=>{const t=Object.assign({},e);for(const[n,r]of Object.entries(e)){const{label:o,placeholder:i}=r;t[n]=Object.assign(Object.assign({},r),{label:o?it(o):void 0,placeholder:i?it(i):void 0})}return t},OM=e=>Object.entries(e).sort((t,n)=>(t[1].order||Number.MAX_VALUE)-(n[1].order||Number.MAX_VALUE)).filter(t=>t[1]!==void 0),UM=(e,t)=>(0,RM[e])(t),$M=(e,t)=>{var n,r;const o=(r=(n=zf(t))===null||n===void 0?void 0:n.formFields)===null||r===void 0?void 0:r[e];return o&&Object.keys(o).length!==0?Object.entries(o).reduce((i,[s,l])=>{if(e!=="signIn"&&e!=="resetPassword"||s!=="username"){if(N$(s)){const h=Hf[s],f=Object.assign(Object.assign({},h),l);return Object.assign(Object.assign({},i),{[s]:f})}return Object.assign(Object.assign({},i),{[s]:l})}{const h=qf(t),f=Object.assign(Object.assign({},h),l);return Object.assign(Object.assign({},i),{[s]:f})}},{}):{}},MM=(e,t)=>{const n=UM(e,t),r=$M(e,t),o=Object.assign(Object.assign({},n),r);return delete o.QR,BM(o)},LM=e=>e.map(t=>[t[0],Object.assign(Object.assign({},t[1]),{order:void 0})]),VM=(e,t)=>{const n=MM(e,t);return LM(OM(n))},jM={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},qr={getBackToSignInText:()=>it(kt.BACK_SIGN_IN),getChangePasswordText:()=>it(kt.CHANGE_PASSWORD),getChangingText:()=>it(kt.CHANGING_PASSWORD),getConfirmText:()=>it(kt.CONFIRM),getConfirmingText:()=>it(kt.CONFIRMING),getCopyText:()=>it(kt.UPPERCASE_COPY),getHidePasswordText:()=>it(kt.HIDE_PASSWORD),getLoadingText:()=>it(kt.LOADING),getOrText:()=>it(kt.OR),getResendCodeText:()=>it(kt.RESEND_CODE),getSendCodeText:()=>it(kt.SEND_CODE),getSendingText:()=>it(kt.SENDING),getShowPasswordText:()=>it(kt.SHOW_PASSWORD),getSubmitText:()=>it(kt.SUBMIT),getSubmittingText:()=>it(kt.SUBMITTING),getSignInTabText:()=>it(kt.SIGN_IN_TAB),getSignUpTabText:()=>it(kt.CREATE_ACCOUNT),getForgotPasswordText:e=>it(e?kt.FORGOT_PASSWORD:kt.FORGOT_YOUR_PASSWORD),getSigningInText:()=>it(kt.SIGNING_IN_BUTTON),getSignInText:()=>it(kt.SIGN_IN_BUTTON),getCreatingAccountText:()=>it(kt.CREATING_ACCOUNT),getCreateAccountText:()=>it(kt.CREATE_ACCOUNT),getDeliveryMessageText:e=>{const{DeliveryMedium:t,Destination:n}=e??{},r=t==="EMAIL",o=t==="SMS",i=it(kt.CODE_ARRIVAL);return!r&&!o?`${it(kt.CODE_SENT)}. ${i}.`:`${it(r?kt.CODE_EMAILED:kt.CODE_TEXTED)} ${n}. ${i}.`},getDeliveryMethodText:e=>{const{DeliveryMedium:t}=e??{},n=t==="EMAIL";return it(n||t!=="SMS"?n?kt.WE_EMAILED:kt.WE_TEXTED:kt.WE_SENT_CODE)},getChallengeText:e=>{switch(e){case"SMS_MFA":return it(kt.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return it(kt.CONFIRM_TOTP);default:throw new Error(`${it("Unexpected challengeName encountered in ConfirmSignIn:")} ${e}`)}},getResetYourPasswordText:()=>it(kt.RESET_PASSWORD),getSetupTOTPText:()=>it(kt.SETUP_TOTP),getSetupTOTPInstructionsText:()=>it("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."),getCopiedText:()=>it("COPIED"),getSignInWithFederationText:(e,t)=>it(`Sign ${e==="signIn"?"In":"Up"} with ${jM[t]}`),getSkipText:()=>it(kt.SKIP),getVerifyText:()=>it(kt.VERIFY),getVerifyContactText:()=>it(kt.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>it(kt.VERIFY_HEADING),getInvalidEmailText:()=>it("Please enter a valid email"),getRequiredFieldText:()=>it("This field is required")};/*! *****************************************************************************
962    Copyright (c) Microsoft Corporation.
963
964    Permission to use, copy, modify, and/or distribute this software for any
965    purpose with or without fee is hereby granted.
966
967    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
968    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
969    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
970    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
971    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
972    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
973    PERFORMANCE OF THIS SOFTWARE.
974    ***************************************************************************** */var Re=function(){return Re=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Re.apply(this,arguments)};function Nm(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Mt(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 6,411 bytes, line 974
974if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function fn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Zt;(function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"})(Zt||(Zt={}));var Ho;(function(e){e.Parent="#_parent",e.Internal="#_internal"})(Ho||(Ho={}));var Yf=Zt.Start,Jf=Zt.Stop,Fs=Zt.Raise,pc=Zt.Send,Dm=Zt.Cancel,tE=Zt.NullEvent,Xf=Zt.Assign,zM=Zt.After,HM=Zt.DoneState,Zf=Zt.Log,nE=Zt.Init,Qf=Zt.Invoke,GM=Zt.ErrorExecution,Fm=Zt.ErrorPlatform,Rm=Zt.ErrorCustom,ed=Zt.Update,rE=Zt.Choose,iE=Zt.Pure,WM=Object.freeze(Object.defineProperty({__proto__:null,after:zM,assign:Xf,cancel:Dm,choose:rE,doneState:HM,error:Rm,errorExecution:GM,errorPlatform:Fm,init:nE,invoke:Qf,log:Zf,nullEvent:tE,pure:iE,raise:Fs,send:pc,start:Yf,stop:Jf,update:ed},Symbol.toStringTag,{value:"Module"})),oE=".",aE={},Bm="xstate.guard",qM="",Om;function Um(e,t,n){n===void 0&&(n=oE);var r=gc(e,n),o=gc(t,n);return Xt(o)?Xt(r)?o===r:!1:Xt(r)?r in o:Object.keys(r).every(function(i){return i in o?Um(r[i],o[i]):!1})}function sE(e){try{return Xt(e)||typeof e=="number"?"".concat(e):e.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function $m(e,t){try{return Rs(e)?e:e.toString().split(t)}catch{throw new Error("'".concat(e,"' is not a valid state path."))}}function KM(e){return typeof e=="object"&&"value"in e&&"context"in e&&"event"in e&&"_event"in e}function gc(e,t){if(KM(e))return e.value;if(Rs(e))return td(e);if(typeof e!="string")return e;var n=$m(e,t);return td(n)}function td(e){if(e.length===1)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function mc(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function uE(e,t,n){var r,o,i={};try{for(var s=Mt(Object.keys(e)),l=s.next();!l.done;l=s.next()){var h=l.value,f=e[h];n(f)&&(i[h]=t(f,h,e))}}catch(g){r={error:g}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var YM=function(e){return function(t){var n,r,o=t;try{for(var i=Mt(e),s=i.next();!s.done;s=i.next()){var l=s.value;o=o[l]}}catch(h){n={error:h}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function JM(e,t){return function(n){var r,o,i=n;try{for(var s=Mt(e),l=s.next();!l.done;l=s.next()){var h=l.value;i=i[t][h]}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}}function nd(e){if(!e)return[[]];if(Xt(e))return[[e]];var t=gn(Object.keys(e).map(function(n){var r=e[n];return typeof r!="string"&&(!r||!Object.keys(r).length)?[[n]]:nd(e[n]).map(function(o){return[n].concat(o)})}));return t}function gn(e){var t;return(t=[]).concat.apply(t,fn([],Gt(e),!1))}function cE(e){return Rs(e)?e:[e]}function li(e){return e===void 0?[]:cE(e)}function rd(e,t,n){var r,o;if(Wt(e))return e(t,n.data);var i={};try{for(var s=Mt(Object.keys(e)),l=s.next();!l.done;l=s.next()){var h=l.value,f=e[h];Wt(f)?i[h]=f(t,n.data):i[h]=f}}catch(g){r={error:g}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function XM(e){return/^(done|error)\./.test(e)}function lE(e){return!!(e instanceof Promise||e!==null&&(Wt(e)||typeof e=="object")&&Wt(e.then))}function ZM(e){return e!==null&&typeof e=="object"&&"transition"in e&&typeof e.transition=="function"}function QM(e,t){var n,r,o=Gt([[],[]],2),i=o[0],s=o[1];try{for(var l=Mt(e),h=l.next();!h.done;h=l.next()){var f=h.value;t(f)?i.push(f):s.push(f)}}catch(g){n={error:g}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[i,s]}function fE(e,t){return mc(e.states,function(n,r){if(n){var o=(Xt(t)?void 0:t[r])||(n?n.current:void 0);if(o)return{current:o,states:fE(n,o)}}})}function eL(e,t){return{current:t,states:fE(e,t)}}function dE(e,t,n,r){var o=e&&n.reduce(function(i,s){var l,h,f=s.assignment,g={state:r,action:s,_event:t},w={};if(Wt(f))w=f(i,t.data,g);else try{for(var E=Mt(Object.keys(f)),C=E.next();!C.done;C=E.next()){var A=C.value,k=f[A];w[A]=Wt(k)?k(i,t.data,g):k}}catch(U){l={error:U}}finally{try{C&&!C.done&&(h=E.return)&&h.call(E)}finally{if(l)throw l.error}}return Object.assign({},i,w)},e);return o}var tL=function(){};function Rs(e){return Array.isArray(e)}function Wt(e){return typeof e=="function"}function Xt(e){return typeof e=="string"}function hE(e,t){if(e)return Xt(e)?{type:Bm,name:e,predicate:t?t[e]:void 0}:Wt(e)?{type:Bm,name:e.name,predicate:e}:e}function nL(e){try{return"subscribe"in e&&Wt(e.subscribe)}catch{return!1}}var Go=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();Om={},Om[Go]=function(){return this},Om[Symbol.observable]=function(){return this};function Bs(e){return!!e&&"__xstatenode"in e}function rL(e){return!!e&&typeof e.send=="function"}var iL=function(){var e=0;return function(){return e++,e.toString(16)}}();function id(e,t){return Xt(e)||typeof e=="number"?Re({type:e},t):e}function Hn(e,t){if(!Xt(e)&&"$$type"in e&&e.$$type==="scxml")return e;var n=id(e);return Re({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function Os(e,t){var n=cE(t).map(function(r){return typeof r>"u"||typeof r=="string"||Bs(r)?{target:r,event:e}:Re(Re({},r),{event:e})});return n}function oL(e){if(!(e===void 0||e===qM))return li(e)}function pE(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};
974if(t.type===Bm)return((i==null?void 0:i[t.name])||t.predicate)(n,r.data,s);var l=i==null?void 0:i[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,s)}function gE(e){return typeof e=="string"?{type:e}:e}function od(e,t,n){var r=function(){},o=typeof e=="object",i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function ad(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Mm(e){return(e.type===Fs||e.type===pc&&e.to===Ho.Internal)&&typeof e.delay!="number"}var Da=Hn({type:nE});function sd(e,t){return t&&t[e]||void 0}function Us(e,t){var n;if(Xt(e)||typeof e=="number"){var r=sd(e,t);Wt(r)?n={type:e,exec:r}:r?n=r:n={type:e,exec:void 0}}else if(Wt(e))n={type:e.name||e.toString(),exec:e};else{var r=sd(e.type,t);if(Wt(r))n=Re(Re({},e),{exec:r});else if(r){var o=r.type||e.type;n=Re(Re(Re({},r),e),{type:o})}else n=e}return n}var ao=function(e,t){if(!e)return[];var n=Rs(e)?e:[e];return n.map(function(r){return Us(r,t)})};function ud(e){var t=Us(e);return Re(Re({id:Xt(e)?e:t.id},t),{type:t.type})}function mE(e,t){return{type:Fs,event:typeof e=="function"?e:id(e),delay:t?t.delay:void 0,id:t==null?void 0:t.id}}function yE(e,t,n,r){var o={_event:n},i=Hn(Wt(e.event)?e.event(t,n.data,o):e.event),s;if(Xt(e.delay)){var l=r&&r[e.delay];s=Wt(l)?l(t,n.data,o):l}else s=Wt(e.delay)?e.delay(t,n.data,o):e.delay;return Re(Re({},e),{type:Fs,_event:i,delay:s})}function $s(e,t){return{to:t?t.to:void 0,type:pc,event:Wt(e)?e:id(e),delay:t?t.delay:void 0,id:t&&t.id!==void 0?t.id:Wt(e)?e.name:sE(e)}}function vE(e,t,n,r){var o={_event:n},i=Hn(Wt(e.event)?e.event(t,n.data,o):e.event),s;if(Xt(e.delay)){var l=r&&r[e.delay];s=Wt(l)?l(t,n.data,o):l}else s=Wt(e.delay)?e.delay(t,n.data,o):e.delay;var h=Wt(e.to)?e.to(t,n.data,o):e.to;return Re(Re({},e),{to:h,_event:i,event:i.data,delay:s})}function Lm(e,t){return $s(e,Re(Re({},t),{to:Ho.Parent}))}function aL(e,t,n){return $s(t,Re(Re({},n),{to:e}))}function _E(){return Lm(ed)}function sL(e,t){return $s(e,Re(Re({},t),{to:function(n,r,o){var i=o._event;return i.origin}}))}var uL=function(e,t){return{context:e,event:t}};function cL(e,t){return e===void 0&&(e=uL),{type:Zf,label:t,expr:e}}var wE=function(e,t,n){return Re(Re({},e),{value:Xt(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},bE=function(e){return{type:Dm,sendId:e}};function EE(e){var t=ud(e);return{type:Zt.Start,activity:t,exec:void 0}}function SE(e){var t=Wt(e)?e:ud(e);return{type:Zt.Stop,activity:t,exec:void 0}}function CE(e,t,n){var r=Wt(e.activity)?e.activity(t,n.data):e.activity,o=typeof r=="string"?{id:r}:r,i={type:Zt.Stop,activity:o};return i}var xE=function(e){return{type:Xf,assignment:e}};function lL(e){return typeof e=="object"&&"type"in e}function AE(e,t){var n=t?"#".concat(t):"";return"".concat(Zt.After,"(").concat(e,")").concat(n)}function yc(e,t){var n="".concat(Zt.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function vc(e,t){var n="".concat(Zt.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function Ms(e,t){var n="".concat(Zt.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function fL(e){return{type:Zt.Pure,get:e}}function TE(e,t){return $s(function(n,r){return r},Re(Re({},t),{to:e}))}function dL(e,t){return Lm(function(n,r,o){return{type:Rm,data:Wt(e)?e(n,r,o):e}},Re(Re({},t),{to:Ho.Parent}))}function hL(e){return{type:Zt.Choose,conds:e}}var pL=function(e){var t,n,r=[];try{for(var o=Mt(e),i=o.next();!i.done;i=o.next())for(var s=i.value,l=0;l<s.actions.length;){if(s.actions[l].type===Xf){r.push(s.actions[l]),s.actions.splice(l,1);continue}l++}}catch(h){t={error:h}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r};function _c(e,t,n,r,o,i,s){s===void 0&&(s=!1);var l=s?[]:pL(o),h=l.length?dE(n,r,l,t):n,f=s?[n]:void 0,g=[];function w(A,k){var U;switch(k.type){case Fs:{var N=yE(k,h,r,e.options.delays);return i&&typeof N.delay=="number"&&i(N,h,r),N}case pc:var R=vE(k,h,r,e.options.delays);
vendor: 10,937 bytes, lines 974-975
974return i&&R.to!==Ho.Internal&&(A==="entry"?g.push(R):i(R,h,r)),R;case Zf:{var L=wE(k,h,r);return i==null||i(L,h,r),L}case rE:{var z=k,W=(U=z.conds.find(function(ot){var Je=hE(ot.cond,e.options.guards);return!Je||pE(e,Je,h,r,i?void 0:t)}))===null||U===void 0?void 0:U.actions;if(!W)return[];var ee=Gt(_c(e,t,h,r,[{type:A,actions:ao(li(W),e.options.actions)}],i,s),2),b=ee[0],fe=ee[1];return h=fe,f==null||f.push(h),b}case iE:{var W=k.get(h,r.data);if(!W)return[];var ae=Gt(_c(e,t,h,r,[{type:A,actions:ao(li(W),e.options.actions)}],i,s),2),Ie=ae[0],xe=ae[1];return h=xe,f==null||f.push(h),Ie}case Jf:{var L=CE(k,h,r);return i==null||i(L,n,r),L}case Xf:{h=dE(h,r,[k],i?void 0:t),f==null||f.push(h);break}default:var De=Us(k,e.options.actions),ye=De.exec;if(i)i(De,h,r);else if(ye&&f){var je=f.length-1,rt=Re(Re({},De),{exec:function(ot){for(var Je=[],dt=1;dt<arguments.length;dt++)Je[dt-1]=arguments[dt];ye.apply(void 0,fn([f[je]],Gt(Je),!1))}});De=rt}return De}}function E(A){var k,U,N=[];try{for(var R=Mt(A.actions),L=R.next();!L.done;L=R.next()){var z=L.value,W=w(A.type,z);W&&(N=N.concat(W))}}catch(ee){k={error:ee}}finally{try{L&&!L.done&&(U=R.return)&&U.call(R)}finally{if(k)throw k.error}}return g.forEach(function(ee){i(ee,h,r)}),g.length=0,N}var C=gn(o.map(E));return[C,h]}var IE=Object.freeze(Object.defineProperty({__proto__:null,actionTypes:WM,after:AE,assign:xE,cancel:bE,choose:hL,done:yc,doneInvoke:vc,error:Ms,escalate:dL,forwardTo:TE,getActionFunction:sd,initEvent:Da,isActionObject:lL,log:cL,pure:fL,raise:mE,resolveActions:_c,resolveLog:wE,resolveRaise:yE,resolveSend:vE,resolveStop:CE,respond:sL,send:$s,sendParent:Lm,sendTo:aL,sendUpdate:_E,start:EE,stop:SE,toActionObject:Us,toActionObjects:ao,toActivityDefinition:ud},Symbol.toStringTag,{value:"Module"})),cd=[],Ls=function(e,t){cd.push(e);var n=t(e);return cd.pop(),n},gL=function(e){return e(cd[cd.length-1])};function kE(e){var t;return t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}},t[Go]=function(){return this},t}function mL(e,t,n,r){var o,i=gE(e.src),s=(o=t==null?void 0:t.options.services)===null||o===void 0?void 0:o[i.type],l=e.data?rd(e.data,n,r):void 0,h=s?Vm(s,e.id,l):kE(e.id);return h.meta=e,h}function Vm(e,t,n){var r=kE(t);if(r.deferred=!0,Bs(e)){var o=r.state=Ls(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return o}}return r}function yL(e){try{return typeof e.send=="function"}catch{return!1}}function vL(e){return yL(e)&&"id"in e}function _L(e){var t;return Re((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t[Go]=function(){return this},t),e)}var ld=function(e){return e.type==="atomic"||e.type==="final"};function PE(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function wc(e){return PE(e).filter(function(t){return t.type!=="history"})}function NE(e){var t=[e];return ld(e)?t:t.concat(gn(wc(e).map(NE)))}function bc(e,t){var n,r,o,i,s,l,h,f,g=new Set(e),w=jm(g),E=new Set(t);try{for(var C=Mt(E),A=C.next();!A.done;A=C.next())for(var k=A.value,U=k.parent;U&&!E.has(U);)E.add(U),U=U.parent}catch(ae){n={error:ae}}finally{try{A&&!A.done&&(r=C.return)&&r.call(C)}finally{if(n)throw n.error}}var N=jm(E);try{for(var R=Mt(E),L=R.next();!L.done;L=R.next()){var k=L.value;if(k.type==="compound"&&(!N.get(k)||!N.get(k).length))w.get(k)?w.get(k).forEach(function(Ie){return E.add(Ie)}):k.initialStateNodes.forEach(function(Ie){return E.add(Ie)});else if(k.type==="parallel")try{for(var z=(s=void 0,Mt(wc(k))),W=z.next();!W.done;W=z.next()){var ee=W.value;E.has(ee)||(E.add(ee),w.get(ee)?w.get(ee).forEach(function(Ie){return E.add(Ie)}):ee.initialStateNodes.forEach(function(Ie){return E.add(Ie)}))}}catch(Ie){s={error:Ie}}finally{try{W&&!W.done&&(l=z.return)&&l.call(z)}finally{if(s)throw s.error}}}}catch(ae){o={error:ae}}finally{try{L&&!L.done&&(i=R.return)&&i.call(R)}finally{if(o)throw o.error}}try{for(var b=Mt(E),fe=b.next();!fe.done;fe=b.next())for(var k=fe.value,U=k.parent;U&&!E.has(U);)E.add(U),U=U.parent}catch(ae){h={error:ae}}finally{try{fe&&!fe.done&&(f=b.return)&&f.call(b)}finally{if(h)throw h.error}}return E}function DE(e,t){var n=t.get(e);if(!n)return{};if(e.type==="compound"){var r=n[0];if(r){if(ld(r))return r.key}else return{}}var o={};return n.forEach(function(i){o[i.key]=DE(i,t)}),o}function jm(e){var t,n,r=new Map;try{for(var o=Mt(e),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function wL(e,t){var n=bc([e],t);return DE(e,jm(n))}function Ec(e,t){return Array.isArray(e)?e.some(function(n){return n===t}):e instanceof Set?e.has(t):!1}function bL(e){return fn([],Gt(new Set(gn(fn([],Gt(e.map(function(t){return t.ownEvents})),!1)))),!1)}function fd(e,t){return t.type==="compound"?wc(t).some(function(n){return n.type==="final"&&Ec(e,n)}):t.type==="parallel"?wc(t).every(function(n){return fd(e,n)}):!1}function EL(e){return e===void 0&&(e=[]),e.reduce(function(t,n){return n.meta!==void 0&&(t[n.id]=n.meta),t},{})}function FE(e){return new Set(gn(e.map(function(t){return t.tags})))}function RE(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;if(Xt(e)||Xt(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(o){return RE(e[o],t[o])})}function SL(e){return typeof e!="object"||e===null?!1:"value"in e&&"_event"in e}function CL(e,t){var n=e.exec,r=Re(Re({},e),{exec:n!==void 0?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0});return r}var Ii=function(){function e(t){var n=this,r;this.actions=[],this.activities=aE,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||aE,this.meta=EL(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=(r=Array.isArray(t.tags)?new Set(t.tags):t.tags)!==null&&r!==void 0?r:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return bL(n.configuration)}})}return e.from=function(t,n){if(t instanceof e)return t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t;var r=Da;return new e({value:t,context:n,_event:r,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Da;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(t,n){var r=this;if(t===void 0&&(t=this.value),n===void 0&&(n="."),Xt(t))return[t];var o=Object.keys(t);return o.concat.apply(o,fn([],Gt(o.map(function(i){return r.toStrings(t[i],n).map(function(s){return i+n+s})})),!1))},e.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var n=t.tags;t.machine;var r=Nm(t,["configuration","transitions","tags","machine"]);return Re(Re({},r),{tags:Array.from(n)})},e.prototype.matches=function(t){return Um(t,this.value)},e.prototype.hasTag=function(t){return this.tags.has(t)},e.prototype.can=function(t){var n;tL(!!this.machine);var r=(n=this.machine)===null||n===void 0?void 0:n.getTransitionData(this,t);return!!(r!=null&&r.transitions.length)&&r.transitions.some(function(o){return o.target!==void 0||o.actions.length})},e}(),xL={deferEvents:!1},BE=function(){function e(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Re(Re({},xL),t)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(this.queue.length!==0)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(n){throw this.clear(),n}finally{this.processingEvent=!1}},e}(),zm=new Map,AL=0,Sc={bookId:function(){return"x:".concat(AL++)},register:function(e,t){return zm.set(e,t),e},get:function(e){return zm.get(e)},free:function(e){zm.delete(e)}};function Hm(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function TL(){var e=Hm();if(e&&"__xstate__"in e)return e.__xstate__}function IL(e){if(Hm()){var t=TL();t&&t.register(e)}}function kL(e,t){t===void 0&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(){if(!i){for(i=!0;o.length>0;){var f=o.shift();n=e.transition(n,f,h),r.forEach(function(g){return g.next(n)})}i=!1}},l=_L({id:t.id,send:function(f){o.push(f),s()},getSnapshot:function(){return n},subscribe:function(f,g,w){var E=od(f,g,w);return r.add(E),E.next(n),{unsubscribe:function(){r.delete(E)}}}}),h={parent:t.parent,self:l,id:t.id||"anonymous",observers:r};return n=e.start?e.start(h):n,l}var Gm={sync:!1,autoForward:!1},$n;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})($n||($n={}));var PL=function(){function e(t,n){n===void 0&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=$n.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(g,w){if(Rs(g))return r.batch(g),r.state;var E=Hn(id(g,w));if(r.status===$n.Stopped)return r.state;if(r.status!==$n.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(E.name,'" was sent to uninitialized service "').concat(r.machine.id,`". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.
975Event: `).concat(JSON.stringify(E.data)));return r.scheduler.schedule(function(){r.forward(E);
vendor: 10,747 bytes, line 975
975var C=r._nextState(E);r.update(C,E)}),r._state},this.sendTo=function(g,w,E){var C=r.parent&&(w===Ho.Parent||r.parent.id===w),A=C?r.parent:Xt(w)?w===Ho.Internal?r:r.children.get(w)||Sc.get(w):rL(w)?w:void 0;if(!A){if(!C)throw new Error("Unable to send event to child '".concat(w,"' from service '").concat(r.id,"'."));return}if("machine"in A){if(r.status!==$n.Stopped||r.parent!==A||r.state.done){var k=Re(Re({},g),{name:g.name===Rm?"".concat(Ms(r.id)):g.name,origin:r.sessionId});!E&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([A,k]):A.send(k)}}else!E&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([A,g.data]):A.send(g.data)},this._exec=function(g,w,E,C){C===void 0&&(C=r.machine.options.actions);var A=g.exec||sd(g.type,C),k=Wt(A)?A:A?A.exec:g.exec;if(k)try{return k(w,E.data,r.machine.config.predictableActionArguments?{action:g,_event:E}:{action:g,state:r.state,_event:E})}catch(je){throw r.parent&&r.parent.send({type:"xstate.error",data:je}),je}switch(g.type){case Fs:{var U=g;r.defer(U);break}case pc:var N=g;if(typeof N.delay=="number"){r.defer(N);return}else N.to?r.sendTo(N._event,N.to,E===Da):r.send(N._event);break;case Dm:r.cancel(g.sendId);break;case Yf:{if(r.status!==$n.Running)return;var R=g.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[R.id||R.type])break;if(R.type===Zt.Invoke){var L=gE(R.src),z=r.machine.options.services?r.machine.options.services[L.type]:void 0,W=R.id,ee=R.data,b="autoForward"in R?R.autoForward:!!R.forward;if(!z)return;var fe=ee?rd(ee,w,E):void 0;if(typeof z=="string")return;var ae=Wt(z)?z(w,E.data,{data:fe,src:L,meta:R.meta}):z;if(!ae)return;var Ie=void 0;Bs(ae)&&(ae=fe?ae.withContext(fe):ae,Ie={autoForward:b}),r.spawn(ae,W,Ie)}else r.spawnActivity(R);break}case Jf:{r.stopChild(g.activity.id);break}case Zf:var xe=g,De=xe.label,ye=xe.value;De?r.logger(De,ye):r.logger(ye);break}};var o=Re(Re({},e.defaultOptions),n),i=o.clock,s=o.logger,l=o.parent,h=o.id,f=h!==void 0?h:t.id;this.id=f,this.logger=s,this.clock=i,this.parent=l,this.options=o,this.scheduler=new BE({deferEvents:this.options.deferEvents}),this.sessionId=Sc.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:Ls(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,n){var r,o;try{for(var i=Mt(t.actions),s=i.next();!s.done;s=i.next()){var l=s.value;this.exec(l,t,n)}}catch(h){r={error:h}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},e.prototype.update=function(t,n){var r,o,i,s,l,h,f,g,w=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||n===Da)&&this.options.execute)this.execute(this.state);else for(var E=void 0;E=this._outgoingQueue.shift();)E[0].send(E[1]);if(this.children.forEach(function(ae){w.state.children[ae.id]=ae}),this.devTools&&this.devTools.send(n.data,t),t.event)try{for(var C=Mt(this.eventListeners),A=C.next();!A.done;A=C.next()){var k=A.value;k(t.event)}}catch(ae){r={error:ae}}finally{try{A&&!A.done&&(o=C.return)&&o.call(C)}finally{if(r)throw r.error}}try{for(var U=Mt(this.listeners),N=U.next();!N.done;N=U.next()){var k=N.value;k(t,t.event)}}catch(ae){i={error:ae}}finally{try{N&&!N.done&&(s=U.return)&&s.call(U)}finally{if(i)throw i.error}}try{for(var R=Mt(this.contextListeners),L=R.next();!L.done;L=R.next()){var z=L.value;z(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(ae){l={error:ae}}finally{try{L&&!L.done&&(h=R.return)&&h.call(R)}finally{if(l)throw l.error}}if(this.state.done){var W=t.configuration.find(function(ae){return ae.type==="final"&&ae.parent===w.machine}),ee=W&&W.doneData?rd(W.doneData,t.context,n):void 0;this._doneEvent=vc(this.id,ee);try{for(var b=Mt(this.doneListeners),fe=b.next();!fe.done;fe=b.next()){var k=fe.value;k(this._doneEvent)}}catch(ae){f={error:ae}}finally{try{fe&&!fe.done&&(g=b.return)&&g.call(b)}finally{if(f)throw f.error}}this._stop(),this._stopChildren(),Sc.free(this.sessionId)}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===$n.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,n,r){var o=this,i=od(t,n,r);this.listeners.add(i.next),this.status!==$n.NotStarted&&i.next(this.state);var s=function(){o.doneListeners.delete(s),o.stopListeners.delete(s),i.complete()};return this.status===$n.Stopped?i.complete():(this.onDone(s),this.onStop(s)),{unsubscribe:function(){o.listeners.delete(i.next),o.doneListeners.delete(s),o.stopListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.status===$n.Stopped&&this._doneEvent?t(this._doneEvent):this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var n=this;if(this.status===$n.Running)return this;this.machine._init(),Sc.register(this.sessionId,this),this.initialized=!0,this.status=$n.Running;var r=t===void 0?this.initialState:Ls(this,function(){return SL(t)?n.machine.resolveState(t):n.machine.resolveState(Ii.from(t,n.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){n.update(r,Da)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(t){Wt(t.stop)&&t.stop()}),this.children.clear()},e.prototype._stop=function(){var t,n,r,o,i,s,l,h,f,g;try{for(var w=Mt(this.listeners),E=w.next();!E.done;E=w.next()){var C=E.value;this.listeners.delete(C)}}catch(b){t={error:b}}finally{try{E&&!E.done&&(n=w.return)&&n.call(w)}finally{if(t)throw t.error}}try{for(var A=Mt(this.stopListeners),k=A.next();!k.done;k=A.next()){var C=k.value;C(),this.stopListeners.delete(C)}}catch(b){r={error:b}}finally{try{k&&!k.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}try{for(var U=Mt(this.contextListeners),N=U.next();!N.done;N=U.next()){var C=N.value;this.contextListeners.delete(C)}}catch(b){i={error:b}}finally{try{N&&!N.done&&(s=U.return)&&s.call(U)}finally{if(i)throw i.error}}try{for(var R=Mt(this.doneListeners),L=R.next();!L.done;L=R.next()){var C=L.value;this.doneListeners.delete(C)}}catch(b){l={error:b}}finally{try{L&&!L.done&&(h=R.return)&&h.call(R)}finally{if(l)throw l.error}}if(!this.initialized)return this;this.initialized=!1,this.status=$n.Stopped,this._initialState=void 0;try{for(var z=Mt(Object.keys(this.delayedEventsMap)),W=z.next();!W.done;W=z.next()){var ee=W.value;this.clock.clearTimeout(this.delayedEventsMap[ee])}}catch(b){f={error:b}}finally{try{W&&!W.done&&(g=z.return)&&g.call(z)}finally{if(f)throw f.error}}this.scheduler.clear(),this.scheduler=new BE({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var t=this,n=this.scheduler;return this._stop(),n.schedule(function(){var r=Hn({type:"xstate.stop"}),o=Ls(t,function(){var i=gn(fn([],Gt(t.state.configuration),!1).sort(function(g,w){return w.order-g.order}).map(function(g){return ao(g.onExit,t.machine.options.actions)})),s=Gt(_c(t.machine,t.state,t.state.context,r,[{type:"exit",actions:i}],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),l=s[0],h=s[1],f=new Ii({value:t.state.value,context:h,_event:r,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:l.filter(function(g){return!Mm(g)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return f.changed=!0,f});t.update(o,r),t._stopChildren(),Sc.free(t.sessionId)}),this},e.prototype.batch=function(t){var n=this;if(!(this.status===$n.NotStarted&&this.options.deferEvents)){if(this.status!==$n.Running)throw new Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'))}if(t.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var o,i,s=n.state,l=!1,h=[],f=function(C){var A=Hn(C);n.forward(A),s=Ls(n,function(){return n.machine.transition(s,A,void 0,r||void 0)}),h.push.apply(h,fn([],Gt(n.machine.config.predictableActionArguments?s.actions:s.actions.map(function(k){return CL(k,s)})),!1)),l=l||!!s.changed};try{for(var g=Mt(t),w=g.next();!w.done;w=g.next()){var E=w.value;f(E)}}catch(C){o={error:C}}finally{try{w&&!w.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}s.changed=l,s.actions=h,n.update(s,Hn(t[t.length-1]))})}},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype._nextState=function(t,n){var r=this;n===void 0&&(n=!!this.machine.config.predictableActionArguments&&this._exec);var o=Hn(t);if(o.name.indexOf(Fm)===0&&!this.state.nextEvents.some(function(s){return s.indexOf(Fm)===0}))throw o.data.data;var i=Ls(this,function(){return r.machine.transition(r.state,o,void 0,n||void 0)});return i},e.prototype.nextState=function(t){return this._nextState(t,!1)},e.prototype.forward=function(t){var n,r;try{for(var o=Mt(this.forwardTo),i=o.next();!i.done;i=o.next()){var s=i.value,l=this.children.get(s);if(!l)throw new Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(s,"'."));l.send(t)}}catch(h){n={error:h}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.defer=function(t){var n=this,r=this.clock.setTimeout(function(){"to"in t&&t.to?n.sendTo(t._event,t.to,!0):n.send(t._event)},t.delay);t.id&&(this.delayedEventsMap[t.id]=r)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,n,r){r===void 0&&(r=this.machine.options.actions),this._exec(t,n.context,n._event,r)},e.prototype.removeChild=function(t){var n;this.children.delete(t),this.forwardTo.delete(t),(n=this.state)===null||n===void 0||delete n.children[t]},e.prototype.stopChild=function(t){var n=this.children.get(t);n&&(this.removeChild(t),Wt(n.stop)&&n.stop())},e.prototype.spawn=function(t,n,r){if(this.status!==$n.Running)return Vm(t,n);
vendor: 6,272 bytes, line 975
975if(lE(t))return this.spawnPromise(Promise.resolve(t),n);if(Wt(t))return this.spawnCallback(t,n);if(vL(t))return this.spawnActor(t,n);if(nL(t))return this.spawnObservable(t,n);if(Bs(t))return this.spawnMachine(t,Re(Re({},r),{id:n}));if(ZM(t))return this.spawnBehavior(t,n);throw new Error('Unable to spawn entity "'.concat(n,'" of type "').concat(typeof t,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;n===void 0&&(n={});var o=new e(t,Re(Re({},this.options),{parent:this,id:n.id||t.id})),i=Re(Re({},Gm),n);i.sync&&o.onTransition(function(l){r.send(ed,{state:l,id:o.id})});var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone(function(l){r.removeChild(o.id),r.send(Hn(l,{origin:o.id}))}).start(),s},e.prototype.spawnBehavior=function(t,n){var r=kL(t,{id:n,parent:this});return this.children.set(n,r),r},e.prototype.spawnPromise=function(t,n){var r,o=this,i=!1,s;t.then(function(h){i||(s=h,o.removeChild(n),o.send(Hn(vc(n,h),{origin:n})))},function(h){if(!i){o.removeChild(n);var f=Ms(n,h);try{o.send(Hn(f,{origin:n}))}catch{o.devTools&&o.devTools.send(f,o.state),o.machine.strict&&o.stop()}}});var l=(r={id:n,send:function(){},subscribe:function(h,f,g){var w=od(h,f,g),E=!1;return t.then(function(C){E||(w.next(C),!E&&w.complete())},function(C){E||w.error(C)}),{unsubscribe:function(){return E=!0}}},stop:function(){i=!0},toJSON:function(){return{id:n}},getSnapshot:function(){return s}},r[Go]=function(){return this},r);return this.children.set(n,l),l},e.prototype.spawnCallback=function(t,n){var r,o=this,i=!1,s=new Set,l=new Set,h,f=function(E){h=E,l.forEach(function(C){return C(E)}),!i&&o.send(Hn(E,{origin:n}))},g;try{g=t(f,function(E){s.add(E)})}catch(E){this.send(Ms(n,E))}if(lE(g))return this.spawnPromise(g,n);var w=(r={id:n,send:function(E){return s.forEach(function(C){return C(E)})},subscribe:function(E){var C=od(E);return l.add(C.next),{unsubscribe:function(){l.delete(C.next)}}},stop:function(){i=!0,Wt(g)&&g()},toJSON:function(){return{id:n}},getSnapshot:function(){return h}},r[Go]=function(){return this},r);return this.children.set(n,w),w},e.prototype.spawnObservable=function(t,n){var r,o=this,i,s=t.subscribe(function(h){i=h,o.send(Hn(h,{origin:n}))},function(h){o.removeChild(n),o.send(Hn(Ms(n,h),{origin:n}))},function(){o.removeChild(n),o.send(Hn(vc(n),{origin:n}))}),l=(r={id:n,send:function(){},subscribe:function(h,f,g){return t.subscribe(h,f,g)},stop:function(){return s.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:n}}},r[Go]=function(){return this},r);return this.children.set(n,l),l},e.prototype.spawnActor=function(t,n){return this.children.set(n,t),t},e.prototype.spawnActivity=function(t){var n=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(n){var r=n(this.state.context,t);this.spawnEffect(t.id,r)}},e.prototype.spawnEffect=function(t,n){var r;this.children.set(t,(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:n||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}},r[Go]=function(){return this},r))},e.prototype.attachDev=function(){var t=Hm();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var n=typeof this.options.devTools=="object"?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(Re(Re({name:this.id,autoPause:!0,stateSanitizer:function(r){return{value:r.value,context:r.context,actions:r.actions}}},n),{features:Re({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}IL(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[Go]=function(){return this},e.prototype.getSnapshot=function(){return this.status===$n.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,n){return setTimeout(t,n)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},e.interpret=OE,e}(),NL=function(e){return Xt(e)?Re(Re({},Gm),{name:e}):Re(Re(Re({},Gm),{name:iL()}),e)};function dd(e,t){var n=NL(t);return gL(function(r){return r?r.spawn(e,n.name,n):Vm(e,n.name)})}function OE(e,t){var n=new PL(e,t);return n}function DL(e){if(typeof e=="string"){var t={type:e};return t.toString=function(){return e},t}return e}function hd(e){return Re(Re({type:Qf},e),{toJSON:function(){e.onDone,e.onError;var t=Nm(e,["onDone","onError"]);return Re(Re({},t),{type:Qf,src:DL(e.src)})}})}var pd="",Wm="#",qm="*",Vs={},js=function(e){return e[0]===Wm},FL=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},RL=function(){function e(t,n,r,o){r===void 0&&(r="context"in t?t.context:void 0);var i=this,s;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(FL(),n),this.parent=o==null?void 0:o.parent,this.key=this.config.key||(o==null?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:oE),this.id=this.config.id||fn([this.machine.key],Gt(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:(s=this.config.schema)!==null&&s!==void 0?s:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?mc(this.config.states,function(f,g){var w,E=new e(f,{},void 0,{parent:i,key:g});return Object.assign(i.idMap,Re((w={},w[E.id]=E,w),E.idMap)),E}):Vs;var l=0;function h(f){var g,w;f.order=l++;try{for(var E=Mt(PE(f)),C=E.next();!C.done;C=E.next()){var A=C.value;h(A)}}catch(k){g={error:k}}finally{try{C&&!C.done&&(w=E.return)&&w.call(E)}finally{if(g)throw g.error}}}h(this),this.history=this.config.history===!0?"shallow":this.config.history||
vendor: 16,907 bytes, lines 975-976
975!1,this._transient=!!this.config.always||(this.config.on?Array.isArray(this.config.on)?this.config.on.some(function(f){var g=f.event;return g===pd}):pd in this.config.on:!1),this.strict=!!this.config.strict,this.onEntry=li(this.config.entry||this.config.onEntry).map(function(f){return Us(f)}),this.onExit=li(this.config.exit||this.config.onExit).map(function(f){return Us(f)}),this.meta=this.config.meta,this.doneData=this.type==="final"?this.config.data:void 0,this.invoke=li(this.config.invoke).map(function(f,g){var w,E;if(Bs(f)){var C=ad(i.id,g);return i.machine.options.services=Re((w={},w[C]=f,w),i.machine.options.services),hd({src:C,id:C})}else if(Xt(f.src)){var C=f.id||ad(i.id,g);return hd(Re(Re({},f),{id:C,src:f.src}))}else if(Bs(f.src)||Wt(f.src)){var C=f.id||ad(i.id,g);return i.machine.options.services=Re((E={},E[C]=f.src,E),i.machine.options.services),hd(Re(Re({id:C},f),{src:C}))}else{var A=f.src;return hd(Re(Re({id:ad(i.id,g)},f),{src:A}))}}),this.activities=li(this.config.activities).concat(this.invoke).map(function(f){return ud(f)}),this.transition=this.transition.bind(this),this.tags=li(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||NE(this).forEach(function(t){return t.on})},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,l=r.services,h=r.delays;return new e(this.config,{actions:Re(Re({},o),t.actions),activities:Re(Re({},i),t.activities),guards:Re(Re({},s),t.guards),services:Re(Re({},l),t.services),delays:Re(Re({},h),t.delays)},n??this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return Wt(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:mc(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(n,r){return n[r.eventType]=n[r.eventType]||[],n[r.eventType].push(r),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var n=t===pd,r=this.transitions.filter(function(o){var i=o.eventType===t;return n?i:i||o.eventType===qm});return this.__cache.candidates[t]=r,r},e.prototype.getDelayedTransitions=function(){var t=this,n=this.config.after;if(!n)return[];var r=function(i,s){var l=Wt(i)?"".concat(t.id,":delay[").concat(s,"]"):i,h=AE(l,t.id);return t.onEntry.push($s(h,{delay:i})),t.onExit.push(bE(h)),h},o=Rs(n)?n.map(function(i,s){var l=r(i.delay,s);return Re(Re({},i),{event:l})}):gn(Object.keys(n).map(function(i,s){var l=n[i],h=Xt(l)?{target:l}:l,f=isNaN(+i)?i:+i,g=r(f,s);return li(h).map(function(w){return Re(Re({},w),{event:g,delay:f})})}));return o.map(function(i){var s=i.delay;return Re(Re({},t.formatTransition(i)),{delay:s})})},e.prototype.getStateNodes=function(t){var n,r=this;if(!t)return[];var o=t instanceof Ii?t.value:gc(t,this.delimiter);if(Xt(o)){var i=this.getStateNode(o).initial;return i!==void 0?this.getStateNodes((n={},n[o]=i,n)):[this,this.states[o]]}var s=Object.keys(o),l=[this];return l.push.apply(l,fn([],Gt(gn(s.map(function(h){return r.getStateNode(h).getStateNodes(o[h])}))),!1)),l},e.prototype.handles=function(t){var n=sE(t);return this.events.includes(n)},e.prototype.resolveState=function(t){var n=t instanceof Ii?t:Ii.create(t),r=Array.from(bc([],this.getStateNodes(n.value)));return new Ii(Re(Re({},n),{value:this.resolve(n.value),configuration:r,done:fd(r,this),tags:FE(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(t,n,r){var o=this.getStateNode(t),i=o.next(n,r);return!i||!i.transitions.length?this.next(n,r):i},e.prototype.transitionCompoundNode=function(t,n,r){var o=Object.keys(t),i=this.getStateNode(o[0]),s=i._transition(t[o[0]],n,r);return!s||!s.transitions.length?this.next(n,r):s},e.prototype.transitionParallelNode=function(t,n,r){var o,i,s={};try{for(var l=Mt(Object.keys(t)),h=l.next();!h.done;h=l.next()){var f=h.value,g=t[f];if(g){var w=this.getStateNode(f),E=w._transition(g,n,r);E&&(s[f]=E)}}}catch(N){o={error:N}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}var C=Object.keys(s).map(function(N){return s[N]}),A=gn(C.map(function(N){return N.transitions})),k=C.some(function(N){return N.transitions.length>0});if(!k)return this.next(n,r);var U=gn(Object.keys(s).map(function(N){return s[N].configuration}));return{transitions:A,exitSet:gn(C.map(function(N){return N.exitSet})),configuration:U,source:n,actions:gn(Object.keys(s).map(function(N){return s[N].actions}))}},e.prototype._transition=function(t,n,r){return Xt(t)?this.transitionLeafNode(t,n,r):Object.keys(t).length===1?this.transitionCompoundNode(t,n,r):this.transitionParallelNode(t,n,r)},e.prototype.getTransitionData=function(t,n){return this._transition(t.value,t,Hn(n))},e.prototype.next=function(t,n){var r,o,i=this,s=n.name,l=[],h=[],f;try{for(var g=Mt(this.getCandidates(s)),w=g.next();!w.done;w=g.next()){var E=w.value,C=E.cond,A=E.in,k=t.context,U=A?Xt(A)&&js(A)?t.matches(gc(this.getStateNodeById(A).path,this.delimiter)):Um(gc(A,this.delimiter),YM(this.path.slice(0,-2))(t.value)):!0,N=!1;try{N=!C||pE(this.machine,C,k,n,t)}catch(z){throw new Error("Unable to evaluate guard '".concat(C.name||C.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,`':
976`).concat(z.message))}if(N&&U){E.target!==void 0&&(h=E.target),l.push.apply(l,fn([],Gt(E.actions),!1)),f=E;break}}}catch(z){r={error:z}}finally{try{w&&!w.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}if(f){if(!h.length)return{transitions:[f],exitSet:[],configuration:t.value?[this]:[],source:t,actions:l};var R=gn(h.map(function(z){return i.getRelativeStateNodes(z,t.historyValue)})),L=!!f.internal;return{transitions:[f],exitSet:L?[]:gn(h.map(function(z){return i.getPotentiallyReenteringNodes(z)})),configuration:R,source:t,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(t){if(this.order<t.order)return[this];for(var n=[],r=this,o=t;r&&r!==o;)n.push(r),r=r.parent;return r!==o?[]:(n.push(o),n)},e.prototype.getActions=function(t,n,r,o,i,s,l){var h,f,g,w,E=this,C=s?bc([],this.getStateNodes(s.value)):[],A=new Set;try{for(var k=Mt(Array.from(t).sort(function(xe,De){return xe.order-De.order})),U=k.next();!U.done;U=k.next()){var N=U.value;(!Ec(C,N)||Ec(r.exitSet,N)||N.parent&&A.has(N.parent))&&A.add(N)}}catch(xe){h={error:xe}}finally{try{U&&!U.done&&(f=k.return)&&f.call(k)}finally{if(h)throw h.error}}try{for(var R=Mt(C),L=R.next();!L.done;L=R.next()){var N=L.value;(!Ec(t,N)||Ec(r.exitSet,N.parent))&&r.exitSet.push(N)}}catch(xe){g={error:xe}}finally{try{L&&!L.done&&(w=R.return)&&w.call(R)}finally{if(g)throw g.error}}r.exitSet.sort(function(xe,De){return De.order-xe.order});var z=Array.from(A).sort(function(xe,De){return xe.order-De.order}),W=new Set(r.exitSet),ee=gn(z.map(function(xe){var De=[];if(xe.type!=="final")return De;var ye=xe.parent;if(!ye.parent)return De;De.push(yc(xe.id,xe.doneData),yc(ye.id,xe.doneData?rd(xe.doneData,o,i):void 0));var je=ye.parent;return je.type==="parallel"&&wc(je).every(function(rt){return fd(r.configuration,rt)})&&De.push(yc(je.id)),De})),b=z.map(function(xe){var De=xe.onEntry,ye=xe.activities.map(function(je){return EE(je)});return{type:"entry",actions:ao(l?fn(fn([],Gt(De),!1),Gt(ye),!1):fn(fn([],Gt(ye),!1),Gt(De),!1),E.machine.options.actions)}}).concat({type:"state_done",actions:ee.map(function(xe){return mE(xe)})}),fe=Array.from(W).map(function(xe){return{type:"exit",actions:ao(fn(fn([],Gt(xe.onExit),!1),Gt(xe.activities.map(function(De){return SE(De)})),!1),E.machine.options.actions)}}),ae=fe.concat({type:"transition",actions:ao(r.actions,this.machine.options.actions)}).concat(b);if(n){var Ie=ao(gn(fn([],Gt(t),!1).sort(function(xe,De){return De.order-xe.order}).map(function(xe){return xe.onExit})),this.machine.options.actions).filter(function(xe){return!Mm(xe)});return ae.concat({type:"stop",actions:Ie})}return ae},e.prototype.transition=function(t,n,r,o){t===void 0&&(t=this.initialState);var i=Hn(n),s;if(t instanceof Ii)s=r===void 0?t:this.resolveState(Ii.from(t,r));else{var l=Xt(t)?this.resolve(td(this.getResolvedPath(t))):this.resolve(t),h=r??this.machine.context;s=this.resolveState(Ii.from(l,h))}if(this.strict&&!this.events.includes(i.name)&&!XM(i.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(i.name,"'"));var f=this._transition(s.value,s,i)||{transitions:[],configuration:[],exitSet:[],source:s,actions:[]},g=bc([],this.getStateNodes(s.value)),w=f.configuration.length?bc(g,f.configuration):g;return f.configuration=fn([],Gt(w),!1),this.resolveTransition(f,s,s.context,o,i)},e.prototype.resolveRaisedTransition=function(t,n,r,o){var i,s=t.actions;return t=this.transition(t,n,void 0,o),t._event=r,t.event=r.data,(i=t.actions).unshift.apply(i,fn([],Gt(s),!1)),t},e.prototype.resolveTransition=function(t,n,r,o,i){var s,l,h,f,g=this;i===void 0&&(i=Da);var w=t.configuration,E=!n||t.transitions.length>0,C=E?t.configuration:n?n.configuration:[],A=fd(C,this),k=E?wL(this.machine,w):void 0,U=n?n.historyValue?n.historyValue:t.source?this.machine.historyValue(n.value):void 0:void 0,N=this.getActions(new Set(C),A,t,r,i,n,o),R=n?Re({},n.activities):{};try{for(var L=Mt(N),z=L.next();!z.done;z=L.next()){var W=z.value;try{for(var ee=(h=void 0,Mt(W.actions)),b=ee.next();!b.done;b=ee.next()){var fe=b.value;fe.type===Yf?R[fe.activity.id||fe.activity.type]=fe:fe.type===Jf&&(R[fe.activity.id||fe.activity.type]=!1)}}catch(Oe){h={error:Oe}}finally{try{b&&!b.done&&(f=ee.return)&&f.call(ee)}finally{if(h)throw h.error}}}}catch(Oe){s={error:Oe}}finally{try{z&&!z.done&&(l=L.return)&&l.call(L)}finally{if(s)throw s.error}}var ae=Gt(_c(this,n,r,i,N,o,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),Ie=ae[0],xe=ae[1],De=Gt(QM(Ie,Mm),2),ye=De[0],je=De[1],rt=Ie.filter(function(Oe){var We;return Oe.type===Yf&&((We=Oe.activity)===null||We===void 0?void 0:We.type)===Qf}),ot=rt.reduce(function(Oe,We){return Oe[We.activity.id]=mL(We.activity,g.machine,xe,i),Oe},n?Re({},n.children):{}),Je=new Ii({value:k||n.value,context:xe,_event:i,_sessionid:n?n._sessionid:null,historyValue:k?U?eL(U,k):void 0:n?n.historyValue:void 0,history:!k||t.source?n:void 0,actions:k?je:[],activities:k?R:n?n.activities:{},events:[],configuration:C,transitions:t.transitions,children:ot,done:A,tags:FE(C),machine:this}),dt=r!==xe;Je.changed=i.name===ed||dt;var mt=Je.history;mt&&delete mt.history;var Ue=!A&&(this._transient||w.some(function(Oe){return Oe._transient}));if(!E&&(!Ue||i.name===pd))return Je;var ne=Je;if(!A)for(Ue&&(ne=this.resolveRaisedTransition(ne,{type:tE},i,o));ye.length;){var oe=ye.shift();ne=this.resolveRaisedTransition(ne,oe._event,i,o)}var Pe=ne.changed||(mt?!!ne.actions.length||dt||typeof mt.value!=typeof ne.value||!RE(ne.value,mt.value):void 0);return ne.changed=Pe,ne.history=mt,ne},e.prototype.getStateNode=function(t){if(js(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[t];if(!n)throw new Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return n},e.prototype.getStateNodeById=function(t){var n=js(t)?t.slice(Wm.length):t;if(n===this.id)return this;var r=this.machine.idMap[n];if(!r)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(t){if(typeof t=="string"&&js(t))try{return this.getStateNodeById(t.slice(1))}catch{}for(var n=$m(t,this.delimiter).slice(),r=this;n.length;){var o=n.shift();if(!o.length)break;r=r.getStateNode(o)}return r},e.prototype.resolve=function(t){var n,r=this;if(!t)return this.initialStateValue||Vs;switch(this.type){case"parallel":return mc(this.initialStateValue,function(i,s){return i?r.getStateNode(s).resolve(t[s]||i):Vs});case"compound":if(Xt(t)){var o=this.getStateNode(t);return o.type==="parallel"||o.type==="compound"?(n={},n[t]=o.initialStateValue,n):t}return Object.keys(t).length?mc(t,function(i,s){return i?r.getStateNode(s).resolve(i):Vs}):this.initialStateValue||{};default:return t||Vs}},e.prototype.getResolvedPath=function(t){if(js(t)){var n=this.machine.idMap[t.slice(Wm.length)];if(!n)throw new Error("Unable to find state node '".concat(t,"'"));return n.path}return $m(t,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;var n;if(this.type==="parallel")n=uE(this.states,function(r){return r.initialStateValue||Vs},function(r){return r.type!=="history"});else if(this.initial!==void 0){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=ld(this.states[this.initial])?this.initial:(t={},t[this.initial]=this.states[this.initial].initialStateValue,t)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(t,n){this._init();var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var t;if(this.type==="history"){var n=this.config;Xt(n.target)?t=js(n.target)?td(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target:t=n.target}return t},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(t,n,r){return r===void 0&&(r=!0),r?t.type==="history"?t.resolveHistory(n):t.initialStateNodes:[t]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var t=this;if(ld(this))return[this];if(this.type==="compound"&&!this.initial)return[this];var n=nd(this.initialStateValue);return gn(n.map(function(r){return t.getFromRelativePath(r)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var n=Gt(t),r=n[0],o=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var i=this.getStateNode(r);if(i.type==="history")return i.resolveHistory();if(!this.states[r])throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(o)},e.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:uE(this.states,function(n,r){if(!t)return n.historyValue();var o=Xt(t)?void 0:t[r];return n.historyValue(o||n.initialStateValue)},function(n){return!n.history})}},e.prototype.resolveHistory=function(t){var n=this;if(this.type!=="history")return[this];var r=this.parent;if(!t){var o=this.target;return o?gn(nd(o).map(function(s){return r.getFromRelativePath(s)})):r.initialStateNodes}var i=JM(r.path,"states")(t).current;return Xt(i)?[r.getStateNode(i)]:gn(nd(i).map(function(s){return n.history==="deep"?r.getFromRelativePath(s):[r.states[s[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var t=this,n=gn(Object.keys(this.states).map(function(r){return t.states[r].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var t,n,r,o;if(this.__cache.events)return this.__cache.events;var i=this.states,s=new Set(this.ownEvents);if(i)try{for(var l=Mt(Object.keys(i)),h=l.next();!h.done;h=l.next()){var f=h.value,g=i[f];
976if(g.states)try{for(var w=(r=void 0,Mt(g.events)),E=w.next();!E.done;E=w.next()){var C=E.value;s.add("".concat(C))}}catch(A){r={error:A}}finally{try{E&&!E.done&&(o=w.return)&&o.call(w)}finally{if(r)throw r.error}}}}catch(A){t={error:A}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(s)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(t)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(t){var n=this;if(t!==void 0)return t.map(function(r){if(!Xt(r))return r;var o=r[0]===n.delimiter;if(o&&!n.parent)return n.getStateNodeByPath(r.slice(1));var i=o?n.key+r:r;if(n.parent)try{var s=n.parent.getStateNodeByPath(i);return s}catch(l){throw new Error("Invalid transition definition for state node '".concat(n.id,`':
977`).concat(l.message))}else return n.getStateNodeByPath(i)})},e.prototype.formatTransition=function(t){var n=this,r=oL(t.target),o="internal"in t?t.internal:r?r.some(function(h){return Xt(h)&&h[0]===n.delimiter}):!0,i=this.machine.options.guards,s=this.resolveTarget(r),l=Re(Re({},t),{actions:ao(li(t.actions)),cond:hE(t.cond,i),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return Re(Re({},l),{target:l.target?l.target.map(function(h){return"#".concat(h.id)}):void 0,source:"#".concat(n.id)})}});return l},e.prototype.formatTransitions=function(){var t,n,r=this,o;if(!this.config.on)o=[];else if(Array.isArray(this.config.on))o=this.config.on;else{var i=this.config.on,s=qm,l=i[s],h=l===void 0?[]:l,f=Nm(i,[typeof s=="symbol"?s:s+""]);o=gn(Object.keys(f).map(function(R){var L=Os(R,f[R]);return L}).concat(Os(qm,h)))}var g=this.config.always?Os("",this.config.always):[],w=this.config.onDone?Os(String(yc(this.id)),this.config.onDone):[],E=gn(this.invoke.map(function(R){var L=[];return R.onDone&&L.push.apply(L,fn([],Gt(Os(String(vc(R.id)),R.onDone)),!1)),R.onError&&L.push.apply(L,fn([],Gt(Os(String(Ms(R.id)),R.onError)),!1)),L})),C=this.after,A=gn(fn(fn(fn(fn([],Gt(w),!1),Gt(E),!1),Gt(o),!1),Gt(g),!1).map(function(R){return li(R).map(function(L){return r.formatTransition(L)})}));try{for(var k=Mt(C),U=k.next();!U.done;U=k.next()){var N=U.value;A.push(N)}}catch(R){t={error:R}}finally{try{U&&!U.done&&(n=k.return)&&n.call(k)}finally{if(t)throw t.error}}return A},e}();function Cc(e,t){return new RL(e,t)}var Kr=xE,Km=_E,BL=TE;const{assign:sn,stop:OL}=IE,gd=e=>OL(e),UL=sn({attributeToVerify:e=>{}}),$L=sn({challengeName:e=>{}}),ML=sn({requiredAttributes:e=>{}}),Ym=sn({remoteError:e=>""}),Jm=sn({formValues:e=>({})}),Xm=sn({touched:e=>({})}),LL=sn({unverifiedContactMethods:e=>{}}),VL=sn({username:e=>{}}),Zm=sn({validationError:e=>({})}),jL=sn({totpSecretCode:(e,t)=>t.data}),zL=sn({challengeName:(e,t)=>{var n;return(n=t.data)===null||n===void 0?void 0:n.challengeName}}),HL=sn({requiredAttributes:(e,t)=>{var n,r;return(r=(n=t.data)===null||n===void 0?void 0:n.challengeParam)===null||r===void 0?void 0:r.requiredAttributes}}),GL=sn({redirectIntent:e=>"confirmPasswordReset"}),WL=sn({redirectIntent:e=>"confirmSignUp"}),UE=sn({authAttributes:(e,t)=>{var n,r;const[o]=e.loginMechanisms;return{username:(n=e.formValues[o])!==null&&n!==void 0?n:e.formValues.username,password:(r=e.formValues)===null||r===void 0?void 0:r.password}}}),Qm=sn({validationError:(e,t)=>t.data}),e0=sn({remoteError:(e,t)=>{var n;return t.data.name==="NoUserPoolError"?"Configuration error (see console) – please contact the administrator":((n=t.data)===null||n===void 0?void 0:n.message)||t.data}}),qL=sn({unverifiedContactMethods:(e,t)=>t.data.unverified}),$E=sn({user:(e,t)=>t.data.user||t.data}),KL=sn({username:(e,t)=>{let{formValues:{username:n,country_code:r}}=e;return r&&(n=`${r}${n}`),n}}),YL=sn({codeDeliveryDetails:(e,t)=>t.data.codeDeliveryDetails}),JL=sn({authAttributes:(e,t)=>({username:e.formValues.username})}),t0=sn({formValues:(e,t)=>{const{name:n,value:r}=t.data;return Object.assign(Object.assign({},e.formValues),{[n]:r})}}),n0=sn({formValues:(e,t)=>{const n=Object.assign(Object.assign({},e.formValues),t.data);return FM(n,"password")}}),r0=sn({touched:(e,t)=>{const{name:n}=t.data;return Object.assign(Object.assign({},e.touched),{[`${n}`]:!0})}}),XL=e=>jt(void 0,void 0,void 0,function*(){const{username:t}=e;return yield En.forgotPassword(t)}),ME=sn({formValues:(e,t)=>{var n;const[r="username"]=e.loginMechanisms;if(!e.formValues.phone_number&&r!=="phone_number")return e.formValues;const{formValues:o,country_code:i}=e,s=o.phone_number?"phone_number":"username",l=`${(n=o.country_code)!==null&&n!==void 0?n:i}${o[s]}`.replace(/[^A-Z0-9+]/gi,""),h=Object.assign(Object.assign({},o),{[s]:l});return delete h.country_code,h}});var ZL=Array.isArray,so=ZL,QL=typeof Gf=="object"&&Gf&&Gf.Object===Object&&Gf,LE=QL,eV=LE,tV=typeof self=="object"&&self&&self.Object===Object&&self,nV=eV||tV||Function("return this")(),ki=nV,rV=ki,iV=rV.Symbol,md=iV,VE=md,jE=Object.prototype,oV=jE.hasOwnProperty,aV=jE.toString,xc=VE?VE.toStringTag:void 0;function sV(e){var t=oV.call(e,xc),n=e[xc];try{e[xc]=void 0;var r=!0}catch{}var o=aV.call(e);return r&&(t?e[xc]=n:delete e[xc]),o}var uV=sV,cV=Object.prototype,lV=cV.toString;
vendor: 15,519 bytes, line 977
977function fV(e){return lV.call(e)}var dV=fV,zE=md,hV=uV,pV=dV,gV="[object Null]",mV="[object Undefined]",HE=zE?zE.toStringTag:void 0;function yV(e){return e==null?e===void 0?mV:gV:HE&&HE in Object(e)?hV(e):pV(e)}var zs=yV;function vV(e){return e!=null&&typeof e=="object"}var Fa=vV,_V=zs,wV=Fa,bV="[object Symbol]";function EV(e){return typeof e=="symbol"||wV(e)&&_V(e)==bV}var i0=EV,SV=so,CV=i0,xV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AV=/^\w*$/;function TV(e,t){if(SV(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||CV(e)?!0:AV.test(e)||!xV.test(e)||t!=null&&e in Object(t)}var o0=TV;function IV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var uo=IV,kV=zs,PV=uo,NV="[object AsyncFunction]",DV="[object Function]",FV="[object GeneratorFunction]",RV="[object Proxy]";function BV(e){if(!PV(e))return!1;var t=kV(e);return t==DV||t==FV||t==NV||t==RV}var a0=BV,OV=ki,UV=OV["__core-js_shared__"],$V=UV,s0=$V,GE=function(){var e=/[^.]+$/.exec(s0&&s0.keys&&s0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MV(e){return!!GE&&GE in e}var LV=MV,VV=Function.prototype,jV=VV.toString;function zV(e){if(e!=null){try{return jV.call(e)}catch{}try{return e+""}catch{}}return""}var WE=zV,HV=a0,GV=LV,WV=uo,qV=WE,KV=/[\\^$.*+?()[\]{}|]/g,YV=/^\[object .+?Constructor\]$/,JV=Function.prototype,XV=Object.prototype,ZV=JV.toString,QV=XV.hasOwnProperty,e7=RegExp("^"+ZV.call(QV).replace(KV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t7(e){if(!WV(e)||GV(e))return!1;var t=HV(e)?e7:YV;return t.test(qV(e))}var n7=t7;function r7(e,t){return e==null?void 0:e[t]}var i7=r7,o7=n7,a7=i7;function s7(e,t){var n=a7(e,t);return o7(n)?n:void 0}var Ra=s7,u7=Ra,c7=u7(Object,"create"),yd=c7,qE=yd;function l7(){this.__data__=qE?qE(null):{},this.size=0}var f7=l7;function d7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var h7=d7,p7=yd,g7="__lodash_hash_undefined__",m7=Object.prototype,y7=m7.hasOwnProperty;function v7(e){var t=this.__data__;if(p7){var n=t[e];return n===g7?void 0:n}return y7.call(t,e)?t[e]:void 0}var _7=v7,w7=yd,b7=Object.prototype,E7=b7.hasOwnProperty;function S7(e){var t=this.__data__;return w7?t[e]!==void 0:E7.call(t,e)}var C7=S7,x7=yd,A7="__lodash_hash_undefined__";function T7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=x7&&t===void 0?A7:t,this}var I7=T7,k7=f7,P7=h7,N7=_7,D7=C7,F7=I7;function Hs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hs.prototype.clear=k7,Hs.prototype.delete=P7,Hs.prototype.get=N7,Hs.prototype.has=D7,Hs.prototype.set=F7;var R7=Hs;function B7(){this.__data__=[],this.size=0}var O7=B7;function U7(e,t){return e===t||e!==e&&t!==t}var Ac=U7,$7=Ac;function M7(e,t){for(var n=e.length;n--;)if($7(e[n][0],t))return n;return-1}var vd=M7,L7=vd,V7=Array.prototype,j7=V7.splice;function z7(e){var t=this.__data__,n=L7(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():j7.call(t,n,1),--this.size,!0}var H7=z7,G7=vd;function W7(e){var t=this.__data__,n=G7(t,e);return n<0?void 0:t[n][1]}var q7=W7,K7=vd;function Y7(e){return K7(this.__data__,e)>-1}var J7=Y7,X7=vd;function Z7(e,t){var n=this.__data__,r=X7(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Q7=Z7,e9=O7,t9=H7,n9=q7,r9=J7,i9=Q7;function Gs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gs.prototype.clear=e9,Gs.prototype.delete=t9,Gs.prototype.get=n9,Gs.prototype.has=r9,Gs.prototype.set=i9;var _d=Gs,o9=Ra,a9=ki,s9=o9(a9,"Map"),u0=s9,KE=R7,u9=_d,c9=u0;function l9(){this.size=0,this.__data__={hash:new KE,map:new(c9||u9),string:new KE}}var f9=l9;function d9(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var h9=d9,p9=h9;function g9(e,t){var n=e.__data__;return p9(t)?n[typeof t=="string"?"string":"hash"]:n.map}var wd=g9,m9=wd;function y9(e){var t=m9(this,e).delete(e);return this.size-=t?1:0,t}var v9=y9,_9=wd;function w9(e){return _9(this,e).get(e)}var b9=w9,E9=wd;function S9(e){return E9(this,e).has(e)}var C9=S9,x9=wd;function A9(e,t){var n=x9(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var T9=A9,I9=f9,k9=v9,P9=b9,N9=C9,D9=T9;function Ws(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ws.prototype.clear=I9,Ws.prototype.delete=k9,Ws.prototype.get=P9,Ws.prototype.has=N9,Ws.prototype.set=D9;var c0=Ws,YE=c0,F9="Expected a function";function l0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(F9);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(l0.Cache||YE),n}l0.Cache=YE;var R9=l0,B9=R9,O9=500;function U9(e){var t=B9(e,function(r){return n.size===O9&&n.clear(),r}),n=t.cache;return t}var $9=U9,M9=$9,L9=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V9=/\\(\\)?/g,j9=M9(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L9,function(n,r,o,i){t.push(o?i.replace(V9,"$1"):r||n)}),t}),z9=j9;function H9(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var JE=H9,XE=md,G9=JE,W9=so,q9=i0,K9=1/0,ZE=XE?XE.prototype:void 0,QE=ZE?ZE.toString:void 0;function eS(e){if(typeof e=="string")return e;if(W9(e))return G9(e,eS)+"";if(q9(e))return QE?QE.call(e):"";var t=e+"";return t=="0"&&1/e==-K9?"-0":t}var Y9=eS,J9=Y9;function X9(e){return e==null?"":J9(e)}var Z9=X9,Q9=so,ej=o0,tj=z9,nj=Z9;function rj(e,t){return Q9(e)?e:ej(e,t)?[e]:tj(nj(e))}var bd=rj,ij=i0,oj=1/0;function aj(e){if(typeof e=="string"||ij(e))return e;var t=e+"";return t=="0"&&1/e==-oj?"-0":t}var Tc=aj,sj=bd,uj=Tc;function cj(e,t){t=sj(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[uj(t[n++])];return n&&n==r?e:void 0}var f0=cj,lj=f0;function fj(e,t,n){var r=e==null?void 0:lj(e,t);return r===void 0?n:r}var Ba=fj,dj=_d;function hj(){this.__data__=new dj,this.size=0}var pj=hj;function gj(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mj=gj;function yj(e){return this.__data__.get(e)}var vj=yj;function _j(e){return this.__data__.has(e)}var wj=_j,bj=_d,Ej=u0,Sj=c0,Cj=200;function xj(e,t){var n=this.__data__;if(n instanceof bj){var r=n.__data__;if(!Ej||r.length<Cj-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sj(r)}return n.set(e,t),this.size=n.size,this}var Aj=xj,Tj=_d,Ij=pj,kj=mj,Pj=vj,Nj=wj,Dj=Aj;function qs(e){var t=this.__data__=new Tj(e);this.size=t.size}qs.prototype.clear=Ij,qs.prototype.delete=kj,qs.prototype.get=Pj,qs.prototype.has=Nj,qs.prototype.set=Dj;var d0=qs,Fj=Ra,Rj=function(){try{var e=Fj(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tS=Rj,nS=tS;function Bj(e,t,n){t=="__proto__"&&nS?nS(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var h0=Bj,Oj=h0,Uj=Ac;function $j(e,t,n){(n!==void 0&&!Uj(e[t],n)||n===void 0&&!(t in e))&&Oj(e,t,n)}var rS=$j;function Mj(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),l=s.length;l--;){var h=s[e?l:++o];if(n(i[h],h,i)===!1)break}return t}}var Lj=Mj,Vj=Lj,jj=Vj(),zj=jj,p0={exports:{}};(function(e,t){var n=ki,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,s=i?n.Buffer:void 0,l=s?s.allocUnsafe:void 0;function h(f,g){if(g)return f.slice();var w=f.length,E=l?l(w):new f.constructor(w);return f.copy(E),E}e.exports=h})(p0,p0.exports);var Hj=ki,Gj=Hj.Uint8Array,iS=Gj,oS=iS;function Wj(e){var t=new e.constructor(e.byteLength);return new oS(t).set(new oS(e)),t}var qj=Wj,Kj=qj;function Yj(e,t){var n=t?Kj(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Jj=Yj;function Xj(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Zj=Xj,Qj=uo,aS=Object.create,ez=function(){function e(){}return function(t){if(!Qj(t))return{};if(aS)return aS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tz=ez;function nz(e,t){return function(n){return e(t(n))}}var sS=nz,rz=sS,iz=rz(Object.getPrototypeOf,Object),g0=iz,oz=Object.prototype;function az(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||oz;return e===n}var m0=az,sz=tz,uz=g0,cz=m0;function lz(e){return typeof e.constructor=="function"&&!cz(e)?sz(uz(e)):{}}var fz=lz,dz=zs,hz=Fa,pz="[object Arguments]";function gz(e){return hz(e)&&dz(e)==pz}var mz=gz,uS=mz,yz=Fa,cS=Object.prototype,vz=cS.hasOwnProperty,_z=cS.propertyIsEnumerable,wz=uS(function(){return arguments}())?uS:function(e){return yz(e)&&vz.call(e,"callee")&&!_z.call(e,"callee")},y0=wz,bz=9007199254740991;function Ez(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bz}var v0=Ez,Sz=a0,Cz=v0;function xz(e){return e!=null&&Cz(e.length)&&!Sz(e)}var Ed=xz,Az=Ed,Tz=Fa;function Iz(e){return Tz(e)&&Az(e)}var kz=Iz,Ic={exports:{}};function Pz(){return!1}var Nz=Pz;(function(e,t){var n=ki,r=Nz,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,l=s?n.Buffer:void 0,h=l?l.isBuffer:void 0,f=h||r;e.exports=f})(Ic,Ic.exports);var Dz=zs,Fz=g0,Rz=Fa,Bz="[object Object]",Oz=Function.prototype,Uz=Object.prototype,lS=Oz.toString,$z=Uz.hasOwnProperty,Mz=lS.call(Object);function Lz(e){if(!Rz(e)||Dz(e)!=Bz)return!1;var t=Fz(e);if(t===null)return!0;var n=$z.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&lS.call(n)==Mz}var Vz=Lz,jz=zs,zz=v0,Hz=Fa,Gz="[object Arguments]",Wz="[object Array]",qz="[object Boolean]",Kz="[object Date]",Yz="[object Error]",Jz="[object Function]",Xz="[object Map]",Zz="[object Number]",Qz="[object Object]",eH="[object RegExp]",tH="[object Set]",nH="[object String]",rH="[object WeakMap]",iH="[object ArrayBuffer]",oH="[object DataView]",aH="[object Float32Array]",sH="[object Float64Array]",uH="[object Int8Array]",cH="[object Int16Array]",lH="[object Int32Array]",fH="[object Uint8Array]",dH="[object Uint8ClampedArray]",hH="[object Uint16Array]",pH="[object Uint32Array]",dn={};dn[aH]=dn[sH]=dn[uH]=dn[cH]=dn[lH]=dn[fH]=dn[dH]=dn[hH]=dn[pH]=!0,dn[Gz]=dn[Wz]=dn[iH]=dn[qz]=dn[oH]=dn[Kz]=dn[Yz]=dn[Jz]=dn[Xz]=dn[Zz]=dn[Qz]=dn[eH]=dn[tH]=dn[nH]=dn[rH]=!1;function gH(e){return Hz(e)&&zz(e.length)&&!!dn[jz(e)]}var mH=gH;function yH(e){return function(t){return e(t)}}var vH=yH,_0={exports:{}};(function(e,t){var n=LE,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,s=i&&n.process,l=function(){try{var h=o&&o.require&&o.require("util").types;return h||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(_0,_0.exports);var _H=mH,wH=vH,fS=_0.exports,dS=fS&&fS.isTypedArray,bH=dS?wH(dS):_H,w0=bH;function EH(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var hS=EH,SH=h0,CH=Ac,xH=Object.prototype,AH=xH.hasOwnProperty;function TH(e,t,n){var r=e[t];(!(AH.call(e,t)&&CH(r,n))||n===void 0&&!(t in e))&&SH(e,t,n)}var pS=TH,IH=pS,kH=h0;function PH(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var l=t[i],h=r?r(n[l],e[l],l,n,e):void 0;h===void 0&&(h=e[l]),o?kH(n,l,h):IH(n,l,h)}return n}var NH=PH;function DH(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var FH=DH,RH=9007199254740991,BH=/^(?:0|[1-9]\d*)$/;function OH(e,t){var n=typeof e;return t=t??RH,!!t&&(n=="number"||n!="symbol"&&BH.test(e))&&e>-1&&e%1==0&&e<t}var Sd=OH,UH=FH,$H=y0,MH=so,LH=Ic.exports,VH=Sd,jH=w0,zH=Object.prototype,HH=zH.hasOwnProperty;function GH(e,t){var n=MH(e),r=!n&&$H(e),o=!n&&!r&&LH(e),i=!n&&!r&&!o&&jH(e),s=n||r||o||i,l=s?UH(e.length,String):[],h=l.length;for(var f in e)(t||HH.call(e,f))&&!(s&&(f=="length"||o&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||VH(f,h)))&&l.push(f);return l}var gS=GH;function WH(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var qH=WH,KH=uo,YH=m0,JH=qH,XH=Object.prototype,ZH=XH.hasOwnProperty;function QH(e){if(!KH(e))return JH(e);var t=YH(e),n=[];for(var r in e)r=="constructor"&&(t||!ZH.call(e,r))||n.push(r);return n}var eG=QH,tG=gS,nG=eG,rG=Ed;function iG(e){return rG(e)?tG(e,!0):nG(e)}var b0=iG,oG=NH,aG=b0;function sG(e){return oG(e,aG(e))}var uG=sG,mS=rS,cG=p0.exports,lG=Jj,fG=Zj,dG=fz,yS=y0,vS=so,hG=kz,pG=Ic.exports,gG=a0,mG=uo,yG=Vz,vG=w0,_S=hS,_G=uG;function wG(e,t,n,r,o,i,s){var l=_S(e,n),h=_S(t,n),f=s.get(h);if(f){mS(e,n,f);return}var g=i?i(l,h,n+"",e,t,s):void 0,w=g===void 0;if(w){var E=vS(h),C=!E&&pG(h),A=!E&&!C&&vG(h);g=h,E||C||A?vS(l)?g=l:hG(l)?g=fG(l):C?(w=!1,g=cG(h,!0)):A?(w=!1,g=lG(h,!0)):g=[]:yG(h)||yS(h)?(g=l,yS(l)?g=_G(l):(!mG(l)||gG(l))&&(g=dG(h))):w=!1}w&&(s.set(h,g),o(g,h,r,i,s),s.delete(h)),mS(e,n,g)}var bG=wG,EG=d0,SG=rS,CG=zj,xG=bG,AG=uo,TG=b0,IG=hS;function wS(e,t,n,r,o){e!==t&&CG(t,function(i,s){if(o||(o=new EG),AG(i))xG(e,t,s,n,wS,r,o);else{var l=r?r(IG(e,s),i,s+"",e,t,o):void 0;l===void 0&&(l=i),SG(e,s,l)}},TG)}var kG=wS;function PG(e){return e}var E0=PG;function NG(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var DG=NG,FG=DG,bS=Math.max;function RG(e,t,n){return t=bS(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=bS(r.length-t,0),s=Array(i);++o<i;)s[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(s),FG(e,this,l)}}var BG=RG;function OG(e){return function(){return e}}var UG=OG,$G=UG,ES=tS,MG=E0,LG=ES?function(e,t){return ES(e,"toString",{configurable:!0,enumerable:!1,value:$G(t),writable:!0})}:MG,VG=LG,jG=800,zG=16,HG=Date.now;function GG(e){var t=0,n=0;return function(){var r=HG(),o=zG-(r-n);if(n=r,o>0){if(++t>=jG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var WG=GG,qG=VG,KG=WG,YG=KG(qG),JG=YG,XG=E0,ZG=BG,QG=JG;function eW(e,t){return QG(ZG(e,t,XG),e+"")}var tW=eW,nW=Ac,rW=Ed,iW=Sd,oW=uo;function aW(e,t,n){if(!oW(n))return!1;var r=typeof t;return(r=="number"?rW(n)&&iW(t,n.length):r=="string"&&t in n)?nW(n[t],e):!1}var sW=aW,uW=tW,cW=sW;function lW(e){return uW(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&cW(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t})}var fW=lW,dW=kG,hW=fW,pW=hW(function(e,t,n){dW(e,t,n)}),gW=pW;const S0=(e,t,n,r)=>jt(void 0,void 0,void 0,function*(){const o=yield Promise.all(r.map(s=>s(e,t,n))),i=gW({},...o);return Pm(i)?Promise.resolve():Promise.reject(i)}),Ks={getAmplifyConfig(){return jt(this,void 0,void 0,function*(){return bs.configure()})},getCurrentUser(){return jt(this,void 0,void 0,function*(){return En.currentAuthenticatedUser()})},handleSignUp(e){return jt(this,void 0,void 0,function*(){return En.signUp(Object.assign(Object.assign({},e),{autoSignIn:{enabled:!0}}))})},handleSignIn({username:e,password:t}){return jt(this,void 0,void 0,function*(){return En.signIn(e,t)})},handleConfirmSignIn({user:e,code:t,mfaType:n}){return jt(this,void 0,void 0,function*(){return En.confirmSignIn(e,t,n)})},handleConfirmSignUp({username:e,code:t}){return jt(this,void 0,void 0,function*(){return yield En.confirmSignUp(e,t)})},handleForgotPasswordSubmit({username:e,code:t,password:n}){return jt(this,void 0,void 0,function*(){return En.forgotPasswordSubmit(e,t,n)})},handleForgotPassword(e){return jt(this,void 0,void 0,function*(){return En.forgotPassword(e)})},validateCustomSignUp(e,t){return jt(this,void 0,void 0,function*(){})},validateFormPassword(e,t,n){return jt(this,void 0,void 0,function*(){const{password:r}=e,{password:o}=t;if(!o||!n)return null;
977const i=[],s=+(n==null?void 0:n.passwordPolicyMinLength);r.length<s&&i.push(`Password must have at least ${s} characters`);const l=n==null?void 0:n.passwordPolicyCharacters;return l==null||l.forEach(h=>{switch(h){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||i.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||i.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||i.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":NM(r)||i.push("Password must have special characters")}}),i.length!==0?{password:i}:null})},validateConfirmPassword(e,t){return jt(this,void 0,void 0,function*(){const{password:n,confirm_password:r}=e,{confirm_password:o,password:i}=t;return n||r?(n||r)&&n!==r&&(o&&i||(n==null?void 0:n.length)>=6&&(r==null?void 0:r.length)>=6)?{confirm_password:"Your passwords must match"}:void 0:null})},validatePreferredUsername(e,t){return jt(this,void 0,void 0,function*(){})}},mW=["SMS_MFA","SOFTWARE_TOKEN_MFA"],C0=e=>Ba(e,"data.challengeName"),SS=(e,t)=>e===t,CS=e=>mW.includes(e);function yW({services:e}){return Cc({initial:"init",id:"signInActor",predictableActionArguments:!0,states:{init:{always:[{target:"autoSignIn.submit",cond:"shouldAutoSubmit"},{target:"autoSignIn",cond:"shouldAutoSignIn"},{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedContactMethods"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},autoSignIn:{initial:"pending",states:{pending:{tags:["pending"],entry:["clearError","sendUpdate"],on:{AUTO_SIGN_IN:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],AUTO_SIGN_IN_FAILURE:{actions:"setRemoteError",target:"pending"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}}
977,forceNewPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"getTotpSecretCode",exit:["clearFormValues","clearError","clearTouched"],states:{getTotpSecretCode:{invoke:{src:"getTotpSecretCode",onDone:{target:"edit",actions:"setTotpSecretCode"},onError:{target:"edit",actions:"setRemoteError"}}},edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedContactMethods","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:t=>({user:t.user})},rejected:{type:"final",data:(t,n)=>({intent:t.redirectIntent,authAttributes:t.authAttributes})}}},{actions:{clearAttributeToVerify:UL,clearChallengeName:$L,clearRequiredAttributes:ML,clearError:Ym,clearFormValues:Jm,clearTouched:Xm,clearUnverifiedContactMethods:LL,clearValidationError:Zm,handleInput:t0,handleSubmit:n0,handleBlur:r0,parsePhoneNumber:ME,setChallengeName:zL,setConfirmResetPasswordIntent:GL,setConfirmSignUpIntent:WL,setRequiredAttributes:HL,setCredentials:UE,setFieldErrors:Qm,setRemoteError:e0,setTotpSecretCode:jL,setUnverifiedContactMethods:qL,setUser:$E,setUsernameAuthAttributes:JL,sendUpdate:Km()},guards:{shouldAutoSignIn:t=>(t==null?void 0:t.intent)==="autoSignIn",shouldAutoSubmit:t=>(t==null?void 0:t.intent)==="autoSignInSubmit",shouldConfirmSignIn:(t,n)=>CS(C0(n)),shouldForceChangePassword:(t,n)=>SS(C0(n),"NEW_PASSWORD_REQUIRED"),shouldRedirectToConfirmResetPassword:(t,n)=>n.data.code==="PasswordResetRequiredException",shouldRedirectToConfirmSignUp:(t,n)=>n.data.code==="UserNotConfirmedException",shouldRequestVerification:(t,n)=>{const{unverified:r,verified:o}=n.data;return Pm(o)&&!Pm(r)},shouldSetupTOTP:(t,n)=>SS(C0(n),"MFA_SETUP")},services:{signIn(t){return jt(this,void 0,void 0,function*(){const{authAttributes:n={},formValues:r={}}=t,o=Object.assign(Object.assign({},n),r),{username:i,password:s}=o;return yield e.handleSignIn({username:i,password:s})})},confirmSignIn(t){return jt(this,void 0,void 0,function*(){const{challengeName:n,user:r}=t,{confirmation_code:o}=t.formValues,i=CS(n)?n:void 0;return yield e.handleConfirmSignIn({user:r,code:o,mfaType:i}),yield En.currentAuthenticatedUser()})},forceNewPassword(t){return jt(this,void 0,void 0,function*(){const{user:n,formValues:r}=t;let o,{password:i,confirm_password:s,phone_number:l,country_code:h}=r,f=K4(r,["password","confirm_password","phone_number","country_code"]);l&&(o=`${h}${l}`.replace(/[^A-Z0-9+]/gi,""),f=Object.assign(Object.assign({},f),{phone_number:o}));try{const g=yield En.completeNewPassword(n,i,f);return g.challengeName?g:En.currentAuthenticatedUser()}catch(g){return Promise.reject(g)}})},getTotpSecretCode(t){return jt(this,void 0,void 0,function*(){const{user:n}=t;return En.setupTOTP(n)})},verifyTotpToken(t){return jt(this,void 0,void 0,function*(){const{formValues:n,user:r}=t,{confirmation_code:o}=n;return En.verifyTotpToken(r,o)})},federatedSignIn(t,n){return jt(this,void 0,void 0,function*(){const{provider:r}=n.data;return yield En.federatedSignIn({provider:r})})},checkVerifiedContact(t){return jt(this,void 0,void 0,function*(){const{user:n}=t;return yield En.verifiedContact(n)})},verifyUser(t){return jt(this,void 0,void 0,function*(){const{unverifiedAttr:n}=t.formValues,r=yield En.verifyCurrentUserAttribute(n);return t.attributeToVerify=n,r})},confirmVerifyUser(t){return jt(this,void 0,void 0,function*(){const{attributeToVerify:n}=t,{confirmation_code:r}=t.formValues;return yield En.verifyCurrentUserAttributeSubmit(n,r)})},validateFields(t){return jt(this,void 0,void 0,function*(){return S0(t.formValues,t.touched,t.passwordSettings,[Ks.validateFormPassword,Ks.validateConfirmPassword])})}}})}const vW=Cc({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>En.signOut()}});function _W({services:e}){return Cc({id:"resetPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset",actions:"resendCode"},{target:"resetPassword"}]}
vendor: 7,132 bytes, line 977
977,resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:Ym,clearFormValues:Jm,clearTouched:Xm,clearUsername:VL,clearValidationError:Zm,handleInput:t0,handleSubmit:n0,handleBlur:r0,resendCode:XL,setFieldErrors:Qm,setRemoteError:e0,setUsername:KL,sendUpdate:Km()},guards:{shouldAutoConfirmReset:(t,n)=>!(!t.intent||t.intent!=="confirmPasswordReset")},services:{resetPassword(t){return jt(this,void 0,void 0,function*(){const{username:n}=t;return e.handleForgotPassword(n)})},confirmResetPassword(t){return jt(this,void 0,void 0,function*(){const{username:n}=t,{confirmation_code:r,password:o}=t.formValues;return e.handleForgotPasswordSubmit({username:n,code:r,password:o})})},validateFields(t,n){return jt(this,void 0,void 0,function*(){return S0(t.formValues,t.touched,t.passwordSettings,[Ks.validateFormPassword,Ks.validateConfirmPassword])})}}})}var wW="__lodash_hash_undefined__";function bW(e){return this.__data__.set(e,wW),this}var EW=bW;function SW(e){return this.__data__.has(e)}var CW=SW,xW=c0,AW=EW,TW=CW;function Cd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new xW;++t<n;)this.add(e[t])}Cd.prototype.add=Cd.prototype.push=AW,Cd.prototype.has=TW;var IW=Cd;function kW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var PW=kW;function NW(e,t){return e.has(t)}var DW=NW,FW=IW,RW=PW,BW=DW,OW=1,UW=2;function $W(e,t,n,r,o,i){var s=n&OW,l=e.length,h=t.length;if(l!=h&&!(s&&h>l))return!1;var f=i.get(e),g=i.get(t);if(f&&g)return f==t&&g==e;var w=-1,E=!0,C=n&UW?new FW:void 0;for(i.set(e,t),i.set(t,e);++w<l;){var A=e[w],k=t[w];if(r)var U=s?r(k,A,w,t,e,i):r(A,k,w,e,t,i);if(U!==void 0){if(U)continue;E=!1;break}if(C){if(!RW(t,function(N,R){if(!BW(C,R)&&(A===N||o(A,N,n,r,i)))return C.push(R)})){E=!1;break}}else if(!(A===k||o(A,k,n,r,i))){E=!1;break}}return i.delete(e),i.delete(t),E}var xS=$W;function MW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var LW=MW;function VW(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var jW=VW,AS=md,TS=iS,zW=Ac,HW=xS,GW=LW,WW=jW,qW=1,KW=2,YW="[object Boolean]",JW="[object Date]",XW="[object Error]",ZW="[object Map]",QW="[object Number]",eq="[object RegExp]",tq="[object Set]",nq="[object String]",rq="[object Symbol]",iq="[object ArrayBuffer]",oq="[object DataView]",IS=AS?AS.prototype:void 0,x0=IS?IS.valueOf:void 0;function aq(e,t,n,r,o,i,s){switch(n){case oq:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case iq:return!(e.byteLength!=t.byteLength||!i(new TS(e),new TS(t)));case YW:case JW:case QW:return zW(+e,+t);case XW:return e.name==t.name&&e.message==t.message;case eq:case nq:return e==t+"";case ZW:var l=GW;case tq:var h=r&qW;if(l||(l=WW),e.size!=t.size&&!h)return!1;var f=s.get(e);if(f)return f==t;r|=KW,s.set(e,t);var g=HW(l(e),l(t),r,o,i,s);return s.delete(e),g;case rq:if(x0)return x0.call(e)==x0.call(t)}return!1}var sq=aq;function uq(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var kS=uq,cq=kS,lq=so;function fq(e,t,n){var r=t(e);return lq(e)?r:cq(r,n(e))}var PS=fq;function dq(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var hq=dq;function pq(){return[]}var NS=pq,gq=hq,mq=NS,yq=Object.prototype,vq=yq.propertyIsEnumerable,DS=Object.getOwnPropertySymbols,_q=DS?function(e){return e==null?[]:(e=Object(e),gq(DS(e),function(t){return vq.call(e,t)}))}:mq,FS=_q,wq=sS,bq=wq(Object.keys,Object),Eq=bq,Sq=m0,Cq=Eq,xq=Object.prototype,Aq=xq.hasOwnProperty;function Tq(e){if(!Sq(e))return Cq(e);var t=[];for(var n in Object(e))Aq.call(e,n)&&n!="constructor"&&t.push(n);return t}var Iq=Tq,kq=gS,Pq=Iq,Nq=Ed;function Dq(e){return Nq(e)?kq(e):Pq(e)}var RS=Dq,Fq=PS,Rq=FS,Bq=RS;function Oq(e){return Fq(e,Bq,Rq)}var Uq=Oq,BS=Uq,$q=1,Mq=Object.prototype,Lq=Mq.hasOwnProperty;function Vq(e,t,n,r,o,i){var s=n&$q,l=BS(e),h=l.length,f=BS(t),g=f.length;if(h!=g&&!s)return!1;for(var w=h;w--;){var E=l[w];if(!(s?E in t:Lq.call(t,E)))return!1}var C=i.get(e),A=i.get(t);if(C&&A)return C==t&&A==e;var k=!0;i.set(e,t),i.set(t,e);for(var U=s;++w<h;){E=l[w];var N=e[E],R=t[E];if(r)var L=s?r(R,N,E,t,e,i):r(N,R,E,e,t,i);if(!(L===void 0?N===R||o(N,R,n,r,i):L)){k=!1;break}U||(U=E=="constructor")}if(k&&!U){var z=e.constructor,W=t.constructor;z!=W&&"constructor"in e&&"constructor"in t&&!(typeof z=="function"&&z instanceof z&&typeof W=="function"&&W instanceof W)&&(k=!1)}return i.delete(e),i.delete(t),k}var jq=Vq,zq=Ra,Hq=ki,Gq=zq(Hq,"DataView"),Wq=Gq,qq=Ra,Kq=ki,Yq=qq(Kq,"Promise"),Jq=Yq,Xq=Ra,Zq=ki,Qq=Xq(Zq,"Set"),eK=Qq,tK=Ra,nK=ki,rK=tK(nK,"WeakMap"),iK=rK,A0=Wq,T0=u0,I0=Jq,k0=eK,P0=iK,OS=zs,Ys=WE,US="[object Map]",oK="[object Object]",$S="[object Promise]",MS="[object Set]",LS="[object WeakMap]",VS="[object DataView]",aK=Ys(A0),sK=Ys(T0),uK=Ys(I0),cK=Ys(k0),lK=Ys(P0),Oa=OS;(A0&&Oa(new A0(new ArrayBuffer(1)))!=VS||T0&&Oa(new T0)!=US||I0&&Oa(I0.resolve())!=$S||k0&&Oa(new k0)!=MS||P0&&Oa(new P0)!=LS)&&(Oa=function(e){var t=OS(e),n=t==oK?e.constructor:void 0,r=n?Ys(n):"";if(r)switch(r){case aK:return VS;case sK:return US;case uK:return $S;case cK:return MS;case lK:return LS}return t});var fK=Oa,N0=d0,dK=xS,hK=sq,pK=jq,jS=fK,zS=so,HS=Ic.exports,gK=w0,mK=1,GS="[object Arguments]",WS="[object Array]",xd="[object Object]",yK=Object.prototype,qS=yK.hasOwnProperty;function vK(e,t,n,r,o,i){var s=zS(e),l=zS(t),h=s?WS:jS(e),f=l?WS:jS(t);h=h==GS?xd:h,f=f==GS?xd:f;var g=h==xd,w=f==xd,E=h==f;if(E&&HS(e)){if(!HS(t))return!1;s=!0,g=!1}
977if(E&&!g)return i||(i=new N0),s||gK(e)?dK(e,t,n,r,o,i):hK(e,t,h,n,r,o,i);if(!(n&mK)){var C=g&&qS.call(e,"__wrapped__"),A=w&&qS.call(t,"__wrapped__");if(C||A){var k=C?e.value():e,U=A?t.value():t;return i||(i=new N0),o(k,U,n,r,i)}}return E?(i||(i=new N0),pK(e,t,n,r,o,i)):!1}var _K=vK,wK=_K,KS=Fa;function YS(e,t,n,r,o){return e===t?!0:e==null||t==null||!KS(e)&&!KS(t)?e!==e&&t!==t:wK(e,t,n,r,YS,o)}var JS=YS,bK=d0,EK=JS,SK=1,CK=2;function xK(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){l=n[o];var h=l[0],f=e[h],g=l[1];if(s&&l[2]){if(f===void 0&&!(h in e))return!1}else{var w=new bK;if(r)var E=r(f,g,h,e,t,w);if(!(E===void 0?EK(g,f,SK|CK,r,w):E))return!1}}return!0}var AK=xK,TK=uo;function IK(e){return e===e&&!TK(e)}var XS=IK,kK=XS,PK=RS;function NK(e){for(var t=PK(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,kK(o)]}return t}var DK=NK;function FK(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var ZS=FK,RK=AK,BK=DK,OK=ZS;function UK(e){var t=BK(e);return t.length==1&&t[0][2]?OK(t[0][0],t[0][1]):function(n){return n===e||RK(n,e,t)}}var $K=UK;function MK(e,t){return e!=null&&t in Object(e)}var LK=MK,VK=bd,jK=y0,zK=so,HK=Sd,GK=v0,WK=Tc;function qK(e,t,n){t=VK(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=WK(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&GK(o)&&HK(s,o)&&(zK(e)||jK(e)))}var KK=qK,YK=LK,JK=KK;function XK(e,t){return e!=null&&JK(e,t,YK)}var ZK=XK,QK=JS,eY=Ba,tY=ZK,nY=o0,rY=XS,iY=ZS,oY=Tc,aY=1,sY=2;function uY(e,t){return nY(e)&&rY(t)?iY(oY(e),t):function(n){var r=eY(n,e);return r===void 0&&r===t?tY(n,e):QK(t,r,aY|sY)}}var cY=uY;function lY(e){return function(t){return t==null?void 0:t[e]}}var fY=lY,dY=f0;function hY(e){return function(t){return dY(t,e)}}var pY=hY,gY=fY,mY=pY,yY=o0,vY=Tc;function _Y(e){return yY(e)?gY(vY(e)):mY(e)}var wY=_Y,bY=$K,EY=cY,SY=E0,CY=so,xY=wY;function AY(e){return typeof e=="function"?e:e==null?SY:typeof e=="object"?CY(e)?EY(e[0],e[1]):bY(e):xY(e)}var TY=AY,IY=pS,kY=bd,PY=Sd,QS=uo,NY=Tc;function DY(e,t,n,r){if(!QS(e))return e;t=kY(t,e);for(var o=-1,i=t.length,s=i-1,l=e;l!=null&&++o<i;){var h=NY(t[o]),f=n;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(o!=s){var g=l[h];f=r?r(g,h,l):void 0,f===void 0&&(f=QS(g)?g:PY(t[o+1])?[]:{})}IY(l,h,f),l=l[h]}return e}var FY=DY,RY=f0,BY=FY,OY=bd;function UY(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],l=RY(e,s);n(l,s)&&BY(i,OY(s,e),l)}return i}var $Y=UY,MY=kS,LY=g0,VY=FS,jY=NS,zY=Object.getOwnPropertySymbols,HY=zY?function(e){for(var t=[];e;)MY(t,VY(e)),e=LY(e);return t}:jY,GY=HY,WY=PS,qY=GY,KY=b0;function YY(e){return WY(e,KY,qY)}var JY=YY,XY=JE,ZY=TY,QY=$Y,eJ=JY;function tJ(e,t){if(e==null)return{};var n=XY(eJ(e),function(r){return[r]});return t=ZY(t),QY(e,n,function(r,o){return t(r,o[0])})}var nJ=tJ;function rJ({services:e}){return Cc({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser","setCredentials"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:(t,n)=>{const{username:r,password:o}=t.authAttributes;return{user:Ba(n,"data.user")||t.user,authAttributes:{username:r,password:o},intent:t.intent}}}}},{guards:{isUserAlreadyConfirmed:(t,n)=>n.data.message==="User is already confirmed.",shouldInitConfirmSignUp:t=>
977t.intent&&t.intent==="confirmSignUp",shouldSkipConfirm:(t,n)=>n.data.userConfirmed},actions:{clearError:Ym,clearFormValues:Jm,clearTouched:Xm,clearValidationError:Zm,handleInput:t0,handleSubmit:n0,handleBlur:r0,parsePhoneNumber:ME,setCredentials:UE,setFieldErrors:Qm,setRemoteError:e0,setCodeDeliveryDetails:YL,setUser:$E,sendUpdate:Km(),setAutoSignInIntent:Kr({intent:t=>(t==null?void 0:t.intent)==="confirmSignUp"?"autoSignInSubmit":"autoSignIn"})},services:{confirmSignUp(t,n){return jt(this,void 0,void 0,function*(){const{user:r,authAttributes:o,formValues:i}=t,{confirmation_code:s}=i,l=Ba(r,"username")||Ba(o,"username");return yield e.handleConfirmSignUp({username:l,code:s})})},resendConfirmationCode(t,n){return jt(this,void 0,void 0,function*(){const{user:r,authAttributes:o}=t,i=Ba(r,"username")||Ba(o,"username");return En.resendSignUp(i)})},federatedSignIn(t,n){return jt(this,void 0,void 0,function*(){const{provider:r}=n.data;return yield En.federatedSignIn({provider:r})})},signUp(t,n){return jt(this,void 0,void 0,function*(){const{formValues:r,loginMechanisms:o}=t,[i="username"]=o,{[i]:s,password:l}=r,h=nJ(r,(f,g)=>{switch(g){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return g.startsWith("custom:")}});return yield e.handleSignUp({username:s,password:l,attributes:h})})},validateSignUp(t,n){return jt(this,void 0,void 0,function*(){return S0(t.formValues,t.touched,t.passwordSettings,[e.validateFormPassword,e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])})}}})}const{choose:iJ}=IE;function oJ(){return Cc({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:Ks,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},AUTO_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:iJ([{cond:"hasActor",actions:BL(e=>e.actorRef)}]),setUser:Kr({user:(e,t)=>t.data}),setActorDoneData:Kr({actorDoneData:(e,t)=>{var n,r;return{authAttributes:Object.assign({},(n=t.data)===null||n===void 0?void 0:n.authAttributes),intent:(r=t.data)===null||r===void 0?void 0:r.intent}},user:(e,t)=>{var n;return(n=t.data)===null||n===void 0?void 0:n.user}}),clearUser:Kr({user:void 0}),clearActorDoneData:Kr({actorDoneData:void 0}),applyAmplifyConfig:Kr({config(e,t){var n,r,o,i,s,l,h,f,g;const w=(r=(n=t.data.aws_cognito_username_attributes)===null||n===void 0?void 0:n.map(W=>W.toLowerCase()))!==null&&r!==void 0?r:[],E=(i=(o=t.data.aws_cognito_verification_mechanisms)===null||o===void 0?void 0:o.map(W=>W.toLowerCase()))!==null&&i!==void 0?i:[],C=(l=(s=t.data.aws_cognito_signup_attributes)===null||s===void 0?void 0:s.map(W=>W.toLowerCase()))!==null&&l!==void 0?l:[],A=(f=(h=t.data.aws_cognito_social_providers)===null||h===void 0?void 0:h.map(W=>W.toLowerCase()))!==null&&f!==void 0?f:[],k=t.data.aws_cognito_password_protection_settings||{};w.length===0&&w.push("username");const{loginMechanisms:U,signUpAttributes:N,socialProviders:R,initialState:L,formFields:z}=e.config;return{loginMechanisms:U??w,formFields:(g=aJ(z))!==null&&g!==void 0?g:{},passwordSettings:k,signUpAttributes:N??Array.from(new Set([...E,...C])),socialProviders:R??A.sort(),initialState:L}}}),spawnSignInActor:Kr({actorRef:(e,t)=>{var n,r,o,i,s,l,h;const{services:f}=e,g=yW({services:f}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},user:e.user,intent:(o=e.actorDoneData)===null||o===void 0?void 0:o.intent,country_code:"+1",formValues:{},touched:{},validationError:{},passwordSettings:(i=e.config)===null||i===void 0?void 0:i.passwordSettings,loginMechanisms:(s=e.config)===null||s===void 0?void 0:s.loginMechanisms,socialProviders:(l=e.config)===null||l===void 0?void 0:l.socialProviders,formFields:(h=e.config)===null||h===void 0?void 0:h.formFields});return dd(g,{name:"signInActor"})}}),spawnSignUpActor:Kr({actorRef:(e,t)=>{var n,r,o,i,s,l,h;const{services:f}=e,g=rJ({services:f}).withContext({authAttributes:(r=(n=e.actorDoneData)===null||n===void 0?void 0:n.authAttributes)!==null&&r!==void 0?r:{},country_code:"+1",intent:(o=e.actorDoneData)===null||o===void 0?void 0:o.intent,formValues:{},touched:{},validationError:{},loginMechanisms:(i=e.config)===null||i===void 0?void 0:i.loginMechanisms,socialProviders:(s=e.config)===null||s===void 0?void 0:s.socialProviders,formFields:(l=e.config)===null||l===void 0?void 0:l.formFields,passwordSettings:(h=e.config)===null||h===void 0?void 0:h.passwordSettings});return dd(g,{name:"signUpActor"})}}),spawnResetPasswordActor:Kr({actorRef:(e,t)=>{var n,r,o,i,s;const{services:l}=e,h=_W({services:l}).withContext({formValues:{},touched:{},intent:(n=e.actorDoneData)===null||n===void 0?void 0:n.intent,username:(o=(r=e.actorDoneData)===null||r===void 0?void 0:r.authAttributes)===null||o===void 0?void 0:o.username,formFields:(i=e.config)===null||i===void 0?void 0:i.formFields,validationError:{},passwordSettings:(s=e.config)===null||s===void 0?void 0:s.passwordSettings});return dd(h,{name:"resetPasswordActor"})}}),spawnSignOutActor:Kr({actorRef:e=>{const t=vW.withContext({user:e.user});return dd(t,{name:"signOutActor"})}}),stopSignInActor:gd("signInActor"),stopSignUpActor:gd("signUpActor"),stopResetPasswordActor:gd("resetPasswordActor"),stopSignOutActor:gd("signOutActor"),configure:Kr((e,t)=>{const n=t.data,{services:r}=n,o=K4(n,["services"]);return{services:Object.assign(Object.assign({},Ks),r),config:o}}),setHasSetup:Kr({hasSetup:!0})},guards:{isInitialStateSignUp:e=>e.config.initialState==="signUp",isInitialStateResetPassword:e=>e.config.initialState==="resetPassword",shouldRedirectToSignUp:(e,t)=>{var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmSignUp"},shouldRedirectToResetPassword:(e,t)=>{var n;return((n=t.data)===null||n===void 0?void 0:n.intent)==="confirmPasswordReset"},shouldAutoSignIn:(e,t)=>{var n,r;return((n=t.data)===null||n===void 0?void 0:n.intent)==="autoSignIn"||((r=t.data)===null||r===void 0?void 0:r.intent)==="autoSignInSubmit"},shouldSetup:e=>e.hasSetup===!1,hasActor:e=>!!e.actorRef},services:{getCurrentUser:(e,t)=>e.services.getCurrentUser(),getAmplifyConfig:(e,t)=>
977e.services.getAmplifyConfig()}})}function aJ(e){return e&&Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{let r=e[t][n];r.required=r.isRequired})}),e}const sJ={key:0,class:"amplify-flex amplify-alert amplify-alert--error amplify-authenticator__base","data-variation":"error",role:"alert"},uJ={class:"amplify-flex amplify-authenticator__icon-wrapper"},cJ=a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[a.createElementVNode("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})],-1),lJ=a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"amplify-icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor"},[a.createElementVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1),Pi={__name:"base-alert",setup(e){const t=a.ref(!0),n=it("Dismiss alert");function r(){t.value=!1}return(o,i)=>{const s=Wr;return t.value?(a.openBlock(),a.createElementBlock("div",sJ,[a.createElementVNode("div",uJ,[cJ,a.createElementVNode("div",null,[a.renderSlot(o.$slots,"default")])]),a.createVNode(s,{class:"amplify-field-group__control amplify-alert__dismiss","aria-label":a.unref(n),fullwidth:!1,variation:"link",type:"button",onClick:r},{default:a.withCtx(()=>[lJ]),_:1},8,["aria-label"])])):a.createCommentVNode("",!0)}}},Ni=a.defineComponent({__name:"base-field-set",setup(e){let t=a.useSlots();return(n,r)=>a.renderSlot(n.$slots,"fieldSetI",a.mergeProps(n.$attrs,{slotData:a.unref(t).default&&a.unref(t).default()}),()=>[a.createElementVNode("fieldset",a.mergeProps(n.$attrs,{"data-amplify-fieldset":""}),[a.renderSlot(n.$slots,"default")],16)])}});function fJ(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}function eC(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=a.effectScope(!0),n=r.run(()=>e(...i))),fJ(o),n)}function dJ(e){return"state"in e}var tC=function(){};function hJ(e){return"getSnapshot"in e?e.getSnapshot():dJ(e)?e.state:void 0}function pJ(e,t){t===void 0&&(t=hJ);var n=a.isRef(e)?e:a.shallowRef(e),r=a.shallowRef(t(n.value)),o=function(i){n.value.send(i)};return a.watch(n,function(i,s,l){r.value=t(i);var h=i.subscribe({next:function(f){return r.value=f},error:tC,complete:tC}).unsubscribe;l(function(){return h()})},{immediate:!0}),{state:r,send:o}}const gJ=e=>{var t,n,r;return{...(r=(n=(t=zf(e))==null?void 0:t.formFields)==null?void 0:n.setupTOTP)==null?void 0:r.QR}},D0=eC(()=>{const e=oJ(),t=OE(e).start(),n=a.ref("configuring"),{state:r,send:o}=pJ(t),i=()=>{n.value="authenticated"},s=()=>{n.value="unauthenticated"},l=PM(t,async(h,f)=>{await eE(h,f,{onSignIn:i,onSignOut:s})});return En.currentAuthenticatedUser().then(()=>{n.value="authenticated"}).catch(()=>{n.value="unauthenticated"}),a.onScopeDispose(()=>{l()}),{authStatus:n,service:t,send:o,state:r}}),sr=eC(()=>{const{authStatus:e,state:t,send:n}=D0(),r=a.reactive({});return a.watchEffect(()=>{const o=R$({send:n,state:t.value});for(const s of Object.keys(o))r[s]=o[s];const i=o.route==="setupTOTP"?gJ(t.value):null;r.QRFields=i,r.authStatus=e.value,r.send=n,r.state=t}),r});let mJ=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};const F0=a.defineComponent({__name:"base-input",emits:["update:modelValue"],setup(e,{emit:t}){const n=r=>{t("update:modelValue",r.target.value)};return(r,o)=>(a.openBlock(),a.createElementBlock("input",{onChange:o[0]||(o[0]=i=>n(i)),"data-amplify-input":""},null,32))}}),yJ={},vJ={"data-amplify-label":""};function _J(e,t){return a.openBlock(),a.createElementBlock("label",vJ,[a.renderSlot(e.$slots,"default")])}var R0=jf(yJ,[["render",_J]]);const wJ=["aria-label","aria-checked"],bJ=[a.createElementVNode("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},null,-1)],EJ=[a.createElementVNode("path",{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"},null,-1),a.createElementVNode("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},null,-1)],SJ={inheritAttrs:!1},CJ=a.defineComponent({...SJ,__name:"password-control",props:{name:null,label:null,autocomplete:{default:"new-password"},hasError:{type:Boolean,default:!1},labelHidden:{type:Boolean},placeholder:null,required:{type:Boolean,default:!0},describedBy:null},setup(e){var t;const n=e,r=it("Show password"),o=it("Hide password"),i=a.ref("password"),s=a.ref(r),l=Math.floor(Math.random()*999999),{name:h,label:f,autocomplete:g,hasError:w,labelHidden:E,placeholder:C,required:A}=a.toRefs(n);let k=a.ref("");
977function U(){s.value=s.value===r?o:r,i.value=i.value==="password"?"text":"password"}const N=it((t=C==null?void 0:C.value)!=null?t:f.value),R=it(f.value);return(L,z)=>{const W=R0,ee=F0,b=Qn;return a.openBlock(),a.createBlock(b,{class:a.normalizeClass([a.unref(zn).Flex,a.unref(zn).Field,a.unref(zn).TextField,a.unref(zn).PasswordField,"amplify-authenticator__column"])},{default:a.withCtx(()=>[a.createVNode(W,{class:a.normalizeClass(["amplify-label",{"amplify-visually-hidden":a.unref(E)}]),for:"amplify-field-"+a.unref(l)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(R)),1)]),_:1},8,["class","for"]),a.createVNode(b,{class:a.normalizeClass([a.unref(zn).Flex,a.unref(zn).FieldGroup])},{default:a.withCtx(()=>[a.createVNode(b,{class:a.normalizeClass(a.unref(zn).FieldGroupFieldWrapper)},{default:a.withCtx(()=>{var fe;return[a.createVNode(ee,a.mergeProps(L.$attrs,{modelValue:a.unref(k),"onUpdate:modelValue":z[0]||(z[0]=ae=>a.isRef(k)?k.value=ae:k=ae),class:[a.unref(zn).Input,a.unref(zn).FieldGroupControl],id:"amplify-field-"+a.unref(l),"data-amplify-password":"true",name:a.unref(h),autocomplete:a.unref(g),required:(fe=a.unref(A))!=null?fe:!0,placeholder:a.unref(N),type:i.value,"aria-invalid":a.unref(w),"aria-describedBy":e.describedBy}),null,16,["modelValue","class","id","name","autocomplete","required","placeholder","type","aria-invalid","aria-describedBy"])]}),_:1},8,["class"]),a.createVNode(b,{class:a.normalizeClass(a.unref(zn).FieldGroupOuterEnd)},{default:a.withCtx(()=>[a.createElementVNode("button",{"aria-label":s.value,"aria-checked":i.value!=="password",class:a.normalizeClass([a.unref(zn).Button,a.unref(zn).FieldGroupControl,a.unref(zn).FieldShowPassword]),"data-fullwidth":"false",type:"button",role:"switch",onClick:U},[i.value==="password"?(a.openBlock(),a.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:a.normalizeClass(a.unref(zn).Icon)},bJ,2)):(a.openBlock(),a.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",class:a.normalizeClass(a.unref(zn).Icon)},EJ,2))],10,wJ)]),_:1},8,["class"])]),_:1},8,["class"])]),_:1},8,["class"])}}}),xJ=["value","selected"],AJ=a.defineComponent({__name:"base-select",props:{selectValue:{default:""},options:null},emits:["update:selectValue"],setup(e,{emit:t}){const n=e,{options:r,selectValue:o}=a.toRefs(n),i=s=>{t("update:selectValue",s.target.value)};return(s,l)=>(a.openBlock(),a.createElementBlock("select",{onChange:l[0]||(l[0]=h=>i(h))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(r),(h,f)=>(a.openBlock(),a.createElementBlock("option",{key:f,value:h,selected:h==a.unref(o)?!0:void 0},a.toDisplayString(h),9,xJ))),128))],32))}}),TJ=a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg","data-size":"large",fill:"currentColor",viewBox:"0 0 24 24",class:"amplify-icon amplify-icon--large"},[a.createElementVNode("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})],-1),IJ=a.defineComponent({__name:"alias-control",props:{label:{default:"Username"},name:{default:"username"},placeholder:{default:""},autocomplete:{default:""},labelHidden:{type:Boolean},required:{type:Boolean,default:!0},dialCode:null,dialCodeList:null,type:{default:"text"},hasError:{type:Boolean},describedBy:null},setup(e){const t=e,{label:n,name:r,placeholder:o,autocomplete:i,labelHidden:s,required:l,dialCode:h,dialCodeList:f}=a.toRefs(t),g=Math.floor(Math.random()*999999),w=Math.floor(Math.random()*999999);return(E,C)=>{const A=R0,k=AJ,U=Qn,N=F0;return a.openBlock(),a.createBlock(U,{class:"amplify-flex amplify-field amplify-textfield amplify-phonenumberfield amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(A,a.mergeProps({for:"amplify-field-"+a.unref(g),class:["amplify-label",{"amplify-visually-hidden":a.unref(s)}]},E.$attrs),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)),1)]),_:1},16,["for","class"]),a.createVNode(U,{class:"amplify-flex amplify-field-group"},{default:a.withCtx(()=>[a.createVNode(U,{class:"amplify-field-group__outer-start"},{default:a.withCtx(()=>[e.type==="tel"?(a.openBlock(),a.createBlock(U,{key:0,class:"amplify-flex amplify-field amplify-selectfield amplify-countrycodeselect amplify-dialcodeselect amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(A,a.mergeProps({for:"amplify-field-"+a.unref(w),class:"amplify-label amplify-visually-hidden"},E.$attrs),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString("Country Code"))]),_:1},16,["for"]),a.createVNode(U,{class:"amplify-select__wrapper"},{default:a.withCtx(()=>[a.createVNode(k,{class:"amplify-select amplify-field-group__control",id:"amplify-field-"+a.unref(w),autocomplete:"tel-country-code","aria-label":"country code",name:"country_code",options:a.unref(f),"select-value":a.unref(h)},null,8,["id","options","select-value"]),a.createVNode(U,{class:"amplify-flex amplify-select__icon-wrapper amplify-authenticator__icon-wrapper"},{default:a.withCtx(()=>[TJ]),_:1})]),_:1})]),_:1})):a.createCommentVNode("",!0)]),_:1}),a.createVNode(U,{class:"amplify-field-group__field-wrapper"},{default:a.withCtx(()=>{var R;return[a.createVNode(N,{class:"amplify-input amplify-field-group__control",id:"amplify-field-"+a.unref(g),autocomplete:a.unref(i),name:a.unref(r),required:(R=a.unref(l))!=null?R:!0,type:e.type,placeholder:a.unref(o),"aria-invalid":e.hasError,"aria-describedBy":e.describedBy},null,8,["id","autocomplete","name","required","type","placeholder","aria-invalid","aria-describedBy"])]}),_:1})]),_:1})]),_:1})}}}),kJ=["id"],PJ=a.defineComponent({__name:"base-form-field",props:{name:{default:""},formField:{default:()=>({})}},setup(e){const t=e,{name:n,formField:r}=a.toRefs(t),{validationErrors:o}=a.toRefs(sr()),{type:i}=r.value,s=i==="password",l=mJ(12),h=a.computed(()=>bM(o.value[n.value])),f=a.computed(()=>{var w;return((w=h.value)==null?void 0:w.length)>0}),g=a.computed(()=>f.value?l:void 0);return(w,E)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[s?(a.openBlock(),a.createBlock(CJ,{key:0,name:a.unref(n),label:a.unref(r).label,placeholder:a.unref(r).placeholder,required:a.unref(r).isRequired,"label-hidden":a.unref(r).labelHidden,autocomplete:a.unref(r).autocomplete,hasError:a.unref(f),describedBy:a.unref(g)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","hasError","describedBy"])):(a.openBlock(),a.createBlock(IJ,{key:1,name:a.unref(n),label:a.unref(r).label,placeholder:a.unref(r).placeholder,required:a.unref(r).isRequired,"label-hidden":a.unref(r).labelHidden,autocomplete:a.unref(r).autocomplete,"dial-code":a.unref(r).dialCode,"dial-code-list":a.unref(r).dialCodeList,type:a.unref(r).type,hasError:a.unref(f),describedBy:a.unref(g)},null,8,["name","label","placeholder","required","label-hidden","autocomplete","dial-code","dial-code-list","type","hasError","describedBy"])),a.unref(f)?(a.openBlock(),a.createElementBlock("div",{key:2,id:a.unref(g)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(h),(C,A)=>(a.openBlock(),a.createElementBlock("p",{key:A,role:"alert","data-variation":"error",class:"amplify-text amplify-text--error"},a.toDisplayString(a.unref(it)(C)),1))),128))],8,kJ)):a.createCommentVNode("",!0)],64))}}),co=a.defineComponent({__name:"base-form-fields",props:{route:null},setup(e){const t=e,{route:n}=a.toRefs(t),{state:r}=D0();let o=[];return a.onBeforeMount(()=>{o=VM(n.value,r.value)}),(i,s)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),([l,h])=>(a.openBlock(),a.createBlock(PJ,{name:l,key:l,formField:h},null,8,["name","formField"]))),128))}}),Ad=a.defineComponent({__name:"federated-sign-in-button",props:{provider:null},setup(e){const t=e,{provider:n}=a.toRefs(t),{toFederatedSignIn:r}=sr(),o=()=>{r({provider:n.value})};return(i,s)=>{const l=Qn,h=Wr;return a.openBlock(),a.createBlock(h,{class:"amplify-field-group__control federated-sign-in-button amplify-authenticator__font",fullwidth:!1,style:{"font-weight":"normal"},type:"button",onClick:o},{default:a.withCtx(()=>[a.createVNode(l,{class:"amplify-flex federated-sign-in-button-row amplify-authenticator__sign-in-button-wrapper"},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default")]),_:3})]),_:3})}}}),NJ=a.createElementVNode("svg",{"aria-label":"Amazon icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 248 268"},[a.createElementVNode("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C2
97717.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",fill:"#FF9900"})],-1),DJ={class:"amplify-text amplify-authenticator__federated-text"},FJ=a.createElementVNode("svg",{"aria-label":"Apple icon",class:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})],-1),RJ={class:"amplify-text amplify-authenticator__federated-text"},BJ=a.createElementVNode("svg",{"aria-label":"Facebook icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 279 538"},[a.createElementVNode("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"})],-1),OJ={class:"amplify-text amplify-authenticator__federated-text"},UJ=a.createElementVNode("svg",{"aria-label":"Google icon",class:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},[a.createElementVNode("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),a.createElementVNode("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),a.createElementVNode("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),a.createElementVNode("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})],-1),$J={class:"amplify-text amplify-authenticator__federated-text"},MJ=["data-label"],nC=a.defineComponent({__name:"federated-sign-in",setup(e){const t=sr(),{route:n,socialProviders:r}=t,o=r==null?void 0:r.includes("amazon"),i=r==null?void 0:r.includes("apple"),s=r==null?void 0:r.includes("facebook"),l=r==null?void 0:r.includes("google"),h=s||l||o||i,{getSignInWithFederationText:f,getOrText:g}=qr,w=a.computed(()=>Im),E=a.computed(()=>f(n,"amazon")),C=a.computed(()=>f(n,"apple")),A=a.computed(()=>f(n,"facebook")),k=a.computed(()=>f(n,"google")),U=a.computed(()=>g());return(N,R)=>{const L=Qn;return a.unref(h)?(a.openBlock(),a.createBlock(L,{key:0,class:"amplify-flex federated-sign-in-container amplify-authenticator__column amplify-authenticator__sign-in-base"},{default:a.withCtx(()=>[a.unref(o)?(a.openBlock(),a.createBlock(Ad,{key:0,provider:a.unref(w).Amazon},{default:a.withCtx(()=>[NJ,a.createElementVNode("p",DJ,a.toDisplayString(a.unref(E)),1)]),_:1},8,["provider"])):a.createCommentVNode("",!0),a.unref(i)?(a.openBlock(),a.createBlock(Ad,{key:1,provider:a.unref(w).Apple},{default:a.withCtx(()=>[FJ,a.createElementVNode("p",RJ,a.toDisplayString(a.unref(C)),1)]),_:1},8,["provider"])):a.createCommentVNode("",!0),a.unref(s)?(a.openBlock(),a.createBlock(Ad,{key:2,provider:a.unref(w).Facebook},{default:a.withCtx(()=>[BJ,a.createElementVNode("p",OJ,a.toDisplayString(a.unref(A)),1)]),_:1},8,["provider"])):a.createCommentVNode("",!0),a.unref(l)?(a.openBlock(),a.createBlock(Ad,{key:3,provider:a.unref(w).Google},{default:a.withCtx(()=>[UJ,a.createElementVNode("p",$J,a.toDisplayString(a.unref(k)),1)]),_:1},8,["provider"])):a.createCommentVNode("",!0),a.createElementVNode("hr",{class:"amplify-divider amplify-divider--label amplify-divider--small","aria-orientation":"horizontal","data-size":"small","data-label":a.unref(U)},null,8,MJ)]),_:1})):a.createCommentVNode("",!0)}}}),LJ=a.createElementVNode("legend",{class:"amplify-visually-hidden"},"Sign in",-1),VJ={"data-amplify-footer":""},jJ=a.defineComponent({__name:"sign-in",emits:["signInSubmit","forgotPasswordCl
977icked","createAccountClicked"],setup(e,{emit:t}){const n=sr(),{submitForm:r,updateForm:o,toResetPassword:i}=n,{error:s,isPending:l}=a.toRefs(n),h=a.useAttrs(),{getForgotPasswordText:f,getSignInText:g,getSigningInText:w}=qr,E=a.computed(()=>f()),C=a.computed(()=>g()),A=a.computed(()=>w()),k=R=>{const{name:L,value:z}=R.target;o({name:L,value:z})},U=R=>{h!=null&&h.onSignInSubmit?t("signInSubmit",R):r(Ti(R))},N=()=>{h!=null&&h.onForgotPasswordClicked?t("forgotPasswordClicked"):i()};return(R,L)=>{const z=Ni,W=Pi,ee=Wr,b=Qn,fe=Ai,ae=xi;return a.renderSlot(R.$slots,"signInSlotI",a.normalizeProps(a.guardReactiveProps(R.$attrs)),()=>[a.renderSlot(R.$slots,"header"),a.createVNode(b,a.normalizeProps(a.guardReactiveProps(R.$attrs)),{default:a.withCtx(()=>[a.createVNode(fe,{"data-amplify-authenticator-signin":"",onInput:k,onSubmit:a.withModifiers(U,["prevent"]),method:"post"},{formt:a.withCtx(({slotData:Ie})=>[a.renderSlot(R.$slots,"form",{info:Ie,onSignInSubmit:U,onInput:k,onForgotPasswordClicked:N})]),default:a.withCtx(()=>[a.createVNode(nC),a.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(z,{disabled:a.unref(l),class:"amplify-flex amplify-authenticator__column"},{fieldSetI:a.withCtx(({slotData:Ie})=>[a.renderSlot(R.$slots,"signin-fields",{info:Ie})]),default:a.withCtx(()=>[LJ,a.createVNode(co,{route:"signIn"})]),_:3},8,["disabled"]),a.unref(s)?(a.openBlock(),a.createBlock(W,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(s))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(ee,{disabled:a.unref(l),class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)?a.unref(A):a.unref(C)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),a.createVNode(ae,null,{default:a.withCtx(()=>[a.renderSlot(R.$slots,"footer",{},()=>[a.createElementVNode("div",VJ,[a.createVNode(ee,{onClick:N,class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!0,size:"small",style:{"font-weight":"normal"},type:"button"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(E)),1)]),_:1})])])]),_:3})])}}}),zJ=a.defineComponent({__name:"authenticator-sign-up-form-fields",setup(e){return(t,n)=>(a.openBlock(),a.createBlock(co,{route:"signUp"}))}}),HJ=a.defineComponent({__name:"sign-up",emits:["signUpSubmit"],setup(e,{emit:t}){const n=sr(),{submitForm:r,updateBlur:o,updateForm:i}=n,{error:s,hasValidationErrors:l,isPending:h}=a.toRefs(n),f=a.useAttrs(),{getCreateAccountText:g}=qr,w=a.computed(()=>g()),E=k=>{let{checked:U,name:N,type:R,value:L}=k.target;i({name:N,value:R==="checkbox"&&!U?void 0:L})};function C(k){const{name:U}=k.target;o({name:U})}const A=k=>{f!=null&&f.onSignUpSubmit?t("signUpSubmit",k):r(Ti(k))};return(k,U)=>{const N=Ni,R=Pi,L=Wr,z=Qn,W=Ai,ee=xi;return a.renderSlot(k.$slots,"signUpSlotI",a.normalizeProps(a.guardReactiveProps(k.$attrs)),()=>[a.renderSlot(k.$slots,"header"),a.createVNode(z,a.normalizeProps(a.guardReactiveProps(k.$attrs)),{default:a.withCtx(()=>[a.createVNode(W,{onInput:E,onBlurCapture:C,onSubmit:a.withModifiers(A,["prevent"])},{default:a.withCtx(()=>[a.createVNode(nC),a.createVNode(z,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(N,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(h)},{fieldSetI:a.withCtx(({slotData:b})=>[a.renderSlot(k.$slots,"signup-fields",{info:b})]),default:a.withCtx(()=>[a.createVNode(zJ)]),_:3},8,["disabled"]),a.unref(s)?(a.openBlock(),a.createBlock(R,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(s))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(L,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!0,loading:!1,variation:"primary",style:{"border-radius":"0px","font-weight":"normal"},disabled:a.unref(h)||a.unref(l)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(w)),1)]),_:1},8,["disabled"])]),_:3})]),_:3},8,["onSubmit"])]),_:3},16),a.createVNode(ee,null,{default:a.withCtx(()=>[a.renderSlot(k.$slots,"footer")]),_:3})])}}}),GJ={};function WJ(e,t){const n=Qn;return a.openBlock(),a.createBlock(n,{tabindex:"0","aria-orientation":"horizontal","data-orientation":"horizontal",class:"amplify-authenticator__tabs",role:"tablist"},{default:a.withCtx(()=>[a.createVNode(n,{class:"amplify-flex amplify-tabs amplify-authenticator__tabs-wrapper","data-indicator-position":"top"},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3})]),_:3})}var qJ=jf(GJ,[["render",WJ]]);const KJ=a.defineComponent({__name:"base-two-tab-item",props:{label:null,id:null,active:{type:Boolean,default:!1}},setup(e){const t=e,{active:n,id:r,label:o}=a.toRefs(t);return(i,s)=>{const l=Qn;return a.openBlock(),a.createBlock(l,{tabindex:a.unref(n)?0:-1,"data-state":a.unref(n)?"active":"inactive","aria-selected":a.unref(n)?"true":"false","aria-controls":`radix-id-${a.unref(r)}-8-content-0`,id:`radix-id-${a.unref(r)}-8-trigger-0`,"data-orientation":"horizontal",role:"tab",class:"amplify-tabs-item","data-spacing":"equal","data-radix-collection-item":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(o)),1)]),_:1},8,["tabindex","data-state","aria-selected","aria-controls","id"])}}}),YJ="3.1.29",JJ={};function XJ(e,t){return a.renderSlot(e.$slots,"textI",a.normalizeProps(a.guardReactiveProps(e.$attrs)),()=>[a.createElementVNode("span",a.mergeProps(e.$attrs,{"data-amplify-text":""}),[a.renderSlot(e.$slots,"default")],16)])}var rC=jf(JJ,[["render",XJ]]);const Wo=a.defineComponent({props:{level:{type:Number,default:1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n}){var r,o;const i=t.default?t.default():[],s=t.headingI?t.headingI():[],l=`${n.class||""} amplify-heading--${e.level}`;if(((o=(r=s[0])==null?void 0:r.children)==null?void 0:o.length)===0)s[0].children=[a.h(`h${e.level}`,{...n,class:l},[i])];else return()=>a.h(`h${e.level}`,{"data-amplify-heading":"",...n,class:l},[s[0]?a.h(s[0].children[0]):a.h(i[0])]);return()=>s}}),ZJ=a.defineComponent({__name:"confirm-sign-up",emits:["confirmSignUpSubmit","lostCodeClicked"],setup(e,{emit:t}){const n=a.useAttrs(),r=sr(),{codeDeliveryDetails:o,error:i,isPending:s}=a.toRefs(r),{resendCode:l,submitForm:h,updateForm:f}=r,{getDeliveryMethodText:g,getDeliveryMessageText:w,getResendCodeText:E,getConfirmText:C}=qr,A=a.computed(()=>g(o.value)),k=a.computed(()=>E()),U=a.computed(()=>C()),N=a.computed(()=>w(o.value)),R=ee=>{const{name:b,value:fe}=ee.target;f({name:b,value:fe})},L=ee=>{n!=null&&n.onConfirmSignUpSubmit?t("confirmSignUpSubmit",ee):z(ee)},z=ee=>{h(Ti(ee))},W=()=>{n!=null&&n.onLostCodeClicked?t("lostCodeClicked"):l()};return(ee,b)=>{const fe=Wo,ae=rC,Ie=Ni,xe=Pi,De=Wr,ye=xi,je=Qn,rt=Ai;return a.renderSlot(ee.$slots,"confirmSignUpSlotI",a.normalizeProps(a.guardReactiveProps(ee.$attrs)),()=>[a.createVNode(je,a.normalizeProps(a.guardReactiveProps(ee.$attrs)),{default:a.withCtx(()=>[a.createVNode(rt,{onInput:R,onSubmit:a.withModifiers(L,["prevent"])},{default:a.withCtx(()=>[a.createVNode(je,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.renderSlot(ee.$slots,"header",{},()=>[a.createVNode(fe,{class:"amplify-heading amplify-authenticator__heading",level:3},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(A)),1)]),_:1})]),a.createVNode(ae,{class:"amplify-authenticator__subtitle"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(N)),1)]),_:1}),a.createVNode(Ie,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(s)},{default:a.withCtx(()=>[a.createVNode(co,{route:"confirmSignUp"})]),_:1},8,["disabled"]),a.createVNode(ye,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(i)?(a.openBlock(),a.createBlock(xe,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(i))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(De,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:a.unref(s)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(U)),1)]),_:1},8,["disabled"]),a.createVNode(De,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"default",style:{"font-weight":"normal"},type:"button",onClick:a.withModifiers(W,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(k)),1)]),_:1},8,["onClick"]),a.renderSlot(ee.$slots,"footer",{onConfirmSignUpSubmit:L,onLostCodeClicked:W})]),_:3})]),_:3})]),_:3},8,["onSubmit"])]),_:3},16)])}}}),QJ=a.defineComponent({__name:"confirm-sign-in",emits:["confirmSignInSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=a.useAttrs(),r=sr(),{submitForm:o,toSignIn:i,updateForm:s}=r,{user:l,error:h,isPending:f}=a.toRefs(r),g=a.computed(()=>l.value.challengeName),{getBackToSignInText:w,getConfirmText:E,getChallengeText:C}=qr,A=a.computed(()=>C(g.value)),k=a.computed(()=>w()),U=a.computed(()=>E()),N=z=>{const{name:W,value:ee}=z.target;s({name:W,value:ee})},R=z=>{n!=null&&n.onConfirmSignInSubmit?t("confirmSignInSubmit",z):o(Ti(z))},L=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i()};return(z,W)=>{const ee=Wo,b=Qn,fe=Pi,ae=Wr,Ie=xi,xe=Ni,De=Ai;return a.renderSlot(z.$slots,"confirmSignInSlotI",a.normalizeProps(a.guardReactiveProps(z.$attrs)),()=>[a.createVNode(b,a.normalizeProps(a.guardReactiveProps(z.$attrs)),{default:a.withCtx(()=>[a.createVNode(De,{"data-amplify-authenticator-confirmsignin":"",onInput:N,onSubmit:a.withModifiers(R,["prevent"])},{default:a.withCtx(()=>[a.createVNode(xe,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(f)},{default:a.withCtx(()=>[a.renderSlot(z.$slots,"header",{},()=>[a.createVNode(ee,{level:3,class:"amplify-heading"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(A)),1)]),_:1})]),a.createVNode(b,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(co,{route:"confirmSignIn"})]),_:1}),a.createVNode(Ie,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(h)?(a.openBlock(),a.createBlock(fe,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(h))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(ae,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:a.unref(f)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(U)),1)]),_:1},8,["disabled"]),a.createVNode(ae,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:a.withModifiers(L,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(k)),1)]),_:1},8,["onClick"]),a.renderSlot(z.$slots,"footer",{onBackToSignInClicked:L,onConfirmSignInSubmit:R})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}});var kc={},eX=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},iC={},Nr={};let B0;const tX=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Nr.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},Nr.getSymbolTotalCodewords=function(t){return tX[t]},Nr.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},Nr.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');B0=t},Nr.isKanjiModeEnabled=function(){return typeof B0<"u"},Nr.toSJIS=function(t){return B0(t)};var Td={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};
vendor: 8,673 bytes, lines 977-978
977function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(Td);function oC(){this.buffer=[],this.length=0}oC.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var nX=oC;function Pc(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Pc.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},Pc.prototype.get=function(e,t){return this.data[e*this.size+t]},Pc.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},Pc.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var rX=Pc,aC={};(function(e){const t=Nr.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,i=t(r),s=i===145?26:Math.ceil((i-13)/(2*o-2))*2,l=[i-7];for(let h=1;h<o-1;h++)l[h]=l[h-1]-s;return l.push(6),l.reverse()},e.getPositions=function(r){const o=[],i=e.getRowColCoords(r),s=i.length;for(let l=0;l<s;l++)for(let h=0;h<s;h++)l===0&&h===0||l===0&&h===s-1||l===s-1&&h===0||o.push([i[l],i[h]]);return o}})(aC);var sC={};const iX=Nr.getSymbolSize,uC=7;sC.getPositions=function(t){const n=iX(t);return[[0,0],[n-uC,0],[0,n-uC]]};var cC={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},e.from=function(o){return e.isValid(o)?parseInt(o,10):void 0},e.getPenaltyN1=function(o){const i=o.size;let s=0,l=0,h=0,f=null,g=null;for(let w=0;w<i;w++){l=h=0,f=g=null;for(let E=0;E<i;E++){let C=o.get(w,E);C===f?l++:(l>=5&&(s+=t.N1+(l-5)),f=C,l=1),C=o.get(E,w),C===g?h++:(h>=5&&(s+=t.N1+(h-5)),g=C,h=1)}l>=5&&(s+=t.N1+(l-5)),h>=5&&(s+=t.N1+(h-5))}return s},e.getPenaltyN2=function(o){const i=o.size;let s=0;for(let l=0;l<i-1;l++)for(let h=0;h<i-1;h++){const f=o.get(l,h)+o.get(l,h+1)+o.get(l+1,h)+o.get(l+1,h+1);(f===4||f===0)&&s++}return s*t.N2},e.getPenaltyN3=function(o){const i=o.size;let s=0,l=0,h=0;for(let f=0;f<i;f++){l=h=0;for(let g=0;g<i;g++)l=l<<1&2047|o.get(f,g),g>=10&&(l===1488||l===93)&&s++,h=h<<1&2047|o.get(g,f),g>=10&&(h===1488||h===93)&&s++}return s*t.N3},e.getPenaltyN4=function(o){let i=0;const s=o.data.length;for(let h=0;h<s;h++)i+=o.data[h];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(r,o,i){switch(r){case e.Patterns.PATTERN000:return(o+i)%2===0;case e.Patterns.PATTERN001:return o%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(o+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return o*i%2+o*i%3===0;case e.Patterns.PATTERN110:return(o*i%2+o*i%3)%2===0;case e.Patterns.PATTERN111:return(o*i%3+(o+i)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(o,i){const s=i.size;for(let l=0;l<s;l++)for(let h=0;h<s;h++)i.isReserved(h,l)||i.xor(h,l,n(o,h,l))},e.getBestMask=function(o,i){const s=Object.keys(e.Patterns).length;let l=0,h=1/0;for(let f=0;f<s;f++){i(f),e.applyMask(f,o);const g=e.getPenaltyN1(o)+e.getPenaltyN2(o)+e.getPenaltyN3(o)+e.getPenaltyN4(o);e.applyMask(f,o),g<h&&(h=g,l=f)}return l}})(cC);var Id={};const qo=Td,kd=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Pd=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Id.getBlocksCount=function(t,n){switch(n){case qo.L:return kd[(t-1)*4+0];case qo.M:return kd[(t-1)*4+1];case qo.Q:return kd[(t-1)*4+2];case qo.H:return kd[(t-1)*4+3];default:return}},Id.getTotalCodewordsCount=function(t,n){switch(n){case qo.L:return Pd[(t-1)*4+0];case qo.M:return Pd[(t-1)*4+1];case qo.Q:return Pd[(t-1)*4+2];case qo.H:return Pd[(t-1)*4+3];default:return}};var lC={},Nd={};const Nc=new Uint8Array(512),Dd=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)Nc[n]=t,Dd[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)Nc[n]=Nc[n-255]})(),Nd.log=function(t){if(t<1)throw new Error("log("+t+")");return Dd[t]},Nd.exp=function(t){return Nc[t]},Nd.mul=function(t,n){return t===0||n===0?0:Nc[Dd[t]+Dd[n]]},function(e){const t=Nd;e.mul=function(r,o){const i=new Uint8Array(r.length+o.length-1);for(let s=0;s<r.length;s++)for(let l=0;l<o.length;l++)i[s+l]^=t.mul(r[s],o[l]);return i},e.mod=function(r,o){let i=new Uint8Array(r);for(;i.length-o.length>=0;){const s=i[0];for(let h=0;h<o.length;h++)i[h]^=t.mul(o[h],s);let l=0;for(;l<i.length&&i[l]===0;)l++;i=i.slice(l)}return i},e.generateECPolynomial=function(r){let o=new Uint8Array([1]);for(let i=0;i<r;i++)o=e.mul(o,new Uint8Array([1,t.exp(i)]));return o}}(lC);const fC=lC;function O0(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}O0.prototype.initialize=function(t){this.degree=t,this.genPoly=fC.generateECPolynomial(this.degree)},O0.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const r=fC.mod(n,this.genPoly),o=this.degree-r.length;if(o>0){const i=new Uint8Array(this.degree);return i.set(r,o),i}return r};var oX=O0,dC={},Ko={},U0={};U0.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var Di={};const hC="[0-9]+",aX="[A-Z $%*+\\-./:]+";let Dc="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Dc=Dc.replace(/u/g,"\\u");const sX="(?:(?![A-Z0-9 $%*+\\-./:]|"+Dc+`)(?:.|[\r
978]))+`;Di.KANJI=new RegExp(Dc,"g"),Di.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Di.BYTE=new RegExp(sX,"g"),Di.NUMERIC=new RegExp(hC,"g"),Di.ALPHANUMERIC=new RegExp(aX,"g");const uX=new RegExp("^"+Dc+"$"),cX=new RegExp("^"+hC+"$"),lX=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Di.testKanji=function(t){return uX.test(t)},Di.testNumeric=function(t){return cX.test(t)},Di.testAlphanumeric=function(t){return lX.test(t)},function(e){const t=U0,n=Di;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return n.testNumeric(i)?e.NUMERIC:n.testAlphanumeric(i)?e.ALPHANUMERIC:n.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(i,s){if(e.isValid(i))return i;try{return r(i)}catch{return s}}}(Ko),function(e){const t=Nr,n=Id,r=Td,o=Ko,i=U0,s=7973,l=t.getBCHDigit
vendor: 6,674 bytes, lines 978-979
978(s);function h(E,C,A){for(let k=1;k<=40;k++)if(C<=e.getCapacity(k,A,E))return k}function f(E,C){return o.getCharCountIndicator(E,C)+4}function g(E,C){let A=0;return E.forEach(function(k){const U=f(k.mode,C);A+=U+k.getBitsLength()}),A}function w(E,C){for(let A=1;A<=40;A++)if(g(E,A)<=e.getCapacity(A,C,o.MIXED))return A}e.from=function(C,A){return i.isValid(C)?parseInt(C,10):A},e.getCapacity=function(C,A,k){if(!i.isValid(C))throw new Error("Invalid QR Code version");typeof k>"u"&&(k=o.BYTE);const U=t.getSymbolTotalCodewords(C),N=n.getTotalCodewordsCount(C,A),R=(U-N)*8;if(k===o.MIXED)return R;const L=R-f(k,C);switch(k){case o.NUMERIC:return Math.floor(L/10*3);case o.ALPHANUMERIC:return Math.floor(L/11*2);case o.KANJI:return Math.floor(L/13);case o.BYTE:default:return Math.floor(L/8)}},e.getBestVersionForData=function(C,A){let k;const U=r.from(A,r.M);if(Array.isArray(C)){if(C.length>1)return w(C,U);if(C.length===0)return 1;k=C[0]}else k=C;return h(k.mode,k.getLength(),U)},e.getEncodedBits=function(C){if(!i.isValid(C)||C<7)throw new Error("Invalid QR Code version");let A=C<<12;for(;t.getBCHDigit(A)-l>=0;)A^=s<<t.getBCHDigit(A)-l;return C<<12|A}}(dC);var pC={};const $0=Nr,gC=1335,fX=21522,mC=$0.getBCHDigit(gC);pC.getEncodedBits=function(t,n){const r=t.bit<<3|n;let o=r<<10;for(;$0.getBCHDigit(o)-mC>=0;)o^=gC<<$0.getBCHDigit(o)-mC;return(r<<10|o)^fX};var yC={};const dX=Ko;function Js(e){this.mode=dX.NUMERIC,this.data=e.toString()}Js.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},Js.prototype.getLength=function(){return this.data.length},Js.prototype.getBitsLength=function(){return Js.getBitsLength(this.data.length)},Js.prototype.write=function(t){let n,r,o;for(n=0;n+3<=this.data.length;n+=3)r=this.data.substr(n,3),o=parseInt(r,10),t.put(o,10);const i=this.data.length-n;i>0&&(r=this.data.substr(n),o=parseInt(r,10),t.put(o,i*3+1))};var hX=Js;const pX=Ko,M0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Xs(e){this.mode=pX.ALPHANUMERIC,this.data=e}Xs.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},Xs.prototype.getLength=function(){return this.data.length},Xs.prototype.getBitsLength=function(){return Xs.getBitsLength(this.data.length)},Xs.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=M0.indexOf(this.data[n])*45;r+=M0.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(M0.indexOf(this.data[n]),6)};var gX=Xs,mX=function(t){for(var n=[],r=t.length,o=0;o<r;o++){var i=t.charCodeAt(o);if(i>=55296&&i<=56319&&r>o+1){var s=t.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){n.push(i);continue}if(i<2048){n.push(i>>6|192),n.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128);continue}if(i>=65536&&i<=1114111){n.push(i>>18|240),n.push(i>>12&63|128),n.push(i>>6&63|128),n.push(i&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const yX=mX,vX=Ko;function Zs(e){this.mode=vX.BYTE,this.data=new Uint8Array(yX(e))}Zs.getBitsLength=function(t){return t*8},Zs.prototype.getLength=function(){return this.data.length},Zs.prototype.getBitsLength=function(){return Zs.getBitsLength(this.data.length)},Zs.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var _X=Zs;const wX=Ko,bX=Nr;function Qs(e){this.mode=wX.KANJI,this.data=e}Qs.getBitsLength=function(t){return t*13},Qs.prototype.getLength=function(){return this.data.length},Qs.prototype.getBitsLength=function(){return Qs.getBitsLength(this.data.length)},Qs.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=bX.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
979Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var EX=Qs,vC={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,r,o){var i={},s={};s[r]=0;var l=t.PriorityQueue.make();l.push(r,0);for(var h,f,g,w,E,C,A,k,U;!l.empty();){h=l.pop(),f=h.value,w=h.cost,E=n[f]||{};for(g in E)E.hasOwnProperty(g)&&(C=E[g],A=w+C,k=s[g],U=typeof s[g]>"u",(U||k>A)&&(s[g]=A,l.push(g,A),i[g]=f))}if(typeof o<"u"&&typeof s[o]>"u"){var N=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(N)}return i},extract_shortest_path_from_predecessor_list:function(n,r){for(var o=[],i=r;i;)o.push(i),n[i],i=n[i];return o.reverse(),o},find_path:function(n,r,o){var i=t.single_source_shortest_paths(n,r,o);return t.extract_shortest_path_from_predecessor_list(i,o)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,o={},i;n=n||{};for(i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);return o.queue=[],o.sorter=n.sorter||r.default_sorter,o},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var o={value:n,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(vC),function(e){const t=Ko,n=hX,r=gX,o=_X,i=EX,s=Di,l=Nr,h=vC.exports;function f(N){return unescape(encodeURIComponent(N)).length}function g(N,R,L){const z=[];let W;for(;(W=N.exec(L))!==null;)z.push({data:W[0],index:W.index,mode:R,length:W[0].length});return z}function w(N){const R=g(s.NUMERIC,t.NUMERIC,N),L=g(s.ALPHANUMERIC,t.ALPHANUMERIC,N);let z,W;return l.isKanjiModeEnabled()?(z=g(s.BYTE,t.BYTE,N),W=g(s.KANJI,t.KANJI,N)):(z=g(s.BYTE_KANJI,t.BYTE,N),W=[]),R.concat(L,z,W).sort(function(b,fe){return b.index-fe.index}).map(function(b){return{data:b.data,mode:b.mode,length:b.length}})}function E(N,R){switch(R){case t.NUMERIC:return n.getBitsLength(N);case t.ALPHANUMERIC:return r.getBitsLength(N);case t.KANJI:return i.getBitsLength(N);case t.BYTE:return o.getBitsLength(N)}}function C(N){return N.reduce(function(R,L){const z=R.length-1>=0?R[R.length-1]:null;return z&&z.mode===L.mode?(R[R.length-1].data+=L.data,R):(R.push(L),R)},[])}function A(N){const R=[];for(let L=0;L<N.length;L++){const z=N[L];switch(z.mode){case t.NUMERIC:R.push([z,{data:z.data,mode:t.ALPHANUMERIC,length:z.length},{data:z.data,mode:t.BYTE,length:z.length}]);break;case t.ALPHANUMERIC:R.push([z,{data:z.data,mode:t.BYTE,length:z.length}]);break;case t.KANJI:R.push([z,{data:z.data,mode:t.BYTE,length:f(z.data)}]);break;case t.BYTE:R.push([{data:z.data,mode:t.BYTE,length:f(z.data)}])}}return R}function k(N,R){const L={},z={start:{}};let W=["start"];for(let ee=0;ee<N.length;ee++){const b=N[ee],fe=[];for(let ae=0;ae<b.length;ae++){const Ie=b[ae],xe=""+ee+ae;
vendor: 4,701 bytes, lines 979-983
979fe.push(xe),L[xe]={node:Ie,lastCount:0},z[xe]={};for(let De=0;De<W.length;De++){const ye=W[De];L[ye]&&L[ye].node.mode===Ie.mode?(z[ye][xe]=E(L[ye].lastCount+Ie.length,Ie.mode)-E(L[ye].lastCount,Ie.mode),L[ye].lastCount+=Ie.length):(L[ye]&&(L[ye].lastCount=Ie.length),z[ye][xe]=E(Ie.length,Ie.mode)+4+t.getCharCountIndicator(Ie.mode,R))}}W=fe}for(let ee=0;ee<W.length;ee++)z[W[ee]].end=0;return{map:z,table:L}}function U(N,R){let L;const z=t.getBestModeForData(N);if(L=t.from(R,z),L!==t.BYTE&&L.bit<z.bit)throw new Error('"'+N+'" cannot be encoded with mode '+t.toString(L)+`.
980 Suggested mode is: `+t.toString(z));switch(L===t.KANJI&&!l.isKanjiModeEnabled()&&(L=t.BYTE),L){case t.NUMERIC:return new n(N);case t.ALPHANUMERIC:return new r(N);case t.KANJI:return new i(N);case t.BYTE:return new o(N)}}e.fromArray=function(R){return R.reduce(function(L,z){return typeof z=="string"?L.push(U(z,null)):z.data&&L.push(U(z.data,z.mode)),L},[])},e.fromString=function(R,L){const z=w(R,l.isKanjiModeEnabled()),W=A(z),ee=k(W,L),b=h.find_path(ee.map,"start","end"),fe=[];for(let ae=1;ae<b.length-1;ae++)fe.push(ee.table[b[ae]].node);return e.fromArray(C(fe))},e.rawSplit=function(R){return e.fromArray(w(R,l.isKanjiModeEnabled()))}}(yC);const Fd=Nr,L0=Td,SX=nX,CX=rX,xX=aC,AX=sC,V0=cC,j0=Id,TX=oX,Rd=dC,IX=pC,kX=Ko,z0=yC;function PX(e,t){const n=e.size,r=AX.getPositions(t);for(let o=0;o<r.length;o++){const i=r[o][0],s=r[o][1];for(let l=-1;l<=7;l++)if(!(i+l<=-1||n<=i+l))for(let h=-1;h<=7;h++)s+h<=-1||n<=s+h||(l>=0&&l<=6&&(h===0||h===6)||h>=0&&h<=6&&(l===0||l===6)||l>=2&&l<=4&&h>=2&&h<=4?e.set(i+l,s+h,!0,!0):e.set(i+l,s+h,!1,!0))}}function NX(e){const t=e.size;for(let n=8;n<t-8;n++){const r=n%2===0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}function DX(e,t){const n=xX.getPositions(t);for(let r=0;r<n.length;r++){const o=n[r][0],i=n[r][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?e.set(o+s,i+l,!0,!0):e.set(o+s,i+l,!1,!0)}}function FX(e,t){const n=e.size,r=Rd.getEncodedBits(t);let o,i,s;for(let l=0;l<18;l++)o=Math.floor(l/3),i=l%3+n-8-3,s=(r>>l&1)===1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function H0(e,t,n){const r=e.size,o=IX.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function RX(e,t){const n=e.size;let r=-1,o=n-1,i=7,s=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let h=0;h<2;h++)if(!e.isReserved(o,l-h)){let f=!1;s<t.length&&(f=(t[s]>>>i&1)===1),e.set(o,l-h,f),i--,i===-1&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}function BX(e,t,n){const r=new SX;n.forEach(function(h){r.put(h.mode.bit,4),r.put(h.getLength(),kX.getCharCountIndicator(h.mode,e)),h.write(r)});const o=Fd.getSymbolTotalCodewords(e),i=j0.getTotalCodewordsCount(e,t),s=(o-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const l=(s-r.getLengthInBits())/8;for(let h=0;h<l;h++)r.put(h%2?17:236,8);return OX(r,e,t)}function OX(e,t,n){const r=Fd.getSymbolTotalCodewords(t),o=j0.getTotalCodewordsCount(t,n),i=r-o,s=j0.getBlocksCount(t,n),l=r%s,h=s-l,f=Math.floor(r/s),g=Math.floor(i/s),w=g+1,E=f-g,C=new TX(E);let A=0;const k=new Array(s),U=new Array(s);let N=0;const R=new Uint8Array(e.buffer);for(let b=0;b<s;b++){const fe=b<h?g:w;k[b]=R.slice(A,A+fe),U[b]=C.encode(k[b]),A+=fe,N=Math.max(N,fe)}const L=new Uint8Array(r);let z=0,W,ee;for(W=0;W<N;W++)for(ee=0;ee<s;ee++)W<k[ee].length&&(L[z++]=k[ee][W]);for(W=0;W<E;W++)for(ee=0;ee<s;ee++)L[z++]=U[ee][W];return L}function UX(e,t,n,r){let o;if(Array.isArray(e))o=z0.fromArray(e);else if(typeof e=="string"){let f=t;if(!f){const g=z0.rawSplit(e);f=Rd.getBestVersionForData(g,n)}o=z0.fromString(e,f||40)}else throw new Error("Invalid data");const i=Rd.getBestVersionForData(o,n);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
981The chosen QR Code version cannot contain this amount of data.
982Minimum version required to store current data is: `+i+`.
983`);const s=BX(t,n,o),l=Fd.getSymbolSize(t),h=new CX(l);return PX(h,t),NX(h),DX(h,t),H0(h,n,0),t>=7&&FX(h,t),RX(h,s),isNaN(r)&&(r=V0.getBestMask(h,H0.bind(null,h,n))),V0.applyMask(r,h),H0(h,n,r),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}iC.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let r=L0.M,o,i;return typeof n<"u"&&(r=L0.from(n.errorCorrectionLevel,L0.M),o=Rd.from(n.version),i=V0.from(n.maskPattern),n.toSJISFunc&&Fd.setToSJISFunction(n.toSJISFunc)),UX(t,o,r,i)};var _C={},G0={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="str
983ing")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(i){return[i,i]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,i=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:i,scale:i?4:s,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const i=e.getScale(r,o);return Math.floor((r+o.margin*2)*i)},e.qrToImageData=function(r,o,i){const s=o.modules.size,l=o.modules.data,h=e.getScale(s,i),f=Math.floor((s+i.margin*2)*h),g=i.margin*h,w=[i.color.light,i.color.dark];for(let E=0;E<f;E++)for(let C=0;C<f;C++){let A=(E*f+C)*4,k=i.color.light;if(E>=g&&C>=g&&E<f-g&&C<f-g){const U=Math.floor((E-g)/h),N=Math.floor((C-g)/h);k=w[l[U*s+N]?1:0]}r[A++]=k.r,r[A++]=k.g,r[A++]=k.b,r[A]=k.a}}})(G0),function(e){const t=G0;function n(o,i,s){o.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,s,l){let h=l,f=s;typeof h>"u"&&(!s||!s.getContext)&&(h=s,s=void 0),s||(f=r()),h=t.getOptions(h);const g=t.getImageWidth(i.modules.size,h),w=f.getContext("2d"),E=w.createImageData(g,g);return t.qrToImageData(E.data,i,h),n(w,f,g),w.putImageData(E,0,0),f},e.renderToDataURL=function(i,s,l){let h=l;typeof h>"u"&&(!s||!s.getContext)&&(h=s,s=void 0),h||(h={});const f=e.render(i,s,h),g=h.type||"image/png",w=h.rendererOpts||{};return f.toDataURL(g,w.quality)}}(_C);var wC={};const $X=G0;function bC(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function W0(e,t,n){let r=e+t;return typeof n<"u"&&(r+=" "+n),r}function MX(e,t,n){let r="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const h=Math.floor(l%t),f=Math.floor(l/t);!h&&!i&&(i=!0),e[l]?(s++,l>0&&h>0&&e[l-1]||(r+=i?W0("M",h+n,.5+f+n):W0("m",o,0),o=0,i=!1),h+1<t&&e[l+1]||(r+=W0("h",s),s=0)):o++}return r}wC.render=function(t,n,r){const o=$X.getOptions(n),i=t.modules.size,s=t.modules.data,l=i+o.margin*2,h=o.color.light.a?"<path "+bC(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",f="<path "+bC(o.color.dark,"stroke")+' d="'+MX(s,i,o.margin)+'"/>',g='viewBox="0 0 '+l+" "+l+'"',E='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+g+' shape-rendering="crispEdges">'+h+f+`</svg>
984`;return typeof r=="function"&&r(null,E),E};const LX=eX,q0=iC,EC=_C,VX=wC;function K0(e,t,n,r,o){const i=[].slice.call(arguments,1),s=i.length,l=typeof i[s-1]=="function";if(!l&&!LX())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(o=n,n=t,t=r=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(n=t,t=r=void 0):s===2&&!t.getContext&&(r=n,n=t,t=void 0),new Promise(function(h,f){try{const g=q0.create(n,r);h(e(g,t,r))}catch(g){f(g)}})}try{const h=q0.create(n,r);o(null,e(h,t,r))}catch(h){o(h)}}kc.create=q0.create,kc.toCanvas=K0.bind(null,EC.render),kc.toDataURL=K0.bind(null,EC.renderToDataURL),kc.toString=K0.bind(null,function(e,t,n){return VX.render(e,n)});const jX={key:0},zX=["src"],HX={"data-amplify-copy-tooltip":""},GX=a.createElementVNode("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})],-1),WX=a.defineComponent({__name:"setup-totp",emits:["confirmSetupTOTPSubmit","backToSignInClicked"],setup(e,{emit:t}){var n;const r=new vr("SetupTOTP-logger"),o=sr(),{updateForm:i,submitForm:s,toSignIn:l}=o,{error:h,isPending:f,QRFields:g,totpSecretCode:w,user:E}=a.toRefs(o),C=a.useAttrs(),{totpIssuer:A="AWSCognito",totpUsername:k=E.value.username}=(n=g.value)!=null?n:{},U=w.value&&k?DM(A,k,w.value):null,N=a.reactive({qrCodeImageSource:"",isLoading:!0}),{getCopyText:R,getCopiedText:L,getBackToSignInText:z,getConfirmText:W}=qr,ee=a.ref(R());function b(){w.value&&navigator.clipboard.writeText(w.value),ee.value=L()}a.onMounted(async()=>
984{if(!(!E.value||!U))try{N.qrCodeImageSource=await kc.toDataURL(U)}catch(ye){r.error(ye)}finally{N.isLoading=!1}});const fe=a.computed(()=>z()),ae=a.computed(()=>W()),Ie=ye=>{const{name:je,value:rt}=ye.target;i({name:je,value:rt})},xe=ye=>{C!=null&&C.onConfirmSetupTOTPSubmit?t("confirmSetupTOTPSubmit",ye):s(Ti(ye))},De=()=>{C!=null&&C.onBackToSignInClicked?t("backToSignInClicked"):l()};return(ye,je)=>{const rt=Wo,ot=Qn,Je=Pi,dt=Wr,mt=xi,Ue=Ni,ne=Ai;return a.renderSlot(ye.$slots,"confirmSetupTOTPI",a.normalizeProps(a.guardReactiveProps(ye.$attrs)),()=>[a.createVNode(ot,a.normalizeProps(a.guardReactiveProps(ye.$attrs)),{default:a.withCtx(()=>[a.createVNode(ne,{"data-amplify-authenticator-setup-totp":"",onInput:Ie,onSubmit:a.withModifiers(xe,["prevent"])},{default:a.withCtx(()=>[a.createVNode(Ue,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(f)},{default:a.withCtx(()=>[a.createVNode(ot,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.renderSlot(ye.$slots,"header",{},()=>[a.createVNode(rt,{class:"amplify-heading",level:3},{default:a.withCtx(()=>[a.createTextVNode(" Setup TOTP ")]),_:1})]),a.createVNode(ot,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[N.isLoading?(a.openBlock(),a.createElementBlock("p",jX,"Loading...")):(a.openBlock(),a.createElementBlock("img",{key:1,class:"amplify-image","data-amplify-qrcode":"",src:N.qrCodeImageSource,alt:"qr code",width:"228",height:"228"},null,8,zX)),a.createVNode(ot,{class:"amplify-flex","data-amplify-copy":""},{default:a.withCtx(()=>[a.createElementVNode("div",null,a.toDisplayString(a.unref(w)),1),a.createVNode(ot,{"data-amplify-copy-svg":"",onClick:b},{default:a.withCtx(()=>[a.createElementVNode("div",HX,a.toDisplayString(ee.value),1),GX]),_:1})]),_:1}),a.createVNode(co,{route:"setupTOTP"})]),_:1}),a.createVNode(mt,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(h)?(a.openBlock(),a.createBlock(Je,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(h))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(dt,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",type:"submit",disabled:a.unref(f)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(ae)),1)]),_:1},8,["disabled"]),a.createVNode(dt,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:a.withModifiers(De,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(fe)),1)]),_:1},8,["onClick"]),a.renderSlot(ye.$slots,"footer",{onBackToSignInClicked:De,onSetupTOTPSubmit:xe})]),_:3})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),qX=a.defineComponent({__name:"authenticator-force-new-password-form-fields",setup(e){return(t,n)=>(a.openBlock(),a.createBlock(co,{route:"forceNewPassword"}))}}),KX=a.defineComponent({__name:"force-new-password",emits:["haveAccountClicked","forceNewPasswordSubmit"],setup(e,{emit:t}){const n=a.useAttrs(),r=sr(),{submitForm:o,toSignIn:i,updateBlur:s,updateForm:l}=r,{error:h,isPending:f}=a.toRefs(r),{getChangePasswordText:g,getChangingText:w,getBackToSignInText:E}=qr,C=a.computed(()=>g()),A=a.computed(()=>w()),k=a.computed(()=>E()),U=()=>{n!=null&&n.onHaveAccountClicked?t("haveAccountClicked"):i()},N=W=>{n!=null&&n.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",W):R(W)},R=W=>{o(Ti(W))},L=W=>{const{name:ee,value:b}=W.target;l({name:ee,value:b})};function z(W){const{name:ee}=W.target;s({name:ee})}return(W,ee)=>{const b=Wo,fe=Qn,ae=Pi,Ie=Wr,xe=xi,De=Ni,ye=Ai;return a.renderSlot(W.$slots,"forceNewPasswordI",a.normalizeProps(a.guardReactiveProps(W.$attrs)),()=>[a.createVNode(fe,a.normalizeProps(a.guardReactiveProps(W.$attrs)),{default:a.withCtx(()=>[a.createVNode(ye,{"data-amplify-authenticator-forcenewpassword":"",onInput:L,onBlurCapture:z,onSubmit:a.withModifiers(N,["prevent"])},{default:a.withCtx(()=>[a.createVNode(De,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(f)},{default:a.withCtx(()=>[a.renderSlot(W.$slots,"header",{},()=>[a.createVNode(b,{level:3,class:"amplify-heading"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(C)),1)]),_:1})]),a.createVNode(fe,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.renderSlot(W.$slots,"force-new-password-form-fields",{},()=>[a.createVNode(qX)])]),_:3}),a.createVNode(xe,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(h)?(a.openBlock(),a.createBlock(ae,{key:0,"data-ui-error":""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(h))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(Ie,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,loading:!1,variation:"primary",style:{"font-weight":"normal"},disabled:a.unref(f)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(f)?a.unref(A)+"…":a.unref(C)),1)]),_:1},8,["disabled"]),a.createVNode(Ie,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:a.withModifiers(U,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(k)),1)]),_:1},8,["onClick"]),a.renderSlot(W.$slots,"footer",{onHaveAccountClicked:U,onForceNewPasswordSubmit:N})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),YX=a.defineComponent({__name:"reset-password",emits:["resetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=a.useAttrs(),r=sr(),{submitForm:o,toSignIn:i,updateForm:s}=r,{error:l,isPending:h}=a.toRefs(r),{getBackToSignInText:f,getResetYourPasswordText:g,getSendCodeText:w}
984=qr,E=a.computed(()=>f()),C=a.computed(()=>g()),A=a.computed(()=>w()),k=R=>{n!=null&&n.onResetPasswordSubmit?t("resetPasswordSubmit",R):o(Ti(R))},U=R=>{const{name:L,value:z}=R.target;s({name:L,value:z})},N=()=>{n!=null&&n.onBackToSignInClicked?t("backToSignInClicked"):i()};return(R,L)=>{const z=Wo,W=Ni,ee=Pi,b=Wr,fe=xi,ae=Qn,Ie=Ai;return a.renderSlot(R.$slots,"resetPasswordSlotI",a.normalizeProps(a.guardReactiveProps(R.$attrs)),()=>[a.createVNode(Ie,a.mergeProps(R.$attrs,{"data-amplify-authenticator-resetpassword":"",onInput:U,onSubmit:a.withModifiers(k,["prevent"])}),{default:a.withCtx(()=>[a.createVNode(ae,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.renderSlot(R.$slots,"header",{},()=>[a.createVNode(z,{class:"amplify-heading",level:3},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(C)),1)]),_:1})]),a.createVNode(W,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(h)},{default:a.withCtx(()=>[a.createVNode(co,{route:"resetPassword"})]),_:1},8,["disabled"]),a.createVNode(fe,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(l)?(a.openBlock(),a.createBlock(ee,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(l))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:a.unref(h)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(A)),1)]),_:1},8,["disabled"]),a.createVNode(b,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:a.withModifiers(N,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(E)),1)]),_:1},8,["onClick"]),a.renderSlot(R.$slots,"footer",{onBackToSignInClicked:N,onResetPasswordSubmit:k})]),_:3})]),_:3})]),_:3},16,["onSubmit"])])}}}),JX=a.defineComponent({__name:"confirm-reset-password",emits:["confirmResetPasswordSubmit","backToSignInClicked"],setup(e,{emit:t}){const n=sr(),{resendCode:r,submitForm:o,updateBlur:i,updateForm:s}=n,{error:l,isPending:h}=a.toRefs(n),f=a.useAttrs(),{getResendCodeText:g,getResetYourPasswordText:w,getSubmitText:E}=qr,C=a.computed(()=>g()),A=a.computed(()=>w()),k=a.computed(()=>E()),U=W=>{f!=null&&f.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",W):N(W)},N=W=>{o(Ti(W))},R=()=>{r()},L=W=>{const{name:ee,value:b}=W.target;s({name:ee,value:b})};function z(W){const{name:ee}=W.target;i({name:ee})}return(W,ee)=>{const b=Wo,fe=Qn,ae=Pi,Ie=Wr,xe=xi,De=Ni,ye=Ai;return a.renderSlot(W.$slots,"confirmResetPasswordSlotI",a.normalizeProps(a.guardReactiveProps(W.$attrs)),()=>[a.createVNode(fe,a.normalizeProps(a.guardReactiveProps(W.$attrs)),{default:a.withCtx(()=>[a.createVNode(ye,{"data-amplify-authenticator-confirmResetpassword":"",onInput:L,onBlurCapture:z,onSubmit:a.withModifiers(U,["prevent"])},{default:a.withCtx(()=>[a.createVNode(De,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(h)},{default:a.withCtx(()=>[a.renderSlot(W.$slots,"header",{},()=>[a.createVNode(b,{class:"amplify-heading",level:3},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(A)),1)]),_:1})]),a.createVNode(fe,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(co,{route:"confirmResetPassword"})]),_:1}),a.createVNode(xe,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(l)?(a.openBlock(),a.createBlock(ae,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(l))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(Ie,{class:"amplify-field-group__control amplify-authenticator__font",variation:"primary",fullwidth:!1,type:"submit",disabled:a.unref(h)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(k)),1)]),_:1},8,["disabled"]),a.createVNode(Ie,{class:"amplify-field-group__control amplify-authenticator__font",variation:"link",fullwidth:!1,size:"small",type:"button",onClick:a.withModifiers(R,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(C)),1)]),_:1},8,["onClick"]),a.renderSlot(W.$slots,"footer",{onConfirmResetPasswordSubmit:U,onLostYourCodeClicked:R})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),XX=a.defineComponent({__name:"verify-user",emits:["verifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=sr(),{isPending:r,unverifiedContactMethods:o,error:i}=a.toRefs(n),{skipVerification:s,submitForm:l,updateForm:h}=n,f=a.useAttrs(),{getAccountRecoveryInfoText:g,getSkipText:w,getVerifyText:E,getVerifyContactText:C}=qr,A=a.computed(()=>g()),k=a.computed(()=>w()),U=a.computed(()=>E()),N=a.computed(()=>C()),R=ee=>{const{name:b,value:fe}=ee.target;h({name:b,value:fe})},L=ee=>{f!=null&&f.onVerifyUserSubmit?t("verifyUserSubmit",ee):z(ee)},z=ee=>{l(Ti(ee))},W=()=>{f!=null&&f.onSkipClicked?t("skipClicked"):s()};return(ee,b)=>{const fe=Wo,ae=R0,Ie=F0,xe=rC,De=Qn,ye=Pi,je=Wr,rt=xi,ot=Ni,Je=Ai;return a.renderSlot(ee.$slots,"verifyUserSlotI",{},()=>[a.createVNode(De,null,{default:a.withCtx(()=>[a.createVNode(Je,{onInput:R,onSubmit:a.withModifiers(L,["prevent"])},{default:a.withCtx(()=>[a.createVNode(ot,{disabled:a.unref(r),class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.renderSlot(ee.$slots,"header",{},()=>[a.createVNode(fe,{class:"amplify-heading",level:3},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(A)),1)]),_:1})]),a.createVNode(De,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(ae,{class:"amplify-visually-hidden amplify-label",id:"amplify-field-493c"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(N)),1)]),_:1}),a.createVNode(De,{class:"amplify-flex amplify-field amplify-radiogroupfield amplify-authenticator__column","aria-labelledby":"amplify-field-493c"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),(dt,mt)=>(a.openBlock(),a.createBlock(ae,{class:"amplify-flex amplify-radio","data-amplify-verify-label":"",id:"verify",key:dt},{default:a.withCtx(()=>[a.createVNode(Ie,{class:"amplify-input amplify-field-group__control amplify-visually-hidden amplify-radio__input","aria-invalid":"false","data-amplify-verify-input":"",id:"verify",name:"unverifiedAttr",type:"radio",value:mt},null,8,["value"]),a.createVNode(xe,{class:"amplify-flex amplify-radio__button","aria-hidden":"true"}),a.createVNode(xe,{class:"amplify-text amplify-radio__label"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(Hf)[mt].label),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1}),a.createVNode(rt,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(i)?(a.openBlock(),a.createBlock(ye,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(i))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(je,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:a.unref(r)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(U)),1)]),_:1},8,["disabled"]),a.createVNode(je,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:a.withModifiers(W,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(k)),1)]),_:1},8,["onClick"]),a.renderSlot(ee.$slots,"footer",{onSkipClicked:W,onVerifyUserSubmit:L})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3})])}}}),ZX=a.defineComponent({__name:"confirm-verify-user",emits:["confirmVerifyUserSubmit","skipClicked"],setup(e,{emit:t}){const n=sr(),{error:r,isPending:o}=a.toRefs(n),{skipVerification:i,submitForm:s,updateForm:l}=n,h=a.useAttrs(),{getAccountRecoveryInfoText:f,getSkipText:g,getSubmitText:w}
984=qr,E=a.computed(()=>f()),C=a.computed(()=>g()),A=a.computed(()=>w()),k=L=>{const{name:z,value:W}=L.target;l({name:z,value:W})},U=L=>{h!=null&&h.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",L):N(L)},N=L=>{s(Ti(L))},R=()=>{h!=null&&h.onSkipClicked?t("skipClicked"):i()};return(L,z)=>{const W=Wo,ee=Qn,b=Pi,fe=Wr,ae=xi,Ie=Ni,xe=Ai;return a.renderSlot(L.$slots,"confirmVerifyUserSlotI",a.normalizeProps(a.guardReactiveProps(L.$attrs)),()=>[a.createVNode(ee,a.normalizeProps(a.guardReactiveProps(L.$attrs)),{default:a.withCtx(()=>[a.createVNode(xe,{onInput:k,onSubmit:a.withModifiers(U,["prevent"])},{default:a.withCtx(()=>[a.createVNode(Ie,{class:"amplify-flex amplify-authenticator__column",disabled:a.unref(o)},{default:a.withCtx(()=>[a.renderSlot(L.$slots,"header",{},()=>[a.createVNode(W,{level:3,class:"amplify-heading"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(E)),1)]),_:1})]),a.createVNode(ee,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.createVNode(co,{route:"confirmVerifyUser"})]),_:1}),a.createVNode(ae,{class:"amplify-flex amplify-authenticator__column"},{default:a.withCtx(()=>[a.unref(r)?(a.openBlock(),a.createBlock(b,{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(it)(a.unref(r))),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(fe,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,variation:"primary",type:"submit",disabled:a.unref(o)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(A)),1)]),_:1},8,["disabled"]),a.createVNode(fe,{class:"amplify-field-group__control amplify-authenticator__font",fullwidth:!1,size:"small",variation:"link",style:{"font-weight":"normal"},type:"button",onClick:a.withModifiers(R,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(C)),1)]),_:1},8,["onClick"]),a.renderSlot(L.$slots,"footer",{onSkipClicked:R,onConfirmVerifyUserSubmit:U})]),_:3})]),_:3},8,["disabled"])]),_:3},8,["onSubmit"])]),_:3},16)])}}}),QX=["data-variation"],eZ={"data-amplify-container":""},tZ=["data-amplify-router-content"],nZ={key:1,"data-amplify-router-content":""},rZ=a.defineComponent({__name:"authenticator",props:{hideSignUp:{type:Boolean},initialState:null,loginMechanisms:null,services:null,signUpAttributes:null,variation:{default:"default"},socialProviders:null,formFields:null},emits:["signInSubmit","confirmSignUpSubmit","resetPasswordSubmit","confirmResetPasswordSubmit","confirmSignInSubmit","mSetupTOTPSubmit","forceNewPasswordSubmit","signUpSubmit","verifyUserSubmit","confirmVerifyUserSubmit"],setup(e,{emit:t}){const n=e,r=a.useAttrs(),{initialState:o,loginMechanisms:i,variation:s,services:l,signUpAttributes:h,socialProviders:f,hideSignUp:g,formFields:w}=a.toRefs(n);let E;const C=a.ref(!1),{service:A,send:k,state:U}=D0();E=A.subscribe(pe=>{pe.matches("setup")&&!C.value&&(k({type:"INIT",data:{initialState:o.value,loginMechanisms:i.value,socialProviders:f.value,signUpAttributes:h.value,services:l.value,formFields:w.value}}),C.value=!0)}).unsubscribe;const N=sr(),{route:R,signOut:L,toSignIn:z,toSignUp:W,user:ee}=a.toRefs(N);a.onMounted(()=>{kM({packageName:"@aws-amplify/ui-vue",version:YJ})}),a.onUnmounted(()=>{E()});const b=a.ref(),fe=a.ref(),ae=a.ref(),Ie=a.ref(),xe=a.ref(),De=a.ref(),ye=a.ref(),je=a.ref(),rt=a.ref(),ot=a.ref(),{getSignInTabText:Je,getSignUpTabText:dt}=qr,mt=a.computed(()=>Je()),Ue=a.computed(()=>dt()),ne=pe=>{var Le;r!=null&&r.onSignInSubmit?t("signInSubmit",pe):(Le=b.value)==null||Le.submit(pe)},oe=pe=>{r!=null&&r.onConfirmSignUpSubmit?t("confirmSignUpSubmit",pe):ae.value.submit(pe)},Pe=pe=>{r!=null&&r.onResetPasswordSubmit?t("resetPasswordSubmit",pe):ye.value.submit(pe)},Oe=pe=>{r!=null&&r.onConfirmResetPasswordSubmit?t("confirmResetPasswordSubmit",pe):je.value.submit(pe)},We=pe=>{r!=null&&r.onConfirmSignInSubmit?t("confirmSignInSubmit",pe):Ie.value.submit(pe)},Qe=pe=>{r!=null&&r.onForceNewPasswordSubmit?t("mSetupTOTPSubmit",pe):xe.value.submit(pe)},se=pe=>{r!=null&&r.onForceNewPasswordSubmit?t("forceNewPasswordSubmit",pe):De.value.submit(pe)},be=pe=>{r!=null&&r.onSignUpSubmit?t("signUpSubmit",pe):fe.value.submit()},Ae=pe=>{r!=null&&r.onVerifyUserSubmit?t("verifyUserSubmit",pe):rt.value.submit(pe)},Ne=pe=>{r!=null&&r.onConfirmVerifyUserSubmit?t("confirmVerifyUserSubmit",pe):ot.value.submit(pe)},Me=a.computed(()=>
984R.value==="signIn"||R.value==="signUp"),Ye=a.computed(()=>["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","resetPassword","setupTOTP","signIn","signUp","verifyUser"].includes(R.value));return(pe,Le)=>{const st=KJ,Bt=qJ;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.unref(Ye)?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0},pe.$attrs,{"data-amplify-authenticator":"","data-variation":a.unref(s)}),[a.createElementVNode("div",eZ,[a.renderSlot(pe.$slots,"header"),a.createElementVNode("div",{"data-amplify-router":"","data-amplify-router-content":a.unref(Me)?void 0:""},[a.unref(Me)&&!a.unref(g)?(a.openBlock(),a.createBlock(Bt,{key:0},{default:a.withCtx(()=>[a.createVNode(st,{active:a.unref(R)==="signIn",id:44472,label:a.unref(mt),onClick:a.unref(z)},null,8,["active","label","onClick"]),a.createVNode(st,{active:a.unref(R)==="signUp",id:44471,label:a.unref(Ue),onClick:a.unref(W)},null,8,["active","label","onClick"])]),_:1})):a.createCommentVNode("",!0),a.unref(Me)?(a.openBlock(),a.createElementBlock("div",nZ,[a.unref(R)==="signIn"?(a.openBlock(),a.createBlock(jJ,{key:0,onSignInSubmit:ne,ref_key:"signInComponent",ref:b},{signInSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"sign-in")]),form:a.withCtx(({info:et,onSignInSubmit:I,onForgotPasswordClicked:m,onInput:y})=>[a.renderSlot(pe.$slots,"sign-in-form",{info:et,onInput:y,onSignInSubmit:I,onForgotPasswordClicked:m})]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"sign-in-header")]),footer:a.withCtx(()=>[a.renderSlot(pe.$slots,"sign-in-footer")]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="signUp"&&!a.unref(g)?(a.openBlock(),a.createBlock(HJ,{key:1,onSignUpSubmit:be,ref_key:"signUpComponent",ref:fe},{signUpSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"sign-up")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"sign-up-header")]),"signup-fields":a.withCtx(({info:et})=>[a.renderSlot(pe.$slots,"sign-up-fields",{info:et})]),footer:a.withCtx(()=>[a.renderSlot(pe.$slots,"sign-up-footer")]),_:3},512)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.unref(R)==="confirmSignUp"?(a.openBlock(),a.createBlock(ZJ,{key:2,onConfirmSignUpSubmit:oe,ref_key:"confirmSignUpComponent",ref:ae},{confirmSignUpSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-sign-up")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-sign-up-header")]),footer:a.withCtx(({onConfirmSignUpSubmit:et,onLostCodeClicked:I})=>[a.renderSlot(pe.$slots,"confirm-sign-up-footer",{onConfirmSignUpSubmit:et,onLostCodeClicked:I})]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="resetPassword"?(a.openBlock(),a.createBlock(YX,{key:3,onResetPasswordSubmit:Pe,ref_key:"resetPasswordComponent",ref:ye},{resetPasswordSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"reset-password")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"reset-password-header")]),footer:a.withCtx(({onResetPasswordSubmit:et,onBackToSignInClicked:I})=>[a.renderSlot(pe.$slots,"reset-password-footer",{onResetPasswordSubmit:et,onBackToSignInClicked:I})]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="confirmResetPassword"?(a.openBlock(),a.createBlock(JX,{key:4,onConfirmResetPasswordSubmit:Oe,ref_key:"confirmResetPasswordComponent",ref:je},{confirmResetPasswordSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-reset-password")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-reset-password-header")]),footer:a.withCtx(({onConfirmResetPasswordSubmit:et,onLostYourCodeClicked:I})=>[a.renderSlot(pe.$slots,"confirm-reset-password-footer",{onConfirmResetPasswordSubmit:et,onLostYourCodeClicked:I})]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="confirmSignIn"?(a.openBlock(),a.createBlock(QJ,{key:5,onConfirmSignInSubmit:We,ref_key:"confirmSignInComponent",ref:Ie},{confirmSignInSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-sign-in")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-sign-in-header")]),footer:a.withCtx(({onConfirmSignInSubmit:et,onBackToSignInClicked:I})=>[a.renderSlot(pe.$slots,"confirm-sign-in-footer",{onConfirmSignInSubmit:et,onBackToSignInClicked:I})]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="setupTOTP"?(a.openBlock(),a.createBlock(WX,{key:6,onConfirmSetupTotpSubmit:Qe,ref_key:"confirmSetupTOTPComponent",ref:xe},{confirmSetupTOTPI:a.withCtx(()=>[a.renderSlot(pe.$slots,"setup-totp")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"setup-totp-header")]),footer:a.withCtx(({onSetupTOTPSubmit:et,onBackToSignInClicked:I})=>[a.renderSlot(pe.$slots,"setup-totp-footer",{onSetupTOTPSubmit:et,onBackToSignInClicked:I})]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="forceNewPassword"?(a.openBlock(),a.createBlock(KX,{key:7,onForceNewPasswordSubmit:se,ref_key:"forceNewPasswordComponent",ref:De},{forceNewPasswordI:a.withCtx(()=>[a.renderSlot(pe.$slots,"force-new-password")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"force-new-password-header")]),"force-new-password-form-fields":a.withCtx(()=>[a.renderSlot(pe.$slots,"force-new-password-form-fields")]),footer:a.withCtx(({onHaveAccountClicked:et,onForceNewPasswordSubmit:I})=>[a.renderSlot(pe.$slots,"force-new-password-footer",{onForceNewPasswordSubmit:I,onBackToSignInClicked:et})]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="verifyUser"?(a.openBlock(),a.createBlock(XX,{key:8,onVerifyUserSubmit:Ae,ref_key:"verifyUserComponent",ref:rt},{verifyUserSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"verify-user")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"verify-user-header")]),footer:a.withCtx(({onVerifyUserSubmit:et,onSkipClicked:I})=>[a.renderSlot(pe.$slots,"verify-user-footer",{onVerifyUserSubmit:et,onSkipClicked:I})]),_:3},512)):a.createCommentVNode("",!0),a.unref(R)==="confirmVerifyUser"?(a.openBlock(),a.createBlock(ZX,{key:9,onConfirmVerifyUserSubmit:Ne,ref_key:"confirmVerifyUserComponent",ref:ot},{confirmVerifyUserSlotI:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-verify-user")]),header:a.withCtx(()=>[a.renderSlot(pe.$slots,"confirm-verify-user-header")]),footer:a.withCtx(({onConfirmVerifyUserSubmit:et,onSkipClicked:I})=>[a.renderSlot(pe.$slots,"confirm-verify-user-footer",{onConfirmVerifyUserSubmit:et,onSkipClicked:I})]),_:3},512)):a.createCommentVNode("",!0)],8,tZ),a.renderSlot(pe.$slots,"footer")])],16,QX)):a.createCommentVNode("",!0),a.unref(R)==="authenticated"?a.renderSlot(pe.$slots,"default",{key:1,user:a.unref(ee),state:a.unref(U),signOut:a.unref(L),send:a.unref(k)}):a.createCommentVNode("",!0)],64)}}});a.defineComponent({props:{info:{type:Object}},setup(e){return()=>e.info}});const Gle="",Wle="",iZ={name:"LoginCognitoInitializer",components:{Authenticator:rZ},mixins:[NB],setup(){const e=a.ref(),t=a.ref(!1),n=a.inject("isInitialSetup"),r=a.inject("isPasswordSetupRequired"),o=a.ref({signIn:{username:{isRequired:!0,label:"Username",value:""},password:{label:n.value===!0||r.value===!0?"Temporary Password":"Password",placeholder:n.value===!0||r.value===!0?"Enter temporary password provided":""}},setupTOTP:{QR:{totpIssuer:"GoFundraise",totpUsername:""},confirmation_code:{placeholder:"6-Digit Code",isRequired:!0}},resetPassword:{username:{label:"Email Address",placeholder:"Enter your email address"}},confirmResetPassword:{confirmation_code:{placeholder:"Code",label:"Password Reset Code"}},confirmSignIn:{confirmation_code:{label:"Authentication Code *",placeholder:"Code",isRequired:!0}}});return Cs.putVocabulariesForLanguage("en",{"Sign in":"Login"}),{setupScreenFinderInterval:e,isSetupTOPTScreen:t,isInitialSetup:n,isPasswordSetupRequired:r,formFields:o,store:Bn}},beforeCreate(){},created(){var e=this;
984e.$gfLogger.logInfo("LoginCognitoInitializer.vue created, returnUrl: ",this.returnUrl),e.$gfLogger.logInfo("LoginCognitoInitializer.vue created, providerDetails: ",this.providerDetails),ci.listen("auth",t=>{switch(e.$gfLogger.logInfo("Hub.listen auth, data:",t),t.payload.event){case"signIn":this.onUserSignedIn(t.payload.data.signInUserSession.accessToken.jwtToken);break}}),Cs.putVocabularies(_M),Cs.putVocabularies({en:{"Password attempts exceeded":"You have been temporarily locked out after too many password attempts. You can try again in 15 minutes. If you urgently need access, please contact [email protected]"}}),Cs.putVocabulariesForLanguage("en",{"Back to Sign In":"Sign in with a different account"}),bs.configure(this.providerDetails)},mounted(){this.$gfLogger.logInfo("LoginCognitoInitializer.vue mounted, userEmail:",this.userEmail),this.formFields.signIn.username.value=this.userEmail,this.formFields.setupTOTP.QR.totpUsername=this.userEmail,this.$gfLogger.logInfo("LoginCognitoInitializer.vue mounted, formFields:",this.formFields),this.prefillEmail(this.userEmail),this.checkForSetupTOTPScreen()},beforeUnmount(){this.$gfLogger.logInfo("LoginCognitoInitializer.vue beforeDestroy")},methods:{showManualKeyInfoBox(){var e=document.querySelector("[data-amplify-authenticator-setup-totp] [data-amplify-copy]");e.setAttribute("style","display: block !important;");var t=document.querySelector("#setup-totp-qr-code-manual");t.setAttribute("style","display: block !important;"),e.prepend(t),document.querySelector("#enter-app-key-manually").setAttribute("style","display: none !important;")},checkForSetupTOTPScreen(){this.setupScreenFinderInterval=setInterval(()=>{var e=document.querySelector("[data-amplify-authenticator-setup-totp] [data-amplify-copy]"),t=document.querySelector("[data-amplify-authenticator-setup-totp] [data-amplify-qrcode]");if(t&&e){clearInterval(this.setupScreenFinderInterval);var n=document.querySelector("#setup-totp-last-step");n.setAttribute("style","display: block;"),e.parentNode.insertBefore(n,e.nextSibling);var r=document.querySelector("#setup-totp-code-input-label"),o=document.querySelector("[data-amplify-authenticator-setup-totp] .amplify-authenticator__column .amplify-label");r.setAttribute("style","display: block;"),o.innerHTML="",o.prepend(r)}},500)},prefillEmail(e){var t=this;setTimeout(()=>{if(document.querySelector('[name="username"]')){document.querySelector('[name="username"]').value=e,document.querySelector('[name="username"]').setAttribute("readonly",!0),document.querySelector('[name="username"]').setAttribute("style","background: #EEE; border: 1px solid #EEE; border-top-left-radius: 3px; border-bottom-left-radius: 3px;");const n=document.createElement("div");n.setAttribute("class","amplify-field-group__outer-end"),n.innerHTML='<button aria-label="Edit Username" id="change-username-field--amplify" aria-checked="false" class="amplify-button amplify-field-group__control" data-fullwidth="false" type="button" role="switch"><i class="fa fa-edit fa-fw"></i></button>',document.querySelector('[name="username"]').parentNode.parentNode.appendChild(n),document.getElementById("change-username-field--amplify").addEventListener("click",()=>{t.$emit("requestChangeUsername")})}},50)},onUserSignedIn(e){var t=this;t.$gfLogger.logInfo("LoginCognitoInitializer.vue onUserSignedIn, jwtAccessToken:",e),t.processToken(e)},processToken(e){var t=this;t.$gfLogger.logInfo("processToken.start",e),kn.post("/oauth/process-token/cognito",{token:e},{headers:{"content-type":"application/json;charset=utf-8"}}).then(function(n){t.$gfLogger.logInfo("/oauth/process-token/cognito success",n);var r=n.data.ValidToken===!0?t.returnUrl:"/account/logon";t.isInitialSetup===!0&&(t.isInitialSetup=!1),sr().signOut(),t.$gfLogger.logInfo("processToken /oauth/process-token/cognito.user",Bn.state.userEmail),t.$emit("providerSuccessLogin",{returnURL:r,userName:Bn.state.userEmail})}).catch(function(n){t.$gfLogger.logInfo("processTokenResult failed",n),t.$emit("providerFailedLogin")})}}},oZ={ref:"cognitoRoot"},aZ={class:"amplify-heading",style:{padding:"var(--amplify-space-xl) var(--amplify-space-xl) 0"}},sZ=a.createElementVNode("span",{class:"amplify-heading--3"}
984,"Log In",-1),uZ={key:0},cZ=[a.createElementVNode("div",{class:"initial-setup-notification"},[a.createElementVNode("div",{class:"icon"},[a.createElementVNode("i",{class:"fa fa-info-circle fa-2x"})]),a.createElementVNode("div",{class:"notice"}," We have recently upgraded the security of your account. Please check your email for a new temporary password. "),a.createElementVNode("div",{class:"clearfix"})],-1)],lZ={key:0,class:"sign-in-footer-container--amplify"},fZ=a.createElementVNode("a",{href:"mailto:[email protected]"}," [email protected]",-1),dZ=a.createElementVNode("h3",{class:"amplify-heading amplify-heading--3"}," Two-Factor Authentication ",-1),hZ=a.createElementVNode("p",null,"Open your Authentication App and enter the current code generated for this account",-1),pZ=["onClick"],gZ=a.createElementVNode("h3",{class:"amplify-heading amplify-heading--3"}," Reset Password ",-1),mZ=a.createElementVNode("p",null,"Enter your email address and we will send you a verification code",-1),yZ=a.createElementVNode("h3",{class:"amplify-heading amplify-heading--3"}," Reset Password ",-1),vZ=a.createElementVNode("p",null,"Please check your email. We've sent a verification code to the email address associated with this account. Enter the code below and choose a new password.",-1),_Z=a.createElementVNode("h4",{class:"amplify-heading amplify-heading--5"}," Set up two-factor authentication ",-1),wZ=a.createElementVNode("div",null,[a.createTextVNode("Two factor authentication has been activated for your account. Please follow the steps to complete setup. If you need help, please contact "),a.createElementVNode("strong",null,"[email protected]")],-1),bZ=a.createElementVNode("div",{class:"step-title-row"},[a.createElementVNode("strong",null,[a.createElementVNode("span",{class:"step-number"},"1"),a.createTextVNode(" Install an authenticator app ")])],-1),EZ=a.createElementVNode("div",null,[a.createTextVNode(" An authenticator app generates a time-based code on your device to use when you login to a platform/service. If you don't already have one, "),a.createElementVNode("strong",null,"download and install an authenticator app"),a.createTextVNode(" on your mobile device such as Google Authenticator or Duo Mobile. "),a.createElementVNode("br"),a.createElementVNode("br"),a.createElementVNode("div",{class:"text-center"},[a.createElementVNode("div",null,[a.createTextVNode("Google Authenticator ("),a.createElementVNode("a",{href:"https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=en&gl=US",target:"_blank"},"Android"),a.createTextVNode(" | "),a.createElementVNode("a",{href:"https://apps.apple.com/au/app/google-authenticator/id388497605",target:"_blank"},"iOs"),a.createTextVNode(")")]),a.createElementVNode("div",null,[a.createTextVNode("Duo Mobile ("),a.createElementVNode("a",{href:"https://play.google.com/store/apps/details?id=com.duosecurity.duomobile&hl=en&gl=US"},"Android"),a.createTextVNode(" | "),a.createElementVNode("a",{href:"https://apps.apple.com/us/app/duo-mobile/id422663827"},"iOs"),a.createTextVNode(")")])])],-1),SZ=a.createElementVNode("div",{class:"step-title-row"},[a.createElementVNode("strong",null,[a.createElementVNode("span",{class:"step-number"},"2"),a.createTextVNode(" Add your GoFundraise Account")])],-1),CZ=a.createElementVNode("div",null,[a.createTextVNode(" Open your authentication app. Click the option to 'Add Account' or similar. "),a.createElementVNode("strong",null,"Scan the QR code below in your authenticator app.")],-1),xZ={id:"setup-totp-last-step"},AZ=a.createElementVNode("div",{id:"setup-totp-qr-code-manual"}," If you are unable to scan the QR code, enter this key manually into your authenticator app: ",-1),TZ=a.createElementVNode("div",{id:"setup-totp-code-input-label",class:""},[a.createElementVNode("div",{class:"step-title-row"},[a.createElementVNode("strong",null,[a.createElementVNode("span",{class:"step-number"},"3"),a.createTextVNode(" Enter 6-digit verification code ")])]),a.createElementVNode("div",null,"Enter the current verification code generated by your authenticator app for the GoFundraise user account you have just setup")],-1);function IZ(e,t,n,r,o,i){const s=a.resolveComponent("authenticator");return a.openBlock(),a.createElementBlock("div",oZ,[a.createVNode(s,{"hide-sign-up":!0,"form-fields":r.formFields},a.createSlots({"sign-in-header":a.withCtx(()=>[a.createElementVNode("h3",aZ,[sZ,r.isInitialSetup?(a.openBlock(),a.createElementBlock("div",uZ,cZ)):a.createCommentVNode("",!0)])]),"confirm-sign-in-header":a.withCtx(()=>[dZ,hZ]),default:a.withCtx(({user:l,signOut:h})=>[a.renderSlot(e.$slots,"terms"),a.createElementVNode("div",null,"Signed in as "+a.toDisplayString(r.store.state.userEmail),1),a.createTextVNode(" not you? "),a.createElementVNode("a",{href:"javascript:;",onClick:h},"Logout",8,pZ)]),"reset-password-header":a.withCtx(()=>[gZ,mZ]),"confirm-reset-password-header":a.withCtx(()=>[yZ,vZ]),"setup-totp-header":a.withCtx(()=>[_Z,wZ,bZ,EZ,SZ,CZ]),_:2},[r.isInitialSetup||r.isPasswordSetupRequired?{name:"sign-in-footer",fn:a.withCtx(()=>[r.isPasswordSetupRequired?(a.openBlock(),a.createElementBlock("div",lZ,[a.createTextVNode(" If you have not received a temporary password or it has expired, please contact "),fZ,a.createTextVNode(" to send a new temporary password")])):a.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["form-fields"]),a.createElementVNode("div",xZ,[a.createElementVNode("a",{href:"javascript:;",onClick:t[0]||(t[0]=(...l)=>i.showManualKeyInfoBox&&i.showManualKeyInfoBox(...l)),id:"enter-app-key-manually"},"Enter key manually instead"),AZ,TZ])],512)}const kZ=Ft(iZ,[["render",IZ]]),PZ={methods:{getLoginProviderComponentName(e){switch(e.toLowerCase()){case cs.PROVIDER_COGNITO.toLowerCase():return"LoginCognitoInitializer"}}}},NZ={data(){return{minPasswordLength:9,serverMessage:"",linkAccountMode:!1,accountAccessToken:null,recaptchaVerified:!1,signupModel:{
984Email:"",ConfirmEmail:"",Password:"",FirstName:"",LastName:"",DateOfBirth:"",ReturnUrl:"",IsUserCreatedForNewFundraisingPage:!1},router:Ro}},watch:{signupModel:{handler(){this.signupModel.ConfirmEmail=this.signupModel.Email,this.serverMessage=""},deep:!0}},methods:{async executeRegister(e){if(this.registerUrl==="/pages/register"){const t={...this.signupModel,TuringTest:e},n=this.returnUrl?this.registerUrl+"?returnUrl="+encodeURIComponent(this.returnUrl):this.registerUrl;return kn.post(n,t,{headers:{"Content-Type":"application/json"}})}return kn.post(this.registerUrl,this.signupModel,{headers:{"Content-Type":"application/json"}})},async submitRegistration(){var e=this,t=await this.$validate();if(t){if(e.linkAccountMode&&e.accountAccessToken&&e.accountAccessToken.length>0&&(e.signupModel.Provider="facebook",e.signupModel.Data=e.accountAccessToken),e.registerUrl==="/pages/register"&&e.captchaPublicKey&&!e.recaptchaVerified){e.executeRecaptcha();return}return e.completeRegistration()}},executeRecaptcha(){this.$refs.invisibleRecaptcha.execute()},onRecaptchaVerified(e){this.recaptchaVerified=!0,this.completeRegistration(e)},resetRecaptcha(){this.captchaPublicKey&&this.$refs.invisibleRecaptcha&&this.$refs.invisibleRecaptcha.reset()},async completeRegistration(e){var t=this;try{var n=await t.executeRegister(e);if(t.$gfLogger.logInfo("Registration response:",n),n.status===200&&n.data&&!n.data.success){t.serverMessage=n.data.message,t.recaptchaVerified=!1,t.resetRecaptcha(),n.data.showProviderButton&&n.data.showProviderButton===!0&&(t.showFacebookButton=!0);return}return n.status===200&&n.data.TempData===void 0?(t.$emit("loggedIn",n.data.userEmail,this.signupModel.IsUserCreatedForNewFundraisingPage),t.redirectToPage(t.returnUrl)):t.processServerResponse(n.data)}catch(r){console.log("Error during registration: "+r)}},processServerResponse:function(e){e.TempData["Status.Css"]&&e.TempData["Status.Css"].toLowerCase()=="error"&&(this.serverMessage=e.TempData["Status.Message"])},redirectToPage:function(e){this.disableRedirect||window.location.replace(e)}},validators:{"signupModel.Email":function(e){if(!this.linkAccountMode)return wa.value(e).required().email().custom(function(){if(e&&/['‘’]/.test(e))return"Email addresses containing apostrophes aren't supported. Please use an alternative email address."})},"signupModel.Password":function(e){if(!this.linkAccountMode)return wa.value(e).required().minLength(this.minPasswordLength)},"signupModel.FirstName":function(e){if(!this.linkAccountMode)return wa.value(e).required()},"signupModel.LastName":function(e){if(!this.linkAccountMode)return wa.value(e).required()}}},Kle="",DZ={0:"January",1:"February",2:"March",3:"April",4:"May",5:"June",6:"July",7:"August",8:"September",9:"October",10:"November",11:"December"},FZ={name:"DateDropdown",props:{default:{type:String,required:!1},min:{type:String,required:!1},max:{type:String,required:!1},monthsNames:{type:String,required:!1},selectClassName:{type:String,required:!1,default:"date-dropdown-select"},selectDayClassName:{type:String,required:!1,default:"day"},selectMonthClassName:{type:String,required:!1,default:"month"},selectYearClassName:{type:String,required:!1,default:"year"},selectWrapperClassName:{type:String,required:!1,default:"date-dropdown-select-wrapper"},containerClassName:{type:String,required:!1,default:"date-dropdown-container"}},data(){return{days:[],selectedDay:"",selectedMonth:"",selectedYear:""}},computed:{initialDate(){return!!(this.default||this.min)},specifiedDate(){return new Date(this.default)},minDate(){return this.min?new Date(this.min):null},maxDate(){return this.max?new Date(this.max):null},calculatedDate(){const e=this.selectedDay>=10?this.selectedDay:`0${this.selectedDay}`,t=this.selectedMonth+1>=10?this.selectedMonth+1:`0${this.selectedMonth+1}`;return`${this.selectedYear}-${t}-${e}`},dividedNamesOfMonths(){return this.monthsNames?this.monthsNames.replace(/\s/g,"").split(","):null},months(){let e=[];for(let t=0;t<12;t++)this.dividedNamesOfMonths?e.push(this.dividedNamesOfMonths[t]):e.push(DZ[t]);return e.map((t,n)=>({month:t,selected:n===this.selectedMonth}))},years(){let e;this.min?e=this.minDate.getFullYear():this.default?e=this.specifiedDate.getFullYear():e=new Date().getFullYear();let t=this.max?this.maxDate.getFullYear()+1-e:101,n=[];for(let r=e,o=e+t;r<o;r++)n.push(r);return n.map(r=>({year:r,selected:r===this.selectedYear}))}},created(){this.setDate()},updated(){this.sendDate()},methods:{getDays(){let e=[],t=new Date(this.selectedYear,this.selectedMonth+1,0).getDate();for(let n=1;n<t+1;n++)e.push(n);return e.map(n=>({day:n,selected:e===this.selectedDay}))},updateDays(){this.days=this.getDays()},sendDate(){const e=this.format?this.format(this.calculatedDate):this.calculatedDate;this.$emit("dateOfBirthUpdated",e)},setDate(){this.updateDays();let e;this.min&&this.max&&!this.default?e=new Date(this.min):this.default?e=new Date(this.default):e=new Date,this.initialDate?this.selectedDay=e.getDate()+1:this.selectedDay=e.getDate(),this.selectedDay=e.getDate(),this.selectedMonth=e.getMonth(),this.selectedYear=e.getFullYear(),this.sendDate()}}},RZ=["value"],BZ=["value"],OZ=["value"];function UZ(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([n.containerClassName])},[a.createElementVNode("div",{class:a.normalizeClass([n.selectWrapperClassName])},[a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":t[0]||(t[0]=s=>o.selectedDay=s),class:a.normalizeClass([n.selectClassName,n.selectDayClassName])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.days,s=>(a.openBlock(),a.createElementBlock("option",{key:s.day,value:s.day},a.toDisplayString(s.day),9,RZ))),128))],2),[[a.vModelSelect,o.selectedDay]])],2),a.createElementVNode("div",{class:a.normalizeClass([n.selectWrapperClassName])},[a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":t[1]||(t[1]=s=>o.selectedMonth=s),class:a.normalizeClass([n.selectClassName,n.selectMonthClassName]),onChange:t[2]||(t[2]=s=>i.updateDays())},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.months,(s,l)=>(a.openBlock(),a.createElementBlock("option",{key:s.month,value:l},a.toDisplayString(s.month),9,BZ))),128))],34),[[a.vModelSelect,o.selectedMonth]])],2),a.createElementVNode("div",{class:a.normalizeClass([n.selectWrapperClassName])},[a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":t[3]||(t[3]=s=>o.selectedYear=s),class:a.normalizeClass([n.selectClassName,n.selectYearClassName]),onChange:t[4]||(t[4]=s=>i.updateDays())},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.years,s=>(a.openBlock(),a.createElementBlock("option",{key:s.year,value:s.year},a.toDisplayString(s.year),9,OZ))),128))],34),[[a.vModelSelect,o.selectedYear]])],2)],2)}const $Z=Ft(FZ,[["render",UZ],["__scopeId","data-v-703fa6aa"]]),Yle="",MZ={components:{LoginFacebookInitializer:Nb,DateDropdown:$Z,VueRecaptcha:Vw},mixins:[NZ],props:{facebook:{type:Object},returnUrl:{type:String,default:""},formContainerClass:{type:String,default:""},accountLink:{type:Boolean},accessToken:{type:String,default:""},disableRedirect:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1},hideLoginLink:{type:Boolean,default:!1},isPageCreate:{type:Boolean,default:!1},registerUrl:{type:String,default:"/account/register"},captchaPublicKey:{type:String,default:""}}
984,data(){return{inApp:!1,showFacebookButton:!1,router:Ro}},computed:{disclaimerText(){return'By logging in, registering, or creating a page, you agree to the Event & Site <a href="/terms-of-use" target="_blank">Terms & Conditions</a> and acknowledge our <a href="/privacy-policy" target="_blank">Privacy & Cookie</a>, and <a href="/data-collection-policy" target="_blank">Data Collection</a> Policies.'}},mounted(){this.linkAccountMode=this.accountLink,this.router().getRouteParams("accountLink")&&this.router().getRouteParams("accountLink")===!0&&(this.linkAccountMode=!0),this.router().getRouteParams("accessToken")&&this.router().getRouteParams("accessToken").length>0&&(this.accountAccessToken=this.router().getRouteParams("accessToken"));var e=navigator.userAgent||navigator.vendor||window.opera;this.inApp=e.indexOf("FBAN")>-1||e.indexOf("FBAV")>-1,this.showFacebookButton=!this.linkAccountMode,this.signupModel.IsUserCreatedForNewFundraisingPage=this.isPageCreate,this.$gfLogger.logInfo(`accessToken: ${this.accountAccessToken}`),this.$gfLogger.logInfo(`link account mode: ${this.linkAccountMode}`)},methods:{onDateOfBirthUpdated:function(e){this.signupModel.DateOfBirth=e},onTokenError:function(e){this.serverMessage=e}}},Yo=e=>(a.pushScopeId("data-v-214cf99b"),e=e(),a.popScopeId(),e),LZ={class:"eb-pt-row-login"},VZ={class:"row justify-content-md-center mx-1 mt-3"},jZ={class:"row justify-content-md-center"},zZ={class:"col"},HZ={key:0,class:"text-center mb-4 mt-4"},GZ={class:"form-group"},WZ=Yo(()=>a.createElementVNode("label",{for:"Email",style:{display:"none"}},"Email",-1)),qZ={class:"message_error_login email_error"},KZ={class:"form-group"},YZ=Yo(()=>a.createElementVNode("label",{for:"Password",style:{display:"none"}},"Password",-1)),JZ={class:"message_error_login password_error"},XZ={class:"form-group"},ZZ={class:"row"},QZ={class:"col mr-2"},eQ=Yo(()=>a.createElementVNode("label",{for:"FirstName",style:{display:"none"}},"First Name",-1)),tQ={class:"message_error_login firstname_error"},nQ={class:"col"},rQ=Yo(()=>a.createElementVNode("label",{for:"LastName",style:{display:"none"}},"Last Name",-1)),iQ={class:"message_error_login lastname_error"},oQ={class:"form-group"},aQ={class:"row"},sQ=Yo(()=>a.createElementVNode("div",{class:"col-md-4 col-sm-6 col-xs-12 pr-md-0"},[a.createElementVNode("label",{class:"font-weight-bold opacity-lavel mr-3"},"Date of Birth:")],-1)),uQ={class:"col-md-8 col-sm-6 col-xs-12 et_pickedDate"},cQ={class:"form-group"},lQ={class:"text-danger"},fQ={class:"text-center"},dQ={class:"mb-3"},hQ=["innerHTML"],pQ={class:"form-group mt-4 mb-0"},gQ={class:"row justify-content-md-center"},mQ={class:"col-xs-12 col-md-8"},yQ=["disabled"],vQ=[Yo(()=>a.createElementVNode("span",{class:"primary-text"},"Sign Up",-1))],_Q=Yo(()=>a.createElementVNode("br",null,null,-1)),wQ={class:"col-md-12"},bQ={key:0,class:"col-md-12 pt-2"},EQ=Yo(()=>a.createElementVNode("p",{class:"d-inline pl-5"}," Have an existing account? ",-1)),SQ={class:"d-inline pr-5 float-right"};function CQ(e,t,n,r,o,i){const s=a.resolveComponent("date-dropdown"),l=a.resolveComponent("vue-recaptcha"),h=a.resolveComponent("LoginFacebookInitializer");return a.openBlock(),a.createElementBlock("div",LZ,[a.createElementVNode("div",VZ,[a.createElementVNode("div",{class:a.normalizeClass(n.formContainerClass)},[a.createElementVNode("div",jZ,[a.createElementVNode("div",zZ,[a.createElementVNode("div",null,[n.hideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("h4",HZ," Sign up ")),a.createElementVNode("form",null,[a.withDirectives(a.createElementVNode("div",GZ,[WZ,a.withDirectives(a.createElementVNode("input",{id:"Email","onUpdate:modelValue":t[0]||(t[0]=f=>e.signupModel.Email=f),type:"email",class:"form-control",placeholder:"Email"},null,512),[[a.vModelText,e.signupModel.Email]]),a.createElementVNode("div",qZ,a.toDisplayString(e.validation.firstError("signupModel.Email")),1)],512),[[a.vShow,!e.linkAccountMode]]),a.withDirectives(a.createElementVNode("div",KZ,[YZ,a.withDirectives(a.createElementVNode("input",{id:"Password","onUpdate:modelValue":t[1]||(t[1]=f=>e.signupModel.Password=f),type:"password",class:"form-control",placeholder:"Password"},null,512),[[a.vModelText,e.signupModel.Password]]),a.createElementVNode("div",JZ,a.toDisplayString(e.validation.firstError("signupModel.Password")),1)],512),[[a.vShow,!e.linkAccountMode]]),a.createElementVNode("div",XZ,[a.createElementVNode("div",ZZ,[a.createElementVNode("div",QZ,[eQ,a.withDirectives(a.createElementVNode("input",{id:"FirstName","onUpdate:modelValue":t[2]||(t[2]=f=>e.signupModel.FirstName=f),type:"text",class:"form-control",placeholder:"First name"},null,512),[[a.vModelText,e.signupModel.FirstName]]),a.createElementVNode("div",tQ,a.toDisplayString(e.validation.firstError("signupModel.FirstName")),1)]),a.createElementVNode("div",nQ,[rQ,a.withDirectives(a.createElementVNode("input",{id:"LastName","onUpdate:modelValue":t[3]||(t[3]=f=>e.signupModel.LastName=f),type:"text",class:"form-control",placeholder:"Last name"},null,512),[[a.vModelText,e.signupModel.LastName]]),a.createElementVNode("div",iQ,a.toDisplayString(e.validation.firstError("signupModel.LastName")),1)])])]),a.createElementVNode("div",oQ,[a.createElementVNode("div",aQ,[sQ,a.createElementVNode("div",uQ,[a.createVNode(s,{modelValue:e.signupModel.DateOfBirth,"onUpdate:modelValue":t[4]||(t[4]=f=>e.signupModel.DateOfBirth=f),min:"1920",max:"2018",default:"1991-01-01",onDateOfBirthUpdated:i.onDateOfBirthUpdated},null,8,["modelValue","onDateOfBirthUpdated"])])])]),a.createElementVNode("div",cQ,[a.createElementVNode("div",lQ,a.toDisplayString(e.serverMessage),1)]),a.createElementVNode("div",fQ,[a.renderSlot(e.$slots,"terms",{},()=>[a.createElementVNode("div",dQ,[a.createElementVNode("p",{class:"small text-muted",innerHTML:i.disclaimerText},null,8,hQ)])],!0)]),a.createElementVNode("div",pQ,[a.createElementVNode("div",gQ,[a.createElementVNode("div",mQ,[n.registerUrl==="/pages/register"&&n.captchaPublicKey!=""?(a.openBlock(),a.createBlock(l,{key:0,ref:"invisibleRecaptcha",size:"invisible",sitekey:n.captchaPublicKey,onVerify:e.onRecaptchaVerified},null,8,["sitekey","onVerify"])):a.createCommentVNode("",!0),a.createElementVNode("button",{id:"btnSubmit",type:"button",class:"btn btn-block gf-driver-button-color gf-driver-background-bg",disabled:e.validation.countErrors>0,onClick:t[5]||(t[5]=(...f)=>e.submitRegistration&&e.submitRegistration(...f))},vQ,8,yQ)])])]),_Q])])]),a.withDirectives(a.createVNode(h,{facebook:n.facebook,"action-type":"RegisterUser","return-url":n.returnUrl,onTokenError:i.onTokenError},null,8,["facebook","return-url","onTokenError"]),[[a.vShow,!o.inApp&&n.facebook.appId!=""&&o.showFacebookButton]]),a.createElementVNode("div",wQ,[a.createElementVNode("p",{class:a.normalizeClass(["font-weight-normal text-center w-100 pb-4",n.hideLoginLink?"":"bd-hr-col"])},[a.createElementVNode("a",{href:"javascript:;",onClick:t[6]||(t[6]=f=>o.router().show("forgot-password"))}
984," Forgot your Password? ")],2)]),n.hideLoginLink?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",bQ,[EQ,a.createElementVNode("p",SQ,[a.createElementVNode("a",{href:"javascript:;",onClick:t[7]||(t[7]=f=>o.router().show("login",{accountLink:e.linkAccountMode,accessToken:n.accessToken,returnUrl:n.returnUrl}))}," Log in ")])]))])],2)])])}const SC=Ft(MZ,[["render",CQ],["__scopeId","data-v-214cf99b"]]),Xle="",xQ={components:{LoginFacebookInitializer:Nb,LoginCognitoInitializer:kZ,Register:SC},mixins:[EB,PZ],props:["facebook","captchaPublicKey","provider","returnUrl","inFrame","formContainerClass","demo","accountLink","accessToken","providerDetails","disableRedirect","isPageCreate","registerUrl"],setup(){const e=a.ref(!1),t=a.ref(!1),n=a.ref(Bn.state.appProps),r=a.computed(()=>n.value.template==="inline"||n.value.template===""),o=a.computed(()=>n.value.template==="tabLayout"||n.value.template==="tab"),i=a.ref("login"),s=f=>{i.value=f},l=f=>i.value===f,h=f=>l(f)?"active":"";return a.provide("isInitialSetup",e),a.provide("isPasswordSetupRequired",t),{isInitialSetup:e,isPasswordSetupRequired:t,isInlineTemplate:r,isTabbedTemplate:o,isActiveTab:l,getActiveClass:h,appProps:n,activeTab:i,setTab:s}},data(){return{inApp:!1,router:Ro}},computed:{showLoginProviderComponent(){return this.userEmailChecked&&this.showProviderForm&&this.loginProviderComponentDetails!=null},loginProviderComponentDetails(){var e=this,t=this.providerDetails.find(function(n){return n.name.toLowerCase()==e.userProvider.toLowerCase()});return t==null?null:t.details},providerSettingsAvailable(){return this.userProvider==""||this.showProviderForm&&this.loginProviderComponentDetails!=null},disclaimerText(){return'By logging in, registering, or creating a page, you agree to the Event & Site <a href="/terms-of-use" target="_blank">Terms & Conditions</a> and acknowledge our <a href="/privacy-policy" target="_blank">Privacy & Cookie</a>, and <a href="/data-collection-policy" target="_blank">Data Collection</a> Policies.'}},mounted:function(){var e=navigator.userAgent||navigator.vendor||window.opera;this.inApp=e.indexOf("FBAN")>-1||e.indexOf("FBAV")>-1,this.$gfLogger.logInfo("login.vue mounted, inApp: ",this.inApp),this.$gfLogger.logInfo("login.vue mounted, facebook: ",this.facebook),this.$gfLogger.logInfo("login.vue mounted, accountLink route param: ",this.router().getRouteParams("accountLink")),this.router().getRouteParams("tempUserFeedback")&&(this.tempUserFeedback=this.router().getRouteParams("tempUserFeedback")),this.router().getRouteParams("email_receive")&&(this.userEmail=this.router().getRouteParams("email_receive")),this.router().getRouteParams("accessToken")&&this.router().getRouteParams("accessToken").length>0&&(this.$gfLogger.logInfo(`Received accessToken: ${this.router().getRouteParams("accessToken")}`),this.accountAccessToken=this.router().getRouteParams("accessToken"),this.captchaPublicKey!==""&&this.$refs.invisibleRecaptcha.reset()),this.router().getRouteParams("accountLink")&&this.router().getRouteParams("accountLink")===!0&&(this.linkAccountMode=!0,this.$gfLogger.logInfo("login.vue mounted, linkAccountMode: ",this.linkAccountMode))},methods:{onProviderSuccessLogin(e){if(this.$gfLogger.logInfo("Login.onProviderSuccessLogin.param",e),this.linkAccountMode&&this.accountAccessToken&&this.accountAccessToken.length>0)return this.linkAccount();if(this.disableRedirect){this.$emit("loggedIn",e.userName),this.$gfLogger.logInfo("onProviderSuccessLogin triggered!",e);return}this.$gfLogger.logInfo("onProviderSuccessLogin redirect to return URL",e.returnURL),typeof e.returnURL<"u"&&window.location.replace(e.returnURL)},onTokenError:function(e){this.serverMessage=e},userEmailClicked:function(){this.userEmailChecked=!1,this.serverMessage=""},onRequestChangeUsername(){this.userEmailChecked=!1,this.showProviderForm=!1,this.userProvider="",this.serverMessage=""},onRegisterLoggedIn(e,t){this.$gfLogger.logInfo("onRegisterLoggedIn, userEmail:",e),this.$gfLogger.logInfo("onRegisterLoggedIn, isCreatingNewUser:",t),this.$emit("loggedIn",e,t)}}},eu=e=>(a.pushScopeId("data-v-08d670df"),e=e(),a.popScopeId(),e),AQ={class:"eb-pt-row-login"},TQ={class:"row justify-content-md-center mx-1 mt-3"},IQ={class:"text-center mb-3"},kQ=["innerHTML"],PQ={key:1},NQ={key:2,class:"row justify-content-md-center"},DQ={class:"col mt-3"},FQ={key:0,class:"text-center mb-4 mt-4"},RQ={key:1,class:"nav nav-pills col-12 mb-2 p-0 mt-4"},BQ={class:"nav-item btn-square col-6 m-0 p-0"},OQ={class:"nav-item btn-square col-6 m-0 p-0"},UQ={key:3,class:"row justify-content-md-center"},$Q={class:"col mt-3"},MQ={key:0},LQ={class:"form-group"},VQ=eu(()=>a.createElementVNode("label",{for:"Email",style:{display:"none"}},"Email",-1)),jQ=eu(()=>a.createElementVNode("span",{class:"edit-icon-wrapper"},[a.createElementVNode("span",{class:"edit-icon"},[a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14px",height:"14px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-edit-2"}
984,[a.createElementVNode("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})])])],-1)),zQ={class:"message_error_login email_error"},HQ={key:0,class:"form-group"},GQ=eu(()=>a.createElementVNode("label",{for:"Password",style:{display:"none"}},"Password",-1)),WQ={class:"message_error_login password_error"},qQ={class:"form-group"},KQ={class:"text-danger"},YQ={key:1,class:"col-12"},JQ={class:"font-weight-normal text-center w-100 pb-4"},XQ={class:"text-center"},ZQ={class:"mb-3"},QQ=["innerHTML"],eee={class:"form-group my-3"},tee={class:"row justify-content-md-center"},nee={class:"col-md-8"},ree=[eu(()=>a.createElementVNode("span",{class:"primary-text"},"Login",-1))],iee=[eu(()=>a.createElementVNode("span",{class:"primary-text"},"Continue",-1))],oee={class:"text-center mb-3"},aee=["innerHTML"],see={key:0,class:"col-12 pt-2"},uee=eu(()=>a.createElementVNode("p",{class:"d-inline pl-5"},"Do not have an account?",-1)),cee={class:"d-inline pr-5 float-right"};function lee(e,t,n,r,o,i){const s=a.resolveComponent("vue-recaptcha"),l=a.resolveComponent("Register"),h=a.resolveComponent("LoginFacebookInitializer");return a.openBlock(),a.createElementBlock("div",AQ,[a.createElementVNode("div",TQ,[a.createElementVNode("div",{class:a.normalizeClass(n.formContainerClass)},[i.showLoginProviderComponent?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getLoginProviderComponentName(this.userProvider)),{key:0,"user-email":e.userEmail,"return-url":n.returnUrl,"provider-details":i.loginProviderComponentDetails,onProviderSuccessLogin:i.onProviderSuccessLogin,onRequestChangeUsername:i.onRequestChangeUsername},{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms",{},()=>[a.createElementVNode("div",IQ,[a.createElementVNode("p",{class:"small text-muted",innerHTML:i.disclaimerText},null,8,kQ)])],!0)]),_:3},40,["user-email","return-url","provider-details","onProviderSuccessLogin","onRequestChangeUsername"])):a.createCommentVNode("",!0),i.providerSettingsAvailable?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",PQ,a.toDisplayString(this.userProvider)+" settings are not available. Please contact GoFundraise administrator. ",1)),e.showProviderForm?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",NQ,[a.createElementVNode("div",DQ,[a.withDirectives(a.createElementVNode("div",{class:"alert alert-success",role:"alert"},a.toDisplayString(e.tempUserFeedback),513),[[a.vShow,e.tempUserFeedback!==""]]),r.isInlineTemplate?(a.openBlock(),a.createElementBlock("h4",FQ," Log In ")):r.isTabbedTemplate?(a.openBlock(),a.createElementBlock("ul",RQ,[a.createElementVNode("li",BQ,[a.createElementVNode("a",{href:"javascript:;",class:a.normalizeClass(["nav-link text-center",r.getActiveClass("login")]),onClick:t[0]||(t[0]=f=>r.setTab("login"))},"Login",2)]),a.createElementVNode("li",OQ,[a.createElementVNode("a",{href:"javascript:;",class:a.normalizeClass(["nav-link text-center",r.getActiveClass("register")]),onClick:t[1]||(t[1]=f=>r.setTab("register"))},"Register",2)])])):a.createCommentVNode("",!0)])])),e.showProviderForm?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",UQ,[a.createElementVNode("div",$Q,[a.createElementVNode("div",null,[r.isInlineTemplate||r.isTabbedTemplate&&r.isActiveTab("login")?(a.openBlock(),a.createElementBlock("form",MQ,[a.createElementVNode("div",LQ,[VQ,a.withDirectives(a.createElementVNode("input",{id:"Email","onUpdate:modelValue":t[2]||(t[2]=f=>e.userEmail=f),type:"email",class:"form-control",placeholder:"Email"},null,512),[[a.vShow,!e.userEmailChecked],[a.vModelText,e.userEmail]]),a.withDirectives(a.createElementVNode("div",{class:"checked-email-display",onClick:t[3]||(t[3]=f=>i.userEmailClicked())},[a.createElementVNode("span",null,a.toDisplayString(e.userEmail),1),jQ],512),[[a.vShow,e.userEmailChecked]]),a.createElementVNode("div",zQ,a.toDisplayString(e.validation.firstError("userEmail")),1)]),e.userEmailChecked?(a.openBlock(),a.createElementBlock("div",HQ,[GQ,a.withDirectives(a.createElementVNode("input",{id:"Password","onUpdate:modelValue":t[4]||(t[4]=f=>e.userPassword=f),type:"password",class:"form-control",placeholder:"Password"},null,512),[[a.vModelText,e.userPassword]]),a.createElementVNode("div",WQ,a.toDisplayString(e.validation.firstError("userPassword")),1)])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",qQ,[a.createElementVNode("div",KQ,a.toDisplayString(e.serverMessage),1)],512),[[a.vShow,e.serverMessage!==""]]),e.userEmailChecked?(a.openBlock(),a.createElementBlock("div",YQ,[a.createElementVNode("p",JQ,[a.createElementVNode("a",{href:"javascript:;",onClick:t[5]||(t[5]=f=>o.router().show("forgot-password",{userEmail:e.userEmail}))}," Forgot your Password? ")])])):a.createCommentVNode("",!0),a.createElementVNode("div",XQ,[a.renderSlot(e.$slots,"terms",{},()=>[a.createElementVNode("div",ZQ,[a.createElementVNode("p",{class:"small text-muted",innerHTML:i.disclaimerText},null,8,QQ)])],!0)]),a.createElementVNode("div",eee,[a.createElementVNode("div",tee,[a.createElementVNode("div",nee,[n.captchaPublicKey!=""?(a.openBlock(),a.createBlock(s,{key:0,ref:"invisibleRecaptcha",size:"invisible",sitekey:n.captchaPublicKey,onVerify:e.RecaptchaAsVerified},null,8,["sitekey","onVerify"])):a.createCommentVNode("",!0),e.userEmailChecked?(a.openBlock(),a.createElementBlock("button",{key:1,id:"bt
984nSubmit",type:"button",class:"btn btn-block gf-driver-button-color gf-driver-background-bg",onClick:t[6]||(t[6]=(...f)=>e.submitGfLoginAccount&&e.submitGfLoginAccount(...f))},ree)):a.createCommentVNode("",!0),e.userEmailChecked?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:2,id:"btnContinue",type:"button",class:"btn btn-block gf-driver-button-color gf-driver-background-bg",onClick:t[7]||(t[7]=(...f)=>e.submitEmailAddress&&e.submitEmailAddress(...f))},iee))])])])])):a.createCommentVNode("",!0),r.isTabbedTemplate&&r.isActiveTab("register")?(a.openBlock(),a.createBlock(l,{key:1,facebook:n.facebook,returnUrl:n.returnUrl,formContainerClass:"",accountLink:e.linkAccountMode,accessToken:n.accessToken,disableRedirect:n.disableRedirect,"hide-title":!0,hideLoginLink:r.isTabbedTemplate,isPageCreate:n.isPageCreate,"register-url":n.registerUrl,"captcha-public-key":n.captchaPublicKey,onLoggedIn:i.onRegisterLoggedIn},{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms",{},()=>[a.createElementVNode("div",oee,[a.createElementVNode("p",{class:"small text-muted",innerHTML:i.disclaimerText},null,8,aee)])],!0)]),_:3},8,["facebook","returnUrl","accountLink","accessToken","disableRedirect","hideLoginLink","isPageCreate","register-url","captcha-public-key","onLoggedIn"])):a.createCommentVNode("",!0)])]),r.isInlineTemplate||r.isTabbedTemplate&&r.isActiveTab("login")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.withDirectives(a.createVNode(h,{"in-frame":n.inFrame,"return-url":n.returnUrl,provider:n.provider,facebook:n.facebook,demo:n.demo,onTokenError:i.onTokenError,onLoggedIn:t[8]||(t[8]=f=>e.$emit("loggedIn"))},null,8,["in-frame","return-url","provider","facebook","demo","onTokenError"]),[[a.vShow,!e.userEmailChecked&&!o.inApp&&n.facebook.appId!=""&&e.linkAccountMode!==!0]]),r.isInlineTemplate?(a.openBlock(),a.createElementBlock("div",see,[uee,a.createElementVNode("p",cee,[a.createElementVNode("a",{href:"javascript:;",class:"btn-signup",onClick:t[9]||(t[9]=f=>o.router().show("register",{accountLink:e.linkAccountMode,accessToken:n.accessToken}))}," Sign up ")])])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0)]))],2)])])}const fee=Ft(xQ,[["render",lee],["__scopeId","data-v-08d670df"]]),dee={name:"ForgetPassword",mixins:[{data(){return{email_receive:"",serverMessage:"",router:Ro}},watch:{email_receive:function(){this.serverMessage=""}},methods:{async executeForgotPassword(){return kn.post("/account/forgot-password",{email:this.email_receive},{headers:{"Content-Type":"application/json"}})},async submit_form(){var e=this,t=await this.$validate();if(t)try{var n=await e.executeForgotPassword();if(n!==void 0&&n.status===200&&n.data.url&&n.data.url.toLowerCase()==="logon")return this.router().show("login",{tempUserFeedback:"A reset password email has been sent to the nominated email address."});if(n.data.TempData["Status.Css"]&&n.data.TempData["Status.Css"].toLowerCase()=="error"){e.serverMessage=n.data.TempData["Status.Message"];return}}catch(r){console.log("Errored response: "+r)}}},validators:{email_receive:function(e){return wa.value(e).required().email()}}}],props:["formContainerClass"],mounted:function(){this.router().getRouteParams("userEmail")&&(this.email_receive=this.router().getRouteParams("userEmail"))}},hee={class:"eb-pt-row-login"},pee={class:"row justify-content-md-center mt-5"},gee={class:"row justify-content-md-center"},mee={class:"col-md-12"},yee=a.createElementVNode("h4",{class:"text-center mb-4 mt-4"}," Forgot Password ",-1),vee=a.createElementVNode("p",null,"Enter the email that you signed up with and you will receive instructions on how to reset your password.",-1),_ee={class:"form-group mt-4 mb-4"},wee=a.createElementVNode("label",{for:"Email",style:{display:"none"}},"Email",-1),bee={class:"message_error_login email_error"},Eee={class:"form-group mt-4 mb-4"},See={class:"text-danger"},Cee={class:"form-group mt-4"},xee={class:"row justify-content-md-center"},Aee={class:"col-md-8"},Tee=[a.createElementVNode("span",{class:"primary-text"},"Submit",-1)],Iee=a.createElementVNode("br",null,null,-1),kee={class:"col-md-12 eb-bd-top"},Pee=a.createElementVNode("p",{class:"d-inline pl-5"}," Try Again? ",-1),Nee={class:"d-inline pr-5 float-right"};function Dee(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",hee,[a.createElementVNode("div",pee,[a.createElementVNode("div",{class:a.normalizeClass(n.formContainerClass)},[a.createElementVNode("div",gee,[a.createElementVNode("div",mee,[a.createElementVNode("div",null,[yee,a.createElementVNode("form",null,[vee,a.createElementVNode("div",_ee,[wee,a.withDirectives(a.createElementVNode("input",{id:"Email","onUpdate:modelValue":t[0]||(t[0]=s=>e.email_receive=s),type:"email",class:"form-control",placeholder:"Email"},null,512),[[a.vModelText,e.email_receive]]),a.createElementVNode("div",bee,a.toDisplayString(e.validation.firstError("email_receive")),1)]),a.withDirectives(a.createElementVNode("div",Eee,[a.createElementVNode("div",See,a.toDisplayString(e.serverMessage),1)],512),[[a.vShow,e.serverMessage!==""]]),a.createElementVNode("div",Cee,[a.createElementVNode("div",xee,[a.createElementVNode("div",Aee,[a.createElementVNode("button",{id:"btnSubmit",type:"button",class:"btn btn-block gf-driver-button-color gf-driver-background-bg",onClick:t[1]||(t[1]=(...s)=>e.submit_form&&e.submit_form(...s))},Tee)])])]),Iee])])]),a.createElementVNode("div",kee,[Pee,a.createElementVNode("p",Nee,[a.createElementVNode("a",{href:"javascript:;",onClick:t[2]||(t[2]=s=>e.router().show("login",{email_receive:e.email_receive}))}," Log in ")])])])],2)])])}const Fee=Ft(dee,[["render",Dee]]),nfe="",Ree={name:"FacebookConnect",props:{accessToken:{type:String,default:""},formContainerClass:{type:String,default:""}},data(){return{accountAccessToken:"",router:Ro}}
984,mounted:function(){this.router().getRouteParams("accessToken")&&this.router().getRouteParams("accessToken").length>0&&(this.accountAccessToken=this.router().getRouteParams("accessToken"))},methods:{userHasAccount(){this.router().show("login",{accountLink:!0,accessToken:this.accountAccessToken})},createAccount(){this.router().show("register",{accountLink:!0,accessToken:this.accountAccessToken})}}},Bee=e=>(a.pushScopeId("data-v-411ff9ee"),e=e(),a.popScopeId(),e),Oee={class:"eb-pt-row-login"},Uee={class:"row justify-content-md-center mt-5"},$ee={class:"col-12"},Mee=Bee(()=>a.createElementVNode("div",{class:"row"},[a.createElementVNode("div",{class:"col-12 text-center"},[a.createElementVNode("p",{class:"my-4"},[a.createElementVNode("b",{class:"h5"},"Congratulations you're now connected to Facebook.")]),a.createElementVNode("p",null," Do you have an existing account to link this to? ")])],-1)),Lee={class:"row justify-content-md-center my-4"},Vee={class:"col-6"},jee={class:"col-6"};function zee(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",Oee,[a.createElementVNode("div",Uee,[a.createElementVNode("div",{class:a.normalizeClass(n.formContainerClass)},[a.createElementVNode("div",$ee,[Mee,a.createElementVNode("div",Lee,[a.createElementVNode("div",Vee,[a.createElementVNode("button",{type:"button",class:"btn btn-block primary btn-rounded",onClick:t[0]||(t[0]=(...s)=>i.createAccount&&i.createAccount(...s))}," No - Create new account ")]),a.createElementVNode("div",jee,[a.createElementVNode("button",{type:"button",class:"btn btn-block primary-color driver-button-color btn-rounded gf-driver-button",onClick:t[1]||(t[1]=(...s)=>i.userHasAccount&&i.userHasAccount(...s))}," Yes - Login and Link ")])])])],2)])])}const Hee=Ft(Ree,[["render",zee],["__scopeId","data-v-411ff9ee"]]),rfe="",Gee={name:"GfLoginModule",components:{Login:fee,Register:SC,ForgotPassword:Fee,FbConnect:Hee},props:{facebook:{type:Object,default:function(){return{}}},captchaPublicKey:{type:String,default:""},provider:{type:String,default:""},providerDetails:{type:Array,default:function(){return[]}},returnUrl:{type:String,default:""},inFrame:{type:String,default:"true"},customContainerClass:{type:String,default:""},demo:{type:Boolean,default:!1},disableRedirect:{type:Boolean,default:!1},template:{type:String,default:"inline"},isPageCreate:{type:Boolean,default:!1},registerUrl:{type:String,default:"/account/register"}},data(){return{inApp:!1,returnUrlValue:"",router:Ro,store:Bn.getters.getState}},computed:{formContainerClass:function(){return this.customContainerClass&&this.customContainerClass!==""?this.customContainerClass+" bgr-main":"col-md-5 col-lg-5 col-xl-3 col-sm-12 col-xs-12 bgr-main"},propsFb:{get:function(){return this.facebook}},propsRecapcha:{get:function(){return this.captchaPublicKey}},propsProvider:{get:function(){return this.provider}},propsProviderDetails:{get:function(){return this.providerDetails}},propsInFrame:{get:function(){return this.inFrame}}},setup(e){a.getCurrentInstance().appContext.app.use(Bn),a.getCurrentInstance().appContext.app.use(bi),a.getCurrentInstance().appContext.app.use(Bp),Ro().setAppProps(e)},mounted(){this.returnUrlValue=this.returnUrl,this.processReturnUrl(),this.$gfLogger.logInfo("GfLoginModule.mounted() - Facebook Params:",this.facebook),this.$gfLogger.logInfo("GfLoginModule.mounted() - providerDetails:",this.providerDetails)},methods:{onSuccessfulLogin:function(e,t){this.$gfLogger.logInfo("GfLoginModule.onSuccessfulLogin, userEmail:",e),this.$gfLogger.logInfo("GfLoginModule.onSuccessfulLogin, isCreatingNewUser:",t),nw.isCurrentWindowInIFrame()&&(window.top.parent.postMessage("login from iframe successful","*"),this.$emit("loggedIn",e),this.$gfLogger.logInfo("GfLoginModule.isCurrentWindowInIFrame",e),this.disableRedirect||(this.$gfLogger.logInfo("GfLoginModule.isCurrentWindowInIFrame.reloadParentWindow"),nw.reloadParentWindow()),window.addEventListener("beforeunload",function(n){n.preventDefault()})),this.$emit("loggedIn",e,t)},processReturnUrl(){var e=cs.INCLUDE_HASH_MODULE.filter(t=>t===this.returnUrl);e.length>0&&(this.returnUrlValue=this.returnUrl+window.location.hash)}},watch:{returnUrl(e){this.returnUrlValue=e}}},Wee={class:"wrapper-login"};function qee(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Wee,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.router().getRoute()),{provider:i.propsProvider,"captcha-public-key":i.propsRecapcha,facebook:i.propsFb,"return-url":o.returnUrlValue,"in-frame":i.propsInFrame,"form-container-class":i.formContainerClass,demo:n.demo,"provider-details":i.propsProviderDetails,"disable-redirect":n.disableRedirect,template:n.template,"is-page-create":n.isPageCreate,"register-url":n.registerUrl,onLoggedIn:i.onSuccessfulLogin},{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms")]),_:3},40,["provider","captcha-public-key","facebook","return-url","in-frame","form-container-class","demo","provider-details","disable-redirect","template","is-page-create","register-url","onLoggedIn"]))])])}const Y0=Ft(Gee,[["render",qee]]),ife="",ofe="",Kee={components:{Logged:ig,GfLoginModule:Y0,Loader:Iu},mixins:[og],data(){return{useImagePlugin:Ql}},async mounted(){this.pageType="S",this.teamId=0,this.charityId=this.store.state.selected_charity.benef
984iciaryId,this.eventCampaignId=this.store.state.selected_event.EventCampaignId,await Promise.all([this.loadVueAnalytics(),this.$_createFundraisingPageMixin_loadDisclaimer()])}},Yee={class:"row et_row_complete text-center p-0 py-4 cpl-event col-12 col-md-6 m-auto"},Jee={class:"col-6"},Xee=["title"],Zee=["src"],Qee={class:"col-6"},ete=["title"],tte=["src"],nte={class:"col m-auto"},rte={class:"gf-connect-fb"},ite={key:0,class:"eb-pt-row-login"},ote={class:"row justify-content-md-center mx-1 mt-3"},ate={class:"col bgr-main"};function ste(e,t,n,r,o,i){const s=a.resolveComponent("Logged"),l=a.resolveComponent("Loader"),h=a.resolveComponent("GfLoginModule");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Yee,[a.createElementVNode("div",Jee,[a.createElementVNode("div",{title:e.store.state.selected_charity.BeneficiaryName,class:"card border-0 hv-100 bg-transparent"},[a.createElementVNode("img",{src:e.store.state.selected_charity.BeneficiaryImagePath,class:"card-img-top img-fluid",alt:""},null,8,Zee)],8,Xee),a.createElementVNode("p",null,a.toDisplayString(e.store.state.selected_charity.BeneficiaryName),1)]),a.createElementVNode("div",Qee,[a.createElementVNode("div",{title:e.store.state.selected_event.EventName,class:"card border-0 hv-100 bg-transparent"},[a.createElementVNode("img",{src:o.useImagePlugin().getImageWithResolution(e.store.state.selected_event.EventImagePath,1e3),class:"card-img-top img-fluid"},null,8,tte)],8,ete),a.createElementVNode("p",null,a.toDisplayString(e.store.state.selected_event.EventName),1)])]),a.createElementVNode("div",nte,[a.createElementVNode("div",rte,[e.store.state.userLogon?(a.openBlock(),a.createElementBlock("div",ite,[a.createElementVNode("div",ote,[a.createElementVNode("div",ate,[a.renderSlot(e.$slots,"terms",{},void 0,!0),a.createVNode(s)])])])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(l,{show:e.store.state.creatingPage},null,8,["show"]),a.createVNode(h,{"custom-container-class":"col","provider-details":e.providerDetails,"captcha-public-key":e.captchaPublicKey,facebook:e.facebookAuth,onLoggedIn:e.$_createFundraisingPageMixin_onLoggedIn,"disable-redirect":!0,"is-page-create":!0,"register-url":e.registerUrl,template:"tab"},{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms",{},void 0,!0)]),_:3},8,["provider-details","captcha-public-key","facebook","onLoggedIn","register-url"])],64))])])])}const ute=Ft(Kee,[["render",ste],["__scopeId","data-v-6c66a69f"]]),cte={name:"Team",mixins:[ap],data(){return{items_navigation:[{name:"Cause",faIconClass:"fas fa-ribbon",link_router:"charity_team",general_router:"charity_individual",class:"gf-ft",display:at.state.data_params_pre.beneficiaryId==""},{name:"Event",faIconClass:"far fa-calendar",link_router:"Event_team",general_router:"event_individual",class:"gf-ft",display:at.state.data_params_pre.eventId==""},{name:"Complete",faIconClass:"far fa-check-circle",link_router:"complete_team",general_router:"",class:"gf-ft",display:!0}]}}},lte={class:"container"},fte={class:"row justify-content-md-center"},dte={class:"col-12 text-center px-0"},hte={class:"row"},pte={class:"col-12"},gte=[a.createElementVNode("i",{class:"fas fa-chevron-circle-left"},null,-1),a.createElementVNode("span",null," Back",-1)],mte={class:"col-12 col-md-8 col-lg-6 m-auto pb-2 png-wrap"},yte={class:"nav nav-fill row"},vte=[a.createElementVNode("p",{class:"pag-gap d-none d-sm-none d-md-block my-1"},"----------",-1)],_te={class:"col-12 px-0 pt-1"};function wte(e,t,n,r,o,i){const s=a.resolveComponent("router-link"),l=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",lte,[a.createElementVNode("div",fte,[a.createElementVNode("div",dte,[a.createElementVNode("div",hte,[a.createElementVNode("div",pte,[a.createElementVNode("div",{class:"float-left back-btn driver-colour font-weight-bold",onClick:t[0]||(t[0]=h=>e.$_navigationMixin_navigateBack())},gte)]),a.createElementVNode("div",mte,[a.createElementVNode("ul",yte,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.items_navigation,h=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h.name},[a.withDirectives(a.createElementVNode("li",{class:a.normalizeClass(["nav-item font-weight-bold nav-breadcrumbs","nav-item-"+h.name.toLowerCase(),h.class,h.link_router==e.$route.name?"active":"",e.$_navigationMixin_linkIsDisabled(h)?"disabled":"",e.$_navigationMixin_itemSelected(h)?"selected":""])},[a.createVNode(s,{class:"nav-link",to:{name:h.link_router,params:e.store.state.selected_charity.benef
984iciaryId&&e.store.state.selected_charity.Router_Name==h.link_router?{beneficiaryId:e.store.state.selected_charity.beneficiaryId}:{}}},{default:a.withCtx(()=>[a.createElementVNode("i",{class:a.normalizeClass(h.faIconClass)}," ",2),a.createTextVNode(a.toDisplayString(h.name),1)]),_:2},1032,["to"])],2),[[a.vShow,h.display]]),a.withDirectives(a.createElementVNode("li",null,vte,512),[[a.vShow,h.name!="Complete"&&h.display]])],64))),128))])])])]),a.createElementVNode("div",_te,[a.createVNode(l,null,{default:a.withCtx(({Component:h})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h),null,{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms")]),_:2},1024))]),_:3})])])])}const bte=Ft(cte,[["render",wte]]),Ete={components:{GfBeneficairySearch:ew},mixins:[ha],data(){return{store:at,ready:!1,external:{id:at.state.externalId,type:at.state.referrer}}},mounted(){this.$nextTick(()=>this.ready=!0)},methods:{selected(e){this.$gfLogger.logInfo("charity.onSelected(), params: ",e),this.stage(e.beneficiaryId,e.beneficiaryName,e.beneficiaryImagePath),this.analytics({event:"create_page",createType:"team",stepNumber:"2 of 4",stepName:"select cause",causeName:e.beneficiaryName})},stage(e,t,n){this.store.commit("change_Beneficiary",{beneficiaryId:e,BeneficiaryName:t,BeneficiaryImagePath:n,Router_Name:this.$route.name}),this.store.state.selected_charity!=""&&this.store.state.selected_event!=""?this.$router.push({name:"complete_team"}):this.$router.push({name:"Event_team"})}}};function Ste(e,t,n,r,o,i){const s=a.resolveComponent("GfBeneficairySearch");return a.openBlock(),a.createElementBlock("div",null,[o.ready?(a.openBlock(),a.createBlock(s,{key:0,"event-campaign-id":o.store.state.selected_event.EventCampaignId,external:o.external,region:o.store.state.region,"api-domain":o.store.state.apiDomain,onSelected:i.selected},null,8,["event-campaign-id","external","region","api-domain","onSelected"])):a.createCommentVNode("",!0)])}const Cte=Ft(Ete,[["render",Ste]]),xte={name:"TeamEvent",mixins:[tw,ha],methods:{stage(e,t,n,r){this.store.commit("change_event",{EventCampaignId:e.eventCampaignId||e,EventName:e.eventName||t,EventImagePath:e.eventImagePath||n,EventUrl:e.eventUrl||r,Router_Name:this.$route.name}),this.store.state.selected_charity!=""&&this.store.state.selected_event!=""?this.$router.push({name:"complete_team"}):this.$router.push({name:"charity_team"}),this.analytics({event:"create_page",createType:"team",stepNumber:"3 of 4",stepName:"select event",causeName:this.store.state.selected_charity.BeneficiaryName,eventName:e.eventName||t})}}};var Fi={},CC={exports:{}},J0,xC;function Ate(){return xC||(xC=1,J0={error:"Error.",required:"Required.",float:"Must be a number.",integer:"Must be an integer.",number:"Must be a number.",lessThan:"Must be less than {0}.",lessThanOrEqualTo:"Must be less than or equal to {0}.",greaterThan:"Must be greater than {0}.",greaterThanOrEqualTo:"Must greater than or equal to {0}.",between:"Must be between {0} and {1}.",size:"Size must be {0}.",length:"Length must be {0}.",minLength:"Must have at least {0} characters.",maxLength:"Must have up to {0} characters.",lengthBetween:"Length must between {0} and {1}.",in:"Must be {0}.",notIn:"Must not be {0}.",match:"Not matched.",regex:"Invalid format.",digit:"Must be a digit.",email:"Invalid email.",url:"Invalid url.",optionCombiner:function(e){return e.length>2&&(e=[e.slice(0,e.length-1).join(", "),e[e.length-1]]),e.join(" or ")}}),J0}(function(e){var t=hw;e.exports.debounce=function(n,r,o){var i;return function(){var s=this,l=arguments,h=function(){i=null,o||n.apply(s,l)},f=o&&!i;clearTimeout(i),i=setTimeout(h,r),f&&n.apply(s,l)}},e.exports.format=function(n){var r=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(o,i){return typeof r[i]<"u"?r[i]:o})},e.exports.isArray=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Object.prototype.toString.call(n)==="[object Array]"},e.exports.isEmpty=function(n){return e.exports.isArray(n)?!n.length:n==null?!0:!String(n).trim().length},e.exports.isEqual=function(n,r){return t(n,r)},e.exports.isFunction=function(n){return typeof n=="function"},e.exports.isNaN=function(n){return/^\s*$/.test(n)||isNaN(n)},e.exports.isNull=function(n){return n===null},e.exports.isString=function(n){return typeof n=="string"||n instanceof String},e.exports.isUndefined=function(n){return typeof n>"u"},e.exports.omit=function(r,o){var i={};for(var s in r)s!==o&&(i[s]=r[s]);return i},e.exports.templates=Ate(),e.exports.mode="interactive"})(CC);var Fc=CC.exports,X0=tf.Promise,_r=Fc;function Sn(){this.sessionId=0,this.resetting=0,this.errors=[],this.validatingRecords=[],this.passedRecords=[],this.touchedRecords=[],this.activated=!1}Sn.prototype._setVM=function(e){this._vm=e},Sn.prototype.addError=function(e,t){this.resetting||this.errors.push({f
984ield:e,message:t})},Sn.prototype.removeErrors=function(e){_r.isUndefined(e)?this.errors=[]:this.errors=this.errors.filter(function(t){return t.field!==e})},Sn.prototype.hasError=function(e){return _r.isUndefined(e)?!!this.errors.length:!!this.firstError(e)},Sn.prototype.firstError=function(e){for(var t=0;t<this.errors.length;t++)if(_r.isUndefined(e)||this.errors[t].field===e)return this.errors[t].message;return null},Sn.prototype.allErrors=function(e){return this.errors.filter(function(t){return _r.isUndefined(e)||t.field===e}).map(function(t){return t.message})},Sn.prototype.countErrors=function(e){return _r.isUndefined(e)?this.errors.length:this.errors.filter(function(t){return e===t.field}).length},Sn.prototype.setValidating=function(e,t){if(!this.resetting){t=t||Sn.newValidatingId();var n=this.validatingRecords.filter(function(r){return r.field===e&&r.id===t});if(!_r.isEmpty(n))throw new Error("Validating id already set: "+t);return this.validatingRecords.push({field:e,id:t}),t}},Sn.prototype.resetValidating=function(e,t){if(!e){this.validatingRecords=[];return}function n(s){return _r.isUndefined(t)?!0:s.id===t}for(var r=!0;r;){for(var o=-1,i=0;i<this.validatingRecords.length;i++)if(this.validatingRecords[i].field===e&&n(this.validatingRecords[i])){o=i;break}o>=0?this.validatingRecords.splice(o,1):r=!1}},Sn.prototype.isValidating=function(e,t){function n(o){return _r.isUndefined(t)?!0:o.id===t}var r=this.validatingRecords.filter(function(o){return(_r.isUndefined(e)||o.field===e)&&n(o)});return!_r.isEmpty(r)},Sn.prototype.setPassed=function(e){this.resetting||AC(this.passedRecords,e)},Sn.prototype.resetPassed=function(e){TC(this.passedRecords,e)},Sn.prototype.isPassed=function(e){return IC(this.passedRecords,e)},Sn.prototype.setTouched=function(e){this.resetting||AC(this.touchedRecords,e)},Sn.prototype.resetTouched=function(e){TC(this.touchedRecords,e)},Sn.prototype.isTouched=function(e){return IC(this.touchedRecords,e)};function AC(e,t){var n=e.filter(function(r){return r.field===t});_r.isEmpty(n)?e.push({field:t,value:!0}):n[0].value=!0}function TC(e,t){if(!t){e.splice(0,e.length);return}var n=e.filter(function(r){return r.field===t});_r.isEmpty(n)||(n[0].value=!1)}function IC(e,t){var n=e.filter(function(r){return r.field===t});return!_r.isEmpty(n)&&n[0].value}Sn.prototype.reset=function(){this.sessionId++,this.errors=[],this.validatingRecords=[],this.passedRecords=[],this.touchedRecords=[],this._vm&&(this.resetting++,this._vm.$nextTick((function(){this.resetting--}).bind(this))),this.activated=!1},Sn.prototype.setError=function(e,t){if(!this.resetting){this.removeErrors(e),this.resetPassed(e);var n=_r.isArray(t)?t:[t],r=(function(l){var h=!1;return l.forEach(function(f){f&&(this.addError(e,f),h=!0)},this),h||this.setPassed(e),h}).bind(this),o=n.filter(function(l){return l&&l.then}).length>0;if(o){this.resetValidating(e);var i=this.setValidating(e),s=(function(){this.resetValidating(e,i)}).bind(this);return X0.all(n).then((function(l){return this.isValidating(e,i)?r(l):!1}).bind(this)).then(function(l){return s(),l}).catch((function(l){return s(),X0.reject(l)}).bind(this))}else return X0.resolve(r(n))}},Sn.prototype.checkRule=function(e){if(!this.resetting)return this.setError(e._field,e._messages)};var Tte=0;Sn.newValidatingId=function(){return(++Tte).toString()};var kC=Sn,xt=Fc;function un(e){this._field="",this._value=void 0,this._messages=[],e?(this.templates={},Object.keys(xt.templates).forEach((function(t){this.templates[t]=xt.templates[t]}).bind(this)),Object.keys(e).forEach((function(t){this.templates[t]=e[t]}).bind(this))):this.templates=xt.templates}un.prototype.field=function(e){return this._field=e,this},un.prototype.value=function(e){return this._value=e,this},un.prototype.custom=function(e,t){var n=t?e.call(t):e();if(n){if(n.then){var r=this;n=Promise.resolve(n).then(function(o){return o}).catch(function(o){return console.error(o.toString()),r.templates.error})}this._messages.push(n)}return this},un.prototype._checkValue=function(){if(this._value===void 0)throw new Error("Validator.value not set");return this._value},un.prototype.required=function(e){var t=this._checkValue();return xt.isEmpty(t)&&this._messages.push(e||this.templates.required),this},un.prototype.float=function(e){var t=this._checkValue(),n=/^([-+])?([0-9]+(\.[0-9]+)?|Infinity)$/;return!xt.isEmpty(t)&&!n.test(t)&&this._messages.push(e||this.templates.float),this},un.prototype.integer=function(e){var t=this._checkValue(),n=/^([-+])?([0-9]+|Infinity)$/;return!xt.isEmpty(t)&&!n.test(t)&&this._messages.push(e||this.templates.integer),this},un.prototype.lessThan=function(e,t){var n=this._checkValue();if(!xt.isEmpty(n)){var r=parseFloat(n);xt.isNaN(r)?this._messages.push(t||this.templates.number):r>=e&&this._messages.push(t||xt.format(this.templates.lessThan,e))}return this},un.prototype.lessThanOrEqualTo=function(e,t){var n=this._checkValue();if(!xt.isEmpty(n)){var r=parseFloat(n);xt.isNaN(r)?this._messages.push(t||this.templates.number):r>e&&this._messages.push(t||xt.format(this.templates.lessThanOrEqualTo,e))}return this},un.prototype.greaterThan=function(e,t){var n=this._checkValue();if(!xt.isEmpty(n)){var r=parseFloat(n);xt.isNaN(r)?this._messages.push(t||this.templates.number):r<=e&&this._messages.push(t||xt.format(this.templates.greaterThan,e))}return this},un.prototype.greaterThanOrEqualTo=function(e,t){var n=this._checkValue();if(!xt.isEmpty(n)){var r=parseFloat(n);xt.isNaN(r)?this._messages.push(t||this.templates.number):r<e&&this._messages.push(t||xt.format(this.templates.greaterThanOrEqualTo,e))}return this},un.prototype.between=function(e,t,n){var r=this._checkValue();if(!xt.isEmpty(r)){var o=parseFloat(r);xt.isNaN(o)?this._messages.push(n||this.templates.number):(o<e||o>t)&&this._messages.push(n||xt.format(this.templates.between,e,t))}return this},un.prototype.size=function(e,t){var n=this._checkValue();return!xt.isEmpty(n)&&xt.isArray(n)&&n.length!==e&&this._messages.push(t||xt.format(this.templates.size,e)),this},un.prototype.length=function(e,t){var n=this._checkValue();return!xt.isEmpty(n)&&String(n).length!==e&&this._messages.push(t||xt.format(this.templates.length,e)),this},un.prototype.minLength=function(e,t){var n=this._checkValue();return!xt.isEmpty(n)&&String(n).length<e&&this._messages.push(t||xt.format(this.templates.minLength,e)),this},un.prototype.maxLength=function(e,t){var n=this._checkValue();return!xt.isEmpty(n)&&String(n).length>e&&this._messages.push(t||xt.format(this.templates.maxLength,e)),this},un.prototype.lengthBetween=function(e,t,n){var r=this._checkValue();if(!xt.isEmpty(r)){var o=String(r);(o.length<e||o.length>t)&&this._messages.push(n||xt.format(this.templates.lengthBetween,e,t))}return this},un.prototype.in=function(e,t){var n=this._checkValue();return!xt.isEmpty(n)&&e.indexOf(n)<0&&this._messages.push(t||xt.format(this.templates.in,this.templates.optionCombiner(e))),this},un.prototype.notIn=function(e,t){var n=this._checkValue();return!xt.isEmpty(n)&&e.indexOf(n)>=0&&this._messages.push(t||xt.format(this.templates.notIn,this.templates.optionCombiner(e))),this},un.prototype.match=function(e,t){var n=this._checkValue();return!xt.isEmpty(n)&&n!==e&&this._messages.push(t||this.templates.match),this},un.prototype.regex=function(e,t){var n=this._checkValue();return xt.isEmpty(n)||(xt.isString(e)&&(e=new RegExp(e)),e.test(n)||this._messages.push(t||this.templates.regex)),this},un.prototype.digit=function(e){return this.regex(/^\d*$/,e||this.templates.digit)},un.prototype.email=function(e){return this.regex(/^(([^<>()\[\]\\.,;:\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,}))$/,e||this.templates.email)},un.prototype.url=function(e){return this.regex(/(http|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:\/~+#-]*[\w@?^=%&amp;\/~+#-])?/,e||this.templates.url)},un.prototype.hasImmediateError=function(){for(var e=0;e<this._messages.length;e++)if(this._messages[e]&&!this._messages[e].then)return!0;return!1};var PC=un,NC=Fc,DC=PC,FC=RC();FC.create=function(e){return RC(e)};function RC(e){e=e||{};var t={};return Object.keys(DC.prototype).forEach(function(n){t[n]=function(){var r=new DC(e.templates);return r[n].apply(r,arguments)}}),t.isEmpty=NC.isEmpty,t.format=NC.format,t}var Ite=FC,ur=Fc,kte=kC,Z0={Promise:null,beforeMount:function(){this.$setValidators(this.$options.validators),this.validation&&this.validation._setVM(this)},beforeDestroy:function(){BC(this.$options.validatorsUnwatchCallbacks)}
984,data:function(){return this.$options.validators?{validation:new kte}:{}},methods:{$setValidators:function(e){BC(this.$options.validatorsUnwatchCallbacks);var t={};this.$options.validateMethods=t;var n=[];this.$options.validatorsUnwatchCallbacks=n,e&&Object.keys(e).forEach(function(r){var o=r.split(",");o=o.map(function(k){return k.trim()});var i=o.map(function(k){return Pte(this,k)},this),s=e[r],l={};if(ur.isFunction(s)||(l=ur.omit(s,"validator"),s=s.validator),l.cache){var h=l.cache==="last"?"last":"all";s=Dte(s,h)}var f=this.validation,g=(function(){if(ur.mode==="conservative"&&!f.activated)return Rc().resolve(!1);var k=i.map(function(N){return N()}),U=s.apply(this,k);return U?(U._field||U.field(o[0]),this.validation.checkRule(U)):Rc().resolve(!1)}).bind(this);t[o[0]]=g;var w=g;if(l.debounce){var E=(function(){return E.sessionId!==this.validation.sessionId?Rc().resolve(!1):g.apply(this,arguments)}).bind(this),C=ur.debounce(E,parseInt(l.debounce)),A=o[0];w=(function(){this.validation.resetPassed(A),E.sessionId=this.validation.sessionId,C.apply(this,arguments)}).bind(this)}ur.mode!=="manual"&&Nte(this,o,w).forEach(function(k){n.push(k)})},this)},$validate:function(e){if(this.validation._validate)return this.validation._validate;this.validation.activated=!0;var t=this.$options.validateMethods;if(ur.isUndefined(e)?t=Object.keys(t).map(function(r){return t[r]}):(e=ur.isArray(e)?e:[e],t=e.map(function(r){return t[r]})),ur.isEmpty(t))return Rc().resolve(!0);var n=(function(){this.validation._validate=null}).bind(this);return this.validation._validate=Rc().all(t.map(function(r){return r()})).then((function(r){return n(),r.filter(function(o){return!!o}).length<=0}).bind(this)).catch(function(r){throw n(),r}),this.validation._validate}}};function BC(e){e&&e.forEach(function(t){t()})}function Pte(e,t){var n=t.split(".");return function(){for(var r=e,o=0;o<n.length&&!(ur.isNull(r)||ur.isUndefined(r));o++)r=r[n[o]];return r}}function Nte(e,t,n){return t.map(function(r){return e.$watch(r,function(){e.validation.setTouched(r),n.call()})})}function Dte(e,t){return function(){var n=e.cache;n||(n=[],e.cache=n);var r=Array.prototype.slice.call(arguments),o=Fte(n,r);if(!ur.isUndefined(o))return o;var i=e.apply(this,r);if(!ur.isUndefined(i))return i.then?i.tab(function(s){ur.isUndefined(s)||(t!=="all"&&n.splice(0,n.length),n.push({args:r,result:s}))}):(t!=="all"&&n.splice(0,n.length),n.push({args:r,result:i}),i)}}function Rc(){return Z0.Promise?Z0.Promise:tf.Promise}function Fte(e,t){var n=e.filter(function(r){return ur.isEqual(t,r.args)});if(!ur.isEmpty(n))return n[0].result}var Rte=Z0,Bte=kC,Ote=PC,Ute=Ite,Q0=Rte,OC=Fc;function $te(e,t){e.mixin(Q0),t&&t.templates&&UC(t.templates),t&&t.mode&&$C(t.mode),t&&t.Promise&&(Q0.Promise=t.Promise)}function UC(e){Object.keys(e).forEach(function(t){OC.templates[t]=e[t]})}function $C(e){if(e!=="interactive"&&e!=="conservative"&&e!=="manual")throw new Error("Invalid mode: "+e);OC.mode=e}Fi.name="SimpleVueValidator",Fi.ValidationBag=Bte,Fi.Rule=Ote,Fi.Validator=Ute,Fi.mixin=Q0,Fi.install=$te,Fi.extendTemplates=UC,Fi.setMode=$C;const cfe="",Mte={props:{initialFieldValue:{type:String,default:""},hasError:{type:Boolean,default:!1},errorText:{type:String,default:""},type:{type:String,default:"text"},placeHolder:{type:String,default:""},additionalClass:{type:String,default:""},includeLabel:{type:Boolean,default:!1}},data:function(){return{fieldValue:"",inputClass:"form-control",hasChanged:!1}},mounted:function(){this.additionalClass&&(this.inputClass=this.inputClass+" "+this.additionalClass),this.fieldValue=this.initialFieldValue,this.$nextTick(()=>this.hasChanged=!1)},watch:{fieldValue:function(e){this.hasChanged=!0,this.$emit("valueChanged",e)}},computed:{hasErrorProp:function(){return this.hasError},errorTextProp:function(){return this.errorText}}},Lte=["for"],Vte=["id","type","placeholder"],jte={class:"fas fa-exclamation-circle bg-white input-info-icon text-danger"},zte={class:"fas fa-check-circle bg-white input-info-icon text-success"},Hte={class:"error-message text-left"};function Gte(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("label",{for:n.placeHolder},a.toDisplayString(n.placeHolder),9,Lte),[[a.vShow,n.includeLabel]]),a.withDirectives(a.createElementVNode("input",{id:n.placeHolder,"onUpdate:modelValue":t[0]||(t[0]=s=>e.fieldValue=s),type:n.type,class:a.normalizeClass([{"border-danger validation-invalid":i.hasErrorProp},{"border-success validation-valid":!i.hasErrorProp&&e.hasChanged},e.inputClass]),placeholder:n.placeHolder},null,10,Vte),[[a.vModelDynamic,e.fieldValue]]),a.withDirectives(a.createElementVNode("span",jte,null,512),[[a.vShow,i.hasErrorProp]]),a.withDirectives(a.createElementVNode("span",zte,null,512),[[a.vShow,!i.hasErrorProp&&e.hasChanged]]),a.createElementVNode("div",Hte,a.toDisplayString(i.errorTextProp),1)])}const Wte=Ft(Mte,[["render",Gte]]),lfe="";var MC=Fi.Validator;const qte={name:"TeamDetails",components:{GfInput:Wte},setup(){a.getCurrentInstance().appContext.app.use(Fi)},data(){return{store:at,defaultTeamTarget:"800",teamName:"",teamTarget:"",createIndividualPage:at.state.details_team.createIndividualPage}},watch:{teamName:function(e){e.length>=1?this.store.commit("teamNameChange",e):this.store.commit("teamNameChange",""),this.check_selected_detail()},teamTarget:function(e){this.isTargetValid(e)?this.store.commit("teamTargetChange",e):this.store.commit("teamTargetChange",""),this.check_selected_detail()},createIndividualPage:function(e){this.store.commit("createIndividualPageChange",e)}},created(){this.teamName=this.store.state.details_team.teamName,!this.teamTarget||this.teamTarget===""?this.teamTarget=this.defaultTeamTarget:this.teamTarget=this.store.state.details_team.teamTarget},methods:{check_selected_detail(){this.teamName!=""||this.teamTarget!=""?this.store.commit("selected_details","details_team"):this.store.commit("selected_details","")},isTargetValid:function(e){return/^[0-9]+(\.)?[0-9]*$/.test(e)},next_step(){var e=this;this.$validate().then(function(t){t&&(e.store.state.selected_charity==""?e.$router.push({name:"charity_team"}):e.store.state.selected_event==""?e.$router.push({name:"Event_team"}):e.$router.push({name:"complete_team"}))})}},validators:{teamName:function(e){return MC.value(e).required("You must enter a team name.").maxLength(20,"Name can not exceed 20 characters.")},teamTarget:function(e){return MC.value(e).required().float().lessThan(9999999,"Target must be less than $9,999,999")}}},Bd=e=>(a.pushScopeId("data-v-45b24456"),e=e(),a.popScopeId(),e),Kte={class:"col-12 p-0"},Yte={class:"form-detail-nameteam"},Jte={class:"form-group"},Xte=Bd(()=>a.createElementVNode("label",{for:"teamName",class:"font-weight-bold"},"Team Name",-1)),Zte={class:"form-group"},Qte=Bd(()=>a.createElementVNode("label",{class:"font-weight-bold"},"Team Target",-1)),ene=Bd(()=>a.createElementVNode("span",{class:"currencyInput"},"$",-1)),tne={class:"form-group pt-2"},nne={class:"checkbox-container"},rne=Bd(()=>a.createElementVNode("span",{class:"checkmark"},null,-1));function ine(e,t,n,r,o,i){const s=a.resolveComponent("GfInput");return a.openBlock(),a.createElementBlock("div",Kte,[a.createElementVNode("form",Yte,[a.createElementVNode("div",Jte,[Xte,a.createVNode(s,{type:"text","initial-field-value":"","place-holder":"Enter team name","has-error":e.validation.hasError("teamName"),"error-text":e.validation.firstError("teamName"),onValueChanged:t[0]||(t[0]=l=>o.teamName=l)},null,8,["has-error","error-text"])]),a.createElementVNode("div",Zte,[Qte,a.createElementVNode("div",null,[ene,a.createVNode(s,{type:"text","additional-class":"pl-3","initial-field-value":o.defaultTeamTarget,"place-holder":"Team Target","has-error":e.validation.hasError("teamTarget"),"error-text":e.validation.firstError("teamTarget"),onValueChanged:t[1]||(t[1]=l=>o.teamTarget=l)},null,8,["initial-field-value","has-error","error-text"])])]),a.createElementVNode("div",tne,[a.createElementVNode("label",nne,[a.createTextVNode("  Also create an individual page? "),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=l=>o.createIndividualPage=l),type:"checkbox"},null,512),[[a.vModelCheckbox,o.createIndividualPage]]),rne])])])])}const one=Ft(qte,[["render",ine],["__scopeId","data-v-45b24456"]]),ffe="",dfe="",ane={name:"TeamComplete",components:{Logged:ig,TeamDetails:one,GfLoginModule:Y0,Loader:Iu},mixins:[og],data(){return{useImagePlugin:Ql}},async mounted(){this.pageType="T",this.teamId=0,this.charityId=this.store.state.selected_charity.benef
984iciaryId,this.eventCampaignId=this.store.state.selected_event.EventCampaignId,this.teamName=this.store.state.details_team.teamName,this.createIndividualPageForTeam=this.store.state.createIndividualPage;try{await this.$_createFundraisingPageMixin_loadVueAnalytics()}catch{console.log("Failed to load google Analytics.")}}},sne={class:"row et_row_complete text-center p-0 py-4 cpl-event col-12 col-md-6 m-auto"},une={class:"col-6"},cne=["title"],lne=["src"],fne={class:"col-6"},dne=["title"],hne=["src"],pne={key:0,class:"row col-lg-6 mt-4 m-auto"},gne={class:"col m-auto"},mne={class:"gf-connect-fb"},yne={key:0,class:"eb-pt-row-login"},vne={class:"row justify-content-md-center mx-1 mt-3"},_ne={class:"col bgr-main"};function wne(e,t,n,r,o,i){const s=a.resolveComponent("TeamDetails"),l=a.resolveComponent("Logged"),h=a.resolveComponent("Loader"),f=a.resolveComponent("GfLoginModule");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",sne,[a.createElementVNode("div",une,[a.createElementVNode("div",{title:e.store.state.selected_charity.BeneficiaryName,class:"card border-0 hv-100 bg-transparent"},[a.createElementVNode("img",{src:e.store.state.selected_charity.BeneficiaryImagePath,class:"card-img-top img-fluid",alt:""},null,8,lne)],8,cne),a.createElementVNode("p",null,a.toDisplayString(e.store.state.selected_charity.BeneficiaryName),1)]),a.createElementVNode("div",fne,[a.createElementVNode("div",{title:e.store.state.selected_event.EventName,class:"card border-0 hv-100 bg-transparent"},[a.createElementVNode("img",{src:o.useImagePlugin().getImageWithResolution(e.store.state.selected_event.EventImagePath,1e3),class:"card-img-top img-fluid"},null,8,hne)],8,dne),a.createElementVNode("p",null,a.toDisplayString(e.store.state.selected_event.EventName),1)])]),e.store.state.userIsActivatingCreatedPage?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",pne,[a.createVNode(s)])),a.createElementVNode("div",gne,[a.createElementVNode("div",mne,[e.store.state.userLogon?(a.openBlock(),a.createElementBlock("div",yne,[a.createElementVNode("div",vne,[a.createElementVNode("div",_ne,[a.renderSlot(e.$slots,"terms",{},void 0,!0),a.createVNode(l)])])])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(h,{show:e.store.state.creatingPage},null,8,["show"]),a.createVNode(f,{"custom-container-class":"col","provider-details":e.providerDetails,"captcha-public-key":e.captchaPublicKey,facebook:e.facebookAuth,onLoggedIn:e.$_createFundraisingPageMixin_onLoggedIn,"disable-redirect":!0,"is-page-create":!0,"register-url":e.registerUrl,template:"tab"},{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms",{},void 0,!0)]),_:3},8,["provider-details","captcha-public-key","facebook","onLoggedIn","register-url"])],64))])])])}const bne=Ft(ane,[["render",wne],["__scopeId","data-v-04e27ea1"]]),Ene={name:"JoinTeam",mixins:[ap],data(){return{items_navigation:[{name:"Select Team",faIconClass:"fas fa-users",link_router:"select_team",class:"gf-ft"},{name:"Complete",faIconClass:"far fa-check-circle",link_router:"complete_jointeam",class:"gf-ft"}]}}},Sne={class:"container"},Cne={class:"row justify-content-md-center"},xne={class:"col-12 text-center px-0"},Ane={class:"row"},Tne={class:"col-12"},Ine=[a.createElementVNode("i",{class:"fas fa-chevron-circle-left"},null,-1),a.createElementVNode("span",null," Back",-1)],kne={class:"col-12 col-md-8 col-lg-6 m-auto pb-2 png-wrap"},Pne={class:"nav nav-fill row"},Nne=[a.createElementVNode("p",{class:"pag-gap d-none d-sm-none d-md-block my-1"},"----------",-1)],Dne={class:"col-12 px-0 pt-1"};function Fne(e,t,n,r,o,i){const s=a.resolveComponent("router-link"),l=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",Sne,[a.createElementVNode("div",Cne,[a.createElementVNode("div",xne,[a.createElementVNode("div",Ane,[a.createElementVNode("div",Tne,[a.createElementVNode("div",{class:"float-left back-btn driver-colour font-weight-bold",onClick:t[0]||(t[0]=h=>e.$_navigationMixin_navigateBack())},Ine)]),a.createElementVNode("div",kne,[a.createElementVNode("ul",Pne,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.items_navigation,h=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h.name},[a.createElementVNode("li",{class:a.normalizeClass(["nav-item font-weight-bold nav-breadcrumbs","nav-item-"+h.name.toLowerCase(),h.class,h.link_router==e.$route.name?"active":"",e.$_navigationMixin_linkIsDisabled(h)?"disabled":"",e.$_navigationMixin_itemSelected(h)?"selected":""])},[a.createVNode(s,{class:"nav-link",to:{name:h.link_router,params:{}}},{default:a.withCtx(()=>[a.createElementVNode("i",{class:a.normalizeClass(h.faIconClass)}," ",2),a.createTextVNode(a.toDisplayString(h.name),1)]),_:2},1032,["to"])],2),a.withDirectives(a.createElementVNode("li",null,Nne,512),[[a.vShow,h.name!="Complete"]])],64))),128))])])])]),a.createElementVNode("div",Dne,[a.createVNode(l,null,{default:a.withCtx(({Component:h})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h),null,{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms")]),_:2},1024))]),_:3})])])])}const Rne=Ft(Ene,[["render",Fne]]),Bne={directives:{ClickOutside:eg},mixins:[ha],data(){return{ValueEnterSearch:!1,LazyLoading:!1,LoadingSearch:!1,text_search_jointeam:"",data_jointeam:"",page_number:1,store:at}},computed:{res_data_jointeam:{get:function(){return this.data_jointeam},set:function(e){e!=null&&(this.data_jointeam=this.data_jointeam.concat(e))}}},watch:{text_search_jointeam:function(e){let t=this;e!=""?(t.LoadingSearch=!0,t.ValueEnterSearch=!0):(t.LoadingSearch=!1,t.ValueEnterSearch=!1);
984let n={params:{region:t.store.state.region,query:t.text_search_jointeam,eventcampaignid:t.store.state.selected_event.EventCampaignId}};this.get_data_jointeam(n).then(function(r){t.data_jointeam=r.data.Pages}).then(function(){t.LoadingSearch=!1}),this.store.commit("res_text_search_jointeam",e)}},created(){var e=this;this.LazyLoading=!0,this.text_search_jointeam=this.store.state.search_join_team;let t={params:{region:e.store.state.region,query:e.text_search_jointeam,eventcampaignid:e.store.state.selected_event.EventCampaignId}};t=this.passParamsExternal(t),this.get_data_jointeam(t).then(function(n){e.page_number=n.data.PageNumber+1,e.data_jointeam=n.data.Pages}).then(function(){e.LazyLoading=!1,e.ValueEnterSearch=!1,e.scroll_loading_more_data()})},methods:{hideAutoCompleteSearchResults:function(){this.ValueEnterSearch=!1},async get_data_jointeam(e){var t=await kn.get(this.store.state.apiDomain+"/v1/pages/search?pagetype=T&excludepageswithrestrictedcreation=true",e);return t},passParamsExternal(e){return this.store.state.referrer!=""&&(e.params.externalidtype=this.store.state.referrer),this.store.state.externalId!=""&&(e.params.externalid=this.store.state.externalId),e},scroll_loading_more_data(){var e=this;window.addEventListener("scroll",function(){if(document.getElementById("scroll-loader-jointeam")){var t=document.getElementById("scroll-loader-jointeam"),n=t.offsetTop,r=t.offsetHeight,o=window.innerHeight,i=window.scrollY;if(i>n+r-o&&!e.LazyLoading){e.LazyLoading=!0;var s={params:{region:e.store.state.region,query:e.text_search_jointeam,eventcampaignid:e.store.state.selected_event.EventCampaignId,pageindex:e.page_number}};s=e.passParamsExternal(s),e.get_data_jointeam(s).then(function(l){e.page_number=l.data.PageNumber+1,e.res_data_jointeam=l.data.Pages}).then(function(){e.LazyLoading=!1})}}})},KeyupClickRegion_jointeam(e){var t=this;let n={params:{region:t.store.state.region,query:e,eventcampaignid:t.store.state.selected_event.EventCampaignId}};n=this.passParamsExternal(n),this.get_data_jointeam(n).then(function(r){t.text_search_jointeam=r.data.Pages[0].CreatorName,t.data_jointeam=r.data.Pages}).then(function(){t.ValueEnterSearch=!1})},toComplete(e){this.analytics({event:"create_page",createType:"team_member",stepNumber:"2 of 3",stepName:"select team",teamId:e.Id}),this.store.commit("change_event",{EventCampaignId:e.Event.EventCampaignId,EventName:e.Event.EventName,EventImagePath:e.Event.EventImagePath,EventUrl:e.Event.EventUrl,Router_Name:this.$route.name}),this.store.commit("change_jointeam_data",{page:e,Router_Name:this.$route.name}),this.$router.push({name:"complete_jointeam"})},removePageStore(){this.store.commit("change_jointeam_data","")}}},One={class:"container mb-2 card_box"},Une={class:"row"},$ne={class:"col-md-8 m-auto"},Mne={class:"input-group"},Lne=a.createElementVNode("label",{for:"Search",style:{display:"none"}},"Search",-1),Vne=a.createElementVNode("span",{class:"input-group-btn"},[a.createElementVNode("button",{class:"btn btn-search rounded-0",type:"button"},[a.createElementVNode("span",{style:{display:"none"}},"Search")])],-1),jne={key:0,class:"image_loading_search"},zne=[a.createElementVNode("img",{src:"https://www.gofundraise.com.au/Content/images/loader-orange.gif",alt:""},null,-1)],Hne={key:1,class:"search_result"},Gne={class:"list-unstyled"},Wne=["onClick"],qne={class:"row text-center content-team mt-3"},Kne={class:a.normalizeClass(["row w-100 m-auto"])},Yne=["onClick"],Jne=["title"],Xne={class:"success_hv"},Zne={class:"remove_item_card"},Qne={class:"square_item"},ere={class:"content"},tre={class:"table"},nre={class:"table-cell p-4 align-middle"},rre=["src"],ire={class:"card-body"},ore={class:"card-text"},are={class:"lazy-load"},sre=[a.createElementVNode("img",{src:"https://www.gofundraise.com.au/Content/images/loader-orange.gif",alt:""},null,-1)],ure=a.createElementVNode("div",{class:"row w-100"},[a.createElementVNode("div",{id:"scroll-loader-jointeam"})],-1);function cre(e,t,n,r,o,i){const s=a.resolveDirective("click-outside");return a.openBlock(),a.createElementBlock("div",One,[a.createElementVNode("div",Une,[a.createElementVNode("div",$ne,[a.createElementVNode("div",Mne,[Lne,a.withDirectives(a.createElementVNode("input",{id:"Search","onUpdate:modelValue":t[0]||(t[0]=l=>o.text_search_jointeam=l),type:"text",class:"form-control et-gf-search",placeholder:"Search"},null,512),[[a.vModelText,o.text_search_jointeam]]),Vne]),o.LoadingSearch?(a.openBlock(),a.createElementBlock("span",jne,zne)):a.createCommentVNode("",!0),o.ValueEnterSearch?a.withDirectives((a.openBlock(),a.createElementBlock("div",Hne,[a.createElementVNode("ul",Gne,[e.index<3?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(i.res_data_jointeam,(l,h)=>(a.openBlock(),a.createElementBlock("li",{onClick:f=>i.KeyupClickRegion_jointeam(l.CreatorName)},a.toDisplayString(l.CreatorName),9,Wne))),256)):a.createCommentVNode("",!0)])])),[[
984s,i.hideAutoCompleteSearchResults]]):a.createCommentVNode("",!0)])]),a.createElementVNode("div",qne,[a.createElementVNode("div",Kne,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.res_data_jointeam,l=>(a.openBlock(),a.createElementBlock("div",{class:"col-md-3 col-6 wow bounceInUp mb-3",onClick:h=>o.store.state.selected_teampage==""||o.store.state.selected_teampage.page.Id!=l.Id?i.toComplete(l):i.removePageStore()},[a.createElementVNode("div",{title:l.PageTitle,class:a.normalizeClass(["card",o.store.state.selected_teampage!=""&&o.store.state.selected_teampage.page.Id==l.Id?"card_selected":""])},[a.withDirectives(a.createElementVNode("span",Xne,null,512),[[a.vShow,o.store.state.selected_teampage!=""&&o.store.state.selected_teampage.page.Id!=l.Id]]),a.withDirectives(a.createElementVNode("span",Zne,null,512),[[a.vShow,o.store.state.selected_teampage!=""&&o.store.state.selected_teampage.page.Id==l.Id]]),a.createElementVNode("div",Qne,[a.createElementVNode("div",ere,[a.createElementVNode("div",tre,[a.createElementVNode("div",nre,[a.createElementVNode("img",{class:"card-img-top px-1",src:l.ImagePath,alt:"Card image cap"},null,8,rre)])])])]),a.createElementVNode("div",ire,[a.createElementVNode("p",ore,a.toDisplayString(l.PageTitle),1)])],10,Jne)],8,Yne))),256)),a.withDirectives(a.createElementVNode("div",are,sre,512),[[a.vShow,o.LazyLoading]])]),ure])])}const lre=Ft(Bne,[["render",cre]]),vfe="",_fe="",fre={components:{Logged:ig,GfLoginModule:Y0,Loader:Iu},mixins:[og],data(){return{useImagePlugin:Ql}},async mounted(){this.pageType="S",this.teamId=this.store.state.selected_teampage.page.Id,this.charityId=this.store.state.selected_teampage.page.Beneficiary.BeneficiaryAccountId,this.eventCampaignId=this.store.state.selected_teampage.page.Event.EventCampaignId;try{await this.$_createFundraisingPageMixin_loadVueAnalytics()}catch{console.log("Failed to load google Analytics.")}}},dre={class:"row et_row_complete text-center p-0 py-4 cpl-event col-12 col-md-6 m-auto"},hre={class:"col-6"},pre=["title"],gre=["src"],mre={class:"col-6"},yre=["title"],vre=["src"],_re={class:"col m-auto"},wre={class:"gf-connect-fb"},bre={key:0,class:"eb-pt-row-login"},Ere={class:"row justify-content-md-center mx-1 mt-3"},Sre={class:"col bgr-main"};function Cre(e,t,n,r,o,i){const s=a.resolveComponent("Logged"),l=a.resolveComponent("Loader"),h=a.resolveComponent("GfLoginModule");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",dre,[a.createElementVNode("div",hre,[a.createElementVNode("div",{title:e.store.state.selected_teampage.page.Event.EventName,class:"card border-0 hv-100 bg-transparent"},[a.createElementVNode("img",{src:o.useImagePlugin().getImageWithResolution(e.store.state.selected_teampage.page.Event.EventImagePath,1e3),class:"card-img-top img-fluid",alt:""},null,8,gre)],8,pre),a.createElementVNode("p",null,a.toDisplayString(e.store.state.selected_teampage.page.Event.EventName),1)]),a.createElementVNode("div",mre,[a.createElementVNode("div",{title:e.store.state.selected_teampage.page.PageTitle,class:"card border-0 hv-100 bg-transparent"},[a.createElementVNode("img",{src:e.store.state.selected_teampage.page.ImagePath,class:"card-img-top img-fluid",alt:""},null,8,vre)],8,yre),a.createElementVNode("p",null,a.toDisplayString(e.store.state.selected_teampage.page.PageTitle),1)])]),a.createElementVNode("div",_re,[a.createElementVNode("div",wre,[e.store.state.userLogon?(a.openBlock(),a.createElementBlock("div",bre,[a.createElementVNode("div",Ere,[a.createElementVNode("div",Sre,[a.renderSlot(e.$slots,"terms",{},void 0,!0),a.createVNode(s)])])])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(l,{show:e.store.state.creatingPage},null,8,["show"]),a.createVNode(h,{"custom-container-class":"col","provider-details":e.providerDetails,"captcha-public-key":e.captchaPublicKey,facebook:e.facebookAuth,onLoggedIn:e.$_createFundraisingPageMixin_onLoggedIn,"disable-redirect":!0,"is-page-create":!0,"register-url":e.registerUrl,template:"tab"},{terms:a.withCtx(()=>[a.renderSlot(e.$slots,"terms",{},void 0,!0)]),_:3},8,["provider-details","captcha-public-key","facebook","onLoggedIn","register-url"])],64))])])])}const xre=Ft(fre,[["render",Cre],["__scopeId","data-v-d1df7f4c"]]),LC=(e,t,n)=>{if(at.state.data_params_pre.teamId==""){n();return}n(!1)},Are=[{path:"/",component:$2,name:"dashboard"}
984,{path:"/individual",component:X2,name:"index_individual",beforeEnter:LC,children:[{path:"charity",component:i5,name:"charity_individual",beforeEnter:(e,t,n)=>{at.state.data_params_pre.beneficiaryId!=""?at.state.data_params_pre.eventId!=""?n({name:"complete_individual"}):n({name:"event_individual"}):n()}},{path:"event",component:W5,name:"event_individual",beforeEnter:(e,t,n)=>{at.state.data_params_pre.eventId!=""?at.state.data_params_pre.beneficiaryId!=""?n({name:"complete_individual"}):n({name:"charity_individual"}):n()}},{path:"complete",component:ute,name:"complete_individual",beforeEnter:(e,t,n)=>{if(at.state.selected_charity!=""&&at.state.selected_event!=""){n();return}n(!1)}}]},{path:"/team",component:bte,name:"index_team",beforeEnter:LC,children:[{path:"charity",component:Cte,name:"charity_team",beforeEnter:(e,t,n)=>{at.state.data_params_pre.beneficiaryId!=""?at.state.data_params_pre.eventId!=""?n({name:"complete_team"}):n({name:"Event_team"}):n()}},{path:"event",component:xte,name:"Event_team",beforeEnter:(e,t,n)=>{at.state.data_params_pre.eventId!=""?at.state.data_params_pre.beneficiaryId!=""?n({name:"complete_team"}):n({name:"charity_team"}):n()}},{path:"complete",component:bne,name:"complete_team",beforeEnter:(e,t,n)=>{if(at.state.selected_charity!=""&&at.state.selected_event!=""){n();return}n(!1)}}]},{path:"/jointeam",component:Rne,name:"index_jointeam",children:[{path:"select_team",component:lre,name:"select_team"},{path:"complete",component:xre,name:"complete_jointeam",beforeEnter:(e,t,n)=>{if(at.state.selected_teampage!=""){n();return}n(!1)}}]}],VC=t2({history:tA(),routes:Are});function Tre(e={}){const t=e.scrollContainer||window;a.ref([]);const n=a.ref(!0),r=()=>{document.readyState==="interactive"||document.readyState==="complete"?o():document.addEventListener("DOMContentLoaded",o)},o=()=>{const i=()=>{n.value=!0},s=()=>{removeEvent(t,"scroll",i),removeEvent(window,"resize",i)};return a.onMounted(r),a.onUnmounted(s),{init:r,start:o,stop:s,sync:l=>{if(!MutationObserver.notSupported)return doSync(l)}}};return r}const ey=()=>{const e=Kn.get(at.state,"apiDomain","https://api.gofundraise.com"),t=Kn.get(at.state,"region","au");return{async searchWithParams(n){return n&&(n.region=t),await kn.get(e+"/v1/beneficiaries/search",{params:n})},async searchByEvent(n){return await this.searchWithParams({eventcampaignid:n})},async getBeneficiaryDetailsForEvent(n,r){return await this.searchWithParams({eventcampaignid:r,beneficiaryid:n})},async getBeneficiaryById(n){return await this.searchWithParams({beneficiaryid:n})}}},Ire=()=>{const e=Kn.get(at.state,"apiDomain","https://api.gofundraise.com"),t=Kn.get(at.state,"region","au");return{async getTeamPage(n){let r={params:{region:t,pageType:"T",excludepageswithrestrictedcreation:"true",pageid:n}},o="",i=await kn.get(`${e}/v1/pages/search`,r);return i.data.Pages&&i.data.Pages.length>0&&i.data.Pages[0].Id===n&&(o=i.data.Pages[0]),o},generateCreatePageUrl(){let n="",r=at.state.selected_event.EventCampaignId,o=at.state.selected_charity.beneficiaryId;return at.state.pageType!=="joinTeam"?n=`pagetype=${at.state.pageType==="createTeam"?"t":"s"}&eid=${r}&cid=${o}`:n=`tid=${at.state.selected_teampage.page.Id}`,at.state.referrer&&at.state.referrer!==""&&(n=`${n}&eidtype=${at.state.referrer}`),`/pages/create?${n}`}}},Sfe="",kre={props:{buttonThatAgreesText:{type:String,default:""}},data(){return{store:at}},methods:{openPage:function(e){window.open(e,"_blank")}},computed:{eventUrl:{get:function(){return this.store.state.selected_event.EventUrl.replace(/\/$/,"")}}}},jC=e=>(a.pushScopeId("data-v-32ef9c54"),e=e(),a.popScopeId(),e),Pre={class:"text-justify text-small"},Nre=jC(()=>a.createElementVNode("span",null," Terms & Conditions, ",-1)),Dre=jC(()=>a.createElementVNode("span",null," Policies",-1));function Fre(e,t,n,r,o,i){return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("h6",Pre,[a.createElementVNode("span",null,"By "+a.toDisplayString(n.buttonThatAgreesText)+" you are agreeing to the ",1),a.createElementVNode("span",{class:"link-underline",onClick:t[0]||(t[0]=s=>i.openPage(i.eventUrl+"/terms-of-use#EventTermsAndConditions"))},"Event"),a.createTextVNode(" & "),a.createElementVNode("span",{class:"link-un
984derline",onClick:t[1]||(t[1]=s=>i.openPage(i.eventUrl+"/terms-of-use#SiteTermsAndConditions"))},"Site"),Nre,a.createElementVNode("span",{class:"link-underline",onClick:t[2]||(t[2]=s=>i.openPage(i.eventUrl+"/privacy-policy"))},"Privacy"),a.createTextVNode(" & "),a.createElementVNode("span",{class:"link-underline",onClick:t[3]||(t[3]=s=>i.openPage(i.eventUrl+"/data-collection-policy"))},"Data Collection"),Dre])])}const Rre=Ft(kre,[["render",Fre],["__scopeId","data-v-32ef9c54"]]),Bre=()=>({getQueryParam:function(e){var t=new URL(window.location).searchParams.get(e);return t&&t!==""?t:null}}),Cfe="",Ore={name:"GfPagescreate",components:{TermsConditions:Rre},router:VC,store:at,props:{store:{type:Object,default:null},region:{type:String,default:""},regionId:{type:String,default:""},referrer:{type:String,default:""},captchaPublicKey:{type:String,default:""},registerUrl:{type:String,default:"/account/register"},beneficiaryId:{type:[String,Number],default:""},eventId:{type:[String,Number,Object],default:""},teamId:{type:[String,Number],default:""},user:{type:String,default:""},externalId:{type:String,default:""},apiDomain:{type:String,default:"https://api.au.awstest.gfrnetworks.com"},pageType:{type:String,default:""},activationId:{type:String,default:""},pageId:{type:String,default:""},authProvider:{type:Array,default:()=>[]},authFacebook:{type:Object,default:()=>({appId:"",scope:"",state:"",redirectUrl:""})},userName:{type:String,default:""}},setup(e){const t=e.store||at,{getQueryParam:n}=Bre();let r=a.getCurrentInstance().appContext.config.globalProperties;const o=()=>{Tre()(),a.getCurrentInstance().appContext.app.use(VC),a.getCurrentInstance().appContext.app.use(Bp),a.getCurrentInstance().appContext.app.use(at),a.getCurrentInstance().appContext.app.use(bi),ef().install()},i=async g=>{const w=await Ire().getTeamPage(g);w!==null?(t.commit("setPageType","joinTeam"),t.commit("change_jointeam_data",{page:w,Router_Name:"select_team"}),r.$router.push({name:"complete_jointeam"})):(t.commit("pre_TeamId",""),t.commit("setPageType","individual"),r.$router.push("/individual/charity"))},s=g=>{t.commit("pre_BeneficiaryId",g),t.commit("change_Beneficiary",{beneficiaryId:g.id,BeneficiaryName:g.name,BeneficiaryImagePath:g.ImagePath,Router_Name:"charity_individual"})},l=async()=>{var g;if(e.eventId&&e.eventId.id&&e.eventId.id!=""?g=await ey().getBeneficiaryDetailsForEvent(e.beneficiaryId,e.eventId.id):g=await ey().getBeneficiaryById(e.beneficiaryId),g.data&&g.data.ResultsReturned===1){var w={id:g.data.Beneficiaries[0].BeneficiaryAccountId,ImagePath:g.data.Beneficiaries[0].BeneficiaryImagePath,name:g.data.Beneficiaries[0].BeneficiaryName};s(w)}else t.commit("pre_BeneficiaryId","")},h=async()=>{var g=await ey().searchByEvent(e.eventId.id);if(g.data&&g.data.ResultsReturned===1){var w={id:g.data.Beneficiaries[0].BeneficiaryAccountId,ImagePath:g.data.Beneficiaries[0].BeneficiaryImagePath,name:g.data.Beneficiaries[0].BeneficiaryName};s(w)}},f=()=>{setTimeout(()=>{Zp.scrollTo("#vue-pagescreate","100",{easing:"ease-in",offset:-60,force:!0})},1e3)};return o(),a.onBeforeMount(async()=>{if(t.commit("setApiDomain",e.apiDomain),t.commit("setReferrer",n("eidtype")??e.referrer),e.region&&e.region.length>0&&t.commit("setRegion",e.region),e.regionId&&e.regionId.length>0&&t.commit("setRegionId",e.regionId),t.commit("setCaptchaKey",e.captchaPublicKey),e.registerUrl&&e.registerUrl.length>0&&t.commit("setRegisterUrl",e.registerUrl),e.authProvider&&e.authProvider.length>0&&t.commit("setAuthProvider",e.authProvider),e.authFacebook&&!Kn.isEmpty(e.authFacebook)&&(Kn.has(e.authFacebook,"appId")&&Kn.has(e.authFacebook,"scope")&&Kn.has(e.authFacebook,"redirectUrl")?t.commit("setAuthFacebook",e.authFacebook):r.$gfLogger.logInfo("Warning: authFacebook requires appId, scope, state and redirectUrl")),e.activationId&&e.activationId.length>0&&t.commit("setActivationId",e.activationId),e.pageId&&e.pageId.length>0&&t.commit("setPageId",e.pageId),n("tid")||e.teamId&&e.teamId!=""){var g=n("tid")??e.teamId;t.commit("pre_TeamId",g),await i(g),r.$gfLogger.logInfo("GfPagescreate.created(), teamId",g)}if(e.beneficiaryId&&e.beneficiaryId!==""&&await l(),e.eventId&&e.eventId.id!=""){var w=t.state.data_params_pre.beneficiaryId===""&&r.$router.currentRoute.value.path==="/";w&&await h(),t.commit("pre_EventId",e.eventId),t.commit("change_event",{EventCampaignId:t.state.data_params_pre.eventId.id,EventName:t.state.data_params_pre.eventId.name,EventImagePath:t.state.data_params_pre.eventId.ImagePath,EventUrl:window.location.origin,Router_Name:"event_individual"})}e.userName!=""&&(r.$gfLogger.logInfo("setting store.state.userLogon to",e.userName),t.commit("preUserLogin",e.userName)),e.externalId!=""&&t.commit("pre_ExternalId",e.externalId),e.login&&t.commit("pre_Login",e.login),r.$gfLogger.logInfo("GfPagescreate.created(), this.pageType",e.pageType);var E=n("pagetype")??e.pageType;E&&((E.toLowerCase()==="team"||E.toLowerCase()==="t")&&r.$router.push("/team/charity"),(E.toLowerCase()==="individual"||E.toLowerCase()==="s")&&r.$router.push("/indiv
984idual/charity")),t.commit("appReadyForUserInput")}),a.onMounted(()=>{f()}),{pagesCreateStore:t}}},Ure={id:"vue-pagescreate",class:"container px-0 mb-4"},$re={class:"row mx-0"},Mre={key:0,class:"mb-2"},Lre=["innerHTML"];function Vre(e,t,n,r,o,i){const s=a.resolveComponent("TermsConditions"),l=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",Ure,[a.createVNode(l,null,{default:a.withCtx(({Component:h})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h),null,{terms:a.withCtx(()=>[a.createElementVNode("div",$re,[r.pagesCreateStore.state.disclaimerText?(a.openBlock(),a.createElementBlock("div",Mre,[a.createElementVNode("div",{innerHTML:r.pagesCreateStore.state.disclaimerText,class:"text-justify text-small"},null,8,Lre)])):a.createCommentVNode("",!0),a.createVNode(s,{"button-that-agrees-text":"Logging in, Registering or Creating a page"})])]),_:2},1024))]),_:1})])}return Ft(Ore,[["render",Vre]])});
985//# sourceMappingURL=GfPagescreate.umd.js.map

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.