import{r as zb,g as Rb,n as Wh,f as T2,d as Ea,k as ic,i as ql,c as Mp,Z as $2,h as Pb,E as Nb,b as Mb,p as Gh,u as rd,m as Lb,l as xb,j as Ob,e as Fb,L as wo,a as ba,t as x0,G as Lp,T as Hc}from"./vendor-DQ1VAT87.js";function Cre(){import.meta.url,import("_").catch(()=>1),(async function*(){})().next()}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function e(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(s){if(s.ep)return;s.ep=!0;const a=e(s);fetch(s.href,a)}})();const Ms={POPUP:"popup",STANDARD:"standard"},Hr={EGP:"EGP",XOF:"XOF",NGN:"NGN",KES:"KES",GHS:"GHS",USD:"USD",GBP:"GBP"},Cl={ENGLISH:"en",FRENCH:"fr",ARABIC:"ar"},ua={COTE_D_IVOIRE:"CI",GHANA:"GH",KENYA:"KE",NIGERIA:"NG",SOUTH_AFRICA:"ZA",EGYPT:"EG"},Ca={XOF:ua.COTE_D_IVOIRE,GHS:ua.GHANA,KES:ua.KENYA,NGN:ua.NIGERIA,ZAR:ua.SOUTH_AFRICA,EGP:ua.EGYPT},Db=["BJ","BF","CI","GW","ML","NE","SN","TG"],Vb=[Hr.NGN],Bb=[Hr.USD,Hr.GBP],Ub=[Hr.NGN,Hr.GHS],Wl={EGP:[Cl.ENGLISH,Cl.ARABIC],XOF:[Cl.ENGLISH,Cl.FRENCH]},On={SUCCESS:"success",PENDING:"pending",FAILED:"failed",REQUERY:"requery",ABANDONED:"abandoned"},jh={AUTHORIZED:"authorized"},w3={"033":{acronym:"UBA"},214:{acronym:"FCMB"}},Or={CARD:"card",BANK:"bank"},Hb={"058":{acronym:"GTB"},...w3},k3={BANK_VAULT:"bank_vault_error"},Zh={BANK_VALIDATION_MISMATCH:"validation match failed",INCORRECT_AMOUNT_SENT:"incorrect amount sent"},lu="user-language",dr={EFT_CHANNELS:"eft_channels",OZOW:"eft",CAPITEC_PAY:"capitec_pay"},oc=Object.values(dr),Kh={SUCCESS:"success"},qb={mpesa:Hr.KES,mptill:Hr.KES,atl_ke:Hr.KES},Wb={USD:"$",GBP:"£",EUR:"€",CAD:"CA$",NGN:"₦",KES:"KSh"};window.dataLayer=window.dataLayer||[];window.languageStorageKey=lu;function Yh(){window.dataLayer.push(arguments)}Yh("js",new Date);Yh("config","G-0WCTF5FP66");window.gtag=Yh;const Gb=window.parent.location!==window.location;Gb&&document.getElementById("root").classList.add("root--in-iframe");typeof Array.prototype.at!="function"&&(Array.prototype.at=function(t){const r=this.length,e=Math.trunc(t)||0,n=e>=0?e:r+e;return n<0||n>=r?void 0:this[n]});typeof Promise.prototype.finally!="function"&&(Promise.prototype.finally=function(t){const r=this.constructor;return this.then(e=>r.resolve(t()).then(()=>e),e=>r.resolve(t()).then(()=>{throw e}))});/** * @vue/shared v3.5.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Qh(t){const r=Object.create(null);for(const e of t.split(","))r[e]=1;return e=>e in r}const sn={},_o=[],qs=()=>{},S3=()=>!1,sd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ad=t=>t.startsWith("onUpdate:"),jn=Object.assign,Jh=(t,r)=>{const e=t.indexOf(r);e>-1&&t.splice(e,1)},jb=Object.prototype.hasOwnProperty,Jt=(t,r)=>jb.call(t,r),kt=Array.isArray,go=t=>Fo(t)==="[object Map]",Oo=t=>Fo(t)==="[object Set]",xp=t=>Fo(t)==="[object Date]",Zb=t=>Fo(t)==="[object RegExp]",Nt=t=>typeof t=="function",_n=t=>typeof t=="string",jr=t=>typeof t=="symbol",Xt=t=>t!==null&&typeof t=="object",E3=t=>(Xt(t)||Nt(t))&&Nt(t.then)&&Nt(t.catch),T3=Object.prototype.toString,Fo=t=>T3.call(t),Kb=t=>Fo(t).slice(8,-1),$3=t=>Fo(t)==="[object Object]",id=t=>_n(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Rl=Qh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),od=t=>{const r=Object.create(null);return(e=>r[e]||(r[e]=t(e)))},Yb=/-\w/g,Er=od(t=>t.replace(Yb,r=>r.slice(1).toUpperCase())),Qb=/\B([A-Z])/g,Fi=od(t=>t.replace(Qb,"-$1").toLowerCase()),ld=od(t=>t.charAt(0).toUpperCase()+t.slice(1)),O0=od(t=>t?"on".concat(ld(t)):""),Ds=(t,r)=>!Object.is(t,r),vo=(t,...r)=>{for(let e=0;e{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,writable:n,value:e})},cd=t=>{const r=parseFloat(t);return isNaN(r)?t:r},Jb=t=>{const r=_n(t)?Number(t):NaN;return isNaN(r)?t:r};let Op;const ud=()=>Op||(Op=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ko(t){if(kt(t)){const r={};for(let e=0;e{if(e){const n=e.split(eC);n.length>1&&(r[n[0].trim()]=n[1].trim())}}),r}function pt(t){let r="";if(_n(t))r=t;else if(kt(t))for(let e=0;eWa(e,r))}const z3=t=>!!(t&&t.__v_isRef===!0),T=t=>_n(t)?t:t==null?"":kt(t)||Xt(t)&&(t.toString===T3||!Nt(t.toString))?z3(t)?T(t.value):JSON.stringify(t,R3,2):String(t),R3=(t,r)=>z3(r)?R3(t,r.value):go(r)?{["Map(".concat(r.size,")")]:[...r.entries()].reduce((e,[n,s],a)=>(e[F0(n,a)+" =>"]=s,e),{})}:Oo(r)?{["Set(".concat(r.size,")")]:[...r.values()].map(e=>F0(e))}:jr(r)?F0(r):Xt(r)&&!kt(r)&&!$3(r)?String(r):r,F0=(t,r="")=>{var e;return jr(t)?"Symbol(".concat((e=t.description)!=null?e:r,")"):t};/** * @vue/reactivity v3.5.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Hn;class P3{constructor(r=!1){this.detached=r,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!r&&Hn&&(Hn.active?(this.parent=Hn,this.index=(Hn.scopes||(Hn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let r,e;if(this.scopes)for(r=0,e=this.scopes.length;r0&&--this._on===0){if(Hn===this)Hn=this.prevScope;else{let r=Hn;for(;r;){if(r.prevScope===this){r.prevScope=this.prevScope;break}r=r.prevScope}}this.prevScope=void 0}}stop(r){if(this._active){this._active=!1;let e,n;for(e=0,n=this.effects.length;e0)return;if(Nl){let r=Nl;for(Nl=void 0;r;){const e=r.next;r.next=void 0,r.flags&=-9,r=e}}let t;for(;Pl;){let r=Pl;for(Pl=void 0;r;){const e=r.next;if(r.next=void 0,r.flags&=-9,r.flags&1)try{r.trigger()}catch(n){t||(t=n)}r=e}}if(t)throw t}function F3(t){for(let r=t.deps;r;r=r.nextDep)r.version=-1,r.prevActiveLink=r.dep.activeLink,r.dep.activeLink=r}function D3(t){let r,e=t.depsTail,n=e;for(;n;){const s=n.prevDep;n.version===-1?(n===e&&(e=s),rm(n),iC(n)):r=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}t.deps=r,t.depsTail=e}function I2(t){for(let r=t.deps;r;r=r.nextDep)if(r.dep.version!==r.version||r.dep.computed&&(V3(r.dep.computed)||r.dep.version!==r.version))return!0;return!!t._dirty}function V3(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Gl)||(t.globalVersion=Gl,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!I2(t))))return;t.flags|=2;const r=t.dep,e=un,n=vs;un=t,vs=!0;try{F3(t);const s=t.fn(t._value);(r.version===0||Ds(s,t._value))&&(t.flags|=128,t._value=s,r.version++)}catch(s){throw r.version++,s}finally{un=e,vs=n,D3(t),t.flags&=-3}}function rm(t,r=!1){const{dep:e,prevSub:n,nextSub:s}=t;if(n&&(n.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=n,t.nextSub=void 0),e.subs===t&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let a=e.computed.deps;a;a=a.nextDep)rm(a,!0)}!r&&!--e.sc&&e.map&&e.map.delete(e.key)}function iC(t){const{prevDep:r,nextDep:e}=t;r&&(r.nextDep=e,t.prevDep=void 0),e&&(e.prevDep=r,t.nextDep=void 0)}let vs=!0;const B3=[];function wa(){B3.push(vs),vs=!1}function ka(){const t=B3.pop();vs=t===void 0?!0:t}function Fp(t){const{cleanup:r}=t;if(t.cleanup=void 0,r){const e=un;un=void 0;try{r()}finally{un=e}}}let Gl=0;class oC{constructor(r,e){this.sub=r,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class sm{constructor(r){this.computed=r,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(r){if(!un||!vs||un===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==un)e=this.activeLink=new oC(un,this),un.deps?(e.prevDep=un.depsTail,un.depsTail.nextDep=e,un.depsTail=e):un.deps=un.depsTail=e,U3(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=un.depsTail,e.nextDep=void 0,un.depsTail.nextDep=e,un.depsTail=e,un.deps===e&&(un.deps=n)}return e}trigger(r){this.version++,Gl++,this.notify(r)}notify(r){tm();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{nm()}}}function U3(t){if(t.dep.sc++,t.sub.flags&4){const r=t.dep.computed;if(r&&!t.dep.subs){r.flags|=20;for(let n=r.deps;n;n=n.nextDep)U3(n)}const e=t.dep.subs;e!==t&&(t.prevSub=e,e&&(e.nextSub=t)),t.dep.subs=t}}const vu=new WeakMap,zi=Symbol(""),A2=Symbol(""),jl=Symbol("");function cr(t,r,e){if(vs&&un){let n=vu.get(t);n||vu.set(t,n=new Map);let s=n.get(e);s||(n.set(e,s=new sm),s.map=n,s.key=e),s.track()}}function ma(t,r,e,n,s,a){const i=vu.get(t);if(!i){Gl++;return}const o=l=>{l&&l.trigger()};if(tm(),r==="clear")i.forEach(o);else{const l=kt(t),d=l&&id(e);if(l&&e==="length"){const u=Number(n);i.forEach((g,y)=>{(y==="length"||y===jl||!jr(y)&&y>=u)&&o(g)})}else switch((e!==void 0||i.has(void 0))&&o(i.get(e)),d&&o(i.get(jl)),r){case"add":l?d&&o(i.get("length")):(o(i.get(zi)),go(t)&&o(i.get(A2)));break;case"delete":l||(o(i.get(zi)),go(t)&&o(i.get(A2)));break;case"set":go(t)&&o(i.get(zi));break}}nm()}function lC(t,r){const e=vu.get(t);return e&&e.get(r)}function Ji(t){const r=Lt(t);return r===t?r:(cr(r,"iterate",jl),qr(t)?r:r.map(bs))}function dd(t){return cr(t=Lt(t),"iterate",jl),t}function xs(t,r){return Sa(t)?So(ya(t)?bs(r):r):bs(r)}const cC={__proto__:null,[Symbol.iterator](){return V0(this,Symbol.iterator,t=>xs(this,t))},concat(...t){return Ji(this).concat(...t.map(r=>kt(r)?Ji(r):r))},entries(){return V0(this,"entries",t=>(t[1]=xs(this,t[1]),t))},every(t,r){return na(this,"every",t,r,void 0,arguments)},filter(t,r){return na(this,"filter",t,r,e=>e.map(n=>xs(this,n)),arguments)},find(t,r){return na(this,"find",t,r,e=>xs(this,e),arguments)},findIndex(t,r){return na(this,"findIndex",t,r,void 0,arguments)},findLast(t,r){return na(this,"findLast",t,r,e=>xs(this,e),arguments)},findLastIndex(t,r){return na(this,"findLastIndex",t,r,void 0,arguments)},forEach(t,r){return na(this,"forEach",t,r,void 0,arguments)},includes(...t){return B0(this,"includes",t)},indexOf(...t){return B0(this,"indexOf",t)},join(t){return Ji(this).join(t)},lastIndexOf(...t){return B0(this,"lastIndexOf",t)},map(t,r){return na(this,"map",t,r,void 0,arguments)},pop(){return al(this,"pop")},push(...t){return al(this,"push",t)},reduce(t,...r){return Dp(this,"reduce",t,r)},reduceRight(t,...r){return Dp(this,"reduceRight",t,r)},shift(){return al(this,"shift")},some(t,r){return na(this,"some",t,r,void 0,arguments)},splice(...t){return al(this,"splice",t)},toReversed(){return Ji(this).toReversed()},toSorted(t){return Ji(this).toSorted(t)},toSpliced(...t){return Ji(this).toSpliced(...t)},unshift(...t){return al(this,"unshift",t)},values(){return V0(this,"values",t=>xs(this,t))}};function V0(t,r,e){const n=dd(t),s=n[r]();return n!==t&&!qr(t)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.done||(a.value=e(a.value)),a}),s}const uC=Array.prototype;function na(t,r,e,n,s,a){const i=dd(t),o=i!==t&&!qr(t),l=i[r];if(l!==uC[r]){const g=l.apply(t,a);return o?bs(g):g}let d=e;i!==t&&(o?d=function(g,y){return e.call(this,xs(t,g),y,t)}:e.length>2&&(d=function(g,y){return e.call(this,g,y,t)}));const u=l.call(i,d,n);return o&&s?s(u):u}function Dp(t,r,e,n){const s=dd(t),a=s!==t&&!qr(t);let i=e,o=!1;s!==t&&(a?(o=n.length===0,i=function(d,u,g){return o&&(o=!1,d=xs(t,d)),e.call(this,d,xs(t,u),g,t)}):e.length>3&&(i=function(d,u,g){return e.call(this,d,u,g,t)}));const l=s[r](i,...n);return o?xs(t,l):l}function B0(t,r,e){const n=Lt(t);cr(n,"iterate",jl);const s=n[r](...e);return(s===-1||s===!1)&&hd(e[0])?(e[0]=Lt(e[0]),n[r](...e)):s}function al(t,r,e=[]){wa(),tm();const n=Lt(t)[r].apply(t,e);return nm(),ka(),n}const dC=Qh("__proto__,__v_isRef,__isVue"),H3=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(jr));function hC(t){jr(t)||(t=String(t));const r=Lt(this);return cr(r,"has",t),r.hasOwnProperty(t)}class q3{constructor(r=!1,e=!1){this._isReadonly=r,this._isShallow=e}get(r,e,n){if(e==="__v_skip")return r.__v_skip;const s=this._isReadonly,a=this._isShallow;if(e==="__v_isReactive")return!s;if(e==="__v_isReadonly")return s;if(e==="__v_isShallow")return a;if(e==="__v_raw")return n===(s?a?wC:Z3:a?j3:G3).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(n)?r:void 0;const i=kt(r);if(!s){let l;if(i&&(l=cC[e]))return l;if(e==="hasOwnProperty")return hC}const o=Reflect.get(r,e,kn(r)?r:n);if((jr(e)?H3.has(e):dC(e))||(s||cr(r,"get",e),a))return o;if(kn(o)){const l=i&&id(e)?o:o.value;return s&&Xt(l)?R2(l):l}return Xt(o)?s?R2(o):Qa(o):o}}class W3 extends q3{constructor(r=!1){super(!1,r)}set(r,e,n,s){let a=r[e];const i=kt(r)&&id(e);if(!this._isShallow){const d=Sa(a);if(!qr(n)&&!Sa(n)&&(a=Lt(a),n=Lt(n)),!i&&kn(a)&&!kn(n))return d||(a.value=n),!0}const o=i?Number(e)t,qc=t=>Reflect.getPrototypeOf(t);function gC(t,r,e){return function(...n){const s=this.__v_raw,a=Lt(s),i=go(a),o=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,d=s[t](...n),u=e?z2:r?So:bs;return!r&&cr(a,"iterate",l?A2:zi),jn(Object.create(d),{next(){const{value:g,done:y}=d.next();return y?{value:g,done:y}:{value:o?[u(g[0]),u(g[1])]:u(g),done:y}}})}}function Wc(t){return function(...r){return t==="delete"?!1:t==="clear"?void 0:this}}function vC(t,r){const e={get(s){const a=this.__v_raw,i=Lt(a),o=Lt(s);t||(Ds(s,o)&&cr(i,"get",s),cr(i,"get",o));const{has:l}=qc(i),d=r?z2:t?So:bs;if(l.call(i,s))return d(a.get(s));if(l.call(i,o))return d(a.get(o));a!==i&&a.get(s)},get size(){const s=this.__v_raw;return!t&&cr(Lt(s),"iterate",zi),s.size},has(s){const a=this.__v_raw,i=Lt(a),o=Lt(s);return t||(Ds(s,o)&&cr(i,"has",s),cr(i,"has",o)),s===o?a.has(s):a.has(s)||a.has(o)},forEach(s,a){const i=this,o=i.__v_raw,l=Lt(o),d=r?z2:t?So:bs;return!t&&cr(l,"iterate",zi),o.forEach((u,g)=>s.call(a,d(u),d(g),i))}};return jn(e,t?{add:Wc("add"),set:Wc("set"),delete:Wc("delete"),clear:Wc("clear")}:{add(s){const a=Lt(this),i=qc(a),o=Lt(s),l=!r&&!qr(s)&&!Sa(s)?o:s;return i.has.call(a,l)||Ds(s,l)&&i.has.call(a,s)||Ds(o,l)&&i.has.call(a,o)||(a.add(l),ma(a,"add",l,l)),this},set(s,a){!r&&!qr(a)&&!Sa(a)&&(a=Lt(a));const i=Lt(this),{has:o,get:l}=qc(i);let d=o.call(i,s);d||(s=Lt(s),d=o.call(i,s));const u=l.call(i,s);return i.set(s,a),d?Ds(a,u)&&ma(i,"set",s,a):ma(i,"add",s,a),this},delete(s){const a=Lt(this),{has:i,get:o}=qc(a);let l=i.call(a,s);l||(s=Lt(s),l=i.call(a,s)),o&&o.call(a,s);const d=a.delete(s);return l&&ma(a,"delete",s,void 0),d},clear(){const s=Lt(this),a=s.size!==0,i=s.clear();return a&&ma(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=gC(s,t,r)}),e}function am(t,r){const e=vC(t,r);return(n,s,a)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?n:Reflect.get(Jt(e,s)&&s in n?e:n,s,a)}const yC={get:am(!1,!1)},bC={get:am(!1,!0)},CC={get:am(!0,!1)};const G3=new WeakMap,j3=new WeakMap,Z3=new WeakMap,wC=new WeakMap;function kC(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function SC(t){return t.__v_skip||!Object.isExtensible(t)?0:kC(Kb(t))}function Qa(t){return Sa(t)?t:im(t,!1,pC,yC,G3)}function EC(t){return im(t,!1,_C,bC,j3)}function R2(t){return im(t,!0,fC,CC,Z3)}function im(t,r,e,n,s){if(!Xt(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const a=SC(t);if(a===0)return t;const i=s.get(t);if(i)return i;const o=new Proxy(t,a===2?n:e);return s.set(t,o),o}function ya(t){return Sa(t)?ya(t.__v_raw):!!(t&&t.__v_isReactive)}function Sa(t){return!!(t&&t.__v_isReadonly)}function qr(t){return!!(t&&t.__v_isShallow)}function hd(t){return t?!!t.__v_raw:!1}function Lt(t){const r=t&&t.__v_raw;return r?Lt(r):t}function om(t){return!Jt(t,"__v_skip")&&Object.isExtensible(t)&&I3(t,"__v_skip",!0),t}const bs=t=>Xt(t)?Qa(t):t,So=t=>Xt(t)?R2(t):t;function kn(t){return t?t.__v_isRef===!0:!1}function ge(t){return K3(t,!1)}function md(t){return K3(t,!0)}function K3(t,r){return kn(t)?t:new TC(t,r)}class TC{constructor(r,e){this.dep=new sm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?r:Lt(r),this._value=e?r:bs(r),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(r){const e=this._rawValue,n=this.__v_isShallow||qr(r)||Sa(r);r=n?r:Lt(r),Ds(r,e)&&(this._rawValue=r,this._value=n?r:bs(r),this.dep.trigger())}}function Vp(t){t.dep&&t.dep.trigger()}function fe(t){return kn(t)?t.value:t}const $C={get:(t,r,e)=>r==="__v_raw"?t:fe(Reflect.get(t,r,e)),set:(t,r,e,n)=>{const s=t[r];return kn(s)&&!kn(e)?(s.value=e,!0):Reflect.set(t,r,e,n)}};function Y3(t){return ya(t)?t:new Proxy(t,$C)}function IC(t){const r=kt(t)?new Array(t.length):{};for(const e in t)r[e]=zC(t,e);return r}class AC{constructor(r,e,n){this._object=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=jr(e)?e:String(e),this._raw=Lt(r);let s=!0,a=r;if(!kt(r)||jr(this._key)||!id(this._key))do s=!hd(a)||qr(a);while(s&&(a=a.__v_raw));this._shallow=s}get value(){let r=this._object[this._key];return this._shallow&&(r=fe(r)),this._value=r===void 0?this._defaultValue:r}set value(r){if(this._shallow&&kn(this._raw[this._key])){const e=this._object[this._key];if(kn(e)){e.value=r;return}}this._object[this._key]=r}get dep(){return lC(this._raw,this._key)}}function zC(t,r,e){return new AC(t,r,e)}class RC{constructor(r,e,n){this.fn=r,this.setter=e,this._value=void 0,this.dep=new sm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&un!==this)return O3(this,!0),!0}get value(){const r=this.dep.track();return V3(this),r&&(r.version=this.dep.version),this._value}set value(r){this.setter&&this.setter(r)}}function PC(t,r,e=!1){let n,s;return Nt(t)?n=t:(n=t.get,s=t.set),new RC(n,s,e)}const Gc={},yu=new WeakMap;let ki;function NC(t,r=!1,e=ki){if(e){let n=yu.get(e);n||yu.set(e,n=[]),n.push(t)}}function MC(t,r,e=sn){const{immediate:n,deep:s,once:a,scheduler:i,augmentJob:o,call:l}=e,d=N=>s?N:qr(N)||s===!1||s===0?pa(N,1):pa(N);let u,g,y,w,k=!1,E=!1;if(kn(t)?(g=()=>t.value,k=qr(t)):ya(t)?(g=()=>d(t),k=!0):kt(t)?(E=!0,k=t.some(N=>ya(N)||qr(N)),g=()=>t.map(N=>{if(kn(N))return N.value;if(ya(N))return d(N);if(Nt(N))return l?l(N,2):N()})):Nt(t)?r?g=l?()=>l(t,2):t:g=()=>{if(y){wa();try{y()}finally{ka()}}const N=ki;ki=u;try{return l?l(t,3,[w]):t(w)}finally{ki=N}}:g=qs,r&&s){const N=g,A=s===!0?1/0:s;g=()=>pa(N(),A)}const R=N3(),O=()=>{u.stop(),R&&R.active&&Jh(R.effects,u)};if(a&&r){const N=r;r=(...A)=>{N(...A),O()}}let M=E?new Array(t.length).fill(Gc):Gc;const x=N=>{if(!(!(u.flags&1)||!u.dirty&&!N))if(r){const A=u.run();if(s||k||(E?A.some((V,F)=>Ds(V,M[F])):Ds(A,M))){y&&y();const V=ki;ki=u;try{const F=[A,M===Gc?void 0:E&&M[0]===Gc?[]:M,w];M=A,l?l(r,3,F):r(...F)}finally{ki=V}}}else u.run()};return o&&o(x),u=new L3(g),u.scheduler=i?()=>i(x,!1):x,w=N=>NC(N,!1,u),y=u.onStop=()=>{const N=yu.get(u);if(N){if(l)l(N,4);else for(const A of N)A();yu.delete(u)}},r?n?x(!0):M=u.run():i?i(x.bind(null,!0),!0):u.run(),O.pause=u.pause.bind(u),O.resume=u.resume.bind(u),O.stop=O,O}function pa(t,r=1/0,e){if(r<=0||!Xt(t)||t.__v_skip||(e=e||new Map,(e.get(t)||0)>=r))return t;if(e.set(t,r),r--,kn(t))pa(t.value,r,e);else if(kt(t))for(let n=0;n{pa(n,r,e)});else if($3(t)){for(const n in t)pa(t[n],r,e);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&pa(t[n],r,e)}return t}/** * @vue/runtime-core v3.5.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function lc(t,r,e,n){try{return n?t(...n):t()}catch(s){pd(s,r,e)}}function Cs(t,r,e,n){if(Nt(t)){const s=lc(t,r,e,n);return s&&E3(s)&&s.catch(a=>{pd(a,r,e)}),s}if(kt(t)){const s=[];for(let a=0;a>>1,s=wr[n],a=Zl(s);a=Zl(e)?wr.push(t):wr.splice(xC(r),0,t),t.flags|=1,J3()}}function J3(){bu||(bu=Q3.then(ey))}function OC(t){kt(t)?yo.push(...t):Da&&t.id===-1?Da.splice(oo+1,0,t):t.flags&1||(yo.push(t),t.flags|=1),J3()}function Bp(t,r,e=Ns+1){for(;eZl(e)-Zl(n));if(yo.length=0,Da){Da.push(...r);return}for(Da=r,oo=0;oot.id==null?t.flags&2?-1:1/0:t.id;function ey(t){try{for(Ns=0;Ns{n._d&&Tu(-1);const a=Cu(r);let i;try{i=t(...s)}finally{Cu(a),n._d&&Tu(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function ct(t,r){if(sr===null)return t;const e=yd(sr),n=t.dirs||(t.dirs=[]);for(let s=0;s1)return e&&Nt(r)?r.call(n&&n.proxy):r}}function FC(){return!!(js()||Ri)}const DC=Symbol.for("v-scx"),VC=()=>Wr(DC);function is(t,r){return cm(t,null,r)}function Sn(t,r,e){return cm(t,r,e)}function cm(t,r,e=sn){const{immediate:n,deep:s,flush:a,once:i}=e,o=jn({},e),l=r&&n||!r&&a!=="post";let d;if(Yl){if(a==="sync"){const w=VC();d=w.__watcherHandles||(w.__watcherHandles=[])}else if(!l){const w=()=>{};return w.stop=qs,w.resume=qs,w.pause=qs,w}}const u=ur;o.call=(w,k,E)=>Cs(w,u,k,E);let g=!1;a==="post"?o.scheduler=w=>{Kn(w,u&&u.suspense)}:a!=="sync"&&(g=!0,o.scheduler=(w,k)=>{k?w():lm(w)}),o.augmentJob=w=>{r&&(w.flags|=4),g&&(w.flags|=2,u&&(w.id=u.uid,w.i=u))};const y=MC(t,r,o);return Yl&&(d?d.push(y):l&&y()),y}function BC(t,r,e){const n=this.proxy,s=_n(t)?t.includes(".")?ny(n,t):()=>n[t]:t.bind(n,n);let a;Nt(r)?a=r:(a=r.handler,e=r);const i=dc(this),o=cm(s,a.bind(n),e);return i(),o}function ny(t,r){const e=r.split(".");return()=>{let n=t;for(let s=0;st.__isTeleport,Ls=Symbol("_leaveCb"),il=Symbol("_enterCb");function HC(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return An(()=>{t.isMounted=!0}),Di(()=>{t.isUnmounting=!0}),t}const Jr=[Function,Array],sy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Jr,onEnter:Jr,onAfterEnter:Jr,onEnterCancelled:Jr,onBeforeLeave:Jr,onLeave:Jr,onAfterLeave:Jr,onLeaveCancelled:Jr,onBeforeAppear:Jr,onAppear:Jr,onAfterAppear:Jr,onAppearCancelled:Jr},ay=t=>{const r=t.subTree;return r.component?ay(r.component):r},qC={name:"BaseTransition",props:sy,setup(t,{slots:r}){const e=js(),n=HC();return()=>{const s=r.default&&ly(r.default(),!0),a=s&&s.length?iy(s):e.subTree?D():void 0;if(!a)return;const i=Lt(t),{mode:o}=i;if(n.isLeaving)return U0(a);const l=Up(a);if(!l)return U0(a);let d=P2(l,i,n,e,g=>d=g);l.type!==rr&&Eo(l,d);let u=e.subTree&&Up(e.subTree);if(u&&u.type!==rr&&!Va(u,l)&&ay(e).type!==rr){let g=P2(u,i,n,e);if(Eo(u,g),o==="out-in"&&l.type!==rr)return n.isLeaving=!0,g.afterLeave=()=>{n.isLeaving=!1,e.job.flags&8||e.update(),delete g.afterLeave,u=void 0},U0(a);o==="in-out"&&l.type!==rr?g.delayLeave=(y,w,k)=>{const E=oy(n,u);E[String(u.key)]=u,y[Ls]=()=>{w(),y[Ls]=void 0,delete d.delayedLeave,u=void 0},d.delayedLeave=()=>{k(),delete d.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return a}}};function iy(t){let r=t[0];if(t.length>1){for(const e of t)if(e.type!==rr){r=e;break}}return r}const WC=qC;function oy(t,r){const{leavingVNodes:e}=t;let n=e.get(r.type);return n||(n=Object.create(null),e.set(r.type,n)),n}function P2(t,r,e,n,s){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:g,onBeforeLeave:y,onLeave:w,onAfterLeave:k,onLeaveCancelled:E,onBeforeAppear:R,onAppear:O,onAfterAppear:M,onAppearCancelled:x}=r,N=String(t.key),A=oy(e,t),V=(z,U)=>{z&&Cs(z,n,9,U)},F=(z,U)=>{const j=U[1];V(z,U),kt(z)?z.every(J=>J.length<=1)&&j():z.length<=1&&j()},S={mode:i,persisted:o,beforeEnter(z){let U=l;if(!e.isMounted)if(a)U=R||l;else return;z[Ls]&&z[Ls](!0);const j=A[N];j&&Va(t,j)&&j.el[Ls]&&j.el[Ls](),V(U,[z])},enter(z){if(A[N]===t)return;let U=d,j=u,J=g;if(!e.isMounted)if(a)U=O||d,j=M||u,J=x||g;else return;let de=!1;z[il]=qe=>{de||(de=!0,qe?V(J,[z]):V(j,[z]),S.delayedLeave&&S.delayedLeave(),z[il]=void 0)};const Ae=z[il].bind(null,!1);U?F(U,[z,Ae]):Ae()},leave(z,U){const j=String(t.key);if(z[il]&&z[il](!0),e.isUnmounting)return U();V(y,[z]);let J=!1;z[Ls]=Ae=>{J||(J=!0,U(),Ae?V(E,[z]):V(k,[z]),z[Ls]=void 0,A[j]===t&&delete A[j])};const de=z[Ls].bind(null,!1);A[j]=t,w?F(w,[z,de]):de()},clone(z){const U=P2(z,r,e,n,s);return s&&s(U),U}};return S}function U0(t){if(fd(t))return t=ws(t),t.children=null,t}function Up(t){if(!fd(t))return ry(t.type)&&t.children?iy(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:r,children:e}=t;if(e){if(r&16)return e[0];if(r&32&&Nt(e.default))return e.default()}}function Eo(t,r){t.shapeFlag&6&&t.component?(t.transition=r,Eo(t.component.subTree,r)):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function ly(t,r=!1,e){let n=[],s=0;for(let a=0;a1)for(let a=0;aMl(E,r&&(kt(r)?r[R]:r),e,n,s));return}if(qa(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ml(t,r,e,n.component.subTree);return}const a=n.shapeFlag&4?yd(n.component):n.el,i=s?null:a,{i:o,r:l}=t,d=r&&r.r,u=o.refs===sn?o.refs={}:o.refs,g=o.setupState,y=Lt(g),w=g===sn?S3:E=>Hp(u,E)?!1:Jt(y,E),k=(E,R)=>!(R&&Hp(u,R));if(d!=null&&d!==l){if(qp(r),_n(d))u[d]=null,w(d)&&(g[d]=null);else if(kn(d)){const E=r;k(d,E.k)&&(d.value=null),E.k&&(u[E.k]=null)}}if(Nt(l))lc(l,o,12,[i,u]);else{const E=_n(l),R=kn(l);if(E||R){const O=()=>{if(t.f){const M=E?w(l)?g[l]:u[l]:k()||!t.k?l.value:u[t.k];if(s)kt(M)&&Jh(M,a);else if(kt(M))M.includes(a)||M.push(a);else if(E)u[l]=[a],w(l)&&(g[l]=u[l]);else{const x=[a];k(l,t.k)&&(l.value=x),t.k&&(u[t.k]=x)}}else E?(u[l]=i,w(l)&&(g[l]=i)):R&&(k(l,t.k)&&(l.value=i),t.k&&(u[t.k]=i))};if(i){const M=()=>{O(),wu.delete(t)};M.id=-1,wu.set(t,M),Kn(M,e)}else qp(t),O()}}}function qp(t){const r=wu.get(t);r&&(r.flags|=8,wu.delete(t))}ud().requestIdleCallback;ud().cancelIdleCallback;const qa=t=>!!t.type.__asyncLoader,fd=t=>t.type.__isKeepAlive,jC={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:r}){const e=js(),n=e.ctx;if(!n.renderer)return()=>{const M=r.default&&r.default();return M&&M.length===1?M[0]:M};const s=new Map,a=new Set;let i=null;const o=e.suspense,{renderer:{p:l,m:d,um:u,o:{createElement:g}}}=n,y=g("div");n.activate=(M,x,N,A,V)=>{const F=M.component;d(M,x,N,0,o),l(F.vnode,M,x,N,F,o,A,M.slotScopeIds,V),Kn(()=>{F.isDeactivated=!1,F.a&&vo(F.a);const S=M.props&&M.props.onVnodeMounted;S&&es(S,F.parent,M)},o)},n.deactivate=M=>{const x=M.component;Su(x.m),Su(x.a),d(M,y,null,1,o),Kn(()=>{x.da&&vo(x.da);const N=M.props&&M.props.onVnodeUnmounted;N&&es(N,x.parent,M),x.isDeactivated=!0},o)};function w(M){H0(M),u(M,e,o,!0)}function k(M){s.forEach((x,N)=>{const A=F2(qa(x)?x.type.__asyncResolved||{}:x.type);A&&!M(A)&&E(N)})}function E(M){const x=s.get(M);x&&(!i||!Va(x,i))?w(x):i&&H0(i),s.delete(M),a.delete(M)}Sn(()=>[t.include,t.exclude],([M,x])=>{M&&k(N=>wl(M,N)),x&&k(N=>!wl(x,N))},{flush:"post",deep:!0});let R=null;const O=()=>{R!=null&&(Eu(e.subTree.type)?Kn(()=>{s.set(R,jc(e.subTree))},e.subTree.suspense):s.set(R,jc(e.subTree)))};return An(O),dy(O),Di(()=>{s.forEach(M=>{const{subTree:x,suspense:N}=e,A=jc(x);if(M.type===A.type&&M.key===A.key){H0(A);const V=A.component.da;V&&Kn(V,N);return}w(M)})}),()=>{if(R=null,!r.default)return i=null;const M=r.default(),x=M[0];if(M.length>1)return i=null,M;if(!To(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return i=null,x;let N=jc(x);if(N.type===rr)return i=null,N;const A=N.type,V=F2(qa(N)?N.type.__asyncResolved||{}:A),{include:F,exclude:S,max:z}=t;if(F&&(!V||!wl(F,V))||S&&V&&wl(S,V))return N.shapeFlag&=-257,i=N,x;const U=N.key==null?A:N.key,j=s.get(U);return N.el&&(N=ws(N),x.shapeFlag&128&&(x.ssContent=N)),R=U,j?(N.el=j.el,N.component=j.component,N.transition&&Eo(N,N.transition),N.shapeFlag|=512,a.delete(U),a.add(U)):(a.add(U),z&&a.size>parseInt(z,10)&&E(a.values().next().value)),N.shapeFlag|=256,i=N,Eu(x.type)?x:N}}},ZC=jC;function wl(t,r){return kt(t)?t.some(e=>wl(e,r)):_n(t)?t.split(",").includes(r):Zb(t)?(t.lastIndex=0,t.test(r)):!1}function Ja(t,r){uy(t,"a",r)}function _d(t,r){uy(t,"da",r)}function uy(t,r,e=ur){const n=t.__wdc||(t.__wdc=()=>{let s=e;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(gd(r,n,e),e){let s=e.parent;for(;s&&s.parent;)fd(s.parent.vnode)&&KC(n,r,e,s),s=s.parent}}function KC(t,r,e,n){const s=gd(r,t,n,!0);Vi(()=>{Jh(n[r],s)},e)}function H0(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function jc(t){return t.shapeFlag&128?t.ssContent:t}function gd(t,r,e=ur,n=!1){if(e){const s=e[t]||(e[t]=[]),a=r.__weh||(r.__weh=(...i)=>{wa();const o=dc(e),l=Cs(r,e,t,i);return o(),ka(),l});return n?s.unshift(a):s.push(a),a}}const Ta=t=>(r,e=ur)=>{(!Yl||t==="sp")&&gd(t,(...n)=>r(...n),e)},um=Ta("bm"),An=Ta("m"),YC=Ta("bu"),dy=Ta("u"),Di=Ta("bum"),Vi=Ta("um"),QC=Ta("sp"),JC=Ta("rtg"),XC=Ta("rtc");function ew(t,r=ur){gd("ec",t,r)}const dm="components",tw="directives";function P(t,r){return hm(dm,t,!0,r)||t}const hy=Symbol.for("v-ndc");function my(t){return _n(t)?hm(dm,t,!1)||t:t||hy}function cc(t){return hm(tw,t)}function hm(t,r,e=!0,n=!1){const s=sr||ur;if(s){const a=s.type;if(t===dm){const o=F2(a,!1);if(o&&(o===r||o===Er(r)||o===ld(Er(r))))return a}const i=Wp(s[t]||a[t],r)||Wp(s.appContext[t],r);return!i&&n?a:i}}function Wp(t,r){return t&&(t[r]||t[Er(r)]||t[ld(Er(r))])}function Ot(t,r,e,n){let s;const a=e,i=kt(t);if(i||_n(t)){const o=i&&ya(t);let l=!1,d=!1;o&&(l=!qr(t),d=Sa(t),t=dd(t)),s=new Array(t.length);for(let u=0,g=t.length;ur(o,l,void 0,a));else{const o=Object.keys(t);s=new Array(o.length);for(let l=0,d=o.length;l0;return r!=="default"&&(e.name=r),f(),se(gt,null,[$("slot",e,n&&n())],d?-2:64)}let a=t[r];a&&a._c&&(a._d=!1),f();const i=a&&py(a(e)),o=e.key||i&&i.key,l=se(gt,{key:(o&&!jr(o)?o:"_".concat(r))+(!i&&n?"_fb":"")},i||(n?n():[]),i&&t._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function py(t){return t.some(r=>To(r)?!(r.type===rr||r.type===gt&&!py(r.children)):!0)?t:null}const N2=t=>t?Ly(t)?yd(t):N2(t.parent):null,Ll=jn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>N2(t.parent),$root:t=>N2(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>_y(t),$forceUpdate:t=>t.f||(t.f=()=>{lm(t.update)}),$nextTick:t=>t.n||(t.n=Vr.bind(t.proxy)),$watch:t=>BC.bind(t)}),q0=(t,r)=>t!==sn&&!t.__isScriptSetup&&Jt(t,r),nw={get({_:t},r){if(r==="__v_skip")return!0;const{ctx:e,setupState:n,data:s,props:a,accessCache:i,type:o,appContext:l}=t;if(r[0]!=="$"){const y=i[r];if(y!==void 0)switch(y){case 1:return n[r];case 2:return s[r];case 4:return e[r];case 3:return a[r]}else{if(q0(n,r))return i[r]=1,n[r];if(s!==sn&&Jt(s,r))return i[r]=2,s[r];if(Jt(a,r))return i[r]=3,a[r];if(e!==sn&&Jt(e,r))return i[r]=4,e[r];M2&&(i[r]=0)}}const d=Ll[r];let u,g;if(d)return r==="$attrs"&&cr(t.attrs,"get",""),d(t);if((u=o.__cssModules)&&(u=u[r]))return u;if(e!==sn&&Jt(e,r))return i[r]=4,e[r];if(g=l.config.globalProperties,Jt(g,r))return g[r]},set({_:t},r,e){const{data:n,setupState:s,ctx:a}=t;return q0(s,r)?(s[r]=e,!0):n!==sn&&Jt(n,r)?(n[r]=e,!0):Jt(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(a[r]=e,!0)},has({_:{data:t,setupState:r,accessCache:e,ctx:n,appContext:s,props:a,type:i}},o){let l;return!!(e[o]||t!==sn&&o[0]!=="$"&&Jt(t,o)||q0(r,o)||Jt(a,o)||Jt(n,o)||Jt(Ll,o)||Jt(s.config.globalProperties,o)||(l=i.__cssModules)&&l[o])},defineProperty(t,r,e){return e.get!=null?t._.accessCache[r]=0:Jt(e,"value")&&this.set(t,r,e.value,null),Reflect.defineProperty(t,r,e)}};function Gp(t){return kt(t)?t.reduce((r,e)=>(r[e]=null,r),{}):t}let M2=!0;function rw(t){const r=_y(t),e=t.proxy,n=t.ctx;M2=!1,r.beforeCreate&&jp(r.beforeCreate,t,"bc");const{data:s,computed:a,methods:i,watch:o,provide:l,inject:d,created:u,beforeMount:g,mounted:y,beforeUpdate:w,updated:k,activated:E,deactivated:R,beforeDestroy:O,beforeUnmount:M,destroyed:x,unmounted:N,render:A,renderTracked:V,renderTriggered:F,errorCaptured:S,serverPrefetch:z,expose:U,inheritAttrs:j,components:J,directives:de,filters:Ae}=r;if(d&&sw(d,n,null),i)for(const je in i){const nt=i[je];Nt(nt)&&(n[je]=nt.bind(e))}if(s){const je=s.call(e,e);Xt(je)&&(t.data=Qa(je))}if(M2=!0,a)for(const je in a){const nt=a[je],Pt=Nt(nt)?nt.bind(e,e):Nt(nt.get)?nt.get.bind(e,e):qs,G=!Nt(nt)&&Nt(nt.set)?nt.set.bind(e):qs,X=te({get:Pt,set:G});Object.defineProperty(n,je,{enumerable:!0,configurable:!0,get:()=>X.value,set:W=>X.value=W})}if(o)for(const je in o)fy(o[je],n,e,je);if(l){const je=Nt(l)?l.call(e):l;Reflect.ownKeys(je).forEach(nt=>{Ni(nt,je[nt])})}u&&jp(u,t,"c");function Ue(je,nt){kt(nt)?nt.forEach(Pt=>je(Pt.bind(e))):nt&&je(nt.bind(e))}if(Ue(um,g),Ue(An,y),Ue(YC,w),Ue(dy,k),Ue(Ja,E),Ue(_d,R),Ue(ew,S),Ue(XC,V),Ue(JC,F),Ue(Di,M),Ue(Vi,N),Ue(QC,z),kt(U))if(U.length){const je=t.exposed||(t.exposed={});U.forEach(nt=>{Object.defineProperty(je,nt,{get:()=>e[nt],set:Pt=>e[nt]=Pt,enumerable:!0})})}else t.exposed||(t.exposed={});A&&t.render===qs&&(t.render=A),j!=null&&(t.inheritAttrs=j),J&&(t.components=J),de&&(t.directives=de),z&&cy(t)}function sw(t,r,e=qs){kt(t)&&(t=L2(t));for(const n in t){const s=t[n];let a;Xt(s)?"default"in s?a=Wr(s.from||n,s.default,!0):a=Wr(s.from||n):a=Wr(s),kn(a)?Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):r[n]=a}}function jp(t,r,e){Cs(kt(t)?t.map(n=>n.bind(r.proxy)):t.bind(r.proxy),r,e)}function fy(t,r,e,n){let s=n.includes(".")?ny(e,n):()=>e[n];if(_n(t)){const a=r[t];Nt(a)&&Sn(s,a)}else if(Nt(t))Sn(s,t.bind(e));else if(Xt(t))if(kt(t))t.forEach(a=>fy(a,r,e,n));else{const a=Nt(t.handler)?t.handler.bind(e):r[t.handler];Nt(a)&&Sn(s,a,t)}}function _y(t){const r=t.type,{mixins:e,extends:n}=r,{mixins:s,optionsCache:a,config:{optionMergeStrategies:i}}=t.appContext,o=a.get(r);let l;return o?l=o:!s.length&&!e&&!n?l=r:(l={},s.length&&s.forEach(d=>ku(l,d,i,!0)),ku(l,r,i)),Xt(r)&&a.set(r,l),l}function ku(t,r,e,n=!1){const{mixins:s,extends:a}=r;a&&ku(t,a,e,!0),s&&s.forEach(i=>ku(t,i,e,!0));for(const i in r)if(!(n&&i==="expose")){const o=aw[i]||e&&e[i];t[i]=o?o(t[i],r[i]):r[i]}return t}const aw={data:Zp,props:Kp,emits:Kp,methods:kl,computed:kl,beforeCreate:yr,created:yr,beforeMount:yr,mounted:yr,beforeUpdate:yr,updated:yr,beforeDestroy:yr,beforeUnmount:yr,destroyed:yr,unmounted:yr,activated:yr,deactivated:yr,errorCaptured:yr,serverPrefetch:yr,components:kl,directives:kl,watch:ow,provide:Zp,inject:iw};function Zp(t,r){return r?t?function(){return jn(Nt(t)?t.call(this,this):t,Nt(r)?r.call(this,this):r)}:r:t}function iw(t,r){return kl(L2(t),L2(r))}function L2(t){if(kt(t)){const r={};for(let e=0;er==="modelValue"||r==="model-value"?t.modelModifiers:t["".concat(r,"Modifiers")]||t["".concat(Er(r),"Modifiers")]||t["".concat(Fi(r),"Modifiers")];function dw(t,r,...e){if(t.isUnmounted)return;const n=t.vnode.props||sn;let s=e;const a=r.startsWith("update:"),i=a&&uw(n,r.slice(7));i&&(i.trim&&(s=e.map(u=>_n(u)?u.trim():u)),i.number&&(s=e.map(cd)));let o,l=n[o=O0(r)]||n[o=O0(Er(r))];!l&&a&&(l=n[o=O0(Fi(r))]),l&&Cs(l,t,6,s);const d=n[o+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Cs(d,t,6,s)}}const hw=new WeakMap;function vy(t,r,e=!1){const n=e?hw:r.emitsCache,s=n.get(t);if(s!==void 0)return s;const a=t.emits;let i={},o=!1;if(!Nt(t)){const l=d=>{const u=vy(d,r,!0);u&&(o=!0,jn(i,u))};!e&&r.mixins.length&&r.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!o?(Xt(t)&&n.set(t,null),null):(kt(a)?a.forEach(l=>i[l]=null):jn(i,a),Xt(t)&&n.set(t,i),i)}function vd(t,r){return!t||!sd(r)?!1:(r=r.slice(2).replace(/Once$/,""),Jt(t,r[0].toLowerCase()+r.slice(1))||Jt(t,Fi(r))||Jt(t,r))}function Yp(t){const{type:r,vnode:e,proxy:n,withProxy:s,propsOptions:[a],slots:i,attrs:o,emit:l,render:d,renderCache:u,props:g,data:y,setupState:w,ctx:k,inheritAttrs:E}=t,R=Cu(t);let O,M;try{if(e.shapeFlag&4){const N=s||n,A=N;O=Os(d.call(A,N,u,g,w,y,k)),M=o}else{const N=r;O=Os(N.length>1?N(g,{attrs:o,slots:i,emit:l}):N(g,null)),M=r.props?o:mw(o)}}catch(N){xl.length=0,pd(N,t,1),O=$(rr)}let x=O;if(M&&E!==!1){const N=Object.keys(M),{shapeFlag:A}=x;N.length&&A&7&&(a&&N.some(ad)&&(M=pw(M,a)),x=ws(x,M,!1,!0))}return e.dirs&&(x=ws(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(e.dirs):e.dirs),e.transition&&Eo(x,e.transition),O=x,Cu(R),O}const mw=t=>{let r;for(const e in t)(e==="class"||e==="style"||sd(e))&&((r||(r={}))[e]=t[e]);return r},pw=(t,r)=>{const e={};for(const n in t)(!ad(n)||!(n.slice(9)in r))&&(e[n]=t[n]);return e};function fw(t,r,e){const{props:n,children:s,component:a}=t,{props:i,children:o,patchFlag:l}=r,d=a.emitsOptions;if(r.dirs||r.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Qp(n,i,d):!!i;if(l&8){const u=r.dynamicProps;for(let g=0;gObject.create(by),wy=t=>Object.getPrototypeOf(t)===by;function gw(t,r,e,n=!1){const s={},a=Cy();t.propsDefaults=Object.create(null),ky(t,r,s,a);for(const i in t.propsOptions[0])i in s||(s[i]=void 0);e?t.props=n?s:EC(s):t.type.props?t.props=s:t.props=a,t.attrs=a}function vw(t,r,e,n){const{props:s,attrs:a,vnode:{patchFlag:i}}=t,o=Lt(s),[l]=t.propsOptions;let d=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=t.vnode.dynamicProps;for(let g=0;g{l=!0;const[y,w]=Sy(g,r,!0);jn(i,y),w&&o.push(...w)};!e&&r.mixins.length&&r.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!a&&!l)return Xt(t)&&n.set(t,_o),_o;if(kt(a))for(let u=0;ut==="_"||t==="_ctx"||t==="$stable",pm=t=>kt(t)?t.map(Os):[Os(t)],bw=(t,r,e)=>{if(r._n)return r;const n=ne((...s)=>pm(r(...s)),e);return n._c=!1,n},Ey=(t,r,e)=>{const n=t._ctx;for(const s in t){if(mm(s))continue;const a=t[s];if(Nt(a))r[s]=bw(s,a,n);else if(a!=null){const i=pm(a);r[s]=()=>i}}},Ty=(t,r)=>{const e=pm(r);t.slots.default=()=>e},$y=(t,r,e)=>{for(const n in r)(e||!mm(n))&&(t[n]=r[n])},Cw=(t,r,e)=>{const n=t.slots=Cy();if(t.vnode.shapeFlag&32){const s=r._;s?($y(n,r,e),e&&I3(n,"_",s,!0)):Ey(r,n)}else r&&Ty(t,r)},ww=(t,r,e)=>{const{vnode:n,slots:s}=t;let a=!0,i=sn;if(n.shapeFlag&32){const o=r._;o?e&&o===1?a=!1:$y(s,r,e):(a=!r.$stable,Ey(r,s)),i=r}else r&&(Ty(t,r),i={default:1});if(a)for(const o in s)!mm(o)&&i[o]==null&&delete s[o]},Kn=$w;function kw(t){return Sw(t)}function Sw(t,r){const e=ud();e.__VUE__=!0;const{insert:n,remove:s,patchProp:a,createElement:i,createText:o,createComment:l,setText:d,setElementText:u,parentNode:g,nextSibling:y,setScopeId:w=qs,insertStaticContent:k}=t,E=(B,Q,Z,he=null,ve=null,Ee=null,He=void 0,Ve=null,Le=!!Q.dynamicChildren)=>{if(B===Q)return;B&&!Va(B,Q)&&(he=at(B),W(B,ve,Ee,!0),B=null),Q.patchFlag===-2&&(Le=!1,Q.dynamicChildren=null);const{type:Te,ref:ft,shapeFlag:De}=Q;switch(Te){case uc:R(B,Q,Z,he);break;case rr:O(B,Q,Z,he);break;case cu:B==null&&M(Q,Z,he,He);break;case gt:J(B,Q,Z,he,ve,Ee,He,Ve,Le);break;default:De&1?A(B,Q,Z,he,ve,Ee,He,Ve,Le):De&6?de(B,Q,Z,he,ve,Ee,He,Ve,Le):(De&64||De&128)&&Te.process(B,Q,Z,he,ve,Ee,He,Ve,Le,Bt)}ft!=null&&ve?Ml(ft,B&&B.ref,Ee,Q||B,!Q):ft==null&&B&&B.ref!=null&&Ml(B.ref,null,Ee,B,!0)},R=(B,Q,Z,he)=>{if(B==null)n(Q.el=o(Q.children),Z,he);else{const ve=Q.el=B.el;Q.children!==B.children&&d(ve,Q.children)}},O=(B,Q,Z,he)=>{B==null?n(Q.el=l(Q.children||""),Z,he):Q.el=B.el},M=(B,Q,Z,he)=>{[B.el,B.anchor]=k(B.children,Q,Z,he,B.el,B.anchor)},x=({el:B,anchor:Q},Z,he)=>{let ve;for(;B&&B!==Q;)ve=y(B),n(B,Z,he),B=ve;n(Q,Z,he)},N=({el:B,anchor:Q})=>{let Z;for(;B&&B!==Q;)Z=y(B),s(B),B=Z;s(Q)},A=(B,Q,Z,he,ve,Ee,He,Ve,Le)=>{if(Q.type==="svg"?He="svg":Q.type==="math"&&(He="mathml"),B==null)V(Q,Z,he,ve,Ee,He,Ve,Le);else{const Te=B.el&&B.el._isVueCE?B.el:null;try{Te&&Te._beginPatch(),z(B,Q,ve,Ee,He,Ve,Le)}finally{Te&&Te._endPatch()}}},V=(B,Q,Z,he,ve,Ee,He,Ve)=>{let Le,Te;const{props:ft,shapeFlag:De,transition:vt,dirs:Je}=B;if(Le=B.el=i(B.type,Ee,ft&&ft.is,ft),De&8?u(Le,B.children):De&16&&S(B.children,Le,null,he,ve,W0(B,Ee),He,Ve),Je&&mi(B,null,he,"created"),F(Le,B,B.scopeId,He,he),ft){for(const ye in ft)ye!=="value"&&!Rl(ye)&&a(Le,ye,null,ft[ye],Ee,he);"value"in ft&&a(Le,"value",null,ft.value,Ee),(Te=ft.onVnodeBeforeMount)&&es(Te,he,B)}Je&&mi(B,null,he,"beforeMount");const re=Ew(ve,vt);re&&vt.beforeEnter(Le),n(Le,Q,Z),((Te=ft&&ft.onVnodeMounted)||re||Je)&&Kn(()=>{try{Te&&es(Te,he,B),re&&vt.enter(Le),Je&&mi(B,null,he,"mounted")}finally{}},ve)},F=(B,Q,Z,he,ve)=>{if(Z&&w(B,Z),he)for(let Ee=0;Ee{for(let Te=Le;Te{const Ve=Q.el=B.el;let{patchFlag:Le,dynamicChildren:Te,dirs:ft}=Q;Le|=B.patchFlag&16;const De=B.props||sn,vt=Q.props||sn;let Je;if(Z&&pi(Z,!1),(Je=vt.onVnodeBeforeUpdate)&&es(Je,Z,Q,B),ft&&mi(Q,B,Z,"beforeUpdate"),Z&&pi(Z,!0),(De.innerHTML&&vt.innerHTML==null||De.textContent&&vt.textContent==null)&&u(Ve,""),Te?U(B.dynamicChildren,Te,Ve,Z,he,W0(Q,ve),Ee):He||nt(B,Q,Ve,null,Z,he,W0(Q,ve),Ee,!1),Le>0){if(Le&16)j(Ve,De,vt,Z,ve);else if(Le&2&&De.class!==vt.class&&a(Ve,"class",null,vt.class,ve),Le&4&&a(Ve,"style",De.style,vt.style,ve),Le&8){const re=Q.dynamicProps;for(let ye=0;ye{Je&&es(Je,Z,Q,B),ft&&mi(Q,B,Z,"updated")},he)},U=(B,Q,Z,he,ve,Ee,He)=>{for(let Ve=0;Ve{if(Q!==Z){if(Q!==sn)for(const Ee in Q)!Rl(Ee)&&!(Ee in Z)&&a(B,Ee,Q[Ee],null,ve,he);for(const Ee in Z){if(Rl(Ee))continue;const He=Z[Ee],Ve=Q[Ee];He!==Ve&&Ee!=="value"&&a(B,Ee,Ve,He,ve,he)}"value"in Z&&a(B,"value",Q.value,Z.value,ve)}},J=(B,Q,Z,he,ve,Ee,He,Ve,Le)=>{const Te=Q.el=B?B.el:o(""),ft=Q.anchor=B?B.anchor:o("");let{patchFlag:De,dynamicChildren:vt,slotScopeIds:Je}=Q;Je&&(Ve=Ve?Ve.concat(Je):Je),B==null?(n(Te,Z,he),n(ft,Z,he),S(Q.children||[],Z,ft,ve,Ee,He,Ve,Le)):De>0&&De&64&&vt&&B.dynamicChildren&&B.dynamicChildren.length===vt.length?(U(B.dynamicChildren,vt,Z,ve,Ee,He,Ve),(Q.key!=null||ve&&Q===ve.subTree)&&Iy(B,Q,!0)):nt(B,Q,Z,ft,ve,Ee,He,Ve,Le)},de=(B,Q,Z,he,ve,Ee,He,Ve,Le)=>{Q.slotScopeIds=Ve,B==null?Q.shapeFlag&512?ve.ctx.activate(Q,Z,he,He,Le):Ae(Q,Z,he,ve,Ee,He,Le):qe(B,Q,Le)},Ae=(B,Q,Z,he,ve,Ee,He)=>{const Ve=B.component=Nw(B,he,ve);if(fd(B)&&(Ve.ctx.renderer=Bt),Mw(Ve,!1,He),Ve.asyncDep){if(ve&&ve.registerDep(Ve,Ue,He),!B.el){const Le=Ve.subTree=$(rr);O(null,Le,Q,Z),B.placeholder=Le.el}}else Ue(Ve,B,Q,Z,ve,Ee,He)},qe=(B,Q,Z)=>{const he=Q.component=B.component;if(fw(B,Q,Z))if(he.asyncDep&&!he.asyncResolved){je(he,Q,Z);return}else he.next=Q,he.update();else Q.el=B.el,he.vnode=Q},Ue=(B,Q,Z,he,ve,Ee,He)=>{const Ve=()=>{if(B.isMounted){let{next:De,bu:vt,u:Je,parent:re,vnode:ye}=B;{const gn=Ay(B);if(gn){De&&(De.el=ye.el,je(B,De,He)),gn.asyncDep.then(()=>{Kn(()=>{B.isUnmounted||Te()},ve)});return}}let yt=De,At;pi(B,!1),De?(De.el=ye.el,je(B,De,He)):De=ye,vt&&vo(vt),(At=De.props&&De.props.onVnodeBeforeUpdate)&&es(At,re,De,ye),pi(B,!0);const Mt=Yp(B),zn=B.subTree;B.subTree=Mt,E(zn,Mt,g(zn.el),at(zn),B,ve,Ee),De.el=Mt.el,yt===null&&_w(B,Mt.el),Je&&Kn(Je,ve),(At=De.props&&De.props.onVnodeUpdated)&&Kn(()=>es(At,re,De,ye),ve)}else{let De;const{el:vt,props:Je}=Q,{bm:re,m:ye,parent:yt,root:At,type:Mt}=B,zn=qa(Q);pi(B,!1),re&&vo(re),!zn&&(De=Je&&Je.onVnodeBeforeMount)&&es(De,yt,Q),pi(B,!0);{At.ce&&At.ce._hasShadowRoot()&&At.ce._injectChildStyle(Mt,B.parent?B.parent.type:void 0);const gn=B.subTree=Yp(B);E(null,gn,Z,he,B,ve,Ee),Q.el=gn.el}if(ye&&Kn(ye,ve),!zn&&(De=Je&&Je.onVnodeMounted)){const gn=Q;Kn(()=>es(De,yt,gn),ve)}(Q.shapeFlag&256||yt&&qa(yt.vnode)&&yt.vnode.shapeFlag&256)&&B.a&&Kn(B.a,ve),B.isMounted=!0,Q=Z=he=null}};B.scope.on();const Le=B.effect=new L3(Ve);B.scope.off();const Te=B.update=Le.run.bind(Le),ft=B.job=Le.runIfDirty.bind(Le);ft.i=B,ft.id=B.uid,Le.scheduler=()=>lm(ft),pi(B,!0),Te()},je=(B,Q,Z)=>{Q.component=B;const he=B.vnode.props;B.vnode=Q,B.next=null,vw(B,Q.props,he,Z),ww(B,Q.children,Z),wa(),Bp(B),ka()},nt=(B,Q,Z,he,ve,Ee,He,Ve,Le=!1)=>{const Te=B&&B.children,ft=B?B.shapeFlag:0,De=Q.children,{patchFlag:vt,shapeFlag:Je}=Q;if(vt>0){if(vt&128){G(Te,De,Z,he,ve,Ee,He,Ve,Le);return}else if(vt&256){Pt(Te,De,Z,he,ve,Ee,He,Ve,Le);return}}Je&8?(ft&16&&ue(Te,ve,Ee),De!==Te&&u(Z,De)):ft&16?Je&16?G(Te,De,Z,he,ve,Ee,He,Ve,Le):ue(Te,ve,Ee,!0):(ft&8&&u(Z,""),Je&16&&S(De,Z,he,ve,Ee,He,Ve,Le))},Pt=(B,Q,Z,he,ve,Ee,He,Ve,Le)=>{B=B||_o,Q=Q||_o;const Te=B.length,ft=Q.length,De=Math.min(Te,ft);let vt;for(vt=0;vtft?ue(B,ve,Ee,!0,!1,De):S(Q,Z,he,ve,Ee,He,Ve,Le,De)},G=(B,Q,Z,he,ve,Ee,He,Ve,Le)=>{let Te=0;const ft=Q.length;let De=B.length-1,vt=ft-1;for(;Te<=De&&Te<=vt;){const Je=B[Te],re=Q[Te]=Le?da(Q[Te]):Os(Q[Te]);if(Va(Je,re))E(Je,re,Z,null,ve,Ee,He,Ve,Le);else break;Te++}for(;Te<=De&&Te<=vt;){const Je=B[De],re=Q[vt]=Le?da(Q[vt]):Os(Q[vt]);if(Va(Je,re))E(Je,re,Z,null,ve,Ee,He,Ve,Le);else break;De--,vt--}if(Te>De){if(Te<=vt){const Je=vt+1,re=Jevt)for(;Te<=De;)W(B[Te],ve,Ee,!0),Te++;else{const Je=Te,re=Te,ye=new Map;for(Te=re;Te<=vt;Te++){const Zn=Q[Te]=Le?da(Q[Te]):Os(Q[Te]);Zn.key!=null&&ye.set(Zn.key,Te)}let yt,At=0;const Mt=vt-re+1;let zn=!1,gn=0;const Es=new Array(Mt);for(Te=0;Te=Mt){W(Zn,ve,Ee,!0);continue}let pr;if(Zn.key!=null)pr=ye.get(Zn.key);else for(yt=re;yt<=vt;yt++)if(Es[yt-re]===0&&Va(Zn,Q[yt])){pr=yt;break}pr===void 0?W(Zn,ve,Ee,!0):(Es[pr-re]=Te+1,pr>=gn?gn=pr:zn=!0,E(Zn,Q[pr],Z,null,ve,Ee,He,Ve,Le),At++)}const Ys=zn?Tw(Es):_o;for(yt=Ys.length-1,Te=Mt-1;Te>=0;Te--){const Zn=re+Te,pr=Q[Zn],Uo=Q[Zn+1],Ho=Zn+1{const{el:Ee,type:He,transition:Ve,children:Le,shapeFlag:Te}=B;if(Te&6){X(B.component.subTree,Q,Z,he);return}if(Te&128){B.suspense.move(Q,Z,he);return}if(Te&64){He.move(B,Q,Z,Bt);return}if(He===gt){n(Ee,Q,Z);for(let De=0;DeVe.enter(Ee),ve);else{const{leave:De,delayLeave:vt,afterLeave:Je}=Ve,re=()=>{B.ctx.isUnmounted?s(Ee):n(Ee,Q,Z)},ye=()=>{Ee._isLeaving&&Ee[Ls](!0),De(Ee,()=>{re(),Je&&Je()})};vt?vt(Ee,re,ye):ye()}else n(Ee,Q,Z)},W=(B,Q,Z,he=!1,ve=!1)=>{const{type:Ee,props:He,ref:Ve,children:Le,dynamicChildren:Te,shapeFlag:ft,patchFlag:De,dirs:vt,cacheIndex:Je,memo:re}=B;if(De===-2&&(ve=!1),Ve!=null&&(wa(),Ml(Ve,null,Z,B,!0),ka()),Je!=null&&(Q.renderCache[Je]=void 0),ft&256){Q.ctx.deactivate(B);return}const ye=ft&1&&vt,yt=!qa(B);let At;if(yt&&(At=He&&He.onVnodeBeforeUnmount)&&es(At,Q,B),ft&6)me(B.component,Z,he);else{if(ft&128){B.suspense.unmount(Z,he);return}ye&&mi(B,null,Q,"beforeUnmount"),ft&64?B.type.remove(B,Q,Z,Bt,he):Te&&!Te.hasOnce&&(Ee!==gt||De>0&&De&64)?ue(Te,Q,Z,!1,!0):(Ee===gt&&De&384||!ve&&ft&16)&&ue(Le,Q,Z),he&&Y(B)}const Mt=re!=null&&Je==null;(yt&&(At=He&&He.onVnodeUnmounted)||ye||Mt)&&Kn(()=>{At&&es(At,Q,B),ye&&mi(B,null,Q,"unmounted"),Mt&&(B.el=null)},Z)},Y=B=>{const{type:Q,el:Z,anchor:he,transition:ve}=B;if(Q===gt){ce(Z,he);return}if(Q===cu){N(B);return}const Ee=()=>{s(Z),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(B.shapeFlag&1&&ve&&!ve.persisted){const{leave:He,delayLeave:Ve}=ve,Le=()=>He(Z,Ee);Ve?Ve(B.el,Ee,Le):Le()}else Ee()},ce=(B,Q)=>{let Z;for(;B!==Q;)Z=y(B),s(B),B=Z;s(Q)},me=(B,Q,Z)=>{const{bum:he,scope:ve,job:Ee,subTree:He,um:Ve,m:Le,a:Te}=B;Su(Le),Su(Te),he&&vo(he),ve.stop(),Ee&&(Ee.flags|=8,W(He,B,Q,Z)),Ve&&Kn(Ve,Q),Kn(()=>{B.isUnmounted=!0},Q)},ue=(B,Q,Z,he=!1,ve=!1,Ee=0)=>{for(let He=Ee;He{if(B.shapeFlag&6)return at(B.component.subTree);if(B.shapeFlag&128)return B.suspense.next();const Q=y(B.anchor||B.el),Z=Q&&Q[UC];return Z?y(Z):Q};let it=!1;const $t=(B,Q,Z)=>{let he;B==null?Q._vnode&&(W(Q._vnode,null,null,!0),he=Q._vnode.component):E(Q._vnode||null,B,Q,null,null,null,Z),Q._vnode=B,it||(it=!0,Bp(he),X3(),it=!1)},Bt={p:E,um:W,m:X,r:Y,mt:Ae,mc:S,pc:nt,pbc:U,n:at,o:t};return{render:$t,hydrate:void 0,createApp:cw($t)}}function W0({type:t,props:r},e){return e==="svg"&&t==="foreignObject"||e==="mathml"&&t==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:e}function pi({effect:t,job:r},e){e?(t.flags|=32,r.flags|=4):(t.flags&=-33,r.flags&=-5)}function Ew(t,r){return(!t||t&&!t.pendingBranch)&&r&&!r.persisted}function Iy(t,r,e=!1){const n=t.children,s=r.children;if(kt(n)&&kt(s))for(let a=0;a>1,t[e[o]]0&&(r[n]=e[a-1]),e[a]=n)}}for(a=e.length,i=e[a-1];a-- >0;)e[a]=i,i=r[i];return e}function Ay(t){const r=t.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:Ay(r)}function Su(t){if(t)for(let r=0;rt.__isSuspense;function $w(t,r){r&&r.pendingBranch?kt(t)?r.effects.push(...t):r.effects.push(t):OC(t)}const gt=Symbol.for("v-fgt"),uc=Symbol.for("v-txt"),rr=Symbol.for("v-cmt"),cu=Symbol.for("v-stc"),xl=[];let Br=null;function f(t=!1){xl.push(Br=t?null:[])}function Iw(){xl.pop(),Br=xl[xl.length-1]||null}let Kl=1;function Tu(t,r=!1){Kl+=t,t<0&&Br&&r&&(Br.hasOnce=!0)}function Ry(t){return t.dynamicChildren=Kl>0?Br||_o:null,Iw(),Kl>0&&Br&&Br.push(t),t}function v(t,r,e,n,s,a){return Ry(m(t,r,e,n,s,a,!0))}function se(t,r,e,n,s){return Ry($(t,r,e,n,s,!0))}function To(t){return t?t.__v_isVNode===!0:!1}function Va(t,r){return t.type===r.type&&t.key===r.key}const Py=({key:t})=>t!=null?t:null,uu=({ref:t,ref_key:r,ref_for:e})=>(typeof t=="number"&&(t=""+t),t!=null?_n(t)||kn(t)||Nt(t)?{i:sr,r:t,k:r,f:!!e}:t:null);function m(t,r=null,e=null,n=0,s=null,a=t===gt?0:1,i=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&Py(r),ref:r&&uu(r),scopeId:ty,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:sr};return o?(fm(l,e),a&128&&t.normalize(l)):e&&(l.shapeFlag|=_n(e)?8:16),Kl>0&&!i&&Br&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Br.push(l),l}const $=Aw;function Aw(t,r=null,e=null,n=0,s=null,a=!1){if((!t||t===hy)&&(t=rr),To(t)){const o=ws(t,r,!0);return e&&fm(o,e),Kl>0&&!a&&Br&&(o.shapeFlag&6?Br[Br.indexOf(t)]=o:Br.push(o)),o.patchFlag=-2,o}if(Fw(t)&&(t=t.__vccOpts),r){r=zw(r);let{class:o,style:l}=r;o&&!_n(o)&&(r.class=pt(o)),Xt(l)&&(hd(l)&&!kt(l)&&(l=jn({},l)),r.style=ko(l))}const i=_n(t)?1:Eu(t)?128:ry(t)?64:Xt(t)?4:Nt(t)?2:0;return m(t,r,e,n,s,i,a,!0)}function zw(t){return t?hd(t)||wy(t)?jn({},t):t:null}function ws(t,r,e=!1,n=!1){const{props:s,ref:a,patchFlag:i,children:o,transition:l}=t,d=r?My(s||{},r):s,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&Py(d),ref:r&&r.ref?e&&a?kt(a)?a.concat(uu(r)):[a,uu(r)]:uu(r):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==gt?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ws(t.ssContent),ssFallback:t.ssFallback&&ws(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&Eo(u,l.clone(u)),u}function Be(t=" ",r=0){return $(uc,null,t,r)}function Ny(t,r){const e=$(cu,null,t);return e.staticCount=r,e}function D(t="",r=!1){return r?(f(),se(rr,null,t)):$(rr,null,t)}function Os(t){return t==null||typeof t=="boolean"?$(rr):kt(t)?$(gt,null,t.slice()):To(t)?da(t):$(uc,null,String(t))}function da(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ws(t)}function fm(t,r){let e=0;const{shapeFlag:n}=t;if(r==null)r=null;else if(kt(r))e=16;else if(typeof r=="object")if(n&65){const s=r.default;s&&(s._c&&(s._d=!1),fm(t,s()),s._c&&(s._d=!0));return}else{e=32;const s=r._;!s&&!wy(r)?r._ctx=sr:s===3&&sr&&(sr.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else Nt(r)?(r={default:r,_ctx:sr},e=32):(r=String(r),n&64?(e=16,r=[Be(r)]):e=8);t.children=r,t.shapeFlag|=e}function My(...t){const r={};for(let e=0;eur||sr;let $u,O2;{const t=ud(),r=(e,n)=>{let s;return(s=t[e])||(s=t[e]=[]),s.push(n),a=>{s.length>1?s.forEach(i=>i(a)):s[0](a)}};$u=r("__VUE_INSTANCE_SETTERS__",e=>ur=e),O2=r("__VUE_SSR_SETTERS__",e=>Yl=e)}const dc=t=>{const r=ur;return $u(t),t.scope.on(),()=>{t.scope.off(),$u(r)}},Xp=()=>{ur&&ur.scope.off(),$u(null)};function Ly(t){return t.vnode.shapeFlag&4}let Yl=!1;function Mw(t,r=!1,e=!1){r&&O2(r);const{props:n,children:s}=t.vnode,a=Ly(t);gw(t,n,a,r),Cw(t,s,e||r);const i=a?Lw(t,r):void 0;return r&&O2(!1),i}function Lw(t,r){const e=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,nw);const{setup:n}=e;if(n){wa();const s=t.setupContext=n.length>1?Ow(t):null,a=dc(t),i=lc(n,t,0,[t.props,s]),o=E3(i);if(ka(),a(),(o||t.sp)&&!qa(t)&&cy(t),o){if(i.then(Xp,Xp),r)return i.then(l=>{ef(t,l)}).catch(l=>{pd(l,t,0)});t.asyncDep=i}else ef(t,i)}else xy(t)}function ef(t,r,e){Nt(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:Xt(r)&&(t.setupState=Y3(r)),xy(t)}function xy(t,r,e){const n=t.type;t.render||(t.render=n.render||qs);{const s=dc(t);wa();try{rw(t)}finally{ka(),s()}}}const xw={get(t,r){return cr(t,"get",""),t[r]}};function Ow(t){const r=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,xw),slots:t.slots,emit:t.emit,expose:r}}function yd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Y3(om(t.exposed)),{get(r,e){if(e in r)return r[e];if(e in Ll)return Ll[e](t)},has(r,e){return e in r||e in Ll}})):t.proxy}function F2(t,r=!0){return Nt(t)?t.displayName||t.name:t.name||r&&t.__name}function Fw(t){return Nt(t)&&"__vccOpts"in t}const te=(t,r)=>PC(t,r,Yl);function Zs(t,r,e){try{Tu(-1);const n=arguments.length;return n===2?Xt(r)&&!kt(r)?To(r)?$(t,null,[r]):$(t,r):$(t,null,r):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&To(e)&&(e=[e]),$(t,r,e))}finally{Tu(1)}}const Dw="3.5.34";/** * @vue/runtime-dom v3.5.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let D2;const tf=typeof window<"u"&&window.trustedTypes;if(tf)try{D2=tf.createPolicy("vue",{createHTML:t=>t})}catch(t){}const Oy=D2?t=>D2.createHTML(t):t=>t,Vw="http://www.w3.org/2000/svg",Bw="http://www.w3.org/1998/Math/MathML",ca=typeof document<"u"?document:null,nf=ca&&ca.createElement("template"),Uw={insert:(t,r,e)=>{r.insertBefore(t,e||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,e,n)=>{const s=r==="svg"?ca.createElementNS(Vw,t):r==="mathml"?ca.createElementNS(Bw,t):e?ca.createElement(t,{is:e}):ca.createElement(t);return t==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:t=>ca.createTextNode(t),createComment:t=>ca.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ca.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,e,n,s,a){const i=e?e.previousSibling:r.lastChild;if(s&&(s===a||s.nextSibling))for(;r.insertBefore(s.cloneNode(!0),e),!(s===a||!(s=s.nextSibling)););else{nf.innerHTML=Oy(n==="svg"?"".concat(t,""):n==="mathml"?"".concat(t,""):t);const o=nf.content;if(n==="svg"||n==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}r.insertBefore(o,e)}return[i?i.nextSibling:r.firstChild,e?e.previousSibling:r.lastChild]}},Ma="transition",ol="animation",Ql=Symbol("_vtc"),Fy={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Hw=jn({},sy,Fy),qw=t=>(t.displayName="Transition",t.props=Hw,t),rt=qw((t,{slots:r})=>Zs(WC,Ww(t),r)),fi=(t,r=[])=>{kt(t)?t.forEach(e=>e(...r)):t&&t(...r)},rf=t=>t?kt(t)?t.some(r=>r.length>1):t.length>1:!1;function Ww(t){const r={};for(const J in t)J in Fy||(r[J]=t[J]);if(t.css===!1)return r;const{name:e="v",type:n,duration:s,enterFromClass:a="".concat(e,"-enter-from"),enterActiveClass:i="".concat(e,"-enter-active"),enterToClass:o="".concat(e,"-enter-to"),appearFromClass:l=a,appearActiveClass:d=i,appearToClass:u=o,leaveFromClass:g="".concat(e,"-leave-from"),leaveActiveClass:y="".concat(e,"-leave-active"),leaveToClass:w="".concat(e,"-leave-to")}=t,k=Gw(s),E=k&&k[0],R=k&&k[1],{onBeforeEnter:O,onEnter:M,onEnterCancelled:x,onLeave:N,onLeaveCancelled:A,onBeforeAppear:V=O,onAppear:F=M,onAppearCancelled:S=x}=r,z=(J,de,Ae,qe)=>{J._enterCancelled=qe,_i(J,de?u:o),_i(J,de?d:i),Ae&&Ae()},U=(J,de)=>{J._isLeaving=!1,_i(J,g),_i(J,w),_i(J,y),de&&de()},j=J=>(de,Ae)=>{const qe=J?F:M,Ue=()=>z(de,J,Ae);fi(qe,[de,Ue]),sf(()=>{_i(de,J?l:a),ra(de,J?u:o),rf(qe)||af(de,n,E,Ue)})};return jn(r,{onBeforeEnter(J){fi(O,[J]),ra(J,a),ra(J,i)},onBeforeAppear(J){fi(V,[J]),ra(J,l),ra(J,d)},onEnter:j(!1),onAppear:j(!0),onLeave(J,de){J._isLeaving=!0;const Ae=()=>U(J,de);ra(J,g),J._enterCancelled?(ra(J,y),cf(J)):(cf(J),ra(J,y)),sf(()=>{J._isLeaving&&(_i(J,g),ra(J,w),rf(N)||af(J,n,R,Ae))}),fi(N,[J,Ae])},onEnterCancelled(J){z(J,!1,void 0,!0),fi(x,[J])},onAppearCancelled(J){z(J,!0,void 0,!0),fi(S,[J])},onLeaveCancelled(J){U(J),fi(A,[J])}})}function Gw(t){if(t==null)return null;if(Xt(t))return[G0(t.enter),G0(t.leave)];{const r=G0(t);return[r,r]}}function G0(t){return Jb(t)}function ra(t,r){r.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[Ql]||(t[Ql]=new Set)).add(r)}function _i(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const e=t[Ql];e&&(e.delete(r),e.size||(t[Ql]=void 0))}function sf(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let jw=0;function af(t,r,e,n){const s=t._endId=++jw,a=()=>{s===t._endId&&n()};if(e!=null)return setTimeout(a,e);const{type:i,timeout:o,propCount:l}=Zw(t,r);if(!i)return n();const d=i+"end";let u=0;const g=()=>{t.removeEventListener(d,y),a()},y=w=>{w.target===t&&++u>=l&&g()};setTimeout(()=>{u(e[k]||"").split(", "),s=n("".concat(Ma,"Delay")),a=n("".concat(Ma,"Duration")),i=of(s,a),o=n("".concat(ol,"Delay")),l=n("".concat(ol,"Duration")),d=of(o,l);let u=null,g=0,y=0;r===Ma?i>0&&(u=Ma,g=i,y=a.length):r===ol?d>0&&(u=ol,g=d,y=l.length):(g=Math.max(i,d),u=g>0?i>d?Ma:ol:null,y=u?u===Ma?a.length:l.length:0);const w=u===Ma&&/\b(?:transform|all)(?:,|$)/.test(n("".concat(Ma,"Property")).toString());return{type:u,timeout:g,propCount:y,hasTransform:w}}function of(t,r){for(;t.lengthlf(e)+lf(t[n])))}function lf(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function cf(t){return(t?t.ownerDocument:document).body.offsetHeight}function Kw(t,r,e){const n=t[Ql];n&&(r=(r?[r,...n]:[...n]).join(" ")),r==null?t.removeAttribute("class"):e?t.setAttribute("class",r):t.className=r}const Iu=Symbol("_vod"),Dy=Symbol("_vsh"),hr={name:"show",beforeMount(t,{value:r},{transition:e}){t[Iu]=t.style.display==="none"?"":t.style.display,e&&r?e.beforeEnter(t):ll(t,r)},mounted(t,{value:r},{transition:e}){e&&r&&e.enter(t)},updated(t,{value:r,oldValue:e},{transition:n}){!r!=!e&&(n?r?(n.beforeEnter(t),ll(t,!0),n.enter(t)):n.leave(t,()=>{ll(t,!1)}):ll(t,r))},beforeUnmount(t,{value:r}){ll(t,r)}};function ll(t,r){t.style.display=r?t[Iu]:"none",t[Dy]=!r}const Yw=Symbol(""),Qw=/(?:^|;)\s*display\s*:/;function Jw(t,r,e){const n=t.style,s=_n(e);let a=!1;if(e&&!s){if(r)if(_n(r))for(const i of r.split(";")){const o=i.slice(0,i.indexOf(":")).trim();e[o]==null&&Sl(n,o,"")}else for(const i in r)e[i]==null&&Sl(n,i,"");for(const i in e){i==="display"&&(a=!0);const o=e[i];o!=null?ek(t,i,!_n(r)&&r?r[i]:void 0,o)||Sl(n,i,o):Sl(n,i,"")}}else if(s){if(r!==e){const i=n[Yw];i&&(e+=";"+i),n.cssText=e,a=Qw.test(e)}}else r&&t.removeAttribute("style");Iu in t&&(t[Iu]=a?n.display:"",t[Dy]&&(n.display="none"))}const uf=/\s*!important$/;function Sl(t,r,e){if(kt(e))e.forEach(n=>Sl(t,r,n));else if(e==null&&(e=""),r.startsWith("--"))t.setProperty(r,e);else{const n=Xw(t,r);uf.test(e)?t.setProperty(Fi(n),e.replace(uf,""),"important"):t[n]=e}}const df=["Webkit","Moz","ms"],j0={};function Xw(t,r){const e=j0[r];if(e)return e;let n=Er(r);if(n!=="filter"&&n in t)return j0[r]=n;n=ld(n);for(let s=0;sZ0||(sk.then(()=>Z0=0),Z0=Date.now());function ik(t,r){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Cs(ok(n,e.value),r,5,[n])};return e.value=t,e.attached=ak(),e}function ok(t,r){if(kt(r)){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{e.call(t),t._stopped=!0},r.map(n=>s=>!s._stopped&&n&&n(s))}else return r}const gf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,lk=(t,r,e,n,s,a)=>{const i=s==="svg";r==="class"?Kw(t,n,i):r==="style"?Jw(t,e,n):sd(r)?ad(r)||nk(t,r,e,n,a):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):ck(t,r,n,i))?(pf(t,r,n),!t.tagName.includes("-")&&(r==="value"||r==="checked"||r==="selected")&&mf(t,r,n,i,a,r!=="value")):t._isVueCE&&(uk(t,r)||t._def.__asyncLoader&&(/[A-Z]/.test(r)||!_n(n)))?pf(t,Er(r),n,a,r):(r==="true-value"?t._trueValue=n:r==="false-value"&&(t._falseValue=n),mf(t,r,n,i))};function ck(t,r,e,n){if(n)return!!(r==="innerHTML"||r==="textContent"||r in t&&gf(r)&&Nt(e));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="autocorrect"||r==="sandbox"&&t.tagName==="IFRAME"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return gf(r)&&_n(e)?!1:r in t}function uk(t,r){const e=t._def.props;if(!e)return!1;const n=Er(r);return Array.isArray(e)?e.some(s=>Er(s)===n):Object.keys(e).some(s=>Er(s)===n)}const Ga=t=>{const r=t.props["onUpdate:modelValue"]||!1;return kt(r)?e=>vo(r,e):r};function dk(t){t.target.composing=!0}function vf(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const ss=Symbol("_assign");function yf(t,r,e){return r&&(t=t.trim()),e&&(t=cd(t)),t}const Wt={created(t,{modifiers:{lazy:r,trim:e,number:n}},s){t[ss]=Ga(s);const a=n||s.props&&s.props.type==="number";fa(t,r?"change":"input",i=>{i.target.composing||t[ss](yf(t.value,e,a))}),(e||a)&&fa(t,"change",()=>{t.value=yf(t.value,e,a)}),r||(fa(t,"compositionstart",dk),fa(t,"compositionend",vf),fa(t,"change",vf))},mounted(t,{value:r}){t.value=r==null?"":r},beforeUpdate(t,{value:r,oldValue:e,modifiers:{lazy:n,trim:s,number:a}},i){if(t[ss]=Ga(i),t.composing)return;const o=(a||t.type==="number")&&!/^0\d/.test(t.value)?cd(t.value):t.value,l=r==null?"":r;if(o===l)return;const d=t.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===t&&t.type!=="range"&&(n&&r===e||s&&t.value.trim()===l)||(t.value=l)}},Vy={deep:!0,created(t,r,e){t[ss]=Ga(e),fa(t,"change",()=>{const n=t._modelValue,s=$o(t),a=t.checked,i=t[ss];if(kt(n)){const o=Xh(n,s),l=o!==-1;if(a&&!l)i(n.concat(s));else if(!a&&l){const d=[...n];d.splice(o,1),i(d)}}else if(Oo(n)){const o=new Set(n);a?o.add(s):o.delete(s),i(o)}else i(By(t,a))})},mounted:bf,beforeUpdate(t,r,e){t[ss]=Ga(e),bf(t,r,e)}};function bf(t,{value:r,oldValue:e},n){t._modelValue=r;let s;if(kt(r))s=Xh(r,n.props.value)>-1;else if(Oo(r))s=r.has(n.props.value);else{if(r===e)return;s=Wa(r,By(t,!0))}t.checked!==s&&(t.checked=s)}const hk={created(t,{value:r},e){t.checked=Wa(r,e.props.value),t[ss]=Ga(e),fa(t,"change",()=>{t[ss]($o(t))})},beforeUpdate(t,{value:r,oldValue:e},n){t[ss]=Ga(n),r!==e&&(t.checked=Wa(r,n.props.value))}},ks={deep:!0,created(t,{value:r,modifiers:{number:e}},n){const s=Oo(r);fa(t,"change",()=>{const a=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>e?cd($o(i)):$o(i));t[ss](t.multiple?s?new Set(a):a:a[0]),t._assigning=!0,Vr(()=>{t._assigning=!1})}),t[ss]=Ga(n)},mounted(t,{value:r}){Cf(t,r)},beforeUpdate(t,r,e){t[ss]=Ga(e)},updated(t,{value:r}){t._assigning||Cf(t,r)}};function Cf(t,r){const e=t.multiple,n=kt(r);if(!(e&&!n&&!Oo(r))){for(let s=0,a=t.options.length;sString(d)===String(o)):i.selected=Xh(r,o)>-1}else i.selected=r.has(o);else if(Wa($o(i),r)){t.selectedIndex!==s&&(t.selectedIndex=s);return}}!e&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function $o(t){return"_value"in t?t._value:t.value}function By(t,r){const e=r?"_trueValue":"_falseValue";return e in t?t[e]:r}const Uy={created(t,r,e){Zc(t,r,e,null,"created")},mounted(t,r,e){Zc(t,r,e,null,"mounted")},beforeUpdate(t,r,e,n){Zc(t,r,e,n,"beforeUpdate")},updated(t,r,e,n){Zc(t,r,e,n,"updated")}};function mk(t,r){switch(t){case"SELECT":return ks;case"TEXTAREA":return Wt;default:switch(r){case"checkbox":return Vy;case"radio":return hk;default:return Wt}}}function Zc(t,r,e,n,s){const i=mk(t.tagName,e.props&&e.props.type)[s];i&&i(t,r,e,n)}const pk=["ctrl","shift","alt","meta"],fk={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>pk.some(e=>t["".concat(e,"Key")]&&!r.includes(e))},jt=(t,r)=>{if(!t)return t;const e=t._withMods||(t._withMods={}),n=r.join(".");return e[n]||(e[n]=((s,...a)=>{for(let i=0;i{const r=gk().createApp(...t),{mount:e}=r;return r.mount=n=>{const s=bk(n);if(!s)return;const a=r._component;!Nt(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=e(s,!1,yk(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},r});function yk(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function bk(t){return _n(t)?document.querySelector(t):t}/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Hy;const bd=t=>Hy=t,qy=Symbol();function V2(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ol;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ol||(Ol={}));function Ck(){const t=em(!0),r=t.run(()=>ge({}));let e=[],n=[];const s=om({install(a){bd(s),s._a=a,a.provide(qy,s),a.config.globalProperties.$pinia=s,n.forEach(i=>e.push(i)),n=[]},use(a){return this._a?e.push(a):n.push(a),this},_p:e,_a:null,_e:t,_s:new Map,state:r});return s}const Wy=()=>{};function kf(t,r,e,n=Wy){t.push(r);const s=()=>{const a=t.indexOf(r);a>-1&&(t.splice(a,1),n())};return!e&&N3()&&M3(s),s}function Xi(t,...r){t.slice().forEach(e=>{e(...r)})}const wk=t=>t(),Sf=Symbol(),K0=Symbol();function B2(t,r){t instanceof Map&&r instanceof Map?r.forEach((e,n)=>t.set(n,e)):t instanceof Set&&r instanceof Set&&r.forEach(t.add,t);for(const e in r){if(!r.hasOwnProperty(e))continue;const n=r[e],s=t[e];V2(s)&&V2(n)&&t.hasOwnProperty(e)&&!kn(n)&&!ya(n)?t[e]=B2(s,n):t[e]=n}return t}const kk=Symbol();function Sk(t){return!V2(t)||!t.hasOwnProperty(kk)}const{assign:Fa}=Object;function Ek(t){return!!(kn(t)&&t.effect)}function Tk(t,r,e,n){const{state:s,actions:a,getters:i}=r,o=e.state.value[t];let l;function d(){o||(e.state.value[t]=s?s():{});const u=IC(e.state.value[t]);return Fa(u,a,Object.keys(i||{}).reduce((g,y)=>(g[y]=om(te(()=>{bd(e);const w=e._s.get(t);return i[y].call(w,w)})),g),{}))}return l=Gy(t,d,r,e,n,!0),l}function Gy(t,r,e={},n,s,a){let i;const o=Fa({actions:{}},e),l={deep:!0};let d,u,g=[],y=[],w;const k=n.state.value[t];!a&&!k&&(n.state.value[t]={});let E;function R(S){let z;d=u=!1,typeof S=="function"?(S(n.state.value[t]),z={type:Ol.patchFunction,storeId:t,events:w}):(B2(n.state.value[t],S),z={type:Ol.patchObject,payload:S,storeId:t,events:w});const U=E=Symbol();Vr().then(()=>{E===U&&(d=!0)}),u=!0,Xi(g,z,n.state.value[t])}const O=a?function(){const{state:z}=e,U=z?z():{};this.$patch(j=>{Fa(j,U)})}:Wy;function M(){i.stop(),g=[],y=[],n._s.delete(t)}const x=(S,z="")=>{if(Sf in S)return S[K0]=z,S;const U=function(){bd(n);const j=Array.from(arguments),J=[],de=[];function Ae(je){J.push(je)}function qe(je){de.push(je)}Xi(y,{args:j,name:U[K0],store:A,after:Ae,onError:qe});let Ue;try{Ue=S.apply(this&&this.$id===t?this:A,j)}catch(je){throw Xi(de,je),je}return Ue instanceof Promise?Ue.then(je=>(Xi(J,je),je)).catch(je=>(Xi(de,je),Promise.reject(je))):(Xi(J,Ue),Ue)};return U[Sf]=!0,U[K0]=z,U},N={_p:n,$id:t,$onAction:kf.bind(null,y),$patch:R,$reset:O,$subscribe(S,z={}){const U=kf(g,S,z.detached,()=>j()),j=i.run(()=>Sn(()=>n.state.value[t],J=>{(z.flush==="sync"?u:d)&&S({storeId:t,type:Ol.direct,events:w},J)},Fa({},l,z)));return U},$dispose:M},A=Qa(N);n._s.set(t,A);const F=(n._a&&n._a.runWithContext||wk)(()=>n._e.run(()=>(i=em()).run(()=>r({action:x}))));for(const S in F){const z=F[S];if(kn(z)&&!Ek(z)||ya(z))a||(k&&Sk(z)&&(kn(z)?z.value=k[S]:B2(z,k[S])),n.state.value[t][S]=z);else if(typeof z=="function"){const U=x(z,S);F[S]=U,o.actions[S]=z}}return Fa(A,F),Fa(Lt(A),F),Object.defineProperty(A,"$state",{get:()=>n.state.value[t],set:S=>{R(z=>{Fa(z,S)})}}),n._p.forEach(S=>{Fa(A,i.run(()=>S({store:A,app:n._a,pinia:n,options:o})))}),k&&a&&e.hydrate&&e.hydrate(A.$state,k),d=!0,u=!0,A}/*! #__NO_SIDE_EFFECTS__ */function Cd(t,r,e){let n,s;const a=typeof r=="function";typeof t=="string"?(n=t,s=a?e:r):(s=t,n=t.id);function i(o,l){const d=FC();return o=o||(d?Wr(qy,null):null),o&&bd(o),o=Hy,o._s.has(n)||(a?Gy(n,r,s,o):Tk(n,s,o)),o._s.get(n)}return i.$id=n,i}function we(t,r){return Array.isArray(r)?r.reduce((e,n)=>(e[n]=function(){return t(this.$pinia)[n]},e),{}):Object.keys(r).reduce((e,n)=>(e[n]=function(){const s=t(this.$pinia),a=r[n];return typeof a=="function"?a.call(this,s):s[a]},e),{})}function It(t,r){return Array.isArray(r)?r.reduce((e,n)=>(e[n]=function(...s){return t(this.$pinia)[n](...s)},e),{}):Object.keys(r).reduce((e,n)=>(e[n]=function(...s){return t(this.$pinia)[r[n]](...s)},e),{})}/*! * shared v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function $k(t,r){typeof console<"u"&&(console.warn("[intlify] "+t),r&&console.warn(r.stack))}const Au=typeof window<"u",Xa=(t,r=!1)=>r?Symbol.for(t):Symbol(t),Ik=(t,r,e)=>Ak({l:t,k:r,s:e}),Ak=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),qn=t=>typeof t=="number"&&isFinite(t),zk=t=>Zy(t)==="[object Date]",ja=t=>Zy(t)==="[object RegExp]",wd=t=>Rt(t)&&Object.keys(t).length===0,ar=Object.assign,Rk=Object.create,an=(t=null)=>Rk(t);let Ef;const _m=()=>Ef||(Ef=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:an());function Tf(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function $f(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Pk(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(n,s,a)=>"".concat(s,'="').concat($f(a),'"')),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(n,s,a)=>"".concat(s,"='").concat($f(a),"'")),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(n=>{t=t.replace(n,"$1javascript:")}),t}const Nk=Object.prototype.hasOwnProperty;function Mi(t,r){return Nk.call(t,r)}const fn=Array.isArray,dn=t=>typeof t=="function",Ye=t=>typeof t=="string",Ut=t=>typeof t=="boolean",Yt=t=>t!==null&&typeof t=="object",Mk=t=>Yt(t)&&dn(t.then)&&dn(t.catch),jy=Object.prototype.toString,Zy=t=>jy.call(t),Rt=t=>{if(!Yt(t))return!1;const r=Object.getPrototypeOf(t);return r===null||r.constructor===Object},Lk=t=>t==null?"":fn(t)||Rt(t)&&t.toString===jy?JSON.stringify(t,null,2):String(t);function xk(t,r=""){return t.reduce((e,n,s)=>s===0?e+n:e+r+n,"")}function kd(t){let r=t;return()=>++r}const Kc=t=>!Yt(t)||fn(t);function du(t,r){if(Kc(t)||Kc(r))throw new Error("Invalid value");const e=[{src:t,des:r}];for(;e.length;){const{src:n,des:s}=e.pop();Object.keys(n).forEach(a=>{a!=="__proto__"&&(Yt(n[a])&&!Yt(s[a])&&(s[a]=Array.isArray(n[a])?[]:an()),Kc(s[a])||Kc(n[a])?s[a]=n[a]:e.push({src:n[a],des:s[a]}))})}}/*! * message-compiler v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */const Ok=/\{([0-9a-zA-Z]+)\}/g;function Fk(t,...r){return r.length===1&&Dk(r[0])&&(r=r[0]),(!r||!r.hasOwnProperty)&&(r={}),t.replace(Ok,(e,n)=>r.hasOwnProperty(n)?r[n]:"")}const Dk=t=>t!==null&&typeof t=="object",Vk={__EXTEND_POINT__:2},Xn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Bk={[Xn.EXPECTED_TOKEN]:"Expected token: '{0}'",[Xn.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Xn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Xn.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Xn.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Xn.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Xn.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Xn.EMPTY_PLACEHOLDER]:"Empty placeholder",[Xn.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Xn.INVALID_LINKED_FORMAT]:"Invalid linked format",[Xn.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Xn.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Xn.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Xn.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Xn.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Xn.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ky(t,r,e={}){const{domain:n,messages:s,args:a}=e,i=Fk((s||Bk)[t]||"",...a||[]),o=new SyntaxError(String(i));return o.code=t,o.domain=n,o}/*! * core-base v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function Uk(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_m().__INTLIFY_PROD_DEVTOOLS__=!1)}function Ws(t){return Yt(t)&&jk(t)===0&&(Mi(t,"b")||Mi(t,"body"))}const Hk=["b","body"],qk=["c","cases"],Wk=["s","static"],Gk=["i","items"],Yy=["t","type"];function jk(t){return Qk(t,Yy)}const Zk=["v","value"],Kk=["m","modifier"],Yk=["k","key"];function Qk(t,r,e){for(let n=0;n{i===void 0?i=o:i+=o},y[1]=()=>{i!==void 0&&(r.push(i),i=void 0)},y[2]=()=>{y[0](),s++},y[3]=()=>{if(s>0)s--,n=4,y[0]();else{if(s=0,i===void 0||(i=nS(i),i===!1))return!1;y[1]()}};function w(){const k=t[e+1];if(n===5&&k==="'"||n===6&&k==='"')return e++,o="\\"+k,y[0](),!0}for(;n!==null;)if(e++,a=t[e],!(a==="\\"&&w())){if(l=tS(a),g=ei[n],d=g[l]||g.l||8,d===8||(n=d[0],d[1]!==void 0&&(u=y[d[1]],u&&(o=a,u()===!1))))return;if(n===7)return r}}const If=new Map;function sS(t,r){return Yt(t)?t[r]:null}function aS(t,r){if(!Yt(t))return null;let e=If.get(r);if(e||(e=rS(r),e&&If.set(r,e)),!e)return null;const n=e.length;let s=t,a=0;for(;at,oS=t=>"",lS="text",cS=t=>t.length===0?"":xk(t),uS=Lk;function Af(t,r){return t=Math.abs(t),r===2?t?t>1?1:0:1:t?Math.min(t,2):0}function dS(t){const r=qn(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(qn(t.named.count)||qn(t.named.n))?qn(t.named.count)?t.named.count:qn(t.named.n)?t.named.n:r:r}function hS(t,r){r.count||(r.count=t),r.n||(r.n=t)}function mS(t={}){const r=t.locale,e=dS(t),n=Yt(t.pluralRules)&&Ye(r)&&dn(t.pluralRules[r])?t.pluralRules[r]:Af,s=Yt(t.pluralRules)&&Ye(r)&&dn(t.pluralRules[r])?Af:void 0,a=O=>O[n(e,O.length,s)],i=t.list||[],o=O=>i[O],l=t.named||an();qn(t.pluralIndex)&&hS(e,l);const d=O=>l[O];function u(O){const M=dn(t.messages)?t.messages(O):Yt(t.messages)?t.messages[O]:!1;return M||(t.parent?t.parent.message(O):oS)}const g=O=>t.modifiers?t.modifiers[O]:iS,y=Rt(t.processor)&&dn(t.processor.normalize)?t.processor.normalize:cS,w=Rt(t.processor)&&dn(t.processor.interpolate)?t.processor.interpolate:uS,k=Rt(t.processor)&&Ye(t.processor.type)?t.processor.type:lS,R={list:o,named:d,plural:a,linked:(O,...M)=>{const[x,N]=M;let A="text",V="";M.length===1?Yt(x)?(V=x.modifier||V,A=x.type||A):Ye(x)&&(V=x||V):M.length===2&&(Ye(x)&&(V=x||V),Ye(N)&&(A=N||A));const F=u(O)(R),S=A==="vnode"&&fn(F)&&V?F[0]:F;return V?g(V)(S,A):S},message:u,type:k,interpolate:w,normalize:y,values:ar(an(),i,l)};return R}let Jl=null;function pS(t){Jl=t}function fS(t,r,e){Jl&&Jl.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:r,meta:e})}const _S=gS("function:translate");function gS(t){return r=>Jl&&Jl.emit(t,r)}const vS=Vk.__EXTEND_POINT__,gi=kd(vS),yS={FALLBACK_TO_TRANSLATE:gi(),CANNOT_FORMAT_NUMBER:gi(),FALLBACK_TO_NUMBER_FORMAT:gi(),CANNOT_FORMAT_DATE:gi(),FALLBACK_TO_DATE_FORMAT:gi(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:gi(),__EXTEND_POINT__:gi()},Jy=Xn.__EXTEND_POINT__,vi=kd(Jy),Bs={INVALID_ARGUMENT:Jy,INVALID_DATE_ARGUMENT:vi(),INVALID_ISO_DATE_ARGUMENT:vi(),NOT_SUPPORT_NON_STRING_MESSAGE:vi(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:vi(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:vi(),NOT_SUPPORT_LOCALE_TYPE:vi(),__EXTEND_POINT__:vi()};function ga(t){return Ky(t,null,void 0)}function gm(t,r){return r.locale!=null?zf(r.locale):zf(t.locale)}let Y0;function zf(t){if(Ye(t))return t;if(dn(t)){if(t.resolvedOnce&&Y0!=null)return Y0;if(t.constructor.name==="Function"){const r=t();if(Mk(r))throw ga(Bs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Y0=r}else throw ga(Bs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ga(Bs.NOT_SUPPORT_LOCALE_TYPE)}function bS(t,r,e){return[...new Set([e,...fn(r)?r:Yt(r)?Object.keys(r):Ye(r)?[r]:[e]])]}function Xy(t,r,e){const n=Ye(e)?e:Io,s=t;s.__localeChainCache||(s.__localeChainCache=new Map);let a=s.__localeChainCache.get(n);if(!a){a=[];let i=[e];for(;fn(i);)i=Rf(a,i,r);const o=fn(r)||!Rt(r)?r:r.default?r.default:null;i=Ye(o)?[o]:o,fn(i)&&Rf(a,i,!1),s.__localeChainCache.set(n,a)}return a}function Rf(t,r,e){let n=!0;for(let s=0;s"".concat(t.charAt(0).toLocaleUpperCase()).concat(t.substr(1));function SS(){return{upper:(t,r)=>r==="text"&&Ye(t)?t.toUpperCase():r==="vnode"&&Yt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,r)=>r==="text"&&Ye(t)?t.toLowerCase():r==="vnode"&&Yt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,r)=>r==="text"&&Ye(t)?Nf(t):r==="vnode"&&Yt(t)&&"__v_isVNode"in t?Nf(t.children):t}}let ES,e4;function TS(t){e4=t}let t4;function $S(t){t4=t}let n4=null;const IS=t=>{n4=t},AS=()=>n4;let r4=null;const Mf=t=>{r4=t},zS=()=>r4;let Lf=0;function RS(t={}){const r=dn(t.onWarn)?t.onWarn:$k,e=Ye(t.version)?t.version:kS,n=Ye(t.locale)||dn(t.locale)?t.locale:Io,s=dn(n)?Io:n,a=fn(t.fallbackLocale)||Rt(t.fallbackLocale)||Ye(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:s,i=Rt(t.messages)?t.messages:Q0(s),o=Rt(t.datetimeFormats)?t.datetimeFormats:Q0(s),l=Rt(t.numberFormats)?t.numberFormats:Q0(s),d=ar(an(),t.modifiers,SS()),u=t.pluralRules||an(),g=dn(t.missing)?t.missing:null,y=Ut(t.missingWarn)||ja(t.missingWarn)?t.missingWarn:!0,w=Ut(t.fallbackWarn)||ja(t.fallbackWarn)?t.fallbackWarn:!0,k=!!t.fallbackFormat,E=!!t.unresolving,R=dn(t.postTranslation)?t.postTranslation:null,O=Rt(t.processor)?t.processor:null,M=Ut(t.warnHtmlMessage)?t.warnHtmlMessage:!0,x=!!t.escapeParameter,N=dn(t.messageCompiler)?t.messageCompiler:ES,A=dn(t.messageResolver)?t.messageResolver:e4||sS,V=dn(t.localeFallbacker)?t.localeFallbacker:t4||bS,F=Yt(t.fallbackContext)?t.fallbackContext:void 0,S=t,z=Yt(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,U=Yt(S.__numberFormatters)?S.__numberFormatters:new Map,j=Yt(S.__meta)?S.__meta:{};Lf++;const J={version:e,cid:Lf,locale:n,fallbackLocale:a,messages:i,modifiers:d,pluralRules:u,missing:g,missingWarn:y,fallbackWarn:w,fallbackFormat:k,unresolving:E,postTranslation:R,processor:O,warnHtmlMessage:M,escapeParameter:x,messageCompiler:N,messageResolver:A,localeFallbacker:V,fallbackContext:F,onWarn:r,__meta:j};return J.datetimeFormats=o,J.numberFormats=l,J.__datetimeFormatters=z,J.__numberFormatters=U,__INTLIFY_PROD_DEVTOOLS__&&fS(J,e,j),J}const Q0=t=>({[t]:an()});function vm(t,r,e,n,s){const{missing:a,onWarn:i}=t;if(a!==null){const o=a(t,e,r,s);return Ye(o)?o:r}else return r}function cl(t,r,e){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,e,r)}function PS(t,r){return t===r?!1:t.split("-")[0]===r.split("-")[0]}function NS(t,r){const e=r.indexOf(t);if(e===-1)return!1;for(let n=e+1;n"",ts=t=>dn(t);function Of(t,...r){const{fallbackFormat:e,postTranslation:n,unresolving:s,messageCompiler:a,fallbackLocale:i,messages:o}=t,[l,d]=U2(...r),u=Ut(d.missingWarn)?d.missingWarn:t.missingWarn,g=Ut(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,y=Ut(d.escapeParameter)?d.escapeParameter:t.escapeParameter,w=!!d.resolvedMessage,k=Ye(d.default)||Ut(d.default)?Ut(d.default)?a?l:()=>l:d.default:e?a?l:()=>l:"",E=e||k!=="",R=gm(t,d);y&&MS(d);let[O,M,x]=w?[l,R,o[R]||an()]:s4(t,l,R,i,g,u),N=O,A=l;if(!w&&!(Ye(N)||Ws(N)||ts(N))&&E&&(N=k,A=N),!w&&(!(Ye(N)||Ws(N)||ts(N))||!Ye(M)))return s?Sd:l;let V=!1;const F=()=>{V=!0},S=ts(N)?N:a4(t,l,M,N,A,F);if(V)return N;const z=OS(t,M,x,d),U=mS(z),j=LS(t,S,U);let J=n?n(j,l):j;if(y&&Ye(J)&&(J=Pk(J)),__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:Ye(l)?l:ts(N)?N.key:"",locale:M||(ts(N)?N.locale:""),format:Ye(N)?N:ts(N)?N.source:"",message:J};de.meta=ar({},t.__meta,AS()||{}),_S(de)}return J}function MS(t){fn(t.list)?t.list=t.list.map(r=>Ye(r)?Tf(r):r):Yt(t.named)&&Object.keys(t.named).forEach(r=>{Ye(t.named[r])&&(t.named[r]=Tf(t.named[r]))})}function s4(t,r,e,n,s,a){const{messages:i,onWarn:o,messageResolver:l,localeFallbacker:d}=t,u=d(t,n,e);let g=an(),y,w=null;const k="translate";for(let E=0;En);return d.locale=e,d.key=r,d}const l=i(n,xS(t,e,s,n,o,a));return l.locale=e,l.key=r,l.source=n,l}function LS(t,r,e){return r(e)}function U2(...t){const[r,e,n]=t,s=an();if(!Ye(r)&&!qn(r)&&!ts(r)&&!Ws(r))throw ga(Bs.INVALID_ARGUMENT);const a=qn(r)?String(r):(ts(r),r);return qn(e)?s.plural=e:Ye(e)?s.default=e:Rt(e)&&!wd(e)?s.named=e:fn(e)&&(s.list=e),qn(n)?s.plural=n:Ye(n)?s.default=n:Rt(n)&&ar(s,n),[a,s]}function xS(t,r,e,n,s,a){return{locale:r,key:e,warnHtmlMessage:s,onError:i=>{throw a&&a(i),i},onCacheKey:i=>Ik(r,e,i)}}function OS(t,r,e,n){const{modifiers:s,pluralRules:a,messageResolver:i,fallbackLocale:o,fallbackWarn:l,missingWarn:d,fallbackContext:u}=t,y={locale:r,modifiers:s,pluralRules:a,messages:w=>{let k=i(e,w);if(k==null&&u){const[,,E]=s4(u,w,r,o,l,d);k=i(E,w)}if(Ye(k)||Ws(k)){let E=!1;const O=a4(t,w,r,k,w,()=>{E=!0});return E?xf:O}else return ts(k)?k:xf}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),qn(n.plural)&&(y.pluralIndex=n.plural),y}function Ff(t,...r){const{datetimeFormats:e,unresolving:n,fallbackLocale:s,onWarn:a,localeFallbacker:i}=t,{__datetimeFormatters:o}=t,[l,d,u,g]=H2(...r),y=Ut(u.missingWarn)?u.missingWarn:t.missingWarn;Ut(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const w=!!u.part,k=gm(t,u),E=i(t,s,k);if(!Ye(l)||l==="")return new Intl.DateTimeFormat(k,g).format(d);let R={},O,M=null;const x="datetime format";for(let V=0;V{i4.includes(l)?i[l]=e[l]:a[l]=e[l]}),Ye(n)?a.locale=n:Rt(n)&&(i=n),Rt(s)&&(i=s),[a.key||"",o,a,i]}function Df(t,r,e){const n=t;for(const s in e){const a="".concat(r,"__").concat(s);n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function Vf(t,...r){const{numberFormats:e,unresolving:n,fallbackLocale:s,onWarn:a,localeFallbacker:i}=t,{__numberFormatters:o}=t,[l,d,u,g]=q2(...r),y=Ut(u.missingWarn)?u.missingWarn:t.missingWarn;Ut(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn;const w=!!u.part,k=gm(t,u),E=i(t,s,k);if(!Ye(l)||l==="")return new Intl.NumberFormat(k,g).format(d);let R={},O,M=null;const x="number format";for(let V=0;V{o4.includes(l)?i[l]=e[l]:a[l]=e[l]}),Ye(n)?a.locale=n:Rt(n)&&(i=n),Rt(s)&&(i=s),[a.key||"",o,a,i]}function Bf(t,r,e){const n=t;for(const s in e){const a="".concat(r,"__").concat(s);n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}Uk();/*! * vue-i18n v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */const FS="9.14.5";function DS(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_m().__INTLIFY_PROD_DEVTOOLS__=!1)}const VS=yS.__EXTEND_POINT__,sa=kd(VS);sa(),sa(),sa(),sa(),sa(),sa(),sa(),sa(),sa();const l4=Bs.__EXTEND_POINT__,Ar=kd(l4),Gn={UNEXPECTED_RETURN_TYPE:l4,INVALID_ARGUMENT:Ar(),MUST_BE_CALL_SETUP_TOP:Ar(),NOT_INSTALLED:Ar(),NOT_AVAILABLE_IN_LEGACY_MODE:Ar(),REQUIRED_VALUE:Ar(),INVALID_VALUE:Ar(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ar(),NOT_INSTALLED_WITH_PROVIDE:Ar(),UNEXPECTED_ERROR:Ar(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ar(),BRIDGE_SUPPORT_VUE_2_ONLY:Ar(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ar(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ar(),__EXTEND_POINT__:Ar()};function Yn(t,...r){return Ky(t,null,void 0)}const W2=Xa("__translateVNode"),G2=Xa("__datetimeParts"),j2=Xa("__numberParts"),c4=Xa("__setPluralRules"),u4=Xa("__injectWithOption"),Z2=Xa("__dispose");function Xl(t){if(!Yt(t)||Ws(t))return t;for(const r in t)if(Mi(t,r))if(!r.includes("."))Yt(t[r])&&Xl(t[r]);else{const e=r.split("."),n=e.length-1;let s=t,a=!1;for(let i=0;i{if("locale"in o&&"resource"in o){const{locale:l,resource:d}=o;l?(i[l]=i[l]||an(),du(d,i[l])):du(d,i)}else Ye(o)&&du(JSON.parse(o),i)}),s==null&&a)for(const o in i)Mi(i,o)&&Xl(i[o]);return i}function d4(t){return t.type}function h4(t,r,e){let n=Yt(r.messages)?r.messages:an();"__i18nGlobal"in e&&(n=Ed(t.locale.value,{messages:n,__i18n:e.__i18nGlobal}));const s=Object.keys(n);s.length&&s.forEach(a=>{t.mergeLocaleMessage(a,n[a])});{if(Yt(r.datetimeFormats)){const a=Object.keys(r.datetimeFormats);a.length&&a.forEach(i=>{t.mergeDateTimeFormat(i,r.datetimeFormats[i])})}if(Yt(r.numberFormats)){const a=Object.keys(r.numberFormats);a.length&&a.forEach(i=>{t.mergeNumberFormat(i,r.numberFormats[i])})}}}function Uf(t){return $(uc,null,t,0)}const Hf="__INTLIFY_META__",qf=()=>[],BS=()=>!1;let Wf=0;function Gf(t){return((r,e,n,s)=>t(e,n,js()||void 0,s))}const US=()=>{const t=js();let r=null;return t&&(r=d4(t)[Hf])?{[Hf]:r}:null};function ym(t={},r){const{__root:e,__injectWithOption:n}=t,s=e===void 0,a=t.flatJson,i=Au?ge:md,o=!!t.translateExistCompatible;let l=Ut(t.inheritLocale)?t.inheritLocale:!0;const d=i(e&&l?e.locale.value:Ye(t.locale)?t.locale:Io),u=i(e&&l?e.fallbackLocale.value:Ye(t.fallbackLocale)||fn(t.fallbackLocale)||Rt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:d.value),g=i(Ed(d.value,t)),y=i(Rt(t.datetimeFormats)?t.datetimeFormats:{[d.value]:{}}),w=i(Rt(t.numberFormats)?t.numberFormats:{[d.value]:{}});let k=e?e.missingWarn:Ut(t.missingWarn)||ja(t.missingWarn)?t.missingWarn:!0,E=e?e.fallbackWarn:Ut(t.fallbackWarn)||ja(t.fallbackWarn)?t.fallbackWarn:!0,R=e?e.fallbackRoot:Ut(t.fallbackRoot)?t.fallbackRoot:!0,O=!!t.fallbackFormat,M=dn(t.missing)?t.missing:null,x=dn(t.missing)?Gf(t.missing):null,N=dn(t.postTranslation)?t.postTranslation:null,A=e?e.warnHtmlMessage:Ut(t.warnHtmlMessage)?t.warnHtmlMessage:!0,V=!!t.escapeParameter;const F=e?e.modifiers:Rt(t.modifiers)?t.modifiers:{};let S=t.pluralRules||e&&e.pluralRules,z;z=(()=>{s&&Mf(null);const re={version:FS,locale:d.value,fallbackLocale:u.value,messages:g.value,modifiers:F,pluralRules:S,missing:x===null?void 0:x,missingWarn:k,fallbackWarn:E,fallbackFormat:O,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:A,escapeParameter:V,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};re.datetimeFormats=y.value,re.numberFormats=w.value,re.__datetimeFormatters=Rt(z)?z.__datetimeFormatters:void 0,re.__numberFormatters=Rt(z)?z.__numberFormatters:void 0;const ye=RS(re);return s&&Mf(ye),ye})(),cl(z,d.value,u.value);function j(){return[d.value,u.value,g.value,y.value,w.value]}const J=te({get:()=>d.value,set:re=>{d.value=re,z.locale=d.value}}),de=te({get:()=>u.value,set:re=>{u.value=re,z.fallbackLocale=u.value,cl(z,d.value,re)}}),Ae=te(()=>g.value),qe=te(()=>y.value),Ue=te(()=>w.value);function je(){return dn(N)?N:null}function nt(re){N=re,z.postTranslation=re}function Pt(){return M}function G(re){re!==null&&(x=Gf(re)),M=re,z.missing=x}const X=(re,ye,yt,At,Mt,zn)=>{j();let gn;try{__INTLIFY_PROD_DEVTOOLS__,s||(z.fallbackContext=e?zS():void 0),gn=re(z)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(z.fallbackContext=void 0)}if(yt!=="translate exists"&&qn(gn)&&gn===Sd||yt==="translate exists"&&!gn){const[Es,Ys]=ye();return e&&R?At(e):Mt(Es)}else{if(zn(gn))return gn;throw Yn(Gn.UNEXPECTED_RETURN_TYPE)}};function W(...re){return X(ye=>Reflect.apply(Of,null,[ye,...re]),()=>U2(...re),"translate",ye=>Reflect.apply(ye.t,ye,[...re]),ye=>ye,ye=>Ye(ye))}function Y(...re){const[ye,yt,At]=re;if(At&&!Yt(At))throw Yn(Gn.INVALID_ARGUMENT);return W(ye,yt,ar({resolvedMessage:!0},At||{}))}function ce(...re){return X(ye=>Reflect.apply(Ff,null,[ye,...re]),()=>H2(...re),"datetime format",ye=>Reflect.apply(ye.d,ye,[...re]),()=>Pf,ye=>Ye(ye))}function me(...re){return X(ye=>Reflect.apply(Vf,null,[ye,...re]),()=>q2(...re),"number format",ye=>Reflect.apply(ye.n,ye,[...re]),()=>Pf,ye=>Ye(ye))}function ue(re){return re.map(ye=>Ye(ye)||qn(ye)||Ut(ye)?Uf(String(ye)):ye)}const it={normalize:ue,interpolate:re=>re,type:"vnode"};function $t(...re){return X(ye=>{let yt;const At=ye;try{At.processor=it,yt=Reflect.apply(Of,null,[At,...re])}finally{At.processor=null}return yt},()=>U2(...re),"translate",ye=>ye[W2](...re),ye=>[Uf(ye)],ye=>fn(ye))}function Bt(...re){return X(ye=>Reflect.apply(Vf,null,[ye,...re]),()=>q2(...re),"number format",ye=>ye[j2](...re),qf,ye=>Ye(ye)||fn(ye))}function yn(...re){return X(ye=>Reflect.apply(Ff,null,[ye,...re]),()=>H2(...re),"datetime format",ye=>ye[G2](...re),qf,ye=>Ye(ye)||fn(ye))}function B(re){S=re,z.pluralRules=S}function Q(re,ye){return X(()=>{if(!re)return!1;const yt=Ye(ye)?ye:d.value,At=ve(yt),Mt=z.messageResolver(At,re);return o?Mt!=null:Ws(Mt)||ts(Mt)||Ye(Mt)},()=>[re],"translate exists",yt=>Reflect.apply(yt.te,yt,[re,ye]),BS,yt=>Ut(yt))}function Z(re){let ye=null;const yt=Xy(z,u.value,d.value);for(let At=0;At{l&&(d.value=re,z.locale=re,cl(z,d.value,u.value))}),Sn(e.fallbackLocale,re=>{l&&(u.value=re,z.fallbackLocale=re,cl(z,d.value,u.value))}));const Je={id:Wf,locale:J,fallbackLocale:de,get inheritLocale(){return l},set inheritLocale(re){l=re,re&&e&&(d.value=e.locale.value,u.value=e.fallbackLocale.value,cl(z,d.value,u.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:Ae,get modifiers(){return F},get pluralRules(){return S||{}},get isGlobal(){return s},get missingWarn(){return k},set missingWarn(re){k=re,z.missingWarn=k},get fallbackWarn(){return E},set fallbackWarn(re){E=re,z.fallbackWarn=E},get fallbackRoot(){return R},set fallbackRoot(re){R=re},get fallbackFormat(){return O},set fallbackFormat(re){O=re,z.fallbackFormat=O},get warnHtmlMessage(){return A},set warnHtmlMessage(re){A=re,z.warnHtmlMessage=re},get escapeParameter(){return V},set escapeParameter(re){V=re,z.escapeParameter=re},t:W,getLocaleMessage:ve,setLocaleMessage:Ee,mergeLocaleMessage:He,getPostTranslationHandler:je,setPostTranslationHandler:nt,getMissingHandler:Pt,setMissingHandler:G,[c4]:B};return Je.datetimeFormats=qe,Je.numberFormats=Ue,Je.rt=Y,Je.te=Q,Je.tm=he,Je.d=ce,Je.n=me,Je.getDateTimeFormat=Ve,Je.setDateTimeFormat=Le,Je.mergeDateTimeFormat=Te,Je.getNumberFormat=ft,Je.setNumberFormat=De,Je.mergeNumberFormat=vt,Je[u4]=n,Je[W2]=$t,Je[G2]=yn,Je[j2]=Bt,Je}function HS(t){const r=Ye(t.locale)?t.locale:Io,e=Ye(t.fallbackLocale)||fn(t.fallbackLocale)||Rt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,n=dn(t.missing)?t.missing:void 0,s=Ut(t.silentTranslationWarn)||ja(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,a=Ut(t.silentFallbackWarn)||ja(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,i=Ut(t.fallbackRoot)?t.fallbackRoot:!0,o=!!t.formatFallbackMessages,l=Rt(t.modifiers)?t.modifiers:{},d=t.pluralizationRules,u=dn(t.postTranslation)?t.postTranslation:void 0,g=Ye(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,y=!!t.escapeParameterHtml,w=Ut(t.sync)?t.sync:!0;let k=t.messages;if(Rt(t.sharedMessages)){const V=t.sharedMessages;k=Object.keys(V).reduce((S,z)=>{const U=S[z]||(S[z]={});return ar(U,V[z]),S},k||{})}const{__i18n:E,__root:R,__injectWithOption:O}=t,M=t.datetimeFormats,x=t.numberFormats,N=t.flatJson,A=t.translateExistCompatible;return{locale:r,fallbackLocale:e,messages:k,flatJson:N,datetimeFormats:M,numberFormats:x,missing:n,missingWarn:s,fallbackWarn:a,fallbackRoot:i,fallbackFormat:o,modifiers:l,pluralRules:d,postTranslation:u,warnHtmlMessage:g,escapeParameter:y,messageResolver:t.messageResolver,inheritLocale:w,translateExistCompatible:A,__i18n:E,__root:R,__injectWithOption:O}}function K2(t={},r){{const e=ym(HS(t)),{__extender:n}=t,s={id:e.id,get locale(){return e.locale.value},set locale(a){e.locale.value=a},get fallbackLocale(){return e.fallbackLocale.value},set fallbackLocale(a){e.fallbackLocale.value=a},get messages(){return e.messages.value},get datetimeFormats(){return e.datetimeFormats.value},get numberFormats(){return e.numberFormats.value},get availableLocales(){return e.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return e.getMissingHandler()},set missing(a){e.setMissingHandler(a)},get silentTranslationWarn(){return Ut(e.missingWarn)?!e.missingWarn:e.missingWarn},set silentTranslationWarn(a){e.missingWarn=Ut(a)?!a:a},get silentFallbackWarn(){return Ut(e.fallbackWarn)?!e.fallbackWarn:e.fallbackWarn},set silentFallbackWarn(a){e.fallbackWarn=Ut(a)?!a:a},get modifiers(){return e.modifiers},get formatFallbackMessages(){return e.fallbackFormat},set formatFallbackMessages(a){e.fallbackFormat=a},get postTranslation(){return e.getPostTranslationHandler()},set postTranslation(a){e.setPostTranslationHandler(a)},get sync(){return e.inheritLocale},set sync(a){e.inheritLocale=a},get warnHtmlInMessage(){return e.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){e.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return e.escapeParameter},set escapeParameterHtml(a){e.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return e.pluralRules||{}},__composer:e,t(...a){const[i,o,l]=a,d={};let u=null,g=null;if(!Ye(i))throw Yn(Gn.INVALID_ARGUMENT);const y=i;return Ye(o)?d.locale=o:fn(o)?u=o:Rt(o)&&(g=o),fn(l)?u=l:Rt(l)&&(g=l),Reflect.apply(e.t,e,[y,u||g||{},d])},rt(...a){return Reflect.apply(e.rt,e,[...a])},tc(...a){const[i,o,l]=a,d={plural:1};let u=null,g=null;if(!Ye(i))throw Yn(Gn.INVALID_ARGUMENT);const y=i;return Ye(o)?d.locale=o:qn(o)?d.plural=o:fn(o)?u=o:Rt(o)&&(g=o),Ye(l)?d.locale=l:fn(l)?u=l:Rt(l)&&(g=l),Reflect.apply(e.t,e,[y,u||g||{},d])},te(a,i){return e.te(a,i)},tm(a){return e.tm(a)},getLocaleMessage(a){return e.getLocaleMessage(a)},setLocaleMessage(a,i){e.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){e.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(e.d,e,[...a])},getDateTimeFormat(a){return e.getDateTimeFormat(a)},setDateTimeFormat(a,i){e.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){e.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(e.n,e,[...a])},getNumberFormat(a){return e.getNumberFormat(a)},setNumberFormat(a,i){e.setNumberFormat(a,i)},mergeNumberFormat(a,i){e.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1}};return s.__extender=n,s}}const bm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function qS({slots:t},r){return r.length===1&&r[0]==="default"?(t.default?t.default():[]).reduce((n,s)=>[...n,...s.type===gt?s.children:[s]],[]):r.reduce((e,n)=>{const s=t[n];return s&&(e[n]=s()),e},an())}function m4(t){return gt}const WS=cs({name:"i18n-t",props:ar({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>qn(t)||!isNaN(t)}},bm),setup(t,r){const{slots:e,attrs:n}=r,s=t.i18n||vn({useScope:t.scope,__useComponent:!0});return()=>{const a=Object.keys(e).filter(g=>g!=="_"),i=an();t.locale&&(i.locale=t.locale),t.plural!==void 0&&(i.plural=Ye(t.plural)?+t.plural:t.plural);const o=qS(r,a),l=s[W2](t.keypath,o,i),d=ar(an(),n),u=Ye(t.tag)||Yt(t.tag)?t.tag:m4();return Zs(u,d,l)}}}),jf=WS;function GS(t){return fn(t)&&!Ye(t[0])}function p4(t,r,e,n){const{slots:s,attrs:a}=r;return()=>{const i={part:!0};let o=an();t.locale&&(i.locale=t.locale),Ye(t.format)?i.key=t.format:Yt(t.format)&&(Ye(t.format.key)&&(i.key=t.format.key),o=Object.keys(t.format).reduce((y,w)=>e.includes(w)?ar(an(),y,{[w]:t.format[w]}):y,an()));const l=n(t.value,i,o);let d=[i.key];fn(l)?d=l.map((y,w)=>{const k=s[y.type],E=k?k({[y.type]:y.value,index:w,parts:l}):[y.value];return GS(E)&&(E[0].key="".concat(y.type,"-").concat(w)),E}):Ye(l)&&(d=[l]);const u=ar(an(),a),g=Ye(t.tag)||Yt(t.tag)?t.tag:m4();return Zs(g,u,d)}}const jS=cs({name:"i18n-n",props:ar({value:{type:Number,required:!0},format:{type:[String,Object]}},bm),setup(t,r){const e=t.i18n||vn({useScope:t.scope,__useComponent:!0});return p4(t,r,o4,(...n)=>e[j2](...n))}}),Zf=jS,ZS=cs({name:"i18n-d",props:ar({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bm),setup(t,r){const e=t.i18n||vn({useScope:t.scope,__useComponent:!0});return p4(t,r,i4,(...n)=>e[G2](...n))}}),Kf=ZS;function KS(t,r){const e=t;if(t.mode==="composition")return e.__getInstance(r)||t.global;{const n=e.__getInstance(r);return n!=null?n.__composer:t.global.__composer}}function YS(t){const r=i=>{const{instance:o,modifiers:l,value:d}=i;if(!o||!o.$)throw Yn(Gn.UNEXPECTED_ERROR);const u=KS(t,o.$),g=Yf(d);return[Reflect.apply(u.t,u,[...Qf(g)]),u]};return{created:(i,o)=>{const[l,d]=r(o);Au&&t.global===d&&(i.__i18nWatcher=Sn(d.locale,()=>{o.instance&&o.instance.$forceUpdate()})),i.__composer=d,i.textContent=l},unmounted:i=>{Au&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:o})=>{if(i.__composer){const l=i.__composer,d=Yf(o);i.textContent=Reflect.apply(l.t,l,[...Qf(d)])}},getSSRProps:i=>{const[o]=r(i);return{textContent:o}}}}function Yf(t){if(Ye(t))return{path:t};if(Rt(t)){if(!("path"in t))throw Yn(Gn.REQUIRED_VALUE,"path");return t}else throw Yn(Gn.INVALID_VALUE)}function Qf(t){const{path:r,locale:e,args:n,choice:s,plural:a}=t,i={},o=n||{};return Ye(e)&&(i.locale=e),qn(s)&&(i.plural=s),qn(a)&&(i.plural=a),[r,o,i]}function QS(t,r,...e){const n=Rt(e[0])?e[0]:{},s=!!n.useI18nComponentName;(Ut(n.globalInstall)?n.globalInstall:!0)&&([s?"i18n":jf.name,"I18nT"].forEach(i=>t.component(i,jf)),[Zf.name,"I18nN"].forEach(i=>t.component(i,Zf)),[Kf.name,"I18nD"].forEach(i=>t.component(i,Kf))),t.directive("t",YS(r))}function JS(t,r,e){return{beforeCreate(){const n=js();if(!n)throw Yn(Gn.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const a=s.i18n;if(s.__i18n&&(a.__i18n=s.__i18n),a.__root=r,this===this.$root)this.$i18n=Jf(t,a);else{a.__injectWithOption=!0,a.__extender=e.__vueI18nExtend,this.$i18n=K2(a);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Jf(t,s);else{this.$i18n=K2({__i18n:s.__i18n,__injectWithOption:!0,__extender:e.__vueI18nExtend,__root:r});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=t;s.__i18nGlobal&&h4(r,s,s),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,i)=>this.$i18n.te(a,i),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),e.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=js();if(!n)throw Yn(Gn.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),e.__deleteInstance(n),delete this.$i18n}}}function Jf(t,r){t.locale=r.locale||t.locale,t.fallbackLocale=r.fallbackLocale||t.fallbackLocale,t.missing=r.missing||t.missing,t.silentTranslationWarn=r.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=r.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=r.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=r.postTranslation||t.postTranslation,t.warnHtmlInMessage=r.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=r.escapeParameterHtml||t.escapeParameterHtml,t.sync=r.sync||t.sync,t.__composer[c4](r.pluralizationRules||t.pluralizationRules);const e=Ed(t.locale,{messages:r.messages,__i18n:r.__i18n});return Object.keys(e).forEach(n=>t.mergeLocaleMessage(n,e[n])),r.datetimeFormats&&Object.keys(r.datetimeFormats).forEach(n=>t.mergeDateTimeFormat(n,r.datetimeFormats[n])),r.numberFormats&&Object.keys(r.numberFormats).forEach(n=>t.mergeNumberFormat(n,r.numberFormats[n])),t}const XS=Xa("global-vue-i18n");function eE(t={},r){const e=Ut(t.legacy)?t.legacy:!0,n=Ut(t.globalInjection)?t.globalInjection:!0,s=e?!!t.allowComposition:!0,a=new Map,[i,o]=tE(t,e),l=Xa("");function d(y){return a.get(y)||null}function u(y,w){a.set(y,w)}function g(y){a.delete(y)}{const y={get mode(){return e?"legacy":"composition"},get allowComposition(){return s},async install(w,...k){if(w.__VUE_I18N_SYMBOL__=l,w.provide(w.__VUE_I18N_SYMBOL__,y),Rt(k[0])){const O=k[0];y.__composerExtend=O.__composerExtend,y.__vueI18nExtend=O.__vueI18nExtend}let E=null;!e&&n&&(E=uE(w,y.global)),QS(w,y,...k),e&&w.mixin(JS(o,o.__composer,y));const R=w.unmount;w.unmount=()=>{E&&E(),y.dispose(),R()}},get global(){return o},dispose(){i.stop()},__instances:a,__getInstance:d,__setInstance:u,__deleteInstance:g};return y}}function vn(t={}){const r=js();if(r==null)throw Yn(Gn.MUST_BE_CALL_SETUP_TOP);if(!r.isCE&&r.appContext.app!=null&&!r.appContext.app.__VUE_I18N_SYMBOL__)throw Yn(Gn.NOT_INSTALLED);const e=nE(r),n=sE(e),s=d4(r),a=rE(t,s);if(e.mode==="legacy"&&!t.__useComponent){if(!e.allowComposition)throw Yn(Gn.NOT_AVAILABLE_IN_LEGACY_MODE);return lE(r,a,n,t)}if(a==="global")return h4(n,t,s),n;if(a==="parent"){let l=aE(e,r,t.__useComponent);return l==null&&(l=n),l}const i=e;let o=i.__getInstance(r);if(o==null){const l=ar({},t);"__i18n"in s&&(l.__i18n=s.__i18n),n&&(l.__root=n),o=ym(l),i.__composerExtend&&(o[Z2]=i.__composerExtend(o)),oE(i,r,o),i.__setInstance(r,o)}return o}function tE(t,r,e){const n=em();{const s=r?n.run(()=>K2(t)):n.run(()=>ym(t));if(s==null)throw Yn(Gn.UNEXPECTED_ERROR);return[n,s]}}function nE(t){{const r=Wr(t.isCE?XS:t.appContext.app.__VUE_I18N_SYMBOL__);if(!r)throw Yn(t.isCE?Gn.NOT_INSTALLED_WITH_PROVIDE:Gn.UNEXPECTED_ERROR);return r}}function rE(t,r){return wd(t)?"__i18n"in r?"local":"global":t.useScope?t.useScope:"local"}function sE(t){return t.mode==="composition"?t.global:t.global.__composer}function aE(t,r,e=!1){let n=null;const s=r.root;let a=iE(r,e);for(;a!=null;){const i=t;if(t.mode==="composition")n=i.__getInstance(a);else{const o=i.__getInstance(a);o!=null&&(n=o.__composer,e&&n&&!n[u4]&&(n=null))}if(n!=null||s===a)break;a=a.parent}return n}function iE(t,r=!1){return t==null?null:r&&t.vnode.ctx||t.parent}function oE(t,r,e){An(()=>{},r),Vi(()=>{const n=e;t.__deleteInstance(r);const s=n[Z2];s&&(s(),delete n[Z2])},r)}function lE(t,r,e,n={}){const s=r==="local",a=md(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Yn(Gn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Ut(n.inheritLocale)?n.inheritLocale:!Ye(n.locale),o=ge(!s||i?e.locale.value:Ye(n.locale)?n.locale:Io),l=ge(!s||i?e.fallbackLocale.value:Ye(n.fallbackLocale)||fn(n.fallbackLocale)||Rt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:o.value),d=ge(Ed(o.value,n)),u=ge(Rt(n.datetimeFormats)?n.datetimeFormats:{[o.value]:{}}),g=ge(Rt(n.numberFormats)?n.numberFormats:{[o.value]:{}}),y=s?e.missingWarn:Ut(n.missingWarn)||ja(n.missingWarn)?n.missingWarn:!0,w=s?e.fallbackWarn:Ut(n.fallbackWarn)||ja(n.fallbackWarn)?n.fallbackWarn:!0,k=s?e.fallbackRoot:Ut(n.fallbackRoot)?n.fallbackRoot:!0,E=!!n.fallbackFormat,R=dn(n.missing)?n.missing:null,O=dn(n.postTranslation)?n.postTranslation:null,M=s?e.warnHtmlMessage:Ut(n.warnHtmlMessage)?n.warnHtmlMessage:!0,x=!!n.escapeParameter,N=s?e.modifiers:Rt(n.modifiers)?n.modifiers:{},A=n.pluralRules||s&&e.pluralRules;function V(){return[o.value,l.value,d.value,u.value,g.value]}const F=te({get:()=>a.value?a.value.locale.value:o.value,set:Z=>{a.value&&(a.value.locale.value=Z),o.value=Z}}),S=te({get:()=>a.value?a.value.fallbackLocale.value:l.value,set:Z=>{a.value&&(a.value.fallbackLocale.value=Z),l.value=Z}}),z=te(()=>a.value?a.value.messages.value:d.value),U=te(()=>u.value),j=te(()=>g.value);function J(){return a.value?a.value.getPostTranslationHandler():O}function de(Z){a.value&&a.value.setPostTranslationHandler(Z)}function Ae(){return a.value?a.value.getMissingHandler():R}function qe(Z){a.value&&a.value.setMissingHandler(Z)}function Ue(Z){return V(),Z()}function je(...Z){return a.value?Ue(()=>Reflect.apply(a.value.t,null,[...Z])):Ue(()=>"")}function nt(...Z){return a.value?Reflect.apply(a.value.rt,null,[...Z]):""}function Pt(...Z){return a.value?Ue(()=>Reflect.apply(a.value.d,null,[...Z])):Ue(()=>"")}function G(...Z){return a.value?Ue(()=>Reflect.apply(a.value.n,null,[...Z])):Ue(()=>"")}function X(Z){return a.value?a.value.tm(Z):{}}function W(Z,he){return a.value?a.value.te(Z,he):!1}function Y(Z){return a.value?a.value.getLocaleMessage(Z):{}}function ce(Z,he){a.value&&(a.value.setLocaleMessage(Z,he),d.value[Z]=he)}function me(Z,he){a.value&&a.value.mergeLocaleMessage(Z,he)}function ue(Z){return a.value?a.value.getDateTimeFormat(Z):{}}function at(Z,he){a.value&&(a.value.setDateTimeFormat(Z,he),u.value[Z]=he)}function it(Z,he){a.value&&a.value.mergeDateTimeFormat(Z,he)}function $t(Z){return a.value?a.value.getNumberFormat(Z):{}}function Bt(Z,he){a.value&&(a.value.setNumberFormat(Z,he),g.value[Z]=he)}function yn(Z,he){a.value&&a.value.mergeNumberFormat(Z,he)}const B={get id(){return a.value?a.value.id:-1},locale:F,fallbackLocale:S,messages:z,datetimeFormats:U,numberFormats:j,get inheritLocale(){return a.value?a.value.inheritLocale:i},set inheritLocale(Z){a.value&&(a.value.inheritLocale=Z)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(d.value)},get modifiers(){return a.value?a.value.modifiers:N},get pluralRules(){return a.value?a.value.pluralRules:A},get isGlobal(){return a.value?a.value.isGlobal:!1},get missingWarn(){return a.value?a.value.missingWarn:y},set missingWarn(Z){a.value&&(a.value.missingWarn=Z)},get fallbackWarn(){return a.value?a.value.fallbackWarn:w},set fallbackWarn(Z){a.value&&(a.value.missingWarn=Z)},get fallbackRoot(){return a.value?a.value.fallbackRoot:k},set fallbackRoot(Z){a.value&&(a.value.fallbackRoot=Z)},get fallbackFormat(){return a.value?a.value.fallbackFormat:E},set fallbackFormat(Z){a.value&&(a.value.fallbackFormat=Z)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:M},set warnHtmlMessage(Z){a.value&&(a.value.warnHtmlMessage=Z)},get escapeParameter(){return a.value?a.value.escapeParameter:x},set escapeParameter(Z){a.value&&(a.value.escapeParameter=Z)},t:je,getPostTranslationHandler:J,setPostTranslationHandler:de,getMissingHandler:Ae,setMissingHandler:qe,rt:nt,d:Pt,n:G,tm:X,te:W,getLocaleMessage:Y,setLocaleMessage:ce,mergeLocaleMessage:me,getDateTimeFormat:ue,setDateTimeFormat:at,mergeDateTimeFormat:it,getNumberFormat:$t,setNumberFormat:Bt,mergeNumberFormat:yn};function Q(Z){Z.locale.value=o.value,Z.fallbackLocale.value=l.value,Object.keys(d.value).forEach(he=>{Z.mergeLocaleMessage(he,d.value[he])}),Object.keys(u.value).forEach(he=>{Z.mergeDateTimeFormat(he,u.value[he])}),Object.keys(g.value).forEach(he=>{Z.mergeNumberFormat(he,g.value[he])}),Z.escapeParameter=x,Z.fallbackFormat=E,Z.fallbackRoot=k,Z.fallbackWarn=w,Z.missingWarn=y,Z.warnHtmlMessage=M}return um(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Yn(Gn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const Z=a.value=t.proxy.$i18n.__composer;r==="global"?(o.value=Z.locale.value,l.value=Z.fallbackLocale.value,d.value=Z.messages.value,u.value=Z.datetimeFormats.value,g.value=Z.numberFormats.value):s&&Q(Z)}),B}const cE=["locale","fallbackLocale","availableLocales"],Xf=["t","rt","d","n","tm","te"];function uE(t,r){const e=Object.create(null);return cE.forEach(s=>{const a=Object.getOwnPropertyDescriptor(r,s);if(!a)throw Yn(Gn.UNEXPECTED_ERROR);const i=kn(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(e,s,i)}),t.config.globalProperties.$i18n=e,Xf.forEach(s=>{const a=Object.getOwnPropertyDescriptor(r,s);if(!a||!a.value)throw Yn(Gn.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,"$".concat(s),a)}),()=>{delete t.config.globalProperties.$i18n,Xf.forEach(s=>{delete t.config.globalProperties["$".concat(s)]})}}DS();TS(aS);$S(Xy);if(__INTLIFY_PROD_DEVTOOLS__){const t=_m();t.__INTLIFY__=!0,pS(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Zr={ENVIRONMENT:"production",API_URL:"https://api.paystack.co/",CHECKOUT_URL:"https://checkout.paystack.com/",GOOGLE_ANALYTICS_TRACKING_ID:"UA-105017042-10",I18N_ENABLED:"true",I18N_DEFAULT_LANGUAGE:"en",I18N_SUPPORTED_LANGUAGES:"en,fr,ar",E2E:void 0,REACH_FINGERPRINT_URL:"https://checkout.rch.io/v2.22/fingerprint",POSTHOG_API_KEY:"phc_LZ6VShmQYuGQM536EGOroVpmYKcpeL7U4bbtN3govL0"},Nr=Cd("app",{state:()=>({mode:null,language:Zr.I18N_DEFAULT_LANGUAGE,browserIp:null}),actions:{setMode(t){this.mode=t},setLanguage(t){this.language=t},setBrowserIp(t){this.browserIp=t}}}),ys=(t=0)=>t/100,dE=(t={},r)=>{var e;return(e=t[r])==null?void 0:e.amount};function hE({exchangeRate:t,transactionAmount:r,currency:e}){const n=Math.round(r*t);return Qn({amount:n,currency:e})}const bn={get defaultLanguage(){return Zr.I18N_DEFAULT_LANGUAGE},get supportedLanguages(){return Zr.I18N_SUPPORTED_LANGUAGES.split(",")},get currentLanguage(){return zu.global.locale.split("-")[0]},get languageDirection(){return bn.currentLanguage==="ar"?"rtl":"ltr"},set currentLanguage(t){zu.global.locale=t},isLanguageSupported(t){return bn.supportedLanguages.includes(t)},switchLanguage(t){bn.currentLanguage=t,document.querySelector("html").setAttribute("lang",t),document.dir=bn.languageDirection,localStorage.setItem(lu,t);const r=new URL(window.location.href);r.searchParams.has("lang")&&(r.searchParams.set("lang",t),window.history.replaceState({},"",r.toString()))},getUserLanguage(){var t,r;return((t=navigator.language)==null?void 0:t.split("-")[0])||((r=navigator.userLanguage)==null?void 0:r.split("-")[0])||bn.defaultLanguage},getPersistedLanguage(){const t=localStorage.getItem(lu);return bn.isLanguageSupported(t)?t:null},getDefaultLocale(){const t=bn.getPersistedLanguage();if(t)return t;const r=bn.getUserLanguage();return bn.isLanguageSupported(r)?(localStorage.setItem(lu,r),r):"en"},getObjectTranslation(t,r){return Object.keys(t.$tm(r)).map(e=>t.$rt(t.$tm(r)[e]))}},mE=bn.getDefaultLocale(),pE=Zr.I18N_DEFAULT_LANGUAGE,e_=Zr.ENVIRONMENT==="production",zu=eE({allowComposition:!0,locale:mE,fallbackLocale:pE,escapeParameter:!0,escapeParameterHtml:!0,silentFallbackWarn:e_,silentTranslationWarn:e_}),fE=t=>{const r=Nr();return t===Hr.EGP&&r.language===Cl.ARABIC?"symbol":"code"},_E=t=>t%1!==0?2:0,Qn=({amount:t,currency:r})=>{const e=ys(t),n=_E(e),s={style:"currency",currencyDisplay:fE(r),currency:r,minimumFractionDigits:n,maximumFractionDigits:n};return zu.global.n(e,s)},gE="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='50px'%20height='35px'%20viewBox='0%200%2050%2035'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3e404%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='404'%3e%3crect%20id='Rectangle-path'%20fill='%23FB3F3F'%20fill-rule='nonzero'%20x='0'%20y='0'%20width='50'%20height='35'%20rx='2'%3e%3c/rect%3e%3cg%20id='Group'%20transform='translate(6.000000,%209.000000)'%20fill='%23FFFFFF'%3e%3cpath%20d='M4,7%20L6,7%20L6,0%20L10,0%20L10,16%20L6,16%20L6,10.5%20L4,10.5%20L0,10.5%20L0,0%20L4,0%20L4,7%20Z'%20id='Combined-Shape'%3e%3c/path%3e%3cpath%20d='M33,7%20L35,7%20L35,0%20L39,0%20L39,16%20L35,16%20L35,10.5%20L33,10.5%20L29,10.5%20L29,0%20L33,0%20L33,7%20Z'%20id='Combined-Shape-Copy'%3e%3c/path%3e%3cpath%20d='M18,3.5%20L18,12.75%20L21.5,12.75%20L21.5,3.5%20L18,3.5%20Z%20M14.5,0%20L25,0%20L25,16.25%20L14.5,16.25%20L14.5,0%20Z'%20id='Rectangle-3'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Td="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='21px'%20height='17px'%20viewBox='0%200%2021%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eerror%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='error'%20fill-rule='nonzero'%3e%3cpath%20d='M9.14672,0.47855%20L0.14829,15.47855%20C-0.0403320234,15.7872042%20-0.0475647902,16.1736607%200.129375884,16.4891566%20C0.306316558,16.8046526%200.639843999,16.9999993%201.00157,17%20L19.43546,17%20C19.797186,16.9999993%2020.1307134,16.8046526%2020.3076541,16.4891566%20C20.4845948,16.1736607%2020.477362,15.7872042%2020.28874,15.47855%20L10.85328,0.47855%20C10.671624,0.181297031%2010.3483651,3.00996351e-06%2010,3.00996351e-06%20C9.6516349,3.00996351e-06%209.32837603,0.181297031%209.14672,0.47855%20Z'%20id='Shape'%20fill='%23FFAA22'%3e%3c/path%3e%3crect%20id='Rectangle-path'%20fill='%23FFFFFF'%20x='9'%20y='6'%20width='2'%20height='5'%3e%3c/rect%3e%3crect%20id='Rectangle-path'%20fill='%23FFFFFF'%20x='9'%20y='12'%20width='2'%20height='2'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function t_(t,r,e,n,s,a,i){try{var o=t[a](i),l=o.value}catch(d){return void e(d)}o.done?r(l):Promise.resolve(l).then(n,s)}function Fr(t){return function(){var r=this,e=arguments;return new Promise((function(n,s){var a=t.apply(r,e);function i(l){t_(a,n,s,i,o,"next",l)}function o(l){t_(a,n,s,i,o,"throw",l)}i(void 0)}))}}function Oe(){return Oe=Object.assign?Object.assign.bind():function(t){for(var r=1;arguments.length>r;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Oe.apply(null,arguments)}function f4(t,r){if(t==null)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(r.indexOf(n)!==-1)continue;e[n]=t[n]}return e}var n_="1.374.2",Cr={DEBUG:!1,LIB_VERSION:n_,LIB_NAME:"web",JS_SDK_VERSION:n_},_4="$people_distinct_id",Ru="$device_id",El="__alias",Tl="__timers",Y2="$autocapture_disabled_server_side",Q2="$heatmaps_enabled_server_side",J2="$exception_capture_enabled_server_side",X2="$error_tracking_suppression_rules",eh="$error_tracking_capture_extension_exceptions",th="$web_vitals_enabled_server_side",Cm="$dead_clicks_enabled_server_side",nh="$product_tours_enabled_server_side",rh="$web_vitals_allowed_metrics",Ii="$session_recording_remote_config",g4="$replay_override_sampling",v4="$replay_override_linked_flag",y4="$replay_override_url_trigger",b4="$replay_override_event_trigger",Pu="$sesid",wm="$session_is_sampled",mo="$enabled_feature_flags",hu="$active_feature_flags",$l="$early_access_features",sh="$feature_flag_details",ah="$feature_flag_payloads",ih="$feature_flag_request_id",la="$override_feature_flags",lo="$override_feature_flag_payloads",Il="$stored_person_properties",Si="$stored_group_properties",oh="$surveys",lh="$surveys_activated",mu="ph_product_tours",Fl="$flag_call_reported",ch="$flag_call_reported_session_id",uh="$feature_flag_errors",Nu="$feature_flag_evaluated_at",_s="$user_state",dh="$client_session_props",hh="$capture_rate_limit",mh="$initial_campaign_params",ph="$initial_referrer_info",Mu="$initial_person_info",Lu="$epp",C4="__POSTHOG_TOOLBAR__",Yc="$posthog_cookieless",w4="$sdk_debug_extensions_init_method",k4="$sdk_debug_extensions_init_time_ms",S4="$sdk_debug_recording_script_not_loaded",km="PostHog loadExternalDependency extension not found.",Ei="on_reject",_a="always",eo="anonymous",to="identified",fh="identified_only",xu="visibilitychange",Ou="beforeunload",co="$pageview",J0="$pageleave",X0="$identify",r_="$groupidentify",le=typeof window<"u"?window:void 0,Wn=typeof globalThis<"u"?globalThis:le;typeof self>"u"&&(Wn.self=Wn),typeof File>"u"&&(Wn.File=function(){});var ul,Ur=Wn==null?void 0:Wn.navigator,tt=Wn==null?void 0:Wn.document,er=Wn==null?void 0:Wn.location,_h=Wn==null?void 0:Wn.fetch,gh=Wn!=null&&Wn.XMLHttpRequest&&"withCredentials"in new Wn.XMLHttpRequest?Wn.XMLHttpRequest:void 0,s_=Wn==null?void 0:Wn.AbortController,vE=Wn==null?void 0:Wn.CompressionStream,Rr=Ur==null?void 0:Ur.userAgent,St=le!=null?le:{},a_=(function(t){return t.GZipJS="gzip-js",t.Base64="base64",t})({}),yE=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],E4="NativeGzipValidationError",vh=t=>t.length>=2&&t[0]===31&&t[1]===139,i_=t=>!(!t||typeof t!="object")&&("name"in t?String(t.name):"")==="NotReadableError",Qc=t=>{var r=new Error("Native gzip produced invalid output: "+t);throw r.name=E4,r},bE=(function(){var t=Fr((function*(r,e){18>r.size&&Qc("too-short");var n=new Uint8Array(yield r.slice(0,10).arrayBuffer());vh(n)&&n[2]===8||Qc("invalid-header");var s=new DataView(yield r.slice(r.size-8).arrayBuffer());s.getUint32(0,!0)!==(i=>{for(var o=(()=>{if(ul)return ul;ul=[];for(var u=0;256>u;u++){for(var g=u,y=0;8>y;y++)g=1&g?3988292384^g>>>1:g>>>1;ul[u]=g>>>0}return ul})(),l=4294967295,d=0;i.length>d;d++)l=o[255&(l^i[d])]^l>>>8;return(4294967295^l)>>>0})(e)&&Qc("invalid-crc");var a=e.length>>>0;s.getUint32(4,!0)!==a&&Qc("invalid-size")}));return function(r,e){return t.apply(this,arguments)}})();function yh(){return yh=Fr((function*(t,r,e){r===void 0&&(r=!0);try{var n=new TextEncoder().encode(t),s=new CompressionStream("gzip"),a=s.writable.getWriter(),i=a.write(n).then((()=>a.close())).catch((function(){var d=Fr((function*(u){try{yield a.abort(u)}catch(g){}throw u}));return function(u){return d.apply(this,arguments)}})()),o=new Response(s.readable).blob(),[l]=yield Promise.all([o,i]);return yield bE(l,n),l}catch(d){if(e!=null&&e.rethrow)throw d;return r&&console.error("Failed to gzip compress data",d),null}})),yh.apply(this,arguments)}var CE=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],o_=function(t,r){if(r===void 0&&(r=[]),!t)return!1;var e=t.toLowerCase();return CE.concat(r).some((n=>{var s=n.toLowerCase();return e.indexOf(s)!==-1}))};function Dt(t,r){return t.indexOf(r)!==-1}var $d=function(t){return t.trim()},bh=function(t){return t.replace(/^\$/,"")},T4=Object.prototype,$4=T4.hasOwnProperty,Id=T4.toString,Gt=Array.isArray||function(t){return Id.call(t)==="[object Array]"},ha=t=>typeof t=="function",Nn=t=>t===Object(t)&&!Gt(t),po=t=>{if(Nn(t)){for(var r in t)if($4.call(t,r))return!1;return!0}return!1},Ke=t=>t===void 0,wn=t=>Id.call(t)=="[object String]",pu=t=>wn(t)&&t.trim().length===0,$a=t=>t===null,Vt=t=>Ke(t)||$a(t),os=t=>Id.call(t)=="[object Number]"&&t==t,uo=t=>os(t)&&t>0,Us=t=>Id.call(t)==="[object Boolean]",wE=t=>t instanceof FormData,kE=t=>Dt(yE,t);function I4(t){return t===null||typeof t!="object"}function Fu(t,r){return{}.toString.call(t)==="[object "+r+"]"}function Sm(t){return typeof Event<"u"&&(function(r,e){try{return r instanceof e}catch(n){return!1}})(t,Event)}var SE=[!0,"true",1,"1","yes"],e2=t=>Dt(SE,t),EE=[!1,"false",0,"0","no"];function Hs(t,r,e,n,s){return r>e&&(n.warn("min cannot be greater than max."),r=e),os(t)?t>e?(n.warn(" cannot be greater than max: "+e+". Using max value instead."),e):r>t?(n.warn(" cannot be less than min: "+r+". Using min value instead."),r):t:(n.warn(" must be a number. using max or fallback. max: "+e+", fallback: "+s),Hs(s||e,r,e,n))}let TE=class{constructor(r){this._buckets={},this._onBucketRateLimited=r._onBucketRateLimited,this._bucketSize=Hs(r.bucketSize,0,100,r._logger),this._refillRate=Hs(r.refillRate,0,this._bucketSize,r._logger),this._refillInterval=Hs(r.refillInterval,0,864e5,r._logger)}_applyRefill(r,e){var n=Math.floor((e-r.lastAccess)/this._refillInterval);n>0&&(r.tokens=Math.min(r.tokens+n*this._refillRate,this._bucketSize),r.lastAccess=r.lastAccess+n*this._refillInterval)}consumeRateLimit(r){var e,n=Date.now(),s=String(r),a=this._buckets[s];return a?this._applyRefill(a,n):this._buckets[s]=a={tokens:this._bucketSize,lastAccess:n},a.tokens===0||(a.tokens--,a.tokens===0&&((e=this._onBucketRateLimited)==null||e.call(this,r)),a.tokens===0)}stop(){this._buckets={}}};var Jc,l_,t2,Gr="Mobile",Du="iOS",va="Android",Ao="Tablet",A4=va+" "+Ao,z4="iPad",R4="Apple",P4=R4+" Watch",Dl="Safari",zo="BlackBerry",N4="Samsung",M4=N4+"Browser",L4=N4+" Internet",Pi="Chrome",$E=Pi+" OS",x4=Pi+" "+Du,Em="Internet Explorer",O4=Em+" "+Gr,Tm="Opera",IE=Tm+" Mini",$m="Edge",F4="Microsoft "+$m,bo="Firefox",D4=bo+" "+Du,ec="Nintendo",tc="PlayStation",Co="Xbox",V4=va+" "+Gr,B4=Gr+" "+Dl,Al="Windows",Ch=Al+" Phone",c_="Nokia",wh="Ouya",U4="Generic",AE=U4+" "+Gr.toLowerCase(),H4=U4+" "+Ao.toLowerCase(),kh="Konqueror",br="(\\d+(\\.\\d+)?)",n2=new RegExp("Version/"+br),zE=new RegExp(Co,"i"),RE=new RegExp(tc+" \\w+","i"),PE=new RegExp(ec+" \\w+","i"),Im=new RegExp(zo+"|PlayBook|BB10","i"),NE={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},q4=function(t,r){return r=r||"",Dt(t," OPR/")&&Dt(t,"Mini")?IE:Dt(t," OPR/")?Tm:Im.test(t)?zo:Dt(t,"IE"+Gr)||Dt(t,"WPDesktop")?O4:Dt(t,M4)?L4:Dt(t,$m)||Dt(t,"Edg/")?F4:Dt(t,"FBIOS")?"Facebook "+Gr:Dt(t,"UCWEB")||Dt(t,"UCBrowser")?"UC Browser":Dt(t,"CriOS")?x4:Dt(t,"CrMo")||Dt(t,Pi)?Pi:Dt(t,va)&&Dt(t,Dl)?V4:Dt(t,"FxiOS")?D4:Dt(t.toLowerCase(),kh.toLowerCase())?kh:((e,n)=>n&&Dt(n,R4)||(function(s){return Dt(s,Dl)&&!Dt(s,Pi)&&!Dt(s,va)})(e))(t,r)?Dt(t,Gr)?B4:Dl:Dt(t,bo)?bo:Dt(t,"MSIE")||Dt(t,"Trident/")?Em:Dt(t,"Gecko")?bo:""},ME={[O4]:[new RegExp("rv:"+br)],[F4]:[new RegExp($m+"?\\/"+br)],[Pi]:[new RegExp("("+Pi+"|CrMo)\\/"+br)],[x4]:[new RegExp("CriOS\\/"+br)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+br)],[Dl]:[n2],[B4]:[n2],[Tm]:[new RegExp("(Opera|OPR)\\/"+br)],[bo]:[new RegExp(bo+"\\/"+br)],[D4]:[new RegExp("FxiOS\\/"+br)],[kh]:[new RegExp("Konqueror[:/]?"+br,"i")],[zo]:[new RegExp(zo+" "+br),n2],[V4]:[new RegExp("android\\s"+br,"i")],[L4]:[new RegExp(M4+"\\/"+br)],[Em]:[new RegExp("(rv:|MSIE )"+br)],Mozilla:[new RegExp("rv:"+br)]},LE=function(t,r){var e=q4(t,r),n=ME[e];if(Ke(n))return null;for(var s=0;n.length>s;s++){var a=t.match(n[s]);if(a)return parseFloat(a[a.length-2])}return null},u_=[[new RegExp(Co+"; "+Co+" (.*?)[);]","i"),t=>[Co,t&&t[1]||""]],[new RegExp(ec,"i"),[ec,""]],[new RegExp(tc,"i"),[tc,""]],[Im,[zo,""]],[new RegExp(Al,"i"),(t,r)=>{if(/Phone/.test(r)||/WPDesktop/.test(r))return[Ch,""];if(new RegExp(Gr).test(r)&&!/IEMobile\b/.test(r))return[Al+" "+Gr,""];var e=/Windows NT ([0-9.]+)/i.exec(r);if(e&&e[1]){var n=NE[e[1]]||"";return/arm/i.test(r)&&(n="RT"),[Al,n]}return[Al,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[Du,[t[3],t[4],t[5]||"0"].join(".")]:[Du,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var r="";return t&&t.length>=3&&(r=Ke(t[2])?t[3]:t[2]),["watchOS",r]}],[new RegExp("("+va+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+va+")","i"),t=>t&&t[2]?[va,[t[2],t[3],t[4]||"0"].join(".")]:[va,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var r=["Mac OS X",""];return t&&t[1]&&(r[1]=[t[1],t[2],t[3]||"0"].join(".")),r}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[$E,""]],[/Linux|debian/i,["Linux",""]]],d_=function(t){return PE.test(t)?ec:RE.test(t)?tc:zE.test(t)?Co:new RegExp(wh,"i").test(t)?wh:new RegExp("("+Ch+"|WPDesktop)","i").test(t)?Ch:/iPad/.test(t)?z4:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?P4:Im.test(t)?zo:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(c_,"i").test(t)?c_:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Gr).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?va:A4:new RegExp("(pda|"+Gr+")","i").test(t)?AE:new RegExp(Ao,"i").test(t)&&!new RegExp(Ao+" pc","i").test(t)?H4:""},xE=t=>t instanceof Error,W4={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},OE=W4.info;function G4(t){if(Us(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(Gt(t))return{arrayValue:{values:t.map((r=>G4(r)))}};try{return{stringValue:JSON.stringify(t)}}catch(r){return{stringValue:String(t)}}}function h_(t){var r=[];for(var e in t){var n=t[e];$a(n)||Ke(n)||r.push({key:e,value:G4(n)})}return r}function FE(t){var r=globalThis._posthogChunkIds;if(r){var e=Object.keys(r);return t2&&e.length===l_||(l_=e.length,t2=e.reduce(((n,s)=>{Jc||(Jc={});var a=Jc[s];if(a)n[a[0]]=a[1];else for(var i=t(s),o=i.length-1;o>=0;o--){var l=i[o],d=l==null?void 0:l.filename,u=r[s];if(d&&u){n[d]=u,Jc[s]=[d,u];break}}return n}),{})),t2}}class DE{constructor(r,e,n){n===void 0&&(n=[]),this.coercers=r,this.stackParser=e,this.modifiers=n}buildFromUnknown(r,e){e===void 0&&(e={});var n=e&&e.mechanism||{handled:!0,type:"generic"},s=this.buildCoercingContext(n,e,0).apply(r),a=this.buildParsingContext(e),i=this.parseStacktrace(s,a);return{$exception_list:this.convertToExceptionList(i,n),$exception_level:"error"}}modifyFrames(r){var e=this;return Fr((function*(){for(var n of r)n.stacktrace&&n.stacktrace.frames&&Gt(n.stacktrace.frames)&&(n.stacktrace.frames=yield e.applyModifiers(n.stacktrace.frames));return r}))()}coerceFallback(r){var e;return{type:"Error",value:"Unknown error",stack:(e=r.syntheticException)==null?void 0:e.stack,synthetic:!0}}parseStacktrace(r,e){var n,s;return r.cause!=null&&(n=this.parseStacktrace(r.cause,e)),r.stack!=""&&r.stack!=null&&(s=this.applyChunkIds(this.stackParser(r.stack,r.synthetic?e.skipFirstLines:0),e.chunkIdMap)),Oe({},r,{cause:n,stack:s})}applyChunkIds(r,e){return r.map((n=>(n.filename&&e&&(n.chunk_id=e[n.filename]),n)))}applyCoercers(r,e){for(var n of this.coercers)if(n.match(r))return n.coerce(r,e);return this.coerceFallback(e)}applyModifiers(r){var e=this;return Fr((function*(){var n=r;for(var s of e.modifiers)n=yield s(n);return n}))()}convertToExceptionList(r,e){var n,s,a,i={type:r.type,value:r.value,mechanism:{type:(n=e.type)!==null&&n!==void 0?n:"generic",handled:(s=e.handled)===null||s===void 0||s,synthetic:(a=r.synthetic)!==null&&a!==void 0&&a}};r.stack&&(i.stacktrace={type:"raw",frames:r.stack});var o=[i];return r.cause!=null&&o.push(...this.convertToExceptionList(r.cause,Oe({},e,{handled:!0}))),o}buildParsingContext(r){var e;return{chunkIdMap:FE(this.stackParser),skipFirstLines:(e=r.skipFirstLines)!==null&&e!==void 0?e:1}}buildCoercingContext(r,e,n){n===void 0&&(n=0);var s=(a,i)=>{if(4>=i){var o=this.buildCoercingContext(r,e,i);return this.applyCoercers(a,o)}};return Oe({},e,{syntheticException:n==0?e.syntheticException:void 0,mechanism:r,apply:a=>s(a,n),next:a=>s(a,n+1)})}}var Ro="?";function Sh(t,r,e,n,s){var a={platform:t,filename:r,function:e===""?Ro:e,in_app:!0};return Ke(n)||(a.lineno=n),Ke(s)||(a.colno=s),a}var j4=(t,r)=>{var e=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return e||n?[t.indexOf("@")!==-1?t.split("@")[0]:Ro,e?"safari-extension:"+r:"safari-web-extension:"+r]:[t,r]},VE=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,BE=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,UE=/\((\S*)(?::(\d+))(?::(\d+))\)/,HE=(t,r)=>{var e=VE.exec(t);if(e){var[,n,s,a]=e;return Sh(r,n,Ro,+s,+a)}var i=BE.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){var o=UE.exec(i[2]);o&&(i[2]=o[1],i[3]=o[2],i[4]=o[3])}var[l,d]=j4(i[1]||Ro,i[2]);return Sh(r,d,l,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},qE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,WE=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,GE=(t,r)=>{var e=qE.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){var n=WE.exec(e[3]);n&&(e[1]=e[1]||"eval",e[3]=n[1],e[4]=n[2],e[5]="")}var s=e[3],a=e[1]||Ro;return[a,s]=j4(a,s),Sh(r,s,a,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},m_=/\(error: (.*)\)/;class jE{match(r){return this.isDOMException(r)||this.isDOMError(r)}coerce(r,e){var n=wn(r.stack);return{type:this.getType(r),value:this.getValue(r),stack:n?r.stack:void 0,cause:r.cause?e.next(r.cause):void 0,synthetic:!1}}getType(r){return this.isDOMError(r)?"DOMError":"DOMException"}getValue(r){var e=r.name||(this.isDOMError(r)?"DOMError":"DOMException");return r.message?e+": "+r.message:e}isDOMException(r){return Fu(r,"DOMException")}isDOMError(r){return Fu(r,"DOMError")}}class ZE{match(r){return(e=>e instanceof Error)(r)}coerce(r,e){return{type:this.getType(r),value:this.getMessage(r,e),stack:this.getStack(r),cause:r.cause?e.next(r.cause):void 0,synthetic:!1}}getType(r){return r.name||r.constructor.name}getMessage(r,e){var n=r.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(r){return r.stacktrace||r.stack||void 0}}class KE{constructor(){}match(r){return Fu(r,"ErrorEvent")&&r.error!=null}coerce(r,e){var n;return e.apply(r.error)||{type:"ErrorEvent",value:r.message,stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var YE=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class QE{match(r){return typeof r=="string"}coerce(r,e){var n,[s,a]=this.getInfos(r);return{type:s!=null?s:"Error",value:a!=null?a:r,stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(r){var e="Error",n=r,s=r.match(YE);return s&&(e=s[1],n=s[2]),[e,n]}}var JE=["fatal","error","warning","log","info","debug"];function Z4(t,r){r===void 0&&(r=40);var e=Object.keys(t);if(e.sort(),!e.length)return"[object has no keys]";for(var n=e.length;n>0;n--){var s=e.slice(0,n).join(", ");if(r>=s.length)return n===e.length?s:s.length>r?s.slice(0,r)+"...":s}return""}class XE{match(r){return typeof r=="object"&&r!==null}coerce(r,e){var n,s=this.getErrorPropertyFromObject(r);return s?e.apply(s):{type:this.getType(r),value:this.getValue(r),stack:(n=e.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(r.level)?r.level:"error",synthetic:!0}}getType(r){return Sm(r)?r.constructor.name:"Error"}getValue(r){if("name"in r&&typeof r.name=="string"){var e="'"+r.name+"' captured as exception";return"message"in r&&typeof r.message=="string"&&(e+=" with message: '"+r.message+"'"),e}if("message"in r&&typeof r.message=="string")return r.message;var n=this.getObjectClassName(r);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+Z4(r)}isSeverityLevel(r){return wn(r)&&!pu(r)&&JE.indexOf(r)>=0}getErrorPropertyFromObject(r){for(var e in r)if({}.hasOwnProperty.call(r,e)){var n=r[e];if(xE(n))return n}}getObjectClassName(r){try{var e=Object.getPrototypeOf(r);return e?e.constructor.name:void 0}catch(n){return}}}class eT{match(r){return Sm(r)}coerce(r,e){var n,s=r.constructor.name;return{type:s,value:s+" captured as exception with keys: "+Z4(r),stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class tT{match(r){return I4(r)}coerce(r,e){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(r),stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class nT{match(r){return Fu(r,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(r)}isCustomEventWrappingRejection(r){if(!Sm(r))return!1;try{var e=r.detail;return e!=null&&typeof e=="object"&&"reason"in e}catch(n){return!1}}coerce(r,e){var n,s=this.getUnhandledRejectionReason(r);return I4(s)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(s),stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}:e.apply(s)}getUnhandledRejectionReason(r){try{if("reason"in r)return r.reason;if("detail"in r&&r.detail!=null&&typeof r.detail=="object"&&"reason"in r.detail)return r.detail.reason}catch(e){}return r}}var Vu="$message",Bu="$timestamp",rT=new Set([Vu,Bu]),r2={enabled:!0,max_bytes:32768};function Uu(t){var r;return t?{enabled:(r=t.enabled)!==null&&r!==void 0?r:r2.enabled,max_bytes:aT(t.max_bytes,r2.max_bytes)}:Oe({},r2)}class sT{constructor(r){this._entries=[],this._totalBytes=0,this._config=Uu(r)}setConfig(r){this._config=Uu(r),this._trimToMaxBytes()}add(r){var e=(function(s){var a=(function(u){var g=new WeakSet;try{return JSON.stringify(u,((y,w)=>{if(typeof w=="bigint")return w.toString();if(typeof w!="function"&&typeof w!="symbol"){if(w instanceof Date)return w.toISOString();if(w instanceof Error)return{name:w.name,message:w.message,stack:w.stack};if(w&&typeof w=="object"){if(g.has(w))return"[Circular]";g.add(w)}return w}}))}catch(y){return}})(s);if(a)try{var i=JSON.parse(a);if(!Nn(i))return;var o=i,l=o[Vu],d=o[Bu];return!wn(l)||l.trim().length===0||!wn(d)&&!os(d)?void 0:{step:o,json:a}}catch(u){return}})(r);if(e){var n=(function(s){if(typeof TextEncoder<"u")return new TextEncoder().encode(s).length;for(var a=encodeURIComponent(s),i=0,o=0;a.length>o;o++)a[o]==="%"?(i+=1,o+=2):i+=1;return i})(e.json);n>this._config.max_bytes||(this._entries.push({step:e.step,bytes:n}),this._totalBytes+=n,this._trimToMaxBytes())}}getAttachable(){return this._entries.map((r=>r.step))}clear(){this._entries=[],this._totalBytes=0}size(){return this._entries.length}_trimToMaxBytes(){for(;this._totalBytes>this._config.max_bytes&&this._entries.length>0;){var r=this._entries.shift();r&&(this._totalBytes-=r.bytes)}}}function aT(t,r){if(!os(t)||t===1/0||t===-1/0)return r;var e=Math.floor(t);return 0>e?r:e}var K4=function(t,r){var{debugEnabled:e}=r===void 0?{}:r,n={_log(s){if(le&&(Cr.DEBUG||St.POSTHOG_DEBUG||e)&&!Ke(le.console)&&le.console){for(var a=("__rrweb_original__"in le.console[s])?le.console[s].__rrweb_original__:le.console[s],i=arguments.length,o=new Array(i>1?i-1:0),l=1;i>l;l++)o[l-1]=arguments[l];a(t,...o)}},debug(){for(var s=arguments.length,a=new Array(s),i=0;s>i;i++)a[i]=arguments[i];n._log("debug",...a)},info(){for(var s=arguments.length,a=new Array(s),i=0;s>i;i++)a[i]=arguments[i];n._log("log",...a)},warn(){for(var s=arguments.length,a=new Array(s),i=0;s>i;i++)a[i]=arguments[i];n._log("warn",...a)},error(){for(var s=arguments.length,a=new Array(s),i=0;s>i;i++)a[i]=arguments[i];n._log("error",...a)},critical(){for(var s=arguments.length,a=new Array(s),i=0;s>i;i++)a[i]=arguments[i];console.error(t,...a)},uninitializedWarning(s){n.error("You must initialize PostHog before calling "+s)},createLogger:(s,a)=>K4(t+" "+s,a)};return n},Ge=K4("[PostHog.js]"),En=Ge.createLogger;function Xc(t,r){Gt(t)&&t.forEach(r)}function mn(t,r){if(!Vt(t))if(Gt(t))t.forEach(r);else if(wE(t))t.forEach(((n,s)=>r(n,s)));else for(var e in t)$4.call(t,e)&&r(t[e],e)}var $n=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];for(var s of e)for(var a in s)s[a]!==void 0&&(t[a]=s[a]);return t};function fu(t){for(var r=Object.keys(t),e=r.length,n=new Array(e);e--;)n[e]=[r[e],t[r[e]]];return n}var p_=function(t){try{return t()}catch(r){return}},iT=function(t){return function(){try{for(var r=arguments.length,e=new Array(r),n=0;r>n;n++)e[n]=arguments[n];return t.apply(this,e)}catch(s){Ge.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ge.critical(s)}}},Am=function(t){var r={};return mn(t,(function(e,n){(wn(e)&&e.length>0||os(e))&&(r[n]=e)})),r},oT=["herokuapp.com","vercel.app","netlify.app"];function lT(t){var r=t==null?void 0:t.hostname;if(!wn(r))return!1;var e=r.split(".").slice(-2).join(".");for(var n of oT)if(e===n)return!1;return!0}function xn(t,r,e,n){var{capture:s=!1,passive:a=!0}=n!=null?n:{};t==null||t.addEventListener(r,e,{capture:s,passive:a})}function Y4(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return os(t)&&isFinite(t)&&Math.floor(t)===t});class Hu{constructor(r){if(this.bytes=r,r.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(r,e,n,s){if(!Number.isInteger(r)||!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(s)||0>r||0>e||0>n||0>s||r>0xffffffffffff||e>4095||n>1073741823||s>4294967295)throw new RangeError("invalid field value");var a=new Uint8Array(16);return a[0]=r/Math.pow(2,40),a[1]=r/Math.pow(2,32),a[2]=r/Math.pow(2,24),a[3]=r/Math.pow(2,16),a[4]=r/Math.pow(2,8),a[5]=r,a[6]=112|e>>>8,a[7]=e,a[8]=128|n>>>24,a[9]=n>>>16,a[10]=n>>>8,a[11]=n,a[12]=s>>>24,a[13]=s>>>16,a[14]=s>>>8,a[15]=s,new Hu(a)}toString(){for(var r="",e=0;this.bytes.length>e;e++)r=r+(this.bytes[e]>>>4).toString(16)+(15&this.bytes[e]).toString(16),e!==3&&e!==5&&e!==7&&e!==9||(r+="-");if(r.length!==36)throw new Error("Invalid UUIDv7 was generated");return r}clone(){return new Hu(this.bytes.slice(0))}equals(r){return this.compareTo(r)===0}compareTo(r){for(var e=0;16>e;e++){var n=this.bytes[e]-r.bytes[e];if(n!==0)return Math.sign(n)}return 0}}class cT{constructor(){this._timestamp=0,this._counter=0,this._random=new uT}generate(){var r=this.generateOrAbort();if(Ke(r)){this._timestamp=0;var e=this.generateOrAbort();if(Ke(e))throw new Error("Could not generate UUID after timestamp reset");return e}return r}generateOrAbort(){var r=Date.now();if(r>this._timestamp)this._timestamp=r,this._resetCounter();else{if(this._timestamp>=r+1e4)return;this._counter++,this._counter>4398046511103&&(this._timestamp++,this._resetCounter())}return Hu.fromFieldsV7(this._timestamp,Math.trunc(this._counter/Math.pow(2,30)),this._counter&Math.pow(2,30)-1,this._random.nextUint32())}_resetCounter(){this._counter=1024*this._random.nextUint32()+(1023&this._random.nextUint32())}}var f_,Q4=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var r=0;t.length>r;r++)t[r]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};le&&!Ke(le.crypto)&&crypto.getRandomValues&&(Q4=t=>crypto.getRandomValues(t));class uT{constructor(){this._buffer=new Uint32Array(8),this._cursor=1/0}nextUint32(){return this._buffer.length>this._cursor||(Q4(this._buffer),this._cursor=0),this._buffer[this._cursor++]}}var Ba=()=>dT().toString(),dT=()=>(f_||(f_=new cT)).generate(),dl="",hT=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Vs={_is_supported:()=>!!tt,_error(t){Ge.error("cookieStore error: "+t)},_get(t){if(tt){try{for(var r=t+"=",e=tt.cookie.split(";").filter((a=>a.length)),n=0;e.length>n;n++){for(var s=e[n];s.charAt(0)==" ";)s=s.substring(1,s.length);if(s.indexOf(r)===0)return decodeURIComponent(s.substring(r.length,s.length))}}catch(a){}return null}},_parse(t){var r;try{r=JSON.parse(Vs._get(t))||{}}catch(e){}return r},_set(t,r,e,n,s){if(tt)try{var a="",i="",o=(function(u,g){if(g){var y=(function(k,E){if(E===void 0&&(E=tt),dl)return dl;if(!E||["localhost","127.0.0.1"].includes(k))return"";for(var R=k.split("."),O=Math.min(R.length,8),M="dmn_chk_"+Ba();!dl&&O--;){var x=R.slice(O).join("."),N=M+"=1;domain=."+x+";path=/";E.cookie=N+";max-age=3",E.cookie.includes(M)&&(E.cookie=N+";max-age=0",dl=x)}return dl})(u);if(!y){var w=(k=>{var E=k.match(hT);return E?E[0]:""})(u);w!==y&&Ge.info("Warning: cookie subdomain discovery mismatch",w,y),y=w}return y?"; domain=."+y:""}return""})(tt.location.hostname,n);if(e){var l=new Date;l.setTime(l.getTime()+864e5*e),a="; expires="+l.toUTCString()}s&&(i="; secure");var d=t+"="+encodeURIComponent(JSON.stringify(r))+a+"; SameSite=Lax; path=/"+o+i;return d.length>3686.4&&Ge.warn("cookieStore warning: large cookie, len="+d.length),tt.cookie=d,d}catch(u){return}},_remove(t,r){if(tt!=null&&tt.cookie)try{Vs._set(t,"",-1,r)}catch(e){return}}},s2=null,Cn={_is_supported(){if(!$a(s2))return s2;var t=!0;if(Ke(le))t=!1;else try{var r="__mplssupport__";Cn._set(r,"xyz"),Cn._get(r)!=='"xyz"'&&(t=!1),Cn._remove(r)}catch(e){t=!1}return t||Ge.error("localStorage unsupported; falling back to cookie store"),s2=t,t},_error(t){Ge.error("localStorage error: "+t)},_get(t){try{return le==null?void 0:le.localStorage.getItem(t)}catch(r){Cn._error(r)}return null},_parse(t){try{return JSON.parse(Cn._get(t))||{}}catch(r){}return null},_set(t,r){try{le==null||le.localStorage.setItem(t,JSON.stringify(r))}catch(e){Cn._error(e)}},_remove(t){try{le==null||le.localStorage.removeItem(t)}catch(r){Cn._error(r)}}},mT=[Ru,"distinct_id",Pu,wm,Lu,Mu,_s],eu={},pT={_is_supported:()=>!0,_error(t){Ge.error("memoryStorage error: "+t)},_get:t=>eu[t]||null,_parse:t=>eu[t]||null,_set(t,r){eu[t]=r},_remove(t){delete eu[t]}},yi=null,tr={_is_supported(){if(!$a(yi))return yi;if(yi=!0,Ke(le))yi=!1;else try{var t="__support__";tr._set(t,"xyz"),tr._get(t)!=='"xyz"'&&(yi=!1),tr._remove(t)}catch(r){yi=!1}return yi},_error(t){Ge.error("sessionStorage error: ",t)},_get(t){try{return le==null?void 0:le.sessionStorage.getItem(t)}catch(r){tr._error(r)}return null},_parse(t){try{return JSON.parse(tr._get(t))||null}catch(r){}return null},_set(t,r){try{le==null||le.sessionStorage.setItem(t,JSON.stringify(r))}catch(e){tr._error(e)}},_remove(t){try{le==null||le.sessionStorage.removeItem(t)}catch(r){tr._error(r)}}};class fT{constructor(r){this._instance=r}get _config(){return this._instance.config}get consent(){return this._getDnt()?0:this._storedConsent}isOptedOut(){return this._config.cookieless_mode===_a||this.isRejected()||this.consent===-1&&this._config.cookieless_mode===Ei}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this._config.opt_out_capturing_by_default}optInOut(r){this._storage._set(this._storageKey,r?1:0,this._config.cookie_expiration,this._config.cross_subdomain_cookie,this._config.secure_cookie)}reset(){this._storage._remove(this._storageKey,this._config.cross_subdomain_cookie)}get _storageKey(){var{token:r,opt_out_capturing_cookie_prefix:e,consent_persistence_name:n}=this._instance.config;return n||(e?e+r:"__ph_opt_in_out_"+r)}get _storedConsent(){var r=this._storage._get(this._storageKey);return e2(r)?1:Dt(EE,r)?0:-1}get _storage(){var r=this._config.opt_out_capturing_persistence_type,e=r==="localStorage"?Cn:Vs;if(!this._persistentStore||this._persistentStore!==e){this._persistentStore=e;var n=r==="localStorage"?Vs:Cn;n._get(this._storageKey)&&(this._persistentStore._get(this._storageKey)||this.optInOut(e2(n._get(this._storageKey))),n._remove(this._storageKey,this._config.cross_subdomain_cookie))}return this._persistentStore}_getDnt(){return!!this._config.respect_dnt&&[Ur==null?void 0:Ur.doNotTrack,Ur==null?void 0:Ur.msDoNotTrack,St.doNotTrack].some((r=>e2(r)))}}var tu=En("[Dead Clicks]"),_T=()=>!0,gT=t=>{var r,e=!((r=t.instance.persistence)==null||!r.get_property(Cm)),n=t.instance.config.capture_dead_clicks;return Us(n)?n:!!Nn(n)||e};class __{get lazyLoadedDeadClicksAutocapture(){return this._lazyLoadedDeadClicksAutocapture}constructor(r,e,n){this.instance=r,this.isEnabled=e,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(r){"captureDeadClicks"in r&&(this.instance.persistence&&this.instance.persistence.register({[Cm]:r.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this._loadScript((()=>{this._start()})):this.stop()}_loadScript(r){var e,n;(e=St.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture&&r(),(n=St.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(s=>{s?tu.error("failed to load script",s):r()}))}_start(){var r;if(tt){if(!this._lazyLoadedDeadClicksAutocapture&&(r=St.__PosthogExtensions__)!=null&&r.initDeadClicksAutocapture){var e=Nn(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};e.__onCapture=this.onCapture,this._lazyLoadedDeadClicksAutocapture=St.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,e),this._lazyLoadedDeadClicksAutocapture.start(tt),tu.info("starting...")}}else tu.error("`document` not found. Cannot start.")}stop(){this._lazyLoadedDeadClicksAutocapture&&(this._lazyLoadedDeadClicksAutocapture.stop(),this._lazyLoadedDeadClicksAutocapture=void 0,tu.info("stopping..."))}}var a2=En("[SegmentIntegration]"),J4="posthog-js";function X4(t,r){var{organization:e,projectId:n,prefix:s,severityAllowList:a=["error"],sendExceptionsToPostHog:i=!0}=r===void 0?{}:r;return o=>{var l,d,u,g,y;if(a!=="*"&&!a.includes(o.level)||!t.__loaded)return o;o.tags||(o.tags={});var w=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());o.tags["PostHog Person URL"]=w,t.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var k,E=((l=o.exception)==null?void 0:l.values)||[],R=E.map((M=>Oe({},M,{stacktrace:M.stacktrace?Oe({},M.stacktrace,{type:"raw",frames:(M.stacktrace.frames||[]).map((x=>Oe({},x,{platform:"web:javascript"})))}):void 0}))),O={$exception_message:((d=E[0])==null?void 0:d.value)||o.message,$exception_type:(u=E[0])==null?void 0:u.type,$exception_level:o.level,$exception_list:R,$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:((g=E[0])==null?void 0:g.value)||o.message,$sentry_exception_type:(y=E[0])==null?void 0:y.type,$sentry_tags:o.tags};return e&&n&&(O.$sentry_url=(s||"https://sentry.io/organizations/")+e+"/issues/?project="+n+"&query="+o.event_id),i&&((k=t.exceptions)==null||k.sendExceptionEvent(O)),o}}class vT{constructor(r,e,n,s,a,i){this.name=J4,this.setupOnce=function(o){o(X4(r,{organization:e,projectId:n,prefix:s,severityAllowList:a,sendExceptionsToPostHog:i==null||i}))}}}class g_{constructor(r){this._onSessionIdChange=(e,n,s)=>{s&&(s.noSessionId||s.activityTimeout||s.sessionPastMaximumLength)&&(Ge.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:s}),this._currentPageview=void 0,this._instance.scrollManager.resetContext())},this._instance=r,this._setupSessionRotationHandler()}_setupSessionRotationHandler(){var r;this._unsubscribeSessionId=(r=this._instance.sessionManager)==null?void 0:r.onSessionId(this._onSessionIdChange)}destroy(){var r;(r=this._unsubscribeSessionId)==null||r.call(this),this._unsubscribeSessionId=void 0}doPageView(r,e){var n,s=this._previousPageViewProperties(r,e);return this._currentPageview={pathname:(n=le==null?void 0:le.location.pathname)!==null&&n!==void 0?n:"",pageViewId:e,timestamp:r},this._instance.scrollManager.resetContext(),s}doPageLeave(r){var e;return this._previousPageViewProperties(r,(e=this._currentPageview)==null?void 0:e.pageViewId)}doEvent(){var r;return{$pageview_id:(r=this._currentPageview)==null?void 0:r.pageViewId}}_previousPageViewProperties(r,e){var n=this._currentPageview;if(!n)return{$pageview_id:e};var s={$pageview_id:e,$prev_pageview_id:n.pageViewId},a=this._instance.scrollManager.getContext();if(a&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:i,lastScrollY:o,maxScrollY:l,maxContentHeight:d,lastContentY:u,maxContentY:g}=a;if(!(Ke(i)||Ke(o)||Ke(l)||Ke(d)||Ke(u)||Ke(g))){i=Math.ceil(i),o=Math.ceil(o),l=Math.ceil(l),d=Math.ceil(d),u=Math.ceil(u),g=Math.ceil(g);var y=i>1?Hs(o/i,0,1,Ge):1,w=i>1?Hs(l/i,0,1,Ge):1,k=d>1?Hs(u/d,0,1,Ge):1,E=d>1?Hs(g/d,0,1,Ge):1;s=$n(s,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:y,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:w,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:k,$prev_pageview_max_content:g,$prev_pageview_max_content_percentage:E})}}return n.pathname&&(s.$prev_pageview_pathname=n.pathname),n.timestamp&&(s.$prev_pageview_duration=(r.getTime()-n.timestamp.getTime())/1e3),s}}var yT={[_4]:{exposure:"hidden"},[El]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Tl]:{exposure:"hidden"},[Y2]:{exposure:"event"},[Q2]:{exposure:"hidden"},[J2]:{exposure:"event"},[X2]:{exposure:"hidden"},[eh]:{exposure:"event"},[th]:{exposure:"event"},[Cm]:{exposure:"event"},[nh]:{exposure:"hidden"},[rh]:{exposure:"event"},[Ii]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Pu]:{exposure:"hidden"},[wm]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[mo]:{exposure:"derived",shouldSkipFromEventProperties:(t,r)=>r(),transformToEventProperties(t){if(!Nn(t))return{};for(var r={},e=Object.keys(t),n=0;e.length>n;n++)r["$feature/"+e[n]]=t[e[n]];return r}},[hu]:{exposure:"event"},[$l]:{exposure:"hidden"},[sh]:{exposure:"hidden"},[ah]:{exposure:"event"},[ih]:{exposure:"event"},[la]:{exposure:"event"},[lo]:{exposure:"hidden"},[Il]:{exposure:"hidden"},[Si]:{exposure:"hidden"},[oh]:{exposure:"hidden"},[lh]:{exposure:"event"},[mu]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[Fl]:{exposure:"hidden"},[ch]:{exposure:"hidden"},[uh]:{exposure:"hidden"},[Nu]:{exposure:"hidden"},[_s]:{exposure:"hidden"},[dh]:{exposure:"hidden"},[hh]:{exposure:"hidden"},[mh]:{exposure:"hidden"},[ph]:{exposure:"hidden"},[Mu]:{exposure:"hidden"},[Lu]:{exposure:"hidden"},[g4]:{exposure:"event"},[v4]:{exposure:"event"},[y4]:{exposure:"event"},[b4]:{exposure:"event"},[w4]:{exposure:"event"},[k4]:{exposure:"event"},[S4]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},bT=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],qu=t=>{var r=tt==null?void 0:tt.createElement("a");return Ke(r)?null:(r.href=t,r)},nc=function(t,r){for(var e,n=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),s=0;n.length>s;s++){var a=n[s].split("=");if(a[0]===r){e=a;break}}if(!Gt(e)||2>e.length)return"";var i=e[1];try{i=decodeURIComponent(i)}catch(o){Ge.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},rc=function(t,r,e){if(!t||!r||!r.length)return t;for(var n=t.split("#"),s=n[1],a=(n[0]||"").split("?"),i=a[1],o=a[0],l=(i||"").split("&"),d=[],u=0;l.length>u;u++){var g=l[u].split("=");Gt(g)&&(r.includes(g[0])?d.push(g[0]+"="+e):d.push(l[u]))}var y=o;return i!=null&&(y+="?"+d.join("&")),s!=null&&(y+="#"+s),y},Wu=function(t,r){var e=t.match(new RegExp(r+"=([^&]*)"));return e?e[1]:null},nu="https?://(.*)",Po=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],CT=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Po],sc="",wT=["li_fat_id"];function e8(t,r,e){if(!tt)return{};var n,s=r?[...Po,...e||[]]:[],a=t8(rc(tt.URL,s,sc),t),i=(n={},mn(wT,(function(o){var l=Vs._get(o);n[o]=l||null})),n);return $n(i,a)}function t8(t,r){var e=CT.concat(r||[]),n={};return mn(e,(function(s){var a=nc(t,s);n[s]=a||null})),n}function n8(t){var r=(function(a){return a?a.search(nu+"google.([^/?]*)")===0?"google":a.search(nu+"bing.com")===0?"bing":a.search(nu+"yahoo.com")===0?"yahoo":a.search(nu+"duckduckgo.com")===0?"duckduckgo":null:null})(t),e=r!="yahoo"?"q":"p",n={};if(!$a(r)){n.$search_engine=r;var s=tt?nc(tt.referrer,e):"";s.length&&(n.ph_keyword=s)}return n}function v_(){return navigator.language||navigator.userLanguage}var Gu="$direct";function r8(){return(tt==null?void 0:tt.referrer)||Gu}function s8(t,r){var e=t?[...Po,...r||[]]:[],n=er==null?void 0:er.href.substring(0,1e3);return{r:r8().substring(0,1e3),u:n?rc(n,e,sc):void 0}}function a8(t){var r,{r:e,u:n}=t,s={$referrer:e,$referring_domain:e==null?void 0:e==Gu?Gu:(r=qu(e))==null?void 0:r.host};if(n){s.$current_url=n;var a=qu(n);s.$host=a==null?void 0:a.host,s.$pathname=a==null?void 0:a.pathname;var i=t8(n);$n(s,i)}if(e){var o=n8(e);$n(s,o)}return s}function i8(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){return}}function kT(){try{return new Date().getTimezoneOffset()}catch(t){return}}var ST=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class i2{constructor(r,e){this._config=r,this.props={},this._campaign_params_saved=!1,this._name=(n=>{var s="";return n.token&&(s=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+s+"_posthog"})(r),this._storage=this._buildStorage(r),this.load(),r.debug&&Ge.info("Persistence loaded",r.persistence,Oe({},this.props)),this.update_config(r,r,e),this.save()}isDisabled(){return!!this._disabled}_buildStorage(r){ST.indexOf(r.persistence.toLowerCase())===-1&&(Ge.critical("Unknown persistence type "+r.persistence+"; falling back to localStorage+cookie"),r.persistence="localStorage+cookie");var e=(function(s){s===void 0&&(s=[]);var a=[...mT,...s];return Oe({},Cn,{_parse(i){try{var o={};try{o=Vs._parse(i)||{}}catch(d){}var l=$n(o,JSON.parse(Cn._get(i)||"{}"));return Cn._set(i,l),l}catch(d){}return null},_set(i,o,l,d,u,g){try{Cn._set(i,o,void 0,void 0,g);var y={};a.forEach((w=>{o[w]&&(y[w]=o[w])})),Object.keys(y).length&&Vs._set(i,y,l,d,u,g)}catch(w){Cn._error(w)}},_remove(i,o){try{le==null||le.localStorage.removeItem(i),Vs._remove(i,o)}catch(l){Cn._error(l)}}})})(r.cookie_persisted_properties||[]),n=r.persistence.toLowerCase();return n==="localstorage"&&Cn._is_supported()?Cn:n==="localstorage+cookie"&&e._is_supported()?e:n==="sessionstorage"&&tr._is_supported()?tr:n==="memory"?pT:n==="cookie"?Vs:e._is_supported()?e:Vs}_isFeatureFlagCacheStale(r){var e=r!=null?r:this._config.feature_flag_cache_ttl_ms;if(!e||0>=e)return!1;var n=this.props[Nu];return!n||typeof n!="number"||Date.now()-n>e}properties(){var r={};return mn(this.props,((e,n)=>{var s=(a=>{var i=yT[a];if(i)return i;for(var[o,l]of bT)if(a.indexOf(o)===0)return l})(n);if((s==null?void 0:s.exposure)==="derived"){if(s.shouldSkipFromEventProperties!=null&&s.shouldSkipFromEventProperties(e,n===mo?()=>this._isFeatureFlagCacheStale():()=>!1))return;s.transformToEventProperties&&$n(r,s.transformToEventProperties(e))}else s&&s.exposure!=="event"||(r[n]=e)})),r}load(){if(!this._disabled){var r=this._storage._parse(this._name);r&&(this.props=$n({},r))}}save(){this._disabled||this._storage._set(this._name,this.props,this._expire_days,this._cross_subdomain,this._secure,this._config.debug)}remove(){this._storage._remove(this._name,!1),this._storage._remove(this._name,!0)}clear(){this.remove(),this.props={}}register_once(r,e,n){if(Nn(r)){Ke(e)&&(e="None"),this._expire_days=Ke(n)?this._default_expiry:n;var s=!1;if(mn(r,((a,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==e||(this._setProp(i,a),s=!0)})),s)return this.save(),!0}return!1}register(r,e){if(Nn(r)){this._expire_days=Ke(e)?this._default_expiry:e;var n=!1;if(mn(r,((s,a)=>{r.hasOwnProperty(a)&&this.props[a]!==s&&(this._setProp(a,s),n=!0)})),n)return this.save(),!0}return!1}unregister(r){r in this.props&&(this._deleteProp(r),this.save())}update_campaign_params(){if(!this._campaign_params_saved){var r=e8(this._config.custom_campaign_params,this._config.mask_personal_data_properties,this._config.custom_personal_data_properties);po(Am(r))||this.register(r),this._campaign_params_saved=!0}}update_search_keyword(){var r;this.register((r=tt==null?void 0:tt.referrer)?n8(r):{})}update_referrer_info(){var r;this.register_once({$referrer:r8(),$referring_domain:tt!=null&&tt.referrer&&((r=qu(tt.referrer))==null?void 0:r.host)||Gu},void 0)}set_initial_person_info(){this.props[mh]||this.props[ph]||this.register_once({[Mu]:s8(this._config.mask_personal_data_properties,this._config.custom_personal_data_properties)},void 0)}get_initial_props(){var r={};mn([ph,mh],(i=>{var o=this.props[i];o&&mn(o,(function(l,d){r["$initial_"+bh(d)]=l}))}));var e,n,s=this.props[Mu];if(s){var a=(e=a8(s),n={},mn(e,(function(i,o){n["$initial_"+bh(o)]=i})),n);$n(r,a)}return r}safe_merge(r){return mn(this.props,(function(e,n){n in r||(r[n]=e)})),r}update_config(r,e,n){if(this._default_expiry=this._expire_days=r.cookie_expiration,this.set_disabled(r.disable_persistence||!!n),this.set_cross_subdomain(r.cross_subdomain_cookie),this.set_secure(r.secure_cookie),r.persistence!==e.persistence||!((i,o)=>{if(i.length!==o.length)return!1;var l=[...i].sort(),d=[...o].sort();return l.every(((u,g)=>u===d[g]))})(r.cookie_persisted_properties||[],e.cookie_persisted_properties||[])){var s=this._buildStorage(r),a=this.props;this.clear(),this._storage=s,this.props=a,this.save()}}set_disabled(r){this._disabled=r,this._disabled?this.remove():this.save()}set_cross_subdomain(r){r!==this._cross_subdomain&&(this._cross_subdomain=r,this.remove(),this.save())}set_secure(r){r!==this._secure&&(this._secure=r,this.remove(),this.save())}set_event_timer(r,e){var n=this.props[Tl]||{};n[r]=e,this._setProp(Tl,n),this.save()}remove_event_timer(r){var e=this.props[Tl]||{},n=e[r];return Ke(n)||(delete e[r],this._setProp(Tl,e),this.save()),n}get_property(r){return this.props[r]}set_property(r,e){this._setProp(r,e),this.save()}_setProp(r,e){this.props[r]=e}_deleteProp(r){delete this.props[r]}}var hl={Activation:"events",Cancellation:"cancelEvents"},o2={Popover:"popover",API:"api",Widget:"widget"},zl={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},l2={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Eh={Popover:"popover",Inline:"inline"},ET={SHOWN:"product tour shown"},y_={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},b_=En("[RateLimiter]");class TT{constructor(r){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var n=e.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach((s=>{b_.info((s||"events")+" is quota limited."),this.serverLimits[s]=new Date().getTime()+6e4}))}catch(s){return void b_.warn('could not rate limit - continuing. Error: "'+(s==null?void 0:s.message)+'"',{text:n})}},this.instance=r,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var r;return((r=this.instance.config.rate_limiting)==null?void 0:r.events_per_second)||10}get captureEventsBurstLimit(){var r;return Math.max(((r=this.instance.config.rate_limiting)==null?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(r){var e,n,s;r===void 0&&(r=!1);var{captureEventsBurstLimit:a,captureEventsPerSecond:i}=this,o=new Date().getTime(),l=(e=(n=this.instance.persistence)==null?void 0:n.get_property(hh))!==null&&e!==void 0?e:{tokens:a,last:o};l.tokens+=(o-l.last)/1e3*i,l.last=o,l.tokens>a&&(l.tokens=a);var d=1>l.tokens;return d||r||(l.tokens=Math.max(0,l.tokens-1)),!d||this.lastEventRateLimited||r||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+i+" events per second and "+a+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=d,(s=this.instance.persistence)==null||s.set_property(hh,l),{isRateLimited:d,remainingTokens:l.tokens}}isServerRateLimited(r){var e=this.serverLimits[r||"events"]||!1;return e!==!1&&new Date().getTime()r(this.remoteConfig))):r()}_loadRemoteConfigJSON(r){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(e){r(e.json)}})}load(){try{if(this.remoteConfig)return ml.info("Using preloaded remote config",this.remoteConfig),this._onRemoteConfig(this.remoteConfig),void this._startRefreshInterval();if(this._instance._shouldDisableFlags())return void ml.warn("Remote config is disabled. Falling back to local config.");this._loadRemoteConfigJs((r=>{if(!r)return ml.info("No config found after loading remote JS config. Falling back to JSON."),void this._loadRemoteConfigJSON((e=>{this._onRemoteConfig(e),this._startRefreshInterval()}));this._onRemoteConfig(r),this._startRefreshInterval()}))}catch(r){ml.error("Error loading remote config",r)}}stop(){this._refreshInterval&&(clearInterval(this._refreshInterval),this._refreshInterval=void 0)}refresh(){!this._instance._shouldDisableFlags()&&tt&&tt.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}_startRefreshInterval(){var r;if(!this._refreshInterval){var e=(r=this._instance.config.remote_config_refresh_interval_ms)!==null&&r!==void 0?r:3e5;e!==0&&(this._refreshInterval=setInterval((()=>{this.refresh()}),e))}}_onRemoteConfig(r){var e;r||ml.error("Failed to fetch remote config from PostHog."),this._instance._onRemoteConfig(r!=null?r:{}),(r==null?void 0:r.hasFeatureFlags)!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(e=this._instance.featureFlags)==null||e.ensureFlagsLoaded())}}var Fs={GZipJS:"gzip-js",Base64:"base64"},as=Uint8Array,Pr=Uint16Array,No=Uint32Array,zm=new as([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Rm=new as([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),C_=new as([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l8=function(t,r){for(var e=new Pr(31),n=0;31>n;++n)e[n]=r+=1<n;++n)for(var a=e[n];e[n+1]>a;++a)s[a]=a-e[n]<<5|n;return[e,s]},c8=l8(zm,2),Th=c8[1];c8[0][28]=258,Th[258]=28;for(var w_=l8(Rm,0)[1],u8=new Pr(32768),pn=0;32768>pn;++pn){var no=(43690&pn)>>>1|(21845&pn)<<1;u8[pn]=((65280&(no=(61680&(no=(52428&no)>>>2|(13107&no)<<2))>>>4|(3855&no)<<4))>>>8|(255&no)<<8)>>>1}var Vl=function(t,r,e){for(var n=t.length,s=0,a=new Pr(r);n>s;++s)++a[t[s]-1];var i,o=new Pr(r);for(s=0;r>s;++s)o[s]=o[s-1]+a[s-1]<<1;for(i=new Pr(n),s=0;n>s;++s)i[s]=u8[o[t[s]-1]++]>>>15-t[s];return i},Li=new as(288);for(pn=0;144>pn;++pn)Li[pn]=8;for(pn=144;256>pn;++pn)Li[pn]=9;for(pn=256;280>pn;++pn)Li[pn]=7;for(pn=280;288>pn;++pn)Li[pn]=8;var ju=new as(32);for(pn=0;32>pn;++pn)ju[pn]=5;var $T=Vl(Li,9),IT=Vl(ju,5),d8=function(t){return(t/8>>0)+(7&t&&1)},h8=function(t,r,e){(e==null||e>t.length)&&(e=t.length);var n=new(t instanceof Pr?Pr:t instanceof No?No:as)(e-r);return n.set(t.subarray(r,e)),n},aa=function(t,r,e){var n=r/8>>0;t[n]|=e<<=7&r,t[n+1]|=e>>>8},pl=function(t,r,e){var n=r/8>>0;t[n]|=e<<=7&r,t[n+1]|=e>>>8,t[n+2]|=e>>>16},c2=function(t,r){for(var e=[],n=0;t.length>n;++n)t[n]&&e.push({s:n,f:t[n]});var s=e.length,a=e.slice();if(!s)return[new as(0),0];if(s==1){var i=new as(e[0].s+1);return i[e[0].s]=1,[i,1]}e.sort((function(A,V){return A.f-V.f})),e.push({s:-1,f:25001});var o=e[0],l=e[1],d=0,u=1,g=2;for(e[0]={s:-1,f:o.f+l.f,l:o,r:l};u!=s-1;)o=e[e[g].f>e[d].f?d++:g++],l=e[d!=u&&e[g].f>e[d].f?d++:g++],e[u++]={s:-1,f:o.f+l.f,l:o,r:l};var y=a[0].s;for(n=1;s>n;++n)a[n].s>y&&(y=a[n].s);var w=new Pr(y+1),k=$h(e[u-1],w,0);if(k>r){n=0;var E=0,R=k-r,O=1<n;++n){var M=a[n].s;if(r>=w[M])break;E+=O-(1<>>=R;E>0;){var x=a[n].s;r>w[x]?E-=1<=0&&E;--n){var N=a[n].s;w[N]==r&&(--w[N],++E)}k=r}return[new as(w),k]},$h=function(t,r,e){return t.s==-1?Math.max($h(t.l,r,e+1),$h(t.r,r,e+1)):r[t.s]=e},k_=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new Pr(++r),n=0,s=t[0],a=1,i=function(l){e[n++]=l},o=1;r>=o;++o)if(t[o]==s&&o!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)i(32754);a>2&&(i(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(i(s),--a;a>6;a-=6)i(8304);a>2&&(i(a-3<<5|8208),a=0)}for(;a--;)i(s);a=1,s=t[o]}return[e.subarray(0,n),r]},fl=function(t,r){for(var e=0,n=0;r.length>n;++n)e+=t[n]*r[n];return e},Ih=function(t,r,e){var n=e.length,s=d8(r+2);t[s]=255&n,t[s+1]=n>>>8,t[s+2]=255^t[s],t[s+3]=255^t[s+1];for(var a=0;n>a;++a)t[s+a+4]=e[a];return 8*(s+4+n)},S_=function(t,r,e,n,s,a,i,o,l,d,u){aa(r,u++,e),++s[256];for(var g=c2(s,15),y=g[0],w=g[1],k=c2(a,15),E=k[0],R=k[1],O=k_(y),M=O[0],x=O[1],N=k_(E),A=N[0],V=N[1],F=new Pr(19),S=0;M.length>S;++S)F[31&M[S]]++;for(S=0;A.length>S;++S)F[31&A[S]]++;for(var z=c2(F,7),U=z[0],j=z[1],J=19;J>4&&!U[C_[J-1]];--J);var de,Ae,qe,Ue,je=d+5<<3,nt=fl(s,Li)+fl(a,ju)+i,Pt=fl(s,y)+fl(a,E)+i+14+3*J+fl(F,U)+(2*F[16]+3*F[17]+7*F[18]);if(nt>=je&&Pt>=je)return Ih(r,u,t.subarray(l,l+d));if(aa(r,u,1+(nt>Pt)),u+=2,nt>Pt){de=Vl(y,w),Ae=y,qe=Vl(E,R),Ue=E;var G=Vl(U,j);for(aa(r,u,x-257),aa(r,u+5,V-1),aa(r,u+10,J-4),u+=14,S=0;J>S;++S)aa(r,u+3*S,U[C_[S]]);u+=3*J;for(var X=[M,A],W=0;2>W;++W){var Y=X[W];for(S=0;Y.length>S;++S)aa(r,u,G[ce=31&Y[S]]),u+=U[ce],ce>15&&(aa(r,u,Y[S]>>>5&127),u+=Y[S]>>>12)}}else de=$T,Ae=Li,qe=IT,Ue=ju;for(S=0;o>S;++S)if(n[S]>255){var ce;pl(r,u,de[257+(ce=n[S]>>>18&31)]),u+=Ae[ce+257],ce>7&&(aa(r,u,n[S]>>>23&31),u+=zm[ce]);var me=31&n[S];pl(r,u,qe[me]),u+=Ue[me],me>3&&(pl(r,u,n[S]>>>5&8191),u+=Rm[me])}else pl(r,u,de[n[S]]),u+=Ae[n[S]];return pl(r,u,de[256]),u+Ae[256]},AT=new No([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zT=(function(){for(var t=new No(256),r=0;256>r;++r){for(var e=r,n=9;--n;)e=(1&e&&3988292384)^e>>>1;t[r]=e}return t})(),u2=function(t,r,e){for(;e;++r)t[r]=e,e>>>=8};function RT(t,r){r===void 0&&(r={});var e=(function(){var g=4294967295;return{p(y){for(var w=g,k=0;y.length>k;++k)w=zT[255&w^y[k]]^w>>>8;g=w},d(){return 4294967295^g}}})(),n=t.length;e.p(t);var s,a,i,o,l,d=(o=10+((s=r).filename&&s.filename.length+1||0),l=8,(function(g,y,w,k,E,R){var O=g.length,M=new as(k+O+5*(1+Math.floor(O/7e3))+E),x=M.subarray(k,M.length-E),N=0;if(!y||8>O)for(var A=0;O>=A;A+=65535){var V=A+65535;O>V?N=Ih(x,N,g.subarray(A,V)):(x[A]=!0,N=Ih(x,N,g.subarray(A,O)))}else{for(var F=AT[y-1],S=F>>>13,z=8191&F,U=(1<A;++A){var ce=qe(A),me=32767&A,ue=J[ce];if(j[me]=ue,J[ce]=me,A>=W){var at=O-A;if((Pt>7e3||X>24576)&&at>423){N=S_(g,x,0,Ue,je,nt,G,X,Y,A-Y,N),X=Pt=G=0,Y=A;for(var it=0;286>it;++it)je[it]=0;for(it=0;30>it;++it)nt[it]=0}var $t=2,Bt=0,yn=z,B=me-ue&32767;if(at>2&&ce==qe(A-B))for(var Q=Math.min(S,at)-1,Z=Math.min(32767,A),he=Math.min(258,at);Z>=B&&--yn&&me!=ue;){if(g[A+$t]==g[A+$t-B]){for(var ve=0;he>ve&&g[A+ve]==g[A+ve-B];++ve);if(ve>$t){if($t=ve,Bt=B,ve>Q)break;var Ee=Math.min(B,ve-2),He=0;for(it=0;Ee>it;++it){var Ve=A-B+it+32768&32767,Le=Ve-j[Ve]+32768&32767;Le>He&&(He=Le,ue=Ve)}}}B+=(me=ue)-(ue=j[me])+32768&32767}if(Bt){Ue[X++]=268435456|Th[$t]<<18|w_[Bt];var Te=31&Th[$t],ft=31&w_[Bt];G+=zm[Te]+Rm[ft],++je[257+Te],++nt[ft],W=A+$t,++Pt}else Ue[X++]=g[A],++je[g[A]]}}N=S_(g,x,!0,Ue,je,nt,G,X,Y,A-Y,N)}return h8(M,0,k+d8(N)+E)})(a=t,(i=r).level==null?6:i.level,i.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+i.mem,o,l)),u=d.length;return(function(g,y){var w=y.filename;if(g[0]=31,g[1]=139,g[2]=8,g[8]=2>y.level?4:y.level==9?2:0,g[9]=3,y.mtime!=0&&u2(g,4,Math.floor(new Date(y.mtime||Date.now())/1e3)),w){g[3]=8;for(var k=0;w.length>=k;++k)g[k+10]=w.charCodeAt(k)}})(d,r),u2(d,u-8,e.d()),u2(d,u-4,n),d}var PT=!!gh||!!_h,m8="text/plain",_u=!1,NT=(t,r)=>{var[e,n]=t.split("#"),[s,a]=e.split("?");if(!a)return t;var i=a.split("&").filter((o=>o.split("=")[0]!==r)).join("&");return s+(i?"?"+i:"")+(n?"#"+n:"")},Ad=function(t,r,e){var n;e===void 0&&(e=!0);var[s,a]=t.split("?"),i=Oe({},r),o=(n=a==null?void 0:a.split("&").map((d=>{var u,[g,y]=d.split("="),w=e&&(u=i[g])!==null&&u!==void 0?u:y;return delete i[g],g+"="+w})))!==null&&n!==void 0?n:[],l=(function(d,u){var g,y;u===void 0&&(u="&");var w=[];return mn(d,(function(k,E){Ke(k)||Ke(E)||E==="undefined"||(g=encodeURIComponent((R=>R instanceof File)(k)?k.name:k.toString()),y=encodeURIComponent(E),w[w.length]=y+"="+g)})),w.join(u)})(i);return l&&o.push(l),s+"?"+o.join("&")},fo=(t,r)=>JSON.stringify(t,((e,n)=>typeof n=="bigint"?n.toString():n),r),E_=t=>{if(t._encodedBody)return t._encodedBody;var{data:r,compression:e}=t;if(r){if(e===Fs.GZipJS){var n=RT((function(o,l){var d=o.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(o);for(var u=new as(o.length+(o.length>>>1)),g=0,y=function(R){u[g++]=R},w=0;d>w;++w){if(g+5>u.length){var k=new as(g+8+(d-w<<1));k.set(u),u=k}var E=o.charCodeAt(w);128>E?y(E):2048>E?(y(192|E>>>6),y(128|63&E)):E>55295&&57344>E?(y(240|(E=65536+(1047552&E)|1023&o.charCodeAt(++w))>>>18),y(128|E>>>12&63),y(128|E>>>6&63),y(128|63&E)):(y(224|E>>>12),y(128|E>>>6&63),y(128|63&E))}return h8(u,0,g)})(fo(r)),{mtime:0});return{contentType:m8,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(e===Fs.Base64){var s=(function(o){return o&&btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,((l,d)=>String.fromCharCode(parseInt(d,16)))))})(fo(r)),a=(o=>"data="+encodeURIComponent(typeof o=="string"?o:fo(o)))(s);return{contentType:"application/x-www-form-urlencoded",body:a,estimatedSize:new Blob([a]).size}}var i=fo(r);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},d2=t=>{var r,e,n,s=E_(t);return!s||(e=t.compression,n=nc(t.url,"compression"),e!==a_.GZipJS&&n!==a_.GZipJS&&n!=="gzip")||((r=s.body)instanceof ArrayBuffer?vh(new Uint8Array(r)):ArrayBuffer.isView(r)&&vh(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)))?{url:t.url,encodedBody:s}:(_u=!0,{url:NT(t.url,"compression"),encodedBody:E_(Oe({},t,{compression:void 0,_encodedBody:void 0}))})},MT=(function(){var t=Fr((function*(r){var e=fo(r.data),n=yield(function(a,i,o){return yh.apply(this,arguments)})(e,Cr.DEBUG,{rethrow:!0});if(!n)return r;var s=yield n.arrayBuffer();return Oe({},r,{_encodedBody:{contentType:m8,body:s,estimatedSize:s.byteLength}})}));return function(r){return t.apply(this,arguments)}})(),T_=(t,r)=>Ad(t,{_:new Date().getTime().toString(),ver:Cr.JS_SDK_VERSION,compression:r}),gu=[];_h&&gu.push({transport:"fetch",method(t){var r,{url:e,encodedBody:n}=d2(t),{contentType:s,body:a,estimatedSize:i}=n!=null?n:{},o=new Headers;mn(t.headers,(function(u,g){o.append(g,u)})),s&&o.append("Content-Type",s);var l=null;if(s_){var d=new s_;l={signal:d.signal,timeout:setTimeout((()=>d.abort()),t.timeout)}}_h(e,Oe({method:(t==null?void 0:t.method)||"GET",headers:o,keepalive:t.method==="POST"&&52428.8>(i||0),body:a,signal:(r=l)==null?void 0:r.signal},t.fetchOptions)).then((u=>u.text().then((g=>{var y={statusCode:u.status,text:g};if(u.status===200)try{y.json=JSON.parse(g)}catch(w){Ge.error(w)}t.callback==null||t.callback(y)})))).catch((u=>{Ge.error(u),t.callback==null||t.callback({statusCode:0,error:u})})).finally((()=>l?clearTimeout(l.timeout):null))}}),gh&&gu.push({transport:"XHR",method(t){var r=new gh,{url:e,encodedBody:n}=d2(t);r.open(t.method||"GET",e,!0);var{contentType:s,body:a}=n!=null?n:{};mn(t.headers,(function(i,o){r.setRequestHeader(o,i)})),s&&r.setRequestHeader("Content-Type",s),t.timeout&&(r.timeout=t.timeout),t.disableXHRCredentials||(r.withCredentials=!0),r.onreadystatechange=()=>{if(r.readyState===4){var i={statusCode:r.status,text:r.responseText};if(r.status===200)try{i.json=JSON.parse(r.responseText)}catch(o){}t.callback==null||t.callback(i)}},r.send(a)}}),Ur!=null&&Ur.sendBeacon&&gu.push({transport:"sendBeacon",method(t){try{var{url:r,encodedBody:e}=d2(t),n=Ad(r,{beacon:"1"}),{contentType:s,body:a}=e!=null?e:{};if(!a)return;var i=a instanceof Blob?a:new Blob([a],{type:s});Ur.sendBeacon(n,i)}catch(o){}}});var Ah=3e3;class LT{constructor(r,e){this._isPaused=!0,this._queue=[],this._flushTimeoutMs=Hs((e==null?void 0:e.flush_interval_ms)||Ah,250,5e3,Ge.createLogger("flush interval"),Ah),this._sendRequest=r}enqueue(r){this._queue.push(r),this._flushTimeout||this._setFlushTimeout()}unload(){this._clearFlushTimeout();var r=this._queue.length>0?this._formatQueue():{},e=Object.values(r);[...e.filter((n=>n.url.indexOf("/e")===0)),...e.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this._sendRequest(Oe({},n,{transport:"sendBeacon"}))}))}enable(){this._isPaused=!1,this._setFlushTimeout()}_setFlushTimeout(){var r=this;this._isPaused||(this._flushTimeout=setTimeout((()=>{if(this._clearFlushTimeout(),this._queue.length>0){var e=this._formatQueue(),n=function(){var a=e[s],i=new Date().getTime();a.data&&Gt(a.data)&&mn(a.data,(o=>{o.offset=Math.abs(o.timestamp-i),delete o.timestamp})),r._sendRequest(a)};for(var s in e)n()}}),this._flushTimeoutMs))}_clearFlushTimeout(){clearTimeout(this._flushTimeout),this._flushTimeout=void 0}_formatQueue(){var r={};return mn(this._queue,(e=>{var n,s=e,a=(s?s.batchKey:null)||s.url;Ke(r[a])&&(r[a]=Oe({},s,{data:[]})),(n=r[a].data)==null||n.push(s.data)})),this._queue=[],r}}var xT=["retriesPerformedSoFar"];class OT{constructor(r){this._isPolling=!1,this._pollIntervalMs=3e3,this._queue=[],this._instance=r,this._queue=[],this._areWeOnline=!0,!Ke(le)&&"onLine"in le.navigator&&(this._areWeOnline=le.navigator.onLine,this._onlineListener=()=>{this._areWeOnline=!0,this._flush()},this._offlineListener=()=>{this._areWeOnline=!1},xn(le,"online",this._onlineListener),xn(le,"offline",this._offlineListener))}get length(){return this._queue.length}retriableRequest(r){var{retriesPerformedSoFar:e}=r,n=f4(r,xT);uo(e)&&(n.url=Ad(n.url,{retry_count:e})),this._instance._send_request(Oe({},n,{callback:s=>{s.statusCode===200||s.statusCode>=400&&500>s.statusCode||(e!=null?e:0)>=10?n.callback==null||n.callback(s):this._enqueue(Oe({retriesPerformedSoFar:e},n))}}))}_enqueue(r){var e=r.retriesPerformedSoFar||0;r.retriesPerformedSoFar=e+1;var n=(function(i){var o=3e3*Math.pow(2,i),l=o/2,d=Math.min(18e5,o),u=Math.random()-.5;return Math.ceil(d+u*(d-l))})(e),s=Date.now()+n;this._queue.push({retryAt:s,requestOptions:r});var a="Enqueued failed request for retry in "+n;navigator.onLine||(a+=" (Browser is offline)"),Ge.warn(a),this._isPolling||(this._isPolling=!0,this._poll())}_poll(){if(this._poller&&clearTimeout(this._poller),this._queue.length===0)return this._isPolling=!1,void(this._poller=void 0);this._poller=setTimeout((()=>{this._areWeOnline&&this._queue.length>0&&this._flush(),this._poll()}),this._pollIntervalMs)}_flush(){var r=Date.now(),e=[],n=this._queue.filter((a=>r>a.retryAt||(e.push(a),!1)));if(this._queue=e,n.length>0)for(var{requestOptions:s}of n)this.retriableRequest(s)}unload(){for(var{requestOptions:r}of(this._poller&&(clearTimeout(this._poller),this._poller=void 0),this._isPolling=!1,Ke(le)||(this._onlineListener&&(le.removeEventListener("online",this._onlineListener),this._onlineListener=void 0),this._offlineListener&&(le.removeEventListener("offline",this._offlineListener),this._offlineListener=void 0)),this._queue))try{this._instance._send_request(Oe({},r,{transport:"sendBeacon"}))}catch(e){Ge.error(e)}this._queue=[]}}class FT{constructor(r){this._updateScrollData=()=>{var e,n,s,a;this._context||(this._context={});var i=this.scrollElement(),o=this.scrollY(),l=i?Math.max(0,i.scrollHeight-i.clientHeight):0,d=o+((i==null?void 0:i.clientHeight)||0),u=(i==null?void 0:i.scrollHeight)||0;this._context.lastScrollY=Math.ceil(o),this._context.maxScrollY=Math.max(o,(e=this._context.maxScrollY)!==null&&e!==void 0?e:0),this._context.maxScrollHeight=Math.max(l,(n=this._context.maxScrollHeight)!==null&&n!==void 0?n:0),this._context.lastContentY=d,this._context.maxContentY=Math.max(d,(s=this._context.maxContentY)!==null&&s!==void 0?s:0),this._context.maxContentHeight=Math.max(u,(a=this._context.maxContentHeight)!==null&&a!==void 0?a:0)},this._instance=r}get _scrollRoot(){return this._instance.config.scroll_root_selector}getContext(){return this._context}resetContext(){var r=this._context;return setTimeout(this._updateScrollData,0),r}startMeasuringScrollPosition(){xn(le,"scroll",this._updateScrollData,{capture:!0}),xn(le,"scrollend",this._updateScrollData,{capture:!0}),xn(le,"resize",this._updateScrollData)}scrollElement(){if(!this._scrollRoot)return le==null?void 0:le.document.documentElement;var r=Gt(this._scrollRoot)?this._scrollRoot:[this._scrollRoot];for(var e of r){var n=le==null?void 0:le.document.querySelector(e);if(n)return n}}scrollY(){if(this._scrollRoot){var r=this.scrollElement();return r&&r.scrollTop||0}return le&&(le.scrollY||le.pageYOffset||le.document.documentElement.scrollTop)||0}scrollX(){if(this._scrollRoot){var r=this.scrollElement();return r&&r.scrollLeft||0}return le&&(le.scrollX||le.pageXOffset||le.document.documentElement.scrollLeft)||0}}var DT=t=>s8(t==null?void 0:t.config.mask_personal_data_properties,t==null?void 0:t.config.custom_personal_data_properties);class $_{constructor(r,e,n,s){this._onSessionIdCallback=a=>{var i=this._getStored();if(!i||i.sessionId!==a){var o={sessionId:a,props:this._sessionSourceParamGenerator(this._instance)};this._persistence.register({[dh]:o})}},this._instance=r,this._sessionIdManager=e,this._persistence=n,this._sessionSourceParamGenerator=s||DT,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}_getStored(){return this._persistence.props[dh]}getSetOnceProps(){var r,e=(r=this._getStored())==null?void 0:r.props;return e?"r"in e?a8(e):{$referring_domain:e.referringDomain,$pathname:e.initialPathName,utm_source:e.utm_source,utm_campaign:e.utm_campaign,utm_medium:e.utm_medium,utm_content:e.utm_content,utm_term:e.utm_term}:{}}getSessionProps(){var r={};return mn(Am(this.getSetOnceProps()),((e,n)=>{n==="$current_url"&&(n="url"),r["$session_entry_"+bh(n)]=e})),r}}class Pm{constructor(){this._events={}}on(r,e){return this._events[r]||(this._events[r]=[]),this._events[r].push(e),()=>{this._events[r]=this._events[r].filter((n=>n!==e))}}emit(r,e){for(var n of this._events[r]||[])n(e);for(var s of this._events["*"]||[])s(r,e)}}var h2=En("[SessionId]");class I_{on(r,e){return this._eventEmitter.on(r,e)}constructor(r,e,n){var s;if(this._sessionIdChangedHandlers=[],this._beforeUnloadListener=void 0,this._eventEmitter=new Pm,this._sessionHasBeenIdleTooLong=(d,u)=>!(!uo(d)||!uo(u))&&Math.abs(d-u)>this.sessionTimeoutMs,!r.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(r.config.cookieless_mode===_a)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this._config=r.config,this._persistence=r.persistence,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=e||Ba,this._windowIdGenerator=n||Ba;var a=this._config.persistence_name||this._config.token;if(this._sessionTimeoutMs=1e3*Hs(this._config.session_idle_timeout_seconds||1800,60,36e3,h2.createLogger("session_idle_timeout_seconds"),1800),r.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this._resetIdleTimer(),this._window_id_storage_key="ph_"+a+"_window_id",this._primary_window_exists_storage_key="ph_"+a+"_primary_window_exists",this._canUseSessionStorage()){var i=tr._parse(this._window_id_storage_key),o=tr._parse(this._primary_window_exists_storage_key);i&&!o?this._windowId=i:tr._remove(this._window_id_storage_key),tr._set(this._primary_window_exists_storage_key,!0)}if((s=this._config.bootstrap)!=null&&s.sessionID)try{var l=(d=>{var u=this._config.bootstrap.sessionID.replace(/-/g,"");if(u.length!==32)throw new Error("Not a valid UUID");if(u[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(u.substring(0,12),16)})();this._setSessionId(this._config.bootstrap.sessionID,new Date().getTime(),l)}catch(d){h2.error("Invalid sessionID in bootstrap",d)}this._listenToReloadWindow()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(r){return Ke(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(r),this._sessionId&&r(this._sessionId,this._windowId),()=>{this._sessionIdChangedHandlers=this._sessionIdChangedHandlers.filter((e=>e!==r))}}_canUseSessionStorage(){return this._config.persistence!=="memory"&&!this._persistence._disabled&&tr._is_supported()}_setWindowId(r){r!==this._windowId&&(this._windowId=r,this._canUseSessionStorage()&&tr._set(this._window_id_storage_key,r))}_getWindowId(){return this._windowId?this._windowId:this._canUseSessionStorage()?tr._parse(this._window_id_storage_key):null}_setSessionId(r,e,n){r===this._sessionId&&e===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=e,this._sessionId=r,this._persistence.register({[Pu]:[e,r,n]}))}_getSessionId(){var r=this._persistence.props[Pu];return Gt(r)&&r.length===2&&r.push(r[0]),r||[0,null,0]}resetSessionId(){this._setSessionId(null,null,null)}destroy(){clearTimeout(this._enforceIdleTimeout),this._enforceIdleTimeout=void 0,this._beforeUnloadListener&&le&&(le.removeEventListener(Ou,this._beforeUnloadListener,{capture:!1}),this._beforeUnloadListener=void 0),this._sessionIdChangedHandlers=[]}_listenToReloadWindow(){this._beforeUnloadListener=()=>{this._canUseSessionStorage()&&tr._remove(this._primary_window_exists_storage_key)},xn(le,Ou,this._beforeUnloadListener,{capture:!1})}checkAndGetSessionAndWindowId(r,e){if(r===void 0&&(r=!1),e===void 0&&(e=null),this._config.cookieless_mode===_a)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=e||new Date().getTime(),[s,a,i]=this._getSessionId(),o=this._getWindowId(),l=uo(i)&&Math.abs(n-i)>864e5,d=!1,u=!a,g=!u&&!r&&this._sessionHasBeenIdleTooLong(n,s);u||g||l?(a=this._sessionIdGenerator(),o=this._windowIdGenerator(),h2.info("new session ID generated",{sessionId:a,windowId:o,changeReason:{noSessionId:u,activityTimeout:g,sessionPastMaximumLength:l}}),i=n,d=!0):o||(o=this._windowIdGenerator(),d=!0);var y=uo(s)&&r&&!l?s:n,w=uo(i)?i:new Date().getTime();return this._setWindowId(o),this._setSessionId(a,y,w),r||this._resetIdleTimer(),d&&this._sessionIdChangedHandlers.forEach((k=>k(a,o,d?{noSessionId:u,activityTimeout:g,sessionPastMaximumLength:l}:void 0))),{sessionId:a,windowId:o,sessionStartTimestamp:w,changeReason:d?{noSessionId:u,activityTimeout:g,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:s}}_resetIdleTimer(){clearTimeout(this._enforceIdleTimeout),this._enforceIdleTimeout=setTimeout((()=>{var[r]=this._getSessionId();if(this._sessionHasBeenIdleTooLong(new Date().getTime(),r)){var e=this._sessionId;this.resetSessionId(),this._eventEmitter.emit("forcedIdleReset",{idleSessionId:e})}}),1.1*this.sessionTimeoutMs)}}var p8=function(t,r){if(!t)return!1;var e=t.userAgent;if(e&&o_(e,r))return!0;try{var n=t==null?void 0:t.userAgentData;if(n!=null&&n.brands&&n.brands.some((s=>o_(s==null?void 0:s.brand,r))))return!0}catch(s){}return!!t.webdriver},Zu=function(t,r){if(!(function(e){try{new RegExp(e)}catch(n){return!1}return!0})(r))return!1;try{return new RegExp(r).test(t)}catch(e){return!1}};function A_(t,r,e){return fo({distinct_id:t,userPropertiesToSet:r,userPropertiesToSetOnce:e})}var f8={exact:(t,r)=>r.some((e=>t.some((n=>e===n)))),is_not:(t,r)=>r.every((e=>t.every((n=>e!==n)))),regex:(t,r)=>r.some((e=>t.some((n=>Zu(e,n))))),not_regex:(t,r)=>r.every((e=>t.every((n=>!Zu(e,n))))),icontains:(t,r)=>r.map(ru).some((e=>t.map(ru).some((n=>e.includes(n))))),not_icontains:(t,r)=>r.map(ru).every((e=>t.map(ru).every((n=>!e.includes(n))))),gt:(t,r)=>r.some((e=>{var n=parseFloat(e);return!isNaN(n)&&t.some((s=>n>parseFloat(s)))})),lt:(t,r)=>r.some((e=>{var n=parseFloat(e);return!isNaN(n)&&t.some((s=>nt.toLowerCase();function _8(t,r){return!t||Object.entries(t).every((e=>{var[n,s]=e,a=r==null?void 0:r[n];if(Ke(a)||$a(a))return!1;var i=[String(a)],o=f8[s.operator];return!!o&&o(s.values,i)}))}var zh="custom",z_="i.posthog.com",VT=/^\/static\//;class BT{constructor(r){this._regionCache={},this.instance=r}get apiHost(){var r=this.instance.config.api_host.trim().replace(/\/$/,"");return r==="https://app.posthog.com"?"https://us.i.posthog.com":r}get flagsApiHost(){var r=this.instance.config.flags_api_host;return r?r.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var r,e=(r=this.instance.config.ui_host)==null?void 0:r.replace(/\/$/,"");return e||(e=this.apiHost.replace("."+z_,".posthog.com")),e==="https://app.posthog.com"?"https://us.posthog.com":e}get region(){return this._regionCache[this.apiHost]||(this._regionCache[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":zh),this._regionCache[this.apiHost]}_staticAssetHostOverride(r){var e=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof e=="string"&&VT.test(r))return e.trim().replace(/\/$/,"")||void 0}endpointFor(r,e){if(e===void 0&&(e=""),e&&(e=e[0]==="/"?e:"/"+e),r==="ui")return this.uiHost+e;if(r==="flags")return this.flagsApiHost+e;if(r==="assets"){var n=this._staticAssetHostOverride(e);if(n)return""+n+e}if(this.region===zh)return this.apiHost+e;var s=z_+e;switch(r){case"assets":return"https://"+this.region+"-assets."+s;case"api":return"https://"+this.region+"."+s}}}var nn=En("[Surveys]"),Rh="seenSurvey_",UT=[o2.Popover,o2.Widget,o2.API],HT={ignoreConditions:!1,ignoreDelay:!1,displayType:Eh.Popover},qT=En("[PostHog ExternalIntegrations]"),WT={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class GT{constructor(r){this._instance=r}_loadScript(r,e){var n;(n=St.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,r,(s=>{if(s)return qT.error("failed to load script",s);e()}))}startIfEnabledOrStop(){var r=this,e=function(i){var o,l,d;!s||(o=St.__PosthogExtensions__)!=null&&(o=o.integrations)!=null&&o[i]||r._loadScript(WT[i],(()=>{var u;(u=St.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[i])==null||u.start(r._instance)})),!s&&(l=St.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[i]&&((d=St.__PosthogExtensions__)==null||(d=d.integrations)==null||(d=d[i])==null||d.stop())};for(var[n,s]of Object.entries((a=this._instance.config.integrations)!==null&&a!==void 0?a:{})){var a;e(n)}}}var ro,Bl={},m2=0,Ph=()=>{},R_='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',_l="Surveys module not available",P_="sanitize_properties is deprecated. Use before_send instead",g8="Invalid value for property_denylist config: ",ho="posthog",v8=!PT&&(Rr==null?void 0:Rr.indexOf("MSIE"))===-1&&(Rr==null?void 0:Rr.indexOf("Mozilla"))===-1,N_=t=>{var r;return Oe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:lT(tt==null?void 0:tt.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:Ph,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t!=null?t:"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:er&&wn(er==null?void 0:er.search)&&er.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(le==null||(r=le.location)==null?void 0:r.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(e){Ge.error("Bad HTTP status: "+e.statusCode+" "+e.text)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:fh,before_send:void 0,request_queue_config:{flush_interval_ms:Ah},error_tracking:{},_onCapture:Ph,__preview_eager_load_replay:!1},(e=>({rageclick:!e||"2025-11-30">e||{content_ignorelist:!0},capture_pageview:!e||"2025-05-24">e||"history_change",session_recording:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},jT=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],M_=t=>{var r={};for(var[e,n]of jT)Ke(t[e])||(r[n]=t[e]);var s=$n({},r,t);return Gt(t.property_blacklist)&&(Ke(t.property_denylist)?s.property_denylist=t.property_blacklist:Gt(t.property_denylist)?s.property_denylist=[...t.property_blacklist,...t.property_denylist]:Ge.error(g8+t.property_denylist)),s};class ZT{constructor(){this.__forceAllowLocalhost=!1}get _forceAllowLocalhost(){return this.__forceAllowLocalhost}set _forceAllowLocalhost(r){Ge.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=r}}class ns{_replaceExtension(r,e){if(r){var n=this._extensions.indexOf(r);n!==-1&&this._extensions.splice(n,1)}return this._extensions.push(e),e.initialize==null||e.initialize(),e}_inCookielessMode(){return this.config.cookieless_mode===_a||this.config.cookieless_mode===Ei&&this.consent.isRejected()}get decideEndpointWasHit(){var r,e;return(r=(e=this.featureFlags)==null?void 0:e.hasLoadedFlags)!==null&&r!==void 0&&r}get flagsEndpointWasHit(){var r,e;return(r=(e=this.featureFlags)==null?void 0:e.hasLoadedFlags)!==null&&r!==void 0&&r}constructor(){var r;this.webPerformance=new ZT,this._personProcessingSetOncePropertiesSent=!1,this.version=Cr.LIB_VERSION,this._internalEventEmitter=new Pm,this._extensions=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=N_(),this.SentryIntegration=vT,this.sentryIntegration=n=>(function(s,a){var i=X4(s,a);return{name:J4,processEvent:o=>i(o)}})(this,n),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this._initialPageviewCaptured=!1,this._visibilityStateListener=null,this._initialPersonProfilesConfig=null,this._cachedPersonProperties=null,this.scrollManager=new FT(this),this.pageViewManager=new g_(this),this.rateLimiter=new TT(this),this.requestRouter=new BT(this),this.consent=new fT(this),this.externalIntegrations=new GT(this);var e=(r=ns.__defaultExtensionClasses)!==null&&r!==void 0?r:{};this.featureFlags=e.featureFlags&&new e.featureFlags(this),this.toolbar=e.toolbar&&new e.toolbar(this),this.surveys=e.surveys&&new e.surveys(this),this.conversations=e.conversations&&new e.conversations(this),this.logs=e.logs&&new e.logs(this),this.experiments=e.experiments&&new e.experiments(this),this.exceptions=e.exceptions&&new e.exceptions(this),this.people={set:(n,s,a)=>{var i=wn(n)?{[n]:s}:n;this.setPersonProperties(i),a==null||a({})},set_once:(n,s,a)=>{var i=wn(n)?{[n]:s}:n;this.setPersonProperties(void 0,i),a==null||a({})}},this.on("eventCaptured",(n=>Ge.info('send "'+(n==null?void 0:n.event)+'"',n)))}init(r,e,n){if(n&&n!==ho){var s,a=(s=Bl[n])!==null&&s!==void 0?s:new ns;return a._init(r,e,n),Bl[n]=a,Bl[ho][n]=a,a}return this._init(r,e,n)}_init(r,e,n){var s,a;if(e===void 0&&(e={}),Ke(r)||pu(r))return Ge.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},e.debug=this._checkLocalStorageForDebug(e.debug),this._originalUserConfig=e,this._triggered_notifs=[],e.person_profiles?this._initialPersonProfilesConfig=e.person_profiles:e.process_person&&(this._initialPersonProfilesConfig=e.process_person),this.set_config($n({},N_(e.defaults),M_(e),{name:n,token:r})),this.config.on_xhr_error&&Ge.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=e.disable_compression?void 0:Fs.GZipJS;var i=this._is_persistence_disabled();this.persistence=new i2(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new i2(Oe({},this.config,{persistence:"sessionStorage"}),i);var o=Oe({},this.persistence.props),l=Oe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this._requestQueue=new LT((R=>this._send_retriable_request(R)),this.config.request_queue_config),this._retryQueue=new OT(this),this.__request_queue=[];var d=this._inCookielessMode();if(d||(this.sessionManager=new I_(this),this.sessionPropsManager=new $_(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ge.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this._initExtensions(d)}),0)):(Ge.info("Initializing extensions synchronously"),this._initExtensions(d)),Cr.DEBUG=Cr.DEBUG||this.config.debug,Cr.DEBUG&&Ge.info("Starting in debug mode",{this:this,config:e,thisC:Oe({},this.config),p:o,s:l}),!this.config.identity_distinct_id||(s=e.bootstrap)!=null&&s.distinctID||(e.bootstrap=Oe({},e.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((a=e.bootstrap)==null?void 0:a.distinctID)!==void 0){var u=e.bootstrap.distinctID,g=this.get_distinct_id(),y=this.persistence.get_property(_s);if(e.bootstrap.isIdentifiedID&&g!=null&&g!==u&&y===eo)this.identify(u);else if(e.bootstrap.isIdentifiedID&&g!=null&&g!==u&&y===to)Ge.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var w=this.config.get_device_id(Ba()),k=e.bootstrap.isIdentifiedID?w:u;this.persistence.set_property(_s,e.bootstrap.isIdentifiedID?to:eo),this.register({distinct_id:u,$device_id:k})}}if(d)this.register_once({distinct_id:Yc,$device_id:null},"");else if(!this.get_distinct_id()){var E=this.config.get_device_id(Ba());this.register_once({distinct_id:E,$device_id:E},""),this.persistence.set_property(_s,eo)}return xn(le,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),e.segment?(function(R,O){var M=R.config.segment;if(!M)return O();(function(x,N){var A=x.config.segment;if(!A)return N();var V=S=>{var z=()=>S.anonymousId()||Ba();x.config.get_device_id=z,S.id()&&(x.register({distinct_id:S.id(),$device_id:z()}),x.persistence.set_property(_s,to)),N()},F=A.user();"then"in F&&ha(F.then)?F.then(V):V(F)})(R,(()=>{M.register((x=>{Promise&&Promise.resolve||a2.warn("This browser does not have Promise support, and can not use the segment integration");var N=(A,V)=>{if(!V)return A;A.event.userId||A.event.anonymousId===x.get_distinct_id()||(a2.info("No userId set, resetting PostHog"),x.reset()),A.event.userId&&A.event.userId!==x.get_distinct_id()&&(a2.info("UserId set, identifying with PostHog"),x.identify(A.event.userId));var F=x.calculateEventProperties(V,A.event.properties);return A.event.properties=Object.assign({},F,A.event.properties),A};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:A=>N(A,A.event.event),page:A=>N(A,co),identify:A=>N(A,X0),screen:A=>N(A,"$screen")}})(R)).then((()=>{O()}))}))})(this,(()=>this._loaded())):this._loaded(),ha(this.config._onCapture)&&this.config._onCapture!==Ph&&(Ge.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(R=>this.config._onCapture(R.event,R)))),this.config.ip&&Ge.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}_initExtensions(r){var e,n,s,a,i,o,l,d=performance.now(),u=Oe({},ns.__defaultExtensionClasses,this.config.__extensionClasses),g=[];u.featureFlags&&this._extensions.push(this.featureFlags=(e=this.featureFlags)!==null&&e!==void 0?e:new u.featureFlags(this)),u.exceptions&&this._extensions.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new u.exceptions(this)),u.historyAutocapture&&this._extensions.push(this.historyAutocapture=new u.historyAutocapture(this)),u.tracingHeaders&&this._extensions.push(new u.tracingHeaders(this)),u.siteApps&&this._extensions.push(this.siteApps=new u.siteApps(this)),u.sessionRecording&&!r&&this._extensions.push(this.sessionRecording=new u.sessionRecording(this)),this.config.disable_scroll_properties||g.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),u.autocapture&&this._extensions.push(this.autocapture=new u.autocapture(this)),u.surveys&&this._extensions.push(this.surveys=(s=this.surveys)!==null&&s!==void 0?s:new u.surveys(this)),u.logs&&this._extensions.push(this.logs=(a=this.logs)!==null&&a!==void 0?a:new u.logs(this)),u.conversations&&this._extensions.push(this.conversations=(i=this.conversations)!==null&&i!==void 0?i:new u.conversations(this)),u.productTours&&this._extensions.push(this.productTours=new u.productTours(this)),u.heatmaps&&this._extensions.push(this.heatmaps=new u.heatmaps(this)),u.webVitalsAutocapture&&this._extensions.push(this.webVitalsAutocapture=new u.webVitalsAutocapture(this)),u.exceptionObserver&&this._extensions.push(this.exceptionObserver=new u.exceptionObserver(this)),u.deadClicksAutocapture&&this._extensions.push(this.deadClicksAutocapture=new u.deadClicksAutocapture(this,gT)),u.toolbar&&this._extensions.push(this.toolbar=(o=this.toolbar)!==null&&o!==void 0?o:new u.toolbar(this)),u.experiments&&this._extensions.push(this.experiments=(l=this.experiments)!==null&&l!==void 0?l:new u.experiments(this)),this._extensions.forEach((y=>{y.initialize&&g.push((()=>{y.initialize==null||y.initialize()}))})),g.push((()=>{if(this._pendingRemoteConfig){var y=this._pendingRemoteConfig;this._pendingRemoteConfig=void 0,this._onRemoteConfig(y)}})),this._processInitTaskQueue(g,d)}_processInitTaskQueue(r,e){for(;r.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-e>=30&&r.length>0)return void setTimeout((()=>{this._processInitTaskQueue(r,e)}),0);var n=r.shift();if(n)try{n()}catch(a){Ge.error("Error initializing extension:",a)}}var s=Math.round(performance.now()-e);this.register_for_session({[w4]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[k4]:s}),this.config.__preview_deferred_init_extensions&&Ge.info("PostHog extensions initialized ("+s+"ms)")}_onRemoteConfig(r){var e;if(!tt||!tt.body)return Ge.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this._onRemoteConfig(r)}),500);this.config.__preview_deferred_init_extensions&&(this._pendingRemoteConfig=r),this._lastRemoteConfig=r,this.compression=void 0,r.supportedCompression&&!this.config.disable_compression&&(this.compression=Dt(r.supportedCompression,Fs.GZipJS)?Fs.GZipJS:Dt(r.supportedCompression,Fs.Base64)?Fs.Base64:void 0),(e=r.analytics)!=null&&e.endpoint&&(this.analyticsDefaultEndpoint=r.analytics.endpoint),this.set_config({person_profiles:this._initialPersonProfilesConfig?this._initialPersonProfilesConfig:fh}),this._extensions.forEach((n=>n.onRemoteConfig==null?void 0:n.onRemoteConfig(r)))}_loaded(){try{this.config.loaded(this)}catch(n){Ge.critical("`loaded` function failed",n)}if(this._start_queue_if_opted_in(),this.config.internal_or_test_user_hostname&&er!=null&&er.hostname){var r=er.hostname,e=this.config.internal_or_test_user_hostname;(typeof e=="string"?r===e:e.test(r))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this._inCookielessMode())&&this._captureInitialPageview()}),1),this._remoteConfigLoader=new o8(this),this._remoteConfigLoader.load()}_start_queue_if_opted_in(){var r;this.is_capturing()&&this.config.request_batching&&((r=this._requestQueue)==null||r.enable())}_dom_loaded(){this.is_capturing()&&Xc(this.__request_queue,(r=>this._send_retriable_request(r))),this.__request_queue=[],this._start_queue_if_opted_in()}_handle_unload(){var r,e,n,s;(r=this.surveys)==null||r.handlePageUnload(),this.config.request_batching?(this._shouldCapturePageleave()&&this.capture(J0),(e=this.logs)==null||e.flushLogs("sendBeacon"),(n=this._requestQueue)==null||n.unload(),(s=this._retryQueue)==null||s.unload()):this._shouldCapturePageleave()&&this.capture(J0,null,{transport:"sendBeacon"})}_send_request(r){this.__loaded&&(v8?this.__request_queue.push(r):this.rateLimiter.isServerRateLimited(r.batchKey)||(r.transport=r.transport||this.config.api_transport,r.url=Ad(r.url,{ip:this.config.ip?1:0}),r.headers=Oe({},this.config.request_headers,r.headers),r.compression=r.compression==="best-available"?this.compression:r.compression,r.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(r.disableTransport=["sendBeacon"]),r.fetchOptions=r.fetchOptions||this.config.fetch_options,(e=>{var n,s,a,i=Oe({},e);i.timeout=i.timeout||6e4,i.url=T_(i.url,i.compression);var o=(n=i.transport)!==null&&n!==void 0?n:"fetch",l=gu.filter((u=>!i.disableTransport||!u.transport||!i.disableTransport.includes(u.transport))),d=(s=(a=(function(u,g){for(var y=0;u.length>y;y++)if(u[y].transport===o)return u[y]})(l))==null?void 0:a.method)!==null&&s!==void 0?s:l[0].method;if(!d)throw new Error("No available transport method");o!=="sendBeacon"&&i.data&&i.compression===Fs.GZipJS&&vE&&!_u?MT(i).then((u=>{d(u)})).catch((u=>{if(i_(u))return _u=!0,void d(Oe({},i,{compression:void 0,url:T_(e.url,void 0)}));(g=>{if(!g||typeof g!="object")return!1;var y="name"in g?String(g.name):"";return i_(g)||y===E4})(u)&&(_u=!0),d(i)})):d(i)})(Oe({},r,{callback:e=>{var n,s;this.rateLimiter.checkForLimiting(e),400>e.statusCode||(n=(s=this.config).on_request_error)==null||n.call(s,e),r.callback==null||r.callback(e)}}))))}_send_retriable_request(r){this._retryQueue?this._retryQueue.retriableRequest(r):this._send_request(r)}_execute_array(r){m2++;try{var e,n=[],s=[],a=[];Xc(r,(o=>{if(o)if(Gt(e=o[0]))a.push(o);else if(ha(o))try{o.call(this)}catch(l){Ge.error("Error executing queued PostHog call",o,l)}else Gt(o)&&e==="alias"?n.push(o):Gt(o)&&e.indexOf("capture")!==-1&&ha(this[e])?a.push(o):s.push(o)}));var i=function(o,l){Xc(o,(function(d){try{if(Gt(d[0])){var u=l;mn(d,(function(g){u=u[g[0]].apply(u,g.slice(1))}))}else l[d[0]].apply(l,d.slice(1))}catch(g){Ge.error("Error executing queued PostHog call",d,g)}}))};i(n,this),i(s,this),i(a,this)}finally{m2--}}push(r){if(m2>0&&Gt(r)&&wn(r[0])){var e=ns.prototype[r[0]];ha(e)&&e.apply(this,r.slice(1))}else this._execute_array([r])}capture(r,e,n){var s,a,i,o,l;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue){if(this.is_capturing())if(!Ke(r)&&wn(r)){var d=!this.config.opt_out_useragent_filter&&this._is_bot();if(!d||this.config.__preview_capture_bot_pageviews){var u=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(u==null||!u.isRateLimited){e!=null&&e.$current_url&&!wn(e==null?void 0:e.$current_url)&&(Ge.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),e==null||delete e.$current_url),r!=="$exception"||n!=null&&n._originatedFromCaptureException||Ge.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var g=new Date,y=(n==null?void 0:n.timestamp)||g,w=(n==null?void 0:n.uuid)||Ba(),k={uuid:w,event:r,properties:this.calculateEventProperties(r,e||{},y,w)};r===co&&this.config.__preview_capture_bot_pageviews&&d&&(k.event="$bot_pageview",k.properties.$browser_type="bot"),u&&(k.properties.$lib_rate_limit_remaining_tokens=u.remainingTokens),n!=null&&n.$set&&(k.$set=n==null?void 0:n.$set);var E,R,O,M=this._calculate_set_once_properties(n==null?void 0:n.$set_once,r!==r_,r===X0);if(M&&(k.$set_once=M),n!=null&&n._noTruncate||(a=this.config.properties_string_max_length,i=k,o=z=>wn(z)?z.slice(0,a):z,l=new Set,k=(function z(U,j){return U!==Object(U)?o?o(U):U:l.has(U)?void 0:(l.add(U),Gt(U)?(J=[],Xc(U,(de=>{J.push(z(de))}))):(J={},mn(U,((de,Ae)=>{l.has(de)||(J[Ae]=z(de))}))),J);var J})(i)),k.timestamp=y,Ke(n==null?void 0:n.timestamp)||(k.properties.$event_time_override_provided=!0,k.properties.$event_time_override_system_time=g),r===zl.DISMISSED||r===zl.SENT){var x=e==null?void 0:e[l2.SURVEY_ID],N=e==null?void 0:e[l2.SURVEY_ITERATION];(z=>{try{var U=(j=>((J,de)=>{var Ae=""+Rh+de.id;return de.current_iteration&&de.current_iteration>0&&(Ae=""+Rh+de.id+"_"+de.current_iteration),Ae})(0,j))(z);if(localStorage.getItem(U))return;localStorage.setItem(U,"true")}catch(j){nn.error("Failed to persist survey seen state",j)}})({id:x,current_iteration:N}),k.$set=Oe({},k.$set,{[(E={id:x,current_iteration:N},R=r===zl.SENT?"responded":"dismissed",O="$survey_"+R+"/"+E.id,E.current_iteration&&E.current_iteration>0&&(O="$survey_"+R+"/"+E.id+"/"+E.current_iteration),O)]:!0})}else r===zl.SHOWN&&(k.$set=Oe({},k.$set,{[l2.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(r===ET.SHOWN){var A=e==null?void 0:e[y_.TOUR_TYPE];A&&(k.$set=Oe({},k.$set,{[y_.TOUR_LAST_SEEN_DATE+"/"+A]:new Date().toISOString()}))}var V=Oe({},k.properties.$set,k.$set);if(po(V)||this.setPersonPropertiesForFlags(V),!Vt(this.config.before_send)){var F=this._runBeforeSend(k);if(!F)return;k=F}this._internalEventEmitter.emit("eventCaptured",k);var S={method:"POST",url:(s=n==null?void 0:n._url)!==null&&s!==void 0?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:k,compression:"best-available",batchKey:n==null?void 0:n._batchKey,transport:n==null?void 0:n.transport};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this._send_retriable_request(S):this._requestQueue.enqueue(S),k}Ge.critical("This capture call is ignored due to client rate limiting.")}}else Ge.error("No event name provided to posthog.capture")}else Ge.uninitializedWarning("posthog.capture")}_addCaptureHook(r){return this.on("eventCaptured",(e=>r(e.event,e)))}calculateEventProperties(r,e,n,s,a){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return e;var i=a?void 0:this.persistence.remove_event_timer(r),o=Oe({},e);if(o.token=this.config.token,o.$config_defaults=this.config.defaults,this._inCookielessMode()&&(o.$cookieless_mode=!0),r==="$snapshot"){var l=Oe({},this.persistence.properties(),this.sessionPersistence.properties());return o.distinct_id=l.distinct_id,(!wn(o.distinct_id)&&!os(o.distinct_id)||pu(o.distinct_id))&&Ge.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),o}var d,u=(function(O,M){var x,N,A,V;if(!Rr)return{};var F,S,z,U,j,J,de,Ae,qe=O?[...Po,...M||[]]:[],[Ue,je]=(function(nt){for(var Pt=0;u_.length>Pt;Pt++){var[G,X]=u_[Pt],W=G.exec(nt),Y=W&&(ha(X)?X(W,nt):X);if(Y)return Y}return["",""]})(Rr);return $n(Am({$os:Ue,$os_version:je,$browser:q4(Rr,navigator.vendor),$device:d_(Rr),$device_type:(S=Rr,z={userAgentDataPlatform:(x=navigator)==null||(x=x.userAgentData)==null?void 0:x.platform,maxTouchPoints:(N=navigator)==null?void 0:N.maxTouchPoints,screenWidth:le==null||(A=le.screen)==null?void 0:A.width,screenHeight:le==null||(V=le.screen)==null?void 0:V.height,devicePixelRatio:le==null?void 0:le.devicePixelRatio},Ae=d_(S),Ae===z4||Ae===A4||Ae==="Kobo"||Ae==="Kindle Fire"||Ae===H4?Ao:Ae===ec||Ae===Co||Ae===tc||Ae===wh?"Console":Ae===P4?"Wearable":Ae?Gr:(z==null?void 0:z.userAgentDataPlatform)==="Android"&&((U=z==null?void 0:z.maxTouchPoints)!==null&&U!==void 0?U:0)>0?600>Math.min((j=z==null?void 0:z.screenWidth)!==null&&j!==void 0?j:0,(J=z==null?void 0:z.screenHeight)!==null&&J!==void 0?J:0)/((de=z==null?void 0:z.devicePixelRatio)!==null&&de!==void 0?de:1)?Gr:Ao:"Desktop"),$timezone:i8(),$timezone_offset:kT()}),{$current_url:rc(er==null?void 0:er.href,qe,sc),$host:er==null?void 0:er.host,$pathname:er==null?void 0:er.pathname,$raw_user_agent:Rr.length>1e3?Rr.substring(0,997)+"...":Rr,$browser_version:LE(Rr,navigator.vendor),$browser_language:v_(),$browser_language_prefix:(F=v_(),typeof F=="string"?F.split("-")[0]:void 0),$screen_height:le==null?void 0:le.screen.height,$screen_width:le==null?void 0:le.screen.width,$viewport_height:le==null?void 0:le.innerHeight,$viewport_width:le==null?void 0:le.innerWidth,$lib:Cr.LIB_NAME,$lib_version:Cr.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:g,windowId:y}=this.sessionManager.checkAndGetSessionAndWindowId(a,n.getTime());o.$session_id=g,o.$window_id=y}this.sessionPropsManager&&$n(o,this.sessionPropsManager.getSessionProps());try{var w;this.sessionRecording&&$n(o,this.sessionRecording.sdkDebugProperties),o.$sdk_debug_retry_queue_size=(w=this._retryQueue)==null?void 0:w.length}catch(O){o.$sdk_debug_error_capturing_properties=String(O)}if(this.requestRouter.region===zh&&(o.$lib_custom_api_host=this.config.api_host),d=r!==co||a?r!==J0||a?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,s),o=$n(o,d),r===co&&tt&&(o.title=tt.title),!Ke(i)){var k=n.getTime()-i;o.$duration=parseFloat((k/1e3).toFixed(3))}Rr&&this.config.opt_out_useragent_filter&&(o.$browser_type=this._is_bot()?"bot":"browser"),(o=$n({},u,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),Gt(this.config.property_denylist)?mn(this.config.property_denylist,(function(O){delete o[O]})):Ge.error(g8+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var E=this.config.sanitize_properties;E&&(Ge.error(P_),o=E(o,r));var R=this._hasPersonProcessing();return o.$process_person_profile=R,R&&!a&&this._requirePersonProcessing("_calculate_event_properties"),o}_calculate_set_once_properties(r,e,n){var s;if(e===void 0&&(e=!0),n===void 0&&(n=!1),!this.persistence||!this._hasPersonProcessing()||this._personProcessingSetOncePropertiesSent&&!n)return r;var a=this.persistence.get_initial_props(),i=(s=this.sessionPropsManager)==null?void 0:s.getSetOnceProps(),o=$n({},a,i||{},r||{}),l=this.config.sanitize_properties;return l&&(Ge.error(P_),o=l(o,"$set_once")),e&&(this._personProcessingSetOncePropertiesSent=!0),po(o)?void 0:o}register(r,e){var n;(n=this.persistence)==null||n.register(r,e)}register_once(r,e,n){var s;(s=this.persistence)==null||s.register_once(r,e,n)}register_for_session(r){var e;(e=this.sessionPersistence)==null||e.register(r)}unregister(r){var e;(e=this.persistence)==null||e.unregister(r)}unregister_for_session(r){var e;(e=this.sessionPersistence)==null||e.unregister(r)}_register_single(r,e){this.register({[r]:e})}getFeatureFlag(r,e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlag(r,e)}getFeatureFlagPayload(r){var e;return(e=this.featureFlags)==null?void 0:e.getFeatureFlagPayload(r)}getFeatureFlagResult(r,e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagResult(r,e)}isFeatureEnabled(r,e){var n;return(n=this.featureFlags)==null?void 0:n.isFeatureEnabled(r,e)}reloadFeatureFlags(){var r;(r=this.featureFlags)==null||r.reloadFeatureFlags()}updateFlags(r,e,n){var s;(s=this.featureFlags)==null||s.updateFlags(r,e,n)}updateEarlyAccessFeatureEnrollment(r,e,n){var s;(s=this.featureFlags)==null||s.updateEarlyAccessFeatureEnrollment(r,e,n)}getEarlyAccessFeatures(r,e,n){var s;return e===void 0&&(e=!1),(s=this.featureFlags)==null?void 0:s.getEarlyAccessFeatures(r,e,n)}on(r,e){return this._internalEventEmitter.on(r,e)}onFeatureFlags(r){return this.featureFlags?this.featureFlags.onFeatureFlags(r):(r([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(r){return this.surveys?this.surveys.onSurveysLoaded(r):(r([],{isLoaded:!1,error:_l}),()=>{})}onSessionId(r){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.onSessionId(r))!==null&&e!==void 0?e:()=>{}}getSurveys(r,e){e===void 0&&(e=!1),this.surveys?this.surveys.getSurveys(r,e):r([],{isLoaded:!1,error:_l})}getActiveMatchingSurveys(r,e){e===void 0&&(e=!1),this.surveys?this.surveys.getActiveMatchingSurveys(r,e):r([],{isLoaded:!1,error:_l})}renderSurvey(r,e){var n;(n=this.surveys)==null||n.renderSurvey(r,e)}displaySurvey(r,e){var n;e===void 0&&(e=HT),(n=this.surveys)==null||n.displaySurvey(r,e)}cancelPendingSurvey(r){var e;(e=this.surveys)==null||e.cancelPendingSurvey(r)}canRenderSurvey(r){var e,n;return(e=(n=this.surveys)==null?void 0:n.canRenderSurvey(r))!==null&&e!==void 0?e:{visible:!1,disabledReason:_l}}canRenderSurveyAsync(r,e){var n,s;return e===void 0&&(e=!1),(n=(s=this.surveys)==null?void 0:s.canRenderSurveyAsync(r,e))!==null&&n!==void 0?n:Promise.resolve({visible:!1,disabledReason:_l})}_validateIdentifyId(r){return!r||pu(r)?(Ge.critical("Unique user id has not been set in posthog.identify"),!1):r===Yc?(Ge.critical('The string "'+r+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(r.toLowerCase())&&!["undefined","null"].includes(r.toLowerCase())||(Ge.critical('The string "'+r+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(r,e,n){if(!this.__loaded||!this.persistence)return Ge.uninitializedWarning("posthog.identify");if(os(r)&&(r=r.toString(),Ge.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this._validateIdentifyId(r)&&this._requirePersonProcessing("posthog.identify")){var s=this.get_distinct_id();this.register({$user_id:r}),this.get_property(Ru)||this.register_once({$had_persisted_distinct_id:!0,$device_id:s},""),r!==s&&r!==this.get_property(El)&&(this.unregister(El),this.register({distinct_id:r}));var a,i=(this.persistence.get_property(_s)||eo)===eo;r!==s&&i?(this.persistence.set_property(_s,to),this.setPersonPropertiesForFlags({$set:e||{},$set_once:n||{}},!1),this.capture(X0,{distinct_id:r,$anon_distinct_id:s},{$set:e||{},$set_once:n||{}}),this._cachedPersonProperties=A_(r,e,n),(a=this.featureFlags)==null||a.setAnonymousDistinctId(s)):(e||n)&&this.setPersonProperties(e,n),r!==s&&(this.reloadFeatureFlags(),this.unregister(Fl))}}setPersonProperties(r,e){if((r||e)&&this._requirePersonProcessing("posthog.setPersonProperties")){var n=A_(this.get_distinct_id(),r,e);this._cachedPersonProperties!==n?(this.setPersonPropertiesForFlags({$set:r||{},$set_once:e||{}},!0),this.capture("$set",{$set:r||{},$set_once:e||{}}),this._cachedPersonProperties=n):Ge.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(r,e,n){if(r&&e){var s=this.getGroups(),a=s[r]!==e;if(a&&this.resetGroupPropertiesForFlags(r),this.register({$groups:Oe({},s,{[r]:e})}),a||n){var i={$group_type:r,$group_key:e};n&&(i.$group_set=n),this.capture(r_,i)}n&&this.setGroupPropertiesForFlags({[r]:n}),a&&!n&&this.reloadFeatureFlags()}else Ge.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(r,e){var n;e===void 0&&(e=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(r,e)}resetPersonPropertiesForFlags(){var r;(r=this.featureFlags)==null||r.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(r,e){var n;e===void 0&&(e=!0),this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(r,e))}resetGroupPropertiesForFlags(r){var e;(e=this.featureFlags)==null||e.resetGroupPropertiesForFlags(r)}reset(r){var e,n,s,a,i,o,l,d;if(Ge.info("reset"),!this.__loaded)return Ge.uninitializedWarning("posthog.reset");var u,g=this.get_property(Ru),y=this.get_property(Ii);if(this.consent.reset(),(e=this.persistence)==null||e.clear(),(n=this.sessionPersistence)==null||n.clear(),Ke(y)||(u=this.persistence)==null||u.register({[Ii]:y}),(s=this.surveys)==null||s.reset(),(a=this._remoteConfigLoader)==null||a.stop(),(i=this.featureFlags)==null||i.reset(),(o=this.conversations)==null||o.reset(),(l=this.persistence)==null||l.set_property(_s,eo),(d=this.sessionManager)==null||d.resetSessionId(),this._cachedPersonProperties=null,this.config.cookieless_mode===_a)this.register_once({distinct_id:Yc,$device_id:null},"");else{var w=this.config.get_device_id(Ba());this.register_once({distinct_id:w,$device_id:r?w:g},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(r,e){var n;this.config.identity_distinct_id=r,this.config.identity_hash=e,this.alias(r),(n=this.conversations)==null||n._onIdentityChanged()}clearIdentity(){var r;delete this.config.identity_distinct_id,delete this.config.identity_hash,(r=this.conversations)==null||r._onIdentityCleared()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var r,e;return(r=(e=this.sessionManager)==null?void 0:e.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&r!==void 0?r:""}get_session_replay_url(r){if(!this.sessionManager)return"";var{sessionId:e,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),s=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+e);if(r!=null&&r.withTimestamp&&n){var a,i=(a=r.timestampLookBack)!==null&&a!==void 0?a:10;if(!n)return s;s+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-i,0)}return s}alias(r,e){return r===this.get_property(_4)?(Ge.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(Ke(e)&&(e=this.get_distinct_id()),r!==e?(this._register_single(El,r),this.capture("$create_alias",{alias:r,distinct_id:e})):(Ge.warn("alias matches current distinct_id - skipping api call."),this.identify(r),-1)):void 0}set_config(r){var e=Oe({},this.config);if(Nn(r)){var n,s,a,i,o,l,d,u,g,y;$n(this.config,M_(r));var w=this._is_persistence_disabled();(n=this.persistence)==null||n.update_config(this.config,e,w),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new i2(Oe({},this.config,{persistence:"sessionStorage"}),w);var k=this._checkLocalStorageForDebug(this.config.debug);Us(k)&&(this.config.debug=k),Us(this.config.debug)&&(this.config.debug?(Cr.DEBUG=!0,Cn._is_supported()&&Cn._set("ph_debug",!0),Ge.info("set_config",{config:r,oldConfig:e,newConfig:Oe({},this.config)})):(Cr.DEBUG=!1,Cn._is_supported()&&Cn._remove("ph_debug"))),(s=this.exceptionObserver)==null||s.onConfigChange(),(a=this.exceptions)==null||a.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(o=this.autocapture)==null||o.startIfEnabled(),(l=this.heatmaps)==null||l.startIfEnabled(),(d=this.exceptionObserver)==null||d.startIfEnabledOrStop(),(u=this.deadClicksAutocapture)==null||u.startIfEnabledOrStop(),(g=this.surveys)==null||g.loadIfEnabled(),this._sync_opt_out_with_persistence(),(y=this.externalIntegrations)==null||y.startIfEnabledOrStop()}}_overrideSDKInfo(r,e){Cr.LIB_NAME=r,Cr.LIB_VERSION=e}startSessionRecording(r){var e,n,s,a,i,o=r===!0,l={sampling:o||!(r==null||!r.sampling),linked_flag:o||!(r==null||!r.linked_flag),url_trigger:o||!(r==null||!r.url_trigger),event_trigger:o||!(r==null||!r.event_trigger)};Object.values(l).some(Boolean)&&((e=this.sessionManager)==null||e.checkAndGetSessionAndWindowId(),l.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),l.linked_flag&&((s=this.sessionRecording)==null||s.overrideLinkedFlag()),l.url_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("url")),l.event_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var r;return!((r=this.sessionRecording)==null||!r.started)}captureException(r,e){if(this.exceptions){var n=new Error("PostHog syntheticException"),s=this.exceptions.buildProperties(r,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(Oe({},s,e))}}addExceptionStep(r,e){var n;(n=this.exceptions)==null||n.addExceptionStep(r,e)}captureLog(r){var e;(e=this.logs)==null||e.captureLog(r)}get logger(){var r,e;return(r=(e=this.logs)==null?void 0:e.logger)!==null&&r!==void 0?r:ns._noopLogger}startExceptionAutocapture(r){this.set_config({capture_exceptions:r==null||r})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(r){var e,n;return(e=(n=this.toolbar)==null?void 0:n.loadToolbar(r))!==null&&e!==void 0&&e}get_property(r){var e;return(e=this.persistence)==null?void 0:e.props[r]}getSessionProperty(r){var e;return(e=this.sessionPersistence)==null?void 0:e.props[r]}toString(){var r,e=(r=this.config.name)!==null&&r!==void 0?r:ho;return e!==ho&&(e=ho+"."+e),e}_isIdentified(){var r,e;return((r=this.persistence)==null?void 0:r.get_property(_s))===to||((e=this.sessionPersistence)==null?void 0:e.get_property(_s))===to}_hasPersonProcessing(){var r,e;return!(this.config.person_profiles==="never"||this.config.person_profiles===fh&&!this._isIdentified()&&po(this.getGroups())&&((r=this.persistence)==null||(r=r.props)==null||!r[El])&&((e=this.persistence)==null||(e=e.props)==null||!e[Lu]))}_shouldCapturePageleave(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this._requirePersonProcessing("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}_requirePersonProcessing(r){return this.config.person_profiles==="never"?(Ge.error(r+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(Lu,!0),!0)}_is_persistence_disabled(){if(this.config.cookieless_mode==="always")return!0;var r=this.consent.isOptedOut();return this.config.disable_persistence||r&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Ei)}_sync_opt_out_with_persistence(){var r,e,n,s,a=this._is_persistence_disabled();return((r=this.persistence)==null?void 0:r._disabled)!==a&&((n=this.persistence)==null||n.set_disabled(a)),((e=this.sessionPersistence)==null?void 0:e._disabled)!==a&&((s=this.sessionPersistence)==null||s.set_disabled(a)),a}opt_in_capturing(r){var e;if(this.config.cookieless_mode!==_a){if(this._inCookielessMode()){var n,s,a,i,o;this.reset(!0),(n=this.sessionManager)==null||n.destroy(),(s=this.pageViewManager)==null||s.destroy(),this.sessionManager=new I_(this),this.pageViewManager=new g_(this),this.persistence&&(this.sessionPropsManager=new $_(this,this.sessionManager,this.persistence));var l,d=(a=(i=this.config.__extensionClasses)==null?void 0:i.sessionRecording)!==null&&a!==void 0?a:(o=ns.__defaultExtensionClasses)==null?void 0:o.sessionRecording;d&&(this.sessionRecording=this._replaceExtension(this.sessionRecording,new d(this)),this._lastRemoteConfig&&((l=this.sessionRecording)==null||l.onRemoteConfig==null||l.onRemoteConfig(this._lastRemoteConfig)))}var u,g;this.consent.optInOut(!0),this._sync_opt_out_with_persistence(),this._start_queue_if_opted_in(),(e=this.sessionRecording)==null||e.startIfEnabledOrStop(),this.config.cookieless_mode==Ei&&((u=this.surveys)==null||u.loadIfEnabled()),(Ke(r==null?void 0:r.captureEventName)||r!=null&&r.captureEventName)&&this.capture((g=r==null?void 0:r.captureEventName)!==null&&g!==void 0?g:"$opt_in",r==null?void 0:r.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this._captureInitialPageview()}else Ge.warn(R_)}opt_out_capturing(){var r,e,n;this.config.cookieless_mode!==_a?(this.config.cookieless_mode===Ei&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this._sync_opt_out_with_persistence(),this.config.cookieless_mode===Ei&&(this.register({distinct_id:Yc,$device_id:null}),(r=this.sessionRecording)==null||r.stopRecording(),this.sessionRecording=void 0,(e=this.sessionManager)==null||e.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this._captureInitialPageview())):Ge.warn(R_)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var r=this.consent.consent;return r===1?"granted":r===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===_a||(this.config.cookieless_mode===Ei?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this._sync_opt_out_with_persistence()}_is_bot(){return Ur?p8(Ur,this.config.custom_blocked_useragents):void 0}_captureInitialPageview(){tt&&(tt.visibilityState==="visible"?this._initialPageviewCaptured||(this._initialPageviewCaptured=!0,this.capture(co,{title:tt.title},{send_instantly:!0}),this._visibilityStateListener&&(tt.removeEventListener(xu,this._visibilityStateListener),this._visibilityStateListener=null)):this._visibilityStateListener||(this._visibilityStateListener=this._captureInitialPageview.bind(this),xn(tt,xu,this._visibilityStateListener)))}debug(r){r===!1?(le==null||le.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(le==null||le.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}_shouldDisableFlags(){var r,e,n,s,a,i,o=this._originalUserConfig||{};return"advanced_disable_flags"in o?!!o.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ge.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",s=Ge,a=(e="advanced_disable_flags")in(r=o)&&!Vt(r[e]),i=n in r&&!Vt(r[n]),a?r[e]:!!i&&(s&&s.warn("Config field '"+n+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),r[n]))}_runBeforeSend(r){if(Vt(this.config.before_send))return r;var e=Gt(this.config.before_send)?this.config.before_send:[this.config.before_send],n=r;for(var s of e){if(n=s(n),Vt(n)){var a="Event '"+r.event+"' was rejected in beforeSend function";return kE(r.event)?Ge.warn(a+". This can cause unexpected behavior."):Ge.info(a),null}n.properties&&!po(n.properties)||Ge.warn("Event '"+r.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var r;return(r=this.pageViewManager._currentPageview)==null?void 0:r.pageViewId}captureTraceFeedback(r,e){this.capture("$ai_feedback",{$ai_trace_id:String(r),$ai_feedback_text:e})}captureTraceMetric(r,e,n){this.capture("$ai_metric",{$ai_trace_id:String(r),$ai_metric_name:e,$ai_metric_value:String(n)})}_checkLocalStorageForDebug(r){var e=Us(r)&&!r,n=Cn._is_supported()&&Cn._get("ph_debug")==="true";return!e&&(!!n||r)}}ns.__defaultExtensionClasses={},ns._noopLogger={trace:ro=()=>{},debug:ro,info:ro,warn:ro,error:ro,fatal:ro},(function(t,r){for(var e=0;r.length>e;e++)t.prototype[r[e]]=iT(t.prototype[r[e]])})(ns,["identify"]);var KT=1,YT=3,QT=11;function L_(t){return t instanceof Element&&(t.id===C4||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function xi(t){return!!t&&t.nodeType===KT}function gs(t,r){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===r.toLowerCase()}function y8(t){return!!t&&t.nodeType===YT}function b8(t){return!!t&&t.nodeType===QT&&xi(t.host)}function Nm(t){return t?$d(t).split(/\s+/):[]}function x_(t){var r=le==null?void 0:le.location.href;return!!(r&&t&&t.some((e=>r.match(e))))}function Ku(t){var r="";switch(typeof t.className){case"string":r=t.className;break;case"object":r=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:r=""}return Nm(r)}function C8(t){return Vt(t)?null:$d(t).split(/(\s+)/).filter((r=>Ul(r))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ac(t){var r="";return Mh(t)&&!k8(t)&&t.childNodes&&t.childNodes.length&&mn(t.childNodes,(function(e){var n;y8(e)&&e.textContent&&(r+=(n=C8(e.textContent))!==null&&n!==void 0?n:"")})),$d(r)}function O_(t){return Ke(t.target)?t.srcElement||null:(r=t.target)!=null&&r.shadowRoot?t.composedPath()[0]||null:t.target||null;var r}var Mm=["a","button","form","input","select","textarea","label"];function F_(t,r){if(Ke(r))return!0;var e,n=function(a){if(r.some((i=>a.matches(i))))return{v:!0}};for(var s of t)if(e=n(s))return e.v;return!1}function w8(t){var r=t.parentNode;return!(!r||!xi(r))&&r}var JT=["next","previous","prev",">","<"],D_=[".ph-no-rageclick",".ph-no-capture"],Nh=t=>!t||gs(t,"html")||!xi(t),V_=(t,r)=>{if(!le||Nh(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var e=!1,n=[t],s=t;s.parentNode&&!gs(s,"body");)if(b8(s.parentNode))n.push(s.parentNode.host),s=s.parentNode.host;else{var a=w8(s);if(!a)break;if(r||Mm.indexOf(a.tagName.toLowerCase())>-1)e=!0;else{var i=le.getComputedStyle(a);i&&i.getPropertyValue("cursor")==="pointer"&&(e=!0)}n.push(a),s=a}return{parentIsUsefulElement:e,targetElementList:n}};function Mh(t){for(var r=t;r.parentNode&&!gs(r,"body");r=r.parentNode){var e=Ku(r);if(Dt(e,"ph-sensitive")||Dt(e,"ph-no-capture"))return!1}if(Dt(Ku(t),"ph-include"))return!0;var n=t.type||"";if(wn(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var s=t.name||t.id||"";return!wn(s)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,""))}function k8(t){return!!(gs(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||gs(t,"select")||gs(t,"textarea")||t.getAttribute("contenteditable")==="true")}var S8="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",XT=new RegExp("^(?:"+S8+")$"),e$=new RegExp(S8),E8="\\d{3}-?\\d{2}-?\\d{4}",t$=new RegExp("^("+E8+")$"),n$=new RegExp("("+E8+")");function Ul(t,r){return r===void 0&&(r=!0),!(Vt(t)||wn(t)&&(t=$d(t),(r?XT:e$).test((t||"").replace(/[- ]/g,""))||(r?t$:n$).test(t)))}function B_(t){var r=ac(t);return Ul(r=(r+" "+T8(t)).trim())?r:""}function T8(t){var r="";return t&&t.childNodes&&t.childNodes.length&&mn(t.childNodes,(function(e){var n;if(e&&((n=e.tagName)==null?void 0:n.toLowerCase())==="span")try{var s=ac(e);r=(r+" "+s).trim(),e.childNodes&&e.childNodes.length&&(r=(r+" "+T8(e)).trim())}catch(a){Ge.error("[AutoCapture]",a)}})),r}function U_(t){return t.replace(/"|\\"/g,'\\"')}function r$(t){var r=t.attr__class;return r?Gt(r)?r:Nm(r):void 0}class H_{constructor(r){this.disabled=r===!1;var e=Nn(r)?r:{};this.thresholdPx=e.threshold_px||30,this.timeoutMs=e.timeout_ms||1e3,this.clickCount=e.click_count||3,this.clicks=[]}isRageClick(r,e,n){if(this.disabled)return!1;var s=this.clicks[this.clicks.length-1];if(s&&Math.abs(r-s.x)+Math.abs(e-s.y)n-s.timestamp){if(this.clicks.push({x:r,y:e,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:r,y:e,timestamp:n}];return!1}}var p2="$copy_autocapture",f2=En("[AutoCapture]");function _2(t,r){return r.length>t?r.slice(0,t)+"...":r}function s$(t){if(t.previousElementSibling)return t.previousElementSibling;var r=t;do r=r.previousSibling;while(r&&!xi(r));return r}function a$(t,r){var e,n,{e:s,maskAllElementAttributes:a,maskAllText:i,elementAttributeIgnoreList:o,elementsChainAsString:l}=r;if(!xi(t))return{props:{}};for(var d=[t],u=t;u.parentNode&&!gs(u,"body");)if(b8(u.parentNode))d.push(u.parentNode.host),u=u.parentNode.host;else{if(!xi(u.parentNode))break;d.push(u.parentNode),u=u.parentNode}var g,y,w=[],k={},E=!1,R=!1;if(mn(d,(A=>{var V=Mh(A);if(gs(A,"a")){var F=A.getAttribute("href");E=V&&!!F&&Ul(F)&&F}Dt(Ku(A),"ph-no-capture")&&(R=!0),w.push((function(z,U,j,J){var de=z.tagName.toLowerCase(),Ae={tag_name:de};Mm.indexOf(de)>-1&&!j&&(Ae.$el_text=de.toLowerCase()==="a"||de.toLowerCase()==="button"?_2(1024,B_(z)):_2(1024,ac(z)));var qe=Ku(z);qe.length>0&&(Ae.classes=qe.filter((function(Pt){return Pt!==""}))),mn(z.attributes,(function(Pt){var G;if((!k8(z)||["name","id","class","aria-label"].indexOf(Pt.name)!==-1)&&(J==null||!J.includes(Pt.name))&&!U&&Ul(Pt.value)&&(!wn(G=Pt.name)||G.substring(0,10)!=="_ngcontent"&&G.substring(0,7)!=="_nghost")){var X=Pt.value;Pt.name==="class"&&(X=Nm(X).join(" ")),Ae["attr__"+Pt.name]=_2(1024,X)}}));for(var Ue=1,je=1,nt=z;nt=s$(nt);)Ue++,nt.tagName===z.tagName&&je++;return Ae.nth_child=Ue,Ae.nth_of_type=je,Ae})(A,a,i,o));var S=(function(z){if(!Mh(z))return{};var U={};return mn(z.attributes,(function(j){if(j.name&&j.name.indexOf("data-ph-capture-attribute")===0){var J=j.name.replace("data-ph-capture-attribute-",""),de=j.value;J&&de&&Ul(de)&&(U[J]=de)}})),U})(A);$n(k,S)})),R)return{props:{},explicitNoCapture:R};if(i||(w[0].$el_text=gs(t,"a")||gs(t,"button")?B_(t):ac(t)),E){var O,M;w[0].attr__href=E;var x=(O=qu(E))==null?void 0:O.host,N=le==null||(M=le.location)==null?void 0:M.host;x&&N&&x!==N&&(g=E)}return{props:$n({$event_type:s.type,$ce_version:1},l?{}:{$elements:w},{$elements_chain:(y=w,(function(A){return A.map((V=>{var F,S,z="";if(V.tag_name&&(z+=V.tag_name),V.attr_class)for(var U of(V.attr_class.sort(),V.attr_class))z+="."+U.replace(/"/g,"");var j=Oe({},V.text?{text:V.text}:{},{"nth-child":(F=V.nth_child)!==null&&F!==void 0?F:0,"nth-of-type":(S=V.nth_of_type)!==null&&S!==void 0?S:0},V.href?{href:V.href}:{},V.attr_id?{attr_id:V.attr_id}:{},V.attributes),J={};return fu(j).sort(((de,Ae)=>{var[qe]=de,[Ue]=Ae;return qe.localeCompare(Ue)})).forEach((de=>{var[Ae,qe]=de;return J[U_(Ae.toString())]=U_(qe.toString())})),(z+=":")+fu(J).map((de=>{var[Ae,qe]=de;return Ae+'="'+qe+'"'})).join("")})).join(";")})((function(A){return A.map((V=>{var F,S,z={text:(F=V.$el_text)==null?void 0:F.slice(0,400),tag_name:V.tag_name,href:(S=V.attr__href)==null?void 0:S.slice(0,2048),attr_class:r$(V),attr_id:V.attr__id,nth_child:V.nth_child,nth_of_type:V.nth_of_type,attributes:{}};return fu(V).filter((U=>{var[j]=U;return j.indexOf("attr__")===0})).forEach((U=>{var[j,J]=U;return z.attributes[j]=J})),z}))})(y)))},(e=w[0])!=null&&e.$el_text?{$el_text:(n=w[0])==null?void 0:n.$el_text}:{},g&&s.type==="click"?{$external_click_url:g}:{},k)}}var gl=En("[ExceptionAutocapture]");function q_(t,r,e){try{if(!(r in t))return()=>{};var n=t[r],s=e(n);return ha(s)&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[r]=s,()=>{t[r]=n}}catch(a){return()=>{}}}var i$=En("[TracingHeaders]"),La=En("[Web Vitals]"),W_=9e5,G_="disabled",j_="lazy_loading",vl="awaiting_config",su="missing_config";En("[SessionRecording]"),En("[SessionRecording]");var Lh="[SessionRecording]",ia=En(Lh),o$=En("[Heatmaps]");function Z_(t){return Nn(t)&&"clientX"in t&&"clientY"in t&&os(t.clientX)&&os(t.clientY)}var K_=En("[Product Tours]"),l$=["$set_once","$set"],xa=En("[SiteApps]"),Y_="Error while initializing PostHog app with config id ";function so(t,r,e){if(Vt(t))return!1;switch(e){case"exact":return t===r;case"contains":var n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(r).test(t)}catch(s){return!1}default:return!1}}class c${constructor(r){this._debugEventEmitter=new Pm,this._checkStep=(e,n)=>this._checkStepEvent(e,n)&&this._checkStepUrl(e,n)&&this._checkStepElement(e,n)&&this._checkStepProperties(e,n),this._checkStepEvent=(e,n)=>n==null||!n.event||(e==null?void 0:e.event)===(n==null?void 0:n.event),this._instance=r,this._actionEvents=new Set,this._actionRegistry=new Set}init(){var r,e;Ke((r=this._instance)==null?void 0:r._addCaptureHook)||(e=this._instance)==null||e._addCaptureHook(((n,s)=>{this.on(n,s)}))}register(r){var e,n;if(!Ke((e=this._instance)==null?void 0:e._addCaptureHook)&&(r.forEach((i=>{var o,l;(o=this._actionRegistry)==null||o.add(i),(l=i.steps)==null||l.forEach((d=>{var u;(u=this._actionEvents)==null||u.add((d==null?void 0:d.event)||"")}))})),(n=this._instance)!=null&&n.autocapture)){var s,a=new Set;r.forEach((i=>{var o;(o=i.steps)==null||o.forEach((l=>{l!=null&&l.selector&&a.add(l==null?void 0:l.selector)}))})),(s=this._instance)==null||s.autocapture.setElementSelectors(a)}}on(r,e){var n;e!=null&&r.length!=0&&(this._actionEvents.has(r)||this._actionEvents.has(e==null?void 0:e.event))&&this._actionRegistry&&((n=this._actionRegistry)==null?void 0:n.size)>0&&this._actionRegistry.forEach((s=>{this._checkAction(e,s)&&this._debugEventEmitter.emit("actionCaptured",s.name)}))}_addActionHook(r){this.onAction("actionCaptured",(e=>r(e)))}_checkAction(r,e){if((e==null?void 0:e.steps)==null)return!1;for(var n of e.steps)if(this._checkStep(r,n))return!0;return!1}onAction(r,e){return this._debugEventEmitter.on(r,e)}_checkStepUrl(r,e){if(e!=null&&e.url){var n,s=r==null||(n=r.properties)==null?void 0:n.$current_url;if(!s||typeof s!="string"||!so(s,e.url,e.url_matching||"contains"))return!1}return!0}_checkStepElement(r,e){return!!this._checkStepHref(r,e)&&!!this._checkStepText(r,e)&&!!this._checkStepSelector(r,e)}_checkStepHref(r,e){var n;if(e==null||!e.href)return!0;var s=this._getElementsList(r);if(s.length>0)return s.some((o=>so(o.href,e.href,e.href_matching||"exact")));var a,i=(r==null||(n=r.properties)==null?void 0:n.$elements_chain)||"";return!!i&&so((a=i.match(/(?::|")href="(.*?)"/))?a[1]:"",e.href,e.href_matching||"exact")}_checkStepText(r,e){var n;if(e==null||!e.text)return!0;var s=this._getElementsList(r);if(s.length>0)return s.some((d=>so(d.text,e.text,e.text_matching||"exact")||so(d.$el_text,e.text,e.text_matching||"exact")));var a,i,o,l=(r==null||(n=r.properties)==null?void 0:n.$elements_chain)||"";return!!l&&(a=(function(d){for(var u,g=[],y=/(?::|")text="(.*?)"/g;!Vt(u=y.exec(d));)g.includes(u[1])||g.push(u[1]);return g})(l),i=e.text,o=e.text_matching||"exact",a.some((d=>so(d,i,o))))}_checkStepSelector(r,e){var n,s;if(e==null||!e.selector)return!0;var a=r==null||(n=r.properties)==null?void 0:n.$element_selectors;if(a!=null&&a.includes(e.selector))return!0;var i=(r==null||(s=r.properties)==null?void 0:s.$elements_chain)||"";if(e.selector_regex&&i)try{return new RegExp(e.selector_regex).test(i)}catch(o){return!1}return!1}_getElementsList(r){var e;return(r==null||(e=r.properties)==null?void 0:e.$elements)==null?[]:r==null?void 0:r.properties.$elements}_checkStepProperties(r,e){return e==null||!e.properties||e.properties.length===0||_8(e.properties.reduce(((n,s)=>{var a=Gt(s.value)?s.value.map(String):s.value!=null?[String(s.value)]:[];return n[s.key]={values:a,operator:s.operator||"exact"},n}),{}),r==null?void 0:r.properties)}}class u${constructor(r){this._instance=r,this._eventToItems=new Map,this._cancelEventToItems=new Map,this._actionToItems=new Map}_doesEventMatchFilter(r,e){return!!r&&_8(r.propertyFilters,e==null?void 0:e.properties)}_buildEventToItemMap(r,e){var n=new Map;return r.forEach((s=>{var a;(a=s.conditions)==null||(a=a[e])==null||(a=a.values)==null||a.forEach((i=>{if(i!=null&&i.name){var o=n.get(i.name)||[];o.push(s.id),n.set(i.name,o)}}))})),n}_getMatchingItems(r,e,n){var s=(n===hl.Activation?this._eventToItems:this._cancelEventToItems).get(r),a=[];return this._getItems((i=>{a=i.filter((o=>s==null?void 0:s.includes(o.id)))})),a.filter((i=>{var o,l=(o=i.conditions)==null||(o=o[n])==null||(o=o.values)==null?void 0:o.find((d=>d.name===r));return this._doesEventMatchFilter(l,e)}))}register(r){var e;Ke((e=this._instance)==null?void 0:e._addCaptureHook)||(this._setupEventBasedItems(r),this._setupActionBasedItems(r))}_setupActionBasedItems(r){var e=r.filter((n=>{var s,a;return((s=n.conditions)==null?void 0:s.actions)&&((a=n.conditions)==null||(a=a.actions)==null||(a=a.values)==null?void 0:a.length)>0}));e.length!==0&&(this._actionMatcher==null&&(this._actionMatcher=new c$(this._instance),this._actionMatcher.init(),this._actionMatcher._addActionHook((n=>{this.onAction(n)}))),e.forEach((n=>{var s,a,i,o,l;n.conditions&&(s=n.conditions)!=null&&s.actions&&(a=n.conditions)!=null&&(a=a.actions)!=null&&a.values&&((i=n.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0&&((o=this._actionMatcher)==null||o.register(n.conditions.actions.values),(l=n.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach((d=>{if(d&&d.name){var u=this._actionToItems.get(d.name);u&&u.push(n.id),this._actionToItems.set(d.name,u||[n.id])}})))})))}_setupEventBasedItems(r){var e,n=r.filter((a=>{var i,o;return((i=a.conditions)==null?void 0:i.events)&&((o=a.conditions)==null||(o=o.events)==null||(o=o.values)==null?void 0:o.length)>0})),s=r.filter((a=>{var i,o;return((i=a.conditions)==null?void 0:i.cancelEvents)&&((o=a.conditions)==null||(o=o.cancelEvents)==null||(o=o.values)==null?void 0:o.length)>0}));n.length===0&&s.length===0||((e=this._instance)==null||e._addCaptureHook(((a,i)=>{this.onEvent(a,i)})),this._eventToItems=this._buildEventToItemMap(r,hl.Activation),this._cancelEventToItems=this._buildEventToItemMap(r,hl.Cancellation))}onEvent(r,e){var n,s=this._getLogger(),a=this._getActivatedKey(),i=this._getShownEventName(),o=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[a])||[];if(i===r&&e&&o.length>0){var l,d;s.info("event matched, removing item from activated items",{event:r,eventPayload:e,existingActivatedItems:o});var u=(e==null||(l=e.properties)==null?void 0:l.$survey_id)||(e==null||(d=e.properties)==null?void 0:d.$product_tour_id);if(u){var g=o.indexOf(u);0>g||(o.splice(g,1),this._updateActivatedItems(o))}}else{if(this._cancelEventToItems.has(r)){var y=this._getMatchingItems(r,e,hl.Cancellation);y.length>0&&(s.info("cancel event matched, cancelling items",{event:r,itemsToCancel:y.map((k=>k.id))}),y.forEach((k=>{var E=o.indexOf(k.id);0>E||o.splice(E,1),this._cancelPendingItem(k.id)})),this._updateActivatedItems(o))}if(this._eventToItems.has(r)){s.info("event name matched",{event:r,eventPayload:e,items:this._eventToItems.get(r)});var w=this._getMatchingItems(r,e,hl.Activation);this._updateActivatedItems(o.concat(w.map((k=>k.id))||[]))}}}onAction(r){var e,n=this._getActivatedKey(),s=((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n])||[];this._actionToItems.has(r)&&this._updateActivatedItems(s.concat(this._actionToItems.get(r)||[]))}_updateActivatedItems(r){var e=this._getLogger(),n=[...new Set(r)].filter((s=>!this._isItemPermanentlyIneligible(s)));e.info("updating activated items",{activatedItems:n}),this._setActivatedItems(n)}getActivatedIds(){var r,e=this._getActivatedKey();return((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[e])||[]}getEventToItemsMap(){return this._eventToItems}_getActionMatcher(){return this._actionMatcher}}class d$ extends u${constructor(r){super(r)}_getActivatedKey(){return lh}_getShownEventName(){return zl.SHOWN}_getItems(r){var e;(e=this._instance)==null||e.getSurveys(r)}_cancelPendingItem(r){var e;(e=this._instance)==null||e.cancelPendingSurvey(r)}_getLogger(){return nn}_setActivatedItems(r){var e;(e=this._instance)==null||(e=e.persistence)==null||e.register({[lh]:r})}_isItemPermanentlyIneligible(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var g2="SDK is not enabled or survey functionality is not yet loaded",Q_="Disabled. Not loading surveys.",h$=le!=null&&le.location?Wu(le.location.hash,"__posthog")||Wu(location.hash,"state"):null,J_="_postHogToolbarParams",X_=En("[Toolbar]"),vr=En("[FeatureFlags]"),bi=En("[FeatureFlags]",{debugEnabled:!0}),v2="\" failed. Feature flags didn't load in time.",eg=t=>{for(var r={},e=0;t.length>e;e++)r[t[e]]=!0;return r},tg=t=>{var r={};for(var[e,n]of fu(t||{}))n&&(r[e]=n);return r},oa=En("[Error tracking]"),ng="Refusing to render web experiment since the viewer is a likely bot",m$={icontains:(t,r)=>!!le&&r.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,r)=>!!le&&r.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,r)=>!!le&&Zu(r.href,t),not_regex:(t,r)=>!!le&&!Zu(r.href,t),exact:(t,r)=>r.href===t,is_not:(t,r)=>r.href!==t};class lr{get _config(){return this._instance.config}constructor(r){var e=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),e.getWebExperiments((s=>{lr._logInfo("retrieved web experiments from the server"),e._flagToExperiments=new Map,s.forEach((a=>{if(a.feature_flag_key){var i;e._flagToExperiments&&(lr._logInfo("setting flag key ",a.feature_flag_key," to web experiment ",a),(i=e._flagToExperiments)==null||i.set(a.feature_flag_key,a));var o=e._instance.getFeatureFlag(a.feature_flag_key);wn(o)&&a.variants[o]&&e._applyTransforms(a.name,o,a.variants[o].transforms)}else if(a.variants)for(var l in a.variants){var d=a.variants[l];lr._matchesTestVariant(d)&&e._applyTransforms(a.name,l,d.transforms)}}))}),n)},this._instance=r,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}initialize(){}onFeatureFlags(r){if(this._is_bot())lr._logInfo(ng);else if(!this._config.disable_web_experiments){if(Vt(this._flagToExperiments))return this._flagToExperiments=new Map,this.loadIfEnabled(),void this.previewWebExperiment();lr._logInfo("applying feature flags",r),r.forEach((e=>{var n;if(this._flagToExperiments&&(n=this._flagToExperiments)!=null&&n.has(e)){var s,a=this._instance.getFeatureFlag(e),i=(s=this._flagToExperiments)==null?void 0:s.get(e);a&&i!=null&&i.variants[a]&&this._applyTransforms(i.name,a,i.variants[a].transforms)}}))}}previewWebExperiment(){var r=lr.getWindowLocation();if(r!=null&&r.search){var e=nc(r==null?void 0:r.search,"__experiment_id"),n=nc(r==null?void 0:r.search,"__experiment_variant");e&&n&&(lr._logInfo("previewing web experiments "+e+" && "+n),this.getWebExperiments((s=>{this._showPreviewWebExperiment(parseInt(e),n,s)}),!1,!0))}}loadIfEnabled(){this._config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(r,e,n){if(this._config.disable_web_experiments&&!n)return r([]);var s=this._instance.get_property("$web_experiments");if(s&&!e)return r(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._config.token),method:"GET",callback:a=>r(a.statusCode===200&&a.json&&a.json.experiments||[])})}_showPreviewWebExperiment(r,e,n){var s=n.filter((a=>a.id===r));s&&s.length>0&&(lr._logInfo("Previewing web experiment ["+s[0].name+"] with variant ["+e+"]"),this._applyTransforms(s[0].name,e,s[0].variants[e].transforms))}static _matchesTestVariant(r){return!Vt(r.conditions)&&lr._matchUrlConditions(r)&&lr._matchUTMConditions(r)}static _matchUrlConditions(r){var e;if(Vt(r.conditions)||Vt((e=r.conditions)==null?void 0:e.url))return!0;var n,s,a,i=lr.getWindowLocation();return!!i&&((n=r.conditions)==null||!n.url||m$[(s=(a=r.conditions)==null?void 0:a.urlMatchType)!==null&&s!==void 0?s:"icontains"](r.conditions.url,i))}static getWindowLocation(){return le==null?void 0:le.location}static _matchUTMConditions(r){var e;if(Vt(r.conditions)||Vt((e=r.conditions)==null?void 0:e.utm))return!0;var n=e8();if(n.utm_source){var s,a,i,o,l,d,u,g,y=(s=r.conditions)==null||(s=s.utm)==null||!s.utm_campaign||((a=r.conditions)==null||(a=a.utm)==null?void 0:a.utm_campaign)==n.utm_campaign,w=(i=r.conditions)==null||(i=i.utm)==null||!i.utm_source||((o=r.conditions)==null||(o=o.utm)==null?void 0:o.utm_source)==n.utm_source,k=(l=r.conditions)==null||(l=l.utm)==null||!l.utm_medium||((d=r.conditions)==null||(d=d.utm)==null?void 0:d.utm_medium)==n.utm_medium,E=(u=r.conditions)==null||(u=u.utm)==null||!u.utm_term||((g=r.conditions)==null||(g=g.utm)==null?void 0:g.utm_term)==n.utm_term;return y&&k&&E&&w}return!1}static _logInfo(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;e>s;s++)n[s-1]=arguments[s];Ge.info("[WebExperiments] "+r,n)}_applyTransforms(r,e,n){this._is_bot()?lr._logInfo(ng):e!=="control"?n.forEach((s=>{if(s.selector){var a;lr._logInfo("applying transform of variant "+e+" for experiment "+r+" ",s);var i=(a=document)==null?void 0:a.querySelectorAll(s.selector);i==null||i.forEach((o=>{var l=o;s.html&&(l.innerHTML=s.html),s.css&&l.setAttribute("style",s.css)}))}})):lr._logInfo("Control variants leave the page unmodified.")}_is_bot(){return Ur&&this._instance?p8(Ur,this._config.custom_blocked_useragents):void 0}}var Xr=En("[Conversations]"),Ci="Conversations not available yet.",zd={featureFlags:class{constructor(t){this._override_warning=!1,this._hasLoadedFlags=!1,this._requestInFlight=!1,this._reloadingDisabled=!1,this._additionalReloadRequested=!1,this._flagsLoadedFromRemote=!1,this._hasLoggedDeprecationWarning=!1,this._staleCacheRefreshTriggered=!1,this._instance=t,this.featureFlagEventHandlers=[]}get _config(){return this._instance.config}get _persistence(){return this._instance.persistence}_prop(t){return this._instance.get_property(t)}_isCacheStale(){var t,r;return(t=(r=this._persistence)==null?void 0:r._isFeatureFlagCacheStale(this._config.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}_checkAndTriggerStaleRefresh(){return!!this._isCacheStale()&&(this._staleCacheRefreshTriggered||this._requestInFlight||(this._staleCacheRefreshTriggered=!0,vr.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}_getValidEvaluationEnvironments(){var t,r=(t=this._config.evaluation_contexts)!==null&&t!==void 0?t:this._config.evaluation_environments;return!this._config.evaluation_environments||this._config.evaluation_contexts||this._hasLoggedDeprecationWarning||(vr.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this._hasLoggedDeprecationWarning=!0),r!=null&&r.length?r.filter((e=>{var n=e&&typeof e=="string"&&e.trim().length>0;return n||vr.error("Invalid evaluation context found:",e,"Expected non-empty string"),n})):[]}_shouldIncludeEvaluationEnvironments(){return this._getValidEvaluationEnvironments().length>0}initialize(){var t,r,{config:e}=this._instance,n=(t=(r=e.bootstrap)==null?void 0:r.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(n).length){var s,a,i=(s=(a=e.bootstrap)==null?void 0:a.featureFlagPayloads)!==null&&s!==void 0?s:{},o=Object.keys(n).filter((d=>!!n[d])).reduce(((d,u)=>(d[u]=n[u]||!1,d)),{}),l=Object.keys(i).filter((d=>o[d])).reduce(((d,u)=>(i[u]&&(d[u]=i[u]),d)),{});this.receivedFeatureFlags({featureFlags:o,featureFlagPayloads:l})}}updateFlags(t,r,e){var n=e!=null&&e.merge?this.getFlagVariants():{},s=e!=null&&e.merge?this.getFlagPayloads():{},a=Oe({},n,t),i=Oe({},s,r),o={};for(var[l,d]of Object.entries(a)){var u=typeof d=="string";o[l]={key:l,enabled:!!u||!!d,variant:u?d:void 0,reason:void 0,metadata:Ke(i==null?void 0:i[l])?void 0:{id:0,version:void 0,description:void 0,payload:i[l]}}}this.receivedFeatureFlags({flags:o})}get hasLoadedFlags(){return this._hasLoadedFlags}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._prop(sh),r=this._prop(la),e=this._prop(lo);if(!e&&!r)return t||{};var n=$n({},t||{}),s=[...new Set([...Object.keys(e||{}),...Object.keys(r||{})])];for(var a of s){var i,o,l=n[a],d=r==null?void 0:r[a],u=Ke(d)?(i=l==null?void 0:l.enabled)!==null&&i!==void 0&&i:!!d,g=Ke(d)?l.variant:typeof d=="string"?d:void 0,y=e==null?void 0:e[a],w=Oe({},l,{enabled:u,variant:u?g!=null?g:l==null?void 0:l.variant:void 0});u!==(l==null?void 0:l.enabled)&&(w.original_enabled=l==null?void 0:l.enabled),g!==(l==null?void 0:l.variant)&&(w.original_variant=l==null?void 0:l.variant),y&&(w.metadata=Oe({},l==null?void 0:l.metadata,{payload:y,original_payload:l==null||(o=l.metadata)==null?void 0:o.payload})),n[a]=w}return this._override_warning||(vr.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:e,finalDetails:n}),this._override_warning=!0),n}getFlagVariants(){var t=this._prop(mo),r=this._prop(la);if(!r)return t||{};for(var e=$n({},t),n=Object.keys(r),s=0;n.length>s;s++)e[n[s]]=r[n[s]];return this._override_warning||(vr.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:r,finalFlags:e}),this._override_warning=!0),e}getFlagPayloads(){var t=this._prop(ah),r=this._prop(lo);if(!r)return t||{};for(var e=$n({},t||{}),n=Object.keys(r),s=0;n.length>s;s++)e[n[s]]=r[n[s]];return this._override_warning||(vr.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:r,finalPayloads:e}),this._override_warning=!0),e}reloadFeatureFlags(){this._reloadingDisabled||this._config.advanced_disable_feature_flags||this._reloadDebouncer||(this._instance._internalEventEmitter.emit("featureFlagsReloading",!0),this._reloadDebouncer=setTimeout((()=>{this._callFlagsEndpoint()}),5))}_clearDebouncer(){clearTimeout(this._reloadDebouncer),this._reloadDebouncer=void 0}ensureFlagsLoaded(){this._hasLoadedFlags||this._requestInFlight||this._reloadDebouncer||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this._reloadingDisabled=t}_callFlagsEndpoint(t){var r;if(this._clearDebouncer(),!this._instance._shouldDisableFlags())if(this._requestInFlight)this._additionalReloadRequested=!0;else{var e=this._config.token,n=this._prop(Ru),s={token:e,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Oe({},((r=this._persistence)==null?void 0:r.get_initial_props())||{},this._prop(Il)||{}),group_properties:this._prop(Si),timezone:i8()};$a(n)||Ke(n)||(s.$device_id=n),(t!=null&&t.disableFlags||this._config.advanced_disable_feature_flags)&&(s.disable_flags=!0),this._shouldIncludeEvaluationEnvironments()&&(s.evaluation_contexts=this._getValidEvaluationEnvironments());var a=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this._config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this._requestInFlight=!0,this._instance._send_request({method:"POST",url:a,data:s,compression:this._config.disable_compression?void 0:Fs.Base64,timeout:this._config.feature_flag_request_timeout_ms,callback:i=>{var o,l,d,u=!0;if(i.statusCode===200&&(this._additionalReloadRequested||(this.$anon_distinct_id=void 0),u=!1),this._requestInFlight=!1,!s.disable_flags||this._additionalReloadRequested){this._flagsLoadedFromRemote=!u;var g=[];i.error?i.error instanceof Error?g.push(i.error.name==="AbortError"?"timeout":"connection_error"):g.push("unknown_error"):i.statusCode!==200&&g.push("api_error_"+i.statusCode),(o=i.json)!=null&&o.errorsWhileComputingFlags&&g.push("errors_while_computing_flags");var y,w=!((l=i.json)==null||(l=l.quotaLimited)==null||!l.includes("feature_flags"));w&&g.push("quota_limited"),(d=this._persistence)==null||d.register({[uh]:g}),w?vr.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(s.disable_flags||this.receivedFeatureFlags((y=i.json)!==null&&y!==void 0?y:{},u,{partialResponse:!!this._config.advanced_only_evaluate_survey_feature_flags}),this._additionalReloadRequested&&(this._additionalReloadRequested=!1,this._callFlagsEndpoint()))}}})}}getFeatureFlag(t,r){var e;if(r===void 0&&(r={}),!r.fresh||this._flagsLoadedFromRemote)if(this._hasLoadedFlags||this.getFlags()&&this.getFlags().length>0){if(!this._checkAndTriggerStaleRefresh()){var n=this.getFeatureFlagResult(t,r);return(e=n==null?void 0:n.variant)!==null&&e!==void 0?e:n==null?void 0:n.enabled}}else vr.warn('getFeatureFlag for key "'+t+v2)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var r=this.getFeatureFlagResult(t,{send_event:!1});return r==null?void 0:r.payload}getFeatureFlagResult(t,r){if(r===void 0&&(r={}),!r.fresh||this._flagsLoadedFromRemote)if(this._hasLoadedFlags||this.getFlags()&&this.getFlags().length>0){if(!this._checkAndTriggerStaleRefresh()){var e=this.getFlagVariants(),n=t in e,s=e[t],a=this.getFlagPayloads()[t],i=String(s),o=this._prop(ih)||void 0,l=this._prop(Nu)||void 0,d=this._prop(Fl)||{};if(this._config.advanced_feature_flags_dedup_per_session){var u,g=this._instance.get_session_id(),y=this._prop(ch);g&&g!==y&&(d={},(u=this._persistence)==null||u.register({[Fl]:d,[ch]:g}))}if((r.send_event||!("send_event"in r))&&(!(t in d)||!d[t].includes(i))){var w,k,E,R,O,M,x,N,A,V;Gt(d[t])?d[t].push(i):d[t]=[i],(w=this._persistence)==null||w.register({[Fl]:d});var F=this.getFeatureFlagDetails(t),S=[...(k=this._prop(uh))!==null&&k!==void 0?k:[]];Ke(s)&&S.push("flag_missing");var z={$feature_flag:t,$feature_flag_response:s,$feature_flag_payload:a||null,$feature_flag_request_id:o,$feature_flag_evaluated_at:l,$feature_flag_bootstrapped_response:((E=this._config.bootstrap)==null||(E=E.featureFlags)==null?void 0:E[t])||null,$feature_flag_bootstrapped_payload:((R=this._config.bootstrap)==null||(R=R.featureFlagPayloads)==null?void 0:R[t])||null,$used_bootstrap_value:!this._flagsLoadedFromRemote};Ke(F==null||(O=F.metadata)==null?void 0:O.version)||(z.$feature_flag_version=F.metadata.version);var U,j=(M=F==null||(x=F.reason)==null?void 0:x.description)!==null&&M!==void 0?M:F==null||(N=F.reason)==null?void 0:N.code;j&&(z.$feature_flag_reason=j),F!=null&&(A=F.metadata)!=null&&A.id&&(z.$feature_flag_id=F.metadata.id),Ke(F==null?void 0:F.original_variant)&&Ke(F==null?void 0:F.original_enabled)||(z.$feature_flag_original_response=Ke(F.original_variant)?F.original_enabled:F.original_variant),F!=null&&(V=F.metadata)!=null&&V.original_payload&&(z.$feature_flag_original_payload=F==null||(U=F.metadata)==null?void 0:U.original_payload),S.length&&(z.$feature_flag_error=S.join(",")),this._instance.capture("$feature_flag_called",z)}if(n){var J=a;if(!Ke(a))try{J=JSON.parse(a)}catch(de){}return{key:t,enabled:!!s,variant:typeof s=="string"?s:void 0,payload:J}}}}else vr.warn('getFeatureFlagResult for key "'+t+v2)}getRemoteConfigPayload(t,r){var e=this._config.token,n={distinct_id:this._instance.get_distinct_id(),token:e};this._shouldIncludeEvaluationEnvironments()&&(n.evaluation_contexts=this._getValidEvaluationEnvironments()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this._config.disable_compression?void 0:Fs.Base64,timeout:this._config.feature_flag_request_timeout_ms,callback(s){var a,i=(a=s.json)==null?void 0:a.featureFlagPayloads;r((i==null?void 0:i[t])||void 0)}})}isFeatureEnabled(t,r){if(r===void 0&&(r={}),!r.fresh||this._flagsLoadedFromRemote){if(this._hasLoadedFlags||this.getFlags()&&this.getFlags().length>0){var e=this.getFeatureFlag(t,r);return Ke(e)?void 0:!!e}vr.warn('isFeatureEnabled for key "'+t+v2)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((r=>r!==t))}receivedFeatureFlags(t,r,e){if(this._persistence){this._hasLoadedFlags=!0;var n=this.getFlagVariants(),s=this.getFlagPayloads(),a=this.getFlagsWithDetails();(function(i,o,l,d,u,g){l===void 0&&(l={}),d===void 0&&(d={}),u===void 0&&(u={});var y=(S=>{var z=S.flags;return z?(S.featureFlags=Object.fromEntries(Object.keys(z).map((U=>{var j;return[U,(j=z[U].variant)!==null&&j!==void 0?j:z[U].enabled]}))),S.featureFlagPayloads=Object.fromEntries(Object.keys(z).filter((U=>z[U].enabled)).filter((U=>{var j;return(j=z[U].metadata)==null?void 0:j.payload})).map((U=>{var j;return[U,(j=z[U].metadata)==null?void 0:j.payload]})))):vr.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),S})(i),w=y.flags,k=y.featureFlags,E=y.featureFlagPayloads;if(k){var R=i.requestId,O=i.evaluatedAt;if(Gt(k)){vr.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var M={};if(k)for(var x=0;k.length>x;x++)M[k[x]]=!0;o&&o.register({[hu]:k,[mo]:M})}else{var N=k,A=E,V=w;if(g!=null&&g.partialResponse)N=Oe({},l,N),A=Oe({},d,A),V=Oe({},u,V);else if(i.errorsWhileComputingFlags)if(w){var F=new Set(Object.keys(w).filter((S=>{var z;return!((z=w[S])!=null&&z.failed)})));N=Oe({},l,Object.fromEntries(Object.entries(N).filter((S=>{var[z]=S;return F.has(z)})))),A=Oe({},d,Object.fromEntries(Object.entries(A||{}).filter((S=>{var[z]=S;return F.has(z)})))),V=Oe({},u,Object.fromEntries(Object.entries(V||{}).filter((S=>{var[z]=S;return F.has(z)}))))}else N=Oe({},l,N),A=Oe({},d,A),V=Oe({},u,V);o&&o.register(Oe({[hu]:Object.keys(tg(N)),[mo]:N||{},[ah]:A||{},[sh]:V||{}},R?{[ih]:R}:{},O?{[Nu]:O}:{}))}}})(t,this._persistence,n,s,a,e),r||(this._staleCacheRefreshTriggered=!1),this._fireFeatureFlagsCallbacks(r)}}override(t,r){r===void 0&&(r=!1),vr.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:r})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._persistence)return vr.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._persistence.unregister(la),this._persistence.unregister(lo),this._fireFeatureFlagsCallbacks(),bi.info("All overrides cleared");if(Gt(t)){var r=eg(t);return this._persistence.register({[la]:r}),this._fireFeatureFlagsCallbacks(),bi.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var e,n=t;if(this._override_warning=!!((e=n.suppressWarning)!==null&&e!==void 0&&e),"flags"in n){if(n.flags===!1)this._persistence.unregister(la),bi.info("Flag overrides cleared");else if(n.flags){if(Gt(n.flags)){var s=eg(n.flags);this._persistence.register({[la]:s})}else this._persistence.register({[la]:n.flags});bi.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this._persistence.unregister(lo),bi.info("Payload overrides cleared")):n.payloads&&(this._persistence.register({[lo]:n.payloads}),bi.info("Payload overrides set",{payloads:n.payloads}))),void this._fireFeatureFlagsCallbacks()}if(t&&typeof t=="object")return this._persistence.register({[la]:t}),this._fireFeatureFlagsCallbacks(),bi.info("Flag overrides set",{flags:t});vr.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this._hasLoadedFlags){var{flags:r,flagVariants:e}=this._prepareFeatureFlagsForCallbacks();t(r,e)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,r,e){var n,s=(this._prop($l)||[]).find((l=>l.flagKey===t)),a={["$feature_enrollment/"+t]:r},i={$feature_flag:t,$feature_enrollment:r,$set:a};s&&(i.$early_access_feature_name=s.name),e&&(i.$feature_enrollment_stage=e),this._instance.capture("$feature_enrollment_update",i),this.setPersonPropertiesForFlags(a,!1);var o=Oe({},this.getFlagVariants(),{[t]:r});(n=this._persistence)==null||n.register({[hu]:Object.keys(tg(o)),[mo]:o}),this._fireFeatureFlagsCallbacks()}getEarlyAccessFeatures(t,r,e){r===void 0&&(r=!1);var n=this._prop($l),s=e?"&"+e.map((a=>"stage="+a)).join("&"):"";if(n&&!r)return t(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._config.token+s),method:"GET",callback:a=>{var i,o;if(a.json){var l=a.json.earlyAccessFeatures;return(i=this._persistence)==null||i.unregister($l),(o=this._persistence)==null||o.register({[$l]:l}),t(l)}}})}_prepareFeatureFlagsForCallbacks(){var t=this.getFlags(),r=this.getFlagVariants();return{flags:t.filter((e=>r[e])),flagVariants:Object.keys(r).filter((e=>r[e])).reduce(((e,n)=>(e[n]=r[n],e)),{})}}_fireFeatureFlagsCallbacks(t){var{flags:r,flagVariants:e}=this._prepareFeatureFlagsForCallbacks();this.featureFlagEventHandlers.forEach((n=>n(r,e,{errorsLoading:t})))}setPersonPropertiesForFlags(t,r){r===void 0&&(r=!0);var e=this._prop(Il)||{},n=(t==null?void 0:t.$set)||(t!=null&&t.$set_once?{}:t),s=t==null?void 0:t.$set_once,a={};if(s)for(var i in s)({}).hasOwnProperty.call(s,i)&&(i in e||(a[i]=s[i]));this._instance.register({[Il]:Oe({},e,a,n)}),r&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Il)}setGroupPropertiesForFlags(t,r){r===void 0&&(r=!0);var e=this._prop(Si)||{};Object.keys(e).length!==0&&Object.keys(e).forEach((n=>{e[n]=Oe({},e[n],t[n]),delete t[n]})),this._instance.register({[Si]:Oe({},e,t)}),r&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var r=this._prop(Si)||{};this._instance.register({[Si]:Oe({},r,{[t]:{}})})}else this._instance.unregister(Si)}reset(){this._hasLoadedFlags=!1,this._requestInFlight=!1,this._reloadingDisabled=!1,this._additionalReloadRequested=!1,this._flagsLoadedFromRemote=!1,this.$anon_distinct_id=void 0,this._clearDebouncer(),this._override_warning=!1}}},p$={sessionRecording:class{get _config(){return this._instance.config}get _persistence(){return this._instance.persistence}get started(){var t;return!((t=this._lazyLoadedSessionRecording)==null||!t.isStarted)}get status(){var t,r;return this._recordingStatus===vl||this._recordingStatus===su?this._recordingStatus:(t=(r=this._lazyLoadedSessionRecording)==null?void 0:r.status)!==null&&t!==void 0?t:this._recordingStatus}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this._recordingStatus=G_,this._persistFlagsOnSessionListener=void 0,this._instance=t,!this._instance.sessionManager)throw ia.error("started without valid sessionManager"),new Error(Lh+" started without valid sessionManager. This is a bug.");if(this._config.cookieless_mode===_a)throw new Error(Lh+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get _isRecordingEnabled(){var t,r=!((t=this._instance.get_property(Ii))==null||!t.enabled),e=!this._config.disable_session_recording,n=this._config.disable_session_recording||this._instance.consent.isOptedOut();return le&&r&&e&&!n}startIfEnabledOrStop(t){var r;if(!this._isRecordingEnabled||(r=this._lazyLoadedSessionRecording)==null||!r.isStarted){var e=!Ke(Object.assign)&&!Ke(Array.from);this._isRecordingEnabled&&e?(this._lazyLoadAndStart(t),ia.info("starting")):(this._recordingStatus=G_,this.stopRecording())}}_lazyLoadAndStart(t){var r,e,n;this._isRecordingEnabled&&(this._recordingStatus!==vl&&this._recordingStatus!==su&&(this._recordingStatus=j_),St!=null&&(r=St.__PosthogExtensions__)!=null&&(r=r.rrweb)!=null&&r.record&&(e=St.__PosthogExtensions__)!=null&&e.initSessionRecording?this._onScriptLoaded(t):(n=St.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this._scriptName,(s=>{if(s)return ia.error("could not load recorder",s);this._onScriptLoaded(t)})))}stopRecording(){var t,r;(t=this._persistFlagsOnSessionListener)==null||t.call(this),this._persistFlagsOnSessionListener=void 0,(r=this._lazyLoadedSessionRecording)==null||r.stop()}_discardRecording(){var t,r;(t=this._persistFlagsOnSessionListener)==null||t.call(this),this._persistFlagsOnSessionListener=void 0,(r=this._lazyLoadedSessionRecording)==null||r.discard()}_resetSampling(){var t;(t=this._persistence)==null||t.unregister(wm)}_validateSampleRate(t,r){if(Vt(t))return null;var e,n=os(t)?t:parseFloat(t);return typeof(e=n)!="number"||!Number.isFinite(e)||0>e||e>1?(ia.warn(r+" must be between 0 and 1. Ignoring invalid value:",t),null):n}_persistRemoteConfig(t){if(this._persistence){var r,e,n=this._persistence,s=()=>{var a,i=t.sessionRecording===!1?void 0:t.sessionRecording,o=this._validateSampleRate((a=this._config.session_recording)==null?void 0:a.sampleRate,"session_recording.sampleRate"),l=this._validateSampleRate(i==null?void 0:i.sampleRate,"remote config sampleRate"),d=o!=null?o:l;Vt(d)&&this._resetSampling();var u=i==null?void 0:i.minimumDurationMilliseconds;n.register({[Ii]:Oe({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:Oe({capturePerformance:t.capturePerformance},i==null?void 0:i.networkPayloadCapture),canvasRecording:{enabled:i==null?void 0:i.recordCanvas,fps:i==null?void 0:i.canvasFps,quality:i==null?void 0:i.canvasQuality},sampleRate:d,minimumDurationMilliseconds:Ke(u)?null:u,endpoint:i==null?void 0:i.endpoint,triggerMatchType:i==null?void 0:i.triggerMatchType,masking:i==null?void 0:i.masking,urlTriggers:i==null?void 0:i.urlTriggers,version:i==null?void 0:i.version,triggerGroups:i==null?void 0:i.triggerGroups})})};s(),(r=this._persistFlagsOnSessionListener)==null||r.call(this),this._persistFlagsOnSessionListener=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(s)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this._persistRemoteConfig(t),void this._discardRecording()):(this._persistRemoteConfig(t),void this.startIfEnabledOrStop()):(this._recordingStatus===vl&&(this._recordingStatus=su,ia.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,r){var e;r===void 0&&(r="log"),(e=this._lazyLoadedSessionRecording)!=null&&e.log?this._lazyLoadedSessionRecording.log(t,r):ia.warn("log called before recorder was ready")}get _scriptName(){var t,r,e=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(Ii);return(e==null||(r=e.scriptConfig)==null?void 0:r.script)||"lazy-recorder"}_isRemoteConfigFresh(){var t,r,e=this._instance.get_property(Ii);if(!e)return!1;try{r=typeof e=="object"?e:JSON.parse(e)}catch(s){return ia.warn("persisted remote config for session recording is invalid and will be ignored",s),!1}var n=(t=r.cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-n}_onScriptLoaded(t){var r,e;if((r=St.__PosthogExtensions__)==null||!r.initSessionRecording)return ia.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[S4]:!0});if(this._lazyLoadedSessionRecording||(this._lazyLoadedSessionRecording=(e=St.__PosthogExtensions__)==null?void 0:e.initSessionRecording(this._instance),this._lazyLoadedSessionRecording._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this._isRemoteConfigFresh())return this._recordingStatus===su||this._recordingStatus===vl?void 0:(this._recordingStatus=vl,ia.info("persisted remote config is stale, requesting fresh config before starting"),void new o8(this._instance).load());this._recordingStatus=j_,this._lazyLoadedSessionRecording.start(t)}onRRwebEmit(t){var r;(r=this._lazyLoadedSessionRecording)==null||r.onRRwebEmit==null||r.onRRwebEmit(t)}overrideLinkedFlag(){var t,r;this._lazyLoadedSessionRecording||(r=this._persistence)==null||r.register({[v4]:!0}),(t=this._lazyLoadedSessionRecording)==null||t.overrideLinkedFlag()}overrideSampling(){var t,r;this._lazyLoadedSessionRecording||(r=this._persistence)==null||r.register({[g4]:!0}),(t=this._lazyLoadedSessionRecording)==null||t.overrideSampling()}overrideTrigger(t){var r,e;this._lazyLoadedSessionRecording||(e=this._persistence)==null||e.register({[t==="url"?y4:b4]:!0}),(r=this._lazyLoadedSessionRecording)==null||r.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this._lazyLoadedSessionRecording)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,r){var e;return!((e=this._lazyLoadedSessionRecording)==null||!e.tryAddCustomEvent(t,r))}}},f$={autocapture:class{constructor(t){this._initialized=!1,this._isDisabledServerSide=null,this._elementsChainAsString=!1,this.instance=t,this.rageclicks=new H_(t.config.rageclick),this._elementSelectors=null}initialize(){this.startIfEnabled()}get _config(){var t,r,e=Nn(this.instance.config.autocapture)?this.instance.config.autocapture:{};return e.url_allowlist=(t=e.url_allowlist)==null?void 0:t.map((n=>new RegExp(n))),e.url_ignorelist=(r=e.url_ignorelist)==null?void 0:r.map((n=>new RegExp(n))),e}_addDomEventHandlers(){if(this.isBrowserSupported()){if(le&&tt){var t=e=>{e=e||(le==null?void 0:le.event);try{this._captureEvent(e)}catch(n){f2.error("Failed to capture event",n)}};if(xn(tt,"submit",t,{capture:!0}),xn(tt,"change",t,{capture:!0}),xn(tt,"click",t,{capture:!0}),this._config.capture_copied_text){var r=e=>{e=e||(le==null?void 0:le.event);try{this._captureEvent(e,p2)}catch(n){f2.error("Failed to capture copy/cut event",n)}};xn(tt,"copy",r,{capture:!0}),xn(tt,"cut",r,{capture:!0})}}}else f2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this._elementsChainAsString=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Y2]:!!t.autocapture_opt_out}),this._isDisabledServerSide=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this._elementSelectors=t}getElementSelectors(t){var r,e=[];return(r=this._elementSelectors)==null||r.forEach((n=>{var s=tt==null?void 0:tt.querySelectorAll(n);s==null||s.forEach((a=>{t===a&&e.push(n)}))})),e}get isEnabled(){var t,r,e=(t=this.instance.persistence)==null?void 0:t.props[Y2];if($a(this._isDisabledServerSide)&&!Us(e)&&!this.instance._shouldDisableFlags())return!1;var n=(r=this._isDisabledServerSide)!==null&&r!==void 0?r:!!e;return!!this.instance.config.autocapture&&!n}_captureEvent(t,r){if(r===void 0&&(r="$autocapture"),this.isEnabled){var e,n=O_(t);y8(n)&&(n=n.parentNode||null),r==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(e=this.rageclicks)!=null&&e.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(g,y){if(!le||Nh(g))return!1;var w,k,E;if(Us(y)?(w=!!y&&D_,k=void 0):(w=(E=y==null?void 0:y.css_selector_ignorelist)!==null&&E!==void 0?E:D_,k=y==null?void 0:y.content_ignorelist),w===!1)return!1;var{targetElementList:R}=V_(g,!1);return!(function(O,M){if(O===!1||Ke(O))return!1;var x;if(O===!0)x=JT;else{if(!Gt(O))return!1;if(O.length>10)return Ge.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;x=O.map((N=>N.toLowerCase()))}return M.some((N=>{var{safeText:A,ariaLabel:V}=N;return x.some((F=>A.includes(F)||V.includes(F)))}))})(k,R.map((O=>{var M;return{safeText:ac(O).toLowerCase(),ariaLabel:((M=O.getAttribute("aria-label"))==null?void 0:M.toLowerCase().trim())||""}})))&&!F_(R,w)})(n,this.instance.config.rageclick)&&this._captureEvent(t,"$rageclick");var s=r===p2;if(n&&(function(g,y,w,k,E){var R,O,M,x;if(w===void 0&&(w=void 0),!le||Nh(g)||(R=w)!=null&&R.url_allowlist&&!x_(w.url_allowlist)||(O=w)!=null&&O.url_ignorelist&&x_(w.url_ignorelist))return!1;if((M=w)!=null&&M.dom_event_allowlist){var N=w.dom_event_allowlist;if(N&&!N.some((z=>y.type===z)))return!1}var{parentIsUsefulElement:A,targetElementList:V}=V_(g,k);if(!(function(z,U){var j=U==null?void 0:U.element_allowlist;if(Ke(j))return!0;var J,de=function(qe){if(j.some((Ue=>qe.tagName.toLowerCase()===Ue)))return{v:!0}};for(var Ae of z)if(J=de(Ae))return J.v;return!1})(V,w)||!F_(V,(x=w)==null?void 0:x.css_selector_allowlist))return!1;var F=le.getComputedStyle(g);if(F&&F.getPropertyValue("cursor")==="pointer"&&y.type==="click")return!0;var S=g.tagName.toLowerCase();switch(S){case"html":return!1;case"form":return(E||["submit"]).indexOf(y.type)>=0;case"input":case"select":case"textarea":return(E||["change","click"]).indexOf(y.type)>=0;default:return A?(E||["click"]).indexOf(y.type)>=0:(E||["click"]).indexOf(y.type)>=0&&(Mm.indexOf(S)>-1||g.getAttribute("contenteditable")==="true")}})(n,t,this._config,s,s?["copy","cut"]:void 0)){var{props:a,explicitNoCapture:i}=a$(n,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this._config.element_attribute_ignorelist,elementsChainAsString:this._elementsChainAsString});if(i)return!1;var o=this.getElementSelectors(n);if(o&&o.length>0&&(a.$element_selectors=o),r===p2){var l,d=C8(le==null||(l=le.getSelection())==null?void 0:l.toString()),u=t.type||"clipboard";if(!d)return!1;a.$selected_content=d,a.$copy_type=u}return this.instance.capture(r,a),!0}}}isBrowserSupported(){return ha(tt==null?void 0:tt.querySelectorAll)}},historyAutocapture:class{constructor(t){var r;this._instance=t,this._lastPathname=(le==null||(r=le.location)==null?void 0:r.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ge.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this._popstateListener&&this._popstateListener(),this._popstateListener=void 0,Ge.info("History API monitoring stopped")}monitorHistoryChanges(){var t,r;if(le&&le.history){var e=this;(t=le.history.pushState)!=null&&t.__posthog_wrapped__||q_(le.history,"pushState",(n=>function(s,a,i){n.call(this,s,a,i),e._capturePageview("pushState")})),(r=le.history.replaceState)!=null&&r.__posthog_wrapped__||q_(le.history,"replaceState",(n=>function(s,a,i){n.call(this,s,a,i),e._capturePageview("replaceState")})),this._setupPopstateListener()}}_capturePageview(t){try{var r,e=le==null||(r=le.location)==null?void 0:r.pathname;if(!e)return;e!==this._lastPathname&&this.isEnabled&&this._instance.capture(co,{navigation_type:t}),this._lastPathname=e}catch(n){Ge.error("Error capturing "+t+" pageview",n)}}_setupPopstateListener(){if(!this._popstateListener){var t=()=>{this._capturePageview("popstate")};xn(le,"popstate",t),this._popstateListener=()=>{le&&le.removeEventListener("popstate",t)}}}},heatmaps:class{get _config(){return this.instance.config}constructor(t){var r;this._enabledServerSide=!1,this._initialized=!1,this._flushInterval=null,this.instance=t,this._enabledServerSide=!((r=this.instance.persistence)==null||!r.props[Q2]),this.rageclicks=new H_(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return Nn(this._config.capture_heatmaps)&&this._config.capture_heatmaps.flush_interval_milliseconds&&(t=this._config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Vt(this._config.capture_heatmaps)?Vt(this._config.enable_heatmaps)?this._enabledServerSide:this._config.enable_heatmaps:this._config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this._initialized)return;o$.info("starting..."),this._setupListeners(),this._onVisibilityChange()}else{var t;clearInterval((t=this._flushInterval)!==null&&t!==void 0?t:void 0),this._removeListeners(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var r=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Q2]:r}),this._enabledServerSide=r,this.startIfEnabled()}}getAndClearBuffer(){var t=this._buffer;return this._buffer=void 0,t}_onDeadClick(t){this._onClick(t.originalEvent,"deadclick")}_onVisibilityChange(){this._flushInterval&&clearInterval(this._flushInterval),this._flushInterval=(tt==null?void 0:tt.visibilityState)==="visible"?setInterval(this._flush.bind(this),this.flushIntervalMilliseconds):null}_setupListeners(){le&&tt&&(this._flushHandler=this._flush.bind(this),xn(le,Ou,this._flushHandler),this._onClickHandler=t=>this._onClick(t||(le==null?void 0:le.event)),xn(tt,"click",this._onClickHandler,{capture:!0}),this._onMouseMoveHandler=t=>this._onMouseMove(t||(le==null?void 0:le.event)),xn(tt,"mousemove",this._onMouseMoveHandler,{capture:!0}),this._deadClicksCapture=new __(this.instance,_T,this._onDeadClick.bind(this)),this._deadClicksCapture.startIfEnabledOrStop(),this._onVisibilityChange_handler=this._onVisibilityChange.bind(this),xn(tt,xu,this._onVisibilityChange_handler),this._initialized=!0)}_removeListeners(){var t;le&&tt&&(this._flushHandler&&le.removeEventListener(Ou,this._flushHandler),this._onClickHandler&&tt.removeEventListener("click",this._onClickHandler,{capture:!0}),this._onMouseMoveHandler&&tt.removeEventListener("mousemove",this._onMouseMoveHandler,{capture:!0}),this._onVisibilityChange_handler&&tt.removeEventListener(xu,this._onVisibilityChange_handler),clearTimeout(this._mouseMoveTimeout),(t=this._deadClicksCapture)==null||t.stop(),this._initialized=!1)}_getProperties(t,r){var e=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),a=(function(i,o,l){for(var d=i;d&&xi(d)&&!gs(d,"body");){if(d===l)return!1;if(Dt(o,le==null?void 0:le.getComputedStyle(d).position))return!0;d=w8(d)}return!1})(O_(t),["fixed","sticky"],s);return{x:t.clientX+(a?0:n),y:t.clientY+(a?0:e),target_fixed:a,type:r}}_onClick(t,r){var e;if(r===void 0&&(r="click"),!L_(t.target)&&Z_(t)){var n=this._getProperties(t,r);(e=this.rageclicks)!=null&&e.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._capture(Oe({},n,{type:"rageclick"})),this._capture(n)}}_onMouseMove(t){!L_(t.target)&&Z_(t)&&(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout((()=>{this._capture(this._getProperties(t,"mousemove"))}),500))}_capture(t){if(le){var r=le.location.href,e=this._config.custom_personal_data_properties,n=this._config.mask_personal_data_properties?[...Po,...e||[]]:[],s=rc(r,n,sc);this._buffer=this._buffer||{},this._buffer[s]||(this._buffer[s]=[]),this._buffer[s].push(t)}}_flush(){this._buffer&&!po(this._buffer)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:__,webVitalsAutocapture:class{constructor(t){var r;this._enabledServerSide=!1,this._initialized=!1,this._buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0},this._flushToCapture=()=>{clearTimeout(this._delayedFlushTimer),this._buffer.metrics.length!==0&&(this._instance.capture("$web_vitals",this._buffer.metrics.reduce(((e,n)=>Oe({},e,{["$web_vitals_"+n.name+"_event"]:Oe({},n),["$web_vitals_"+n.name+"_value"]:n.value})),{})),this._buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this._addToBuffer=e=>{var n,s=(n=this._instance.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0);if(Ke(s))La.error("Could not read session ID. Dropping metrics!");else{this._buffer=this._buffer||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var a=this._currentURL();Ke(a)||(Vt(e==null?void 0:e.name)||Vt(e==null?void 0:e.value)?La.error("Invalid metric received",e):!this._maxAllowedValue||this._maxAllowedValue>e.value?(this._buffer.url!==a&&(this._flushToCapture(),this._delayedFlushTimer=setTimeout(this._flushToCapture,this.flushToCaptureTimeoutMs)),Ke(this._buffer.url)&&(this._buffer.url=a),this._buffer.firstMetricTimestamp=Ke(this._buffer.firstMetricTimestamp)?Date.now():this._buffer.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this._buffer.metrics.push(Oe({},e,{$current_url:a,$session_id:s.sessionId,$window_id:s.windowId,timestamp:Date.now()})),this._buffer.metrics.length===this.allowedMetrics.length&&this._flushToCapture()):La.error("Ignoring metric with value >= "+this._maxAllowedValue,e))}},this._startCapturing=()=>{if(!this._initialized){var e,n,s,a,i=St.__PosthogExtensions__;Ke(i)||Ke(i.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:n,onFCP:s,onINP:a}=i.postHogWebVitalsCallbacks),e&&n&&s&&a?(this.allowedMetrics.indexOf("LCP")>-1&&e(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&s(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&a(this._addToBuffer.bind(this)),this._initialized=!0):La.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this._enabledServerSide=!((r=this._instance.persistence)==null||!r.props[th]),this.startIfEnabled()}get _perfConfig(){return this._instance.config.capture_performance}get allowedMetrics(){var t,r,e=Nn(this._perfConfig)?(t=this._perfConfig)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Vt(e)?((r=this._instance.persistence)==null?void 0:r.props[rh])||["CLS","FCP","INP","LCP"]:e}get flushToCaptureTimeoutMs(){return(Nn(this._perfConfig)?this._perfConfig.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=Nn(this._perfConfig)?this._perfConfig.web_vitals_attribution:void 0;return t!=null&&t}get _maxAllowedValue(){var t=Nn(this._perfConfig)&&os(this._perfConfig.__web_vitals_max_value)?this._perfConfig.__web_vitals_max_value:W_;return t>0&&6e4>=t?W_:t}get isEnabled(){var t=er==null?void 0:er.protocol;if(t!=="http:"&&t!=="https:")return La.info("Web Vitals are disabled on non-http/https protocols"),!1;var r=Nn(this._perfConfig)?this._perfConfig.web_vitals:Us(this._perfConfig)?this._perfConfig:void 0;return Us(r)?r:this._enabledServerSide}startIfEnabled(){this.isEnabled&&!this._initialized&&(La.info("enabled, starting..."),this._loadScript(this._startCapturing))}onRemoteConfig(t){if("capturePerformance"in t){var r=Nn(t.capturePerformance)&&!!t.capturePerformance.web_vitals,e=Nn(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[th]:r}),this._instance.persistence.register({[rh]:e})),this._enabledServerSide=r,this.startIfEnabled()}}_loadScript(t){var r,e;(r=St.__PosthogExtensions__)!=null&&r.postHogWebVitalsCallbacks?t():(e=St.__PosthogExtensions__)==null||e.loadExternalDependency==null||e.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(n=>{n?La.error("failed to load script",n):t()}))}_currentURL(){var t=le?le.location.href:void 0;if(t){var r=this._instance.config.custom_personal_data_properties,e=this._instance.config.mask_personal_data_properties?[...Po,...r||[]]:[];return rc(t,e,sc)}La.error("Could not determine current URL")}}},_$={exceptionObserver:class{constructor(t){var r,e,n;this._startCapturing=()=>{var s;if(le&&this.isEnabled&&(s=St.__PosthogExtensions__)!=null&&s.errorWrappingFunctions){var a=St.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=St.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,o=St.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this._unwrapOnError&&this._config.capture_unhandled_errors&&(this._unwrapOnError=a(this.captureException.bind(this))),!this._unwrapUnhandledRejection&&this._config.capture_unhandled_rejections&&(this._unwrapUnhandledRejection=i(this.captureException.bind(this))),!this._unwrapConsoleError&&this._config.capture_console_errors&&(this._unwrapConsoleError=o(this.captureException.bind(this)))}catch(l){gl.error("failed to start",l),this._stopCapturing()}}},this._instance=t,this._remoteEnabled=!((r=this._instance.persistence)==null||!r.props[J2]),this._rateLimiter=new TE({refillRate:(e=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&e!==void 0?e:1,bucketSize:(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&n!==void 0?n:10,refillInterval:1e4,_logger:gl}),this._config=this._requiredConfig(),this.startIfEnabledOrStop()}_requiredConfig(){var t=this._instance.config.capture_exceptions,r={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Nn(t)?r=Oe({},r,t):(Ke(t)?this._remoteEnabled:t)&&(r=Oe({},r,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),r}get isEnabled(){return this._config.capture_console_errors||this._config.capture_unhandled_errors||this._config.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(gl.info("enabled"),this._stopCapturing(),this._loadScript(this._startCapturing)):this._stopCapturing()}_loadScript(t){var r,e;(r=St.__PosthogExtensions__)!=null&&r.errorWrappingFunctions&&t(),(e=St.__PosthogExtensions__)==null||e.loadExternalDependency==null||e.loadExternalDependency(this._instance,"exception-autocapture",(n=>{if(n)return gl.error("failed to load script",n);t()}))}_stopCapturing(){var t,r,e;(t=this._unwrapOnError)==null||t.call(this),this._unwrapOnError=void 0,(r=this._unwrapUnhandledRejection)==null||r.call(this),this._unwrapUnhandledRejection=void 0,(e=this._unwrapConsoleError)==null||e.call(this),this._unwrapConsoleError=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this._remoteEnabled=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[J2]:this._remoteEnabled}),this._config=this._requiredConfig(),this.startIfEnabledOrStop())}onConfigChange(){this._config=this._requiredConfig()}captureException(t){var r,e,n,s=(r=t==null||(e=t.$exception_list)==null||(e=e[0])==null?void 0:e.type)!==null&&r!==void 0?r:"Exception";this._rateLimiter.consumeRateLimit(s)?gl.info("Skipping exception capture because of client rate limiting.",{exception:s}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(t)}},exceptions:class{constructor(t){var r,e;this._suppressionRules=[],this._errorPropertiesBuilder=new DE([new jE,new nT,new KE,new ZE,new eT,new XE,new QE,new tT],(function(n){for(var s=arguments.length,a=new Array(s>1?s-1:0),i=1;s>i;i++)a[i-1]=arguments[i];return function(o,l){l===void 0&&(l=0);for(var d=[],u=o.split("\n"),g=l;u.length>g;g++){var y=u[g];if(1024>=y.length){var w=m_.test(y)?y.replace(m_,"$1"):y;if(!w.match(/\S*Error: /)){for(var k of a){var E=k(w,n);if(E){d.push(E);break}}if(d.length>=50)break}}}return(function(R){if(!R.length)return[];var O=Array.from(R);return O.reverse(),O.slice(0,50).map((M=>{return Oe({},M,{filename:M.filename||(x=O,x[x.length-1]||{}).filename,function:M.function||Ro});var x}))})(d)}})("web:javascript",HE,GE)),this._instance=t,this._suppressionRules=(r=(e=this._instance.persistence)==null?void 0:e.get_property(X2))!==null&&r!==void 0?r:[],this._exceptionStepsConfig=Uu(this._getExceptionStepsConfig()),this._exceptionStepsBuffer=new sT(this._exceptionStepsConfig)}onConfigChange(){this._exceptionStepsConfig=Uu(this._getExceptionStepsConfig()),this._exceptionStepsBuffer.setConfig(this._exceptionStepsConfig)}onRemoteConfig(t){var r,e,n;if("errorTracking"in t){var s=(r=(e=t.errorTracking)==null?void 0:e.suppressionRules)!==null&&r!==void 0?r:[],a=(n=t.errorTracking)==null?void 0:n.captureExtensionExceptions;this._suppressionRules=s,this._instance.persistence&&this._instance.persistence.register({[X2]:this._suppressionRules,[eh]:a})}}get _captureExtensionExceptions(){var t,r=!!this._instance.get_property(eh),e=this._instance.config.error_tracking.captureExtensionExceptions;return(t=e!=null?e:r)!==null&&t!==void 0&&t}buildProperties(t,r){return this._errorPropertiesBuilder.buildFromUnknown(t,{syntheticException:r==null?void 0:r.syntheticException,mechanism:{handled:r==null?void 0:r.handled}})}addExceptionStep(t,r){if(this._exceptionStepsConfig.enabled)try{if(!wn(t)||t.trim().length===0)return void oa.warn("Ignoring exception step because message must be a non-empty string");var e=this._coerceExceptionStepProperties(r),{sanitizedProperties:n,droppedKeys:s}=(function(a){if(!a)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(a).reduce(((o,l)=>rT.has(l)?(i.push(l),o):(o[l]=a[l],o)),{}),droppedKeys:i}})(e);s.length>0&&oa.warn("Ignoring reserved exception step fields",{droppedKeys:s}),this._exceptionStepsBuffer.add(Oe({[Vu]:t,[Bu]:new Date().toISOString()},n))}catch(a){oa.error("Failed to add exception step. Ignoring breadcrumb.",a)}}sendExceptionEvent(t){try{var r=t.$exception_list;if(this._isExceptionList(r)){if(this._matchesSuppressionRule(r))return this._addDroppedExceptionStep("Exception dropped: matched a suppression rule"),void oa.info("Skipping exception capture because a suppression rule matched");if(!this._captureExtensionExceptions&&this._isExtensionException(r))return this._addDroppedExceptionStep("Exception dropped: thrown by a browser extension"),void oa.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this._isPostHogException(r))return this._addDroppedExceptionStep("Exception dropped: thrown by the PostHog SDK"),void oa.info("Skipping exception capture because it was thrown by the PostHog SDK")}var e=this._exceptionStepsConfig.enabled&&Vt(t.$exception_steps)?this._addBufferedExceptionSteps(t):t;try{var n=this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent",_originatedFromCaptureException:!0});return n&&this._exceptionStepsBuffer.clear(),n}catch(s){return oa.error("Failed to capture exception event. Dropping this exception.",s),void this._exceptionStepsBuffer.clear()}}catch(s){return void oa.error("Failed to process exception event. Ignoring this exception.",s)}}_addBufferedExceptionSteps(t){try{var r=this._exceptionStepsBuffer.getAttachable();return r.length===0?t:Oe({},t,{$exception_steps:r})}catch(e){return oa.error("Failed to read buffered exception steps. Capturing exception without steps.",e),t}}_addDroppedExceptionStep(t){this._exceptionStepsConfig.enabled&&this._exceptionStepsBuffer.add({[Vu]:t,[Bu]:new Date().toISOString()})}_coerceExceptionStepProperties(t){return Nn(t)?Oe({},t):{}}_getExceptionStepsConfig(){var t,r;return(t=(r=this._instance.config.error_tracking)==null?void 0:r.exception_steps)!==null&&t!==void 0?t:{}}_matchesSuppressionRule(t){if(t.length===0)return!1;var r=t.reduce(((e,n)=>{var{type:s,value:a}=n;return wn(s)&&s.length>0&&e.$exception_types.push(s),wn(a)&&a.length>0&&e.$exception_values.push(a),e}),{$exception_types:[],$exception_values:[]});return this._suppressionRules.some((e=>{var n=e.values.map((s=>{var a,i=f8[s.operator],o=Gt(s.value)?s.value:[s.value],l=(a=r[s.key])!==null&&a!==void 0?a:[];return o.length>0&&i(o,l)}));return e.type==="OR"?n.some(Boolean):n.every(Boolean)}))}_isExtensionException(t){return t.flatMap((r=>{var e,n;return(e=(n=r.stacktrace)==null?void 0:n.frames)!==null&&e!==void 0?e:[]})).some((r=>r.filename&&r.filename.startsWith("chrome-extension://")))}_isPostHogException(t){if(t.length>0){var r,e,n,s,a=(r=(e=t[0].stacktrace)==null?void 0:e.frames)!==null&&r!==void 0?r:[],i=a[a.length-1];return(n=i==null||(s=i.filename)==null?void 0:s.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}_isExceptionList(t){return!Vt(t)&&Gt(t)}}},g$=Oe({productTours:class{get _persistence(){return this._instance.persistence}constructor(t){this._productTourManager=null,this._cachedTours=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this._persistence&&this._persistence.register({[nh]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,r;this._productTourManager||(t=this._instance).config.disable_product_tours||(r=t.persistence)==null||!r.get_property(nh)||this._loadScript((()=>this._startProductTours()))}_loadScript(t){var r,e;(r=St.__PosthogExtensions__)!=null&&r.generateProductTours?t():(e=St.__PosthogExtensions__)==null||e.loadExternalDependency==null||e.loadExternalDependency(this._instance,"product-tours",(n=>{n?K_.error("Could not load product tours script",n):t()}))}_startProductTours(){var t;!this._productTourManager&&(t=St.__PosthogExtensions__)!=null&&t.generateProductTours&&(this._productTourManager=St.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,r){if(r===void 0&&(r=!1),!Gt(this._cachedTours)||r){var e=this._persistence;if(e){var n=e.props[mu];if(Gt(n)&&!r)return this._cachedTours=n,void t(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:s=>{var a=s.statusCode;if(a!==200||!s.json){var i="Product Tours API could not be loaded, status: "+a;return K_.error(i),void t([],{isLoaded:!1,error:i})}var o=Gt(s.json.product_tours)?s.json.product_tours:[];this._cachedTours=o,e&&e.register({[mu]:o}),t(o,{isLoaded:!0})}})}else t(this._cachedTours,{isLoaded:!0})}getActiveProductTours(t){Vt(this._productTourManager)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this._productTourManager.getActiveProductTours(t)}showProductTour(t){var r;(r=this._productTourManager)==null||r.showTourById(t)}previewTour(t){this._productTourManager?this._productTourManager.previewTour(t):this._loadScript((()=>{var r;this._startProductTours(),(r=this._productTourManager)==null||r.previewTour(t)}))}dismissProductTour(){var t;(t=this._productTourManager)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this._productTourManager)==null||t.nextStep()}previousStep(){var t;(t=this._productTourManager)==null||t.previousStep()}clearCache(){var t;this._cachedTours=null,(t=this._persistence)==null||t.unregister(mu)}resetTour(t){var r;(r=this._productTourManager)==null||r.resetTour(t)}resetAllTours(){var t;(t=this._productTourManager)==null||t.resetAllTours()}cancelPendingTour(t){var r;(r=this._productTourManager)==null||r.cancelPendingTour(t)}}},zd),v$={siteApps:class{constructor(t){this._instance=t,this._bufferedInvocations=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}_eventCollector(t,r){if(r){var e=this.globalsForEvent(r);this._bufferedInvocations.push(e),this._bufferedInvocations.length>1e3&&(this._bufferedInvocations=this._bufferedInvocations.slice(10))}}get siteAppLoaders(){var t;return(t=St._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this._eventCollector.bind(this));this._stopBuffering=()=>{t(),this._bufferedInvocations=[],this._stopBuffering=void 0}}}globalsForEvent(t){var r,e,n,s,a,i,o;if(!t)throw new Error("Event payload is required");var l={},d=this._instance.get_property("$groups")||[],u=this._instance.get_property("$stored_group_properties")||{};for(var[g,y]of Object.entries(u))l[g]={id:d[g],type:g,properties:y};var{$set_once:w,$set:k}=t;return{event:Oe({},f4(t,l$),{properties:Oe({},t.properties,k?{$set:Oe({},(r=(e=t.properties)==null?void 0:e.$set)!==null&&r!==void 0?r:{},k)}:{},w?{$set_once:Oe({},(n=(s=t.properties)==null?void 0:s.$set_once)!==null&&n!==void 0?n:{},w)}:{}),elements_chain:(a=(i=t.properties)==null?void 0:i.$elements_chain)!==null&&a!==void 0?a:"",distinct_id:(o=t.properties)==null?void 0:o.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:l}}setupSiteApp(t){var r=this.apps[t.id],e=()=>{var i;!r.errored&&this._bufferedInvocations.length&&(xa.info("Processing "+this._bufferedInvocations.length+" events for site app with id "+t.id),this._bufferedInvocations.forEach((o=>r.processEvent==null?void 0:r.processEvent(o))),r.processedBuffer=!0),Object.values(this.apps).every((o=>o.processedBuffer||o.errored))&&((i=this._stopBuffering)==null||i.call(this))},n=!1,s=i=>{r.errored=!i,r.loaded=!0,xa.info("Site app with id "+t.id+" "+(i?"loaded":"errored")),n&&e()};try{var{processEvent:a}=t.init({posthog:this._instance,callback(i){s(i)}});a&&(r.processEvent=a),n=!0}catch(i){xa.error(Y_+t.id,i),s(!1)}if(n&&r.loaded)try{e()}catch(i){xa.error("Error while processing buffered events PostHog app with config id "+t.id,i),r.errored=!0}}_setupSiteApps(){var t=this.siteAppLoaders||[];for(var r of t)this.apps[r.id]={id:r.id,loaded:!1,errored:!1,processedBuffer:!1};for(var e of t)this.setupSiteApp(e)}_onCapturedEvent(t){if(Object.keys(this.apps).length!==0){var r=this.globalsForEvent(t);for(var e of Object.values(this.apps))try{e.processEvent==null||e.processEvent(r)}catch(n){xa.error("Error while processing event "+t.event+" for site app "+e.id,n)}}}onRemoteConfig(t){var r,e,n,s=this;if((r=this.siteAppLoaders)!=null&&r.length)return this.isEnabled?(this._setupSiteApps(),void this._instance.on("eventCaptured",(l=>this._onCapturedEvent(l)))):void xa.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((e=this._stopBuffering)==null||e.call(this),(n=t.siteApps)!=null&&n.length)if(this.isEnabled){var a=function(l){var d;St["__$$ph_site_app_"+l]=s._instance,(d=St.__PosthogExtensions__)==null||d.loadSiteApp==null||d.loadSiteApp(s._instance,o,(u=>{if(u)return xa.error(Y_+l,u)}))};for(var{id:i,url:o}of t.siteApps)a(i)}else xa.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},y$={tracingHeaders:class{constructor(t){this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0,this._startCapturing=()=>{var r,e,n=this._getConfiguredHostnames()||[];Ke(this._restoreXHRPatch)&&((r=St.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null||r._patchXHR(n,this._instance.get_distinct_id(),this._instance.sessionManager)),Ke(this._restoreFetchPatch)&&((e=St.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchFetch(n,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}_loadScript(t){var r,e;(r=St.__PosthogExtensions__)!=null&&r.tracingHeadersPatchFns&&t(),(e=St.__PosthogExtensions__)==null||e.loadExternalDependency==null||e.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return i$.error("failed to load script",n);t()}))}_getConfiguredHostnames(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,r;this._getConfiguredHostnames()?this._loadScript(this._startCapturing):((t=this._restoreXHRPatch)==null||t.call(this),(r=this._restoreFetchPatch)==null||r.call(this),this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0)}}},b$=Oe({surveys:class{get _config(){return this._instance.config}constructor(t){this._isSurveysEnabled=void 0,this._surveyManager=null,this._isInitializingSurveys=!1,this._surveyCallbacks=[],this._getSurveysInFlightPromise=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._config.disable_surveys){var r=t.surveys;if(Vt(r))return nn.warn("Flags not loaded yet. Not loading surveys.");var e=Gt(r);this._isSurveysEnabled=e?r.length>0:r,nn.info("flags response received, isSurveysEnabled: "+this._isSurveysEnabled),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],r=0;rlocalStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this._isInitializingSurveys)nn.info("Already initializing surveys, skipping...");else if(this._config.disable_surveys)nn.info(Q_);else if(this._config.cookieless_mode&&this._instance.consent.isOptedOut())nn.info("Not loading surveys in cookieless mode without consent.");else{var t=St==null?void 0:St.__PosthogExtensions__;if(t){if(!Ke(this._isSurveysEnabled)||this._config.advanced_enable_surveys){var r=this._isSurveysEnabled||this._config.advanced_enable_surveys;this._isInitializingSurveys=!0;try{var e=t.generateSurveys;if(e)return void this._completeSurveyInitialization(e,r);var n=t.loadExternalDependency;if(!n)return void this._handleSurveyLoadError(km);n(this._instance,"surveys",(s=>{s||!t.generateSurveys?this._handleSurveyLoadError("Could not load surveys script",s):this._completeSurveyInitialization(t.generateSurveys,r)}))}catch(s){throw this._handleSurveyLoadError("Error initializing surveys",s),s}finally{this._isInitializingSurveys=!1}}}else nn.error("PostHog Extensions not found.")}}_completeSurveyInitialization(t,r){this._surveyManager=t(this._instance,r),this._surveyEventReceiver=new d$(this._instance),nn.info("Surveys loaded successfully"),this._notifySurveyCallbacks({isLoaded:!0})}_handleSurveyLoadError(t,r){nn.error(t,r),this._notifySurveyCallbacks({isLoaded:!1,error:t})}onSurveysLoaded(t){return this._surveyCallbacks.push(t),this._surveyManager&&this._notifySurveyCallbacks({isLoaded:!0}),()=>{this._surveyCallbacks=this._surveyCallbacks.filter((r=>r!==t))}}getSurveys(t,r){if(r===void 0&&(r=!1),this._config.disable_surveys)return nn.info(Q_),t([]);var e,n=this._instance.get_property(oh);if(n&&!r)return t(n,{isLoaded:!0});typeof Promise<"u"&&this._getSurveysInFlightPromise?this._getSurveysInFlightPromise.then((s=>{var{surveys:a,context:i}=s;return t(a,i)})):(typeof Promise<"u"&&(this._getSurveysInFlightPromise=new Promise((s=>{e=s}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._config.token),method:"GET",timeout:this._config.surveys_request_timeout_ms,callback:s=>{var a;this._getSurveysInFlightPromise=null;var i=s.statusCode;if(i!==200||!s.json){var o="Surveys API could not be loaded, status: "+i;nn.error(o);var l={isLoaded:!1,error:o};return t([],l),void(e==null||e({surveys:[],context:l}))}var d,u=s.json.surveys||[],g=u.filter((w=>(function(k){return!(!k.start_date||k.end_date)})(w)&&((function(k){var E;return!((E=k.conditions)==null||(E=E.events)==null||(E=E.values)==null||!E.length)})(w)||(function(k){var E;return!((E=k.conditions)==null||(E=E.actions)==null||(E=E.values)==null||!E.length)})(w))));g.length>0&&((d=this._surveyEventReceiver)==null||d.register(g)),(a=this._instance.persistence)==null||a.register({[oh]:u});var y={isLoaded:!0};t(u,y),e==null||e({surveys:u,context:y})}}))}_notifySurveyCallbacks(t){for(var r of this._surveyCallbacks)try{if(!t.isLoaded)return r([],t);this.getSurveys(r)}catch(e){nn.error("Error in survey callback",e)}}getActiveMatchingSurveys(t,r){if(r===void 0&&(r=!1),!Vt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,r);nn.warn("init was not called")}_getSurveyById(t){var r=null;return this.getSurveys((e=>{var n;r=(n=e.find((s=>s.id===t)))!==null&&n!==void 0?n:null})),r}_checkSurveyEligibility(t){if(Vt(this._surveyManager))return{eligible:!1,reason:g2};var r=typeof t=="string"?this._getSurveyById(t):t;return r?this._surveyManager.checkSurveyEligibility(r):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(Vt(this._surveyManager))return nn.warn("init was not called"),{visible:!1,disabledReason:g2};var r=this._checkSurveyEligibility(t);return{visible:r.eligible,disabledReason:r.reason}}canRenderSurveyAsync(t,r){return Vt(this._surveyManager)?(nn.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:g2})):new Promise((e=>{this.getSurveys((n=>{var s,a=(s=n.find((o=>o.id===t)))!==null&&s!==void 0?s:null;if(a){var i=this._checkSurveyEligibility(a);e({visible:i.eligible,disabledReason:i.reason})}else e({visible:!1,disabledReason:"Survey not found"})}),r)}))}renderSurvey(t,r,e){var n;if(Vt(this._surveyManager))nn.warn("init was not called");else{var s=typeof t=="string"?this._getSurveyById(t):t;if(s!=null&&s.id)if(UT.includes(s.type)){var a=tt==null?void 0:tt.querySelector(r);if(a)return(n=s.appearance)!=null&&n.surveyPopupDelaySeconds?(nn.info("Rendering survey "+s.id+" with delay of "+s.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,o;nn.info("Rendering survey "+s.id+" with delay of "+((i=s.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(o=this._surveyManager)==null||o.renderSurvey(s,a,e),nn.info("Survey "+s.id+" rendered")}),1e3*s.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(s,a,e);nn.warn("Survey element not found")}else nn.warn("Surveys of type "+s.type+" cannot be rendered in the app");else nn.warn("Survey not found")}}displaySurvey(t,r){var e;if(Vt(this._surveyManager))nn.warn("init was not called");else{var n=this._getSurveyById(t);if(n){var s=n;if((e=n.appearance)!=null&&e.surveyPopupDelaySeconds&&r.ignoreDelay&&(s=Oe({},n,{appearance:Oe({},n.appearance,{surveyPopupDelaySeconds:0})})),r.displayType!==Eh.Popover&&r.initialResponses&&nn.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),r.ignoreConditions===!1){var a=this.canRenderSurvey(n);if(!a.visible)return void nn.warn("Survey is not eligible to be displayed: ",a.disabledReason)}r.displayType!==Eh.Inline?this._surveyManager.handlePopoverSurvey(s,r):this.renderSurvey(s,r.selector,r.properties)}else nn.warn("Survey not found")}}cancelPendingSurvey(t){Vt(this._surveyManager)?nn.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},zd),C$={toolbar:class{constructor(t){this.instance=t}_setToolbarState(t){St.ph_toolbar_state=t}_getToolbarState(){var t;return(t=St.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,r,e){if(t===void 0&&(t=void 0),r===void 0&&(r=void 0),e===void 0&&(e=void 0),Y4(this.instance.config)||!le||!tt)return!1;t=t!=null?t:le.location,e=e!=null?e:le.history;try{if(!r){try{le.localStorage.setItem("test","test"),le.localStorage.removeItem("test")}catch(i){return!1}r=le==null?void 0:le.localStorage}var n,s=h$||Wu(t.hash,"__posthog")||Wu(t.hash,"state"),a=s?p_((()=>JSON.parse(atob(decodeURIComponent(s)))))||p_((()=>JSON.parse(decodeURIComponent(s)))):null;return a&&a.action==="ph_authorize"?((n=a).source="url",n&&Object.keys(n).length>0&&(a.desiredHash?t.hash=a.desiredHash:e?e.replaceState(e.state,"",t.pathname+t.search):t.hash="")):((n=JSON.parse(r.getItem(J_)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch(i){return!1}}_callLoadToolbar(t){var r=St.ph_load_toolbar||St.ph_load_editor;!Vt(r)&&ha(r)?r(t,this.instance):X_.warn("No toolbar load function found")}loadToolbar(t){var r=!(tt==null||!tt.getElementById(C4));if(!le||r)return!1;var e=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=Oe({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},e?{instrument:!1}:{});if(le.localStorage.setItem(J_,JSON.stringify(Oe({},n,{source:void 0}))),this._getToolbarState()===2)this._callLoadToolbar(n);else if(this._getToolbarState()===0){var s;this._setToolbarState(1),(s=St.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"toolbar",(a=>{if(a)return X_.error("[Toolbar] Failed to load",a),void this._setToolbarState(0);this._setToolbarState(2),this._callLoadToolbar(n)})),xn(le,"turbolinks:load",(()=>{this._setToolbarState(0),this.loadToolbar(n)}))}return!0}_loadEditor(t){return this.loadToolbar(t)}maybeLoadEditor(t,r,e){return t===void 0&&(t=void 0),r===void 0&&(r=void 0),e===void 0&&(e=void 0),this.maybeLoadToolbar(t,r,e)}}},w$=Oe({experiments:lr},zd),k$={conversations:class{constructor(t){this._isConversationsEnabled=void 0,this._conversationsManager=null,this._isInitializing=!1,this._remoteConfig=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var r=t.conversations;Vt(r)||(Us(r)?this._isConversationsEnabled=r:(this._isConversationsEnabled=r.enabled,this._remoteConfig=r),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this._isConversationsEnabled=void 0,this._remoteConfig=null}loadIfEnabled(){if(!(this._conversationsManager||this._isInitializing||this._instance.config.disable_conversations||Y4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=St==null?void 0:St.__PosthogExtensions__;if(t&&!Ke(this._isConversationsEnabled)&&this._isConversationsEnabled)if(this._remoteConfig&&this._remoteConfig.token){this._isInitializing=!0;try{var r=t.initConversations;if(r)return this._completeInitialization(r),void(this._isInitializing=!1);var e=t.loadExternalDependency;if(!e)return void this._handleLoadError(km);e(this._instance,"conversations",(n=>{n||!t.initConversations?this._handleLoadError("Could not load conversations script",n):this._completeInitialization(t.initConversations),this._isInitializing=!1}))}catch(n){this._handleLoadError("Error initializing conversations",n),this._isInitializing=!1}}else Xr.error("Conversations enabled but missing token in remote config.")}}_completeInitialization(t){if(this._remoteConfig)try{this._conversationsManager=t(this._remoteConfig,this._instance),Xr.info("Conversations loaded successfully")}catch(r){this._handleLoadError("Error completing conversations initialization",r)}else Xr.error("Cannot complete initialization: remote config is null")}_handleLoadError(t,r){Xr.error(t,r),this._conversationsManager=null,this._isInitializing=!1}show(){this._conversationsManager?this._conversationsManager.show():Xr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this._isConversationsEnabled===!0&&!$a(this._conversationsManager)}isVisible(){var t,r;return(t=(r=this._conversationsManager)==null?void 0:r.isVisible())!==null&&t!==void 0&&t}sendMessage(t,r,e){var n=this;return Fr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(t,r,e):(Xr.warn(Ci),null)}))()}getMessages(t,r){var e=this;return Fr((function*(){return e._conversationsManager?e._conversationsManager.getMessages(t,r):(Xr.warn(Ci),null)}))()}markAsRead(t){var r=this;return Fr((function*(){return r._conversationsManager?r._conversationsManager.markAsRead(t):(Xr.warn(Ci),null)}))()}getTickets(t){var r=this;return Fr((function*(){return r._conversationsManager?r._conversationsManager.getTickets(t):(Xr.warn(Ci),null)}))()}requestRestoreLink(t){var r=this;return Fr((function*(){return r._conversationsManager?r._conversationsManager.requestRestoreLink(t):(Xr.warn(Ci),null)}))()}restoreFromToken(t){var r=this;return Fr((function*(){return r._conversationsManager?r._conversationsManager.restoreFromToken(t):(Xr.warn(Ci),null)}))()}restoreFromUrlToken(){var t=this;return Fr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Xr.warn(Ci),null)}))()}getCurrentTicketId(){var t,r;return(t=(r=this._conversationsManager)==null?void 0:r.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,r;return(t=(r=this._conversationsManager)==null?void 0:r.getWidgetSessionId())!==null&&t!==void 0?t:null}_onIdentityChanged(){var t;(t=this._conversationsManager)==null||t.setIdentity()}_onIdentityCleared(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},S$={logs:class{constructor(t){var r;this._isLogsEnabled=!1,this._isLoaded=!1,this._logger=En("[logs]"),this._logBuffer=[],this._intervalLogCount=0,this._intervalWindowStart=0,this._droppedWarned=!1,this._instance=t,this._instance&&(r=this._instance.config.logs)!=null&&r.captureConsoleLogs&&(this._isLogsEnabled=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var r,e=(r=t.logs)==null?void 0:r.captureConsoleLogs;!Vt(e)&&e&&(this._isLogsEnabled=!0,this.loadIfEnabled())}reset(){this._logBuffer=[],this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=void 0),this._intervalLogCount=0,this._intervalWindowStart=0,this._droppedWarned=!1}loadIfEnabled(){if(this._isLogsEnabled&&!this._isLoaded){var t=St==null?void 0:St.__PosthogExtensions__;if(t){var r=t.loadExternalDependency;r?r(this._instance,"logs",(e=>{var n;e||(n=t.logs)==null||!n.initializeLogs?this._logger.error("Could not load logs script",e):(t.logs.initializeLogs(this._instance),this._isLoaded=!0)})):this._logger.error(km)}else this._logger.error("PostHog Extensions not found.")}}captureLog(t){var r,e,n,s,a,i;if(this._instance.is_capturing())if(t&&t.body){var o=(r=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&r!==void 0?r:3e3,l=(n=(s=this._instance.config.logs)==null?void 0:s.maxLogsPerInterval)!==null&&n!==void 0?n:1e3,d=Date.now();if(o>d-this._intervalWindowStart||(this._intervalWindowStart=d,this._intervalLogCount=0,this._droppedWarned=!1),l>this._intervalLogCount){this._intervalLogCount++;var u=(function(g,y){var w=g.level||"info",{text:k,number:E}=W4[w]||OE,R=String(Date.now())+"000000",O={};y.distinctId&&(O.posthogDistinctId=y.distinctId),y.sessionId&&(O.sessionId=y.sessionId),y.currentUrl&&(O["url.full"]=y.currentUrl),y.screenName&&(O["screen.name"]=y.screenName),y.appState&&(O["app.state"]=y.appState),y.activeFeatureFlags&&y.activeFeatureFlags.length>0&&(O.feature_flags=y.activeFeatureFlags);var M=Oe({},O,g.attributes||{}),x={timeUnixNano:R,observedTimeUnixNano:R,severityNumber:E,severityText:k,body:{stringValue:g.body},attributes:h_(M)};return g.trace_id&&(x.traceId=g.trace_id),g.span_id&&(x.spanId=g.span_id),Ke(g.trace_flags)||(x.flags=g.trace_flags),x})(t,this._getSdkContext());this._logBuffer.push({record:u}),((a=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&a!==void 0?a:100)>this._logBuffer.length?this._scheduleFlush():this.flushLogs()}else this._droppedWarned||(this._logger.warn("captureLog dropping logs: exceeded "+l+" logs per "+o+"ms"),this._droppedWarned=!0)}else this._logger.warn("captureLog requires a body")}get logger(){return this._logger_instance||(this._logger_instance={trace:(t,r)=>this.captureLog({body:t,level:"trace",attributes:r}),debug:(t,r)=>this.captureLog({body:t,level:"debug",attributes:r}),info:(t,r)=>this.captureLog({body:t,level:"info",attributes:r}),warn:(t,r)=>this.captureLog({body:t,level:"warn",attributes:r}),error:(t,r)=>this.captureLog({body:t,level:"error",attributes:r}),fatal:(t,r)=>this.captureLog({body:t,level:"fatal",attributes:r})}),this._logger_instance}flushLogs(t){if(this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=void 0),this._logBuffer.length!==0){var r=this._logBuffer;this._logBuffer=[];var e=this._instance.config.logs,n=Oe({"service.name":(e==null?void 0:e.serviceName)||"unknown_service"},(e==null?void 0:e.environment)&&{"deployment.environment":e.environment},(e==null?void 0:e.serviceVersion)&&{"service.version":e.serviceVersion},e==null?void 0:e.resourceAttributes),s=(function(i,o,l,d){return{resourceLogs:[{resource:{attributes:h_(o)},scopeLogs:[{scope:{name:l,version:d},logRecords:i}]}]}})(r.map((i=>i.record)),n,Cr.LIB_NAME,Cr.LIB_VERSION),a=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance._send_retriable_request({method:"POST",url:a,data:s,compression:"best-available",batchKey:"logs",transport:t})}}_scheduleFlush(){var t,r;this._flushTimeout||(this._flushTimeout=setTimeout((()=>{this._flushTimeout=void 0,this.flushLogs()}),(t=(r=this._instance.config.logs)==null?void 0:r.flushIntervalMs)!==null&&t!==void 0?t:3e3))}_getSdkContext(){var t,r={};if(r.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:e}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);r.sessionId=e}if(St!=null&&(t=St.location)!=null&&t.href&&(r.currentUrl=St.location.href),this._instance.featureFlags){var n=this._instance.featureFlags.getFlags();n&&n.length>0&&(r.activeFeatureFlags=n)}return r}}},E$=Oe({},zd,p$,f$,_$,g$,v$,b$,y$,C$,w$,k$,S$);ns.__defaultExtensionClasses=Oe({},E$);var rg,xh=(rg=Bl[ho]=new ns,(function(){function t(){t.done||(t.done=!0,v8=!1,mn(Bl,(function(r){r._dom_loaded()})))}tt!=null&&tt.addEventListener?tt.readyState==="complete"?t():xn(tt,"DOMContentLoaded",t,{capture:!1}):le&&Ge.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),rg);const Gs={RECURRING:"resume",PREAUTHORIZATION:"preauthorization",DEFAULT:"default"},T$=t=>{const r=t==null?void 0:t[0];return[Gs.RECURRING,Gs.PREAUTHORIZATION].includes(r)?r:Gs.DEFAULT},Bi=t=>t===Gs.RECURRING,$8=t=>t===Gs.PREAUTHORIZATION,$$=t=>t===Gs.DEFAULT,ae=Cd("checkout",{state:()=>({transaction:null,transactionAmount:0,transactionAmountCurrency:"",countryCode:null,status:null,lastResponse:null,availableChannels:[],activeChannel:{name:null},ussdProvider:null,isCharging:!1,isRedirected:!1,reusePaymentInfo:!1,useDefaultChannelView:!1,isResumed:!1,paymentInstrument:{},chargeType:Gs.DEFAULT}),actions:{setTransaction(t){t&&(this.transaction=t,this.transactionAmount=t.amount,this.countryCode=Ca[t.currency])},setTransactionAmount(t,r){var e;this.transactionAmount=t,this.transactionAmountCurrency=r||((e=this.transaction)==null?void 0:e.currency)},removeStoreTransaction(){this.transaction=null},setAvailableChannels(t){this.availableChannels=t},resetChannels(){this.availableChannels=[]},setActiveChannel(t){if(this.activeChannel=t,this.transactionAmountCurrency="",this.transaction){const{channelFeesConfig:r}=this.transaction;r!=null&&r[t.name]?this.transactionAmount=dE(r,t.name):this.transactionAmount=this.transaction.amount}},setTransactionStatus(t){this.status=t},saveLastResponse(t){this.lastResponse=t},setIsCharging(t){this.isCharging=t},setIsRedirected(t){this.isRedirected=t},setPaymentInfoReuse(t){this.reusePaymentInfo=t},deleteRememberedCard(t){this.transaction.authorizations=this.transaction.authorizations.filter(({id:r})=>r!==t)},setUseDefaultChannelView(t){this.useDefaultChannelView=t},setTransactionAsResumed(){this.isResumed=!0},setUssdProvider(t){this.ussdProvider=t},savePaymentInstrument(t){this.paymentInstrument={...this.paymentInstrument,...t}},setChargeType(t){this.chargeType=t}}}),mt={INITIALIZE:"checkout_initialized",IDENTIFY_SESSION:"checkout_session-identified",RECORD_SETUP_ERROR:"checkout_setup-errored",RECORD_UNIDENTIFIED_ERROR:"checkout_unidentified-errored",VALIDATION_ERROR:"checkout_validation-errored",CHECKOUT_CLOSED:"checkout_closed",CHECKOUT_RESUMED_AFTER_AUTHENTICATION:"checkout_resumed-after-auth",CLICKED_NEED_HELP:"checkout_clicked-need-help",SWITCHED_LANGUAGE:"checkout_switched-language",USED_ERROR_RESOLUTION:"checkout_used-error-resolution",ATTEMPTED_PAYMENT:"payment_attempted",COMPLETED_PAYMENT:"payment_completed",CONFIRMED_PAYMENT:"payment_confirmed",PAYMENT_ERROR:"payment_errored",REQUIRED_AUTHENTICATION:"auth_required",ATTEMPTED_AUTHENTICATION:"auth_attempted",SUBMITTED_OTP:"auth_submitted-otp",REQUESTED_TO_RESEND_OTP:"auth_requested-otp-resend",REMEMBER_CARD_SHOWN:"card_shown-remember-prompt",CLICKED_REMEMBER_CARD:"card_clicked-remember",CUSTOMER_SAVED_CARD:"card_saved",CUSTOMER_FORGOT_CARD:"card_forgot",CARDS_ENTER_DETAILS_CHECKED_SAVE_CARD:"cards-enter-details_checked-save-card",CARDS_ENTER_DETAILS_UNCHECKED_SAVE_CARD:"cards-enter-details_unchecked-save-card",CARDS_ENTER_OTP_CLICKED_RESEND_OTP:"cards-enter-otp_clicked-resent-otp",CARDS_ENTER_OTP_CLICKED_CANCEL:"cards-enter-otp_clicked-cancel",CARDS_PHONE_NUMBER_CONFIRMED_CLICKED_CONTINUE_TO_PAYMENT:"cards-phone-number-confirmed_clicked-continue-to-payment",CARDS_SAVED_CARDS_LIST_SELECTED_SAVED_CARD:"cards-saved-cards-list_selected-saved-card",CARDS_SAVED_CARDS_LIST_CLICKED_PAY:"cards-saved-cards-list_clicked-pay",CARDS_SAVED_CARDS_LIST_CLICKED_PAY_WITH_ANOTHER_CARD:"cards-saved-cards-list_clicked-pay-with-another-card",CARDS_SAVED_CARDS_LIST_CLICKED_DELETE_CARD:"cards-saved-cards-list_clicked-delete-card",CARDS_ACCESS_SAVED_CARDS_CLICKED_ACCESS_SAVED_CARDS:"cards-access-saved-cards_clicked-access-saved-cards",CARDS_ACCESS_SAVED_CARDS_CLICKED_PAY_WITH_ANOTHER_CARD:"cards-access-saved-cards_clicked-pay-with-another-card",ENCOUNTERED_BANK_TRANSFER_GENERATE_ERROR:"bank-transfer_generate-errored",BANK_TRANSFER_CREDIT_REQUEST_RECEIVED:"bank-transfer_credit-request-received",BANK_TRANSFER_ACCOUNT_EXPIRED:"bank-transfer_account-expired",GENERATED_NEW_BANK_TRANSFER_ACCOUNT:"bank-transfer_account-generated",ENCOUNTERED_WRONG_TRANSFER_AMOUNT_ERROR:"bank-transfer_wrong-amount-errored",CLICKED_BACK_TO_ACCOUNT:"bank-transfer_clicked-back-to-account",CLICKED_SKIP_WAITING:"bank-transfer_clicked-skip-waiting",CLICKED_CONTINUE_WAITING:"bank-transfer_clicked-continue-waiting",RECOVERED_FROM_PWT_TIMEOUT_ERROR:"bank-transfer_recovered-from-timeout",SWITCHED_TO_WEMA_ACCOUNT:"bank-transfer_switched-to-wema",CLICKED_HOW_TO_GENERATE_PAYID:"bank_clicked-how-to-generate-payid",CLICKED_DIGITAL_BANK_MANDATE_REQUERY_BUTTON:"bank_clicked-mandate-requery",ENCOUNTERED_USSD_TRANSFER_PENDING_SCREEN:"ussd_encountered-pending-screen",VIEWED_USSD_PAYMENT_INSTRUCTIONS:"ussd_viewed-payment-instructions"},Rd={CHECKOUT_CLOSE:"checkout-close",SETUP_ERROR:"setup-error",ERROR_RESOLUTION:"error-resolution",PWT_HELP_SCREEN:"pwt-help-screen"},I$=new Set([mt.IDENTIFY_SESSION,mt.ATTEMPTED_PAYMENT,mt.COMPLETED_PAYMENT,mt.RECORD_SETUP_ERROR,mt.REQUIRED_AUTHENTICATION,mt.SUBMITTED_OTP,mt.REQUESTED_TO_RESEND_OTP,mt.CHECKOUT_CLOSED,mt.PAYMENT_ERROR]),Ht=(t,r)=>{var s,a;if(!I$.has(t))return;const{transaction:e}=ae();if(e!=null&&e.isTest)return;const n=e?{merchantId:(s=e.merchant)==null?void 0:s.id,customerId:(a=e.customer)==null?void 0:a.id}:{};xh.capture(t,{...n,...r})};function zr(t,r={}){if(!window.gtag)return;const e=ae(),{transaction:n}=e,s=n.customer.id,a=n.merchant.id,i=n.getTimeSpent(),{domain:o}=n;window.gtag("event",t,{userID:s,merchantID:a,timestamp:i,domain:o,...r})}function I8({mode:t}){Ht(mt.INITIALIZE,t)}function A8({message:t,mode:r}){Ht(mt.RECORD_SETUP_ERROR,{message:t,mode:r})}function z8({id:t,authorizations:r,timeToLoad:e,mode:n}){const s=r&&r.length>0;Ht(mt.IDENTIFY_SESSION,{id:t,hasSavedCard:s,timeToLoad:e,mode:n})}function Pd(t){t.forEach(r=>Ht(mt.VALIDATION_ERROR,r))}function Lm({transactionId:t,channel:r,paymentMethod:e,currency:n,amount:s,usedSavedCard:a,usedPaymentRequestApi:i}){zr(mt.ATTEMPTED_PAYMENT,{transactionId:t,channel:r,paymentMethod:e,currency:n,amount:s,usedSavedCard:a,usedPaymentRequestApi:i}),Ht(mt.ATTEMPTED_PAYMENT,{channel:r,paymentMethod:e,currency:n,amount:s,usedSavedCard:a,usedPaymentRequestApi:i})}function xm(t){Ht(mt.REQUIRED_AUTHENTICATION,{auth:t})}function hc({auth:t,timeSpent:r}){Ht(mt.ATTEMPTED_AUTHENTICATION,{auth:t,timeSpent:r})}function Om({channel:t,phoneNumber:r,provider:e}){Ht(mt.REQUESTED_TO_RESEND_OTP,{channel:t,phoneNumber:r,provider:e})}function R8({channel:t}){Ht(mt.SUBMITTED_OTP,{channel:t})}function Nd({channel:t,message:r}){Ht(mt.PAYMENT_ERROR,{channel:t,message:r})}function Hl(t){Ht(mt.USED_ERROR_RESOLUTION,t)}function A$(t){Ht(mt.RECORD_UNIDENTIFIED_ERROR,t)}function P8({channel:t,currency:r,amount:e,timeSpent:n,usedSavedCard:s,usedPaymentRequestApi:a}){zr(mt.COMPLETED_PAYMENT,{channel:t,currency:r,amount:e,timeSpent:n,usedSavedCard:s,usedPaymentRequestApi:a}),Ht(mt.COMPLETED_PAYMENT,{channel:t,currency:r,amount:e,timeSpent:n,usedSavedCard:s,usedPaymentRequestApi:a})}function N8(){Ht(mt.REMEMBER_CARD_SHOWN)}function M8(){Ht(mt.CLICKED_REMEMBER_CARD)}function L8(){Ht(mt.CUSTOMER_SAVED_CARD)}function x8(){Ht(mt.CUSTOMER_FORGOT_CARD)}function Fm({trigger:t}){Ht(mt.CHECKOUT_CLOSED,{trigger:t})}function O8(){Ht(mt.CHECKOUT_RESUMED_AFTER_AUTHENTICATION)}function Dm({channel:t}){Ht(mt.CONFIRMED_PAYMENT,{channel:t})}function F8({message:t}){Ht(mt.ENCOUNTERED_BANK_TRANSFER_GENERATE_ERROR,{message:t})}function Oh(){Ht(mt.BANK_TRANSFER_CREDIT_REQUEST_RECEIVED)}function D8(){Ht(mt.BANK_TRANSFER_ACCOUNT_EXPIRED)}function Vm(){Ht(mt.GENERATED_NEW_BANK_TRANSFER_ACCOUNT)}function Bm(){Ht(mt.ENCOUNTERED_WRONG_TRANSFER_AMOUNT_ERROR)}function V8(){Ht(mt.CLICKED_BACK_TO_ACCOUNT)}function z$(){Ht(mt.CLICKED_NEED_HELP)}function B8(){Ht(mt.CLICKED_SKIP_WAITING)}function U8(){Ht(mt.CLICKED_CONTINUE_WAITING)}function H8(){Ht(mt.RECOVERED_FROM_PWT_TIMEOUT_ERROR)}function q8(){Ht(mt.CLICKED_HOW_TO_GENERATE_PAYID)}function Um(){Ht(mt.CLICKED_DIGITAL_BANK_MANDATE_REQUERY_BUTTON)}function W8(){Ht(mt.ENCOUNTERED_USSD_TRANSFER_PENDING_SCREEN)}function G8(){Ht(mt.VIEWED_USSD_PAYMENT_INSTRUCTIONS)}function j8(t){Ht(mt.SWITCHED_LANGUAGE,t)}function Z8(){Ht(mt.SWITCHED_TO_WEMA_ACCOUNT)}const kr={enterDetails:{checkedSaveCard(){zr(mt.CARDS_ENTER_DETAILS_CHECKED_SAVE_CARD)},uncheckedSaveCard(){zr(mt.CARDS_ENTER_DETAILS_UNCHECKED_SAVE_CARD)}},enterOtp:{clickedResendOtp(){zr(mt.CARDS_ENTER_OTP_CLICKED_RESEND_OTP)},clickedCancel(){zr(mt.CARDS_ENTER_OTP_CLICKED_CANCEL)}},phoneNumberConfirmed:{clickedContinueToPayment(){zr(mt.CARDS_PHONE_NUMBER_CONFIRMED_CLICKED_CONTINUE_TO_PAYMENT)}},cardsList:{selectedSavedCard(){zr(mt.CARDS_SAVED_CARDS_LIST_SELECTED_SAVED_CARD)},clickedPayWithNewCard(){zr(mt.CARDS_SAVED_CARDS_LIST_CLICKED_PAY,{user:"new"})},clickedPayWithExistingCard(){zr(mt.CARDS_SAVED_CARDS_LIST_CLICKED_PAY,{user:"returning"})},clickedPayWithAnotherCard(){zr(mt.CARDS_SAVED_CARDS_LIST_CLICKED_PAY_WITH_ANOTHER_CARD)},clickedDeleteCard(){zr(mt.CARDS_SAVED_CARDS_LIST_CLICKED_DELETE_CARD)}},accessSavedCards:{clickedAccessSavedCards(){zr(mt.CARDS_ACCESS_SAVED_CARDS_CLICKED_ACCESS_SAVED_CARDS)},clickedPayWithAnotherCard(){zr(mt.CARDS_ACCESS_SAVED_CARDS_CLICKED_PAY_WITH_ANOTHER_CARD)}}},sg=Object.freeze(Object.defineProperty({__proto__:null,identifySession:z8,initializeAnalytics:I8,trackAuthenticationAttempt:hc,trackBankTransferAccountExpired:D8,trackBankTransferCreditRequestReceived:Oh,trackCheckoutClosed:Fm,trackCheckoutResumedAfterAuthentication:O8,trackClickedBackToAccount:V8,trackClickedContinueWaiting:U8,trackClickedDigitalBankMandateRequeryButton:Um,trackClickedHowToGeneratePayId:q8,trackClickedNeedHelp:z$,trackClickedSkipWaiting:B8,trackCustomerSavedCard:L8,trackEncounteredBankTransferGenerateError:F8,trackEncounteredUssdTransferPendingScreen:W8,trackEncounteredWrongTransferAmountError:Bm,trackErrorResolutionUsage:Hl,trackForgotRememberedCard:x8,trackGeneratedNewBankTransferAccount:Vm,trackOtpSubmitted:R8,trackPaymentAttempt:Lm,trackPaymentCompletion:P8,trackPaymentConfirmation:Dm,trackPaymentError:Nd,trackRecoveredFromPwtTimeoutError:H8,trackRememberCardClicked:M8,trackRememberCardShown:N8,trackRequestToResendOtp:Om,trackRequiredAuthentication:xm,trackSavedCard:kr,trackSetupError:A8,trackSwitchedLanguage:j8,trackSwitchedToWemaAcccount:Z8,trackUnidentifiedError:A$,trackValidationErrors:Pd,trackViewedUssdPaymentInstructions:G8},Symbol.toStringTag,{value:"Module"}));function R$(t){window.addEventListener("message",r=>{typeof r.data=="object"&&r.data.type==="inline:url"&&t(r.data.params)})}function P$(t){window.addEventListener("message",r=>{typeof r.data=="object"&&r.data.type==="inline:pay-with-vault"&&t()})}function N$(t){window.addEventListener("message",r=>{const e=typeof r.data=="object"&&r.data.type==="analytics",{action:n,params:s}=r.data;e&&t({action:n,params:s})})}function Ua(t,r){var s;const e=(s=window==null?void 0:window.webkit)==null?void 0:s.messageHandlers,n={loadedCheckout(){var a,i;parent==null||parent.postMessage("loaded:checkout","*"),parent==null||parent.postMessage({event:"loaded:checkout"},"*"),e&&((i=(a=window.webkit.messageHandlers)==null?void 0:a.iosListener)==null||i.postMessage({event:"loaded:checkout"}))},loadedTransaction(a={}){var d,u;const{id:i,customer:o,accessCode:l}=a;parent==null||parent.postMessage("loaded:transaction","*"),parent==null||parent.postMessage({event:"loaded:transaction",data:{id:i,customer:o,accessCode:l}},"*"),e&&((u=(d=window.webkit.messageHandlers)==null?void 0:d.iosListener)==null||u.postMessage({event:"loaded:transaction"}))},close(){var a,i;parent==null||parent.postMessage("close","*"),parent==null||parent.postMessage({event:"close"},"*"),e&&((i=(a=window.webkit.messageHandlers)==null?void 0:a.iosListener)==null||i.postMessage({event:"close"}))},error(a){var i,o;parent==null||parent.postMessage("error","*"),parent==null||parent.postMessage({event:"error",data:a},"*"),e&&((o=(i=window.webkit.messageHandlers)==null?void 0:i.iosListener)==null||o.postMessage({event:"error",data:a}))},bankTransferConfirmationPending(){var a,i;parent==null||parent.postMessage("transfer:pending","*"),parent==null||parent.postMessage({event:"transfer:pending"},"*"),e&&((i=(a=window.webkit.messageHandlers)==null?void 0:a.iosListener)==null||i.postMessage({event:"transfer:pending"}))},success(a){var i,o;parent==null||parent.postMessage(JSON.stringify(a),"*"),parent==null||parent.postMessage({event:"success",data:a},"*"),e&&((o=(i=window.webkit.messageHandlers)==null?void 0:i.iosListener)==null||o.postMessage({event:"success",data:a}))},redirecting(){var a,i;parent==null||parent.postMessage("checkout:redirecting","*"),parent==null||parent.postMessage({event:"checkout:redirecting"},"*"),e&&((i=(a=window.webkit.messageHandlers)==null?void 0:a.iosListener)==null||i.postMessage({event:"checkout:redirecting"}))}};n[t]&&window.parent&&n[t](r)}function M$(t){var e,n,s;const r=(e=window==null?void 0:window.webkit)==null?void 0:e.messageHandlers;parent==null||parent.postMessage({event:"language:changed",language:t},"*"),r&&((s=(n=window.webkit.messageHandlers)==null?void 0:n.iosListener)==null||s.postMessage({event:"language:changed",language:t}))}const Hm={getParams(){const t=this.parse();return t?t.params:null},getPathName(){const t=window.location.pathname;return t==="/"?null:t},redirectTo(t){this.isQueryString(t)||window.location.replace(t)},isQueryString(t){return t.substring(0,1)==="?"}};function qm(t,r,e){if(Fm({trigger:e}),Ua("close"),r!=="popup"){const n=t&&t.cancel_action;n?Hm.redirectTo(n):window&&window.history&&window.history.back&&window.history.back()}}function L$(t,r){if(Fm({trigger:Rd.PWT_HELP_SCREEN}),Ua("bankTransferConfirmationPending"),r!=="popup"){const e=t&&t.cancel_action;e?Hm.redirectTo(e):window&&window.history&&window.history.back&&window.history.back()}}var x$=zb();const Fn=Rb(x$),ee=(t,r)=>{const e=t.__vccOpts||t;for(const[n,s]of r)e[n]=s;return e},O$={name:"AppCelebration",props:{message:String},computed:{formattedMessage(){return Wh.parse(this.message,{ext:".svg",folder:"svg"}).replace("twemoji.maxcdn.com/v","cdnjs.cloudflare.com/ajax/libs/twemoji")}}},F$={class:"celebration"},D$=["innerHTML"];function V$(t,r,e,n,s,a){return f(),v("div",F$,[m("span",{class:"celebration__text",innerHTML:a.formattedMessage},null,8,D$)])}const B$=ee(O$,[["render",V$],["__scopeId","data-v-a134b7ea"]]),U$="/assets/secure-white-en-shnfyXpI.svg",H$="/assets/secure-white-fr-Bp30jDFa.svg",q$="/assets/secure-white-ar-D46gcAv6.svg",W$="/assets/secure-en-TwZ03kcs.svg",G$="/assets/secure-fr-CllCiFdn.svg",j$="/assets/secure-ar-BC-ks7ec.svg",Z$={"14-02-2020":"Happy Valentine's Day ❤️","06-03-2018":"Happy Independence Day 🇬🇭","01-04-2018":"Happy Easter 🙏","01-05-2018":"Happy Worker's Day 💪","27-05-2020":"Happy Children's Day 👶","12-06-2020":"Happy Democracy Day 🇳🇬","11-08-2019":"Barka da Sallah 🎉","01-10-2020":"Happy Independence Day 🇳🇬","25-12-2020":"Merry Christmas 🎉","26-12-2020":"Happy Boxing Day 🎁"},K$={"14-02-2020":"Joyeuse Saint-Valentin ❤️","06-03-2018":"Bonne Fête de l'Indépendance 🇬🇭","01-04-2018":"Bonne Fête de Pâques 🙏","01-05-2018":"Bonne Fête du Travail 💪","27-05-2020":"Bonne Fête des Enfants 👶","12-06-2020":"Bonne Fête de la Démocratie 🇳🇬","11-08-2019":"Barka da Sallah 🎉","01-10-2020":"Bonne Fête de l'Indépendance 🇳🇬","25-12-2020":"Joyeux Noël 🎉"},ag={en:Z$,fr:K$},Y$={type:"otp-error",resolution:"retry-same-payment-method",message:{en:"Incorrect OTP. Please retry with the correct OTP.",fr:"Mot de passe incorrect. Veuillez réessayer avec le bon mot de passe",ar:"رقم التعريف الشخصي المؤقت (OTP) غير صحيح. يرجي اعاده المحاوله باستخدام OTP الصحيحه."}},Q$={type:"system-error",resolution:"retry-same-payment-method",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},J$={"pan is invalid":{type:"card-number-error",resolution:"retry-same-payment-method",message:{en:"Transaction declined.",fr:"Transaction refusée.",ar:"تم رفض العملية."}},"Invalid card number":{type:"card-number-error",resolution:"retry-same-payment-method",message:{en:"Invalid card number",ar:"رقم البطاقة غير صالح"}},"insufficient funds":{type:"default",resolution:"retry-same-channel",message:{en:"Your transaction was declined due to insufficient funds in your bank account.",fr:"Votre transaction a été refusée en raison d'une insuffisance de fonds sur votre compte bancaire.",ar:"تم رفض معاملتك لعدم وجود رصيد كافي في حساب البنك الخاص بك."}},"suspected fraud":{type:"bank-error",resolution:"do-not-retry",message:{en:"Transaction declined by bank or financial institution.",fr:"Transaction refusée par la banque ou l'institution financière.",ar:"تم رفض العملية من قبل البنك أو المؤسسة المالية."}},"exceeds withdrawal limit":{type:"bank-error",resolution:"retry-same-channel",message:{en:"Your transaction was declined because it will cause your bank balance to drop below the required minimum.",fr:"Votre transaction a été refusée car elle entraînerait une baisse du solde de votre compte en dessous du minimum requis.",ar:"تم رفض العملية لأنها ستؤدي إلى انخفاض رصيدك المصرفي عن الحد الأدنى المطلوب."}},"issuer or switch inoperative":{type:"bank-processor-error",resolution:"retry-same-payment-method",message:{en:"Your bank’s network is currently unreachable. Please try again later.",fr:"Le réseau de votre banque est actuellement indisponible. Veuillez réessayer plus tard.",ar:"شبكة البنك الخاص بك لا يمكن الوصول إليها حاليًا. برجاء المحاولة في وقت لاحق."}},"token authorization not successful. incorrect token supplied":{type:"otp-error",resolution:"retry-same-payment-method",message:{en:"Incorrect OTP. Please retry with the correct OTP.",fr:"Mot de passe incorrect. Veuillez réessayer avec le bon mot de passe",ar:"رقم التعريف الشخصي المؤقت (OTP) غير صحيح. يرجي اعاده المحاوله باستخدام OTP الصحيحه."}},invalid_token_supplied:Y$,"no card record":{type:"customer-error",resolution:"retry-same-channel",message:{en:"Transaction declined by bank or financial institution.",fr:"Transaction refusée par la banque ou l'institution financière.",ar:"تم رفض العملية من قبل البنك أو المؤسسة المالية."}},"transaction not permitted to cardholder":{type:"customer-error",resolution:"retry-same-channel",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},"system malfunction":{type:"system-error",resolution:"retry-same-payment-method",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},"incorrect pin":{type:"customer-error",resolution:"retry-same-payment-method",message:{en:"Incorrect pin. Please retry with the correct pin.",fr:"Code PIN incorrect. Veuillez réessayer avec le bon code.",ar:"رقم التعريف الشخصي (PIN) غير صحيح. يرجى إعادة المحاولة مع PIN الصحيح."}},"no check account":{type:"system-error",resolution:"retry-same-payment-method",message:{en:"Your card may not have been properly setup. Try again, but if you keep getting this error, please contact your bank or financial institution.",fr:"Votre carte n'a peut-être pas été correctement configurée. Essayez à nouveau, mais si le problème persiste, veuillez contacter votre banque ou votre institution financière.",ar:"ربما لم يتم إعداد بطاقتك بشكل صحيح. حاول مرة أخرى ، ولكن إذا استمر ظهور هذا الخطأ ، فيرجى الاتصال بالبنك الخاص بك أو المؤسسة المالية الخاص بك."}},"do not honor":{type:"system-error",resolution:"retry-same-channel",message:{en:"Transaction declined by bank or financial institution.",fr:"Transaction refusée par la banque ou l'institution financière.",ar:"تم رفض العملية من قبل البنك أو المؤسسة المالية."}},"refer to financial institution":{type:"system-error",resolution:"retry-same-channel",message:{en:"Transaction declined by bank or financial institution.",fr:"Transaction refusée par la banque ou l'institution financière.",ar:"تم رفض العملية من قبل البنك أو المؤسسة المالية."}},"pin tries exceeded, pick-up":{type:"system-error",resolution:"retry-same-channel",message:{en:"This card was previously blocked by your bank due to multiple incorrect PIN entries. Please contact your bank to collect a new card.",fr:"Cette carte a déjà été bloquée par votre banque en raison de plusieurs saisies incorrectes du code PIN. Veuillez contacter votre banque pour obtenir une nouvelle carte.",ar:"تم حظر هذه البطاقة مسبقًا من قبل البنك الخاص بك بسبب إدخالات متعددة غير صحيحة لرقم التعريف الشخصي (PIN). يرجى الاتصال بالبنك للحصول على بطاقة جديدة."}},"exceeds withdrawal frequency":{type:"system-error",resolution:"retry-same-channel",message:{en:"You have exceeded the number of daily withdrawals allowed for this card. If you’ll need to do more transactions in a day, please contact your bank to increase your daily withdrawal limit.",fr:"Vous avez dépassé le nombre de retraits quotidiens autorisés pour cette carte. Si vous devez effectuer plus de transactions dans une journée, veuillez contacter votre banque pour augmenter votre limite de retrait quotidienne.",ar:"لقد تجاوزت عدد عمليات السحب اليومية المسموح بها لهذه البطاقة. إذا كنت بحاجة إلى إجراء المزيد من المعاملات في يوم واحد ، فيرجى الاتصال بالبنك الخاص بك لزيادة حد السحب اليومي."}},"invalid transaction":{type:"system-error",resolution:"retry-same-payment-method",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},"function not supported":{type:"system-error",resolution:"retry-same-payment-method",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},"pin tries exceeded":{type:"system-error",resolution:"retry-same-channel",message:{en:"PIN tries have been exceeded. Please do not try again until you reset your PIN. Your card may get blocked by your bank if you continue trying. To reset your PIN, please contact your bank.",fr:"Le nombre d'essais du code PIN a été dépassé. Veuillez ne pas réessayer avant d'avoir réinitialisé votre code PIN. Votre carte pourrait être bloquée par votre banque si vous persistez. Pour réinitialiser votre code PIN, veuillez contacter votre banque.",ar:"تم تجاوز محاولات إدخال رقم التعريف الشخصي (PIN) الخاص بك. من فضلك لا تحاول مرة أخرى حتى تقوم بإعادة ضبط رقم التعريف الشخصي الخاص بك. قد يتم حظر بطاقتك من قبل مصرفك إذا استمرت في المحاولة. لإعادة تعيين PIN ، يرجى الاتصال بالبنك الخاص بك."}},"contact acquirer lost card, pick-up":{type:"bank-error",resolution:"retry-same-channel",message:{en:"This card has been reported as missing. Please contact your bank.",fr:"La perte de cette carte a été signalée. Veuillez contacter votre banque.",ar:"تم الإبلاغ عن هذه البطاقة على أنها مفقودة. يرجى الاتصال بالبنك الخاص بك."}},"the pin contains an invalid character":{type:"customer-error",resolution:"retry-same-payment-method",message:{en:"Your PIN must be exactly 4 digits.",fr:"Votre code PIN doit comporter exactement 4 chiffres.",ar:"يجب أن يتكون رقم التعريف الشخصي الخاص بك (PIN) من 4 أرقام بالضبط."}},"exceeds maximum amount allowed":{type:"system-error",resolution:"retry-same-channel",message:{en:"The value of this transaction exceeds the maximum amount allowed for this card.",fr:"La valeur de cette transaction dépasse le montant maximum autorisé pour cette carte.",ar:"تجاوزت قيمة هذه المعاملة الحد الأقصى للمبلغ المسموح به لهذه البطاقة."}},"no savings account":{type:"system-error",resolution:"retry-same-payment-method",message:{en:"Your card may not have been properly setup. Try again, but if you keep getting this error, please contact your bank or financial institution.",fr:"Votre carte n'a peut-être pas été correctement configurée. Essayez à nouveau, mais si le problème persiste, veuillez contacter votre banque ou votre institution financière.",ar:"قد لا تكون بطاقتك قد تم إعدادها بشكل صحيح. حاول مرة أخرى ، ولكن إذا استمرت في الحصول على هذا الخطأ ، فيرجى الاتصال بالبنك الخاص بك أو مؤسستك المالية."}},"amount greater than daily transaction limit":{type:"system-error",resolution:"retry-same-channel",message:{en:"You have exceeded your daily withdrawal limit for this card",fr:"Vous avez dépassé votre limite de retrait quotidienne pour cette carte.",ar:"لقد تجاوزت حد السحب اليومي لهذه البطاقة"}},"suspected malfunction":{type:"system-error",resolution:"retry-same-payment-method",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},"refer to financial institution, special condition":{type:"system-error",resolution:"retry-same-channel",message:{en:"This transaction was blocked by your bank or financial institution. Please contact your bank for help.",fr:"Cette transaction a été bloquée par votre banque ou votre institution financière. Veuillez contacter votre banque pour obtenir de l'aide.",ar:"تم حظر هذه العملية من قبل البنك الخاص بك أو مؤسستك المالية. يرجى الاتصال بالبنك الخاص بك للحصول على المساعدة."}},"transaction not permitted on terminal":{type:"system-error",resolution:"retry-same-channel",message:{en:"Your card may not be enabled for web transactions. Please confirm with your bank that this card can be used for online payments.",fr:"Il se peut que votre carte ne soit pas activée pour les transactions en ligne. Veuillez confirmer auprès de votre banque que cette carte peut être utilisée pour les paiements en ligne.",ar:"قد لا يتم تمكين بطاقتك للمعاملات عبر الإنترنت. يُرجى التأكيد مع البنك الخاص بك أنه يمكن استخدام هذه البطاقة في عمليات الدفع عبر الإنترنت."}},"cardinal lookup failed":{type:"bank-error",resolution:"retry-same-channel",message:{en:"Transaction declined by bank or financial institution.",fr:"Transaction refusée par la banque ou l'institution financière.",ar:"تم رفض العملية من قبل البنك أو المؤسسة المالية."}},failed:Q$,"transaction declined. please use the test card":{type:"default",resolution:"use-test-details",message:{en:"Transaction declined. Please use test payment details.",fr:"Transaction refusée. Veuillez utiliser les informations du paiement test.",ar:"تم رفض العملية. الرجاء استخدام تفاصيل الدفع التجريبية."}},"transaction already succeeded":{type:"system-error",resolution:"success",message:{en:"Transaction was already successful.",fr:"La transaction a déjà réussi.",ar:"تم اتمام العملية بنجاح بالفعل."}},"transaction already successful":{type:"system-error",resolution:"success",message:{en:"Transaction was already successful.",fr:"La transaction a déjà réussi.",ar:"تم اتمام العملية بنجاح بالفعل."}},"ooooops. Something went wrong, invalid transaction":{type:"default",resolution:"retry-same-payment-method",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},"declined. please use the test mobile money number since you are doing a test transaction":{type:"default",resolution:"use-test-details",message:{en:"Please use the test mobile money number for this test transaction.",fr:"Veuillez utiliser le numéro mobile money test pour cette transaction test."}},"processing... please wait":{type:"system-error",resolution:"requery",message:{en:"Please wait while we process your payment.",fr:"Veuillez patienter pendant que nous traitons votre paiement.",ar:"يرجى الانتظار أثناء معالجة عملية الدفع الخاص بك."}},"token authentication failed. incorrect token supplied":{type:"otp-error",resolution:"retry-same-channel",message:{en:"Incorrect OTP. Please retry with the correct OTP.",fr:"Mot de passe incorrect. Veuillez réessayer avec le bon mot de passe ",ar:"رقم التعريف الشخصي المؤقت (OTP) غير صحيح. يرجي اعاده المحاوله باستخدام OTP الصحيحه."}},"daily transaction limit exceeded":{type:"default",resolution:"retry-same-channel",message:{en:"This transaction was declined because it would cause you to exceed your daily transaction limit.",fr:"Cette transaction a été refusée car elle vous aurait fait dépasser votre limite quotidienne de transactions.",ar:"تم رفض العملية لأنها ستؤدي إلى انخفاض رصيدك المصرفي عن الحد الأدنى المطلوب."}},"our test bank account for emandate is\nzenith bank\naccount:0000000000\ntoken:123456":{type:"default",resolution:"use-test-details",message:{en:"Please use the test bank account for this transaction.",fr:"Veuillez utiliser le compte bancaire test pour cette transaction."}},"_this2.pushersubscription.bind is not a function":{type:"pusher-error",resolution:"use-other-channel",message:{en:"We were unable to setup this payment method. Please use another payment method.",fr:"Nous n'avons pas pu configurer ce mode de paiement. Veuillez utiliser un autre mode de paiement.",ar:"لم نتمكن من إعداد طريقة الدفع .الرجاء استخدام طريقة دفع أخرى."}},"transaction record not found on payment gateway":{type:"bank-error",resolution:"retry-same-payment-method",message:{en:"We were unable to complete this transaction.",fr:"Nous n'avons pas pu effectuer cette transaction.",ar:"لم نتمكن من إتمام العملية."}},"request failed with status code 400":{code:"040",type:"system-error",resolution:"use-other-channel",message:{en:"We were unable to complete this transaction. Please try again in a few minutes or try a different payment channel.",fr:"Nous n'avons pas pu effectuer cette transaction. Veuillez réessayer dans quelques minutes ou essayez un autre canal de paiement.",ar:"لم نتمكن من إكمال هذه العملية. يرجى المحاولة مرة أخرى في بضع دقائق أو تجربة قناة دفع مختلفة."}},"currency not yet supported":{code:"040",type:"system-error",resolution:"use-other-channel",message:{en:"This payment method does not support this currency.",fr:"Ce mode de paiement ne prend pas en charge cette devise.",ar:"طريقة الدفع لا تدعم هذه العملة."}},"incorrect token supplied\nour test token is 123456":{type:"default",resolution:"use-test-details",message:{en:"You entered an incorrect token. Please enter our test token: 123456.",fr:"Vous avez saisi un code incorrect. Veuillez entrer notre code test : 123456.",ar:"لقد أدخلت رمزًا غير صحيح. الرجاء إدخال الرمز التجريبي الخاص بنا: 123456."}},"no managed account available":{type:"system-error",resolution:"use-other-channel",message:{en:"We’re having some trouble generating an account number. Please pay with any of our other channels.",fr:"Nous avons des difficultés à générer un numéro de compte. Veuillez payer avec l'une de nos autres options.",ar:"نواجه بعض المتاعب في إنشاء رقم حساب .يرجى الدفع مع أي من قنواتنا الأخرى."}},"incorrect amount sent":{type:"customer-error",resolution:"retry-same-channel",message:{en:"We received a wrong amount, and a reversal/refund has been initiated. Please transfer the correct amount to complete this transaction.",fr:"Nous avons reçu un montant erroné, et l'annulation/le remboursement a été traité(e). Veuillez transférer le montant correct pour terminer cette transaction.",ar:"تم تلقي مبلغ خطأ وتم إلغاء العملية / رد المبلغ. يرجى تحويل المبلغ الصحيح لإكمال هذه المعاملة."}},"account expired":{type:"customer-error",resolution:"retry-same-channel",message:{en:"Account expired",fr:"Compte expiré",ar:"انتهاء صلاحية الحساب"}},"timed out":{type:"system-error",resolution:"retry-same-channel",message:{en:"Transaction not completed, please try again.",fr:"La transaction n'a pas abouti, veuillez réessayer.",ar:"المعاملة لم تكتمل ، يرجى المحاولة مرة أخرى."}},"ussd code expired":{type:"customer-error",resolution:"retry-same-channel",message:{en:"USSD code expired",fr:"USSD code expiré"}},"payment instrument has exceeded card scheme limit":{type:"customer-error",resolution:"use-other-channel",message:{en:"Payment instrument has exceeded card scheme limit",fr:"Payment instrument has exceeded card scheme limit"}},"oooops, your payment has exceeded the time to pay.":{type:"timeout-error",resolution:"close-checkout",message:{en:"Oops, this payment has timed out."}},"cannot verify user profile for using this transaction":{type:"user-error",resolution:"use-other-channel",message:{en:"Sorry, we encountered a problem"}},"validation match failed":{type:"validation-error",resolution:"retry-same-channel",message:{en:"Phone number does not match your bank account or BVN record"}},"attempts limit exceeded":{type:"ratelimit-error",resolution:"retry-same-channel",message:{en:"Sorry, we encountered a problem"}},"nibss query failed":{type:"nibss-error",resolution:"use-other-channel",message:{en:"Sorry, we encountered a problem"}}},X$=JSON.parse('[{"name":"Access Bank","slug":"access-bank","code":"044","longcode":"044150149","gateway":"emandate","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":1,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"ALAT by WEMA","slug":"alat-by-wema","code":"035A","longcode":"035150103","gateway":"emandate","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":27,"createdAt":"2017-11-15T12:21:31.000Z","updatedAt":"2017-11-15T12:21:31.000Z"},{"name":"Citibank Nigeria","slug":"citibank-nigeria","code":"023","longcode":"023150005","gateway":"","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":2,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Diamond Bank","slug":"diamond-bank","code":"063","longcode":"063150162","gateway":"emandate","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":3,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Ecobank Nigeria","slug":"ecobank-nigeria","code":"050","longcode":"050150010","gateway":"","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":4,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Enterprise Bank","slug":"enterprise-bank","code":"084","longcode":"084150015","gateway":"","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":5,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Fidelity Bank","slug":"fidelity-bank","code":"070","longcode":"070150003","gateway":"emandate","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":6,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"First Bank of Nigeria","slug":"first-bank-of-nigeria","code":"011","longcode":"011151003","gateway":"emandate","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":7,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"First City Monument Bank","slug":"first-city-monument-bank","code":"214","longcode":"214150018","gateway":"emandate","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":8,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Guaranty Trust Bank","slug":"guaranty-trust-bank","code":"058","longcode":"058152036","gateway":"ibank","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":9,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Jaiz Bank","slug":"jaiz-bank","code":"301","longcode":"301080020","gateway":null,"pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":22,"createdAt":"2016-10-10T17:26:29.000Z","updatedAt":"2016-10-10T17:26:29.000Z"},{"name":"Keystone Bank","slug":"keystone-bank","code":"082","longcode":"082150017","gateway":"","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":11,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"MainStreet Bank","slug":"mainstreet-bank","code":"014","longcode":"014150331","gateway":"","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":12,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Parallex Bank","slug":"parallex-bank","code":"526","longcode":"","gateway":null,"pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":26,"createdAt":"2017-03-31T13:54:29.000Z","updatedAt":"2017-03-31T13:54:29.000Z"},{"name":"Providus Bank","slug":"providus-bank","code":"101","longcode":"","gateway":null,"pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":25,"createdAt":"2017-03-27T16:09:29.000Z","updatedAt":"2017-03-27T16:09:29.000Z"},{"name":"Skye Bank","slug":"skye-bank","code":"076","longcode":"076151006","gateway":"etz","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":13,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Stanbic IBTC Bank","slug":"stanbic-ibtc-bank","code":"221","longcode":"221159522","gateway":"etz","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":14,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Standard Chartered Bank","slug":"standard-chartered-bank","code":"068","longcode":"068150015","gateway":"","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":15,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Sterling Bank","slug":"sterling-bank","code":"232","longcode":"232150016","gateway":"emandate","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":16,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Suntrust Bank","slug":"suntrust-bank","code":"100","longcode":"","gateway":null,"pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":23,"createdAt":"2016-10-10T17:26:29.000Z","updatedAt":"2016-10-10T17:26:29.000Z"},{"name":"Union Bank of Nigeria","slug":"union-bank-of-nigeria","code":"032","longcode":"032080474","gateway":"etz","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":17,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"United Bank For Africa","slug":"united-bank-for-africa","code":"033","longcode":"033153513","gateway":"etz","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":18,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Unity Bank","slug":"unity-bank","code":"215","longcode":"215154097","gateway":"etz","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":19,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Wema Bank","slug":"wema-bank","code":"035","longcode":"035150103","gateway":"","pay_with_bank":false,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":20,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"name":"Zenith Bank","slug":"zenith-bank","code":"057","longcode":"057150013","gateway":"emandate","pay_with_bank":true,"active":true,"is_deleted":null,"country":"Nigeria","currency":"NGN","type":"nuban","id":21,"createdAt":"2016-07-14T10:04:29.000Z","updatedAt":"2016-07-14T10:04:29.000Z"},{"id":62,"name":"Kuda Bank","slug":"kuda-bank","code":"50211","longcode":"50211","gateway":"digitalbankmandate","pay_with_bank":true,"pay_with_bank_transfer":false,"active":true,"is_deleted":null,"created_at":"2019-11-12 23:12:00","updated_at":"2019-11-12 23:12:00","country":"Nigeria","currency":"NGN","type":"nuban"},{"id":530,"name":"OPay Digital Services Limited (OPay)","slug":"opay","code":"00711","longcode":"00711","gateway":"ibank","pay_with_bank":true,"supports_transfer":true,"active":true,"country":"Nigeria","currency":"NGN","type":"nuban","is_deleted":false,"createdAt":"2023-07-24T15:53:16.000Z","updatedAt":"2023-09-28T09:46:16.000Z"}]');function K8(t,r){return[...t].sort((e,n)=>{const s=e[r],a=n[r];return sa?1:0})}function Y8(t,r,e){return[...e].sort((n,s)=>{const a=n[r],i=s[r];return t.indexOf(a)>t.indexOf(i)?1:-1})}const ls=Cd("defaults",{state:()=>({banks:X$,resolutions:J$,celebrations:ag[Zr.I18N_DEFAULT_LANGUAGE]||ag.en}),getters:{knownErrors:t=>t.resolutions},actions:{setBanks(t){this.banks=K8(t,"name")},setResolutions(t){this.resolutions=t}}});function ig(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{updateCardMessage:e=>{const{normalize:n}=e;return n(["Whenever you add a new card, we’ll charge a tiny amount to authorize this card. This will be refunded immediately."])},securedByPaystack:e=>{const{normalize:n}=e;return n(["Secured by Paystack"])}},fr:{updateCardMessage:e=>{const{normalize:n}=e;return n(["Chaque fois que vous ajoutez une nouvelle carte, nous facturons un petit montant pour autoriser cette carte. Ce montant vous sera remboursé immédiatement."])},securedByPaystack:e=>{const{normalize:n}=e;return n(["Sécurisé par Paystack"])}},ar:{updateCardMessage:e=>{const{normalize:n}=e;return n(["عند إضافة بطاقة جديدة ، سيتم خصم مبلغ رمزي للمصادقة على هذه البطاقة. سيتم رد هذا المبلغ على الفور."])},securedByPaystack:e=>{const{normalize:n}=e;return n(["مضمون من قبل Paystack"])}}}})}const Q8={name:"AppFooter",components:{Celebration:B$},data(){return{isHovered:!1,celebrationPlaying:!0,celebrationDuration:3e3,queuedTransition:null}},computed:{...we(Nr,["mode","language"]),...we(ae,["transaction"]),...we(ls,["celebrations"]),useLightFooter(){return this.mode===Ms.POPUP&&!Fn()},showCelebration(){return this.celebration&&(this.celebrationPlaying||this.isHovered)},isCardUpdateTransaction(){var t;return((t=this.transaction)==null?void 0:t.transactionType)==="update_card"},celebration(){const t=T2(new Date,"dd-MM-yyy");return this.celebrations[t]},securedByPaystackImage(){const t={light:{en:U$,fr:H$,ar:q$},dark:{en:W$,fr:G$,ar:j$}},r=this.useLightFooter?"light":"dark";return t[r][this.language]||t[r].en}},created(){const t=setTimeout(()=>{this.celebrationPlaying=!1,clearTimeout(t)},this.celebrationDuration)},mounted(){this.celebration&&document.addEventListener("mousemove",this.onHover)},beforeUnmount(){this.celebration&&document.removeEventListener("mousemove",this.onHover)},methods:{getDate(){return T2(new Date,"dd-MM-yyy")},onHover(){this.queuedTransition&&clearTimeout(this.queuedTransition);const r=this.$refs.footerElement.matches(":hover");this.isHovered!==r&&(this.queuedTransition=setTimeout(()=>{this.isHovered=r},100))}}},eI={key:0,class:"footer__celebration"},tI={key:1},nI=["src","alt"],rI={key:0,class:"footer__link footer__card-update","data-testid":"cardUpdateFooter"};function sI(t,r,e,n,s,a){const i=P("celebration");return f(),v("footer",{ref:"footerElement",class:pt(["footer",{"footer--light":a.useLightFooter}]),"data-testid":"paystackWordmark"},[a.isCardUpdateTransaction?D("",!0):(f(),se(rt,{key:0,name:"fade-down",mode:"out-in"},{default:ne(()=>[a.showCelebration?(f(),v("div",eI,[$(i,{message:a.celebration},null,8,["message"])])):(f(),v("div",tI,[m("a",{class:pt(["footer__link",{"footer__link--disabled":a.celebration}]),"data-testid":"defaultFooter",href:"https://paystack.com/what-is-paystack",rel:"noreferrer",target:"_blank"},[m("img",{src:a.securedByPaystackImage,alt:t.$t("securedByPaystack")},null,8,nI)],2)]))]),_:1})),$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[a.isCardUpdateTransaction?(f(),v("p",rI,T(t.$t("updateCardMessage")),1)):D("",!0)]),_:1})],2)}typeof ig=="function"&&ig(Q8);const aI=ee(Q8,[["render",sI],["__scopeId","data-v-ea4f5838"]]),iI={name:"AppContainer",components:{AppFooter:aI},props:{size:{type:String,default:"md"}},computed:{...we(Nr,["mode"]),...we(ae,["transaction","chargeType"]),isRecurringCardCharge(){return Bi(this.chargeType)},shouldHideFooter(){var t;return((t=this.transaction)==null?void 0:t.isWhiteLabeled)&&this.isRecurringCardCharge}}},oI={class:"card"};function lI(t,r,e,n,s,a){const i=P("app-footer");return f(),v("section",{class:pt("container container--".concat(e.size," container--").concat(t.mode))},[m("div",oI,[Ks(t.$slots,"default",{},void 0,!0)]),a.shouldHideFooter?D("",!0):(f(),se(i,{key:0}))],2)}const J8=ee(iI,[["render",lI],["__scopeId","data-v-9507711b"]]),cI={name:"CloseButton",emits:["click"],computed:{...we(Nr,["mode"])}};function uI(t,r,e,n,s,a){return f(),v("button",{type:"button","aria-label":"Close",onClick:r[0]||(r[0]=i=>t.$emit("click")),class:pt("button button--".concat(t.mode))},[...r[1]||(r[1]=[m("svg",{width:"10",height:"9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M5.572 4.033L8.89.71a.4.4 0 0 0-.566-.566L5.003 3.459 1.681.145a.4.4 0 0 0-.566.566L4.44 4.033\n 1.115 7.354a.398.398 0 0 0 0 .566.4.4 0 0 0 .566 0l3.322-3.33 3.322 3.33a.4.4 0 0 0 .566-.566L5.57 4.033z",fill:"#000"})],-1)])],2)}const X8=ee(cI,[["render",uI],["__scopeId","data-v-9a8563d3"]]),dI={name:"FooterButton",props:{icon:String,text:String},emits:["click"]},hI={key:0,class:"icon"},mI={key:0,width:"12",height:"12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pI={key:1,width:"10",height:"9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fI={class:"text"};function _I(t,r,e,n,s,a){return f(),v("button",{type:"button",onClick:r[0]||(r[0]=i=>t.$emit("click"))},[e.icon?(f(),v("span",hI,[e.icon==="change"?(f(),v("svg",mI,[...r[1]||(r[1]=[m("path",{d:"M3.778 7.667H1V4.889M11 7.111V4.333H8.222M1 7.667L7.667 1M4.333 11L11 4.333",stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):D("",!0),e.icon==="cancel"?(f(),v("svg",pI,[...r[2]||(r[2]=[m("path",{d:"M5.572 4.033L8.89.71a.4.4 0 0 0-.566-.566L5.003 3.459 1.681.145a.4.4 0 0 0-.566.566L4.44 4.033\n 1.115 7.354a.398.398 0 0 0 0 .566.4.4 0 0 0 .566 0l3.322-3.33 3.322 3.33a.4.4 0 0 0 .566-.566L5.57 4.033z",fill:"#000"},null,-1)])])):D("",!0)])):D("",!0),m("span",fI,T(e.text),1)])}const e5=ee(dI,[["render",_I],["__scopeId","data-v-9793b420"]]);function og(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{cancelPayment:e=>{const{normalize:n}=e;return n(["Cancel Payment"])},error:e=>{const{normalize:n}=e;return n(["Error"])},test:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Hello ",s(a("amount"))])},errorTitle:{404:e=>{const{normalize:n}=e;return n(["We couldn't find this page"])}},errorMessage:{404:e=>{const{normalize:n}=e;return n(["We checked everywhere, but nothing came up for the link provided"])},notFound:e=>{const{normalize:n}=e;return n(["It's either because the link is incorrect or the transaction is already completed"])}},reload:e=>{const{normalize:n}=e;return n(["Reload"])}},fr:{cancelPayment:e=>{const{normalize:n}=e;return n(["Annuler le Paiement"])},error:e=>{const{normalize:n}=e;return n(["Erreur"])},errorTitle:{404:e=>{const{normalize:n}=e;return n(["Impossible de trouver cette page"])}},errorMessage:{404:e=>{const{normalize:n}=e;return n(["Nous avons vérifié partout, mais rien n'est apparu pour le lien fourni"])},notFound:e=>{const{normalize:n}=e;return n(["C'est soit parce que le lien est incorrect, soit parce que la transaction a déjà été effectuée"])}},reload:e=>{const{normalize:n}=e;return n(["Recharger"])}},ar:{cancelPayment:e=>{const{normalize:n}=e;return n(["الغاء الدفع"])},error:e=>{const{normalize:n}=e;return n(["حدث خطأ ما"])},errorTitle:{404:e=>{const{normalize:n}=e;return n(["لم نتمكن من العثور على هذه الصفحة"])}},errorMessage:{404:e=>{const{normalize:n}=e;return n(["لقد تحققنا في كل مكان ، ولكن لم يتم العثور على الرابط المقدم"])},notFound:e=>{const{normalize:n}=e;return n(["إما لأن الرابط غير صحيح أو أن المعاملة قد اكتملت بالفعل"])}},reload:e=>{const{normalize:n}=e;return n(["إعادة تحميل"])}}}})}const t5={name:"SetupError",components:{Container:J8,CloseButton:X8,FooterButton:e5},props:{code:{type:Number,default:500},title:{type:String,required:!0},message:{type:[String,Error],required:!0},showReload:{type:Boolean,default:!0}},emits:["reload"],computed:{...we(Nr,["mode"]),...we(ae,["transaction"]),errorTitle(){return this.code===404?this.$t("errorTitle.404"):this.title},errorMessage(){return this.code===404?this.$t("errorMessage.404"):this.message==="Not found"?this.$t("errorMessage.notFound"):this.message.toString()},errorIconPath(){return this.code===404?gE:Td},shouldShowReload(){return this.code===404?!1:this.showReload}},methods:{onCancel(){qm(this.transaction,this.mode,Rd.SETUP_ERROR)}}},gI={class:"setup-error"},vI=["src","alt"],yI={class:"setup-error__title"},bI={class:"setup-error__message"},CI={class:"setup-error__actions"},wI={class:"checkout__footer mobile-only"},kI={class:"desktop-only"};function SI(t,r,e,n,s,a){const i=P("footer-button"),o=P("close-button"),l=P("container");return f(),se(l,{size:"sm"},{default:ne(()=>[m("div",gI,[m("img",{class:"setup-error__icon",src:a.errorIconPath,alt:t.$t("error")},null,8,vI),m("p",yI,T(a.errorTitle),1),m("p",bI,T(a.errorMessage),1),m("div",CI,[a.shouldShowReload?(f(),v("a",{key:0,class:"setup-error__link",onClick:r[0]||(r[0]=jt(d=>t.$emit("reload"),["prevent"]))},T(t.$t("reload")),1)):D("",!0),m("div",wI,[$(i,{text:t.$t("cancelPayment"),icon:"cancel",onClick:a.onCancel,"data-testId":"mobileCancelbutton"},null,8,["text","onClick"])])]),m("div",kI,[$(o,{onClick:a.onCancel},null,8,["onClick"])])])]),_:1})}typeof og=="function"&&og(t5);const EI=ee(t5,[["render",SI],["__scopeId","data-v-f3ce2ef2"]]),TI={name:"AppLoader",props:{message:{type:String}}},$I=["innerHTML"];function II(t,r,e,n,s,a){return f(),v("div",null,[r[0]||(r[0]=m("div",{class:"loader"},[m("div",{class:"loader__spinner"},[m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div")])],-1)),e.message?(f(),v("div",{key:0,class:"loader__message",innerHTML:e.message},null,8,$I)):D("",!0)])}const tn=ee(TI,[["render",II],["__scopeId","data-v-0b361a01"]]),AI="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2010C4.30213%2010%203.64943%209.86864%203.04187%209.60591C2.43432%209.34319%201.90476%208.98604%201.4532%208.53448C1.00164%208.08292%200.646552%207.55131%200.387931%206.93965C0.12931%206.328%200%205.67323%200%204.97537C0%204.2775%200.12931%203.62479%200.387931%203.01724C0.646552%202.40969%201.00164%201.88218%201.4532%201.43473C1.90476%200.987274%202.43432%200.636289%203.04187%200.381773C3.64943%200.127258%204.30213%200%205%200C5.69787%200%206.35057%200.127258%206.95813%200.381773C7.56568%200.636289%208.09524%200.987274%208.5468%201.43473C8.99836%201.88218%209.35345%202.40969%209.61207%203.01724C9.87069%203.62479%2010%204.2775%2010%204.97537C10%205.67323%209.87069%206.328%209.61207%206.93965C9.35345%207.55131%208.99836%208.08292%208.5468%208.53448C8.09524%208.98604%207.56568%209.34319%206.95813%209.60591C6.35057%209.86864%205.69787%2010%205%2010ZM6.9335%203.16502H8.76847C8.49754%202.59852%208.12808%202.12849%207.6601%201.75493C7.19212%201.38136%206.65025%201.11658%206.03448%200.960591C6.23974%201.26437%206.4142%201.59072%206.55788%201.93966C6.70156%202.28859%206.82677%202.69704%206.9335%203.16502ZM3.83005%203.16502H6.19458C6.10427%202.72988%205.95238%202.30911%205.73892%201.90271C5.52545%201.49631%205.27915%201.14122%205%200.837438C4.73727%201.05911%204.51765%201.34852%204.34113%201.70567C4.16461%202.06281%203.99425%202.54926%203.83005%203.16502ZM0.985222%206.09606H2.93103C2.9064%205.87438%202.89204%205.67529%202.88793%205.49877C2.88383%205.32225%202.88177%205.14778%202.88177%204.97537C2.88177%204.77011%202.88588%204.58744%202.89409%204.42734C2.9023%204.26724%202.91872%204.08867%202.94335%203.89163H0.985222C0.92775%204.08867%200.888752%204.26519%200.868227%204.42118C0.847701%204.57718%200.837438%204.7619%200.837438%204.97537C0.837438%205.18883%200.847701%205.37972%200.868227%205.54803C0.888752%205.71634%200.92775%205.89901%200.985222%206.09606ZM3.9532%209.03941C3.74795%208.73563%203.57348%208.40312%203.4298%208.04187C3.28612%207.68062%203.16502%207.27422%203.0665%206.82266H1.23153C1.5353%207.40558%201.89245%207.86125%202.30296%208.18966C2.71346%208.51806%203.26355%208.80131%203.9532%209.03941ZM1.23153%203.16502H3.07882C3.16913%202.72167%203.28202%202.32759%203.41749%201.98276C3.55296%201.63793%203.72742%201.30131%203.94089%200.972906C3.33333%201.1289%202.79967%201.38957%202.3399%201.75493C1.88013%202.12028%201.51067%202.59031%201.23153%203.16502ZM5%209.18719C5.27915%208.89163%205.51519%208.55501%205.70813%208.17734C5.90107%207.79967%206.05911%207.34811%206.18227%206.82266H3.83005C3.94499%207.31527%204.09688%207.75657%204.28571%208.14655C4.47455%208.53654%204.71264%208.88342%205%209.18719ZM3.69458%206.09606H6.31773C6.35057%205.84154%206.3711%205.63424%206.37931%205.47414C6.38752%205.31404%206.39163%205.14778%206.39163%204.97537C6.39163%204.81117%206.38752%204.65312%206.37931%204.50123C6.3711%204.34934%206.35057%204.14614%206.31773%203.89163H3.69458C3.66174%204.14614%203.64122%204.34934%203.63301%204.50123C3.62479%204.65312%203.62069%204.81117%203.62069%204.97537C3.62069%205.14778%203.62479%205.31404%203.63301%205.47414C3.64122%205.63424%203.66174%205.84154%203.69458%206.09606ZM6.0468%209.02709C6.63793%208.83826%207.16749%208.55706%207.63547%208.1835C8.10345%207.80993%208.48112%207.35632%208.76847%206.82266H6.94581C6.83908%207.26601%206.71388%207.66831%206.5702%208.02956C6.42652%208.3908%206.25205%208.72332%206.0468%209.02709ZM7.05665%206.09606H9.01478C9.06404%205.89901%209.10099%205.71634%209.12562%205.54803C9.15025%205.37972%209.16256%205.18883%209.16256%204.97537C9.16256%204.7619%209.15025%204.57718%209.12562%204.42118C9.10099%204.26519%209.06404%204.08867%209.01478%203.89163H7.06897C7.0936%204.18719%207.11002%204.40887%207.11823%204.55665C7.12644%204.70443%207.13054%204.84401%207.13054%204.97537C7.13054%205.15599%207.12438%205.32635%207.11207%205.48645C7.09975%205.64655%207.08128%205.84975%207.05665%206.09606Z'%20fill='%23737373'/%3e%3c/svg%3e";function lg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{globeIcon:e=>{const{normalize:n}=e;return n(["Globe Icon"])}},fr:{globeIcon:e=>{const{normalize:n}=e;return n(["Icône de globe"])}}}})}const n5={name:"LanguageSwitcher",data(){return{selectedLanguage:bn.currentLanguage,languageCodeMapping:{en:"English",fr:"Français",ar:"بالعربي"}}},computed:{...we(ae,["transaction"]),supportedLanguages(){return Wl[this.transaction.currency]}},mounted(){var r;const t=bn.currentLanguage;(r=Wl[this.transaction.currency])!=null&&r.includes(t)||(bn.switchLanguage(Zr.I18N_DEFAULT_LANGUAGE),this.selectedLanguage=Zr.I18N_DEFAULT_LANGUAGE)},methods:{selectLanguage(t){this.selectedLanguage=t,bn.switchLanguage(t),j8(t),M$(t)}}},zI={class:"container"},RI=["alt"],PI=["value"];function NI(t,r,e,n,s,a){return f(),v("div",zI,[m("img",{src:AI,alt:t.$t("globeIcon")},null,8,RI),ct(m("select",{"aria-label":"select language",class:"select","onUpdate:modelValue":r[0]||(r[0]=i=>s.selectedLanguage=i),onChange:r[1]||(r[1]=i=>a.selectLanguage(s.selectedLanguage))},[(f(!0),v(gt,null,Ot(a.supportedLanguages,i=>(f(),v("option",{key:i,value:i},T(s.languageCodeMapping[i]),9,PI))),128))],544),[[ks,s.selectedLanguage]])])}typeof lg=="function"&&lg(n5);const MI=ee(n5,[["render",NI],["__scopeId","data-v-17ded4b8"]]);function cg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{payWith:e=>{const{normalize:n}=e;return n(["Pay with"])},messageMobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Use one of the payment methods below to pay ",s(a("amount"))," to ",s(a("merchant"))])}},fr:{payWith:e=>{const{normalize:n}=e;return n(["Payer avec"])},messageMobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Utiliser l'un des modes de paiement ci-dessous pour payer ",s(a("amount"))," à ",s(a("merchant"))])}},ar:{payWith:e=>{const{normalize:n}=e;return n(["الدفع من خلال"])},messageMobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["اختر إحدى طرق الدفع الموضحة فيما يلي لدفع ",s(a("amount"))," الي ",s(a("merchant"))])}}}})}const r5={name:"WelcomeMessage",computed:{...we(ae,["transaction","transactionAmount","activeChannel"]),formattedAmount(){return Qn({amount:this.transactionAmount,currency:this.transaction.currency})}}},LI={class:"welcome-message desktop-only"},xI={key:0,class:"welcome-message mobile-only"};function OI(t,r,e,n,s,a){return f(),v("header",null,[m("div",LI,[m("h3",null,T(t.$t("payWith")),1)]),t.activeChannel.name?D("",!0):(f(),v("div",xI,[r[0]||(r[0]=m("h3",null,"Paystack Checkout",-1)),m("h4",null,T(t.$t("messageMobile",{amount:a.formattedAmount,merchant:t.transaction.merchant.name})),1)]))])}typeof cg=="function"&&cg(r5);const FI=ee(r5,[["render",OI],["__scopeId","data-v-fd3606d9"]]);function Do(){const t=ae(),r=te(()=>t.countryCode===ua.KENYA),e=te(()=>t.countryCode===ua.GHANA),n=te(()=>t.countryCode===ua.COTE_D_IVOIRE);return{isKenyanTransaction:r,isGhanaianTransaction:e,isCoteDIvoireTransaction:n}}const DI="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4154%200H3.58461C1.60411%200%200%201.60411%200%203.58461V13.4154C0%2015.3959%201.60411%2017%203.58461%2017H13.4154C15.3959%2017%2017%2015.3959%2017%2013.4154V3.58461C17%201.60411%2015.3959%200%2013.4154%200ZM13.281%2011.1422L10.6075%2013.3108C10.3954%2013.4901%2010.0668%2013.3736%2010.016%2013.0988L9.39765%2010.8345C9.35582%2010.6523%209.42752%2010.4641%209.57389%2010.3476C9.9682%2010.0309%2010.2191%209.547%2010.2191%209.00334C10.2191%207.68898%208.74345%206.71815%207.35741%207.65314C7.27377%207.70989%207.20207%207.78159%207.14532%207.86821C6.50009%208.8271%206.76595%209.8278%207.42611%2010.3535C7.57248%2010.47%207.6382%2010.6552%207.59937%2010.8375L7.04077%2013.1017C6.98998%2013.3766%206.6614%2013.4931%206.44931%2013.3138L3.71604%2011.1451C3.62045%2011.0466%203.56967%2010.9121%203.57863%2010.7747L3.89229%206.09682C3.90423%205.9146%204.02073%205.75329%204.18802%205.6816L8.12511%203.67721C8.36408%203.57863%208.62994%203.57863%208.86892%203.67721L12.806%205.6816C12.9763%205.75329%2013.0898%205.9146%2013.1047%206.09682L13.4184%2010.7747C13.4273%2010.9121%2013.3766%2011.0466%2013.281%2011.1451V11.1422Z'%20fill='%23868686'%20/%3e%3c/svg%3e",s5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20Card%20-%20Idle%3c/title%3e%3cg%20id='Icons'%3e%3crect%20x='15'%20y='12'%20width='5'%20height='3'%20fill='%23fff'/%3e%3cg%3e%3cpath%20d='M15,5.5H5a1.95878,1.95878,0,0,0-2,2H17A1.95878,1.95878,0,0,0,15,5.5Z'%20fill='%23868686'/%3e%3cpath%20d='M16,7.5H3v2H17v-2Z'%20fill='%23fff'/%3e%3cpath%20d='M16,9.5H3V13a1.95878,1.95878,0,0,0,2,2H15a1.95878,1.95878,0,0,0,2-2V9.5Zm-1,3H12.5V11H15Z'%20fill='%23868686'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ug="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20Bank%20-%20Idle%3c/title%3e%3cg%20id='Icons'%3e%3cg%3e%3cpolygon%20points='13%2014.5%2011%2014.5%209%2014.5%207%2014.5%205%2014.5%203%2014.5%202.5%2014.5%202%2016.5%2018%2016.5%2017.5%2014.5%2017%2014.5%2015%2014.5%2013%2014.5'%20fill='%23868686'/%3e%3cpath%20d='M18,7.5,18.5,6,10.00059,1,1.5,6,2,7.5H3v7H5v-7H7v7H9v-7h2v7h2v-7h2v7h2v-7ZM10,6a1.25,1.25,0,1,1,1.25-1.25A1.25,1.25,0,0,1,10,6Z'%20fill='%23c6c6c5'/%3e%3ccircle%20cx='10.00001'%20cy='4.75'%20r='1.25'%20fill='%23fff'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",VI="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_235_1668)'%3e%3cpath%20d='M8.7635%200.442674C7.03112%200.436816%205.34251%200.98367%203.94554%202.00296C2.54856%203.02225%201.51681%204.46029%201.00175%206.10596C0.994835%206.12842%200.993305%206.15214%200.997264%206.17531C1.00123%206.19847%201.01058%206.22036%201.02457%206.23927C1.03857%206.25818%201.05681%206.27362%201.07785%206.28425C1.0989%206.29494%201.12215%206.30054%201.14576%206.30061H4.26135C4.28912%206.30089%204.31642%206.29346%204.3402%206.27915C4.36399%206.26491%204.38335%206.24437%204.39612%206.21979C4.82564%205.4164%205.47119%204.74759%206.26067%204.28809C7.05018%203.8286%207.95252%203.59655%208.86691%203.6178C11.5024%203.66554%2013.5425%205.82213%2013.6377%208.30746C13.6797%209.41274%2013.3432%2010.4995%2012.6834%2011.3897C12.0236%2012.2799%2011.0796%2012.9208%2010.0059%2013.2076C8.93222%2013.4943%207.79244%2013.4098%206.77336%2012.9679C5.7542%2012.5261%204.91605%2011.7531%204.39612%2010.7754C4.38349%2010.7511%204.36442%2010.7308%204.34099%2010.7166C4.31756%2010.7023%204.29065%2010.6947%204.26319%2010.6946H1.14576C1.12215%2010.6947%201.0989%2010.7003%201.07785%2010.711C1.05681%2010.7216%201.03857%2010.737%201.02457%2010.756C1.01058%2010.7749%201.00123%2010.7968%200.997264%2010.8199C0.993305%2010.8431%200.994835%2010.8668%201.00175%2010.8893C1.44584%2012.311%202.27726%2013.5825%203.40368%2014.5626C4.53011%2015.5427%205.9075%2016.1931%207.38288%2016.4414C8.85834%2016.6898%2010.374%2016.5265%2011.7619%2015.9698C13.1496%2015.413%2014.3552%2014.4844%2015.2447%2013.2873C16.1343%2012.09%2016.673%2010.671%2016.801%209.18757C16.9289%207.70425%2016.6413%206.21462%2015.9699%204.88402C15.2985%203.55348%2014.2697%202.43408%2012.9976%201.65007C11.7255%200.866066%2010.2598%200.448128%208.7635%200.442674Z'%20fill='%23C6C6C5'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.14784%2010.0184H0.328191C0.306877%2010.0184%200.285776%2010.0141%200.266105%2010.0058C0.246428%209.99747%200.228564%209.98529%200.21354%209.96992C0.198509%209.95455%200.186623%209.93634%200.178548%209.91629C0.17048%209.89625%200.166386%209.87479%200.166506%209.85311V7.23759C0.166386%207.21592%200.17048%207.19445%200.178548%207.17441C0.186623%207.15436%200.198509%207.13616%200.21354%207.12079C0.228564%207.10542%200.246428%207.09323%200.266105%207.08487C0.285776%207.07659%200.306877%207.07227%200.328191%207.07227H4.14784C4.16915%207.07227%204.19025%207.07659%204.20992%207.08487C4.2296%207.09323%204.24746%207.10542%204.26249%207.12079C4.27752%207.13616%204.2894%207.15436%204.29748%207.17441C4.30555%207.19445%204.30964%207.21592%204.30952%207.23759V9.85311C4.30964%209.87479%204.30555%209.89625%204.29748%209.91629C4.2894%209.93634%204.27752%209.95455%204.26249%209.96992C4.24746%209.98529%204.2296%209.99747%204.20992%2010.0058C4.19025%2010.0141%204.16915%2010.0184%204.14784%2010.0184Z'%20fill='%23868686'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_235_1668'%3e%3crect%20width='17'%20height='17'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",BI="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3838%2013.1897H9.57789H7.772H5.96612H4.16024H2.35436H1.90289L1.45142%2014.9956H15.8985L15.447%2013.1897H14.9955H13.1897H11.3838Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M4.16025%206.86914H2.35437V13.1897H4.16025V6.86914Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M7.77207%206.86914H5.96619V13.1897H7.77207V6.86914Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M8.675%201L1%205.51471L1.45147%206.86912H15.8985L16.35%205.51471L8.675%201ZM7.54632%204.38603C7.54632%204.1628%207.61252%203.94458%207.73654%203.75897C7.86056%203.57336%208.03684%203.42869%208.24307%203.34327C8.44931%203.25784%208.67625%203.23549%208.89519%203.27904C9.11414%203.32259%209.31525%203.43009%209.47309%203.58793C9.63094%203.74578%209.73844%203.94689%209.78199%204.16584C9.82554%204.38478%209.80319%204.61172%209.71776%204.81796C9.63233%205.02419%209.48767%205.20047%209.30206%205.32449C9.11645%205.44851%208.89823%205.51471%208.675%205.51471C8.37566%205.51471%208.08857%205.39579%207.87691%205.18412C7.66524%204.97246%207.54632%204.68537%207.54632%204.38603Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M12.2868%2013.6413C14.2815%2013.6413%2015.8986%2012.0242%2015.8986%2010.0295C15.8986%208.03477%2014.2815%206.41772%2012.2868%206.41772C10.2921%206.41772%208.67505%208.03477%208.67505%2010.0295C8.67505%2012.0242%2010.2921%2013.6413%2012.2868%2013.6413Z'%20fill='%23868686'/%3e%3cpath%20d='M14.4394%209.70994L14.1198%209.3912L12.0638%207.33521L11.745%207.65485L11.4254%207.97358L13.0299%209.57811H8.5116V10.0296V10.4811H13.0299L11.4254%2012.0856L11.745%2012.4043L12.0638%2012.724L14.1198%2010.668L14.4394%2010.3492L14.7581%2010.0296L14.4394%209.70994Z'%20fill='white'/%3e%3c/svg%3e",UI="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3838%2013.1897H9.57789H7.772H5.96612H4.16024H2.35436H1.90289L1.45142%2014.9956H15.8985L15.447%2013.1897H14.9955H13.1897H11.3838Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M4.16025%206.86914H2.35437V13.1897H4.16025V6.86914Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M7.77207%206.86914H5.96619V13.1897H7.77207V6.86914Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M8.675%201L1%205.51471L1.45147%206.86912H15.8985L16.35%205.51471L8.675%201ZM7.54632%204.38603C7.54632%204.1628%207.61252%203.94458%207.73654%203.75897C7.86056%203.57336%208.03684%203.42869%208.24307%203.34327C8.44931%203.25784%208.67625%203.23549%208.89519%203.27904C9.11414%203.32259%209.31525%203.43009%209.47309%203.58793C9.63094%203.74578%209.73844%203.94689%209.78199%204.16584C9.82554%204.38478%209.80319%204.61172%209.71776%204.81796C9.63233%205.02419%209.48767%205.20047%209.30206%205.32449C9.11645%205.44851%208.89823%205.51471%208.675%205.51471C8.37566%205.51471%208.08857%205.39579%207.87691%205.18412C7.66524%204.97246%207.54632%204.68537%207.54632%204.38603Z'%20fill='%23C6C6C5'/%3e%3cpath%20d='M12.2868%2013.6413C14.2815%2013.6413%2015.8986%2012.0242%2015.8986%2010.0295C15.8986%208.03477%2014.2815%206.41772%2012.2868%206.41772C10.2921%206.41772%208.67505%208.03477%208.67505%2010.0295C8.67505%2012.0242%2010.2921%2013.6413%2012.2868%2013.6413Z'%20fill='%23868686'/%3e%3cpath%20d='M14.4394%209.70994L14.1198%209.3912L12.0638%207.33521L11.745%207.65485L11.4254%207.97358L13.0299%209.57811H8.5116V10.0296V10.4811H13.0299L11.4254%2012.0856L11.745%2012.4043L12.0638%2012.724L14.1198%2010.668L14.4394%2010.3492L14.7581%2010.0296L14.4394%209.70994Z'%20fill='white'/%3e%3c/svg%3e",HI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20Ghana%20Mobile%20Money%20-%20Idle%3c/title%3e%3cg%20id='Icons'%3e%3cpath%20d='M13.5.5h-7a1.95878,1.95878,0,0,0-2,2v15a1.95878,1.95878,0,0,0,2,2h7a1.95878,1.95878,0,0,0,2-2V2.5A1.95878,1.95878,0,0,0,13.5.5Zm1,14v2a.97939.97939,0,0,1-1,1h-7a.97939.97939,0,0,1-1-1V2.5a.97939.97939,0,0,1,1-1h7a.97939.97939,0,0,1,1,1Z'%20fill='%23868686'/%3e%3crect%20x='5.5'%20y='1.5'%20width='9'%20height='16'%20rx='2'%20ry='2'%20fill='%23f4f4f4'/%3e%3cpath%20d='M11.5,5.5l-.58685,1.17371A3.17216,3.17216,0,0,0,10,6.5s-2.5,0-2.5,3a3.00481,3.00481,0,0,0,.84326,2.31348L7.5,13.5h1l.60132-1.20258A2.69549,2.69549,0,0,0,10,12.5,2.44847,2.44847,0,0,0,12.5,10h-1A1.46908,1.46908,0,0,1,10,11.5a1.37915,1.37915,0,0,1-.46161-.07678l1.67206-3.344A1.83488,1.83488,0,0,1,11.5,9h1a2.31273,2.31273,0,0,0-.80139-1.89722L12.5,5.5Zm-3,4s0-2,1.5-2a1.80115,1.80115,0,0,1,.47034.05933L8.84021,10.8197A3.00492,3.00492,0,0,1,8.5,9.5Z'%20fill='%23868686'/%3e%3c/g%3e%3c/svg%3e",qI="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='a'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cstyle%3e.b{fill:%23fff;}.c{fill:%23868686;}%3c/style%3e%3c/defs%3e%3cpath%20class='c'%20d='M10.12,1.55H3.75c-.24,0-.48,.04-.7,.13-.22,.09-.43,.22-.6,.39-.17,.17-.3,.37-.39,.59-.09,.22-.13,.45-.13,.69v13.42c0,.24,.04,.47,.13,.69,.09,.22,.22,.42,.39,.59,.17,.17,.37,.3,.6,.39,.22,.09,.46,.13,.7,.13h6.36c.24,0,.48-.04,.7-.13,.22-.09,.43-.22,.6-.39,.17-.17,.3-.37,.39-.59,.09-.22,.13-.45,.13-.69V3.34c0-.24-.04-.47-.13-.69-.09-.22-.22-.42-.39-.59-.17-.17-.37-.3-.6-.39-.22-.09-.46-.13-.7-.13Zm.91,12.53v1.79c0,.12-.02,.24-.06,.35-.04,.11-.11,.21-.2,.29-.08,.08-.19,.15-.3,.19-.11,.04-.23,.07-.35,.06H3.75c-.12,0-.24-.02-.35-.06-.11-.04-.21-.11-.3-.19-.08-.08-.15-.18-.2-.29-.04-.11-.07-.23-.06-.35V3.34c0-.12,.02-.24,.06-.35,.04-.11,.11-.21,.2-.29,.08-.08,.19-.15,.3-.19,.11-.04,.23-.07,.35-.06h6.36c.12,0,.24,.02,.35,.06,.11,.04,.21,.11,.3,.19,.08,.08,.15,.18,.2,.29,.04,.11,.07,.23,.06,.35V14.08Z'/%3e%3cpath%20class='b'%20d='M9.21,2.45H4.66c-1,0-1.82,.8-1.82,1.79V14.97c0,.99,.81,1.79,1.82,1.79h4.55c1,0,1.82-.8,1.82-1.79V4.24c0-.99-.81-1.79-1.82-1.79Z'/%3e%3cg%3e%3cpath%20class='c'%20d='M4.7,9.52l-.67-1.11h.58l.43,.76,.43-.76h.53l-.65,1.1,.72,1.19h-.59l-.49-.85-.49,.85h-.53l.72-1.17Z'/%3e%3cpath%20class='c'%20d='M6.05,9.6v-.11c0-.7,.41-1.12,1-1.12s.99,.4,.99,1.11v.11c0,.7-.38,1.13-1,1.13s-.99-.42-.99-1.12Zm1.48,0v-.1c0-.46-.16-.72-.48-.72s-.48,.25-.48,.72v.11c0,.48,.17,.72,.49,.72s.47-.25,.47-.72Z'/%3e%3cpath%20class='c'%20d='M8.43,8.41h1.47v.41h-.95v.6h.75v.39h-.75v.88h-.52v-2.28Z'/%3e%3c/g%3e%3c/svg%3e",WI="data:image/svg+xml,%3csvg%20width='10'%20height='17'%20viewBox='0%200%2010%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.88614%206.78076C3.18989%207.49014%203.60357%207.81615%204.1047%207.8361C3.32338%208.41865%202.47781%208.7728%201.59655%208.99905C1.04331%208.96378%200.51398%208.82304%200%208.68266C1.29816%208.42684%202.26615%207.79976%202.88578%206.78076'%20fill='%23676D72'/%3e%3cpath%20d='M8.81081%207.91309C8.81081%208.06558%208.81081%208.20097%208.81081%208.33636C8.81081%2011.346%208.81367%2012.4667%208.80653%2015.4763C8.80546%2015.9502%208.62021%2016.346%208.23544%2016.6578C7.93241%2016.9032%207.60689%2017.0016%207.22604%2017.0002C5.62057%2016.9941%204.01474%2016.9987%202.40927%2016.9955C1.70683%2016.9941%201.1593%2016.4931%200.970122%2015.8486C0.952276%2015.7873%200.955488%2015.7189%200.955488%2015.6541C0.953703%2012.7631%200.95299%2011.7614%200.950134%208.87045C0.950134%208.74503%200.979045%208.67306%201.1236%208.70691C1.3117%208.75073%201.49945%208.8056%201.69041%208.82769C1.84139%208.84515%201.87958%208.9189%201.87922%209.04931C1.87815%209.44693%201.87316%209.84491%201.88172%2010.2425C1.89279%2010.7599%202.17369%2011.1197%202.58559%2011.3962C2.82937%2011.5598%203.10243%2011.6143%203.39261%2011.6132C4.38559%2011.6103%205.37893%2011.6132%206.37191%2011.6103C7.00261%2011.6089%207.57048%2011.2284%207.7875%2010.6466C7.84425%2010.4944%207.86816%2010.3231%207.87173%2010.1599C7.88315%209.63185%207.87459%209.10346%207.88315%208.57544C7.88422%208.50489%207.92027%208.40584%207.97417%208.36985C8.21153%208.21059%208.46102%208.06914%208.70731%207.92306C8.72515%207.91237%208.75264%207.91772%208.81081%207.91309Z'%20fill='%23CCCED0'/%3e%3cpath%20d='M8.80933%206.21907C8.49416%206.068%208.22753%205.94864%207.97126%205.81111C7.92022%205.78367%207.88417%205.68747%207.88024%205.62049C7.8681%205.41348%207.87631%205.20505%207.87453%204.99733C7.8681%204.299%207.35912%203.60137%206.58387%203.56539C5.63622%203.52156%204.68607%203.52299%203.73699%203.50553C3.34365%203.49805%202.95353%203.54045%202.60302%203.72323C2.44204%203.80731%202.30534%203.95446%202.18434%204.09555C1.9302%204.39199%201.87167%204.74686%201.87774%205.13237C1.89201%206.01669%201.87774%206.90137%201.88238%207.78605C1.88345%207.95137%201.81706%208.05434%201.67571%208.12239C1.50117%208.20647%201.32842%208.29448%201.15245%208.375C1.01325%208.43842%200.952929%208.39816%200.951501%208.24317C0.949003%207.98201%200.951501%207.72084%200.951501%207.45968C0.951501%206.00529%200.962923%204.55054%200.946861%203.09615C0.939722%202.45054%201.39088%201.82382%202.04978%201.64354C2.20147%201.60185%202.36352%201.5794%202.52093%201.57869C4.09106%201.57299%205.6612%201.57121%207.23134%201.57727C7.41195%201.57798%207.47263%201.52988%207.46227%201.34781C7.448%201.09948%207.45585%200.849357%207.46156%200.599952C7.4687%200.293539%207.74532%200.0177671%208.05264%200.00173392C8.54627%20-0.0239193%208.81004%200.235819%208.80933%200.73178C8.80719%202.44769%208.80897%204.16325%208.80933%205.87916C8.80933%205.9775%208.80933%206.07619%208.80933%206.21978V6.21907Z'%20fill='%23CCCED0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.2906%204.95166L9.95343%206.79833C8.08775%209.24821%204.94212%209.3127%201.59161%208.99595C3.83171%208.44512%205.38257%207.07874%206.2906%204.95166Z'%20fill='%23999DA1'/%3e%3c/svg%3e",y2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20QR%20-%20Idle%3c/title%3e%3cg%20id='Icons'%3e%3crect%20x='5.5'%20y='1.5'%20width='9'%20height='16'%20rx='2'%20ry='2'%20fill='%23f4f4f4'/%3e%3cg%3e%3cpath%20d='M13.5.5h-7a1.95878,1.95878,0,0,0-2,2v15a1.95878,1.95878,0,0,0,2,2h7a1.95878,1.95878,0,0,0,2-2V2.5A1.95878,1.95878,0,0,0,13.5.5Zm1,14v2a.97939.97939,0,0,1-1,1h-7a.97939.97939,0,0,1-1-1V2.5a.97939.97939,0,0,1,1-1h7a.97939.97939,0,0,1,1,1Z'%20fill='%23868686'/%3e%3cg%3e%3cpath%20d='M10,6.5v3h3v-3Zm2,2H11v-1h1Z'%20fill='%23868686'/%3e%3cpath%20d='M7,12.5h3v-3H7Zm1-2H9v1H8Z'%20fill='%23868686'/%3e%3crect%20x='8'%20y='7.5'%20width='1'%20height='1'%20fill='%23868686'/%3e%3cpolygon%20points='11%2010.5%2011%2011.5%2012%2011.5%2012%2012.5%2013%2012.5%2013%2011.5%2013%2010.5%2012%2010.5%2011%2010.5'%20fill='%23868686'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",GI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20USSD%20-%20Idle%3c/title%3e%3cg%20id='Icons'%3e%3cpath%20d='M1.01242,3.5H18.98758A1.01242,1.01242,0,0,1,20,4.51242V15.48758A1.01242,1.01242,0,0,1,18.98758,16.5H1.01172A1.01172,1.01172,0,0,1,0,15.48828V4.51242A1.01242,1.01242,0,0,1,1.01242,3.5Z'%20fill='%23f0f0f0'/%3e%3cg%3e%3cpolygon%20points='8.627%206.881%206.718%207.502%206.718%205.494%205.218%205.494%205.218%207.502%203.308%206.881%202.844%208.308%204.754%208.928%203.573%2010.553%204.787%2011.435%205.968%209.81%207.148%2011.435%208.362%2010.553%207.181%208.928%209.091%208.308%208.627%206.881'%20fill='%23868686'/%3e%3cpath%20d='M16.71753,9.49382v-1.5h-1V6.49376h-1.5V7.99382h-1.5V6.49376h-1.5V7.99382h-1v1.5h1v1h-1v1.5h1v1.49994h1.5V11.99382h1.5v1.49994h1.5V11.99382h1v-1.5h-1v-1Zm-2.5,1h-1.5v-1h1.5Z'%20fill='%23868686'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",dg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20One-Click%20-%20Idle%3c/title%3e%3cg%20id='Icons'%3e%3cg%3e%3cpath%20d='M11,9.5H9.5v-5A.48969.48969,0,0,0,9,4H8a.48969.48969,0,0,0-.5.5V13l-2-.5L4.5,14l3,3.5H14l1.5-6Z'%20fill='%23868686'/%3e%3cpath%20d='M6.5,7.8623V6.48221A2.45576,2.45576,0,0,1,6,5a2.5,2.5,0,0,1,5,0,2.45576,2.45576,0,0,1-.5,1.48221V7.8623a3.5,3.5,0,1,0-4,0Z'%20fill='%23868686'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",jI="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23c6c6c5;}.cls-2{fill:%23868686;}.cls-3{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M21.84,10.46V17a2.71,2.71,0,0,1-2.67,2.75H4.72A2.7,2.7,0,0,1,2.06,17V6A1.69,1.69,0,0,0,3.72,7.72H19.17A2.7,2.7,0,0,1,21.84,10.46Z'/%3e%3cpath%20class='cls-2'%20d='M3.95,4.26h13.4a1.4,1.4,0,0,1,1.4,1.4v.27a0,0,0,0,1,0,0H3.95a.7.7,0,0,1-.7-.7V5a.7.7,0,0,1,.7-.7Z'/%3e%3cpath%20class='cls-3'%20d='M18.54,12.18h3.52a0,0,0,0,1,0,0v2.55a0,0,0,0,1,0,0H18.54a1.25,1.25,0,0,1-1.25-1.25v-.06A1.25,1.25,0,0,1,18.54,12.18Z'/%3e%3ccircle%20class='cls-2'%20cx='19.18'%20cy='13.51'%20r='0.44'/%3e%3c/svg%3e",ZI="data:image/svg+xml,%3csvg%20width='13'%20height='12'%20viewBox='0%200%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.36556%204.80537e-07C8.8417%20-0.000224768%209.30447%200.0787516%209.76086%200.207647C10.1762%200.324959%2010.5624%200.505158%2010.9219%200.739974C11.0544%200.826587%2011.1697%200.939254%2011.2933%201.0395C11.4679%201.18113%2011.6105%201.3527%2011.7384%201.53447C11.9315%201.809%2012.0798%202.10603%2012.1799%202.42876C12.2593%202.68484%2012.3117%202.94419%2012.3396%203.20952C12.3473%203.28188%2012.3517%203.35459%2012.3563%203.42722C12.3625%203.52528%2012.3748%203.62369%2012.3715%203.72152C12.3652%203.9115%2012.3615%204.10278%2012.3352%204.29054C12.3028%204.52258%2012.2561%204.75337%2012.2021%204.98157C12.1208%205.32566%2011.9959%205.65656%2011.8535%205.97946C11.6879%206.35496%2011.4889%206.71343%2011.2694%207.06118C11.062%207.38967%2010.8305%207.70032%2010.5893%208.00405C10.4787%208.14327%2010.3572%208.27444%2010.235%208.40391C10.0619%208.58716%209.88796%208.76998%209.70606%208.94442C9.55468%209.08954%209.39307%209.22429%209.2327%209.35983C9.04811%209.51586%208.86328%209.67196%208.6724%209.82021C8.41119%2010.0232%208.14654%2010.2219%207.87891%2010.4164C7.67542%2010.5644%207.46815%2010.7078%207.25695%2010.8446C6.96243%2011.0353%206.659%2011.2112%206.3468%2011.3728C5.89755%2011.6053%205.43423%2011.8009%204.94042%2011.9158C4.78624%2011.9518%204.62611%2011.9631%204.4684%2011.9829C4.39592%2011.9921%204.32187%2012.0042%204.24983%2011.9985C4.04059%2011.9821%203.82858%2011.9706%203.639%2011.8654C3.52747%2011.8034%203.42303%2011.7322%203.32721%2011.6457C3.15747%2011.4924%203.0353%2011.3091%202.96044%2011.0966C2.91866%2010.978%202.8902%2010.8539%202.88463%2010.726C2.877%2010.5508%202.88239%2010.3751%202.9209%2010.2054C2.95868%2010.0388%203.01411%209.87491%203.07619%209.71545C3.14185%209.54678%203.22119%209.38312%203.30046%209.22013C3.41899%208.97638%203.55677%208.74223%203.72288%208.52856C3.84921%208.36602%203.98669%208.2108%204.14983%208.07959C4.27716%207.97728%204.40632%207.8799%204.5521%207.80593C4.86622%207.64648%205.1996%207.59526%205.54662%207.64607C5.74333%207.67494%205.93121%207.73555%206.09601%207.85331C6.27154%207.97872%206.36067%208.14506%206.32925%208.36154C6.31894%208.43248%206.2929%208.5043%206.25938%208.56806C6.17935%208.72043%206.08075%208.86142%205.96406%208.98889C5.64289%209.33959%205.28981%209.65905%204.96132%2010.0024C4.72166%2010.2529%204.48752%2010.5098%204.31522%2010.814C4.25422%2010.9216%204.19516%2011.0297%204.17299%2011.1553C4.12326%2011.4381%204.31261%2011.6062%204.58877%2011.5768C4.86079%2011.5478%205.11276%2011.4486%205.3609%2011.3371C5.83153%2011.1255%206.27171%2010.8611%206.69342%2010.5677C7.02221%2010.3389%207.34047%2010.0944%207.65715%209.84894C7.82537%209.71858%207.97764%209.56806%208.14169%209.43205C8.43252%209.19094%208.6962%208.92132%208.95606%208.6495C9.31021%208.27905%209.63601%207.88338%209.91489%207.45215C10.158%207.07624%2010.3558%206.67818%2010.4798%206.24712C10.5306%206.0704%2010.5791%205.89181%2010.61%205.71089C10.6408%205.53021%2010.6648%205.3468%2010.6518%205.16163C10.6254%204.783%2010.5403%204.42359%2010.3277%204.09997C10.1598%203.84442%209.92598%203.68438%209.63416%203.60987C9.53457%203.58444%209.42681%203.58825%209.32256%203.58386C9.04698%203.57229%208.78573%203.64791%208.52663%203.72594C8.38041%203.77%208.23733%203.82739%208.0977%203.8897C7.90251%203.9768%207.7097%204.06994%207.51981%204.168C7.16247%204.35253%206.81559%204.55552%206.47799%204.77393C6.07658%205.03372%205.67354%205.29115%205.27496%205.55519C4.81541%205.85959%204.36131%206.17168%203.92359%206.50736C3.66601%206.70485%203.39987%206.89171%203.13297%207.07674C2.88553%207.24827%202.61822%207.38631%202.33632%207.49206C1.96682%207.63056%201.58685%207.67365%201.20003%207.57072C1.06452%207.5347%200.93617%207.47767%200.816736%207.40187C0.667961%207.30748%200.530528%207.20116%200.406796%207.07441C0.237501%206.90092%200.128171%206.69722%200.0596859%206.46799C0.0192929%206.33284%20-0.00152832%206.19438%208.73969e-05%206.05462C0.00251097%205.85101%200.0320786%205.65021%200.0911924%205.45433C0.198638%205.09826%200.362094%204.76798%200.570113%204.46122C0.726978%204.22994%200.895239%204.00598%201.06624%203.78475C1.15546%203.66936%201.25895%203.56438%201.36079%203.45931C1.50265%203.3129%201.64578%203.16738%201.79439%203.02785C1.94057%202.89056%202.0897%202.75564%202.24575%202.62978C2.45858%202.45807%202.67419%202.28895%202.89774%202.13159C3.16075%201.94644%203.43133%201.77173%203.70251%201.5985C4.07398%201.3611%204.46216%201.1519%204.86065%200.963785C5.15167%200.826448%205.4495%200.702786%205.74809%200.5823C5.95499%200.498808%206.16746%200.428509%206.37907%200.357051C6.70563%200.246798%207.03896%200.160721%207.37871%200.10221C7.5634%200.070396%207.74956%200.0455436%207.9359%200.0257003C8.07845%200.0105014%208.2223%200.00808797%208.36556%204.80537e-07Z'%20fill='%23868686'/%3e%3c/svg%3e",KI="/assets/pesalink_idle-B68OH3tt.svg",YI="/assets/wave_idle-HPRya1ti.svg",QI="data:image/svg+xml,%3csvg%20width='16'%20height='8'%20viewBox='0%200%2016%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.93698%207.19538H13.5087C14.0213%207.19538%2014.4369%206.77971%2014.4369%206.26691C14.4369%205.75411%2014.0213%205.33841%2013.5087%205.33841H11.1778L14.9299%201.58502C15.2925%201.22245%2015.2925%200.63456%2014.9299%200.271988C14.5675%20-0.0906628%2013.9798%20-0.0906628%2013.6173%200.271988L9.86515%204.02538V1.69372C9.86515%201.18092%209.44961%200.765242%208.93698%200.765242C8.42435%200.765242%208.00879%201.18092%208.00879%201.69372V6.26691C8.00879%206.77971%208.42435%207.19538%208.93698%207.19538Z'%20fill='%23999DA1'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.26485%200.804596H1.69316C1.18053%200.804596%200.764991%201.22029%200.764991%201.73309C0.764991%202.24589%201.18053%202.66157%201.69316%202.66157H4.02406L0.271899%206.415C-0.090633%206.77753%20-0.090633%207.36542%200.271899%207.72805C0.634351%208.09064%201.22205%208.09064%201.5845%207.72805L5.33666%203.97466V6.30626C5.33666%206.81906%205.75222%207.23476%206.26485%207.23476C6.77748%207.23476%207.19302%206.81906%207.19302%206.30626V1.73309C7.19302%201.22029%206.77748%200.804596%206.26485%200.804596Z'%20fill='%23676D72'/%3e%3c/svg%3e",JI="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_5802)'%3e%3cpath%20d='M0%200H14V14H0V0Z'%20fill='%23CCCED0'/%3e%3cpath%20d='M6.22321%206.17365V7.77169H5.78614V6.87535L5.49419%207.3073H5.26541L4.94443%206.87535V7.77169H4.54492V6.17365H4.94785L5.40882%206.80023L5.82199%206.17365H6.22321ZM6.34956%206.5356V6.17365H7.84175V6.5356H7.31931V7.77169H6.8737V6.5356H6.34956ZM9.4859%206.17365V7.77169H9.11882L8.3676%206.85828V7.77169H7.96809V6.17365H8.3659L9.08468%207.05462V6.17365H9.4859Z'%20fill='%23676D72'/%3e%3cpath%20d='M7.00008%209.44146C5.70935%209.44146%204.49203%209.20073%203.5735%208.76195C2.61228%208.30268%202.08301%207.6778%202.08301%207C2.08301%206.32219%202.61228%205.69731%203.5735%205.23804C4.49203%204.79926%205.70935%204.55853%207.00008%204.55853C8.29081%204.55853%209.50813%204.79926%2010.4267%205.23804C11.3879%205.69731%2011.9172%206.32219%2011.9172%207C11.9172%207.6778%2011.3879%208.30268%2010.4267%208.76195C9.50813%209.20073%208.29081%209.44146%207.00008%209.44146ZM7.00008%204.91878C5.76057%204.91878%204.59959%205.14756%203.72886%205.56414C2.90081%205.96024%202.44325%206.47073%202.44325%207.0017C2.44325%207.53268%202.89911%208.04317%203.72886%208.43756C4.59959%208.85414%205.76228%209.08292%207.00008%209.08292C8.23789%209.08292%209.40057%208.85414%2010.2713%208.43756C11.0993%208.04317%2011.5569%207.53097%2011.5569%207.0017C11.5569%206.47244%2011.1011%205.96024%2010.2713%205.56585C9.40057%205.14756%208.23959%204.91878%207.00008%204.91878Z'%20fill='%23676D72'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_5802'%3e%3crect%20width='14'%20height='14'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",XI="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4154%200H3.58461C1.60411%200%200%201.60411%200%203.58461V13.4154C0%2015.3959%201.60411%2017%203.58461%2017H13.4154C15.3959%2017%2017%2015.3959%2017%2013.4154V3.58461C17%201.60411%2015.3959%200%2013.4154%200ZM13.281%2011.1422L10.6075%2013.3108C10.3954%2013.4901%2010.0668%2013.3736%2010.016%2013.0988L9.39765%2010.8345C9.35582%2010.6523%209.42752%2010.4641%209.57389%2010.3476C9.9682%2010.0309%2010.2191%209.547%2010.2191%209.00334C10.2191%207.68898%208.74345%206.71815%207.35741%207.65314C7.27377%207.70989%207.20207%207.78159%207.14532%207.86821C6.50009%208.8271%206.76595%209.8278%207.42611%2010.3535C7.57248%2010.47%207.6382%2010.6552%207.59937%2010.8375L7.04077%2013.1017C6.98998%2013.3766%206.6614%2013.4931%206.44931%2013.3138L3.71604%2011.1451C3.62045%2011.0466%203.56967%2010.9121%203.57863%2010.7747L3.89229%206.09682C3.90423%205.9146%204.02073%205.75329%204.18802%205.6816L8.12511%203.67721C8.36408%203.57863%208.62994%203.57863%208.86892%203.67721L12.806%205.6816C12.9763%205.75329%2013.0898%205.9146%2013.1047%206.09682L13.4184%2010.7747C13.4273%2010.9121%2013.3766%2011.0466%2013.281%2011.1451V11.1422Z'%20fill='%233BB75E'%20/%3e%3c/svg%3e",a5="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20Card%20-%20Active%3c/title%3e%3cg%20id='Icons'%3e%3crect%20x='12.5'%20y='11'%20width='2.5'%20height='1.5'%20fill='%23fff'/%3e%3cg%3e%3cpath%20d='M15,5.5H5a1.95878,1.95878,0,0,0-2,2H17A1.95878,1.95878,0,0,0,15,5.5Z'%20fill='%23011b33'/%3e%3cpath%20d='M16,7.5H3v2H17v-2Z'%20fill='%2322d34b'/%3e%3cpath%20d='M16,9.5H3V13a1.95878,1.95878,0,0,0,2,2H15a1.95878,1.95878,0,0,0,2-2V9.5Zm-1,3H12.5V11H15Z'%20fill='%23011b33'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",hg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20Bank%20-%20Active%3c/title%3e%3cg%20id='Icons'%3e%3cpolygon%20points='13%2014.5%2011%2014.5%209%2014.5%207%2014.5%205%2014.5%203%2014.5%202.5%2014.5%202%2016.5%2018%2016.5%2017.5%2014.5%2017%2014.5%2015%2014.5%2013%2014.5'%20fill='%23011b33'/%3e%3cg%3e%3crect%20x='3.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3crect%20x='7.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3crect%20x='11.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3crect%20x='15.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3c/g%3e%3cpath%20d='M10.00059,1,1.5,6,2,7.5H18L18.5,6ZM8.75,4.75A1.25,1.25,0,1,1,10,6,1.25,1.25,0,0,1,8.75,4.75Z'%20fill='%23011b33'/%3e%3c/g%3e%3c/svg%3e",eA="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_235_1582)'%3e%3cpath%20d='M8.76362%200.442674C7.03125%200.436816%205.34264%200.98367%203.94566%202.00296C2.54868%203.02225%201.51693%204.46029%201.00187%206.10596C0.994957%206.12842%200.993427%206.15214%200.997386%206.17531C1.00135%206.19847%201.0107%206.22036%201.02469%206.23927C1.03869%206.25818%201.05694%206.27362%201.07797%206.28425C1.09902%206.29494%201.12227%206.30054%201.14588%206.30061H4.26147C4.28925%206.30089%204.31654%206.29346%204.34032%206.27915C4.36411%206.26491%204.38347%206.24437%204.39625%206.21979C4.82576%205.4164%205.47131%204.74759%206.26079%204.28809C7.0503%203.8286%207.95265%203.59655%208.86703%203.6178C11.5025%203.66554%2013.5427%205.82213%2013.6378%208.30746C13.6798%209.41274%2013.3433%2010.4995%2012.6835%2011.3897C12.0237%2012.2799%2011.0797%2012.9208%2010.006%2013.2076C8.93234%2013.4943%207.79256%2013.4098%206.77348%2012.9679C5.75432%2012.5261%204.91617%2011.7531%204.39625%2010.7754C4.38361%2010.7511%204.36454%2010.7308%204.34111%2010.7166C4.31768%2010.7023%204.29078%2010.6947%204.26331%2010.6946H1.14588C1.12227%2010.6947%201.09902%2010.7003%201.07797%2010.711C1.05694%2010.7216%201.03869%2010.737%201.02469%2010.756C1.0107%2010.7749%201.00135%2010.7968%200.997386%2010.8199C0.993427%2010.8431%200.994957%2010.8668%201.00187%2010.8893C1.44597%2012.311%202.27738%2013.5825%203.4038%2014.5626C4.53023%2015.5427%205.90762%2016.1931%207.383%2016.4414C8.85846%2016.6898%2010.3742%2016.5265%2011.762%2015.9698C13.1498%2015.413%2014.3553%2014.4844%2015.2449%2013.2873C16.1344%2012.09%2016.6731%2010.671%2016.8011%209.18757C16.9291%207.70425%2016.6414%206.21462%2015.9701%204.88402C15.2986%203.55348%2014.2698%202.43408%2012.9977%201.65007C11.7256%200.866066%2010.26%200.448128%208.76362%200.442674Z'%20fill='%2322D34B'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.14784%2010.0184H0.328191C0.306877%2010.0184%200.285776%2010.0141%200.266105%2010.0058C0.246428%209.99747%200.228564%209.98529%200.21354%209.96992C0.198509%209.95455%200.186623%209.93634%200.178548%209.91629C0.17048%209.89625%200.166386%209.87479%200.166506%209.85311V7.23759C0.166386%207.21592%200.17048%207.19445%200.178548%207.17441C0.186623%207.15436%200.198509%207.13616%200.21354%207.12079C0.228564%207.10542%200.246428%207.09323%200.266105%207.08487C0.285776%207.07659%200.306877%207.07227%200.328191%207.07227H4.14784C4.16915%207.07227%204.19025%207.07659%204.20992%207.08487C4.2296%207.09323%204.24746%207.10542%204.26249%207.12079C4.27752%207.13616%204.2894%207.15436%204.29748%207.17441C4.30555%207.19445%204.30964%207.21592%204.30952%207.23759V9.85311C4.30964%209.87479%204.30555%209.89625%204.29748%209.91629C4.2894%209.93634%204.27752%209.95455%204.26249%209.96992C4.24746%209.98529%204.2296%209.99747%204.20992%2010.0058C4.19025%2010.0141%204.16915%2010.0184%204.14784%2010.0184Z'%20fill='%23011B33'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_235_1582'%3e%3crect%20width='17'%20height='17'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",tA="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3838%2013.1897H9.57789H7.772H5.96612H4.16024H2.35436H1.90289L1.45142%2014.9956H15.8985L15.447%2013.1897H14.9955H13.1897H11.3838Z'%20fill='%23011B33'/%3e%3cpath%20d='M4.16025%206.86914H2.35437V13.1897H4.16025V6.86914Z'%20fill='%2322D34B'/%3e%3cpath%20d='M7.77207%206.86914H5.96619V13.1897H7.77207V6.86914Z'%20fill='%2322D34B'/%3e%3cpath%20d='M8.675%201L1%205.51471L1.45147%206.86912H15.8985L16.35%205.51471L8.675%201ZM7.54632%204.38603C7.54632%204.1628%207.61252%203.94458%207.73654%203.75897C7.86056%203.57336%208.03684%203.42869%208.24307%203.34327C8.44931%203.25784%208.67625%203.23549%208.89519%203.27904C9.11414%203.32259%209.31525%203.43009%209.47309%203.58793C9.63094%203.74578%209.73844%203.94689%209.78199%204.16584C9.82554%204.38478%209.80319%204.61172%209.71776%204.81796C9.63233%205.02419%209.48767%205.20047%209.30206%205.32449C9.11645%205.44851%208.89823%205.51471%208.675%205.51471C8.37566%205.51471%208.08857%205.39579%207.87691%205.18412C7.66524%204.97246%207.54632%204.68537%207.54632%204.38603Z'%20fill='%23011B33'/%3e%3cpath%20d='M12.2868%2013.6413C14.2815%2013.6413%2015.8986%2012.0242%2015.8986%2010.0295C15.8986%208.03477%2014.2815%206.41772%2012.2868%206.41772C10.2921%206.41772%208.67505%208.03477%208.67505%2010.0295C8.67505%2012.0242%2010.2921%2013.6413%2012.2868%2013.6413Z'%20fill='%2322D34B'/%3e%3cpath%20d='M14.4394%209.70994L14.1198%209.3912L12.0638%207.33521L11.745%207.65485L11.4254%207.97358L13.0299%209.57811H8.5116V10.0296V10.4811H13.0299L11.4254%2012.0856L11.745%2012.4043L12.0638%2012.724L14.1198%2010.668L14.4394%2010.3492L14.7581%2010.0296L14.4394%209.70994Z'%20fill='white'/%3e%3c/svg%3e",nA="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.3838%2013.1897H9.57789H7.772H5.96612H4.16024H2.35436H1.90289L1.45142%2014.9956H15.8985L15.447%2013.1897H14.9955H13.1897H11.3838Z'%20fill='%23011B33'/%3e%3cpath%20d='M4.16025%206.86914H2.35437V13.1897H4.16025V6.86914Z'%20fill='%2322D34B'/%3e%3cpath%20d='M7.77207%206.86914H5.96619V13.1897H7.77207V6.86914Z'%20fill='%2322D34B'/%3e%3cpath%20d='M8.675%201L1%205.51471L1.45147%206.86912H15.8985L16.35%205.51471L8.675%201ZM7.54632%204.38603C7.54632%204.1628%207.61252%203.94458%207.73654%203.75897C7.86056%203.57336%208.03684%203.42869%208.24307%203.34327C8.44931%203.25784%208.67625%203.23549%208.89519%203.27904C9.11414%203.32259%209.31525%203.43009%209.47309%203.58793C9.63094%203.74578%209.73844%203.94689%209.78199%204.16584C9.82554%204.38478%209.80319%204.61172%209.71776%204.81796C9.63233%205.02419%209.48767%205.20047%209.30206%205.32449C9.11645%205.44851%208.89823%205.51471%208.675%205.51471C8.37566%205.51471%208.08857%205.39579%207.87691%205.18412C7.66524%204.97246%207.54632%204.68537%207.54632%204.38603Z'%20fill='%23011B33'/%3e%3cpath%20d='M12.2868%2013.6413C14.2815%2013.6413%2015.8986%2012.0242%2015.8986%2010.0295C15.8986%208.03477%2014.2815%206.41772%2012.2868%206.41772C10.2921%206.41772%208.67505%208.03477%208.67505%2010.0295C8.67505%2012.0242%2010.2921%2013.6413%2012.2868%2013.6413Z'%20fill='%2322D34B'/%3e%3cpath%20d='M14.4394%209.70994L14.1198%209.3912L12.0638%207.33521L11.745%207.65485L11.4254%207.97358L13.0299%209.57811H8.5116V10.0296V10.4811H13.0299L11.4254%2012.0856L11.745%2012.4043L12.0638%2012.724L14.1198%2010.668L14.4394%2010.3492L14.7581%2010.0296L14.4394%209.70994Z'%20fill='white'/%3e%3c/svg%3e",rA="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20Ghana%20Mobile%20Money%20-%20Active%3c/title%3e%3cg%20id='Icons'%3e%3cpath%20d='M13.5.5h-7a1.95878,1.95878,0,0,0-2,2v15a1.95878,1.95878,0,0,0,2,2h7a1.95878,1.95878,0,0,0,2-2V2.5A1.95878,1.95878,0,0,0,13.5.5Zm1,14v2a.97939.97939,0,0,1-1,1h-7a.97939.97939,0,0,1-1-1V2.5a.97939.97939,0,0,1,1-1h7a.97939.97939,0,0,1,1,1Z'%20fill='%23011b33'/%3e%3crect%20x='5.5'%20y='1.5'%20width='9'%20height='16'%20rx='2'%20ry='2'%20fill='%23f4f4f4'/%3e%3cpath%20d='M11.5,5.5l-.58685,1.17371A3.17216,3.17216,0,0,0,10,6.5s-2.5,0-2.5,3a3.00481,3.00481,0,0,0,.84326,2.31348L7.5,13.5h1l.60132-1.20258A2.69549,2.69549,0,0,0,10,12.5,2.44847,2.44847,0,0,0,12.5,10h-1A1.46908,1.46908,0,0,1,10,11.5a1.37915,1.37915,0,0,1-.46161-.07678l1.67206-3.344A1.83488,1.83488,0,0,1,11.5,9h1a2.31273,2.31273,0,0,0-.80139-1.89722L12.5,5.5Zm-3,4s0-2,1.5-2a1.80115,1.80115,0,0,1,.47034.05933L8.84021,10.8197A3.00492,3.00492,0,0,1,8.5,9.5Z'%20fill='%2322d34b'/%3e%3c/g%3e%3c/svg%3e",sA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='a'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3cdefs%3e%3cstyle%3e.b{fill:%23011b33;}.c{fill:%23fff;}.d{fill:%2377d14b;}%3c/style%3e%3c/defs%3e%3cpath%20class='b'%20d='M10.12,1.55H3.75c-.24,0-.48,.04-.7,.13-.22,.09-.43,.22-.6,.39-.17,.17-.3,.37-.39,.59-.09,.22-.13,.45-.13,.69v13.42c0,.24,.04,.47,.13,.69,.09,.22,.22,.42,.39,.59,.17,.17,.37,.3,.6,.39,.22,.09,.46,.13,.7,.13h6.36c.24,0,.48-.04,.7-.13,.22-.09,.43-.22,.6-.39,.17-.17,.3-.37,.39-.59,.09-.22,.13-.45,.13-.69V3.34c0-.24-.04-.47-.13-.69-.09-.22-.22-.42-.39-.59-.17-.17-.37-.3-.6-.39-.22-.09-.46-.13-.7-.13Zm.91,12.53v1.79c0,.12-.02,.24-.06,.35-.04,.11-.11,.21-.2,.29-.08,.08-.19,.15-.3,.19-.11,.04-.23,.07-.35,.06H3.75c-.12,0-.24-.02-.35-.06-.11-.04-.21-.11-.3-.19-.08-.08-.15-.18-.2-.29-.04-.11-.07-.23-.06-.35V3.34c0-.12,.02-.24,.06-.35,.04-.11,.11-.21,.2-.29,.08-.08,.19-.15,.3-.19,.11-.04,.23-.07,.35-.06h6.36c.12,0,.24,.02,.35,.06,.11,.04,.21,.11,.3,.19,.08,.08,.15,.18,.2,.29,.04,.11,.07,.23,.06,.35V14.08Z'/%3e%3cpath%20class='c'%20d='M9.21,2.45H4.66c-1,0-1.82,.8-1.82,1.79V14.97c0,.99,.81,1.79,1.82,1.79h4.55c1,0,1.82-.8,1.82-1.79V4.24c0-.99-.81-1.79-1.82-1.79Z'/%3e%3cg%3e%3cpath%20class='d'%20d='M4.7,9.52l-.67-1.11h.58l.43,.76,.43-.76h.53l-.65,1.1,.72,1.19h-.59l-.49-.85-.49,.85h-.53l.72-1.17Z'/%3e%3cpath%20class='d'%20d='M6.05,9.61v-.11c0-.7,.41-1.12,1-1.12s.99,.4,.99,1.11v.11c0,.7-.38,1.13-1,1.13s-.99-.42-.99-1.12Zm1.48,0v-.1c0-.46-.16-.72-.48-.72s-.48,.25-.48,.72v.11c0,.48,.17,.72,.49,.72s.47-.25,.47-.72Z'/%3e%3cpath%20class='d'%20d='M8.43,8.41h1.47v.41h-.95v.6h.75v.39h-.75v.88h-.52v-2.28Z'/%3e%3c/g%3e%3c/svg%3e",aA="data:image/svg+xml,%3csvg%20width='10'%20height='17'%20viewBox='0%200%2010%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.88614%206.78076C3.18989%207.49014%203.60357%207.81615%204.1047%207.8361C3.32338%208.41865%202.47781%208.7728%201.59655%208.99905C1.04331%208.96378%200.51398%208.82304%200%208.68266C1.29816%208.42684%202.26615%207.79976%202.88578%206.78076'%20fill='%237F1D1E'/%3e%3cpath%20d='M8.81085%207.91309C8.81085%208.06558%208.81085%208.20097%208.81085%208.33636C8.81085%2011.346%208.8137%2012.4667%208.80656%2015.4763C8.80549%2015.9502%208.62024%2016.346%208.23547%2016.6578C7.93244%2016.9032%207.60692%2017.0016%207.22607%2017.0002C5.6206%2016.9941%204.01477%2016.9987%202.4093%2016.9955C1.70686%2016.9941%201.15933%2016.4931%200.970153%2015.8486C0.952306%2015.7873%200.955519%2015.7189%200.955519%2015.6541C0.953734%2012.7631%200.95302%2011.7614%200.950165%208.87045C0.950165%208.74503%200.979076%208.67306%201.12363%208.70691C1.31173%208.75073%201.49948%208.8056%201.69044%208.82769C1.84142%208.84515%201.87961%208.9189%201.87925%209.04931C1.87818%209.44693%201.87319%209.84491%201.88175%2010.2425C1.89282%2010.7599%202.17372%2011.1197%202.58562%2011.3962C2.8294%2011.5598%203.10246%2011.6143%203.39264%2011.6132C4.38562%2011.6103%205.37896%2011.6132%206.37194%2011.6103C7.00264%2011.6089%207.57051%2011.2284%207.78753%2010.6466C7.84428%2010.4944%207.86819%2010.3231%207.87176%2010.1599C7.88318%209.63185%207.87462%209.10346%207.88318%208.57544C7.88425%208.50489%207.9203%208.40584%207.9742%208.36985C8.21156%208.21059%208.46105%208.06914%208.70734%207.92306C8.72518%207.91237%208.75267%207.91772%208.81085%207.91309Z'%20fill='%23C9DCBF'/%3e%3cpath%20d='M8.80936%206.21907C8.49419%206.068%208.22756%205.94864%207.97129%205.81111C7.92025%205.78367%207.8842%205.68747%207.88027%205.62049C7.86813%205.41348%207.87634%205.20505%207.87456%204.99733C7.86813%204.299%207.35915%203.60137%206.5839%203.56539C5.63625%203.52156%204.6861%203.52299%203.73702%203.50553C3.34368%203.49805%202.95356%203.54045%202.60305%203.72323C2.44207%203.80731%202.30537%203.95446%202.18437%204.09555C1.93023%204.39199%201.8717%204.74686%201.87777%205.13237C1.89204%206.01669%201.87777%206.90137%201.88241%207.78605C1.88348%207.95137%201.81709%208.05434%201.67574%208.12239C1.5012%208.20647%201.32845%208.29448%201.15248%208.375C1.01328%208.43842%200.952959%208.39816%200.951532%208.24317C0.949033%207.98201%200.951532%207.72084%200.951532%207.45968C0.951532%206.00529%200.962953%204.55054%200.946891%203.09615C0.939753%202.45054%201.39091%201.82382%202.04981%201.64354C2.2015%201.60185%202.36355%201.5794%202.52096%201.57869C4.09109%201.57299%205.66123%201.57121%207.23137%201.57727C7.41198%201.57798%207.47266%201.52988%207.4623%201.34781C7.44803%201.09948%207.45588%200.849357%207.46159%200.599952C7.46873%200.293539%207.74535%200.0177671%208.05267%200.00173392C8.5463%20-0.0239193%208.81007%200.235819%208.80936%200.73178C8.80722%202.44769%208.809%204.16325%208.80936%205.87916C8.80936%205.9775%208.80936%206.07619%208.80936%206.21978V6.21907Z'%20fill='%23C9DCBF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.29064%204.95166L9.95346%206.79833C8.08778%209.24821%204.94215%209.3127%201.59164%208.99595C3.83174%208.44512%205.3826%207.07874%206.29064%204.95166Z'%20fill='%23EC1D27'/%3e%3c/svg%3e",b2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20QR%20-%20Idle%3c/title%3e%3cg%20id='Icons'%3e%3crect%20x='5.5'%20y='1.5'%20width='9'%20height='16'%20rx='2'%20ry='2'%20fill='%23f4f4f4'/%3e%3cg%3e%3cpath%20d='M13.5.5h-7a1.95878,1.95878,0,0,0-2,2v15a1.95878,1.95878,0,0,0,2,2h7a1.95878,1.95878,0,0,0,2-2V2.5A1.95878,1.95878,0,0,0,13.5.5Zm1,14v2a.97939.97939,0,0,1-1,1h-7a.97939.97939,0,0,1-1-1V2.5a.97939.97939,0,0,1,1-1h7a.97939.97939,0,0,1,1,1Z'%20fill='%23011b33'/%3e%3cg%3e%3cpath%20d='M10,6.5v3h3v-3Zm2,2H11v-1h1Z'%20fill='%2322D34B'/%3e%3cpath%20d='M7,12.5h3v-3H7Zm1-2H9v1H8Z'%20fill='%2322D34B'/%3e%3crect%20x='8'%20y='7.5'%20width='1'%20height='1'%20fill='%2322D34B'/%3e%3cpolygon%20points='11%2010.5%2011%2011.5%2012%2011.5%2012%2012.5%2013%2012.5%2013%2011.5%2013%2010.5%2012%2010.5%2011%2010.5'%20fill='%2322D34B'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",iA="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20USSD%20-%20Active%3c/title%3e%3cg%20id='Icons'%3e%3cpath%20d='M1.01312,3.49379H18.98758A1.01242,1.01242,0,0,1,20,4.50621V15.48137a1.01242,1.01242,0,0,1-1.01242,1.01242H1.01242A1.01242,1.01242,0,0,1,0,15.48137V4.50691A1.01312,1.01312,0,0,1,1.01312,3.49379Z'%20fill='%239fffb3'/%3e%3cg%3e%3cpolygon%20points='8.627%206.875%206.718%207.495%206.718%205.488%205.218%205.488%205.218%207.495%203.308%206.875%202.844%208.302%204.754%208.922%203.573%2010.547%204.787%2011.428%205.968%209.804%207.148%2011.428%208.362%2010.547%207.181%208.922%209.091%208.302%208.627%206.875'/%3e%3cpath%20d='M16.71753,9.48761v-1.5h-1V6.48755h-1.5V7.98761h-1.5V6.48755h-1.5V7.98761h-1v1.5h1v1h-1v1.5h1v1.49994h1.5V11.98761h1.5v1.49994h1.5V11.98761h1v-1.5h-1v-1Zm-2.5,1h-1.5v-1h1.5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",mg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3ePay%20with%20One-Click%20-%20Active%3c/title%3e%3cg%20id='Icons'%3e%3cg%3e%3cpath%20d='M8,4H9a.48969.48969,0,0,1,.5.5V8.35315a3.5,3.5,0,1,0-2,0V4.5A.48969.48969,0,0,1,8,4Z'%20fill='%2300e1ff'/%3e%3cpath%20d='M11,9.5H9.5v-5A.48969.48969,0,0,0,9,4H8a.48969.48969,0,0,0-.5.5V13l-2-.5L4.5,14l3,3.5H14l1.5-6Z'%20fill='%23011b33'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",oA="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23011b33;}.cls-2{fill:%2322d34b;}.cls-3{fill:%23fff;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-1'%20d='M21.85,10.44V17a2.71,2.71,0,0,1-2.67,2.74H4.73A2.7,2.7,0,0,1,2.07,17V6A1.68,1.68,0,0,0,3.72,7.7H19.18A2.71,2.71,0,0,1,21.85,10.44Z'/%3e%3cpath%20class='cls-2'%20d='M4,4.25h13.4a1.4,1.4,0,0,1,1.4,1.4v.27a0,0,0,0,1,0,0H4a.7.7,0,0,1-.7-.7V5a.7.7,0,0,1,.7-.7Z'/%3e%3cpath%20class='cls-3'%20d='M18.55,12.16h3.52a0,0,0,0,1,0,0v2.55a0,0,0,0,1,0,0H18.55a1.25,1.25,0,0,1-1.25-1.25v-.06A1.25,1.25,0,0,1,18.55,12.16Z'/%3e%3ccircle%20class='cls-1'%20cx='19.19'%20cy='13.49'%20r='0.44'/%3e%3c/svg%3e",lA="data:image/svg+xml,%3csvg%20width='13'%20height='12'%20viewBox='0%200%2013%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.36556%204.80537e-07C8.8417%20-0.000224768%209.30447%200.0787516%209.76086%200.207647C10.1762%200.324959%2010.5624%200.505158%2010.9219%200.739974C11.0544%200.826587%2011.1697%200.939254%2011.2933%201.0395C11.4679%201.18113%2011.6105%201.3527%2011.7384%201.53447C11.9315%201.809%2012.0798%202.10603%2012.1799%202.42876C12.2593%202.68484%2012.3117%202.94419%2012.3396%203.20952C12.3473%203.28188%2012.3517%203.35459%2012.3563%203.42722C12.3625%203.52528%2012.3748%203.62369%2012.3715%203.72152C12.3652%203.9115%2012.3615%204.10278%2012.3352%204.29054C12.3028%204.52258%2012.2561%204.75337%2012.2021%204.98157C12.1208%205.32565%2011.9959%205.65656%2011.8535%205.97945C11.6879%206.35495%2011.4889%206.71343%2011.2694%207.06118C11.062%207.38967%2010.8305%207.70032%2010.5893%208.00405C10.4787%208.14327%2010.3572%208.27444%2010.235%208.40391C10.0619%208.58716%209.88796%208.76998%209.70606%208.94442C9.55468%209.08953%209.39307%209.22429%209.2327%209.35983C9.04811%209.51585%208.86328%209.67196%208.6724%209.82021C8.41119%2010.0232%208.14654%2010.2219%207.87891%2010.4164C7.67542%2010.5644%207.46815%2010.7078%207.25695%2010.8446C6.96243%2011.0353%206.659%2011.2112%206.3468%2011.3728C5.89755%2011.6053%205.43423%2011.8009%204.94042%2011.9158C4.78624%2011.9518%204.62611%2011.9631%204.4684%2011.9829C4.39592%2011.9921%204.32187%2012.0042%204.24983%2011.9985C4.04059%2011.9821%203.82858%2011.9706%203.639%2011.8654C3.52747%2011.8034%203.42303%2011.7322%203.32721%2011.6457C3.15747%2011.4924%203.0353%2011.3091%202.96044%2011.0966C2.91866%2010.978%202.8902%2010.8539%202.88463%2010.726C2.877%2010.5508%202.88239%2010.3751%202.9209%2010.2054C2.95868%2010.0388%203.01411%209.87491%203.07619%209.71545C3.14185%209.54678%203.22119%209.38312%203.30046%209.22013C3.41899%208.97637%203.55677%208.74223%203.72288%208.52856C3.84921%208.36602%203.98669%208.2108%204.14983%208.07959C4.27716%207.97728%204.40632%207.8799%204.55211%207.80593C4.86622%207.64648%205.1996%207.59526%205.54662%207.64607C5.74333%207.67494%205.93121%207.73555%206.09601%207.85331C6.27154%207.97872%206.36068%208.14506%206.32926%208.36154C6.31894%208.43247%206.2929%208.5043%206.25938%208.56806C6.17935%208.72043%206.08075%208.86142%205.96406%208.98889C5.64289%209.33959%205.28981%209.65905%204.96132%2010.0024C4.72166%2010.2529%204.48752%2010.5098%204.31522%2010.814C4.25422%2010.9216%204.19516%2011.0297%204.17299%2011.1553C4.12326%2011.4381%204.31261%2011.6062%204.58877%2011.5768C4.86079%2011.5478%205.11276%2011.4486%205.3609%2011.3371C5.83153%2011.1255%206.27171%2010.8611%206.69342%2010.5677C7.02222%2010.3389%207.34047%2010.0944%207.65715%209.84894C7.82537%209.71858%207.97764%209.56806%208.14169%209.43205C8.43252%209.19094%208.6962%208.92132%208.95606%208.6495C9.31021%208.27905%209.63601%207.88338%209.91489%207.45215C10.158%207.07624%2010.3558%206.67817%2010.4798%206.24711C10.5306%206.0704%2010.5791%205.89181%2010.61%205.71089C10.6408%205.53021%2010.6648%205.3468%2010.6518%205.16163C10.6254%204.783%2010.5403%204.42359%2010.3277%204.09997C10.1598%203.84442%209.92598%203.68438%209.63416%203.60987C9.53457%203.58444%209.42681%203.58825%209.32256%203.58386C9.04698%203.57229%208.78573%203.64791%208.52663%203.72594C8.38041%203.77%208.23733%203.82739%208.0977%203.8897C7.90251%203.9768%207.7097%204.06994%207.51981%204.168C7.16247%204.35253%206.81559%204.55552%206.47799%204.77393C6.07658%205.03372%205.67354%205.29115%205.27496%205.55519C4.81541%205.85959%204.36131%206.17168%203.92359%206.50736C3.66601%206.70485%203.39987%206.89171%203.13297%207.07674C2.88553%207.24827%202.61822%207.38631%202.33632%207.49206C1.96682%207.63056%201.58685%207.67364%201.20003%207.57072C1.06452%207.5347%200.93617%207.47767%200.816736%207.40187C0.667961%207.30748%200.530528%207.20116%200.406796%207.07441C0.237501%206.90091%200.128171%206.69721%200.0596859%206.46799C0.0192929%206.33284%20-0.00152832%206.19437%208.73969e-05%206.05462C0.00251097%205.85101%200.0320786%205.65021%200.0911924%205.45433C0.198638%205.09826%200.362094%204.76798%200.570113%204.46122C0.726978%204.22994%200.895239%204.00598%201.06624%203.78475C1.15546%203.66936%201.25895%203.56438%201.36079%203.45931C1.50265%203.3129%201.64578%203.16738%201.79439%203.02785C1.94057%202.89056%202.0897%202.75564%202.24575%202.62978C2.45858%202.45807%202.67419%202.28895%202.89774%202.13159C3.16075%201.94644%203.43134%201.77173%203.70251%201.5985C4.07398%201.3611%204.46216%201.1519%204.86065%200.963785C5.15167%200.826448%205.4495%200.702786%205.74809%200.5823C5.95499%200.498808%206.16746%200.428509%206.37907%200.357051C6.70563%200.246798%207.03897%200.160721%207.37871%200.10221C7.5634%200.070396%207.74956%200.0455436%207.9359%200.0257003C8.07845%200.0105014%208.2223%200.00808797%208.36556%204.80537e-07Z'%20fill='%23FF0008'/%3e%3c/svg%3e",cA="/assets/pesalink_active-DtNsa04U.svg",uA="/assets/wave_active-BQ3KDGCD.svg",dA="data:image/svg+xml,%3csvg%20width='16'%20height='8'%20viewBox='0%200%2016%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.93698%207.19538H13.5087C14.0213%207.19538%2014.4369%206.77971%2014.4369%206.26691C14.4369%205.75411%2014.0213%205.33841%2013.5087%205.33841H11.1778L14.9299%201.58502C15.2925%201.22245%2015.2925%200.63456%2014.9299%200.271988C14.5675%20-0.0906628%2013.9798%20-0.0906628%2013.6173%200.271988L9.86515%204.02538V1.69372C9.86515%201.18092%209.44961%200.765242%208.93698%200.765242C8.42435%200.765242%208.00879%201.18092%208.00879%201.69372V6.26691C8.00879%206.77971%208.42435%207.19538%208.93698%207.19538Z'%20fill='%23FF7900'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.26485%200.804596H1.69316C1.18053%200.804596%200.764991%201.22029%200.764991%201.73309C0.764991%202.24589%201.18053%202.66157%201.69316%202.66157H4.02406L0.271899%206.415C-0.090633%206.77753%20-0.090633%207.36542%200.271899%207.72805C0.634351%208.09064%201.22205%208.09064%201.5845%207.72805L5.33666%203.97466V6.30626C5.33666%206.81906%205.75222%207.23476%206.26485%207.23476C6.77748%207.23476%207.19302%206.81906%207.19302%206.30626V1.73309C7.19302%201.22029%206.77748%200.804596%206.26485%200.804596Z'%20fill='black'/%3e%3c/svg%3e",hA="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1_5847)'%3e%3cpath%20d='M0%200H14V14H0V0Z'%20fill='%23FFC403'/%3e%3cpath%20d='M6.22321%206.17365V7.77169H5.78614V6.87535L5.49419%207.3073H5.26541L4.94443%206.87535V7.77169H4.54492V6.17365H4.94785L5.40882%206.80023L5.82199%206.17365H6.22321ZM6.34956%206.5356V6.17365H7.84175V6.5356H7.31931V7.77169H6.8737V6.5356H6.34956ZM9.4859%206.17365V7.77169H9.11882L8.3676%206.85828V7.77169H7.96809V6.17365H8.3659L9.08468%207.05462V6.17365H9.4859Z'%20fill='black'/%3e%3cpath%20d='M7.00008%209.44146C5.70935%209.44146%204.49203%209.20073%203.5735%208.76195C2.61228%208.30268%202.08301%207.6778%202.08301%207C2.08301%206.32219%202.61228%205.69731%203.5735%205.23804C4.49203%204.79926%205.70935%204.55853%207.00008%204.55853C8.29081%204.55853%209.50813%204.79926%2010.4267%205.23804C11.3879%205.69731%2011.9172%206.32219%2011.9172%207C11.9172%207.6778%2011.3879%208.30268%2010.4267%208.76195C9.50813%209.20073%208.29081%209.44146%207.00008%209.44146ZM7.00008%204.91878C5.76057%204.91878%204.59959%205.14756%203.72886%205.56414C2.90081%205.96024%202.44325%206.47073%202.44325%207.0017C2.44325%207.53268%202.89911%208.04317%203.72886%208.43756C4.59959%208.85414%205.76228%209.08292%207.00008%209.08292C8.23789%209.08292%209.40057%208.85414%2010.2713%208.43756C11.0993%208.04317%2011.5569%207.53097%2011.5569%207.0017C11.5569%206.47244%2011.1011%205.96024%2010.2713%205.56585C9.40057%205.14756%208.23959%204.91878%207.00008%204.91878Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1_5847'%3e%3crect%20width='14'%20height='14'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function pg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{cardIcon:e=>{const{normalize:n}=e;return n(["Card Icon"])},bankIcon:e=>{const{normalize:n}=e;return n(["Bank Icon"])},eftIcon:e=>{const{normalize:n}=e;return n(["EFT Icon"])},phoneNumberIcon:e=>{const{normalize:n}=e;return n(["Phone Number Icon"])},ussdIcon:e=>{const{normalize:n}=e;return n(["USSD Icon"])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Mobile Money Icon"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Phone icon"])},qrIcon:e=>{const{normalize:n}=e;return n(["QR Icon"])},payWithTransferIcon:e=>{const{normalize:n}=e;return n(["Pay with Transfer Icon"])},walletIcon:e=>{const{normalize:n}=e;return n(["Wallet Icon"])},vaultIcon:e=>{const{normalize:n}=e;return n(["Vault Icon"])},oPayIcon:e=>{const{normalize:n}=e;return n(["OPay Icon"])},airtelIcon:e=>{const{normalize:n}=e;return n(["Airtel Icon"])},pesalinkIcon:e=>{const{normalize:n}=e;return n(["PesaLink Icon"])},waveIcon:e=>{const{normalize:n}=e;return n(["Wave Icon"])},orangeIcon:e=>{const{normalize:n}=e;return n(["Orange Icon"])},mtnIcon:e=>{const{normalize:n}=e;return n(["MTN Icon"])}},fr:{cardIcon:e=>{const{normalize:n}=e;return n(["Icône de la Carte"])},bankIcon:e=>{const{normalize:n}=e;return n(["Icône de la Banque"])},eftIcon:e=>{const{normalize:n}=e;return n(["Icône EFT (Transfert Electronique de Fonds)"])},phoneNumberIcon:e=>{const{normalize:n}=e;return n(["Icône de Numéro de Téléphone"])},ussdIcon:e=>{const{normalize:n}=e;return n(["Icône USSD"])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Icône Mobile Money"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Icône de Téléphone"])},qrIcon:e=>{const{normalize:n}=e;return n(["Icône QR"])},payWithTransferIcon:e=>{const{normalize:n}=e;return n(["Payer avec l'Icône de Transfert"])},walletIcon:e=>{const{normalize:n}=e;return n(["Icône Wallet"])},vaultIcon:e=>{const{normalize:n}=e;return n(["Icône de Coffre"])},oPayIcon:e=>{const{normalize:n}=e;return n(["Icône OPay"])},airtelIcon:e=>{const{normalize:n}=e;return n(["Icône Airtel"])},pesalinkIcon:e=>{const{normalize:n}=e;return n(["Icône PesaLink"])},waveIcon:e=>{const{normalize:n}=e;return n(["Icône Wave"])},orangeIcon:e=>{const{normalize:n}=e;return n(["Icône Orange"])},mtnIcon:e=>{const{normalize:n}=e;return n(["Icône MTN"])}},ar:{cardIcon:e=>{const{normalize:n}=e;return n(["رمز البطاقة"])}}}})}const i5={name:"ChannelIcon",props:["icon","active"],setup(){const{isGhanaianTransaction:t,isKenyanTransaction:r,isCoteDIvoireTransaction:e}=Do();return{isGhanaianTransaction:t,isKenyanTransaction:r,isCoteDIvoireTransaction:e}},computed:{...we(ae,["availableChannels","activeChannel","isCharging","isRedirected","transaction"]),isMpesaIcon(){return["mpesa","mptill"].includes(this.icon)},isMobileMoneyCiIcon(){return this.icon==="mobile_money"&&this.isCoteDIvoireTransaction},isMobileMoneyGhIcon(){return this.icon==="mobile_money"&&this.isGhanaianTransaction},isBankTransferKenyaIcon(){return this.icon==="bank_transfer"&&this.isKenyanTransaction}}},mA={class:"channel-icon__housing"},pA={class:"channel-icon--idle"},fA=["alt"],_A=["alt"],gA=["alt"],vA=["alt"],yA=["alt"],bA=["alt"],CA=["alt"],wA=["alt"],kA=["alt"],SA=["alt"],EA=["alt"],TA=["alt"],$A=["alt"],IA=["alt"],AA=["alt"],zA=["alt"],RA=["alt"],PA=["alt"],NA=["alt"],MA=["alt"],LA=["alt"],xA=["alt"],OA={class:"channel-icon--active"},FA=["alt"],DA=["alt"],VA=["alt"],BA=["alt"],UA=["alt"],HA=["alt"],qA=["alt"],WA=["alt"],GA=["alt"],jA=["alt"],ZA=["alt"],KA=["alt"],YA=["alt"],QA=["alt"],JA=["alt"],XA=["alt"],ez=["alt"],tz=["alt"],nz=["alt"],rz=["alt"],sz=["alt"],az=["alt"];function iz(t,r,e,n,s,a){return f(),v("span",null,[m("span",{class:pt(["channel-icon",{active:e.active}])},[m("span",mA,[m("span",pA,[e.icon==="vault"?(f(),v("img",{key:0,width:"18px",src:DI,alt:t.$t("vaultIcon")},null,8,fA)):D("",!0),e.icon==="card"?(f(),v("img",{key:1,width:"18px",src:s5,alt:t.$t("cardIcon")},null,8,_A)):D("",!0),e.icon==="bank"?(f(),v("img",{key:2,width:"18px",src:ug,alt:t.$t("bankIcon")},null,8,gA)):D("",!0),e.icon==="opay"?(f(),v("img",{key:3,width:"18px",src:VI,alt:t.$t("oPayIcon")},null,8,vA)):D("",!0),e.icon==="bank_transfer"&&!a.isBankTransferKenyaIcon?(f(),v("img",{key:4,width:"18px",src:BI,alt:t.$t("payWithTransferIcon")},null,8,yA)):D("",!0),e.icon==="eft_channels"?(f(),v("img",{key:5,width:"18px",src:UI,alt:t.$t("eftIcon")},null,8,bA)):D("",!0),a.isMobileMoneyGhIcon?(f(),v("img",{key:6,width:"18px",src:HI,alt:t.$t("mobileMoneyIcon")},null,8,CA)):D("",!0),a.isMobileMoneyCiIcon?(f(),v("img",{key:7,width:"18px",src:qI,alt:t.$t("mobileMoneyIcon")},null,8,wA)):D("",!0),a.isMpesaIcon?(f(),v("img",{key:8,width:"18px",height:"18px",src:WI,alt:t.$t("phoneIcon")},null,8,kA)):D("",!0),e.icon==="visa_qr"?(f(),v("img",{key:9,width:"18px",src:y2,alt:t.$t("qrIcon")},null,8,SA)):D("",!0),e.icon==="mpass_olti_qr"?(f(),v("img",{key:10,width:"18px",src:y2,alt:t.$t("qrIcon")},null,8,EA)):D("",!0),e.icon==="snapscan_qr"?(f(),v("img",{key:11,width:"18px",src:y2,alt:t.$t("qrIcon")},null,8,TA)):D("",!0),e.icon==="ussd"?(f(),v("img",{key:12,width:"18px",src:GI,alt:t.$t("ussdIcon")},null,8,$A)):D("",!0),e.icon==="phone number"?(f(),v("img",{key:13,width:"18px",src:dg,alt:t.$t("phoneNumberIcon")},null,8,IA)):D("",!0),e.icon==="direct_debit"?(f(),v("img",{key:14,width:"18px",src:ug,alt:t.$t("bankIcon")},null,8,AA)):D("",!0),e.icon==="payattitude"?(f(),v("img",{key:15,width:"18px",src:dg,alt:t.$t("phoneNumberIcon")},null,8,zA)):D("",!0),e.icon==="paypal"?(f(),v("img",{key:16,width:"18px",src:jI,alt:t.$t("walletIcon")},null,8,RA)):D("",!0),e.icon==="atl_ke"?(f(),v("img",{key:17,width:"18px",height:"18px",src:ZI,alt:t.$t("airtelIcon")},null,8,PA)):D("",!0),a.isBankTransferKenyaIcon?(f(),v("img",{key:18,width:"18px",height:"18px",src:KI,alt:t.$t("pesalinkIcon")},null,8,NA)):D("",!0),e.icon==="wave_ci"?(f(),v("img",{key:19,width:"18px",height:"18px",src:YI,alt:t.$t("waveIcon")},null,8,MA)):D("",!0),e.icon==="orange_ci"?(f(),v("img",{key:20,width:"18px",height:"18px",src:QI,alt:t.$t("orangeIcon")},null,8,LA)):D("",!0),e.icon==="mtn_ci"?(f(),v("img",{key:21,width:"18px",height:"18px",src:JI,alt:t.$t("mtnIcon")},null,8,xA)):D("",!0)]),m("span",OA,[e.icon==="vault"?(f(),v("img",{key:0,width:"18px",src:XI,alt:t.$t("vaultIcon")},null,8,FA)):D("",!0),e.icon==="card"?(f(),v("img",{key:1,width:"18px",src:a5,alt:t.$t("cardIcon")},null,8,DA)):D("",!0),e.icon==="bank"?(f(),v("img",{key:2,width:"18px",src:hg,alt:t.$t("bankIcon")},null,8,VA)):D("",!0),e.icon==="opay"?(f(),v("img",{key:3,width:"18px",src:eA,alt:t.$t("oPayIcon")},null,8,BA)):D("",!0),e.icon==="bank_transfer"&&!a.isBankTransferKenyaIcon?(f(),v("img",{key:4,width:"18px",src:tA,alt:t.$t("payWithTransferIcon")},null,8,UA)):D("",!0),e.icon==="eft_channels"?(f(),v("img",{key:5,width:"18px",src:nA,alt:t.$t("eftIcon")},null,8,HA)):D("",!0),a.isMobileMoneyGhIcon?(f(),v("img",{key:6,width:"18px",src:rA,alt:t.$t("mobileMoneyIcon")},null,8,qA)):D("",!0),a.isMobileMoneyCiIcon?(f(),v("img",{key:7,width:"18px",src:sA,alt:t.$t("mobileMoneyIcon")},null,8,WA)):D("",!0),a.isMpesaIcon?(f(),v("img",{key:8,width:"18px",height:"18px",src:aA,alt:t.$t("phoneIcon")},null,8,GA)):D("",!0),e.icon==="visa_qr"?(f(),v("img",{key:9,width:"18px",src:b2,alt:t.$t("qrIcon")},null,8,jA)):D("",!0),e.icon==="mpass_olti_qr"?(f(),v("img",{key:10,width:"18px",src:b2,alt:t.$t("qrIcon")},null,8,ZA)):D("",!0),e.icon==="snapscan_qr"?(f(),v("img",{key:11,width:"18px",src:b2,alt:t.$t("qrIcon")},null,8,KA)):D("",!0),e.icon==="ussd"?(f(),v("img",{key:12,width:"18px",src:iA,alt:t.$t("ussdIcon")},null,8,YA)):D("",!0),e.icon==="phone number"?(f(),v("img",{key:13,width:"18px",src:mg,alt:t.$t("phoneNumberIcon")},null,8,QA)):D("",!0),e.icon==="direct_debit"?(f(),v("img",{key:14,width:"18px",src:hg,alt:t.$t("bankIcon")},null,8,JA)):D("",!0),e.icon==="payattitude"?(f(),v("img",{key:15,width:"18px",src:mg,alt:t.$t("phoneNumberIcon")},null,8,XA)):D("",!0),e.icon==="paypal"?(f(),v("img",{key:16,width:"18px",src:oA,alt:t.$t("walletIcon")},null,8,ez)):D("",!0),e.icon==="atl_ke"?(f(),v("img",{key:17,width:"18px",height:"18px",src:lA,alt:t.$t("airtelIcon")},null,8,tz)):D("",!0),a.isBankTransferKenyaIcon?(f(),v("img",{key:18,width:"18px",height:"18px",src:cA,alt:t.$t("pesalinkIcon")},null,8,nz)):D("",!0),e.icon==="wave_ci"?(f(),v("img",{key:19,width:"18px",height:"18px",src:uA,alt:t.$t("waveIcon")},null,8,rz)):D("",!0),e.icon==="orange_ci"?(f(),v("img",{key:20,width:"18px",height:"18px",src:dA,alt:t.$t("orangeIcon")},null,8,sz)):D("",!0),e.icon==="mtn_ci"?(f(),v("img",{key:21,width:"18px",height:"18px",src:hA,alt:t.$t("mtnIcon")},null,8,az)):D("",!0)])])],2)])}typeof pg=="function"&&pg(i5);const oz=ee(i5,[["render",iz],["__scopeId","data-v-0a33f7ad"]]);function Vo(){const t=ae(),r=te(()=>t.availableChannels||[]),e=te(()=>{var s;return((s=r.value.find(a=>a.key===dr.EFT_CHANNELS))==null?void 0:s.channels)||[]}),n=te(()=>e.value.length>1);return{eftChannels:e,hasMoreThanOneEftChannel:n}}function fg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{payWithChannel:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay with ",s(a("channel"))])},new:e=>{const{normalize:n}=e;return n(["New"])},change:e=>{const{normalize:n}=e;return n(["Change"])},channels:{card:e=>{const{normalize:n}=e;return n(["Card"])},bank:e=>{const{normalize:n}=e;return n(["Bank"])},ussd:e=>{const{normalize:n}=e;return n(["USSD"])},visa_qr:e=>{const{normalize:n}=e;return n(["Visa QR"])},mpass_olti_qr:e=>{const{normalize:n}=e;return n(["Scan to Pay"])},snapscan_qr:e=>{const{normalize:n}=e;return n(["SnapScan"])},mobile_money:e=>{const{normalize:n}=e;return n(["Mobile Money"])},mpesa:e=>{const{normalize:n}=e;return n(["M-PESA"])},mptill:e=>{const{normalize:n}=e;return n(["M-PESA Till"])},atl_ke:e=>{const{normalize:n}=e;return n(["Airtel Money"])},wave_ci:e=>{const{normalize:n}=e;return n(["Wave"])},orange_ci:e=>{const{normalize:n}=e;return n(["Orange"])},mtn_ci:e=>{const{normalize:n}=e;return n(["MTN"])},direct_debit:e=>{const{normalize:n}=e;return n(["Direct Debit"])},bank_transfer:e=>{const{normalize:n}=e;return n(["Transfer"])},bank_transfer_GHS:e=>{const{normalize:n}=e;return n(["Bank Transfer"])},bank_transfer_KES:e=>{const{normalize:n}=e;return n(["Pesalink"])},apple_pay:e=>{const{normalize:n}=e;return n(["Apple Pay"])},eft_channels:e=>{const{normalize:n}=e;return n(["EFT"])},capitec_pay:e=>{const{normalize:n}=e;return n(["Capitec Pay"])},multi_eft_channels:e=>{const{normalize:n}=e;return n(["Pay by Bank"])},payattitude:e=>{const{normalize:n}=e;return n(["PayAttitude"])},paypal:e=>{const{normalize:n}=e;return n(["PayPal"])},vault:e=>{const{normalize:n}=e;return n(["Vault"])},opay:e=>{const{normalize:n}=e;return n(["OPay"])},zap:e=>{const{normalize:n}=e;return n(["Zap"])}}},fr:{payWithChannel:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer avec ",s(a("channel"))])},new:e=>{const{normalize:n}=e;return n(["Nouveau"])},change:e=>{const{normalize:n}=e;return n(["Modifier"])},channels:{card:e=>{const{normalize:n}=e;return n(["Carte"])},bank:e=>{const{normalize:n}=e;return n(["Banque"])},ussd:e=>{const{normalize:n}=e;return n(["USSD"])},visa_qr:e=>{const{normalize:n}=e;return n(["Visa QR"])},mpass_olti_qr:e=>{const{normalize:n}=e;return n(["Scan to Pay"])},snapscan_qr:e=>{const{normalize:n}=e;return n(["SnapScan"])},mobile_money:e=>{const{normalize:n}=e;return n(["Mobile Money"])},mpesa:e=>{const{normalize:n}=e;return n(["M-PESA"])},mptill:e=>{const{normalize:n}=e;return n(["M-PESA Till"])},atl_ke:e=>{const{normalize:n}=e;return n(["Airtel Money"])},wave_ci:e=>{const{normalize:n}=e;return n(["Wave"])},orange_ci:e=>{const{normalize:n}=e;return n(["Orange"])},mtn_ci:e=>{const{normalize:n}=e;return n(["MTN"])},direct_debit:e=>{const{normalize:n}=e;return n(["Prélèvement Automatique"])},bank_transfer:e=>{const{normalize:n}=e;return n(["Virement"])},bank_transfer_GHS:e=>{const{normalize:n}=e;return n(["Virement bancaire"])},bank_transfer_KES:e=>{const{normalize:n}=e;return n(["Pesalink"])},apple_pay:e=>{const{normalize:n}=e;return n(["Apple Pay"])},eft:e=>{const{normalize:n}=e;return n(["EFT"])},payattitude:e=>{const{normalize:n}=e;return n(["PayAttitude"])},paypal:e=>{const{normalize:n}=e;return n(["PayPal"])},opay:e=>{const{normalize:n}=e;return n(["OPay"])},zap:e=>{const{normalize:n}=e;return n(["Zap"])}}},ar:{payWithChannel:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ادفع عن طريق ",s(a("channel"))])},new:e=>{const{normalize:n}=e;return n(["جديد"])},change:e=>{const{normalize:n}=e;return n(["تغيير"])},channels:{card:e=>{const{normalize:n}=e;return n(["بطاقة"])}}}}})}const o5={name:"AppNavigation",components:{WelcomeMessage:FI,ChannelIcon:oz,LanguageSwitcher:MI},setup(){const{hasMoreThanOneEftChannel:t}=Vo(),{isGhanaianTransaction:r,isKenyanTransaction:e}=Do();return{isGhanaianTransaction:r,isKenyanTransaction:e,hasMoreThanOneEftChannel:t}},props:{animate:Boolean},emits:["setChannel"],computed:{...we(ae,["availableChannels","activeChannel","isCharging","isRedirected","transaction"]),channels(){return this.availableChannels.map(t=>{const{key:r,isNew:e,label:n,options:s}=t,a=s?s[0].key:r;return{label:this.getChannelLabel(r,n,t.channels),icon:a,key:r,isNew:e}})},classObject(){return{"animated pokeOut":this.animate,"nav--collapsed":this.activeChannel.name,"nav--disabled":this.isCharging||this.isRedirected}},showLanguageSwitcher(){return this.activeChannel.name&&Wl[this.transaction.currency]}},methods:{isEftChannelActive(t){return oc.includes(t)},isActive(t){return t===dr.EFT_CHANNELS?this.isEftChannelActive(this.activeChannel.name):this.activeChannel.name===t},getChannelLabel(t,r,e){if((this.isGhanaianTransaction||this.isKenyanTransaction)&&t==="bank_transfer"){const n=this.isGhanaianTransaction?"Bank Transfer":"Pesalink";return{mobile:this.$t("payWithChannel",{channel:n}),desktop:this.$t("channels.".concat(t,"_").concat(this.transaction.currency))}}if(t===dr.EFT_CHANNELS){if(this.hasMoreThanOneEftChannel)return{mobile:this.$t("channels.multi_eft_channels"),desktop:this.$t("channels.multi_eft_channels")};const n=e||[];if(n.length===1)return n[0].key===dr.CAPITEC_PAY?{mobile:this.$t("payWithChannel",{channel:this.$t("channels.capitec_pay")}),desktop:this.$t("channels.capitec_pay")}:{mobile:this.$t("payWithChannel",{channel:this.$t("channels.eft_channels")}),desktop:this.$t("channels.eft_channels")}}return{mobile:this.$t("payWithChannel",{channel:r}),desktop:this.$t("channels.".concat(t))}}}},lz={class:"nav__welcome-message"},cz={class:"nav__items","data-testid":"nav-items"},uz=["data-testid"],dz=["onClick","data-testid"],hz={key:0,class:"icon"},mz={key:1,class:"badge badge--red"},pz={class:"text"},fz={class:"mobile-only"},_z={class:"desktop-only"};function gz(t,r,e,n,s,a){const i=P("welcome-message"),o=P("channel-icon"),l=P("language-switcher");return f(),v("nav",{class:pt(["nav",a.classObject])},[m("div",null,[m("div",lz,[$(i)]),m("ul",cz,[(f(!0),v(gt,null,Ot(a.channels,d=>(f(),v("li",{class:pt(["nav__item",{active:a.isActive(d.key)}]),"data-testid":"nav-item-"+d.key,key:d.key},[m("a",{onClick:u=>t.$emit("setChannel",d.key),"data-testid":d.icon+"-nav"},[d.isNew?D("",!0):(f(),v("span",hz,[$(o,{icon:d.icon,active:a.isActive(d.key)},null,8,["icon","active"])])),d.isNew?(f(),v("span",mz,T(t.$t("new")),1)):D("",!0),m("span",pz,[m("span",fz,T(d.label.mobile),1),m("span",_z,T(d.label.desktop),1)])],8,dz)],10,uz))),128))])]),a.showLanguageSwitcher?(f(),se(l,{key:0})):D("",!0)],2)}typeof fg=="function"&&fg(o5);const vz=ee(o5,[["render",gz],["__scopeId","data-v-efe4f3e0"]]);function _g(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{test:e=>{const{normalize:n}=e;return n(["Test"])},merchantLogo:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("merchantName"))," Logo"])},pay:{text:e=>{const{normalize:n}=e;return n(["Pay"])},amount:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("amount"))])}}},fr:{test:e=>{const{normalize:n}=e;return n(["Test"])},merchantLogo:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Logo ",s(a("merchantName"))," "])},pay:{text:e=>{const{normalize:n}=e;return n(["Payer"])},amount:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("amount"))])}}},ar:{test:e=>{const{normalize:n}=e;return n(["اختبار"])},merchantLogo:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["شعار ",s(a("merchantName"))])},pay:{text:e=>{const{normalize:n}=e;return n(["ادفع"])},amount:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("amount"))])}}}}})}const l5={name:"PaymentInfo",computed:{...we(ae,["transaction","transactionAmount","transactionAmountCurrency"]),merchant(){const{merchant:t}=this.transaction;return t},customerInfo(){const{label:t,email:r}=this.transaction;return t||r},formattedAmount(){const t=this.transactionAmountCurrency||this.transaction.currency;return Qn({amount:this.transactionAmount,currency:t})}},methods:{truncate(t,r){const n=t||"",s=r||30;if(n.length<=s)return n;let a=n.slice(0,s-3),i=a.length-1;for(;i>0&&a[i]!==" "&&a[i]!==".";)i-=1;return i=i||s-3,a=a.slice(0,i),bn.languageDirection==="rtl"?"...".concat(a):"".concat(a,"...")}}},yz={class:"header"},bz={class:"payment-info","data-testid":"paymentInfo"},Cz={class:"merchant-logo"},wz=["src","alt"],kz={class:"customer-info"},Sz=["label"],Ez={class:"transaction-amount","data-testid":"transaction-amount"},Tz={key:0,class:"test-badge","data-testid":"testBadge"};function $z(t,r,e,n,s,a){return f(),v("header",yz,[m("div",bz,[m("div",Cz,[a.merchant?(f(),v("img",{key:0,src:a.merchant.logo,alt:t.$t("merchantLogo",{merchantName:a.merchant.name})},null,8,wz)):D("",!0)]),m("div",kz,[m("div",{class:"customer-email",label:a.customerInfo,"data-testid":"customer-info"},T(a.truncate(a.customerInfo,25)),9,Sz),m("div",Ez,[Be(T(t.$t("pay.text"))+" ",1),m("span",null,T(t.$t("pay.amount",{amount:a.formattedAmount})),1)])])]),t.transaction.isTest?(f(),v("div",Tz,T(t.$t("test")),1)):D("",!0)])}typeof _g=="function"&&_g(l5);const Iz=ee(l5,[["render",$z],["__scopeId","data-v-6ff95f2e"]]),ti=async t=>{var r;try{window.ReactNativeWebView?window.ReactNativeWebView.postMessage(JSON.stringify({type:"COPY_TO_CLIPBOARD",text:t})):await((r=navigator==null?void 0:navigator.clipboard)==null?void 0:r.writeText(t))}catch(e){return"Copy failed!"}};function gg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{downloadQrCode:e=>{const{normalize:n}=e;return n(["Download QR code"])},copied:e=>{const{normalize:n}=e;return n(["Copied!"])}},fr:{downloadQrCode:e=>{const{normalize:n}=e;return n(["Télécharger le QR code"])},copied:e=>{const{normalize:n}=e;return n(["Copié!"])}}}})}const c5={name:"QRCode",components:{Loader:tn},props:{url:{type:String,required:!0},code:{type:String,required:!1}},data(){return{copyText:null,qrCodeLoaded:!1}},computed:{formattedCode(){if(!this.code)return"";const t=this.code.length,r=Math.round(t/2);return"".concat(this.code.slice(0,r)," ").concat(this.code.slice(r))}},methods:{onQrCodeLoad(){this.qrCodeLoaded=!0},copyToClipboard(t){ti(t).then(this.onCopy)},onCopy(t){this.copyText=t||"Copied!",setTimeout(()=>{this.copyText=null},1e3)}}},Az={class:"qr__wrapper"},zz={class:"qr__code"},Rz=["src"],Pz={key:0,class:"qr__code__text"},Nz={key:0,class:"copy"};function Mz(t,r,e,n,s,a){const i=P("loader");return f(),v("div",Az,[s.qrCodeLoaded?D("",!0):(f(),se(i,{key:0})),ct(m("div",zz,[m("img",{name:"qrCodeImage",alt:"Paystack QR Code",src:e.url,id:"qrCodeImage",onLoad:r[0]||(r[0]=(...o)=>a.onQrCodeLoad&&a.onQrCodeLoad(...o))},null,40,Rz),e.code?(f(),v("div",Pz,[s.copyText?(f(),v("p",Nz,T(s.copyText),1)):(f(),v("p",{key:1,class:"code",onClick:r[1]||(r[1]=o=>a.copyToClipboard(e.code))},[Be(T(a.formattedCode)+" ",1),r[2]||(r[2]=m("span",null,[m("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},[m("path",{d:"M2.5 7.5H2C1.73478 7.5 1.48043 7.39464 1.29289 7.20711C1.10536\n 7.01957 1 6.76522 1 6.5V2C1 1.73478 1.10536 1.48043 1.29289 1.29289C1.48043\n 1.10536 1.73478 1 2 1H6.5C6.76522 1 7.01957 1.10536 7.20711 1.29289C7.39464\n 1.48043 7.5 1.73478 7.5 2V2.5M5.5 4.5H10C10.5523 4.5 11 4.94772 11 5.5V10C11\n 10.5523 10.5523 11 10 11H5.5C4.94772 11 4.5 10.5523 4.5 10V5.5C4.5 4.94772 4.94772 4.5 5.5 4.5Z",stroke:"#011B33","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]))])):D("",!0)],512),[[hr,s.qrCodeLoaded]])])}typeof gg=="function"&&gg(c5);const Wm=ee(c5,[["render",Mz]]),Kr={methods:{emitPaymentChannelError:(t,r)=>{if(r.request&&[0,500,504].some(e=>e===r.request.status))t.$emit("callback",{status:"requery"});else{const e=r.response&&r.response.data||r,{message:n}=e;t.$emit("callback",{status:"failed",data:e,message:n})}}}},Lz="data:image/svg+xml,%3csvg%20clip-rule='evenodd'%20width='200'%20height='40'%20fill-rule='evenodd'%20viewBox='0%200%20560%20300'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m286.87%20176.71c-.228%2017.993%2016.036%2028.034%2028.287%2034.004%2012.588%206.126%2016.816%2010.054%2016.768%2015.531-.096%208.384-10.042%2012.083-19.35%2012.227-16.24.252-25.681-4.384-33.188-7.891l-5.849%2027.373c7.531%203.472%2021.476%206.499%2035.938%206.631%2033.944%200%2056.152-16.756%2056.273-42.736.132-32.971-45.607-34.797-45.295-49.535.108-4.468%204.372-9.237%2013.717-10.45%204.624-.612%2017.392-1.081%2031.866%205.585l5.681-26.484c-7.783-2.835-17.789-5.55-30.244-5.55-31.95%200-54.423%2016.984-54.604%2041.295m139.44-39.013c-6.198%200-11.423%203.616-13.753%209.165l-48.49%20115.777h33.92l6.75-18.654h41.451l3.916%2018.654h29.896l-26.089-124.942zm4.744%2033.752%209.789%2046.916h-26.809zm-185.31-33.752-26.737%20124.942h32.322l26.725-124.942zm-47.817%200-33.644%2085.04-13.609-72.308c-1.597-8.071-7.903-12.732-14.906-12.732h-54.999l-.769%203.628c11.291%202.45%2024.119%206.402%2031.89%2010.63%204.756%202.582%206.114%204.84%207.675%2010.978l25.776%2099.706h34.161l52.369-124.942z'%20fill='%231a1f71'/%3e%3c/svg%3e";function vg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{downloadQrCode:e=>{const{normalize:n}=e;return n(["Download qr code"])},visaLogo:e=>{const{normalize:n}=e;return n(["Visa Logo"])},instruction:e=>{const{normalize:n}=e;return n(["Scan the QR code below in your Ecobank, FirstBank, Fidelity, Access, Diamond, Paga, or Zenith Bank mobile app to complete the payment."])}},fr:{downloadQrCode:e=>{const{normalize:n}=e;return n(["Télécharger le QR code"])},visaLogo:e=>{const{normalize:n}=e;return n(["Logo de Visa"])},instruction:e=>{const{normalize:n}=e;return n(["Scanner le QR code ci-dessous dans votre application mobile Ecobank, FirstBank, Fidelity, Access, Diamond, Paga ou Zenith Bank pour effectuer le paiement."])}}}})}const u5={name:"VisaQrChannel",components:{QrCode:Wm,Loader:tn},mixins:[Kr],emits:["callback"],computed:{...we(ae,["transaction"]),showDownloadQrCode(){return Fn()}},data(){return{channel:"visa",qrData:null}},async created(){try{const{data:t}=await this.transaction.getQRCode({channel:this.channel});this.qrData=t,this.listenForCharge()}catch(t){this.emitPaymentChannelError(this,t)}this.fileName="Paystack_".concat(this.transaction.merchant.name,"_").concat(this.transaction.id,"_QRCode.png")},methods:{listenForChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),r())},listenForCharge(){this.transaction.listenForQRCharge({channel:this.channel},this.listenForChargeCallback)}}},xz={class:"visa-qr-container"},Oz={key:1},Fz={class:"visa-qr-container__header","data-testid":"qrCodeHeader"},Dz=["alt"],Vz={class:"instruction"},Bz=["href","download"];function Uz(t,r,e,n,s,a){const i=P("loader"),o=P("qr-code");return f(),v("div",xz,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[s.qrData?(f(),v("div",Oz,[m("div",Fz,[m("div",null,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:Lz,alt:t.$t("visaLogo")},null,8,Dz)]),_:1})]),m("p",Vz,T(t.$t("instruction")),1)]),$(o,{url:s.qrData.url},null,8,["url"]),a.showDownloadQrCode?(f(),v("a",{key:0,"data-testid":"saveQrImageButton",href:s.qrData.url,download:t.fileName,class:"visa-qr-container__download-qr"},T(t.$t("downloadQrCode")),9,Bz)):D("",!0)])):(f(),se(i,{key:0}))]),_:1})])}typeof vg=="function"&&vg(u5);const Hz=ee(u5,[["render",Uz],["__scopeId","data-v-30f44ecc"]]),qz={class:"eft-channels"},Wz=["data-testid"],Gz=["onClick"],jz={class:"eft-channels__channel__name"},Zz=["src","alt"],Kz={__name:"EftChannelsList",emits:["switchEftChannel"],setup(t,{emit:r}){const{eftChannels:e}=Vo(),n=r;return(s,a)=>(f(),v("div",qz,[a[1]||(a[1]=m("div",{class:"eft-channels__heading"},"Select your bank to start the payment",-1)),(f(!0),v(gt,null,Ot(fe(e),i=>(f(),v("div",{key:i.key,"data-testid":"eft-channel-".concat(i.key)},[m("button",{class:"eft-channels__channel",onClick:o=>n("switchEftChannel",i.key)},[m("div",jz,[m("img",{class:"eft-channels__channel__name__img",src:i.icon,alt:i.alt},null,8,Zz),m("div",null,T(i.label),1)]),a[0]||(a[0]=m("div",{class:"eft-channels__channel__chevron-right"},null,-1))],8,Gz)],8,Wz))),128))]))}},Yz=ee(Kz,[["__scopeId","data-v-a4d92dd2"]]),Qz={__name:"EftChannel",emits:["callback","attempt"],setup(t,{emit:r}){const e=md(),n=ae(),{eftChannels:s}=Vo(),a=r,i=l=>{l===dr.EFT_CHANNELS&&(e.value=Yz),n.activeChannel.name!==l&&n.setActiveChannel({name:l}),n.transaction.logChannelSwitch(l)};Ja(()=>{const l=s.value.length===1?s.value[0].key:dr.EFT_CHANNELS;i(l)});const o=l=>{a("callback",l)};return(l,d)=>(f(),v("div",null,[(f(),se(my(e.value),{onSwitchEftChannel:i,onCallback:o,onAttempt:d[0]||(d[0]=u=>a("attempt"))},null,32))]))}},Jz="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='26px'%20height='17px'%20viewBox='0%200%2026%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3ecard%20pin%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='card-pin'%20fill-rule='nonzero'%3e%3crect%20id='Rectangle-path'%20fill='%23011B33'%20x='0'%20y='0'%20width='26'%20height='17'%20rx='2'%3e%3c/rect%3e%3cpolygon%20id='Shape'%20fill='%23FFFFFF'%20points='7.603%2010.895%207.291%209.934%206.005%2010.352%206.005%209%204.995%209%204.995%2010.352%203.709%209.934%203.397%2010.895%204.683%2011.313%203.888%2012.406%204.705%2013%205.5%2011.906%206.295%2013%207.112%2012.406%206.317%2011.313'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20fill='%23FFFFFF'%20points='12.603%2010.895%2012.291%209.934%2011.005%2010.352%2011.005%209%209.995%209%209.995%2010.352%208.709%209.934%208.397%2010.895%209.683%2011.313%208.888%2012.406%209.705%2013%2010.5%2011.906%2011.295%2013%2012.112%2012.406%2011.317%2011.313'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20fill='%23FFFFFF'%20points='17.603%2010.895%2017.291%209.934%2016.005%2010.352%2016.005%209%2014.995%209%2014.995%2010.352%2013.709%209.934%2013.397%2010.895%2014.683%2011.313%2013.888%2012.406%2014.705%2013%2015.5%2011.906%2016.295%2013%2017.112%2012.406%2016.317%2011.313'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20fill='%2309A5DB'%20points='22.603%2010.895%2022.291%209.934%2021.005%2010.352%2021.005%209%2019.995%209%2019.995%2010.352%2018.709%209.934%2018.397%2010.895%2019.683%2011.313%2018.888%2012.406%2019.705%2013%2020.5%2011.906%2021.295%2013%2022.112%2012.406%2021.317%2011.313'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/svg%3e",mc="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='22px'%20height='29px'%20viewBox='0%200%2022%2029'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eotp%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='otp'%20fill-rule='nonzero'%3e%3crect%20id='Rectangle-path'%20fill='%23011B33'%20x='0'%20y='0'%20width='16'%20height='29'%20rx='3'%3e%3c/rect%3e%3crect%20id='Rectangle-path'%20fill='%23FFFFFF'%20x='2'%20y='2'%20width='12'%20height='24'%20rx='1'%3e%3c/rect%3e%3cpath%20d='M20,6%20L7,6%20C5.8954305,6%205,6.8954305%205,8%20L5,16%20C5,17.1045695%205.8954305,18%207,18%20L9,18%20L9,21%20L12,18%20L20,18%20C21.1045695,18%2022,17.1045695%2022,16%20L22,8%20C22,6.8954305%2021.1045695,6%2020,6%20Z'%20id='Shape'%20fill='%2322D34B'%3e%3c/path%3e%3cg%20id='Group'%20transform='translate(6.000000,%2010.000000)'%20fill='%23FFFFFF'%3e%3cpolygon%20id='Shape'%20points='4.603%201.895%204.291%200.934%203.005%201.352%203.005%200%201.995%200%201.995%201.352%200.709%200.934%200.397%201.895%201.683%202.313%200.888%203.406%201.705%204%202.5%202.906%203.295%204%204.112%203.406%203.317%202.313'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20points='9.603%201.895%209.291%200.934%208.005%201.352%208.005%200%206.995%200%206.995%201.352%205.709%200.934%205.397%201.895%206.683%202.313%205.888%203.406%206.705%204%207.5%202.906%208.295%204%209.112%203.406%208.317%202.313'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20points='14.603%201.895%2014.291%200.934%2013.005%201.352%2013.005%200%2011.995%200%2011.995%201.352%2010.709%200.934%2010.397%201.895%2011.683%202.313%2010.888%203.406%2011.705%204%2012.5%202.906%2013.295%204%2014.112%203.406%2013.317%202.313'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Xz="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='28px'%20height='18px'%20viewBox='0%200%2028%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eredirect%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='redirect'%20fill-rule='nonzero'%3e%3cg%20id='Group'%20transform='translate(0.000000,%203.000000)'%3e%3cpath%20d='M18,1%20C18,0.44771525%2017.5522847,0%2017,0%20L1,0%20C0.44771525,0%200,0.44771525%200,1%20L0,3%20L18,3%20L18,1%20Z'%20id='Shape'%20fill='%23011B33'%3e%3c/path%3e%3cpath%20d='M0,3%20L0,14%20C0,14.5522847%200.44771525,15%201,15%20L17,15%20C17.5522847,15%2018,14.5522847%2018,14%20L18,3%20L0,3%20Z'%20id='Shape'%20fill='%2309A5DB'%3e%3c/path%3e%3c/g%3e%3cg%20id='Group'%20transform='translate(10.000000,%200.000000)'%3e%3cpath%20d='M18,1%20C18,0.44771525%2017.5522847,0%2017,0%20L1,0%20C0.44771525,0%200,0.44771525%200,1%20L0,3%20L18,3%20L18,1%20Z'%20id='Shape'%20fill='%23011B33'%3e%3c/path%3e%3cpath%20d='M0,3%20L0,14%20C0,14.5522847%200.44771525,15%201,15%20L17,15%20C17.5522847,15%2018,14.5522847%2018,14%20L18,3%20L0,3%20Z'%20id='Shape'%20fill='%2300E1FF'%3e%3c/path%3e%3c/g%3e%3crect%20id='Rectangle-path'%20fill='%23FFFFFF'%20x='4'%20y='10'%20width='6'%20height='2'%3e%3c/rect%3e%3cpolygon%20id='Shape'%20fill='%23FFFFFF'%20points='15.293%204.293%2013.879%205.707%2015.172%207%2010%207%2010%209%2015.172%209%2013.879%2010.293%2015.293%2011.707%2019%208'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/svg%3e",eR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3eBank%3c/title%3e%3cg%20id='Icons'%3e%3cpolygon%20points='13%2014.5%2011%2014.5%209%2014.5%207%2014.5%205%2014.5%203%2014.5%202.5%2014.5%202%2016.5%2018%2016.5%2017.5%2014.5%2017%2014.5%2015%2014.5%2013%2014.5'%20fill='%23011b33'/%3e%3cg%3e%3crect%20x='3.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3crect%20x='7.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3crect%20x='11.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3crect%20x='15.00003'%20y='7.5'%20width='2'%20height='7'%20fill='%2322d34b'/%3e%3c/g%3e%3cpath%20d='M10.00059,1,1.5,6,2,7.5H18L18.5,6ZM8.75,4.75A1.25,1.25,0,1,1,10,6,1.25,1.25,0,0,1,8.75,4.75Z'%20fill='%23011b33'/%3e%3c/g%3e%3c/svg%3e",tR="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='20px'%20height='19px'%20viewBox='0%200%2020%2019'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3ebirthday%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='birthday'%20fill-rule='nonzero'%3e%3cpolygon%20id='Shape'%20fill='%2300E1FF'%20points='0%200%200%2016%205%2013%2010%2016%2010%200'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20fill='%23011B33'%20points='9%202%209%2019%2014.5%2016%2020%2019%2020%202'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20fill='%23FFFFFF'%20points='16%2011%2016%207%2016%205%2014%205%2012%205%2012%207%2014%207%2014%2011%2012%2011%2012%2013%2017%2013%2017%2011'%3e%3c/polygon%3e%3cpolygon%20id='Shape'%20fill='%2309A5DB'%20points='8%206%206%206%206%204%204%204%204%206%202%206%202%208%204%208%204%2010%206%2010%206%208%208%208'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Gm="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='22px'%20height='29px'%20viewBox='0%200%2022%2029'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3ephone%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='phone'%3e%3crect%20id='Rectangle-path'%20fill='%23011B33'%20fill-rule='nonzero'%20x='0'%20y='0'%20width='16'%20height='29'%20rx='3'%3e%3c/rect%3e%3crect%20id='Rectangle-path'%20fill='%23FFFFFF'%20fill-rule='nonzero'%20x='2'%20y='2'%20width='12'%20height='24'%20rx='1'%3e%3c/rect%3e%3cg%20id='number'%20transform='translate(5.000000,%208.000000)'%3e%3crect%20id='Rectangle-4'%20fill='%2322D34B'%20x='0'%20y='0'%20width='17'%20height='12'%20rx='2'%3e%3c/rect%3e%3cpolygon%20id='Shape'%20fill='%23FFFFFF'%20fill-rule='nonzero'%20points='6.8%203%206.8%204.38461538%209.05%204.38461538%209.05%205.30769231%206.8%205.30769231%206.8%206.69230769%209.05%206.69230769%209.05%207.61538462%206.8%207.61538462%206.8%209%209.05%209%2010.4%209%2010.4%207.61538462%2010.4%206.69230769%2010.4%205.30769231%2010.4%204.38461538%2010.4%203%209.05%203'%3e%3c/polygon%3e%3cpath%20d='M8,4.29230769%20L8,7.70769231%20L9.2,7.70769231%20L9.2,4.29230769%20L8,4.29230769%20Z%20M6.8,3%20L10.4,3%20L10.4,9%20L6.8,9%20L6.8,3%20Z'%20id='Rectangle-3-Copy'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M3.2,4.29230769%20L3.2,7.70769231%20L4.4,7.70769231%20L4.4,4.29230769%20L3.2,4.29230769%20Z%20M2,3%20L5.6,3%20L5.6,9%20L2,9%20L2,3%20Z'%20id='Rectangle-3-Copy-2'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c/path%3e%3cpath%20d='M12.8,4.29230769%20L12.8,7.70769231%20L14,7.70769231%20L14,4.29230769%20L12.8,4.29230769%20Z%20M11.6,3%20L15.2,3%20L15.2,9%20L11.6,9%20L11.6,3%20Z'%20id='Rectangle-3-Copy-3'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",d5="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='50px'%20height='33px'%20viewBox='0%200%2050%2033'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20Sketch%2050.2%20(55047)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eussd%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='ussd'%20transform='translate(0.000000,%20-1.000000)'%20fill-rule='nonzero'%3e%3cpath%20d='M2.5328,1.234475%20L47.46895,1.234475%20C48.8668103,1.234475%2050,2.36766468%2050,3.765525%20L50,31.203425%20C50,31.8747012%2049.7333366,32.5184837%2049.2586726,32.9931476%20C48.7840087,33.4678116%2048.1402262,33.734475%2047.46895,33.734475%20L2.53105,33.734475%20C1.8597738,33.734475%201.21599133,33.4678116%200.741327381,32.9931476%20C0.266663431,32.5184837%20-1.11021844e-15,31.8747012%200,31.203425%20L0,3.767275%20C-1.71306878e-16,2.36844819%201.13397319,1.234475%202.5328,1.234475%20Z'%20id='Shape'%20fill='%239FFFB3'%3e%3c/path%3e%3cg%20id='Group'%20transform='translate(5.000000,%205.000000)'%20fill='%23000000'%3e%3cpolygon%20id='Shape'%20points='16.5675%204.6875%2011.795%206.2375%2011.795%201.22%208.045%201.22%208.045%206.2375%203.27%204.6875%202.11%208.255%206.885%209.805%203.9325%2013.8675%206.9675%2016.07%209.92%2012.01%2012.87%2016.07%2015.905%2013.8675%2012.9525%209.805%2017.7275%208.255'%3e%3c/polygon%3e%3cpath%20d='M36.793825,11.219025%20L36.793825,7.469025%20L34.293825,7.469025%20L34.293825,3.718875%20L30.543825,3.718875%20L30.543825,7.469025%20L26.793825,7.469025%20L26.793825,3.718875%20L23.043825,3.718875%20L23.043825,7.469025%20L20.543825,7.469025%20L20.543825,11.219025%20L23.043825,11.219025%20L23.043825,13.719025%20L20.543825,13.719025%20L20.543825,17.469025%20L23.043825,17.469025%20L23.043825,21.218875%20L26.793825,21.218875%20L26.793825,17.469025%20L30.543825,17.469025%20L30.543825,21.218875%20L34.293825,21.218875%20L34.293825,17.469025%20L36.793825,17.469025%20L36.793825,13.719025%20L34.293825,13.719025%20L34.293825,11.219025%20L36.793825,11.219025%20Z%20M30.543825,13.719025%20L26.793825,13.719025%20L26.793825,11.219025%20L30.543825,11.219025%20L30.543825,13.719025%20Z'%20id='Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function yg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{ussdIcon:e=>{const{normalize:n}=e;return n(["USSD Icon"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Phone Icon"])},bankIcon:e=>{const{normalize:n}=e;return n(["Bank Icon"])},birthdayIcon:e=>{const{normalize:n}=e;return n(["Birthday Icon"])},otpIcon:e=>{const{normalize:n}=e;return n(["OTP Icon"])},cardPinIcon:e=>{const{normalize:n}=e;return n(["Card Pin Icon"])},redirectIcon:e=>{const{normalize:n}=e;return n(["Redirect Icon"])}},fr:{ussdIcon:e=>{const{normalize:n}=e;return n(["Icône USSD"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Icône de Téléphone"])},bankIcon:e=>{const{normalize:n}=e;return n(["Icône de la Banque"])},birthdayIcon:e=>{const{normalize:n}=e;return n(["Icône Anniversaire"])},otpIcon:e=>{const{normalize:n}=e;return n(["Icône de Mot de passe"])},cardPinIcon:e=>{const{normalize:n}=e;return n(["Icône du code PIN de la carte"])},redirectIcon:e=>{const{normalize:n}=e;return n(["Icône de Redirection"])}},ar:{birthdayIcon:e=>{const{normalize:n}=e;return n(["رمز تاريخ الميلاد"])},otpIcon:e=>{const{normalize:n}=e;return n(["رقم التعريف الشخصي المؤقت (OTP)"])},cardPinIcon:e=>{const{normalize:n}=e;return n(["رمز رقم التعريف الشخصي (PIN) للبطاقة"])},redirectIcon:e=>{const{normalize:n}=e;return n(["رمز إعادة التوجيه"])}}}})}const h5={name:"PaymentInstructions",props:{icon:String,message:String,linkText:String,linkDataTestId:{type:String,default:"link"}}},nR={id:"instructions",class:"instructions"},rR={key:0,class:"instructions__icon"},sR=["alt"],aR=["alt"],iR=["alt"],oR=["alt"],lR=["alt"],cR=["alt"],uR=["alt"],dR=["innerHTML"],hR=["data-testid"];function mR(t,r,e,n,s,a){return f(),v("header",nR,[e.icon?(f(),v("div",rR,[e.icon==="pin"?(f(),v("img",{key:0,src:Jz,alt:t.$t("cardPinIcon")},null,8,sR)):D("",!0),e.icon==="otp"?(f(),v("img",{key:1,class:"instructions__icon--otp",src:mc,alt:t.$t("otpIcon")},null,8,aR)):D("",!0),e.icon==="redirect"?(f(),v("img",{key:2,class:"instructions__icon--redirect",src:Xz,alt:t.$t("redirectIcon")},null,8,iR)):D("",!0),e.icon==="bank"?(f(),v("img",{key:3,src:eR,alt:t.$t("bankIcon")},null,8,oR)):D("",!0),e.icon==="birthday"?(f(),v("img",{key:4,src:tR,alt:t.$t("birthdayIcon")},null,8,lR)):D("",!0),e.icon==="phone"?(f(),v("img",{key:5,class:"instructions__icon--phone",src:Gm,alt:t.$t("phoneIcon")},null,8,cR)):D("",!0),e.icon==="ussd"?(f(),v("img",{key:6,src:d5,alt:t.$t("ussdIcon")},null,8,uR)):D("",!0)])):D("",!0),e.message?(f(),v("div",{key:1,class:pt(["instructions__message",{"instructions__message--link":e.linkText}]),innerHTML:e.message},null,10,dR)):D("",!0),e.linkText?(f(),v("div",{key:2,"data-testid":e.linkDataTestId,class:"instructions__link",onClick:r[0]||(r[0]=i=>t.$emit("linkClick"))},T(e.linkText),9,hR)):D("",!0)])}typeof yg=="function"&&yg(h5);const Et=ee(h5,[["render",mR],["__scopeId","data-v-09d42db1"]]);function Yu(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Choose your bank to start the payment"])},instructionMessage_link:e=>{const{normalize:n}=e;return n(["Select your bank to pay"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Click here to choose"])},chooseBank:e=>{const{normalize:n}=e;return n(["Choose bank"])},searchBank:e=>{const{normalize:n}=e;return n(["Search for your bank"])}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Choisissez votre banque pour commencer le paiement"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Cliquez ici pour choisir"])}}}})}const m5={name:"ChooseBank",components:{Instructions:Et,Loader:tn},data(){return{selectedBank:null,loadingBanks:!1}},emits:["select"],computed:{...we(ls,["banks"])},methods:{...It(ls,["setBanks"]),onChoose(t){t&&this.$emit("select",t)}}},pR={key:1},fR={class:"row"},_R={class:"col-10-sm col-centered"},gR={class:"form-group"},vR={class:"select-wrap"},yR={value:null,disabled:""},bR=["value"];function CR(t,r,e,n,s,a){const i=P("loader"),o=P("instructions");return s.loadingBanks?(f(),se(i,{key:0})):(f(),v("div",pR,[$(o,{message:t.$t("instructionMessage"),icon:"bank"},null,8,["message"]),m("div",fR,[m("div",_R,[m("div",gR,[m("div",vR,[ct(m("select",{ref:"bankName",name:"bankName",class:"select","onUpdate:modelValue":r[0]||(r[0]=l=>s.selectedBank=l),onChange:r[1]||(r[1]=l=>a.onChoose(s.selectedBank))},[m("option",yR,T(t.$t("clickHereToChoose")),1),(f(!0),v(gt,null,Ot(t.banks,l=>(f(),v("option",{key:l.id,value:l},T(l.name),9,bR))),128))],544),[[ks,s.selectedBank]]),r[2]||(r[2]=m("div",{class:"select-icon"},null,-1))])])])])]))}typeof Yu=="function"&&Yu(m5);const wR=ee(m5,[["render",CR]]);function ao(t,r,e){var o;let n=(o=e.initialDeps)!=null?o:[],s,a=!0;function i(){var l,d,u;let g;e.key&&((l=e.debug)!=null&&l.call(e))&&(g=Date.now());const y=t();if(!(y.length!==n.length||y.some((E,R)=>n[R]!==E)))return s;n=y;let k;if(e.key&&((d=e.debug)!=null&&d.call(e))&&(k=Date.now()),s=r(...y),e.key&&((u=e.debug)!=null&&u.call(e))){const E=Math.round((Date.now()-g)*100)/100,R=Math.round((Date.now()-k)*100)/100,O=R/16,M=(x,N)=>{for(x=String(x);x.length{n=l},i}function bg(t,r){if(t===void 0)throw new Error("Unexpected undefined");return t}const kR=(t,r)=>Math.abs(t-r)<1.01,SR=(t,r,e)=>{let n;return function(...s){t.clearTimeout(n),n=t.setTimeout(()=>r.apply(this,s),e)}},Cg=t=>{const{offsetWidth:r,offsetHeight:e}=t;return{width:r,height:e}},ER=t=>t,TR=t=>{const r=Math.max(t.startIndex-t.overscan,0),e=Math.min(t.endIndex+t.overscan,t.count-1),n=[];for(let s=r;s<=e;s++)n.push(s);return n},$R=(t,r)=>{const e=t.scrollElement;if(!e)return;const n=t.targetWindow;if(!n)return;const s=i=>{const{width:o,height:l}=i;r({width:Math.round(o),height:Math.round(l)})};if(s(Cg(e)),!n.ResizeObserver)return()=>{};const a=new n.ResizeObserver(i=>{const o=()=>{const l=i[0];if(l!=null&&l.borderBoxSize){const d=l.borderBoxSize[0];if(d){s({width:d.inlineSize,height:d.blockSize});return}}s(Cg(e))};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},wg={passive:!0},kg=typeof window>"u"?!0:"onscrollend"in window,IR=(t,r)=>{const e=t.scrollElement;if(!e)return;const n=t.targetWindow;if(!n)return;let s=0;const a=t.options.useScrollendEvent&&kg?()=>{}:SR(n,()=>{r(s,!1)},t.options.isScrollingResetDelay),i=u=>()=>{const{horizontal:g,isRtl:y}=t.options;s=g?e.scrollLeft*(y&&-1||1):e.scrollTop,a(),r(s,u)},o=i(!0),l=i(!1);e.addEventListener("scroll",o,wg);const d=t.options.useScrollendEvent&&kg;return d&&e.addEventListener("scrollend",l,wg),()=>{e.removeEventListener("scroll",o),d&&e.removeEventListener("scrollend",l)}},AR=(t,r,e)=>{if(r!=null&&r.borderBoxSize){const n=r.borderBoxSize[0];if(n)return Math.round(n[e.options.horizontal?"inlineSize":"blockSize"])}return t[e.options.horizontal?"offsetWidth":"offsetHeight"]},zR=(t,{adjustments:r=0,behavior:e},n)=>{var s,a;const i=t+r;(a=(s=n.scrollElement)==null?void 0:s.scrollTo)==null||a.call(s,{[n.options.horizontal?"left":"top"]:i,behavior:e})};class RR{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var a;var e,n,s;return(a=(s=(n=(e=this.targetWindow)==null?void 0:e.performance)==null?void 0:n.now)==null?void 0:s.call(n))!=null?a:Date.now()},this.observer=(()=>{let e=null;const n=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(s=>{s.forEach(a=>{const i=()=>{const o=a.target,l=this.indexFromElement(o);if(!o.isConnected){this.observer.unobserve(o);return}this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(o,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var s;(s=n())==null||s.disconnect(),e=null},observe:s=>{var a;return(a=n())==null?void 0:a.observe(s,{box:"border-box"})},unobserve:s=>{var a;return(a=n())==null?void 0:a.unobserve(s)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([n,s])=>{typeof s>"u"&&delete e[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ER,rangeExtractor:TR,onChange:()=>{},measureElement:AR,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...e}},this.notify=e=>{var n,s;(s=(n=this.options).onChange)==null||s.call(n,this,e)},this.maybeNotify=ao(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var s;var e;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(s=(e=this.scrollElement)==null?void 0:e.window)!=null?s:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset(){var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,n)=>{const s=new Map,a=new Map;for(let i=n-1;i>=0;i--){const o=e[i];if(s.has(o.lane))continue;const l=a.get(o.lane);if(l==null||o.end>l.end?a.set(o.lane,o):o.endi.end===o.end?i.index-o.index:i.end-o.end)[0]:void 0},this.getMeasurementOptions=ao(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,n,s,a,i,o,l)=>(this.prevLanes!==void 0&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:s,getItemKey:a,enabled:i,lanes:o,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=ao(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:n,scrollMargin:s,getItemKey:a,enabled:i,lanes:o,laneAssignmentMode:l},d)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const w of this.laneAssignments.keys())w>=e&&this.laneAssignments.delete(w);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(w=>{this.itemSizeCache.set(w.key,w.size)}));const u=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const g=this.measurementsCache.slice(0,u),y=new Array(o).fill(void 0);for(let w=0;w1){R=E;const V=y[R],F=V!==void 0?g[V]:void 0;O=F?F.end+this.options.gap:n+s}else{const V=this.options.lanes===1?g[w-1]:this.getFurthestMeasurement(g,w);O=V?V.end+this.options.gap:n+s,R=V?V.lane:w%this.options.lanes,this.options.lanes>1&&M&&this.laneAssignments.set(w,R)}const x=d.get(k),N=typeof x=="number"?x:this.options.estimateSize(w),A=O+N;g[w]={index:w,start:O,size:N,end:A,key:k,lane:R},y[R]=w}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ao(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,n,s,a)=>this.range=e.length>0&&n>0?PR({measurements:e,outerSize:n,scrollOffset:s,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ao(()=>{let e=null,n=null;const s=this.calculateRange();return s&&(e=s.startIndex,n=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,n]},(e,n,s,a,i)=>a===null||i===null?[]:e({startIndex:a,endIndex:i,overscan:n,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const n=this.options.indexAttribute,s=e.getAttribute(n);return s?parseInt(s,10):(console.warn("Missing attribute name '".concat(n,"={index}' on measured element.")),-1)},this.shouldMeasureDuringScroll=e=>{var a;var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const s=(a=this.scrollState.index)!=null?a:(n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index;if(s!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,s-i),l=Math.min(this.options.count-1,s+i);return e>=o&&e<=l}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((i,o)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(o))});return}const n=this.indexFromElement(e),s=this.options.getItemKey(n),a=this.elementsCache.get(s);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(s,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,n)=>{var l;var s;const a=this.measurementsCache[e];if(!a)return;const i=(l=this.itemSizeCache.get(a.key))!=null?l:a.size,o=n-i;o!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,o,this):a.start[this.getVirtualIndexes(),this.getMeasurements()],(e,n)=>{const s=[];for(let a=0,i=e.length;athis.options.debug}),this.getVirtualItemForOffset=e=>{const n=this.getMeasurements();if(n.length!==0)return bg(n[p5(0,n.length-1,s=>bg(n[s]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,n,s=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),i=this.getScrollOffset();n==="auto"&&(n=e>=i+a?"end":"start"),n==="center"?e+=(s-a)/2:n==="end"&&(e-=a);const o=this.getMaxScrollOffset();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,n="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const s=this.getSize(),a=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(n==="auto")if(i.end>=a+s-this.options.scrollPaddingEnd)n="end";else if(i.start<=a+this.options.scrollPaddingStart)n="start";else return[a,n];if(n==="end"&&e===this.options.count-1)return[this.getMaxScrollOffset(),n];const o=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,n,i.size),n]},this.scrollToOffset=(e,{align:n="start",behavior:s="auto"}={})=>{const a=this.getOffsetForAlignment(e,n),i=this.now();this.scrollState={index:null,align:n,behavior:s,startedAt:i,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:n="auto",behavior:s="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.getOffsetForIndex(e,n);if(!a)return;const[i,o]=a,l=this.now();this.scrollState={index:e,align:o,behavior:s,startedAt:l,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:n="auto"}={})=>{const s=this.getScrollOffset()+e,a=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:a,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var a;var e;const n=this.getMeasurements();let s;if(n.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=(a=(e=n[n.length-1])==null?void 0:e.end)!=null?a:0;else{const i=Array(this.options.lanes).fill(null);let o=n.length-1;for(;o>=0&&i.some(l=>l===null);){const l=n[o];i[l.lane]===null&&(i[l.lane]=l.end),o--}s=Math.max(...i.filter(l=>l!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:n,behavior:s})=>{this.options.scrollToFn(e,{behavior:s,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(r)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const n=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=n?n[0]:this.scrollState.lastTargetOffset,a=1,i=s!==this.scrollState.lastTargetOffset;if(!i&&kR(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,i&&(this.scrollState.lastTargetOffset=s,this.scrollState.behavior="auto",this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const p5=(t,r,e,n)=>{for(;t<=r;){const s=(t+r)/2|0,a=e(s);if(an)r=s-1;else return s}return t>0?t-1:0};function PR({measurements:t,outerSize:r,scrollOffset:e,lanes:n}){const s=t.length-1,a=l=>t[l].start;if(t.length<=n)return{startIndex:0,endIndex:s};let i=p5(0,s,a,e),o=i;if(n===1)for(;o1){const l=Array(n).fill(0);for(;ou=0&&d.some(u=>u>=e);){const u=t[i];d[u.lane]=u.start,i--}i=Math.max(0,i-i%n),o=Math.min(s,o+(n-1-o%n))}return{startIndex:i,endIndex:o}}function NR(t){const r=new RR(fe(t)),e=md(r),n=r._didMount();return Sn(()=>fe(t).getScrollElement(),s=>{s&&r._willUpdate()},{immediate:!0}),Sn(()=>fe(t),s=>{r.setOptions({...s,onChange:(a,i)=>{var o;Vp(e),(o=s.onChange)==null||o.call(s,a,i)}}),r._willUpdate(),Vp(e)},{immediate:!0}),M3(n),e}function MR(t){return NR(te(()=>({observeElementRect:$R,observeElementOffset:IR,scrollToFn:zR,...fe(t)})))}function LR(t,r,e){let n=ge(e==null?void 0:e.value),s=te(()=>t.value!==void 0);return[te(()=>s.value?t.value:n.value),function(a){return s.value||(n.value=a),r==null?void 0:r(a)}]}function xR(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(r=>setTimeout(()=>{throw r}))}function Mo(){let t=[],r={addEventListener(e,n,s,a){return e.addEventListener(n,s,a),r.add(()=>e.removeEventListener(n,s,a))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);r.add(()=>cancelAnimationFrame(n))},nextFrame(...e){r.requestAnimationFrame(()=>{r.requestAnimationFrame(...e)})},setTimeout(...e){let n=setTimeout(...e);r.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return xR(()=>{n.current&&e[0]()}),r.add(()=>{n.current=!1})},style(e,n,s){let a=e.style.getPropertyValue(n);return Object.assign(e.style,{[n]:s}),this.add(()=>{Object.assign(e.style,{[n]:a})})},group(e){let n=Mo();return e(n),this.add(()=>n.dispose())},add(e){return t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let s of t.splice(n,1))s()}},dispose(){for(let e of t.splice(0))e()}};return r}function OR(){let t=Mo();return Vi(()=>t.dispose()),t}function FR(){let t=OR();return r=>{t.dispose(),t.nextFrame(r)}}var Sg;let DR=Symbol("headlessui.useid"),VR=0;const pc=(Sg=GC)!=null?Sg:function(){return Wr(DR,()=>"".concat(++VR))()};function Kt(t){var r;if(t==null||t.value==null)return null;let e=(r=t.value.$el)!=null?r:t.value;return e instanceof Node?e:null}function rs(t,r,...e){if(t in r){let s=r[t];return typeof s=="function"?s(...e):s}let n=new Error('Tried to handle "'.concat(t,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(r).map(s=>'"'.concat(s,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(n,rs),n}var BR=Object.defineProperty,UR=(t,r,e)=>r in t?BR(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,Eg=(t,r,e)=>(UR(t,typeof r!="symbol"?r+"":r,e),e);let HR=class{constructor(){Eg(this,"current",this.detect()),Eg(this,"currentId",0)}set(r){this.current!==r&&(this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Md=new HR;function jm(t){if(Md.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let r=Kt(t);if(r)return r.ownerDocument}return document}let Tg=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>"".concat(t,":not([tabindex='-1'])")).join(",");var qR=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(qR||{}),WR=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(WR||{}),GR=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(GR||{}),f5=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(f5||{});function jR(t,r=0){var e;return t===((e=jm(t))==null?void 0:e.body)?!1:rs(r,{0(){return t.matches(Tg)},1(){let n=t;for(;n!==null;){if(n.matches(Tg))return!0;n=n.parentElement}return!1}})}var ZR=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(ZR||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function KR(t,r=e=>e){return t.slice().sort((e,n)=>{let s=r(e),a=r(n);if(s===null||a===null)return 0;let i=s.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function YR(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function QR(){return/Android/gi.test(window.navigator.userAgent)}function _5(){return YR()||QR()}function au(t,r,e){Md.isServer||is(n=>{document.addEventListener(t,r,e),n(()=>document.removeEventListener(t,r,e))})}function JR(t,r,e){Md.isServer||is(n=>{window.addEventListener(t,r,e),n(()=>window.removeEventListener(t,r,e))})}function XR(t,r,e=te(()=>!0)){function n(a,i){if(!e.value||a.defaultPrevented)return;let o=i(a);if(o===null||!o.getRootNode().contains(o))return;let l=(function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]})(t);for(let d of l){if(d===null)continue;let u=d instanceof HTMLElement?d:Kt(d);if(u!=null&&u.contains(o)||a.composed&&a.composedPath().includes(u))return}return!jR(o,f5.Loose)&&o.tabIndex!==-1&&a.preventDefault(),r(a,o)}let s=ge(null);au("pointerdown",a=>{var i,o;e.value&&(s.value=((o=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:o[0])||a.target)},!0),au("mousedown",a=>{var i,o;e.value&&(s.value=((o=(i=a.composedPath)==null?void 0:i.call(a))==null?void 0:o[0])||a.target)},!0),au("click",a=>{_5()||s.value&&(n(a,()=>s.value),s.value=null)},!0),au("touchend",a=>n(a,()=>a.target instanceof HTMLElement?a.target:null),!0),JR("blur",a=>n(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function $g(t,r){if(t)return t;let e=r!=null?r:"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function eP(t,r){let e=ge($g(t.value.type,t.value.as));return An(()=>{e.value=$g(t.value.type,t.value.as)}),is(()=>{var n;e.value||Kt(r)&&Kt(r)instanceof HTMLButtonElement&&!((n=Kt(r))!=null&&n.hasAttribute("type"))&&(e.value="button")}),e}function Ig(t){return[t.screenX,t.screenY]}function tP(){let t=ge([-1,-1]);return{wasMoved(r){let e=Ig(r);return t.value[0]===e[0]&&t.value[1]===e[1]?!1:(t.value=e,!0)},update(r){t.value=Ig(r)}}}function nP({container:t,accept:r,walk:e,enabled:n}){is(()=>{let s=t.value;if(!s||n!==void 0&&!n.value)return;let a=jm(t);if(!a)return;let i=Object.assign(l=>r(l),{acceptNode:r}),o=a.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,i,!1);for(;o.nextNode();)e(o.currentNode)})}var Lo=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(Lo||{}),Ha=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(Ha||{});function ni({visible:t=!0,features:r=0,ourProps:e,theirProps:n,...s}){var a;let i=v5(n,e),o=Object.assign(s,{props:i});if(t||r&2&&i.static)return C2(o);if(r&1){let l=(a=i.unmount)==null||a?0:1;return rs(l,{0(){return null},1(){return C2({...s,props:{...i,hidden:!0,style:{display:"none"}}})}})}return C2(o)}function C2({props:t,attrs:r,slots:e,slot:n,name:s}){var a,i;let{as:o,...l}=fc(t,["unmount","static"]),d=(a=e.default)==null?void 0:a.call(e,n),u={};if(n){let g=!1,y=[];for(let[w,k]of Object.entries(n))typeof k=="boolean"&&(g=!0),k===!0&&y.push(w);g&&(u["data-headlessui-state"]=y.join(" "))}if(o==="template"){if(d=g5(d!=null?d:[]),Object.keys(l).length>0||Object.keys(r).length>0){let[g,...y]=d!=null?d:[];if(!sP(g)||y.length>0)throw new Error(['Passing props on "template"!',"","The current component <".concat(s,' /> is rendering a "template".'),"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(r)).map(E=>E.trim()).filter((E,R,O)=>O.indexOf(E)===R).sort((E,R)=>E.localeCompare(R)).map(E=>" - ".concat(E)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(E=>" - ".concat(E)).join("\n")].join("\n"));let w=v5((i=g.props)!=null?i:{},l,u),k=ws(g,w,!0);for(let E in w)E.startsWith("on")&&(k.props||(k.props={}),k.props[E]=w[E]);return k}return Array.isArray(d)&&d.length===1?d[0]:d}return Zs(o,Object.assign({},l,u),{default:()=>d})}function g5(t){return t.flatMap(r=>r.type===gt?g5(r.children):[r])}function v5(...t){if(t.length===0)return{};if(t.length===1)return t[0];let r={},e={};for(let n of t)for(let s in n)s.startsWith("on")&&typeof n[s]=="function"?(e[s]!=null||(e[s]=[]),e[s].push(n[s])):r[s]=n[s];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(e).map(n=>[n,void 0])));for(let n in e)Object.assign(r,{[n](s,...a){let i=e[n];for(let o of i){if(s instanceof Event&&s.defaultPrevented)return;o(s,...a)}}});return r}function rP(t){let r=Object.assign({},t);for(let e in r)r[e]===void 0&&delete r[e];return r}function fc(t,r=[]){let e=Object.assign({},t);for(let n of r)n in e&&delete e[n];return e}function sP(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}var y5=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(y5||{});let aP=cs({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:r,attrs:e}){return()=>{var n;let{features:s,...a}=t,i={"aria-hidden":(s&2)===2?!0:(n=a["aria-hidden"])!=null?n:void 0,hidden:(s&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(s&4)===4&&(s&2)!==2&&{display:"none"}}};return ni({ourProps:i,theirProps:a,slot:{},attrs:e,slots:r,name:"Hidden"})}}}),b5=Symbol("Context");var Dr=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Dr||{});function iP(){return Zm()!==null}function Zm(){return Wr(b5,null)}function C5(t){Ni(b5,t)}var xr=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(xr||{}),w5=(t=>(t[t.Left=0]="Left",t[t.Right=2]="Right",t))(w5||{});function oP(t){function r(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",r))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",r),r())}let Ti=[];oP(()=>{function t(r){r.target instanceof HTMLElement&&r.target!==document.body&&Ti[0]!==r.target&&(Ti.unshift(r.target),Ti=Ti.filter(e=>e!=null&&e.isConnected),Ti.splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function lP(t){throw new Error("Unexpected object: "+t)}var nr=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(nr||{});function Ag(t,r){let e=r.resolveItems();if(e.length<=0)return null;let n=r.resolveActiveIndex(),s=n!=null?n:-1;switch(t.focus){case 0:{for(let a=0;a=0;--a)if(!r.resolveDisabled(e[a],a,e))return a;return n}case 2:{for(let a=s+1;a=0;--a)if(!r.resolveDisabled(e[a],a,e))return a;return n}case 4:{for(let a=0;a(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(dP||{}),hP=(t=>(t[t.Single=0]="Single",t[t.Multi=1]="Multi",t))(hP||{}),mP=(t=>(t[t.Pointer=0]="Pointer",t[t.Focus=1]="Focus",t[t.Other=2]="Other",t))(mP||{});let T5=Symbol("ComboboxContext");function Bo(t){let r=Wr(T5,null);if(r===null){let e=new Error("<".concat(t," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,Bo),e}return r}let $5=Symbol("VirtualContext"),pP=cs({name:"VirtualProvider",setup(t,{slots:r}){let e=Bo("VirtualProvider"),n=te(()=>{let o=Kt(e.optionsRef);if(!o)return{start:0,end:0};let l=window.getComputedStyle(o);return{start:parseFloat(l.paddingBlockStart||l.paddingTop),end:parseFloat(l.paddingBlockEnd||l.paddingBottom)}}),s=MR(te(()=>({scrollPaddingStart:n.value.start,scrollPaddingEnd:n.value.end,count:e.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return Kt(e.optionsRef)},overscan:12}))),a=te(()=>{var o;return(o=e.virtual.value)==null?void 0:o.options}),i=ge(0);return Sn([a],()=>{i.value+=1}),Ni($5,e.virtual.value?s:null),()=>[Zs("div",{style:{position:"relative",width:"100%",height:"".concat(s.value.getTotalSize(),"px")},ref:o=>{if(o){if(typeof process<"u"&&cP.JEST_WORKER_ID!==void 0||e.activationTrigger.value===0)return;e.activeOptionIndex.value!==null&&e.virtual.value.options.length>e.activeOptionIndex.value&&s.value.scrollToIndex(e.activeOptionIndex.value)}}},s.value.getVirtualItems().map(o=>ws(r.default({option:e.virtual.value.options[o.index],open:e.comboboxState.value===0})[0],{key:"".concat(i.value,"-").concat(o.index),"data-index":o.index,"aria-setsize":e.virtual.value.options.length,"aria-posinset":o.index+1,style:{position:"absolute",top:0,left:0,transform:"translateY(".concat(o.start,"px)"),overflowAnchor:"none"}})))]}}),I5=cs({name:"Combobox",emits:{"update:modelValue":t=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(t,{slots:r,attrs:e,emit:n}){let s=ge(1),a=ge(null),i=ge(null),o=ge(null),l=ge(null),d=ge({static:!1,hold:!1}),u=ge([]),g=ge(null),y=ge(2),w=ge(!1);function k(U=j=>j){let j=g.value!==null?u.value[g.value]:null,J=U(u.value.slice()),de=J.length>0&&J[0].dataRef.order.value!==null?J.sort((qe,Ue)=>qe.dataRef.order.value-Ue.dataRef.order.value):KR(J,qe=>Kt(qe.dataRef.domRef)),Ae=j?de.indexOf(j):null;return Ae===-1&&(Ae=null),{options:de,activeOptionIndex:Ae}}let E=te(()=>t.multiple?1:0),R=te(()=>t.nullable),[O,M]=LR(te(()=>t.modelValue),U=>n("update:modelValue",U),te(()=>t.defaultValue)),x=te(()=>O.value===void 0?rs(E.value,{1:[],0:void 0}):O.value),N=null,A=null;function V(U){return rs(E.value,{0(){return M==null?void 0:M(U)},1:()=>{let j=Lt(S.value.value).slice(),J=Lt(U),de=j.findIndex(Ae=>S.compare(J,Lt(Ae)));return de===-1?j.push(J):j.splice(de,1),M==null?void 0:M(j)}})}let F=te(()=>{});Sn([F],([U],[j])=>{if(S.virtual.value&&U&&j&&g.value!==null){let J=U.indexOf(j[g.value]);J!==-1?g.value=J:g.value=null}});let S={comboboxState:s,value:x,mode:E,compare(U,j){if(typeof t.by=="string"){let J=t.by;return(U==null?void 0:U[J])===(j==null?void 0:j[J])}return t.by===null?uP(U,j):t.by(U,j)},calculateIndex(U){return S.virtual.value?t.by===null?S.virtual.value.options.indexOf(U):S.virtual.value.options.findIndex(j=>S.compare(j,U)):u.value.findIndex(j=>S.compare(j.dataRef.value,U))},defaultValue:te(()=>t.defaultValue),nullable:R,immediate:te(()=>!1),virtual:te(()=>null),inputRef:i,labelRef:a,buttonRef:o,optionsRef:l,disabled:te(()=>t.disabled),options:u,change(U){M(U)},activeOptionIndex:te(()=>{if(w.value&&g.value===null&&(S.virtual.value?S.virtual.value.options.length>0:u.value.length>0)){if(S.virtual.value){let j=S.virtual.value.options.findIndex(J=>{var de;return!((de=S.virtual.value)!=null&&de.disabled(J))});if(j!==-1)return j}let U=u.value.findIndex(j=>!j.dataRef.disabled);if(U!==-1)return U}return g.value}),activationTrigger:y,optionsPropsRef:d,closeCombobox(){w.value=!1,!t.disabled&&s.value!==1&&(s.value=1,g.value=null)},openCombobox(){if(w.value=!0,!t.disabled&&s.value!==0){if(S.value.value){let U=S.calculateIndex(S.value.value);U!==-1&&(g.value=U)}s.value=0}},setActivationTrigger(U){y.value=U},goToOption(U,j,J){w.value=!1,N!==null&&cancelAnimationFrame(N),N=requestAnimationFrame(()=>{if(t.disabled||l.value&&!d.value.static&&s.value===1)return;if(S.virtual.value){g.value=U===nr.Specific?j:Ag({focus:U},{resolveItems:()=>S.virtual.value.options,resolveActiveIndex:()=>{var qe,Ue;return(Ue=(qe=S.activeOptionIndex.value)!=null?qe:S.virtual.value.options.findIndex(je=>{var nt;return!((nt=S.virtual.value)!=null&&nt.disabled(je))}))!=null?Ue:null},resolveDisabled:qe=>S.virtual.value.disabled(qe),resolveId(){throw new Error("Function not implemented.")}}),y.value=J!=null?J:2;return}let de=k();if(de.activeOptionIndex===null){let qe=de.options.findIndex(Ue=>!Ue.dataRef.disabled);qe!==-1&&(de.activeOptionIndex=qe)}let Ae=U===nr.Specific?j:Ag({focus:U},{resolveItems:()=>de.options,resolveActiveIndex:()=>de.activeOptionIndex,resolveId:qe=>qe.id,resolveDisabled:qe=>qe.dataRef.disabled});g.value=Ae,y.value=J!=null?J:2,u.value=de.options})},selectOption(U){let j=u.value.find(de=>de.id===U);if(!j)return;let{dataRef:J}=j;V(J.value)},selectActiveOption(){if(S.activeOptionIndex.value!==null){if(S.virtual.value)V(S.virtual.value.options[S.activeOptionIndex.value]);else{let{dataRef:U}=u.value[S.activeOptionIndex.value];V(U.value)}S.goToOption(nr.Specific,S.activeOptionIndex.value)}},registerOption(U,j){let J=Qa({id:U,dataRef:j});if(S.virtual.value){u.value.push(J);return}A&&cancelAnimationFrame(A);let de=k(Ae=>(Ae.push(J),Ae));g.value===null&&S.isSelected(j.value.value)&&(de.activeOptionIndex=de.options.indexOf(J)),u.value=de.options,g.value=de.activeOptionIndex,y.value=2,de.options.some(Ae=>!Kt(Ae.dataRef.domRef))&&(A=requestAnimationFrame(()=>{let Ae=k();u.value=Ae.options,g.value=Ae.activeOptionIndex}))},unregisterOption(U,j){if(N!==null&&cancelAnimationFrame(N),j&&(w.value=!0),S.virtual.value){u.value=u.value.filter(de=>de.id!==U);return}let J=k(de=>{let Ae=de.findIndex(qe=>qe.id===U);return Ae!==-1&&de.splice(Ae,1),de});u.value=J.options,g.value=J.activeOptionIndex,y.value=2},isSelected(U){return rs(E.value,{0:()=>S.compare(Lt(S.value.value),Lt(U)),1:()=>Lt(S.value.value).some(j=>S.compare(Lt(j),Lt(U)))})},isActive(U){return g.value===S.calculateIndex(U)}};XR([i,o,l],()=>S.closeCombobox(),te(()=>s.value===0)),Ni(T5,S),C5(te(()=>rs(s.value,{0:Dr.Open,1:Dr.Closed})));let z=te(()=>{var U;return(U=Kt(i))==null?void 0:U.closest("form")});return An(()=>{Sn([z],()=>{if(!z.value||t.defaultValue===void 0)return;function U(){S.change(t.defaultValue)}return z.value.addEventListener("reset",U),()=>{var j;(j=z.value)==null||j.removeEventListener("reset",U)}},{immediate:!0})}),()=>{var U,j,J;let{name:de,disabled:Ae,form:qe,...Ue}=t,je={open:s.value===0,disabled:Ae,activeIndex:S.activeOptionIndex.value,activeOption:S.activeOptionIndex.value===null?null:S.virtual.value?S.virtual.value.options[(U=S.activeOptionIndex.value)!=null?U:0]:(J=(j=S.options.value[S.activeOptionIndex.value])==null?void 0:j.dataRef.value)!=null?J:null,value:x.value};return Zs(gt,[...de!=null&&x.value!=null?k5({[de]:x.value}).map(([nt,Pt])=>Zs(aP,rP({features:y5.Hidden,key:nt,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:qe,disabled:Ae,name:nt,value:Pt}))):[],ni({theirProps:{...e,...fc(Ue,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:je,slots:r,attrs:e,name:"Combobox"})])}}}),A5=cs({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(t,{attrs:r,slots:e,expose:n}){var s;let a=(s=t.id)!=null?s:"headlessui-combobox-button-".concat(pc()),i=Bo("ComboboxButton");n({el:i.buttonRef,$el:i.buttonRef});function o(u){i.disabled.value||(i.comboboxState.value===0?i.closeCombobox():(u.preventDefault(),i.openCombobox()),Vr(()=>{var g;return(g=Kt(i.inputRef))==null?void 0:g.focus({preventScroll:!0})}))}function l(u){switch(u.key){case xr.ArrowDown:u.preventDefault(),u.stopPropagation(),i.comboboxState.value===1&&i.openCombobox(),Vr(()=>{var g;return(g=i.inputRef.value)==null?void 0:g.focus({preventScroll:!0})});return;case xr.ArrowUp:u.preventDefault(),u.stopPropagation(),i.comboboxState.value===1&&(i.openCombobox(),Vr(()=>{i.value.value||i.goToOption(nr.Last)})),Vr(()=>{var g;return(g=i.inputRef.value)==null?void 0:g.focus({preventScroll:!0})});return;case xr.Escape:if(i.comboboxState.value!==0)return;u.preventDefault(),i.optionsRef.value&&!i.optionsPropsRef.value.static&&u.stopPropagation(),i.closeCombobox(),Vr(()=>{var g;return(g=i.inputRef.value)==null?void 0:g.focus({preventScroll:!0})});return}}let d=eP(te(()=>({as:t.as,type:r.type})),i.buttonRef);return()=>{var u,g;let y={open:i.comboboxState.value===0,disabled:i.disabled.value,value:i.value.value},{...w}=t,k={ref:i.buttonRef,id:a,type:d.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(u=Kt(i.optionsRef))==null?void 0:u.id,"aria-expanded":i.comboboxState.value===0,"aria-labelledby":i.labelRef.value?[(g=Kt(i.labelRef))==null?void 0:g.id,a].join(" "):void 0,disabled:i.disabled.value===!0?!0:void 0,onKeydown:l,onClick:o};return ni({ourProps:k,theirProps:w,slot:y,attrs:r,slots:e,name:"ComboboxButton"})}}}),z5=cs({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:t=>!0},setup(t,{emit:r,attrs:e,slots:n,expose:s}){var a;let i=(a=t.id)!=null?a:"headlessui-combobox-input-".concat(pc()),o=Bo("ComboboxInput"),l=te(()=>jm(Kt(o.inputRef))),d={value:!1};s({el:o.inputRef,$el:o.inputRef});function u(){o.change(null);let A=Kt(o.optionsRef);A&&(A.scrollTop=0),o.goToOption(nr.Nothing)}let g=te(()=>{var A;let V=o.value.value;return Kt(o.inputRef)?typeof t.displayValue<"u"&&V!==void 0?(A=t.displayValue(V))!=null?A:"":typeof V=="string"?V:"":""});An(()=>{Sn([g,o.comboboxState,l],([A,V],[F,S])=>{if(d.value)return;let z=Kt(o.inputRef);z&&((S===0&&V===1||A!==F)&&(z.value=A),requestAnimationFrame(()=>{var U;if(d.value||!z||((U=l.value)==null?void 0:U.activeElement)!==z)return;let{selectionStart:j,selectionEnd:J}=z;Math.abs((J!=null?J:0)-(j!=null?j:0))===0&&j===0&&z.setSelectionRange(z.value.length,z.value.length)}))},{immediate:!0}),Sn([o.comboboxState],([A],[V])=>{if(A===0&&V===1){if(d.value)return;let F=Kt(o.inputRef);if(!F)return;let S=F.value,{selectionStart:z,selectionEnd:U,selectionDirection:j}=F;F.value="",F.value=S,j!==null?F.setSelectionRange(z,U,j):F.setSelectionRange(z,U)}})});let y=ge(!1);function w(){y.value=!0}function k(){Mo().nextFrame(()=>{y.value=!1})}let E=FR();function R(A){switch(d.value=!0,E(()=>{d.value=!1}),A.key){case xr.Enter:if(d.value=!1,o.comboboxState.value!==0||y.value)return;if(A.preventDefault(),A.stopPropagation(),o.activeOptionIndex.value===null){o.closeCombobox();return}o.selectActiveOption(),o.mode.value===0&&o.closeCombobox();break;case xr.ArrowDown:return d.value=!1,A.preventDefault(),A.stopPropagation(),rs(o.comboboxState.value,{0:()=>o.goToOption(nr.Next),1:()=>o.openCombobox()});case xr.ArrowUp:return d.value=!1,A.preventDefault(),A.stopPropagation(),rs(o.comboboxState.value,{0:()=>o.goToOption(nr.Previous),1:()=>{o.openCombobox(),Vr(()=>{o.value.value||o.goToOption(nr.Last)})}});case xr.Home:if(A.shiftKey)break;return d.value=!1,A.preventDefault(),A.stopPropagation(),o.goToOption(nr.First);case xr.PageUp:return d.value=!1,A.preventDefault(),A.stopPropagation(),o.goToOption(nr.First);case xr.End:if(A.shiftKey)break;return d.value=!1,A.preventDefault(),A.stopPropagation(),o.goToOption(nr.Last);case xr.PageDown:return d.value=!1,A.preventDefault(),A.stopPropagation(),o.goToOption(nr.Last);case xr.Escape:if(d.value=!1,o.comboboxState.value!==0)return;A.preventDefault(),o.optionsRef.value&&!o.optionsPropsRef.value.static&&A.stopPropagation(),o.nullable.value&&o.mode.value===0&&o.value.value===null&&u(),o.closeCombobox();break;case xr.Tab:if(d.value=!1,o.comboboxState.value!==0)return;o.mode.value===0&&o.activationTrigger.value!==1&&o.selectActiveOption(),o.closeCombobox();break}}function O(A){r("change",A),o.nullable.value&&o.mode.value===0&&A.target.value===""&&u(),o.openCombobox()}function M(A){var V,F,S;let z=(V=A.relatedTarget)!=null?V:Ti.find(U=>U!==A.currentTarget);if(d.value=!1,!((F=Kt(o.optionsRef))!=null&&F.contains(z))&&!((S=Kt(o.buttonRef))!=null&&S.contains(z))&&o.comboboxState.value===0)return A.preventDefault(),o.mode.value===0&&(o.nullable.value&&o.value.value===null?u():o.activationTrigger.value!==1&&o.selectActiveOption()),o.closeCombobox()}function x(A){var V,F,S;let z=(V=A.relatedTarget)!=null?V:Ti.find(U=>U!==A.currentTarget);(F=Kt(o.buttonRef))!=null&&F.contains(z)||(S=Kt(o.optionsRef))!=null&&S.contains(z)||o.disabled.value||o.immediate.value&&o.comboboxState.value!==0&&(o.openCombobox(),Mo().nextFrame(()=>{o.setActivationTrigger(1)}))}let N=te(()=>{var A,V,F,S;return(S=(F=(V=t.defaultValue)!=null?V:o.defaultValue.value!==void 0?(A=t.displayValue)==null?void 0:A.call(t,o.defaultValue.value):null)!=null?F:o.defaultValue.value)!=null?S:""});return()=>{var A,V,F,S,z,U,j;let J={open:o.comboboxState.value===0},{displayValue:de,onChange:Ae,...qe}=t,Ue={"aria-controls":(A=o.optionsRef.value)==null?void 0:A.id,"aria-expanded":o.comboboxState.value===0,"aria-activedescendant":o.activeOptionIndex.value===null?void 0:o.virtual.value?(V=o.options.value.find(je=>!o.virtual.value.disabled(je.dataRef.value)&&o.compare(je.dataRef.value,o.virtual.value.options[o.activeOptionIndex.value])))==null?void 0:V.id:(F=o.options.value[o.activeOptionIndex.value])==null?void 0:F.id,"aria-labelledby":(U=(S=Kt(o.labelRef))==null?void 0:S.id)!=null?U:(z=Kt(o.buttonRef))==null?void 0:z.id,"aria-autocomplete":"list",id:i,onCompositionstart:w,onCompositionend:k,onKeydown:R,onInput:O,onFocus:x,onBlur:M,role:"combobox",type:(j=e.type)!=null?j:"text",tabIndex:0,ref:o.inputRef,defaultValue:N.value,disabled:o.disabled.value===!0?!0:void 0};return ni({ourProps:Ue,theirProps:qe,slot:J,attrs:e,slots:n,features:Lo.RenderStrategy|Lo.Static,name:"ComboboxInput"})}}}),R5=cs({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(t,{attrs:r,slots:e,expose:n}){let s=Bo("ComboboxOptions"),a="headlessui-combobox-options-".concat(pc());n({el:s.optionsRef,$el:s.optionsRef}),is(()=>{s.optionsPropsRef.value.static=t.static}),is(()=>{s.optionsPropsRef.value.hold=t.hold});let i=Zm(),o=te(()=>i!==null?(i.value&Dr.Open)===Dr.Open:s.comboboxState.value===0);nP({container:te(()=>Kt(s.optionsRef)),enabled:te(()=>s.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function l(d){d.preventDefault()}return()=>{var d,u,g;let y={open:s.comboboxState.value===0},w={"aria-labelledby":(g=(d=Kt(s.labelRef))==null?void 0:d.id)!=null?g:(u=Kt(s.buttonRef))==null?void 0:u.id,id:a,ref:s.optionsRef,role:"listbox","aria-multiselectable":s.mode.value===1?!0:void 0,onMousedown:l},k=fc(t,["hold"]);return ni({ourProps:w,theirProps:k,slot:y,attrs:r,slots:s.virtual.value&&s.comboboxState.value===0?{...e,default:()=>[Zs(pP,{},e.default)]}:e,features:Lo.RenderStrategy|Lo.Static,visible:o.value,name:"ComboboxOptions"})}}}),P5=cs({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(t,{slots:r,attrs:e,expose:n}){let s=Bo("ComboboxOption"),a="headlessui-combobox-option-".concat(pc()),i=ge(null),o=te(()=>t.disabled);n({el:i,$el:i});let l=te(()=>{var M;return s.virtual.value?s.activeOptionIndex.value===s.calculateIndex(t.value):s.activeOptionIndex.value===null?!1:((M=s.options.value[s.activeOptionIndex.value])==null?void 0:M.id)===a}),d=te(()=>s.isSelected(t.value)),u=Wr($5,null),g=te(()=>({disabled:t.disabled,value:t.value,domRef:i,order:te(()=>t.order)}));An(()=>s.registerOption(a,g)),Vi(()=>s.unregisterOption(a,l.value)),is(()=>{let M=Kt(i);M&&(u==null||u.value.measureElement(M))}),is(()=>{s.comboboxState.value===0&&l.value&&(s.virtual.value||s.activationTrigger.value!==0&&Vr(()=>{var M,x;return(x=(M=Kt(i))==null?void 0:M.scrollIntoView)==null?void 0:x.call(M,{block:"nearest"})}))});function y(M){M.preventDefault(),M.button===w5.Left&&(o.value||(s.selectOption(a),_5()||requestAnimationFrame(()=>{var x;return(x=Kt(s.inputRef))==null?void 0:x.focus({preventScroll:!0})}),s.mode.value===0&&s.closeCombobox()))}function w(){var M;if(t.disabled||(M=s.virtual.value)!=null&&M.disabled(t.value))return s.goToOption(nr.Nothing);let x=s.calculateIndex(t.value);s.goToOption(nr.Specific,x)}let k=tP();function E(M){k.update(M)}function R(M){var x;if(!k.wasMoved(M)||t.disabled||(x=s.virtual.value)!=null&&x.disabled(t.value)||l.value)return;let N=s.calculateIndex(t.value);s.goToOption(nr.Specific,N,0)}function O(M){var x;k.wasMoved(M)&&(t.disabled||(x=s.virtual.value)!=null&&x.disabled(t.value)||l.value&&(s.optionsPropsRef.value.hold||s.goToOption(nr.Nothing)))}return()=>{let{disabled:M}=t,x={active:l.value,selected:d.value,disabled:M},N={id:a,ref:i,role:"option",tabIndex:M===!0?void 0:-1,"aria-disabled":M===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:y,onFocus:w,onPointerenter:E,onMouseenter:E,onPointermove:R,onMousemove:R,onPointerleave:O,onMouseleave:O},A=fc(t,["order","value"]);return ni({ourProps:N,theirProps:A,slot:x,attrs:e,slots:r,name:"ComboboxOption"})}}});function fP(t){let r={called:!1};return(...e)=>{if(!r.called)return r.called=!0,t(...e)}}function w2(t,...r){t&&r.length>0&&t.classList.add(...r)}function iu(t,...r){t&&r.length>0&&t.classList.remove(...r)}var Fh=(t=>(t.Finished="finished",t.Cancelled="cancelled",t))(Fh||{});function _P(t,r){let e=Mo();if(!t)return e.dispose;let{transitionDuration:n,transitionDelay:s}=getComputedStyle(t),[a,i]=[n,s].map(o=>{let[l=0]=o.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,u)=>u-d);return l});return a!==0?e.setTimeout(()=>r("finished"),a+i):r("finished"),e.add(()=>r("cancelled")),e.dispose}function zg(t,r,e,n,s,a){let i=Mo(),o=a!==void 0?fP(a):()=>{};return iu(t,...s),w2(t,...r,...e),i.nextFrame(()=>{iu(t,...e),w2(t,...n),i.add(_P(t,l=>(iu(t,...n,...r),w2(t,...s),o(l))))}),i.add(()=>iu(t,...r,...e,...n,...s)),i.add(()=>o("cancelled")),i.dispose}function wi(t=""){return t.split(/\s+/).filter(r=>r.length>1)}let Km=Symbol("TransitionContext");var gP=(t=>(t.Visible="visible",t.Hidden="hidden",t))(gP||{});function vP(){return Wr(Km,null)!==null}function yP(){let t=Wr(Km,null);if(t===null)throw new Error("A is used but it is missing a parent .");return t}function bP(){let t=Wr(Ym,null);if(t===null)throw new Error("A is used but it is missing a parent .");return t}let Ym=Symbol("NestingContext");function Ld(t){return"children"in t?Ld(t.children):t.value.filter(({state:r})=>r==="visible").length>0}function N5(t){let r=ge([]),e=ge(!1);An(()=>e.value=!0),Vi(()=>e.value=!1);function n(a,i=Ha.Hidden){let o=r.value.findIndex(({id:l})=>l===a);o!==-1&&(rs(i,{[Ha.Unmount](){r.value.splice(o,1)},[Ha.Hidden](){r.value[o].state="hidden"}}),!Ld(r)&&e.value&&(t==null||t()))}function s(a){let i=r.value.find(({id:o})=>o===a);return i?i.state!=="visible"&&(i.state="visible"):r.value.push({id:a,state:"visible"}),()=>n(a,Ha.Unmount)}return{children:r,register:s,unregister:n}}let M5=Lo.RenderStrategy,CP=cs({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:r,attrs:e,slots:n,expose:s}){let a=ge(0);function i(){a.value|=Dr.Opening,r("beforeEnter")}function o(){a.value&=~Dr.Opening,r("afterEnter")}function l(){a.value|=Dr.Closing,r("beforeLeave")}function d(){a.value&=~Dr.Closing,r("afterLeave")}if(!vP()&&iP())return()=>Zs(Qm,{...t,onBeforeEnter:i,onAfterEnter:o,onBeforeLeave:l,onAfterLeave:d},n);let u=ge(null),g=te(()=>t.unmount?Ha.Unmount:Ha.Hidden);s({el:u,$el:u});let{show:y,appear:w}=yP(),{register:k,unregister:E}=bP(),R=ge(y.value?"visible":"hidden"),O={value:!0},M=pc(),x={value:!1},N=N5(()=>{!x.value&&R.value!=="hidden"&&(R.value="hidden",E(M),d())});An(()=>{let de=k(M);Vi(de)}),is(()=>{if(g.value===Ha.Hidden&&M){if(y.value&&R.value!=="visible"){R.value="visible";return}rs(R.value,{hidden:()=>E(M),visible:()=>k(M)})}});let A=wi(t.enter),V=wi(t.enterFrom),F=wi(t.enterTo),S=wi(t.entered),z=wi(t.leave),U=wi(t.leaveFrom),j=wi(t.leaveTo);An(()=>{is(()=>{if(R.value==="visible"){let de=Kt(u);if(de instanceof Comment&&de.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function J(de){let Ae=O.value&&!w.value,qe=Kt(u);!qe||!(qe instanceof HTMLElement)||Ae||(x.value=!0,y.value&&i(),y.value||l(),de(y.value?zg(qe,A,V,F,S,Ue=>{x.value=!1,Ue===Fh.Finished&&o()}):zg(qe,z,U,j,S,Ue=>{x.value=!1,Ue===Fh.Finished&&(Ld(N)||(R.value="hidden",E(M),d()))})))}return An(()=>{Sn([y],(de,Ae,qe)=>{J(qe),O.value=!1},{immediate:!0})}),Ni(Ym,N),C5(te(()=>rs(R.value,{visible:Dr.Open,hidden:Dr.Closed})|a.value)),()=>{let{appear:de,show:Ae,enter:qe,enterFrom:Ue,enterTo:je,entered:nt,leave:Pt,leaveFrom:G,leaveTo:X,...W}=t,Y={ref:u},ce={...W,...w.value&&y.value&&Md.isServer?{class:pt([e.class,W.class,...A,...V])}:{}};return ni({theirProps:ce,ourProps:Y,slot:{},slots:n,attrs:e,features:M5,visible:R.value==="visible",name:"TransitionChild"})}}}),wP=CP,Qm=cs({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(t,{emit:r,attrs:e,slots:n}){let s=Zm(),a=te(()=>t.show===null&&s!==null?(s.value&Dr.Open)===Dr.Open:t.show);is(()=>{if(![!0,!1].includes(a.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=ge(a.value?"visible":"hidden"),o=N5(()=>{i.value="hidden"}),l=ge(!0),d={show:a,appear:te(()=>t.appear||!l.value)};return An(()=>{is(()=>{l.value=!1,a.value?i.value="visible":Ld(o)||(i.value="hidden")})}),Ni(Ym,o),Ni(Km,d),()=>{let u=fc(t,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),g={unmount:t.unmount};return ni({ourProps:{...g,as:"template"},theirProps:{},slot:{},slots:{...n,default:()=>[Zs(wP,{onBeforeEnter:()=>r("beforeEnter"),onAfterEnter:()=>r("afterEnter"),onBeforeLeave:()=>r("beforeLeave"),onAfterLeave:()=>r("afterLeave"),...e,...g,...u},n.default)]},attrs:{},features:M5,visible:i.value==="visible",name:"Transition"})}}});const L5="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.5%205.25L7%208.75L10.5%205.25'%20stroke='%23999DA1'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",x5={name:"ChooseBankNew",components:{Instructions:Et,Loader:tn,Combobox:I5,ComboboxInput:z5,ComboboxOptions:R5,ComboboxOption:P5,TransitionRoot:Qm,ComboboxButton:A5},props:{preSelectedBank:Object},data(){return{selectedBank:null,loadingBanks:!1,bankSearchQuery:""}},async mounted(){this.selectedBank=this.preSelectedBank},emits:["select"],computed:{...we(ls,["banks"]),sanitizedBankNamesRecord(){return this.banks.reduce((t,r)=>({...t,[r.code]:r.name.toLowerCase().replace(/\s+/g,"")}),{})},sanitizedBankSearchQuery(){return this.bankSearchQuery.toLowerCase().replace(/\s+/g,"")},filteredBanks(){return this.banks.filter(r=>{var s,a;const e=(s=this.sanitizedBankNamesRecord[r.code])==null?void 0:s.includes(this.sanitizedBankSearchQuery),n=(a=Hb[r.code])==null?void 0:a.acronym.toLowerCase().includes(this.sanitizedBankSearchQuery);return e||n})}},methods:{onChoose(t){t&&this.$emit("select",t)}}},kP={key:1},SP={class:"combobox"};function EP(t,r,e,n,s,a){const i=P("loader"),o=P("instructions"),l=P("combobox-input"),d=P("combobox-button"),u=P("combobox-option"),g=P("combobox-options"),y=P("transition-root"),w=P("combobox");return s.loadingBanks?(f(),se(i,{key:0})):(f(),v("div",kP,[Ks(t.$slots,"default",{},()=>[$(o,{message:t.$t("instructionMessage"),icon:"bank"},null,8,["message"])],!0),m("div",SP,[$(w,{ref:"bankName",name:"bankName",modelValue:s.selectedBank,"onUpdate:modelValue":[r[2]||(r[2]=k=>s.selectedBank=k),a.onChoose],nullable:""},{default:ne(()=>[m("div",null,[$(l,{class:"combobox__input",onChange:r[0]||(r[0]=({target:k})=>s.bankSearchQuery=k.value),displayValue:k=>k==null?void 0:k.name,placeholder:t.$t("searchBank"),"data-testid":"vault-bank-name-input"},null,8,["displayValue","placeholder"]),$(d,{class:"combobox__button"},{default:ne(()=>[...r[3]||(r[3]=[m("img",{src:L5},null,-1)])]),_:1})]),$(y,{onAfterLeave:r[1]||(r[1]=k=>s.bankSearchQuery="")},{default:ne(()=>[$(g,{class:"combobox__options"},{default:ne(()=>[(f(!0),v(gt,null,Ot(a.filteredBanks,k=>(f(),se(u,{key:k.id,value:k},{default:ne(({active:E})=>[m("p",{class:pt(["option",{"option--active":E}])},T(k.name),3)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])])]))}typeof Yu=="function"&&Yu(x5);const O5=ee(x5,[["render",EP],["__scopeId","data-v-353e8d9b"]]);function Rg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{cancel:e=>{const{normalize:n}=e;return n(["Cancel"])}},fr:{cancel:e=>{const{normalize:n}=e;return n(["Annuler"])}},ar:{cancel:e=>{const{normalize:n}=e;return n(["إلغاء"])}}}})}const F5={name:"CancelLink",props:{text:String},emits:["click"],computed:{...we(ae,["isCharging"])},methods:{...It(ae,["setIsCharging"]),onClick(){this.isCharging&&this.setIsCharging(!1),this.$emit("click")}}},TP={id:"cancel-link",class:"cancel-link"};function $P(t,r,e,n,s,a){return f(),v("div",TP,[m("button",{name:"cancelPayment",type:"button",class:"cancel-button",onClick:r[0]||(r[0]=(...i)=>a.onClick&&a.onClick(...i)),"data-testid":"cancelLink"},T(e.text||t.$t("cancel")),1)])}typeof Rg=="function"&&Rg(F5);const rn=ee(F5,[["render",$P]]),IP={name:"PaymentButton",props:{type:{type:String,default:"submit"},variant:{type:String},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:{type:String,default:"button"}},emits:["click"],methods:{click(){this.$emit("click")}},computed:{variantStyle(){return{"button--light":this.variant==="light"}}}},AP=["type","name","disabled"],zP={key:0,class:"spinner"};function RP(t,r,e,n,s,a){return f(),v("button",{type:e.type,name:e.name,onClick:r[0]||(r[0]=(...i)=>a.click&&a.click(...i)),class:pt(["button",a.variantStyle]),disabled:e.disabled||e.loading},[e.loading?(f(),v("span",zP)):Ks(t.$slots,"default",{key:1},void 0,!0)],10,AP)}const dt=ee(IP,[["render",RP],["__scopeId","data-v-4bcddd2a"]]),Mn={DIRECT:"direct",PAY_WITH_TRANSFER:"pay-with-transfer"},PP={fidelityussd:"*770#",sterlingussd:"*8221*AccountNumber#",wemaussd:"*945#",stanbicussd:"*909*11*1#",accessussd:"*901#",fbussd:"*894*0#",gtbussd:"*737#",ubaussd:"*919#",zenithussd:"*966*00#"},Dh=[{key:"card",label:"Card"},{key:"bank",label:"Bank"},{key:"bank_transfer",label:"Transfer",isOffline:!0,isNew:!1},{key:"ussd",label:"USSD",isOffline:!0,isNew:!1},{key:"mpass_olti_qr",label:"Scan to Pay",isOffline:!0,allowedCurrencies:["ZAR"]},{key:"payattitude",label:"PayAttitude",isOffline:!0},{key:"visa_qr",label:"Visa QR",allowedCurrencies:["NGN"],isOffline:!0},{key:"direct_debit",label:"Direct Debit"},{key:"eft",label:"EFT"},{key:"paypal",label:"PayPal",isOffline:!1,isNew:!0}],NP=["apple_pay"];function MP({channels:t,channel_options:r={},currency:e}){if(!t.includes("qr"))return[];const n=r.qr||[],s=n.map(a=>Dh.find(i=>i.key==="".concat(a.toLowerCase(),"_qr"))).filter(a=>a.allowedCurrencies.includes(e));return n.includes("MPASS_OLTI")?[...s,{key:"snapscan_qr",label:"SnapScan",isOffline:!0}]:s}function LP({channels:t=[],channel_options:r={}}){if(!t.includes("mobile_money"))return[];const e=r.mobile_money||[],n=e.length>0?e.reduce((s,a)=>(a.isChannel&&a.key!=="MPESA_OFF"&&s.push({key:a.key.toLowerCase(),label:a.value,isNew:a.isNew}),s),[]):[];return n.length===0?[{key:"mobile_money",label:"Mobile Money"}]:n}const xP=(t=[])=>{if(!Array.isArray(t)||t.length===0)return;const r=t.filter(s=>oc.includes(s));if(r.length===0)return;const e={capitec_pay:{key:dr.CAPITEC_PAY,label:"Capitec Pay",icon:new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cg%20filter='url(%23filter0_d_262_2180)'%3e%3crect%20x='1'%20y='1'%20width='26'%20height='26'%20rx='4'%20fill='white'/%3e%3c/g%3e%3cpath%20d='M17.4913%2010H11.2559V12.6211C11.2559%2013.5529%2012.0238%2014.3106%2012.9555%2014.3106H16.2217C17.3889%2014.3106%2018.3412%2015.2628%2018.3412%2016.43V18.9078C20.6039%2018.529%2022.3343%2016.686%2022.3343%2014.4846C22.3343%2012.0273%2020.1534%2010%2017.4913%2010Z'%20fill='%23E63934'/%3e%3cpath%20d='M14.9112%2014.6792H11.6655C10.4983%2014.6792%209.54605%2013.7372%209.54605%2012.57V10.041C7.01706%2010.1844%205%2012.14%205%2014.5154C5%2016.983%207.18088%2019%209.84298%2019H16.6211V16.3686C16.6109%2015.4471%2015.843%2014.6792%2014.9112%2014.6792Z'%20fill='%2300466E'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_262_2180'%20x='0'%20y='0'%20width='28'%20height='28'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur%20stdDeviation='0.5'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_262_2180'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_262_2180'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",import.meta.url).href,alt:"Capitec Pay"},eft:{key:dr.OZOW,label:"Other banks via Ozow",icon:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPVSURBVHgBvVfPU1NXFP7eywtiAI1WTRoYjWXsjNBaFdDpime773RR1kg3nekmcdNlyV9QcdEFnY7IojO20xnoTKeFBRhSXCiNKa2TEaomGAKEiMkDIuTn8Z4XwmRhXnSG8M0k993c+85377nfuedEwg6ISOrs7FRisZiyuLgoORwOLC0tYaeVbDYbTCYT5fN5iVt+pzReAo9xWz4ukOEhptid6PF45Onp6fbt7e1p8ZJGe4hUKvXH5ORke09Pj6nEJzHZXhOVg20zqXiUoKqqwqugGoO9x1zsc4vop1BjFAqF9dbWVpuMfYIsy4cymYwsl6us1mDVKm86OZxbxw3tAW5pQWi5nBC5hFOmw1AtLeg/1gVnXVNVG7y5NzpDJnKvTUGtb0FvYzvUgy1I5jMIZ9cx/GIeo1oYnhOX0G+/aGQGdru9kVktRuoKZTWyhr6nkc3HlMhv08DzAF2NTlDf4gQFXsb1OUNrc3QkMEwDsYeGSmWuqqJxKoeQcH4Np3Dfhae34Xk+A6upDoflA6I9gFtr81AbHbjp7IZ7YQbh9GZFWzs3DyzVYiiwFSfro0FyrfiKfbGzOxtR/dkTfUCn//2ZErk0qcExcj+9X9EOc1V1aYmsf/We3ndH7xJmB0ny/0h9oSn9N6v/JxpYDtJQ7DFZ7/1iTGi0wyLZD7tkvDP8M0ih9Ib+wcxNCqTWyB2+T1f/v0uJbJo+D3orEooE0KBUisOtQg6fLIzAdfQ8PMe7hCrT4szqIeVN4pw29LCQCkUJJLNZ8S3BqtRh5Gw3jGAomm+PX9bJ+iJ38F7wti4Wlv6VuTFceTSOfscFEX+N8Gqr6G6yoRo4bXHes0Sj0Ypx2BeZgndjGUekepwyN+H6ycuwynW749dCfvgScTy59Bmqobm5ucHwpuHg/i25ANc7H6L32BmxqzFc/O93dDfYwS70JldxWixi4tynGF4O6b/1vuusaI8TtFKKjdeBXfid42N8GfpLP7PQuS8w+iKC2VRC77vsZ6FaT+BGZB7X5mYx1NYFI+guZeWsrKxsGk0cTT4Trvtb5BjA7WjDRwePIpnLYGErhdH4EmbXNVx//zx6HU4jM7pLq55hCXyDeLUYfo1HiuoUYWWRzWizWOE6eUYo1FzNxNsR7gUkSWrYtwTM4JgXiVgmTv/YBwiBkixqUJH5Mw9RY4gi6k/RZGVxxeV9Pt9Xtdwl2xYc36BYEOvQC+G9Lhe5HuXycHx8/APsXKNS2UKkjo4Oxe/3KyI2d8XEwVoq9cXfgPKFc7phlVN5iV96ZpjN5oI4sixzC4Xqpf4rOFI17J8Jgp8AAAAASUVORK5CYII=",import.meta.url).href,alt:"Ozow"}},n=r.reduce((s,a)=>{const i=e[a];return i&&(a===dr.OZOW?s.push(i):s.unshift(i)),s},[]);return{key:dr.EFT_CHANNELS,label:"EFT",isNew:!1,channels:n}};function OP(t,r){var O;if(Bi(r))return Dh.filter(M=>M.key==="card");const e=t.channels.filter(M=>M!=="apple_pay"&&!oc.includes(M)),n=Dh.filter(({key:M})=>{if(t.channel_options&&t.channel_options[M]){const N=t.channel_options[M].length>0;return e.includes(M)&&N}return e.includes(M)}),s=e.reduce((M,x)=>{if(x==="qr")return[...M,...MP(t)];if(x==="mobile_money")return[...M,...LP(t)];if(x==="bank")return[...M,{key:"bank",label:"Bank",isNew:!1}];const N=n.find(({key:A})=>A===x);return N?[...M,N]:M},[]),a=xP(t.channels);a&&s.push(a);const o=!!(t.custom_filters||{}).supported_bank_providers,l={key:"vault",label:"Vault"},d={key:"zap",label:"Zap",isNew:!0,isOffline:!0},u={key:"opay",label:"OPay",isNew:!1},g=!o&&!t.isTest&&(t.supportedBanks||[]).some(({slug:M})=>["opay","paycom"].includes(M)),y=((O=t.linkConfig)==null?void 0:O.enabled)&&t.linkConfig.has_payment_instruments,w=(t.supportedBanks||[]).some(({slug:M})=>M==="zap"),k=y?[l]:[],E=g?[u]:[];return[...w?[d]:[],...k,...s,...E]}function FP(t){try{window.localStorage.setItem("lastUsedChannel",t)}catch(r){}}const DP=(t,r)=>{for(const e of t)if(e.key===r||e.channels&&e.channels.find(s=>s.key===r))return!0;return!1};function VP(t){const r=t.filter(({key:e})=>e!=="vault")[0].key;try{const e=window.localStorage.getItem("lastUsedChannel");return e!=="apple_pay"&&DP(t,e)?e:r}catch(e){return r}}const D5=[{name:"Guaranty Trust Bank",shortname:"GTBank",slug:"gtbussd",shortcode:"737",bankSlug:"guaranty-trust-bank",type:Mn.DIRECT},{name:"United Bank for Africa",shortname:"UBA",slug:"ubaussd",shortcode:"919",bankSlug:"united-bank-for-africa",type:Mn.DIRECT},{name:"Sterling Bank",shortname:"Sterling",slug:"sterlingussd",shortcode:"822",bankSlug:"sterling-bank",type:Mn.DIRECT},{name:"Zenith Bank",shortname:"Zenith",slug:"zenithussd",bankSlug:"zenith-bank",shortcode:"966",type:Mn.DIRECT},{name:"Fidelity Bank",shortname:"Fidelity",slug:"fidelityussd",shortcode:"770",bankSlug:"fidelity-bank",type:Mn.PAY_WITH_TRANSFER},{name:"Stanbic IBTC",shortname:"Stanbic",slug:"stanbicussd",shortcode:"909",bankSlug:"stanbic-ibtc-bank",type:Mn.PAY_WITH_TRANSFER},{name:"First Bank",shortname:"First Bank",slug:"fbussd",shortcode:"894",bankSlug:"first-bank-of-nigeria",type:Mn.PAY_WITH_TRANSFER},{name:"Access Bank",shortname:"Access Bank",slug:"accessussd",shortcode:"901",bankSlug:"access-bank",type:Mn.PAY_WITH_TRANSFER},{name:"Wema Bank",shortname:"Wema Bank",slug:"wemaussd",shortcode:"945",bankSlug:"wema-bank",type:Mn.PAY_WITH_TRANSFER}],V5=(t,r=D5)=>{var o,l;const e=((o=t==null?void 0:t.channel_options)==null?void 0:o.ussd)||[],n=((l=t==null?void 0:t.channel_options)==null?void 0:l.bank_transfer_ussd)||[],s=[...e,...n],a=r.reduce((d,u)=>s.includes(u.shortcode)||s.includes(u.bankSlug)?[...d,u]:d,[]);return K8(a,"name")},BP=t=>t.filter(e=>!NP.includes((e==null?void 0:e.key)||e)),UP=()=>fetch("".concat(Zr.API_URL,"decision/ip")).then(t=>{if(!t.ok)throw new Error(t.status);return t.json()}).then(t=>t.data).catch(()=>null),HP=(t=navigator.userAgent)=>{var r,e=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(e[1])?(r=/\brv[ :]+(\d+)/g.exec(t)||[],"IE "+(r[1]||"")):e[1]==="Chrome"&&(r=t.match(/\b(OPR|Edge)\/(\d+)/),r!=null)?r.slice(1).join(" ").replace("OPR","Opera"):(e=e[2]?[e[1],e[2]]:[navigator.appName,navigator.appVersion,"-?"],(r=t.match(/version\/(\d+)/i))!=null&&e.splice(1,1,r[1]),e.join(" "))};var C3;const qP=(navigator==null?void 0:navigator.platform)||((C3=navigator==null?void 0:navigator.userAgentData)==null?void 0:C3.platform),Vh=/safari/.test(HP().toLocaleLowerCase()),WP=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(qP)||navigator.userAgent.includes("Mac")&&"ontouchend"in document;function GP({feature:t,integration:r}){switch(t){case"full-redirect-3ds":return[348622,100043,100594,115278,153554,352476,194282,369128,518321,605980,191384,158579,669069,809340,190912,104380,1390446].find(e=>e===r);default:return null}}function jP(t){const[,r,e]=t.split("_");return"".concat(r.charAt(0)).concat(e)}function ZP(t){const r={l:"live",t:"test"},e=t.charAt(0),n=t.slice(1);return"pk_".concat(r[e],"_").concat(n)}function KP({maskedPublicKey:t,accessCode:r,paymentChannel:e}){return"".concat(t,"-").concat(r,"-").concat(e)}function Pg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{authenticate:e=>{const{normalize:n}=e;return n(["Authenticate"])},close:e=>{const{normalize:n}=e;return n(["Close"])},authMessage:{redirected:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Waiting for response from your ",s(a("destination"))])},connecting:e=>{const{normalize:n}=e;return n(["Please wait while we connect to your bank"])},notRedirected_mobile:e=>{const{normalize:n}=e;return n(["Please tap the button below to authenticate with your bank"])},notRedirected_desktop:e=>{const{normalize:n}=e;return n(["Please click the button below to authenticate with your bank"])},redirectType_3ds:e=>{const{normalize:n}=e;return n(["card issuer"])},redirectType_ibank:e=>{const{normalize:n}=e;return n(["internet banking"])}}},fr:{authenticate:e=>{const{normalize:n}=e;return n(["Authentifier"])},close:e=>{const{normalize:n}=e;return n(["Fermer"])},authMessage:{redirected:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["En attente d'une réponse de votre ",s(a("destination"))])},connecting:e=>{const{normalize:n}=e;return n(["Veuillez patienter pendant que nous nous connectons à votre banque"])},notRedirected_desktop:e=>{const{normalize:n}=e;return n(["Veuillez appuyer sur le bouton ci-dessous pour vous identifier auprès de votre banque"])},notRedirected_mobile:e=>{const{normalize:n}=e;return n(["Veuillez cliquer sur le bouton ci-dessous pour vous identifier auprès de votre banque"])},redirectType_3DS:e=>{const{normalize:n}=e;return n(["banque"])}}},ar:{authenticate:e=>{const{normalize:n}=e;return n(["المصادقة"])},close:e=>{const{normalize:n}=e;return n(["انهاء"])},authMessage:{redirected:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["جاري انتظار الرد من ",s(a("destination"))])},connecting:e=>{const{normalize:n}=e;return n(["يرجى الانتظار بينما نتصل البنك الخاص بك"])},notRedirected_desktop:e=>{const{normalize:n}=e;return n(["يرجى الضغط على الزر أدناه لتأكيد الدفع مع البنك الخاص بك"])},notRedirected_mobile:e=>{const{normalize:n}=e;return n(["يرجى الضغط على الزر أدناه لتأكيد الدفع مع البنك الخاص بك"])},redirectType_3DS:e=>{const{normalize:n}=e;return n(["مصدر البطاقة"])}}}}})}const k2={"3DS":"3DS",IBANK:"ibank"},yl={FULL_REDIRECT:"full_redirect",IFRAME:"iframe",NEW_WINDOW:"new_window"};let fs;const B5={name:"ExternalRedirect",components:{Instructions:Et,Loader:tn,CancelLink:rn,PaymentButton:dt},props:{url:String,bankSlug:String,type:{type:String,validator(t){return Object.values(k2).includes(t)}},canCancel:{type:Boolean,default:!0},icon:{type:String,default:"redirect"}},data(){return{useIframe:!1,iframeUrl:"https://paystack.com/public/test/cookie-support/start.html",authPageLoaded:!1}},mounted(){this.authRequestedAt=new Date},computed:{...we(Nr,["mode"]),...we(ae,["transaction","activeChannel","isRedirected","chargeType"]),destination(){return this.$t("authMessage.redirectType_".concat(this.type.toLowerCase()))},authMessage(){const t=Fn()?"mobile":"desktop";return this.isRedirected?this.$t("authMessage.redirected",{destination:this.destination}):this.$t("authMessage.notRedirected_".concat(t))},typeIs3DS(){return this.type===k2["3DS"]},canUseGtb737(){const r=V5(this.transaction).some(e=>e.shortcode==="737");return this.bankSlug==="guaranty-trust-bank"&&r},isRecurringCardCharge(){return Bi(this.chargeType)}},methods:{...It(ae,["setIsRedirected"]),getRedirectStrategy(){const t=GP({feature:"full-redirect-3ds",integration:this.transaction.merchant.id}),r=WP&&!Vh,e=this.type===k2.IBANK&&this.bankSlug==="guaranty-trust-bank",n=t||r;return e?{strategy:yl.NEW_WINDOW,action:this.openNewWindow}:n?{strategy:yl.FULL_REDIRECT,action:this.performFullRedirect}:n?{strategy:yl.NEW_WINDOW,action:this.openNewWindow}:Vh?{strategy:yl.NEW_WINDOW,action:this.openNewWindow}:{strategy:yl.IFRAME,action:this.attemptIframeAuth}},async performFullRedirect(){const t=jP(this.transaction.merchant.key),r=KP({maskedPublicKey:t,accessCode:this.transaction.accessCode,paymentChannel:this.activeChannel.name}),e=this.craftCallbackUrl(r),n=new URL(this.url);n.searchParams.append("redirect_to",e),window.location=n.toString(),Ua("redirecting")},async attemptIframeAuth(){if(this.useIframe=!0,await this.checkThirdPartyCookieSupport())this.iframeUrl=this.url,this.listenForIframeEvents();else throw this.useIframe=!1,new Error},async redirect(){try{this.transaction.logAuthWindowOpen(),this.setIsRedirected(!0);const{action:t}=this.getRedirectStrategy();await t()}catch(t){this.openNewWindow()}},checkThirdPartyCookieSupport(){return new Promise(t=>{const r=({data:e})=>{window.removeEventListener("message",r),t(e==="MM:3PCsupported")};window.addEventListener("message",r,!1)})},openNewWindow(){fs=window.open(this.url,"_blank","width=600,height=600,location=no,toolbar=no,menubar=no"),this.checkForResponseAtIntervals()},checkForResponseAtIntervals(){const t=setInterval(()=>{fs&&!fs.closed||(window.clearInterval(t),fs!=null&&fs.closed&&this.endRedirect())},1e3)},listenForIframeEvents(){window.addEventListener("message",({data:t})=>{typeof t=="string"&&(this.authPageLoaded=t==="loaded:AuthPage",t.split(" ")[0]==="PaystackAuth"&&this.endRedirect())})},endRedirect(){!this.useIframe&&typeof(fs==null?void 0:fs.close)=="function"&&(fs.close(),fs=null),this.$emit("closed"),this.transaction.logAuthWindowClose(),this.trackAuthentication(),this.setIsRedirected(!1)},trackAuthentication(){const t=Ea(new Date,this.authRequestedAt);hc({auth:this.type,timeSpent:t})},cancel(){this.isRedirected?this.endRedirect():this.$emit("cancel")},craftCallbackUrl(t){return"".concat(window.location.href,"?nonce=").concat(t)}}},YP={key:1},QP={class:"row"},JP={class:"col-10-sm col-centered"},XP=["data-message"],eN=["src"];function tN(t,r,e,n,s,a){const i=P("instructions"),o=P("loader"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",null,[$(i,{icon:e.icon,message:a.authMessage},null,8,["icon","message"]),t.isRedirected?(f(),se(o,{key:0})):(f(),v("div",YP,[m("div",QP,[m("div",JP,[$(l,{"data-testid":"continueRedirect",onClick:r[0]||(r[0]=u=>a.redirect())},{default:ne(()=>[Be(T(t.$t("authenticate")),1)]),_:1}),a.canUseGtb737?Ks(t.$slots,"default",{key:0},void 0,!0):D("",!0)])])])),e.canCancel&&!a.isRecurringCardCharge?(f(),se(d,{key:2,onClick:r[1]||(r[1]=u=>a.cancel())})):D("",!0),$(rt,{name:"fade"},{default:ne(()=>[t.isRedirected&&s.useIframe?(f(),v("div",{key:0,class:pt(["iframe-container",{"iframe-container__content":!s.authPageLoaded}]),"data-message":t.$t("authMessage.connecting")},[m("button",{onClick:r[2]||(r[2]=u=>a.endRedirect()),class:"iframe-container__close"},T(t.$t("close")),1),m("iframe",{src:s.iframeUrl,ref:"iframe",frameBorder:"0",allowtransparency:"true"},null,8,eN)],10,XP)):D("",!0)]),_:1})])}typeof Pg=="function"&&Pg(B5);const U5=ee(B5,[["render",tN],["__scopeId","data-v-07e8739e"]]),nN="data:image/svg+xml,%3csvg%20width='68'%20height='23'%20viewBox='0%200%2068%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_10703_31041)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.97695%206.85696C5.08935%206.73578%205.16428%206.50617%205.47649%206.08522C6.1696%205.14127%207.27484%204.29938%208.74848%203.94221C12.0142%203.14496%2014.6556%205.40915%2015.4049%207.85831C16.4352%2011.2004%2014.4183%2014.0067%2012.1204%2014.9634C10.6717%2015.5629%209.0045%2015.5055%207.63076%2014.8614C6.24453%2014.2044%205.74499%2013.4837%205.01441%2012.3612H1.03058C1.09302%2013.1584%202.06088%2014.7976%202.40431%2015.2568C8.04288%2022.8402%2019.4574%2018.6499%2019.3887%209.4847C19.3512%204.52899%2015.7046%200.746826%2011.2899%200.0962693C8.60486%20-0.292789%206.18834%200.54273%204.51487%201.78644C3.7281%202.36684%202.88512%203.20874%202.32938%204.01874C2.0359%204.43969%201.79238%204.87978%201.54261%205.39002C1.41148%205.66427%201.32406%205.86199%201.20542%206.19364C1.03682%206.63373%201.0056%206.79956%201.02433%206.85696H4.97695Z'%20fill='%231DCEA0'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M30.2468%204.61152C32.5759%204.61152%2034.2369%207.13083%2033.2815%209.64377C32.3137%2012.1822%2029.7723%2011.7039%2026.8499%2011.6975V4.74546L30.2468%204.61152ZM23.3906%2019.0896L26.8%2019.1534L26.8562%2015.2437C30.378%2014.9375%2032.0764%2015.8623%2034.6615%2013.6173C38.3269%2010.4346%2037.8086%203.57191%2032.5135%201.4863C31.1897%200.963301%2029.5974%201.09086%2028.1113%201.09086C27.2246%201.09086%2025.395%201.09724%2023.3969%201.16102L23.3906%2019.0896Z'%20fill='%23211060'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M44.6457%208.41309C46.9373%207.83907%2048.667%209.40168%2049.1041%2011.1811C49.6536%2013.4071%2048.0925%2015.2503%2046.4378%2015.6713C41.6984%2016.8767%2039.9375%209.58665%2044.6457%208.41309ZM49.7472%206.29559C48.6045%205.65142%2048.0113%205.0774%2046.3129%204.92432C42.4289%204.56715%2038.8822%207.2523%2038.545%2011.5447C38.1454%2016.5387%2042.9097%2020.2124%2047.312%2018.9496C47.7865%2018.8156%2048.6732%2018.3755%2048.9417%2018.35L49.0041%2019.1537C49.5849%2019.2238%2050.1843%2019.1855%2050.765%2019.1855C51.8453%2019.1855%2051.5581%2019.2621%2052.4135%2019.0771L52.3698%205.01999C52.1263%204.87968%2052.0264%204.9881%2051.9702%205.01362C51.9639%205.01362%2051.7204%205.16669%2051.6767%205.19858L49.7472%206.29559Z'%20fill='%23211060'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M57.0219%2022.9108C57.5402%2023.0193%2060.169%2023.0575%2060.5125%2022.8726C60.8621%2022.6685%2061.3804%2021.1314%2061.5303%2020.7614C61.8487%2020.0088%2062.1547%2019.269%2062.4794%2018.51L67.9993%204.96949L64.9709%204.94398C64.3527%204.94398%2064.3652%205.10343%2064.1591%205.62005C64.003%206.00273%2063.8719%206.31525%2063.7158%206.68518L61.2555%2012.5147C61.2305%2012.5657%2061.1619%2012.7379%2061.1369%2012.7762L60.9808%2012.9994L57.8836%205.63281C57.5277%204.73988%2057.6026%204.94398%2055.3172%204.94398C53.3628%204.94398%2053.6563%204.37634%2055.5171%208.99402L58.8827%2017.0303C59.1637%2017.6809%2059.1512%2017.5979%2058.8702%2018.2421C58.5892%2018.8927%2056.9657%2022.4963%2057.0219%2022.9108Z'%20fill='%23211060'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.79651%2011.2135L4.82681%2011.188L4.87052%207.99902H0.0686869C-0.024977%208.65596%20-0.0187328%2010.5821%200.0624426%2011.2135H3.79651Z'%20fill='%23210E5F'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_10703_31041'%3e%3crect%20width='68'%20height='23'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function Ng(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{useIbank:e=>{const{normalize:n}=e;return n(["Or pay with internet banking"])},settingUp:e=>{const{normalize:n}=e;return n(["Setting up"])},payWith737:e=>{const{normalize:n}=e;return n(["Or pay with GTBank's 737"])},oPayIcon:e=>{const{normalize:n}=e;return n(["Opay Icon"])}},fr:{useIbank:e=>{const{normalize:n}=e;return n(["Ou payez avec la banque en ligne"])},settingUp:e=>{const{normalize:n}=e;return n(["Configuration"])},payWith737:e=>{const{normalize:n}=e;return n(["Ou payez avec le 737 de GTBank"])}}}})}const H5={name:"IbankGateway",components:{Loader:tn,Redirect:U5,PaymentButton:dt},props:{bank:{type:Object,required:!0},showCancelLink:{type:Boolean,default:!0}},data(){return{ibankData:null}},emits:["callback","attempt","cancel"],computed:{...we(ae,["transaction","activeChannel"]),setupComplete(){return this.ibankData},isOPay(){return["opay","paycom"].includes(this.bank.slug)},redirectIcon(){return this.isOPay?null:"redirect"}},created(){this.setupIbank()},methods:{...It(ae,["setActiveChannel","setUssdProvider"]),cancel(){this.$emit("cancel")},listenForIbankChargeCallback(t,r){t.status!=="error"&&(this.$emit("attempt","ibank"),this.$emit("callback",t),r())},async setupIbank(){const{data:t}=await this.transaction.getIbankUrl({bankId:this.bank.id});this.ibankData=t,this.transaction.listenForIbankCharge(this.listenForIbankChargeCallback)},checkTransactionStatus(){this.$emit("callback",{status:"requery"})},confirmPayment(){Dm({channel:this.activeChannel.name}),this.checkTransactionStatus()},payWithGtb737(){const t=D5.find(r=>r.slug==="gtbussd");this.setUssdProvider(t),this.setActiveChannel({name:"ussd"})}}},rN={id:"ibank"},sN={key:1},aN={key:0},iN={class:"icon-container"},oN=["alt"];function lN(t,r,e,n,s,a){const i=P("loader"),o=P("payment-button"),l=P("redirect");return f(),v("div",rN,[a.setupComplete?(f(),v("div",sN,[$(rt,{name:"fade"},{default:ne(()=>[a.setupComplete?(f(),v("div",aN,[ct(m("div",iN,[m("img",{src:nN,alt:t.$t("oPayIcon"),class:"icon-container__opay"},null,8,oN)],512),[[hr,a.isOPay]]),$(l,{type:"ibank",bankSlug:e.bank.slug,url:s.ibankData&&s.ibankData.url,onCancel:a.cancel,onClosed:a.checkTransactionStatus,canCancel:e.showCancelLink,icon:a.redirectIcon},{default:ne(()=>[$(o,{type:"button",variant:"light",onClick:a.payWithGtb737,"data-testid":"use-gtb-737-button"},{default:ne(()=>[Be(T(t.$t("payWith737")),1)]),_:1},8,["onClick"])]),_:1},8,["bankSlug","url","onCancel","onClosed","canCancel","icon"])])):D("",!0)]),_:1})])):(f(),se(i,{key:0,message:t.$t("settingUp")},null,8,["message"]))])}typeof Ng=="function"&&Ng(H5);const q5=ee(H5,[["render",lN],["__scopeId","data-v-7f545fbd"]]);function Mg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{months:{january:e=>{const{normalize:n}=e;return n(["January"])},february:e=>{const{normalize:n}=e;return n(["February"])},march:e=>{const{normalize:n}=e;return n(["March"])},april:e=>{const{normalize:n}=e;return n(["April"])},may:e=>{const{normalize:n}=e;return n(["May"])},june:e=>{const{normalize:n}=e;return n(["June"])},july:e=>{const{normalize:n}=e;return n(["July"])},august:e=>{const{normalize:n}=e;return n(["August"])},september:e=>{const{normalize:n}=e;return n(["September"])},october:e=>{const{normalize:n}=e;return n(["October"])},november:e=>{const{normalize:n}=e;return n(["November"])},december:e=>{const{normalize:n}=e;return n(["December"])}}},fr:{months:{january:e=>{const{normalize:n}=e;return n(["Janvier"])},february:e=>{const{normalize:n}=e;return n(["Février"])},march:e=>{const{normalize:n}=e;return n(["Mars"])},april:e=>{const{normalize:n}=e;return n(["Avril"])},may:e=>{const{normalize:n}=e;return n(["Mai"])},june:e=>{const{normalize:n}=e;return n(["Juin"])},july:e=>{const{normalize:n}=e;return n(["Juillet"])},august:e=>{const{normalize:n}=e;return n(["Août"])},september:e=>{const{normalize:n}=e;return n(["Septembre"])},october:e=>{const{normalize:n}=e;return n(["Octobre"])},november:e=>{const{normalize:n}=e;return n(["Novembre"])},december:e=>{const{normalize:n}=e;return n(["Décembre"])}}},ar:{months:{january:e=>{const{normalize:n}=e;return n(["يناير"])},february:e=>{const{normalize:n}=e;return n(["فبراير"])},march:e=>{const{normalize:n}=e;return n(["مارس"])},april:e=>{const{normalize:n}=e;return n(["أبريل"])},may:e=>{const{normalize:n}=e;return n(["مايو"])},june:e=>{const{normalize:n}=e;return n(["يونيو"])},july:e=>{const{normalize:n}=e;return n(["يوليو"])},august:e=>{const{normalize:n}=e;return n(["أغسطس"])},september:e=>{const{normalize:n}=e;return n(["سبتمبر"])},october:e=>{const{normalize:n}=e;return n(["اكتوبر"])},november:e=>{const{normalize:n}=e;return n(["نوفمبر"])},december:e=>{const{normalize:n}=e;return n(["ديسمبر"])}}}}})}const W5={name:"DateInput",directives:{maska:ic},props:{value:{type:String}},data(){return{months:bn.getObjectTranslation({$tm:this.$tm,$rt:this.$rt},"months"),month:this.$t("months.january"),day:"",year:""}},emits:["update:modelValue"],computed:{dayIsValid(){return this.day&&this.day<=31},yearIsValid(){var r;const t=new Date().getFullYear();return((r=this.year)==null?void 0:r.length)===4&&this.year<=t}},methods:{dateSelected(){this.$refs.day&&this.$refs.day.focus(),this.emit()},dayEntered(){this.day.length===2&&this.$refs.year&&this.$refs.year.focus(),this.emit()},emit(){if(this.dayIsValid&&this.yearIsValid){const t="".concat(this.month," ").concat(this.day," ").concat(this.year),r=new Date(t),e=T2(r,"yyy-MM-dd");this.$emit("update:modelValue",e)}else this.$emit("update:modelValue",null)}}},cN={class:"date-input-group"},uN={class:"date-input-field"},dN={class:"select-wrap"},hN=["value"],mN={class:"date-input-field"},pN={class:"input-wrap"},fN={class:"date-input-field"},_N={class:"input-wrap"};function gN(t,r,e,n,s,a){const i=cc("maska");return f(),v("div",cN,[m("div",uN,[m("div",dN,[ct(m("select",{ref:"month",name:"dateInputMonth","data-testid":"date-input-month",class:"select","onUpdate:modelValue":r[0]||(r[0]=o=>s.month=o),onChange:r[1]||(r[1]=(...o)=>a.dateSelected&&a.dateSelected(...o))},[(f(!0),v(gt,null,Ot(s.months,(o,l)=>(f(),v("option",{key:l,value:o},T(o),9,hN))),128))],544),[[ks,s.month]]),r[6]||(r[6]=m("div",{class:"select-icon"},null,-1))])]),m("div",mN,[m("div",pN,[ct(m("input",{ref:"day",name:"dateInputDay",type:"tel","onUpdate:modelValue":r[2]||(r[2]=o=>s.day=o),"data-maska":"##",class:pt(["input",{"input--error":s.day&&!a.dayIsValid}]),onInput:r[3]||(r[3]=(...o)=>a.dayEntered&&a.dayEntered(...o)),autocomplete:"off",placeholder:"01","data-testid":"date-input-day",required:""},null,34),[[Wt,s.day],[i]])])]),m("div",fN,[m("div",_N,[ct(m("input",{ref:"year",name:"dateInputYear",type:"tel","onUpdate:modelValue":r[4]||(r[4]=o=>s.year=o),"data-maska":"####",class:pt(["input",{"input--error":s.year&&!a.yearIsValid}]),onInput:r[5]||(r[5]=(...o)=>a.emit&&a.emit(...o)),autocomplete:"off",placeholder:"1990","data-testid":"date-input-year",required:""},null,34),[[Wt,s.year],[i]])])])])}typeof Mg=="function"&&Mg(W5);const vN=ee(W5,[["render",gN],["__scopeId","data-v-bc8aeb8e"]]);function Lg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{authorize:e=>{const{normalize:n}=e;return n(["Authorize"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Verify your date of birth to use this bank account with Paystack"])}},fr:{authorize:e=>{const{normalize:n}=e;return n(["Autoriser"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Vérifier votre date de naissance pour utiliser ce compte bancaire avec Paystack"])}}}})}const G5={name:"BirthdayForm",components:{DateInput:vN,Instructions:Et,CancelLink:rn,PaymentButton:dt},props:{message:{type:String}},data(){return{processing:!1,birthday:null}},emits:["cancel","submit"],computed:{...we(ae,["transaction"]),instructionMessage(){return this.message||this.$t("instructionMessage")}},methods:{cancel(){this.$emit("cancel")},onSubmit(){this.processing=!0,this.$emit("submit",this.birthday)}}},yN={id:"birthday-form"},bN={class:"row"},CN={class:"col-10-sm col-centered"},wN={class:"form-group"};function kN(t,r,e,n,s,a){const i=P("instructions"),o=P("date-input"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",yN,[m("form",{onSubmit:r[1]||(r[1]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"]))},[$(i,{icon:"birthday","data-testid":"birthday-form-instruction",message:a.instructionMessage},null,8,["message"]),m("div",bN,[m("div",CN,[m("div",wN,[$(o,{modelValue:s.birthday,"onUpdate:modelValue":r[0]||(r[0]=u=>s.birthday=u)},null,8,["modelValue"])]),$(l,{disabled:!s.birthday,loading:s.processing,"data-testid":"birthdayFormAuthorizeButton"},{default:ne(()=>[Be(T(t.$t("authorize")),1)]),_:1},8,["disabled","loading"]),s.processing?D("",!0):(f(),se(d,{key:0,onClick:a.cancel},null,8,["onClick"]))])])],32)])}typeof Lg=="function"&&Lg(G5);const SN=ee(G5,[["render",kN]]),j5=420,EN={name:"InlineLoader",props:{message:{type:String}}},TN={class:"loader-wrapper"},$N={key:0,class:"loader-message"};function IN(t,r,e,n,s,a){return f(),v("div",TN,[r[0]||(r[0]=m("div",{class:"loader"},[m("div",{class:"loader__spinner"},[m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div"),m("div")])],-1)),e.message?(f(),v("div",$N,T(e.message),1)):D("",!0)])}const AN=ee(EN,[["render",IN],["__scopeId","data-v-74764594"]]);function xg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{authorize:e=>{const{normalize:n}=e;return n(["Authorize"])},cancelText:{restart:e=>{const{normalize:n}=e;return n(["Restart transaction"])},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])}},timeInMinutes:e=>{const{normalize:n,interpolate:s,named:a,plural:i}=e;return i([n([s(a("count"))," minute"]),n([s(a("count"))," minutes"])])},timeInSeconds:e=>{const{normalize:n,interpolate:s,named:a,plural:i}=e;return i([n([s(a("count"))," second"]),n([s(a("count"))," seconds"])])},otpStatus:{resending:e=>{const{normalize:n}=e;return n(["Resending OTP"])},waitingForToken:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["A token should be sent to you
within ",s(a("timeLeft")),"
"])},canResendToken:{mainText:e=>{const{normalize:n}=e;return n(["Didn’t get a token?"])},subText:e=>{const{normalize:n}=e;return n(["Click here to resend"])}},noOtp:e=>{const{normalize:n}=e;return n(["Your bank might be having trouble sending a token."])},requery:e=>{const{normalize:n}=e;return n(["Didn't receive OTP?"])},requeryMessage:e=>{const{normalize:n}=e;return n(["Your bank might be having trouble sending your one-time password (OTP). Redirecting to another authentication method"])}}},fr:{authorize:e=>{const{normalize:n}=e;return n(["Autoriser"])},cancelText:{restart:e=>{const{normalize:n}=e;return n(["Recommencer la transaction"])},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])}},timeInMinutes:e=>{const{normalize:n,interpolate:s,named:a,plural:i}=e;return i([n([s(a("count"))," minute"]),n([s(a("count"))," minutes"])])},timeInSeconds:e=>{const{normalize:n,interpolate:s,named:a,plural:i}=e;return i([n([s(a("count"))," seconde"]),n([s(a("count"))," secondes"])])},otpStatus:{resending:e=>{const{normalize:n}=e;return n(["Envoyer à nouveau le Mot de passe"])},waitingForToken:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Un code devrait vous être envoyé
dans ",s(a("timeLeft")),"
"])},canResendToken:{mainText:e=>{const{normalize:n}=e;return n(["Vous n'avez pas reçu de code?"])},subText:e=>{const{normalize:n}=e;return n(["Cliquez ici pour envoyer à nouveau"])}},noOtp:e=>{const{normalize:n}=e;return n(["Votre banque rencontre peut-être des difficultés pour envoyer un code."])},requery:e=>{const{normalize:n}=e;return n(["Vous n'avez pas reçu le code?"])},requeryMessage:e=>{const{normalize:n}=e;return n(["Votre banque rencontre peut-être des difficultés pour envoyer votre code. Redirection vers une autre méthode d’authentification"])}}},ar:{authorize:e=>{const{normalize:n}=e;return n(["إذن"])},cancelText:{restart:e=>{const{normalize:n}=e;return n(["أعد المعاملة"])},cancel:e=>{const{normalize:n}=e;return n(["إلغاء"])}},timeInMinutes:e=>{const{normalize:n,interpolate:s,named:a,plural:i}=e;return i([n([s(a("count"))," دقيقة"]),n([s(a("count"))," دقائق"])])},timeInSeconds:e=>{const{normalize:n,interpolate:s,named:a,plural:i}=e;return i([n([s(a("count"))," ثانية"]),n([s(a("count"))," ثواني"])])},otpStatus:{resending:e=>{const{normalize:n}=e;return n(["رقم التعريف الشخصي المؤقت (OTP)"])},waitingForToken:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["سيتم ارسال رقم التعريف الشخصي المؤقت (OTP) خلال
",s(a("timeLeft")),"
"])},canResendToken:{mainText:e=>{const{normalize:n}=e;return n(["لم تحصل علي رقم التعريف الشخصي المؤقت (OTP)؟"])},subText:e=>{const{normalize:n}=e;return n(["اضغط هنا لإعادة الارسال"])}},noOtp:e=>{const{normalize:n}=e;return n(["قد يواجه البنك الذي تتعامل معه مشكلة في إرسال رمز مميز"])},requery:e=>{const{normalize:n}=e;return n(["لم يصلك رقم التعريف الشخصي المؤقت (OTP)؟"])},requeryMessage:e=>{const{normalize:n}=e;return n(["قد يواجه البنك الذي تتعامل معه مشكلة في إرسال رمز مميز OTP. يرجى تجربة طريقة تأكيد أخرى"])}}}}})}const Z5={name:"OtpForm",components:{Instructions:Et,CancelLink:rn,InlineLoader:AN,PaymentButton:dt},props:{message:{type:String,default:"Please enter the OTP that was sent to your phone."},resending:{type:Boolean},timeLimit:{type:Number,default:j5},showCountdown:{type:Boolean,default:!0},countdownMessage:{type:String},validationPattern:{type:String},validationMessage:{type:String}},data(){return{otp:null,processing:!1,deadline:null,timeLeft:null,waitingForToken:!0,interval:null}},created(){this.$nextTick(()=>{this.$refs.input&&this.$refs.input.focus()}),this.deadline=Mp(new Date,this.timeLimit),this.checkTimeLeft(),this.interval=setInterval(()=>this.checkTimeLeft(),1e3)},watch:{resending(){this.deadline=Mp(this.timeLimit,"seconds")}},beforeUnmount(){window.clearInterval(this.interval)},emits:["cancel","requery","submit","resend"],computed:{...we(ae,["transaction"]),canResendToken(){return this.$attrs&&this.$attrs.resend},cancelText(){const t=!this.transaction.isTest&&!this.canResendToken;return!this.waitingForToken&&t?this.$t("cancelText.restart"):this.$t("cancelText.cancel")},formInputType(){var r;const t=(r=this.message)==null?void 0:r.toLowerCase();return t!=null&&t.includes("password")||t!=null&&t.includes("pin")?"password":"tel"},showOtpCountdown(){return this.transaction.isTest?!1:this.showCountdown},inputValidationPattern(){return this.validationPattern||void 0},inputValidationMessage(){return this.validationMessage||void 0},waitingForTokenMessage(){return this.$t("otpStatus.waitingForToken",{timeLeft:this.timeLeft})}},methods:{cancel(){this.$emit("cancel")},requery(){this.$emit("requery",this.$t("otpStatus.requeryMessage"))},checkTimeLeft(){const t=Ea(this.deadline,new Date),{isInMinutes:r,time:e}=this.timeFormatter(t);this.timeLeft=r?this.$tc("timeInMinutes",e):this.$tc("timeInSeconds",e),this.waitingForToken=ql(new Date,this.deadline)},timeFormatter(t){const e=Math.floor(t/60),n=t%60,s=e&&n?e+1:e||n;return{isInMinutes:e>0,time:s}},onSubmit(){this.processing=!0,this.$emit("submit",this.otp)},resend(){Om(),this.$emit("resend")}}},zN={id:"otp-form"},RN={class:"row"},PN={class:"col-11-sm col-centered"},NN={class:"row"},MN={class:"col-7-sm"},LN=["type","pattern","title"],xN={class:"col-5-sm"},ON={key:0,class:"otp-status"},FN={key:0},DN={key:1},VN=["innerHTML"],BN={key:3},UN={class:"bold"},HN={key:4},qN={class:"actions"},WN={key:1,id:"requery-link",class:"requery-link"};function GN(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("inline-loader"),d=P("cancel-link");return f(),v("div",zN,[m("form",{onSubmit:r[3]||(r[3]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"]))},[$(i,{message:e.message,icon:"otp"},null,8,["message"]),m("div",RN,[m("div",PN,[m("div",NN,[m("div",MN,[ct(m("input",{ref:"input",type:a.formInputType,autocomplete:"off",autofocus:"true",class:"input input--lg input--centered",name:"otp",pattern:a.inputValidationPattern,title:a.inputValidationMessage,"onUpdate:modelValue":r[0]||(r[0]=u=>s.otp=u),"data-testid":"otpInput",required:""},null,8,LN),[[Uy,s.otp,void 0,{trim:!0}]])]),m("div",xN,[$(o,{disabled:!s.otp,loading:s.processing,"data-testid":"authorizeOtpButton"},{default:ne(()=>[Be(T(t.$t("authorize")),1)]),_:1},8,["disabled","loading"])])]),a.showOtpCountdown?(f(),v("div",ON,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[e.resending?(f(),v("div",FN,[$(l,{message:t.$t("otpStatus.resending")},null,8,["message"])])):e.countdownMessage?(f(),v("div",DN,T(e.countdownMessage)+" "+T(s.timeLeft),1)):s.waitingForToken?(f(),v("div",{key:2,"data-testid":"waitingForTokenMessage",innerHTML:a.waitingForTokenMessage},null,8,VN)):a.canResendToken?(f(),v("div",BN,[m("a",{onClick:r[1]||(r[1]=(...u)=>a.resend&&a.resend(...u))},[Be(T(t.$t("otpStatus.canResendToken.mainText"))+" ",1),m("b",UN,T(t.$t("otpStatus.canResendToken.subText")),1)])])):(f(),v("div",HN,T(t.$t("otpStatus.noOtp")),1))]),_:1})])):D("",!0)])]),m("div",qN,[s.processing?D("",!0):(f(),se(d,{key:0,"data-testid":"cancel-payment-button",text:a.cancelText,onClick:a.cancel},null,8,["text","onClick"])),!s.processing&&!this.waitingForToken?(f(),v("div",WN,[m("button",{name:"requeryPayment",type:"button",class:"requery-button",onClick:r[2]||(r[2]=(...u)=>a.requery&&a.requery(...u)),"data-testid":"requeryLink"},T(t.$t("otpStatus.requery")),1)])):D("",!0)])],32)])}typeof xg=="function"&&xg(Z5);const xd=ee(Z5,[["render",GN],["__scopeId","data-v-9555b4b1"]]);function Og(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{authMessage:{test:e=>{const{normalize:n}=e;return n(["Use the test bank account provided below to complete this payment"])},live:e=>{const{normalize:n}=e;return n(["Enter your account number"])}},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Enter account number"])},invalid:e=>{const{normalize:n}=e;return n(["Invalid account number"])}},verifyAccount:e=>{const{normalize:n}=e;return n(["Verify Account"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Click here to choose"])},bankAccountNumber:e=>{const{normalize:n}=e;return n(["Bank Account Number (10 digits)"])}},fr:{authMessage:{test:e=>{const{normalize:n}=e;return n(["Utilisez le compte bancaire test fourni ci-dessous pour effectuer ce paiement"])},live:e=>{const{normalize:n}=e;return n(["Entrez votre numéro de compte"])}},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Entrez le numéro de compte"])},invalid:e=>{const{normalize:n}=e;return n(["Numéro de compte non valide"])}},verifyAccount:e=>{const{normalize:n}=e;return n(["Vérifier le compte"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Cliquez ici pour choisir"])},bankAccountNumber:e=>{const{normalize:n}=e;return n(["Numéro de compte bancaire (10 chiffres)"])}}}})}const K5={name:"NubanAccountForm",directives:{maska:ic},components:{Instructions:Et,CancelLink:rn,PaymentButton:dt},props:{bank:Object,account:String},data(){return{canShowError:!1,selectedBank:this.bank,accountNumber:this.account,processing:!1}},emits:["cancel","changeBank","submit"],computed:{...we(ae,["transaction","paymentInstrument","reusePaymentInfo"]),...we(ls,["banks"]),authMessage(){return this.transaction.isTest?this.$t("authMessage.test"):this.$t("authMessage.live")},isValid(){return $2.isValidNubanAccount(this.accountNumber)},showError(){return!this.isValid&&this.canShowError},errorMessage(){return this.accountNumber?this.$t("errorMessage.invalid"):this.$t("errorMessage.empty")}},created(){if(this.transaction.isTest)this.selectedBank=this.banks.find(t=>t.slug==="zenith-bank"),this.accountNumber="0000000000";else if(this.reusePaymentInfo&&this.paymentInstrument.bank){const{bank:t,accountNumber:r}=this.paymentInstrument.bank;this.selectedBank=t,this.accountNumber=r}this.$nextTick(()=>{this.$refs.accountNumber&&this.$refs.accountNumber.focus()})},methods:{...It(ae,["savePaymentInstrument"]),cancel(){this.$emit("cancel")},onChange(t){this.$emit("changeBank",t)},onBlur(){setTimeout(()=>{this.canShowError=!0},300)},async onSubmit(){this.isValid?(this.processing=!0,this.transaction.logInput("account number"),this.savePaymentInstrument({bank:{bank:this.selectedBank,accountNumber:this.accountNumber}}),await this.transaction.setBankAccount({accountType:"nuban",bankId:this.selectedBank.id,accountNumber:this.accountNumber}),this.$emit("submit")):(Pd(["account number"]),this.transaction.logValidationErrors(["account number"]))}}},jN={id:"nuban-account-form","data-testid":"nuban-account-form"},ZN={class:"row"},KN={class:"col-10-sm col-centered"},YN={class:"form-group"},QN={class:"select-wrap"},JN={value:null,disabled:""},XN=["value"],eM={class:"form-group"},tM=["placeholder"],nM={key:0,class:"form-group-error","data-testid":"accountNumberError"},rM={class:"form-submit"};function sM(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("cancel-link"),d=cc("maska");return f(),v("div",jN,[m("form",{onSubmit:r[4]||(r[4]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"])),class:"form"},[$(i,{message:a.authMessage},null,8,["message"]),m("div",ZN,[m("div",KN,[m("div",YN,[m("div",QN,[ct(m("select",{ref:"bankName",name:"bankName",class:"select","onUpdate:modelValue":r[0]||(r[0]=u=>s.selectedBank=u),onChange:r[1]||(r[1]=u=>a.onChange(s.selectedBank)),"data-testid":"bank-select"},[m("option",JN,T(t.$t("clickHereToChoose")),1),(f(!0),v(gt,null,Ot(t.banks,u=>(f(),v("option",{key:u.id,value:u},T(u.name),9,XN))),128))],544),[[ks,s.selectedBank]]),r[5]||(r[5]=m("div",{class:"select-icon"},null,-1))])]),m("div",eM,[ct(m("input",{type:"tel",class:pt(["input",{"input--error":a.showError}]),ref:"accountNumber",name:"accountNumber","onUpdate:modelValue":r[2]||(r[2]=u=>s.accountNumber=u),onBlur:r[3]||(r[3]=(...u)=>a.onBlur&&a.onBlur(...u)),placeholder:t.$t("bankAccountNumber"),"data-maska":"##########","data-testid":"nuban-input",required:""},null,42,tM),[[Wt,s.accountNumber],[d]]),$(rt,{name:"fade"},{default:ne(()=>[a.showError?(f(),v("div",nM,T(a.errorMessage),1)):D("",!0)]),_:1})]),m("div",rM,[$(o,{name:"verifyAccount","data-testid":"bankFormPaymentButton",loading:s.processing,disabled:!s.accountNumber},{default:ne(()=>[Be(T(t.$t("verifyAccount")),1)]),_:1},8,["loading","disabled"])])])])],32),$(l,{onClick:a.cancel},null,8,["onClick"])])}typeof Og=="function"&&Og(K5);const aM=ee(K5,[["render",sM]]);function Fg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{testMessage:{birthday:e=>{const{normalize:n}=e;return n(["Enter any date of birth"])},registrationToken:e=>{const{normalize:n}=e;return n(["Use the code 123456 to complete account registration"])},paymentToken:e=>{const{normalize:n}=e;return n(["Use the code 123456 to complete this test payment"])}},sixDigits:e=>{const{normalize:n}=e;return n(["6 digits"])},securePassMessage:e=>{const{normalize:n}=e;return n(["Enter the generated OTP from your Secure Pass mobile app or Hardware Token."])}},fr:{testMessage:{birthday:e=>{const{normalize:n}=e;return n(["Saisir une date de naissance quelconqu."])},registrationToken:e=>{const{normalize:n}=e;return n(["Utilisez le code 123456 pour effectuer l'enregistrement du compt."])},paymentToken:e=>{const{normalize:n}=e;return n(["Utilisez le code 123456 pour effectuer le paiement tes."])}},sixDigits:e=>{const{normalize:n}=e;return n(["6 chiffre."])},securePassMessage:e=>{const{normalize:n}=e;return n(["Saisissez le Mot de passe généré à partir de votre application mobile Secure Pass ou de votre jeton matériel."])}}}})}const Y5={name:"EmandateGateway",components:{NubanAccountForm:aM,BirthdayForm:SN,OtpForm:xd},props:{bank:Object},data(){const t={ACCOUNT_NUMBER:"account_number",PAYMENT_TOKEN:"payment_token",BIRTHDAY:"birthday",REGISTERATION_TOKEN:"registration_token"};return{views:t,currentView:t.ACCOUNT_NUMBER,processing:!1,authRequired:null,authRequestedAt:null}},emits:["callback","attempt","cancel","changeBank"],computed:{...we(ae,["transaction","transactionAmount","lastResponse"]),showSecurePassMessage(){return this.bank&&this.bank.slug==="united-bank-for-africa"&&this.currentView===this.views.PAYMENT_TOKEN&&this.transactionAmount>2e6},bankIsSterling(){var t;return((t=this.bank)==null?void 0:t.slug)==="sterling-bank"},showCountdown(){return!(this.showSecurePassMessage||this.bankIsSterling)},otpValidationPattern(){return this.bankIsSterling?"[0-9]{6}":""},otpValidationMessage(){return this.bankIsSterling?this.$t("sixDigits"):""},otpMessage(){const t={birthday:this.$t("testMessage.birthday"),registration_token:this.$t("testMessage.registrationToken"),payment_token:this.$t("testMessage.paymentToken")};return this.transaction.isTest?t[this.currentView]:this.showSecurePassMessage?this.$t("securePassMessage"):this.lastResponse&&this.lastResponse.message}},methods:{...It(ae,["setIsCharging","saveLastResponse"]),cancel(){this.$emit("cancel")},reset(){this.changeView(this.views.ACCOUNT_NUMBER)},changeView(t){this.currentView=t},changeBank(t){this.$emit("changeBank",t)},chargeAccount(){this.$emit("attempt","emandate"),this.send("charge")},registerAccount(t){this.trackAuthentication(),this.send("register",t)},authenticateAccount(t){this.trackAuthentication(),this.send("authenticate",t)},trackAuthentication(){const t=Ea(new Date,this.authRequestedAt);hc({auth:this.authRequired,timeSpent:t})},async send(t,r){try{this.setIsCharging(!0);let e;t==="charge"&&(e=await this.transaction.chargeBankAccount()),t==="register"&&(e=await this.transaction.registerBankAccount(r)),t==="authenticate"&&(e=await this.transaction.authenticateBankAccount(r)),this.onChargeResponse(e)}catch(e){this.setIsCharging(!1),this.onChargeResponse({status:"failed",data:e})}},onChargeResponse(t){this.setIsCharging(!1),t.status==="auth"?(this.saveLastResponse(t),xm(t.data.auth),this.authRequired=t.data.auth,this.authRequestedAt=new Date,this.changeView(t.data.auth)):this.$emit("callback",t)}}},iM={id:"emandate"};function oM(t,r,e,n,s,a){const i=P("nuban-account-form"),o=P("birthday-form"),l=P("otp-form");return f(),v("div",iM,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.ACCOUNT_NUMBER?(f(),se(i,{key:0,bank:e.bank,onCancel:a.cancel,onChangeBank:a.changeBank,onSubmit:a.chargeAccount},null,8,["bank","onCancel","onChangeBank","onSubmit"])):s.currentView===s.views.BIRTHDAY?(f(),se(o,{key:1,onCancel:a.reset,message:a.otpMessage,onSubmit:a.registerAccount},null,8,["onCancel","message","onSubmit"])):s.currentView===s.views.REGISTERATION_TOKEN?(f(),se(l,{key:"registration",onCancel:a.reset,message:a.otpMessage,onSubmit:a.authenticateAccount},null,8,["onCancel","message","onSubmit"])):s.currentView===s.views.PAYMENT_TOKEN?(f(),se(l,{key:"payment",onCancel:a.reset,message:a.otpMessage,onSubmit:a.authenticateAccount,showCountdown:a.showCountdown,validationPattern:a.otpValidationPattern,validationMessage:a.otpValidationMessage},null,8,["onCancel","message","onSubmit","showCountdown","validationPattern","validationMessage"])):D("",!0)]),_:1})])}typeof Fg=="function"&&Fg(Y5);const lM=ee(Y5,[["render",oM]]),cM={name:"AnimatedWaitingScreen",props:{message:String,sentText:String,receivedText:String,checkSentBox:Boolean,checkReceivedBox:Boolean},created(){Fn()||this.registerListeners()},beforeUnmount(){this.removeListeners()},mounted(){this.drawLines()},methods:{drawLines(t={}){const n=this.$refs.waitLineSvg.clientWidth-20,s=this.$refs.waitLineSvg.clientHeight/2,a=t.xOffset||0,i=t.yOffset||0,o="".concat(20+a," ").concat(s+i),d=a||i?o:"".concat(n," ").concat(s),u=["M 20 ".concat(s),"C ".concat(o),"".concat(d),"".concat(n," ").concat(s)],g=[this.$refs.waitLinePathOne,this.$refs.waitLinePathTwo];g.forEach(y=>{t.animate?Pb.to(y,.7,{attr:{d:u},ease:Nb.easeOut.config(1,.3)}):y.setAttribute("d",u.join(" "))}),this.lineBounds=g[0].getBoundingClientRect()},resetLine(){this.bendingPath=!1,this.drawLines({animate:!0}),this.$refs.waitLineSvg.style.cursor="default"},onMouseMove(t){const r=typeof t.pageX<"u"?t.pageX:t.touches[0].pageX,e=typeof t.pageY<"u"?t.pageY:t.touches[0].pageY,n=5,s=r>this.lineBounds.left&&rthis.lineBounds.top-n&&ei.right,l=ei.bottom,d=o||l;if(s&&a&&!this.bendingPath?(this.bendingPath=!0,this.$refs.waitLineSvg.style.cursor="grab"):d&&this.bendingPath&&this.resetLine(),this.bendingPath){const u=r-this.lineBounds.x,g=e-this.lineBounds.top;this.drawLines({xOffset:u,yOffset:g})}},registerListeners(){["mousemove","touchmove"].forEach(t=>{document.addEventListener(t,this.onMouseMove,!0)}),document.addEventListener("touchend",()=>{this.bendingPath&&this.resetLine()},!0),window.addEventListener("onresize",this.drawLines)},removeListeners(){document.removeEventListener("touchmove",this.onMouseMove,!0),document.removeEventListener("mousemove",this.onMouseMove,!0),window.removeEventListener("onresize",this.drawLines),document.removeEventListener("touchend",this.resetLine,!0)}}},uM={class:"animated-waiting"},dM={class:"wait__step wait__step--sent"},hM={key:0,class:"text"},mM={class:"wait__line"},pM={id:"waitLineSvg",xmlns:"http://www.w3.org/2000/svg",ref:"waitLineSvg"},fM={class:"wait__path",ref:"waitLinePathOne"},_M={class:"wait__path wait__path--moving",ref:"waitLinePathTwo"},gM={class:"wait__step wait__step--received"},vM={key:0,class:"text"};function yM(t,r,e,n,s,a){return f(),v("div",uM,[m("div",{id:"wait",class:pt(["wait",{"wait--sent":e.checkSentBox,"wait--received":e.checkReceivedBox}]),"data-testid":"credit-request-animation"},[m("div",dM,[r[0]||(r[0]=m("span",{class:"icon"},[m("svg",{width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M9 .896l-5.5 5.5-2.5-2.5",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e.sentText?(f(),v("span",hM,T(e.sentText),1)):D("",!0)]),m("div",mM,[(f(),v("svg",pM,[m("path",fM,null,512),m("path",_M,null,512)],512))]),m("div",gM,[r[1]||(r[1]=m("span",{class:"icon"},[m("svg",{width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M9 .896l-5.5 5.5-2.5-2.5",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e.receivedText?(f(),v("span",vM,T(e.receivedText),1)):D("",!0)])],2)])}const Od=ee(cM,[["render",yM],["__scopeId","data-v-a9ccdce7"]]),bM="/assets/pocket-B5-V9l1D.svg";function CM(t){return t?t.replace(/^\/(.*)\/$/g,"$1"):""}function Qu(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{waitingMessage:e=>{const{normalize:n}=e;return n(["Please wait while we confirm your transaction with your bank. This can take up to a minute"])},accountHasBeenDebited:e=>{const{normalize:n}=e;return n(["My account has been debited"])},walletInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Please enter your ",s(a("walletIdentifierName"))])},pocketId:e=>{const{normalize:n}=e;return n(["Pocket ID"])},walletIcon:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("wallet"))," Icon"])},pocketIcon:e=>{const{normalize:n}=e;return n(["Pocket Icon"])},kudaIcon:e=>{const{normalize:n}=e;return n(["Kuda Icon"])},authorize:e=>{const{normalize:n}=e;return n(["Authorize"])},pocketApp:e=>{const{normalize:n}=e;return n(["PocketApp"])},walletWaitingMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Please open ",s(a("walletName"))," on your phone to complete this payment"])}},fr:{waitingMessage:e=>{const{normalize:n}=e;return n(["Veuillez patienter pendant que nous confirmons votre transaction avec votre banque. Cela peut prendre une minute"])},accountHasBeenDebited:e=>{const{normalize:n}=e;return n(["Mon compte a été débité"])}},ar:{waitingMessage:e=>{const{normalize:n}=e;return n(["يرجى الانتظار بينما نؤكد معاملتك مع البنك الخاص بك. يستغرق الأمر ما يصل إلى دقيقة"])},accountHasBeenDebited:e=>{const{normalize:n}=e;return n(["لقد تم الخصم من حسابي البنكي"])}}}})}const wM={id:"digitalbankmandate"},kM={key:0,class:"wallet"},SM={class:"icon-container"},EM=["src","alt"],TM={key:1},$M={class:"waiting-screen-control"},Dg="pocket",Q5={__name:"DigitalBankMandate",props:{bank:{type:Object,required:!0},showCancelLink:{type:Boolean,default:!1}},emits:["attempt","callback","requery","reset"],setup(t,{emit:r}){var V;const e={ENTER_WALLET_ID:"enter_wallet_id",WAITING_SCREEN:"waiting_screen"},{t:n}=vn("digitalbankmandate"),s=t,a=r,i=ge(e.ENTER_WALLET_ID),o=ge(((V=s.bank)==null?void 0:V.slug)===Dg?"@":""),l=ge(!1),d=ge(!1),u=ae(),g=te(()=>u.transaction),y=te(()=>{var F;return((F=s.bank)==null?void 0:F.slug)===Dg}),w=te(()=>{var F;return n("walletWaitingMessage",{walletName:y.value?n("pocketApp"):(F=s.bank)==null?void 0:F.name})}),k=te(()=>{var F,S;if(y.value)return o.value.replace(/@/gi,"").length>=3;if((S=(F=s.bank)==null?void 0:F.account_identifier)!=null&&S.validation){const z=CM(s.bank.account_identifier.validation);return new RegExp(z).test(o.value)}return!1}),E=te(()=>{var F;return y.value?bM:(F=s.bank)==null?void 0:F.logo_url}),R=te(()=>{var S,z;const F=y.value?n("pocketId"):(z=(S=s.bank)==null?void 0:S.account_identifier)==null?void 0:z.name;return n("walletInstruction",{walletIdentifierName:F})});function O(F){i.value=F}async function M(){var F;a("attempt","digitalbankmandate");try{l.value=!0;const{status:S,message:z,data:U}=await g.value.chargeDigitalBankMandate({bankId:(F=s.bank)==null?void 0:F.id,walletId:y.value?o.value.replace(/@/gi,""):o.value});if(S==="failed"){a("callback",{status:S,message:z});return}const{pusher_channel:j}=U;O(e.WAITING_SCREEN),A(j)}catch(S){l.value=!1,a("callback",S)}finally{l.value=!1}}function x(){Um(),a("requery")}function N(F,S){F.status==="success"?(d.value=!0,setTimeout(()=>a("callback",F),1e3)):a("callback",F),S()}function A(F){g.value.listenForDigitalBankMandateCharge(N,F)}return(F,S)=>(f(),v("div",wM,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>{var z;return[i.value===e.ENTER_WALLET_ID?(f(),v("div",kM,[m("div",SM,[m("img",{src:E.value,alt:F.$t("walletIcon",{wallet:(z=t.bank)==null?void 0:z.name}),class:"icon-container__wallet"},null,8,EM)]),$(Et,{message:R.value},null,8,["message"]),m("form",{onSubmit:jt(M,["prevent"])},[ct(m("input",{"data-testid":"digitalbankmandate-wallet-input",autofocus:"true",type:"text","onUpdate:modelValue":S[0]||(S[0]=U=>o.value=U),class:"input"},null,512),[[Wt,o.value,void 0,{trim:!0}]]),$(dt,{disabled:!k.value,loading:l.value,"data-testid":"digitalbankmandate-button"},{default:ne(()=>[Be(T(F.$t("authorize")),1)]),_:1},8,["disabled","loading"])],32),t.showCancelLink?(f(),se(rn,{key:0,onClick:S[1]||(S[1]=U=>F.$emit("reset"))})):D("",!0)])):i.value===e.WAITING_SCREEN?(f(),v("div",TM,[$(Et,{message:w.value},null,8,["message"]),$(Od,{"data-testid":"digitalbankmandate-waiting-screen",checkSentBox:"",checkReceivedBox:d.value},null,8,["checkReceivedBox"]),m("div",$M,[m("a",{"data-testid":"digitalbankmandate-requery",onClick:x},T(F.$t("accountHasBeenDebited")),1)])])):D("",!0)]}),_:1})]))}};typeof Qu=="function"&&Qu(Q5);const IM=ee(Q5,[["__scopeId","data-v-5ad57dfe"]]),In={statuses:{CREDIT_REQUEST_RECEIVED:"transfer-credit-request-received",CREDIT_REQUEST_PENDING:"transfer-credit-request-pending",CREDIT_REQUEST_REJECTED:"transfer-credit-request-rejected",INCORRECT_AMOUNT_SENT:"incorrect-amount-sent",SUCCESS:"success"},types:{INCORRECT_AMOUNT:"INCORRECT_AMOUNT"}},Jm=t=>{const e=Math.floor(t/60),n=t%60,s=n.toString().length===1?"0".concat(n):n;return"".concat(e,":").concat(s)},Qt=Cd("channels",{state:()=>({bankTransfer:{savedManagedAccount:null,waitingTime:null,lastPusherResponse:null},ussd:{savedUssdData:null,savedManagedAccount:null,canReuse:!0},card:{usedInternationalBIN:!1,isSavingNewCard:!1,isLocalCardUnsupported:!1,resolvedBinBank:null,internationalCard:{currency:"",countryCode:""},preChargeCheckHints:null},mpesaOfflineData:null,vault:{token:null,paymentInstruments:null},bank:{vaultManagedAccount:null,isRegisteredVaultUser:!1,accountValidationAttempts:0}}),getters:{bankTransferChannelState:t=>t.bankTransfer,ussdChannelState:t=>t.ussd,cardChannelState:t=>t.card,vaultChannelState:t=>t.vault,bankChannelState:t=>t.bank},actions:{setBankTransferChannelState(t){this.bankTransfer={...this.bankTransfer,...t}},setUssdChannelState(t){this.ussd={...this.ussd,...t}},setMpesaOfflineData(t){this.mpesaOfflineData=t},setCardChannelState(t){this.card={...this.card,...t}},setVaultChannelState(t){this.vault={...this.vault,...t}},setBankChannelState(t){this.bank={...this.bank,...t}}}});function Vg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{defaultMessage:e=>{const{normalize:n}=e;return n(["We're waiting to confirm your transfer. This can take a few minutes"])},messageAfterRequery:e=>{const{normalize:n}=e;return n(["It's taking longer than expected to confirm your transfer. You don’t have to wait here till we confirm it."])},messageOnCreditRequestReceived:e=>{const{normalize:n}=e;return n(["Your transfer is on the way. It can take up to a minute to confirm"])},sent:e=>{const{normalize:n}=e;return n(["Sent"])},received:e=>{const{normalize:n}=e;return n(["Received"])},needHelp:e=>{const{normalize:n}=e;return n(["Need help?"])},getHelp:e=>{const{normalize:n}=e;return n(["Get help"])},showAccountNumber:e=>{const{normalize:n}=e;return n(["Show account number"])},pleaseWait:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Please wait for ",s(a("timeLeft"))," minutes"])}},fr:{defaultMessage:e=>{const{normalize:n}=e;return n(["Nous attendons de confirmer votre transfert. Cela peut prendre quelques minutes"])},messageAfterRequery:e=>{const{normalize:n}=e;return n(["La confirmation de votre transfert prend plus de temps que prévu. Vous n'avez pas à attendre ici jusqu'à ce que nous le confirmions"])},messageOnCreditRequestReceived:e=>{const{normalize:n}=e;return n(["Votre virement est en cours. La confirmation peut prendre une minute"])},sent:e=>{const{normalize:n}=e;return n(["Envoyé"])},received:e=>{const{normalize:n}=e;return n(["Reçu"])},needHelp:e=>{const{normalize:n}=e;return n(["Besoin d'aide?"])},getHelp:e=>{const{normalize:n}=e;return n(["Obtenir de l'aide"])},showAccountNumber:e=>{const{normalize:n}=e;return n(["Afficher le numéro de compte"])},pleaseWait:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Veuillez patienter pendant ",s(a("timeLeft"))," minutes"])}}}})}const AM={class:"controls"},zM={class:"controls__need-help"},RM={key:0},PM={key:1},J5={__name:"CreditRequest",props:{isDelayedConfirmation:Boolean,creditRequestStatus:String,canFulfilLateNotification:{type:Boolean,default:!1}},emits:["backToAccount","showHelp","startRequery"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=Qt(),a=ge(null),i=ge(null),o=ge(!1),l=ge(null),d=r,u=()=>{V8(),d("backToAccount")},g=()=>{B8(),d("showHelp")},y=()=>{i.value=Ea(l.value,new Date),ql(l.value,new Date)&&(o.value=!0,window.clearInterval(a.value))},w=()=>{a.value&&window.clearInterval(a.value),y(),a.value=setInterval(()=>y(),1e3)};um(()=>{n.canFulfilLateNotification?(s.bankTransferChannelState.waitingTime||s.setBankTransferChannelState({waitingTime:Mb(new Date,10)}),l.value=s.bankTransferChannelState.waitingTime,d("startRequery"),w()):d("startRequery")}),An(()=>{n.creditRequestStatus===In.statuses.CREDIT_REQUEST_RECEIVED&&Oh()}),Sn(()=>n.creditRequestStatus,O=>{O===In.statuses.CREDIT_REQUEST_RECEIVED&&Oh()});const k=te(()=>n.isDelayedConfirmation?e("messageAfterRequery"):[In.statuses.CREDIT_REQUEST_RECEIVED,In.statuses.SUCCESS].includes(n.creditRequestStatus)?e("messageOnCreditRequestReceived"):e("defaultMessage")),E=te(()=>[In.statuses.CREDIT_REQUEST_RECEIVED,In.statuses.CREDIT_REQUEST_PENDING,In.statuses.SUCCESS].includes(n.creditRequestStatus)),R=te(()=>{const[O,M]=Jm(i.value).split(":");return"".concat(O,":").concat(M)});return(O,M)=>(f(),v("div",null,[$(Et,{message:k.value},null,8,["message"]),$(Od,{"data-testid":"transfer-credit-request-screen",sentText:fe(e)("sent"),receivedText:fe(e)("received"),checkSentBox:E.value,checkReceivedBox:t.creditRequestStatus==="success"},null,8,["sentText","receivedText","checkSentBox","checkReceivedBox"]),m("div",AM,[m("div",zM,[t.canFulfilLateNotification?(f(),v("div",RM,[o.value?(f(),se(dt,{key:0,onClick:g,"data-testid":"show-help-button",class:"button--light"},{default:ne(()=>[Be(T(fe(e)("getHelp")),1)]),_:1})):(f(),se(dt,{key:1,variant:"light",class:"button--disabled","data-testid":"countdown-button"},{default:ne(()=>[Be(T(fe(e)("pleaseWait",{timeLeft:R.value})),1)]),_:1}))])):(f(),v("div",PM,[$(dt,{onClick:g,"data-testid":"show-help-button",class:"button--light"},{default:ne(()=>[Be(T(fe(e)("getHelp")),1)]),_:1})]))]),m("a",{class:"controls__show-account","data-testid":"back-to-account",onClick:u},T(fe(e)("showAccountNumber")),1)])]))}};typeof Vg=="function"&&Vg(J5);const X5=ee(J5,[["__scopeId","data-v-e9f2b122"]]);function Bg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{helpMessage:e=>{const{normalize:n}=e;return n(["Sometimes it takes a while for the bank to confirm your transfer. If this account expires before your bank confirms your transfer, we will reverse it."])},continueWaiting:e=>{const{normalize:n}=e;return n(["Continue waiting"])},showAccountNumber:e=>{const{normalize:n}=e;return n(["Show account number"])},keepWaiting:e=>{const{normalize:n}=e;return n(["Keep waiting"])},next:e=>{const{normalize:n}=e;return n(["Next"])},closeCheckout:e=>{const{normalize:n}=e;return n(["Close checkout"])},slides:{slideOne_process:e=>{const{normalize:n}=e;return n(["We’ll complete this transaction automatically once we confirm your transfer."])},slideTwo_process:e=>{const{normalize:n}=e;return n(["If you have any issues with this transfer, please contact us via support","@","paystack.com"])},slideOne_refund:e=>{const{normalize:n}=e;return n(["We’ll keep checking for your transfer until the bank account number expires"])},slideTwo_refund:e=>{const{normalize:n}=e;return n(["If for any reason your transfer is not confirmed, your bank account will receive a refund"])}}},fr:{helpMessage:e=>{const{normalize:n}=e;return n(["Il arrive que la banque mette du temps à confirmer votre virement. Si ce compte expire avant que votre banque ne confirme votre virement, nous l'annulerons."])},continueWaiting:e=>{const{normalize:n}=e;return n(["Patientez"])},showAccountNumber:e=>{const{normalize:n}=e;return n(["Afficher le numéro de compte"])},keepWaiting:e=>{const{normalize:n}=e;return n(["Patientez"])},next:e=>{const{normalize:n}=e;return n(["Suivant"])},closeCheckout:e=>{const{normalize:n}=e;return n(["Fermer la commande"])},slides:{slideOne_process:e=>{const{normalize:n}=e;return n(["Nous effectuerons cette transaction automatiquement dès que nous aurons confirmé votre virement."])},slideTwo_process:e=>{const{normalize:n}=e;return n(["Si vous éprouvez des difficultés à effectuer ce virement, veuillez nous contacter via support","@","paystack.com"])},slideOne_refund:e=>{const{normalize:n}=e;return n(["Nous surveillerons votre virement jusqu'à ce que le numéro de compte bancaire expire"])},slideTwo_refund:e=>{const{normalize:n}=e;return n(["Si, pour une raison quelconque, votre virement n'est pas confirmé, il vous sera restitué sur votre compte bancaire"])}}}}})}const NM={class:"slideshow","data-testid":"pwt-help-screen"},MM={class:"slideshow__container"},LM={style:{"text-align":"center"}},xM={class:"slideshow__control"},OM={key:1},FM={key:1,class:"keep-waiting"},e9={__name:"HelpScreen",props:{canFulfilLateNotification:{type:Boolean,default:!1}},emits:["continueWaiting"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=r,a=ge(0),i=ae(),o=Nr(),l=te(()=>i.transaction),d=te(()=>o.mode),u=te(()=>{const k=n.canFulfilLateNotification?"process":"refund",E=e("slides.slideOne_".concat(k)),R=e("slides.slideTwo_".concat(k));return[E,R]}),g=()=>{U8(),s("continueWaiting")},y=()=>{a.value+=1},w=()=>{L$(l.value,d.value)};return(k,E)=>(f(),v("div",NM,[m("div",MM,[(f(!0),v(gt,null,Ot(u.value,(R,O)=>ct((f(),v("div",{class:"message",key:O},T(R),1)),[[hr,a.value===O]])),128))]),m("div",LM,[(f(!0),v(gt,null,Ot(u.value,(R,O)=>(f(),v("span",{class:pt(["slideshow__dot",{active:a.value===O}]),key:O},null,2))),128))]),m("div",xM,[a.value[Be(T(fe(e)("closeCheckout")),1)]),_:1})):D("",!0),n.canFulfilLateNotification?(f(),v("div",FM,[m("a",{"data-testid":"keep-waiting",onClick:g},T(fe(e)("keepWaiting")),1)])):(f(),v("button",{key:2,class:"continue-waiting-button",onClick:g,"data-testid":"continue-waiting-button"},T(fe(e)("continueWaiting")),1))]))])]))}};typeof Bg=="function"&&Bg(e9);const t9=ee(e9,[["__scopeId","data-v-e91966b5"]]),DM="/assets/vault-bank-logos-BglZ7s0g.png",VM={name:"VaultBankLogo",props:{code:String,height:{type:Number,default:20},width:{type:Number,default:20}},data(){return{totalNumberOfBanksInImageSprite:23,banksRecord:{"00103":{indexInImageSprite:1},"011":{indexInImageSprite:2},"023":{indexInImageSprite:3},"032":{indexInImageSprite:5},"033":{indexInImageSprite:6},"035":{indexInImageSprite:7},"044":{indexInImageSprite:8},"050":{indexInImageSprite:9},"057":{indexInImageSprite:10},"058":{indexInImageSprite:11},"068":{indexInImageSprite:12},"070":{indexInImageSprite:13},"076":{indexInImageSprite:14},"082":{indexInImageSprite:15},101:{indexInImageSprite:16},102:{indexInImageSprite:17},214:{indexInImageSprite:18},215:{indexInImageSprite:19},221:{indexInImageSprite:20},232:{indexInImageSprite:21},301:{indexInImageSprite:22}}}},computed:{containerStyle(){return{height:"".concat(this.height,"px"),width:"".concat(this.width,"px"),transition:"opacity 150ms"}},defaultBankLogoStyle(){return{height:"100%",width:"100%",backgroundImage:"url(".concat(DM,")"),backgroundRepeat:"no-repeat",backgroundSize:"".concat(this.width,"px ").concat(this.height*this.totalNumberOfBanksInImageSprite,"px")}},bankLogoStyle(){const t=this.banksRecord[this.code],r=t?this.height*t.indexInImageSprite:0;return{backgroundPosition:"0px -".concat(r,"px")}}}};function BM(t,r,e,n,s,a){return f(),v("div",{style:ko(a.containerStyle)},[m("div",{style:ko({...a.defaultBankLogoStyle,...a.bankLogoStyle})},null,4)],4)}const n9=ee(VM,[["render",BM]]),Fd=t=>{var r;return[!0,"true"].includes((r=t.custom_filters)==null?void 0:r.recurring)},r9=t=>(t.supportedBanks||[]).some(({gateway:r})=>r==="banktransfermandate"),UM="/assets/vault-CLbKILQj.svg",HM="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11166_10168)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.50001%200.500028C8.50001%200.288378%208.36675%200.0996567%208.16729%200.0288434C7.96784%20-0.0419699%207.74541%200.0204672%207.61195%200.184731L1.11195%208.18473C0.990314%208.33444%200.965638%208.54075%201.04854%208.71492C1.13143%208.88908%201.30712%209.00003%201.50001%209.00003H5.50001V13.5C5.50001%2013.7116%205.63326%2013.9004%205.83272%2013.9712C6.03217%2014.042%206.2546%2013.9796%206.38806%2013.8153L12.8881%205.81533C13.0097%205.66563%2013.0344%205.45931%2012.9515%205.28514C12.8686%205.11098%2012.6929%205.00003%2012.5%205.00003H8.50001V0.500028Z'%20fill='%233BB75E'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_11166_10168'%3e%3crect%20width='14'%20height='14'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",qM="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11209_8168)'%3e%3cpath%20d='M6.99996%200.568848C7.11616%200.568848%207.23236%200.594108%207.33845%200.642102L12.0949%202.66039C12.6507%202.89531%2013.0649%203.44346%2013.0624%204.10528C13.0498%206.61109%2012.0192%2011.1958%207.66683%2013.2798C7.24499%2013.4819%206.75494%2013.4819%206.33309%2013.2798C1.98076%2011.1958%200.950142%206.61109%200.937512%204.10528C0.934984%203.44346%201.34925%202.89531%201.90498%202.66039L6.664%200.642102C6.76757%200.594108%206.88376%200.568848%206.99996%200.568848Z'%20fill='%233BB75E'%20/%3e%3cg%20clip-path='url(%23clip1_11209_8168)'%3e%3cpath%20d='M9%205.5L6.25%208.25L5%207'%20stroke='%23F3FBF4'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_11209_8168'%3e%3crect%20width='14'%20height='14'%20fill='white'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_11209_8168'%3e%3crect%20width='6'%20height='6'%20fill='white'%20transform='translate(4%204)'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",WM="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.04492%206.02189L3.35001%205.86235C3.33665%204.9477%203.31966%203.56507%203.33422%203.32282C3.4447%201.61286%204.8894%200.159329%206.62547%200.0163399C6.73473%200.00806775%206.844%200.00334083%206.94962%200.000977376C7.86516%20-0.0201296%208.75416%200.301309%209.43353%200.899092C10.1304%201.50059%2010.5869%202.38807%2010.6573%203.27082C10.6755%203.49771%2010.6694%205.03278%2010.6694%205.93799L12%206.13061L11.9551%2012.3382L6.96904%2013L2%2012.2271L2.04492%206.02189ZM7.02974%205.41448L9.12274%205.717C9.11424%204.61445%209.06204%203.00493%208.80709%202.58069C8.41981%201.93665%207.78002%201.55613%207.05524%201.54077H6.97875C6.24184%201.55022%205.59718%201.92129%205.20869%202.56178C4.93918%203.00848%204.88576%204.52346%204.88697%205.678L7.02974%205.41448Z'%20fill='%233BB75E'%20/%3e%3c/svg%3e";function Ug(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{title:e=>{const{normalize:n}=e;return n(["The most convenient way to use Checkout"])},savePaymentInstrumentMessage:e=>{const{normalize:n}=e;return n(["Seamlessly save your card and bank details for faster payments"])},recurringChargeAuthorizationMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['',s(a("merchantName"))," will be authorized to charge your preferred option for future payments"])},detailsSecureMessage:e=>{const{normalize:n}=e;return n(['Your details are secure, and you can unlink your bank account anytime'])},back:e=>{const{normalize:n}=e;return n(["Back"])}}}})}const s9={name:"AboutVault",emits:["back"],methods:{back(){this.$emit("back")}},computed:{...we(ae,["transaction"]),formattedMerchantName(){return Gh(this.transaction.merchant.name,{maxCharacterLength:34})},isRecurringChargeAuthorization(){return Fd(this.transaction)}}},GM={class:"about-vault"},jM={class:"about-vault__title"},ZM={class:"about-vault__description-item"},KM={class:"text"},YM={key:0,class:"about-vault__description-item"},QM=["innerHTML"],JM={class:"about-vault__description-item"},XM=["innerHTML"];function eL(t,r,e,n,s,a){return f(),v("div",GM,[r[4]||(r[4]=m("div",{class:"about-vault__logo"},[m("img",{src:UM})],-1)),m("div",null,[m("p",jM,T(t.$t("title")),1),m("div",ZM,[r[1]||(r[1]=m("div",{class:"icon-container"},[m("img",{class:"icon",src:HM})],-1)),m("p",KM,T(t.$t("savePaymentInstrumentMessage")),1)]),a.isRecurringChargeAuthorization?(f(),v("div",YM,[r[2]||(r[2]=m("div",{class:"icon-container"},[m("img",{class:"icon",src:qM})],-1)),m("p",{class:"text",innerHTML:t.$t("recurringChargeAuthorizationMessage",{merchantName:a.formattedMerchantName})},null,8,QM)])):D("",!0),m("div",JM,[r[3]||(r[3]=m("div",{class:"icon-container"},[m("img",{src:WM})],-1)),m("p",{innerHTML:t.$t("detailsSecureMessage"),class:"text"},null,8,XM)])]),m("button",{onClick:r[0]||(r[0]=(...i)=>a.back&&a.back(...i))},T(t.$t("back")),1)])}typeof Ug=="function"&&Ug(s9);const Xm=ee(s9,[["render",eL],["__scopeId","data-v-d01b3c42"]]),tL="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='8'%20fill='white'%20/%3e%3cpath%20d='M31.5656%200H8.43437C3.77438%200%200%203.77438%200%208.43437V31.5656C0%2036.2256%203.77438%2040%208.43437%2040H31.5656C36.2256%2040%2040%2036.2256%2040%2031.5656V8.43437C40%203.77438%2036.2256%200%2031.5656%200ZM31.2493%2026.2168L24.9587%2031.3196C24.4597%2031.7413%2023.6865%2031.4672%2023.567%2030.8206L22.1121%2025.4929C22.0137%2025.0641%2022.1824%2024.6213%2022.5268%2024.3472C23.4546%2023.6022%2024.045%2022.4635%2024.045%2021.1843C24.045%2018.0917%2020.5728%2015.8074%2017.3115%2018.0074C17.1147%2018.1409%2016.9461%2018.3096%2016.8125%2018.5134C15.2943%2020.7696%2015.9199%2023.1242%2017.4732%2024.3613C17.8176%2024.6354%2017.9722%2025.0712%2017.8809%2025.4999L16.5665%2030.8276C16.447%2031.4743%2015.6739%2031.7484%2015.1748%2031.3267L8.74363%2026.2239C8.51871%2025.9919%208.39923%2025.6756%208.42031%2025.3523L9.15832%2014.3455C9.18643%2013.9167%209.46055%2013.5372%209.85416%2013.3685L19.1179%208.65226C19.6802%208.42031%2020.3057%208.42031%2020.868%208.65226L30.1318%2013.3685C30.5324%2013.5372%2030.7995%2013.9167%2030.8346%2014.3455L31.5727%2025.3523C31.5937%2025.6756%2031.4743%2025.9919%2031.2493%2026.2239V26.2168Z'%20fill='%23343C43'%20/%3e%3c/svg%3e",nL="data:image/svg+xml,%3csvg%20width='17'%20height='18'%20viewBox='0%200%2017%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.54036%208.55867L5.713%208.4114C5.701%207.5671%205.68573%206.29084%205.69882%206.06722C5.79808%204.48879%207.09617%203.14707%208.65605%203.01508C8.75423%203.00745%208.8524%203.00308%208.9473%203.0009C9.76993%202.98142%2010.5687%203.27813%2011.1791%203.82993C11.8053%204.38516%2012.2154%205.20437%2012.2787%206.01922C12.2951%206.22866%2012.2896%207.64564%2012.2896%208.48122L13.4851%208.65902L13.4448%2014.3891L8.96476%2015L4.5%2014.2866L4.54036%208.55867ZM9.0193%207.99798L10.8999%208.27723C10.8922%207.25949%2010.8453%205.77378%2010.6163%205.38218C10.2683%204.78768%209.69343%204.43643%209.0422%204.42225H8.97348C8.31135%204.43098%207.73212%204.7735%207.38306%205.36472C7.14089%205.77706%207.0929%207.1755%207.09399%208.24124L9.0193%207.99798Z'%20fill='%2309A5DB'%20/%3e%3c/svg%3e",rL="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%206H9.5'%20stroke='%2309A5DB'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3cpath%20d='M6%202.5L9.5%206L6%209.5'%20stroke='%2309A5DB'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e";function Hg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instruction:e=>{const{normalize:n}=e;return n(["Enter your account number"])},accountNumberInputPlaceholder:e=>{const{normalize:n}=e;return n(["Account number"])},accountNameInputPlaceholder:e=>{const{normalize:n}=e;return n(["Account name"])},resolving:e=>{const{normalize:n}=e;return n(["Resolving..."])},resolveBankAccountErrorMessage:e=>{const{normalize:n}=e;return n(["Could not confirm account. Please enter your account name"])},savedToVaultDescription:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Your account details will be saved to Paystack Vault with this email ',s(a("email")),"."])},change:e=>{const{normalize:n}=e;return n(["Change"])},emailInputError:e=>{const{normalize:n}=e;return n(["Please enter a valid email address"])},whatIsPaystackVault:e=>{const{normalize:n}=e;return n(["What is Paystack Vault?"])},continue:e=>{const{normalize:n}=e;return n(["Continue"])}}}})}const a9={name:"AccountDetailsForm",components:{ChooseBankNew:O5,PaymentButton:dt,VaultBankLogo:n9,AboutVault:Xm},props:{bank:Object,accountDetails:Object,isLoading:Boolean},emits:["changeBank","verifyAccountDetails"],data(){return{accountName:"",accountNumber:"",email:"",isResolvingBankAccount:!1,errorResolvingBankAccount:!1,showAboutVault:!1,isShowingEmailField:!1,isEmailFieldFocused:!1}},created(){this.email=this.accountDetails.email||this.transaction.email,this.accountNumber=this.accountDetails.accountNumber,this.accountName=this.accountDetails.accountName},computed:{...we(ae,["transaction"]),instruction(){var t;return this.$t("instruction",{bankName:(t=this.bank)==null?void 0:t.name})},isValidAccountNumber(){return $2.isValidNubanAccount(this.accountNumber)},isValidEmail(){return rd(this.email)},canSubmitForm(){return!!(this.accountName&&this.isValidAccountNumber&&this.isValidEmail)}},methods:{async handleResolveAccount(){if(this.isValidAccountNumber)try{this.isResolvingBankAccount=!0;const t=await $2.resolve({transaction:this.transaction.id,bankCode:this.bank.code,accountNumber:this.accountNumber});this.errorResolvingBankAccount&&(this.errorResolvingBankAccount=!1),this.accountName=t.data.account_name.toLowerCase()}catch(t){this.errorResolvingBankAccount=!0,this.accountName&&(this.accountName="")}finally{this.isResolvingBankAccount=!1}},verifyAccountDetails(){this.$emit("verifyAccountDetails",{accountName:this.accountName,accountNumber:this.accountNumber,email:this.email})},changeBank(t){this.$emit("changeBank",t)},toggleShowAboutVault(){this.showAboutVault=!this.showAboutVault}},watch:{bank(){this.handleResolveAccount()}}},sL={key:1,class:"account-details",id:"account-details-form"},aL={class:"account-details__input-group"},iL={class:"account-details__logos-container"},oL={class:"animated-connector"},lL={class:"account-details__instruction"},cL={class:"account-details__input-group"},uL=["placeholder"],dL={key:0,class:"account-details__input-group--subtext"},hL={key:1,class:"account-details__input-group--subtext account-name"},mL={key:0,class:"account-details__input-group"},pL={key:0,class:"account-details__input-group--subtext"},fL={key:1,class:"account-details__input-group"},_L={key:0,class:"account-details__input-group--subtext error"},gL={class:"account-details__description"},vL=["innerHTML"],yL={class:"title"},bL={class:"text"};function CL(t,r,e,n,s,a){const i=P("about-vault"),o=P("vault-bank-logo"),l=P("choose-bank-new"),d=P("payment-button");return s.showAboutVault?(f(),se(i,{key:0,onBack:a.toggleShowAboutVault},null,8,["onBack"])):(f(),v("div",sL,[m("form",{onSubmit:r[8]||(r[8]=jt((...u)=>a.verifyAccountDetails&&a.verifyAccountDetails(...u),["prevent"]))},[m("div",aL,[$(l,{onSelect:a.changeBank,preSelectedBank:e.bank},{default:ne(()=>{var u;return[m("div",iL,[$(o,{class:"logo bank-logo",type:"bank",code:(u=e.bank)==null?void 0:u.code,height:40,width:40},null,8,["code"]),m("div",oL,[(f(),v(gt,null,Ot(7,g=>m("div",{key:g,class:"animated-connector__dot"})),64))]),r[9]||(r[9]=m("img",{class:"logo",src:tL,alt:"bank lock logo"},null,-1))]),m("p",lL,T(a.instruction),1)]}),_:1},8,["onSelect","preSelectedBank"])]),m("div",cL,[ct(m("input",{ref:"accountNumber",onInput:r[0]||(r[0]=(...u)=>a.handleResolveAccount&&a.handleResolveAccount(...u)),class:"input",required:"","onUpdate:modelValue":r[1]||(r[1]=u=>s.accountNumber=u),placeholder:t.$t("accountNumberInputPlaceholder"),"data-testid":"bank-vault-account-number"},null,40,uL),[[Wt,s.accountNumber,void 0,{trim:!0}]]),s.isResolvingBankAccount?(f(),v("p",dL,T(t.$t("resolving")),1)):s.errorResolvingBankAccount?D("",!0):(f(),v("p",hL,T(s.accountName),1))]),!s.isResolvingBankAccount&&s.errorResolvingBankAccount?(f(),v("div",mL,[ct(m("input",{ref:"accountName",class:"input",required:"","onUpdate:modelValue":r[2]||(r[2]=u=>s.accountName=u),placeholder:"Account name","data-testid":"bank-vault-account-name"},null,512),[[Wt,s.accountName,void 0,{trim:!0}]]),s.accountName?D("",!0):(f(),v("p",pL,T(t.$t("resolveBankAccountErrorMessage")),1))])):D("",!0),s.isShowingEmailField?(f(),v("div",fL,[ct(m("input",{class:pt([{"input--error":!s.isEmailFieldFocused&&!a.isValidEmail},"input"]),onBlur:r[3]||(r[3]=u=>s.isEmailFieldFocused=!1),onInput:r[4]||(r[4]=u=>s.isEmailFieldFocused=!0),ref:"email",required:"",type:"email","onUpdate:modelValue":r[5]||(r[5]=u=>s.email=u),"data-testid":"bank-vault-email"},null,34),[[Wt,s.email,void 0,{trim:!0}]]),!s.isEmailFieldFocused&&!a.isValidEmail?(f(),v("p",_L,T(t.$t("emailInputError")),1)):D("",!0)])):D("",!0),m("p",gL,[m("span",{innerHTML:t.$t("savedToVaultDescription",{email:s.email})},null,8,vL),s.isShowingEmailField?D("",!0):(f(),v("span",{key:0,class:"change-email",onClick:r[6]||(r[6]=u=>s.isShowingEmailField=!0)},T(t.$t("change")),1))]),m("div",{class:"account-details__vault-info",onClick:r[7]||(r[7]=(...u)=>a.toggleShowAboutVault&&a.toggleShowAboutVault(...u))},[m("div",yL,[r[10]||(r[10]=m("img",{src:nL,alt:"lock icon",class:"lock-icon"},null,-1)),m("p",bL,T(t.$t("whatIsPaystackVault")),1)]),r[11]||(r[11]=m("img",{src:rL,alt:"right arrow icon",class:"right-arrow"},null,-1))]),$(d,{disabled:!a.canSubmitForm,loading:e.isLoading,"data-testid":"bank-vault-set-account-details",class:"account-details__submit-button"},{default:ne(()=>[Be(T(t.$t("continue")),1)]),_:1},8,["disabled","loading"])],32)]))}typeof Hg=="function"&&Hg(a9);const wL=ee(a9,[["render",CL],["__scopeId","data-v-0fb72f9b"]]),kL={class:"section-divider"},SL={key:0,class:"text-container"},EL={class:"text"},TL={__name:"SectionDivider",props:{text:String},setup(t){return(r,e)=>(f(),v("div",kL,[e[0]||(e[0]=m("div",{class:"line-container"},[m("div",{class:"line"})],-1)),t.text?(f(),v("div",SL,[m("span",EL,T(t.text),1)])):D("",!0)]))}},i9=ee(TL,[["__scopeId","data-v-2d4d7330"]]),$L={name:"CountdownComponent",props:{countdownDuration:{type:Number,default:60},countdownTimerMessage:{type:String,default:"Time out in"},type:{type:String,default:"otp"},timerConfig:{type:Array,default(){return[{percentage:80,iconColor:"#909090",textColor:"#f05050"}]}},animate:{type:Boolean,default:!0}},data(){return{countdownTimer:null,formattedCountdown:"00:00",countdown:0}},emits:["countdownComplete"],computed:{colorByPercentage(){const t={iconColor:"#3bb75e",textColor:"#3bb75e"},r=Math.round((this.countdownDuration-this.countdown)/this.countdownDuration*100);return this.timerConfig.reduce((e,n)=>r>=n.percentage?{iconColor:n.iconColor,textColor:n.textColor}:e,t)}},mounted(){this.$nextTick(()=>{this.startCountdown()})},beforeUnmount(){this.countdownTimer&&window.clearInterval(this.countdownTimer)},methods:{formatTime(t){return Jm(t).padStart(5,"0")},startCountdown(){this.countdown=this.countdownDuration,this.formattedCountdown=this.formatTime(this.countdown);const t=276.5;this.countdownTimer=window.setInterval(()=>{var n;this.countdown-=1;const r=this.countdown/this.countdownDuration,e=t-r*t;(n=this.$refs.countdownIndicatorElement)!=null&&n.style&&(this.$refs.countdownIndicatorElement.style.strokeDashoffset=e,this.$refs.countdownIndicatorElement.style.transition="stroke-dashoffset 2s linear"),this.formattedCountdown=this.formatTime(this.countdown),this.countdown===0&&(window.clearInterval(this.countdownTimer),this.$emit("countdownComplete"))},1e3)}}},IL={key:0,class:"countdown-wrapper"},AL={key:0,width:"38px",height:"38px",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zL=["stroke"],RL=["color"],PL=["color"],NL={key:1,class:"countdown-info"},ML=["innerHTML"];function LL(t,r,e,n,s,a){return s.countdown?(f(),v("div",IL,[e.animate?(f(),v("svg",AL,[r[1]||(r[1]=m("circle",{cx:"50",cy:"50",r:"44",fill:"transparent",stroke:"#F0F0F0","stroke-width":"12"},null,-1)),m("circle",{ref:"countdownIndicatorElement",cx:"50",cy:"50",r:"44",fill:"transparent",stroke:a.colorByPercentage.iconColor,"stroke-width":"12"},null,8,zL),e.type==="otp"?(f(),v("path",{key:0,color:a.colorByPercentage.iconColor,class:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.41176 0.5H10.5882C11.3679 0.5 12 1.09695 12 1.83333V7.16667C12 7.90305 11.3679 8.5 10.5882 8.5H4.94118L2.82353 10.5V8.5H1.41176C0.632069 8.5 0 7.90305 0 7.16667V1.83333C0 1.09695 0.632069 0.5 1.41176 0.5ZM3.86065 3.78941L4.06865 4.43008L3.21132 4.70875L3.74132 5.43741L3.19665 5.83341L2.66665 5.10408L2.13665 5.83341L1.59198 5.43741L2.12198 4.70875L1.26465 4.43008L1.47265 3.78941L2.32998 4.06808V3.16675H3.00332V4.06808L3.86065 3.78941ZM7.40202 4.43008L7.19402 3.78941L6.33669 4.06808V3.16675H5.66336V4.06808L4.80602 3.78941L4.59802 4.43008L5.45536 4.70875L4.92536 5.43741L5.47002 5.83341L6.00002 5.10408L6.53002 5.83341L7.07469 5.43741L6.54469 4.70875L7.40202 4.43008ZM10.5273 3.78941L10.7353 4.43008L9.87794 4.70875L10.4079 5.43741L9.86327 5.83341L9.33327 5.10408L8.80327 5.83341L8.25861 5.43741L8.78861 4.70875L7.93127 4.43008L8.13927 3.78941L8.99661 4.06808V3.16675H9.66994V4.06808L10.5273 3.78941Z",fill:"currentColor",transform:"translate(15,15)"},null,8,RL)):D("",!0),e.type==="bank"?(f(),v("g",{key:1,class:"icon",transform:"translate(14,14)",color:a.colorByPercentage.iconColor},[...r[0]||(r[0]=[Ny('',6)])],8,PL)):D("",!0)])):D("",!0),e.countdownTimerMessage?(f(),v("div",NL,[m("span",{innerHTML:e.countdownTimerMessage},null,8,ML),m("span",{class:"countdown-time",style:ko({color:a.colorByPercentage.textColor}),"data-testid":"countdown-time"},T(s.formattedCountdown),5)])):D("",!0)])):D("",!0)}const Ss=ee($L,[["render",LL],["__scopeId","data-v-a29073cb"]]),Sr="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.5%207.5H2C1.73478%207.5%201.48043%207.39464%201.29289%207.20711C1.10536%207.01957%201%206.76522%201%206.5V2C1%201.73478%201.10536%201.48043%201.29289%201.29289C1.48043%201.10536%201.73478%201%202%201H6.5C6.76522%201%207.01957%201.10536%207.20711%201.29289C7.39464%201.48043%207.5%201.73478%207.5%202V2.5M5.5%204.5H10C10.5523%204.5%2011%204.94772%2011%205.5V10C11%2010.5523%2010.5523%2011%2010%2011H5.5C4.94772%2011%204.5%2010.5523%204.5%2010V5.5C4.5%204.94772%204.94772%204.5%205.5%204.5Z'%20stroke='%239C9C9C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function e1(t){const r=t.toLowerCase();return"".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))}function xL(t){return t.split(" ").map(e1).join(" ")}function Ju(t){if(t===null||t==="")return!1;const r=Number(t);return r>=0&&Number.isInteger(r)}function S2(t){return t.replace(/\s/g,"")}function Za(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{paymentSummary:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Transfer ",s(a("amount"))," to"])},"instruction_single-use":e=>{const{normalize:n}=e;return n(["This account is for this transaction only and expires in"])},"instruction_paystack-titan":e=>{const{normalize:n}=e;return n(["Search for Paystack-Titan or Titan-Paystack in your bank app. This account is for this transaction only and expires in"])},"instruction_affinity-bank":e=>{const{normalize:n}=e;return n(["This account is for this transaction only and expires in"])},"instruction_dtbk-bank":e=>{const{normalize:n}=e;return n(['Ensure you capture the narration for this transaction. This transaction expires in'])},generateAnotherAccount:e=>{const{normalize:n}=e;return n(["Generate another account"])},accountExpiryMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Account expired after ",s(a("activeWindow"))," minutes of inactivity"])},expired:e=>{const{normalize:n}=e;return n(["Expired"])},labels:{bankName:e=>{const{normalize:n}=e;return n(["Bank Name"])},accountNumber:e=>{const{normalize:n}=e;return n(["Account Number"])},amount:e=>{const{normalize:n}=e;return n(["Amount"])},accountName:e=>{const{normalize:n}=e;return n(["Account Name"])},titanSwitch:e=>{const{normalize:n}=e;return n(["CHANGE BANK"])}},copied:e=>{const{normalize:n}=e;return n(["Copied!"])},copy:e=>{const{normalize:n}=e;return n(["Copy"])},detailsList:{kenya:{stepOne:e=>{const{normalize:n}=e;return n(["Go to your bank app or USSD and select Pesalink"])},stepTwo:e=>{const{normalize:n}=e;return n(["Select send to account"])},stepThree:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Select ',s(a("bankName")),""])},stepFour:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Enter account number ',s(a("accountNumber")),""])},stepFourBlur:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Type the account name if it doesn’t show up ',s(a("businessName")),""])},stepFive:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Enter amount ',s(a("amount")),""])},stepSix:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Enter narration/reason ',s(a("reference")),""])},footNote:e=>{const{normalize:n}=e;return n(['Note: We will be checking for your payment and send you a confirmation via email '])}},ghana:{stepOne:e=>{const{normalize:n}=e;return n(["Go to your bank app"])},stepTwo:e=>{const{normalize:n}=e;return n(['Select Instant pay or GIP'])},stepTwoBlur:e=>{const{normalize:n}=e;return n(["If this option is not provided, then skip it"])},stepThree:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Select ',s(a("bankName")),""])},stepFour:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Account number ',s(a("accountNumber")),""])},stepFive:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Beneficiary name will show up. If not, please type ',s(a("beneficiary")),""])},stepSix:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Enter the exact amount ',s(a("amount")),""])}}}},fr:{paymentSummary:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Transférer ",s(a("amount"))," à"])},"instruction_single-use":e=>{const{normalize:n}=e;return n(["Utiliser ce compte pour cette transaction uniquement"])},"instruction_paystack-titan":e=>{const{normalize:n}=e;return n(["Recherchez Paystack-Titan ou Titan-Paystack sur votre application bancaire. Utiliser ce compte uniquement pour cette transaction"])},"instruction_affinity-bank":e=>{const{normalize:n}=e;return n(["Ce compte est uniquement destiné à cette transaction et expire dans"])},"instruction_dtbk-bank":e=>{const{normalize:n}=e;return n(['Assurez-vous de saisir le motif pour cette transaction. Cette transaction expire dans'])},generateAnotherAccount:e=>{const{normalize:n}=e;return n(["Créer un autre compte"])},accountExpiryMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Le compte a expiré après ",s(a("activeWindow"))," minutes d'inactivité"])},expired:e=>{const{normalize:n}=e;return n(["Expiré"])},labels:{bankName:e=>{const{normalize:n}=e;return n(["Nom de la banque"])},accountNumber:e=>{const{normalize:n}=e;return n(["Numéro de compte"])},amount:e=>{const{normalize:n}=e;return n(["Montant"])},accountName:e=>{const{normalize:n}=e;return n(["Nom de compte"])},titanSwitch:e=>{const{normalize:n}=e;return n(["CHANGER BANQUE"])}},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Expire dans"])},copied:e=>{const{normalize:n}=e;return n(["Copié!"])},copy:e=>{const{normalize:n}=e;return n(["Copier"])},detailsList:{kenya:{stepOne:e=>{const{normalize:n}=e;return n(["Allez sur votre application bancaire ou USSD et sélectionnez Pesalink"])},stepTwo:e=>{const{normalize:n}=e;return n(["Sélectionnez envoyer vers un compte"])},stepThree:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Sélectionnez ',s(a("bankName")),""])},stepFour:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Entrez le numéro de compte ',s(a("accountNumber")),""])},stepFourBlur:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Saisissez le nom du compte s'il n'apparaît pas ",s(a("bank"))])},stepFive:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Entrez le montant ',s(a("amount")),""])},stepSix:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Entrez le motif/la raison ',s(a("reference")),""])},footNote:e=>{const{normalize:n}=e;return n(['Remarque : Nous vérifierons votre paiement et vous enverrons une confirmation par e-mail '])}},ghana:{stepOne:e=>{const{normalize:n}=e;return n(["Allez sur votre application bancaire"])},stepTwo:e=>{const{normalize:n}=e;return n(['Sélectionnez Paiement instantané ou GIP'])},stepTwoBlur:e=>{const{normalize:n}=e;return n(["Si cette option n'est pas disponible, passez cette étape"])},stepThree:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Sélectionnez ',s(a("bankName")),""])},stepFour:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Numéro de compte ',s(a("accountNumber")),""])},stepFive:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Le nom du bénéficiaire s\'affichera. Sinon, saisissez ',s(a("beneficiary")),""])},stepSix:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Saisissez le montant exact ',s(a("amount")),""])}}}}}})}const OL={class:"managedaccountdetails"},FL={class:"managedaccountdetails__content"},DL={key:"managed_account_active"},VL={class:"managedaccount_title"},BL={class:"managedaccount_information form-space","data-testid":"managed-account-bank"},UL={key:0,class:"managedaccount_title__switch"},HL={class:"managedaccount_title"},qL={key:0},WL={key:1},GL=["alt"],jL={key:0},ZL={class:"managedaccount_title"},KL={key:0},YL={key:1},QL=["alt"],JL={key:1},XL={class:"managedaccount_title"},ex={key:0},tx={key:1},nx=["alt"],o9={__name:"ManagedAccountDetails",props:{managedAccount:{type:Object,required:!0},canSwitchAccount:Boolean,canShowAmount:Boolean,canShowAccountName:Boolean},emits:["callback","switchBank"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=r,a=ge(!1),i=ge(!1),o=ge(!1),l=ae(),d=te(()=>l.transaction),u=te(()=>l.transactionAmount),{isGhanaianTransaction:g}=Do(),y=te(()=>Qn({amount:u.value,currency:d.value.currency})),w=te(()=>{var z;const F=((z=d.value.channel_options)==null?void 0:z.bank_transfer)||[];return n.managedAccount.bank.slug==="titan-paystack"&&F.length>1&&F.includes("wema-bank")}),k=te(()=>xL(n.managedAccount.account_name)),E=te(()=>"".concat(ys(u.value))),R=()=>{Z8(),s("switchBank","wema-bank")},O=(F,S)=>{ti(F).then(S)},M=te(()=>g.value||n.canShowAccountName),x=F=>S=>{F.value=S||e("copied"),setTimeout(()=>{F.value=null},1e3)},N=x(i),A=x(a),V=x(o);return(F,S)=>(f(),v("div",OL,[m("div",FL,[m("div",DL,[m("span",VL,T(fe(e)("labels.bankName")),1),m("p",BL,[Be(T(t.managedAccount.bank.name)+" ",1),t.canSwitchAccount&&w.value?(f(),v("span",UL,[m("a",{class:"controls__titan-paystack-switch",onClick:R},T(fe(e)("labels.titanSwitch")),1)])):D("",!0)]),m("span",HL,T(fe(e)("labels.accountNumber")),1),m("p",{class:"managedaccount_information form-space account-number","data-testid":"managed-account-number",onClick:S[0]||(S[0]=z=>O(t.managedAccount.account_number,fe(A)))},[Be(T(t.managedAccount.account_number)+" ",1),a.value?(f(),v("span",qL,T(a.value),1)):(f(),v("span",WL,[m("img",{class:"icon",src:Sr,alt:fe(e)("copy")},null,8,GL)]))]),M.value?(f(),v("div",jL,[m("span",ZL,T(fe(e)("labels.accountName")),1),m("p",{class:"managedaccount_information form-space account-name-details","data-testid":"account-name-details",onClick:S[1]||(S[1]=z=>O(k.value,fe(V)))},[Be(T(k.value)+" ",1),o.value?(f(),v("span",KL,T(o.value),1)):(f(),v("span",YL,[m("img",{class:"icon",src:Sr,alt:fe(e)("copy")},null,8,QL)]))])])):D("",!0),t.canShowAmount?(f(),v("div",JL,[m("span",XL,T(fe(e)("labels.amount")),1),m("p",{class:"managedaccount_information amount-due","data-testid":"amount-due",onClick:S[2]||(S[2]=z=>O(E.value,fe(N)))},[Be(T(y.value)+" ",1),i.value?(f(),v("span",ex,T(i.value),1)):(f(),v("span",tx,[m("img",{class:"icon",src:Sr,alt:fe(e)("copy")},null,8,nx)]))])])):D("",!0)])])]))}};typeof Za=="function"&&Za(o9);const rx=ee(o9,[["__scopeId","data-v-180cfcd8"]]),Ai="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3esuccess%3c/title%3e%3cdesc%3eCreated%20using%20Figma%3c/desc%3e%3cg%20id='Canvas'%20transform='translate(1918%20-4784)'%3e%3cg%20id='success'%3e%3cg%20id='Vector'%3e%3cuse%20xlink:href='%23path0_fill'%20transform='translate(-1916%204787)'%20fill='%2329B263'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cpath%20id='path0_fill'%20d='M%2020.4756%2028.8149C%2020.4688%2028.8149%2020.4625%2028.8149%2020.4557%2028.8149C%2020.1586%2028.8093%2019.8771%2028.6832%2019.6755%2028.4654L%2010.4725%2018.5546C%2010.0618%2018.1128%2010.0874%2017.4213%2010.5293%2017.0112C%2010.9711%2016.6006%2011.6626%2016.6261%2012.0727%2017.068L%2020.505%2026.1487L%2042.1352%204.51789C%2042.5621%204.09101%2043.2529%204.09101%2043.6798%204.51789C%2044.1067%204.94416%2044.1067%205.63629%2043.6798%206.06255L%2021.2476%2028.4947C%2021.0429%2028.6995%2020.7646%2028.8149%2020.4756%2028.8149ZM%2041.2964%2020.6479C%2041.2964%2019.683%2041.229%2018.7107%2041.0954%2017.7595C%2041.0112%2017.1616%2040.452%2016.7422%2039.8616%2016.8296C%2039.2643%2016.9132%2038.848%2017.4656%2038.9316%2018.0628C%2039.0515%2018.9141%2039.112%2019.7841%2039.112%2020.6479C%2039.112%2030.8289%2030.8295%2039.112%2020.6485%2039.112C%2010.4675%2039.112%202.18437%2030.8289%202.18437%2020.6479C%202.18437%2010.4669%2010.4669%202.18437%2020.6479%202.18437C%2024.8762%202.18437%2029.0084%203.65039%2032.2843%206.31219C%2032.7524%206.69227%2033.4414%206.62113%2033.8209%206.15305C%2034.2009%205.68497%2034.1298%204.99721%2033.6617%204.6165C%2029.9982%201.63952%2025.3761%202.28554e-07%2020.6479%202.28554e-07C%209.26296%202.28554e-07%200%209.26234%200%2020.6479C%200%2032.0334%209.26296%2041.2964%2020.6479%2041.2964C%2032.0328%2041.2964%2041.2964%2032.0334%2041.2964%2020.6479Z'/%3e%3c/defs%3e%3c/svg%3e",sx={key:"managed_account_active"},ax={id:"copyToClipboard"},ix={"data-testid":"managedaccount-details-list"},ox={"data-testid":"managedaccount-details-point"},lx={"data-testid":"managed-account-bank-name"},cx=["innerHTML"],ux={"data-testid":"managed-account-number"},dx=["innerHTML"],hx={key:0,class:"copy-btn"},mx=["alt"],px=["alt"],fx={class:"no-icon"},_x=["innerHTML"],gx={key:0,class:"copy-btn"},vx=["alt"],yx=["alt"],bx=["innerHTML"],Cx={key:0,class:"copy-btn"},wx=["alt"],kx=["alt"],Sx={"data-testid":"managed-account-narration"},Ex=["innerHTML"],Tx={key:0,class:"copy-btn"},$x=["alt"],Ix=["alt"],Ax=["innerHTML"],l9={__name:"ManagedAccountDetailsList",props:{managedAccount:{type:Object,required:!0}},setup(t){const{t:r}=vn(),e=t,n=ge(!1),s=ge(!1),a=ge(!1),i=ge(!1),o=ae(),l=te(()=>o.transaction),d=te(()=>o.transactionAmount),u=te(()=>Qn({amount:d.value,currency:l.value.currency})),g=te(()=>e.managedAccount.account_name),y=(M,x)=>{ti(M).then(x)},w=M=>x=>{M.value=x||r("copied"),setTimeout(()=>{M.value=null},1e3)},k=w(n),E=w(s),R=w(a),O=w(i);return(M,x)=>(f(),v("div",sx,[m("div",ax,[m("ul",ix,[m("li",ox,T(fe(r)("detailsList.kenya.stepOne")),1),m("li",null,T(fe(r)("detailsList.kenya.stepTwo")),1),m("li",lx,[m("p",{innerHTML:fe(r)("detailsList.kenya.stepThree",{bankName:e.managedAccount.bank.name})},null,8,cx)]),m("li",ux,[m("p",{innerHTML:fe(r)("detailsList.kenya.stepFour",{accountNumber:e.managedAccount.account_number})},null,8,dx),n.value?(f(),v("span",hx,[m("img",{class:"icon",src:Ai,alt:n.value},null,8,mx)])):(f(),v("span",{key:1,class:"copy-btn",onClick:x[0]||(x[0]=N=>y(e.managedAccount.account_number,fe(k)))},[m("img",{class:"icon",src:Sr,alt:fe(r)("copy")},null,8,px)]))]),m("li",fx,[m("span",{class:"list-footnote",innerHTML:fe(r)("detailsList.kenya.stepFourBlur",{businessName:g.value})},null,8,_x),i.value?(f(),v("span",gx,[m("img",{class:"icon",src:Ai,alt:i.value},null,8,vx)])):(f(),v("span",{key:1,class:"copy-btn",onClick:x[1]||(x[1]=N=>y(g.value,fe(O)))},[m("img",{class:"icon",src:Sr,alt:fe(r)("copy")},null,8,yx)]))]),m("li",null,[m("p",{innerHTML:fe(r)("detailsList.kenya.stepFive",{amount:u.value})},null,8,bx),a.value?(f(),v("span",Cx,[m("img",{class:"icon",src:Ai,alt:a.value},null,8,wx)])):(f(),v("span",{key:1,class:"copy-btn",onClick:x[2]||(x[2]=N=>y(u.value,fe(R)))},[m("img",{class:"icon",src:Sr,alt:fe(r)("copy")},null,8,kx)]))]),m("li",Sx,[m("p",{innerHTML:fe(r)("detailsList.kenya.stepSix",{reference:e.managedAccount.transaction_reference})},null,8,Ex),s.value?(f(),v("span",Tx,[m("img",{class:"icon",src:Ai,alt:s.value},null,8,$x)])):(f(),v("span",{key:1,class:"copy-btn",onClick:x[3]||(x[3]=N=>y(e.managedAccount.transaction_reference,fe(E)))},[m("img",{class:"icon",src:Sr,alt:fe(r)("copy")},null,8,Ix)]))])]),m("p",{innerHTML:fe(r)("detailsList.kenya.footNote"),class:"managedaccount__footnote"},null,8,Ax)])]))}};typeof Za=="function"&&Za(l9);const zx=ee(l9,[["__scopeId","data-v-e3d3563c"]]),Rx={key:"managed_account_active"},Px={id:"copyToClipboard"},Nx={"data-testid":"managedaccount-details-list"},Mx={"data-testid":"managedaccount-details-point","data-step":"1."},Lx={"data-step":"2."},xx=["innerHTML"],Ox={class:"no-icon list-footnote"},Fx={"data-step":"3.","data-testid":"managed-account-bank-name"},Dx=["innerHTML"],Vx={"data-step":"4.","data-testid":"managed-account-number"},Bx=["innerHTML"],Ux={key:0,class:"copy-btn"},Hx=["alt"],qx=["alt"],Wx={"data-step":"5."},Gx=["innerHTML"],jx={key:0,class:"copy-btn"},Zx=["alt"],Kx=["alt"],Yx={"data-step":"6."},Qx=["innerHTML"],Jx={key:0,class:"copy-btn"},Xx=["alt"],eO=["alt"],c9={__name:"ManagedAccountDetailsList",props:{managedAccount:{type:Object,required:!0}},setup(t){const{t:r}=vn(),e=t,n=ge(!1),s=ge(!1),a=ge(!1),i=ae(),o=te(()=>i.transaction),l=te(()=>i.transactionAmount),d=te(()=>Qn({amount:l.value,currency:o.value.currency})),u=(E,R)=>{ti(E).then(R)},g=E=>R=>{E.value=R||r("copied"),setTimeout(()=>{E.value=null},1e3)},y=g(n),w=g(s),k=g(a);return(E,R)=>(f(),v("div",Rx,[m("div",Px,[m("ol",Nx,[m("li",Mx,T(fe(r)("detailsList.ghana.stepOne")),1),m("li",Lx,[m("p",{innerHTML:fe(r)("detailsList.ghana.stepTwo")},null,8,xx)]),m("li",Ox,T(fe(r)("detailsList.ghana.stepTwoBlur")),1),m("li",Fx,[m("p",{innerHTML:fe(r)("detailsList.ghana.stepThree",{bankName:e.managedAccount.bank.name})},null,8,Dx)]),m("li",Vx,[m("p",{innerHTML:fe(r)("detailsList.ghana.stepFour",{accountNumber:e.managedAccount.account_number})},null,8,Bx),n.value?(f(),v("span",Ux,[m("img",{class:"icon",src:Ai,alt:n.value},null,8,Hx)])):(f(),v("span",{key:1,class:"copy-btn",onClick:R[0]||(R[0]=O=>u(e.managedAccount.account_number,fe(y)))},[m("img",{class:"icon",src:Sr,alt:fe(r)("copy")},null,8,qx)]))]),m("li",Wx,[m("p",{innerHTML:fe(r)("detailsList.ghana.stepFive",{beneficiary:e.managedAccount.account_name})},null,8,Gx),s.value?(f(),v("span",jx,[m("img",{class:"icon",src:Ai,alt:s.value},null,8,Zx)])):(f(),v("span",{key:1,class:"copy-btn",onClick:R[1]||(R[1]=O=>u(e.managedAccount.account_name,fe(w)))},[m("img",{class:"icon",src:Sr,alt:fe(r)("copy")},null,8,Kx)]))]),m("li",Yx,[m("p",{innerHTML:fe(r)("detailsList.ghana.stepSix",{amount:d.value})},null,8,Qx),a.value?(f(),v("span",Jx,[m("img",{class:"icon",src:Ai,alt:a.value},null,8,Xx)])):(f(),v("span",{key:1,class:"copy-btn",onClick:R[2]||(R[2]=O=>u(d.value,fe(k)))},[m("img",{class:"icon",src:Sr,alt:fe(r)("copy")},null,8,eO)]))])])])]))}};typeof Za=="function"&&Za(c9);const tO=ee(c9,[["__scopeId","data-v-50294c1d"]]),nO={class:"managedaccount"},rO={class:"managedaccount__message"},sO=["innerHTML"],aO={key:1},iO={class:"display__inline-block"},oO={class:"account-name","data-testid":"managed-account-name"},lO={class:"managedaccount__details"},cO={key:3,class:"managedaccount__details--divider"},u9={__name:"ManagedAccount",props:{managedAccount:{type:Object,required:!0},canShowAmount:Boolean,canShowAccountName:Boolean,canSwitchAccount:Boolean,paymentSummary:String},emits:["callback","switchBank"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=r,a=ge(null),i=ge(null),o=ae(),l=te(()=>o.transaction),d=te(()=>o.transactionAmount),{isKenyanTransaction:u,isGhanaianTransaction:g}=Do(),y=te(()=>{var F;const A=((F=l.value.channel_options)==null?void 0:F.bank_transfer)||[];return n.managedAccount.bank.slug==="titan-paystack"&&A.length>1&&A.includes("wema-bank")}),w=te(()=>{if(n.managedAccount.bank.slug==="affinity-bank")return e("instruction_affinity-bank");if(n.managedAccount.bank.slug==="dtbk-bank")return e("instruction_dtbk-bank");const A=y.value?"paystack-titan":"single-use";return e("instruction_".concat(A))}),k=te(()=>Qn({amount:d.value,currency:l.value.currency})),E=te(()=>e("paymentSummary",{amount:k.value})),R=te(()=>n.managedAccount.account_name),O=te(()=>{var V;const A=(V=n.managedAccount)==null?void 0:V.account_expires_at;return Ea(A,new Date)}),M=()=>{var F;const A=(F=n.managedAccount)==null?void 0:F.account_expires_at;ql(A,new Date)&&(D8(),window.clearInterval(a.value),s("callback",{status:"failed",message:"Account expired"}))},x=()=>{a.value&&window.clearInterval(a.value),M(),a.value=setInterval(()=>M(),1e3)};An(()=>{x(),i.value=O.value}),Di(()=>{window.clearInterval(a.value)});const N=te(()=>u.value||g.value);return(A,V)=>(f(),v("div",nO,[m("div",rO,[t.paymentSummary?(f(),v("div",{key:0,innerHTML:t.paymentSummary,"data-testid":"managed-account-payment-summary"},null,8,sO)):(f(),v("div",aO,[m("span",iO,T(E.value),1),m("span",oO,T(R.value),1)]))]),m("div",lO,[fe(u)?(f(),se(zx,{key:0,managedAccount:t.managedAccount,class:"managedaccount__details--list"},null,8,["managedAccount"])):fe(g)?(f(),se(tO,{key:1,managedAccount:t.managedAccount,class:"managedaccount__details--list"},null,8,["managedAccount"])):(f(),se(rx,{key:2,managedAccount:t.managedAccount,canShowAmount:"",canSwitchAccount:""},null,8,["managedAccount"])),N.value?D("",!0):(f(),v("div",cO,[$(i9)])),$(Ss,{animate:!1,countdownDuration:i.value,countdownTimerMessage:w.value,class:pt({"center-text":N.value}),type:"bank",timerConfig:[{percentage:50,iconColor:"#FFAA22",textColor:"#FFAA22"},{percentage:80,iconColor:"#D44141",textColor:"#D44141"}]},null,8,["countdownDuration","countdownTimerMessage","class"])])]))}};typeof Za=="function"&&Za(u9);const d9=ee(u9,[["__scopeId","data-v-efbe0ec3"]]);function qg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{accountDescription:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['',s(a("bankName"))," ",s(a("accountNumber"))])},paymentSummary:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Transfer ",s(a("amount"))," to the account below from ",s(a("accountDescription"))])},paymentButtonText:e=>{const{normalize:n}=e;return n(["I've sent the money"])},needHelp:{title:e=>{const{normalize:n}=e;return n(["Need help?"])},description:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Please ensure you are sending exactly ',s(a("amount")),' from ',s(a("accountDescription"))," to complete this transaction"])},showAccountNumber:e=>{const{normalize:n}=e;return n(["Show account number"])}},authorizationConsent:e=>{const{normalize:n}=e;return n(['By paying, you accept Paystack’s Terms of Use.'])},authorizationConsent_recurringMerchantCharge:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['By paying, you accept Paystack’s Terms of Use and authorize ',s(a("merchantName"))," to securely charge your account for future transactions."])},learnMore:e=>{const{normalize:n}=e;return n(["Learn more"])}}}})}const Wg={NEED_HELP:"need-help",ACCOUNT_NUMBER:"account-number",ABOUT_VAULT:"about-vault"},h9={name:"TransferNotice",components:{ManagedAccount:d9,AboutVault:Xm},emits:["callback","requery"],props:{bankName:String,accountNumber:String,isDelayedConfirmation:Boolean},data(){return{views:Wg,currentView:Wg.ACCOUNT_NUMBER}},computed:{...we(ae,["transaction","transactionAmount"]),...we(Qt,["bankChannelState"]),accountDescription(){return this.$t("accountDescription",{bankName:this.bankName,accountNumber:this.accountNumber})},amount(){return Qn({amount:this.transactionAmount,currency:this.transaction.currency})},paymentSummary(){return this.$t("paymentSummary",{amount:this.amount,accountDescription:this.accountDescription})},isRecurringChargeAuthorization(){return Fd(this.transaction)},recurringChargeAuthorizationConsentMessage(){const t=Gh(this.transaction.merchant.name,{maxCharacterLength:15});return this.$t("authorizationConsent_recurringMerchantCharge",{merchantName:t})},defaultAuthorizationConsentMessage(){return this.$t("authorizationConsent")}},methods:{requery(){this.$emit("requery")},handleManagedAccountResponse(t){this.$emit("callback",t)},setCurrentView(t){this.currentView=t}}},uO={class:"vault-bank-transfer"},dO={class:"vault-bank-transfer__need-help-container"},hO={class:"title"},mO=["innerHTML"],pO={class:"vault-bank-transfer__details"},fO={class:"vault-bank-transfer__authorization-consent"},_O=["innerHTML"],gO=["innerHTML"];function vO(t,r,e,n,s,a){const i=P("about-vault"),o=P("managed-account");return f(),v("div",uO,[ct($(i,{onBack:r[0]||(r[0]=l=>a.setCurrentView(s.views.ACCOUNT_NUMBER))},null,512),[[hr,s.currentView===s.views.ABOUT_VAULT]]),ct(m("div",null,[m("div",dO,[m("p",hO,T(t.$t("needHelp.title")),1),m("p",{class:"description",innerHTML:t.$t("needHelp.description",{amount:a.amount,accountDescription:a.accountDescription})},null,8,mO)]),m("button",{type:"button",onClick:r[1]||(r[1]=l=>a.setCurrentView(s.views.ACCOUNT_NUMBER))},T(t.$t("needHelp.showAccountNumber")),1)],512),[[hr,s.currentView===s.views.NEED_HELP]]),ct(m("div",pO,[$(o,{managedAccount:t.bankChannelState.vaultManagedAccount,canShowAccountName:"",paymentSummary:a.paymentSummary,onCallback:a.handleManagedAccountResponse},null,8,["managedAccount","paymentSummary","onCallback"]),m("button",{class:"submitButton",onClick:r[2]||(r[2]=(...l)=>a.requery&&a.requery(...l)),"data-testid":"confirm-bank-transfer"},T(t.$t("paymentButtonText")),1),e.isDelayedConfirmation?(f(),v("p",{key:0,class:"vault-bank-transfer__details--need-help",onClick:r[3]||(r[3]=l=>a.setCurrentView(s.views.NEED_HELP)),"data-testid":"vault-bank-transfer-need-help"},T(t.$t("needHelp.title")),1)):D("",!0),m("div",fO,[a.isRecurringChargeAuthorization?(f(),v("span",{key:0,innerHTML:a.recurringChargeAuthorizationConsentMessage,"data-testid":"recurring-charge-authorization-consent"},null,8,_O)):(f(),v("span",{key:1,innerHTML:a.defaultAuthorizationConsentMessage,"data-testid":"authorization-consent"},null,8,gO)),m("span",{onClick:r[4]||(r[4]=l=>a.setCurrentView(s.views.ABOUT_VAULT)),class:"vault-bank-transfer__authorization-consent--learn-more"},T(t.$t("learnMore")),1)])],512),[[hr,s.currentView===s.views.ACCOUNT_NUMBER]])])}typeof qg=="function"&&qg(h9);const yO=ee(h9,[["render",vO],["__scopeId","data-v-0451a528"]]),bO={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6],0,0,0,0,0,0,0,[0,["4\\d{4}",[5]]]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["690\\d{6}|[356]\\d{5}",[6,9]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[0,["5[02-68]\\d{7}",[9]]]],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0",0,0,0,0,0,[0,["7\\d{8}"]]],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268",[0,["268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}"]]],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264",[0,["264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}"]]],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0",0,0,0,0,0,[0,["6(?:[78][2-9]|9\\d)\\d{6}",[9]]]],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:33|4[1349]|55|77|88|9[13-9])\\d{6}"]]],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],0,0,0,0,0,0,[0,["9[1-79]\\d{7}"]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",0,0,[0,["93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|9(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68]))))\\d{6}|9(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}"]]],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684",[0,["684(?:2(?:48|5[2468]|7[246])|7(?:3[13]|70|82))\\d{4}"]]],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[0,["6(?:485|(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d)\\d{3,9}",[7,8,9,10,11,12,13]]]],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[0,["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],0,0,0,0,0,0,[0,["(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}"]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",[0,["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]]],"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0",0,0,0,0,0,[0,["36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}"]]],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0",0,0,0,0,0,[0,["6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}"]]],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246",[0,["246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}"]]],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0",0,0,0,0,0,[0,["(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",[10]]]],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0",0,0,0,0,0,[0,["4[5-9]\\d{7}",[9]]]],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]],0,0,0,0,0,0,[0,["(?:0[1-7]|4[4-6]|5[0-8]|[67]\\d)\\d{6}"]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[0,["(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",[8,9]]]],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]],0,0,0,0,0,0,[0,["(?:3(?:[0-79]\\d|8[0-57-9])\\d|6(?:3(?:00|33|6[16])|441|6(?:3[03-9]|[69]\\d|7[0-689])))\\d{4}"]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],0,0,0,0,0,0,[0,["(?:29|6[1-9]|7[125-9])\\d{6}"]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]],0,0,0,0,0,0,[0,["01(?:2[5-9]|[4-69]\\d)\\d{6}",[10]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[0,["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441",[0,["441(?:[2378]\\d|5[0-39]|9[02])\\d{5}"]]],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[0,["(?:22[89]|[78]\\d\\d)\\d{4}"]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?",0,0,0,[0,["[67]\\d{7}",[8]]]],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]",[0,["(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}"]]],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",0,0,[0,["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",[10,11]]]],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242",[0,["242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|3[0-4]|[89]9))\\d{4}"]]],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]],0,0,0,0,0,0,[0,["(?:1[67]|[78]7)\\d{6}",[8]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[0,["(?:321|7(?:[1-8]\\d|9[03]))\\d{5}",[8]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,[0,["(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",[9]]],"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],0,0,0,0,0,0,[0,["6[0-35-7]\\d{5}",[7]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[0,["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[0,["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0",0,0,0,0,0,[0,["88\\d{5}|(?:8[0-69]|9[016-9])\\d{7}",[7,9]]]],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]],0,0,0,0,0,0,[0,["7[02-7]\\d{6}"]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],0,0,0,0,0,0,[0,["026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}"]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0",0,0,0,0,0,[0,["(?:6[89]|7[235-9])\\d{7}",[9]]]],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]],0,0,0,0,0,0,[0,["0[157]\\d{8}"]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[0,["[578]\\d{4}"]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],0,0,0,0,0,0,[0,["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|80[1-8]\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]],0,0,0,0,0,0,[0,["(?:24[23]|6(?:[25-9]\\d|4[01]))\\d{6}",[9]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,[0,["1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",[11]]],"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?",0,0,0,[0,["333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:(?:0[0-5]|1\\d|5[01]|70)\\d|2(?:[0-3]\\d|4[1-9])|3(?:00|3[0-24-9]))|9(?:101|408))\\d{6}",[10]]]],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))",0,0,0,[0,["(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",[8]]]],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0",0,0,0,0,0,[0,["(?:5\\d|6[2-4])\\d{6}",[8]]]],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[0,["(?:36|5[1-389]|9\\d)\\d{5}"]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]",[0,["953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}"]]],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[0,["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],0,0,0,0,0,0,[0,["9(?:10|[4-79]\\d)\\d{5}"]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[0,["7060\\d{5}|(?:60[1-8]|7(?:0[2-5]|19|[2379]\\d))\\d{6}",[9]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0",0,0,0,0,0,[0,["1(?:6[023]|7\\d)\\d{7,8}|15(?:[0-25-9]\\d\\d|3(?:10|33))\\d{6}",[10,11]]]],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],0,0,0,0,0,0,[0,["77\\d{6}"]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],0,0,0,0,0,0,[0,["(?:2[6-8]|37|6[78]|96)\\d{6}|(?:2[0-59]|3[0-689]|[457]\\d|6[0-69]|8[126-9]|9[1-47-9])[1-9]\\d{5}"]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767",[0,["767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}"]]],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9",[0,["8[024]9[2-9]\\d{6}"]]],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:5(?:4[0-29]|5\\d|6[0-3])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",[9]]]],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[0,["964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",[9]]]],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[0,["(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|[2-79]\\d\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[013-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",[7,8]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0",0,0,0,0,0,[0,["1[0-25]\\d{8}",[10]]]],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[0,["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:17[1-3]|7\\d\\d)\\d{4}"]]],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],0,0,0,0,0,0,[0,["96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?:6\\d|7[1-48])\\d{7}"]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0",0,0,0,0,0,[0,["700[1-9]\\d{5}|(?:7(?:0[1-9]|1[0-8]|2[1-35-79]|3\\d|77|86|99)|9\\d\\d)\\d{6}"]]],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",[0,["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]]],"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,[0,["(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",[7]]],"00"],FK:["500","00","[2-7]\\d{4}",[5],0,0,0,0,0,0,0,[0,["[56]\\d{4}"]]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]],0,0,0,0,0,0,[0,["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}"]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))",0,0,0,[0,["(?:[27][1-9]|5\\d|9[16])\\d{4}"]]],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7[3-9]\\d)\\d{6}"]]],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",0,0,[0,["(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}"]]],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[0,["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473",[0,["473(?:4(?:0[2-79]|1[04-9]|2[0-5]|49|5[6-8])|5(?:2[01]|3[3-8])|901)\\d{4}"]]],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0",0,0,0,0,0,[0,["5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-6])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}"]]],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}"]]],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[0,["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",[9]]]],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]],0,0,0,0,0,0,[0,["5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}"]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],0,0,0,0,0,0,[0,["[245]\\d{5}"]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[0,["556\\d{4}|(?:[23679]\\d|4[015]|5[0-489]|8[67])\\d{5}"]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],0,0,0,0,0,0,[0,["6[0-356]\\d{7}",[9]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[0,["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]],0,0,0,0,0,0,[0,["(?:222|55\\d)\\d{6}"]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[0,["68[57-9]\\d{7}|(?:69|94)\\d{8}",[10]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,["(?:[3-5]\\d\\d|80[0-4])\\d{5}",[8]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671",[0,["671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[16-9]))\\d{4}"]]],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],0,0,0,0,0,0,[0,["9(?:5\\d|6[569]|77)\\d{6}",[9]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[0,["(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|70))\\d{4}"]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[0,["(?:4(?:(?:09|24)[3-6]|44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:4[0-48]|6[0-5]))|5(?:25[3-7]|35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-35])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",[8]]],"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],0,0,0,0,0,0,[0,["[37-9]\\d{7}",[8]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[0,["9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|55|77|9[5-79])))\\d{4}|98\\d{6}",[8,9]]]],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[0,["(?:[34]\\d|5[568])\\d{6}"]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06",0,0,0,0,0,[0,["(?:[257]0|3[01])\\d{7}",[9]]]],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0",0,0,0,0,0,[0,["8[1-35-9]\\d{7,10}",[9,10,11,12]]]],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[0,["8(?:22|[35-9]\\d)\\d{6}",[9]]]],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0",0,0,0,0,0,[0,["55(?:4(?:0[0-3]|[16]0)|57[0-289])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",[9]]]],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24",[0,["76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}"]]],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0",0,0,0,0,0,[0,["(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:160[01]|6(?:(?:12|[2-4]1|5[17]|6[13]|80)[0189]|7(?:1[0189]|86))|7(?:1(?:2[0189]|9[0-5])|3(?:2[5-8]|[34][017-9]|9[016-9])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:731|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|4[0189]|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-5])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:[024]\\d|3[05-8]|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}",[10]]]],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]],0,0,0,0,0,0,[0,["38\\d{5}"]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[0,["7[3-9]\\d{8}",[10]]]],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0",0,0,0,0,0,[0,["9(?:(?:0[0-5]|[13]\\d|2[0-3])\\d\\d|9(?:[0-46]\\d\\d|5(?:10|5\\d)|8(?:[12]\\d|88)|9(?:[01359]\\d|21|69|77|8[7-9])))\\d{5}",[10]]]],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[0,["(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}"]],"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[0,["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[0,["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876",[0,["(?:6582(?:[0-4]\\d|95)|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}"]]],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:427|7(?:[78][0-25-9]|9\\d))\\d{6}",[9]]]],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1",0,0,[0,["(?:601[0-4]0|[7-9]0[1-9]\\d\\d)\\d{5}",[10]]]],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:1(?:0[0-8]|1\\d|2[014]|30|4[0-3])|7\\d\\d)\\d{6}",[9]]]],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[0,["312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}",[9]]]],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[0,["(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",[8,9]]]],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0",0,0,0,0,0,[0,["(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))\\d{3}|(?:63\\d\\d|7(?:(?:[0146-9]\\d|2[0-689])\\d|3(?:[02-9]\\d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]\\d)))\\d{4}",[8]]]],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],0,0,0,0,0,0,[0,["[34]\\d{6}"]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869",[0,["869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}"]]],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[0,["19[1-3]\\d{7}",[10]]]],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?",0,0,0,[0,["1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",[9,10]]]],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]],0,0,0,0,0,0,[0,["(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|6[16])|2[26]2|3[36]3|4[46]4|7(?:0[013-9]|[67]\\d)|8[68]8|9(?:[069]\\d|3[039]))|9(?:(?:[04679]\\d|8[057-9])\\d|1(?:00|1[01]|99)|2(?:00|2\\d)|3(?:00|3[03])|5(?:00|5\\d)))\\d{4}",[8]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345",[0,["345(?:32[1-9]|4(?:1[2-6]|2[0-4])|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}"]]],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",[0,["7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",[10]]],"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:20(?:[23579]\\d|8[78])|30[24]\\d)\\d{6}|30\\d{7}",[9,10]]]],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0",0,0,0,0,0,[0,["(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[7-9]|9[0-4]))\\d{5}"]]],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758",[0,["758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}"]]],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0",0,0,0,[0,["(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|70))\\d|7(?:[37-9]\\d|42|56))\\d{4}"]]],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0",0,0,0,0,0,[0,["7(?:[0-25-8]\\d|4[0-4])\\d{6}"]]],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:(?:(?:22|33)0|555|7(?:6[01]|7\\d)|88\\d)\\d|4(?:240|[67]))\\d{5}|[56]\\d{6}",[7,9]]]],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],0,0,0,0,0,0,[0,["[56]\\d{7}"]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]",0,0,0,[0,["6\\d{7}"]]],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",0,0,0,[0,["6(?:[26][18]|5[1568]|7[189]|81|9[128])\\d{6}",[9]]]],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]],0,0,0,0,0,0,[0,["2333[0-8]\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[02-9]|3[0-24-9]))\\d{4}"]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[0,["9[1-6]\\d{7}"]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]",[0,["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0",0,0,0,0,0,[0,["4(?:[469]\\d|5[1-9])\\d{5}|(?:3|[67]\\d)\\d{7}"]]],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0",0,0,0,0,0,[0,["562\\d{5}|(?:6\\d|7[16-9])\\d{6}"]]],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[0,["6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",[8]]]],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[0,["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1",0,0,[0,["3[2-9]\\d{7}"]]],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1",0,0,0,0,0,[0,["(?:(?:23|54)5|329|45[35-8])\\d{4}"]]],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0",0,0,0,0,0,[0,["7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-478]\\d|6[01])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}"]]],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],0,0,0,0,0,0,[0,["2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[0-3]|[679]\\d|8[2-59])\\d{6}"]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[0,["(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",[7,8,9,10]]]],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:87[01]|92[0139])\\d{5}|(?:5[05]|6[069]|7[28]|8[0135689]|9[013-9])\\d{6}",[8]]]],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]],0,0,0,0,0,0,[0,["6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",[8]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670",[0,["670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}"]]],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[0,["(?:69[67]\\d\\d|7091[0-3])\\d{4}"]]],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],0,0,0,0,0,0,[0,["[2-4][0-46-9]\\d{6}"]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664",[0,["664(?:3(?:49|9[1-6])|49[2-6])\\d{4}"]]],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],0,0,0,0,0,0,[0,["(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}"]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,[0,["5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-7]|3[013]))\\d{5}",[8]]],"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[0,["(?:46[46]|[79]\\d\\d)\\d{4}",[7]]],"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0",0,0,0,0,0,[0,["111\\d{6}|(?:31|77|[89][89])\\d{7}",[9]]]],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,[0,["(?:2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}"]],"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[0,["1(?:(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|9\\d{7,8})|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-79]|6[02-4]|8[02-5]))|(?:[26]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",[9,10]]]],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[0,["8[2-79]\\d{7}",[9]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[0,["(?:60|8[1245])\\d{7}",[9]]]],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],0,0,0,0,0,0,[0,["(?:[579]\\d|8[0-79])\\d{4}"]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]],0,0,0,0,0,0,[0,["(?:23|7[0467]|[89]\\d)\\d{6}"]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1",0,0,[0,["(?:14|3[58])\\d{4}"]]],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:702[0-24-9]|819[01])\\d{6}|(?:7(?:0[13-9]|[12]\\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\\d{7}",[10]]]],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],0,0,0,0,0,0,[0,["(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}"]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[0,["(?:6[1-58]|970\\d)\\d{7}",[9,11]]]],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]",[0,["(?:4[015-8]|9\\d)\\d{6}",[8]]]],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0",0,0,0,0,0,[0,["9(?:00|6[0-3]|7[0-24-6]|8[0-24-68])\\d{7}",[10]]]],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]],0,0,0,0,0,0,[0,["(?:222|55[3-9]|666|777|8\\d\\d|999)\\d{4}"]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]],0,0,0,0,0,0,[0,["(?:[56]|888[1-9])\\d{3}"]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,[0,["2(?:[0-27-9]\\d|6)\\d{6,7}|2(?:1\\d|75)\\d{5}",[8,9,10]]],"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]],0,0,0,0,0,0,[0,["(?:1505|90[1-9]\\d)\\d{4}|(?:7[124-9]|9[1-9])\\d{6}",[8]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[0,["(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",[7,8]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[0,["9\\d{8}",[9]]],"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[0,["8[7-9]\\d{6}",[8]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,[0,["(?:7\\d|8[1-48])\\d{6}",[8]]],"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0",0,0,0,0,0,[0,["(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",[10]]]],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0",0,0,0,0,0,[0,["3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}",[10]]]],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[0,["21(?:1[013-5]|2\\d|3[1-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",[9]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[0,["708(?:4[0-5]|5[0-6])\\d{4}|(?:[236-9]\\d|4[02-489]|5[02-9])\\d{4}"]]],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939",[0,["(?:787|939)[2-9]\\d{6}"]]],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[0,["5[69]\\d{7}",[9]]]],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],0,0,0,0,0,0,[0,["6(?:[06]92(?:30|9\\d)|[35]92(?:[049]\\d|3[034]))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}"]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[0,["(?:(?:46|83)[0-5]|(?:6[2-4689]|78)0)\\d{4}|(?:45|77|88)\\d{5}"]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[0,["9(?:51|6[129]|7[1-6]|8[1-7]|9[1-5])\\d{6}",[9]]]],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]],0,0,0,0,0,0,[0,["[35-7]\\d{7}",[8]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:630|702)0\\d{5}|(?:6(?:00|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}",[9]]],0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0",0,0,0,0,0,[0,["6(?:[0-689]|7\\d)\\d{6,7}",[8,9,10]]]],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",[0,["9\\d{9}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0",0,0,0,0,0,[0,["7[237-9]\\d{7}",[9]]]],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0",0,0,0,0,0,[0,["579[0-8]\\d{5}|5(?:[013-689]\\d|7[0-8])\\d{6}",[9]]]],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]],0,0,0,0,0,0,[0,["48\\d{3}|(?:(?:6[89]|7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}"]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,[0,["2[125-8]\\d{5}"]],"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:1[0-2]|9[0-3569])\\d{7}"]]],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0",0,0,0,0,0,[0,["7[02369]\\d{7}",[9]]]],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,["898[02-9]\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-79])|9[0-8]\\d)\\d{5}",[8]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]",[0,["[56]\\d{4}",[5]]]],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,[0,["65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",[8]]],"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79",[0,["(?:4[015-8]|9\\d)\\d{6}",[8]]]],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0",0,0,0,0,0,[0,["909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",[9]]]],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0",0,0,0,0,0,[0,["(?:25|3[0-5]|66|7\\d|8[08]|9[09])\\d{6}"]]],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1",0,0,[0,["6[16]\\d{6}",[8]]]],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],0,0,0,0,0,0,[0,["7(?:[015-8]\\d|21|90)\\d{6}"]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0",0,0,0,0,0,[0,["(?:(?:15|(?:3[59]|4[89]|6\\d|7[679]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",[7,8,9]]]],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]],0,0,0,0,0,0,[0,["(?:6[08]|7[124-7]|8[1-9])\\d{5}",[7]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:12|9[1257-9])\\d{7}"]]],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]],0,0,0,0,0,0,[0,["900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}"]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[0,["[5-7]\\d{7}",[8]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721",[0,["7215(?:1[02]|2\\d|5[034679]|8[0-24-8])\\d{4}"]]],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0",0,0,0,0,0,[0,["(?:50|9[1-9])\\d{7}",[9]]]],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]],0,0,0,0,0,0,[0,["7[5-9]\\d{6}",[8]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649",[0,["649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}"]]],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,[0,["(?:3[01]|[69]\\d|77|8[5-7])\\d{6}"]],"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],0,0,0,0,0,0,[0,["(?:7[0-289]|9[0-36-9])\\d{6}"]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[0,["(?:(?:14|[89]\\d)\\d\\d|6(?:[1-6]\\d\\d|7(?:1[0-8]|2[4-7]|3[1-6])))\\d{5}",[9]]]],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,[0,["(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[0157-9]|8[07-9])\\d{7}"]],"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7],0,0,0,0,0,0,0,[0,["7[2-4]\\d{2,5}"]]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]],0,0,0,0,0,0,[0,["7[2-8]\\d{6}",[8]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,[0,["(?:6\\d|71)\\d{6}"]],"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],0,0,0,0,0,0,[0,["3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-8])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}"]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]],0,0,0,0,0,0,[0,["(?:5(?:4[0-5]|5[4-6])|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",[7]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-579]|61)","5(?:[0-579]|61[06])","5(?:[0-579]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0",0,0,0,0,0,[0,["561(?:011|61\\d)\\d{4}|5(?:[03-5]\\d|1[06]|24|7[45]|9[46])\\d{7}",[10]]]],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868",[0,["868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}"]]],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[0,["(?:7[01]\\d|90)\\d{4}",[6,7]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[0,["(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",[9]]],0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:6[1-35-9]|7[013-9])\\d{7}"]]],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[0,["790\\d{6}|(?:39|50|6[36-8]|7[1-357]|9[1-9])\\d{7}",[9]]],"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0",0,0,0,0,0,[0,["72[48]0\\d{5}|7(?:[014-8]\\d|2[0167]|3[06]|9[0-3589])\\d{6}"]]],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[0,["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,[0,["9[1-9]\\d{6}",[8]]],"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]],0,0,0,0,0,0,[0,["(?:(?:[25]0|33|8[078]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}"]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698",[0,["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]]]],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784",[0,["784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}"]]],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0",0,0,0,0,0,[0,["4(?:1[24-8]|2[246])\\d{7}"]]],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284",[0,["284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))\\d{4}"]]],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340",[0,["340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}"]]],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0",0,0,0,0,0,[0,["(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[1689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",[9]]]],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],0,0,0,0,0,0,[0,["(?:[58]\\d|7[0-7])\\d{5}",[7]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[0,["(?:72|8[23])\\d{4}",[6]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[0,["(?:7[1-35-8]|8(?:[3-7]|9\\d{3}))\\d{5}",[7,10]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0",0,0,0,0,0,[0,["4[3-9]\\d{6}",[8]]]],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[0,["7[01378]\\d{7}",[9]]]],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[0,["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[0,["(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:50[0-2]|[67]\\d\\d)\\d\\d|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",[5,6,7,8,9]]]],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0",0,0,0,0,0,[0,["(?:[59][5-8]|7[5-9])\\d{7}"]]],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0",0,0,0,0,0,[0,["7(?:[1278]\\d|3[1-9])\\d{6}",[9]]]]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Dd(t,r){var e=Array.prototype.slice.call(r);return e.push(bO),t.apply(this,e)}function CO(){return Dd(Lb,arguments)}function mr(){return Dd(xb,arguments)}function Vd(){return Dd(Ob,arguments)}function m9(){return Dd(Fb,arguments)}const p9={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"450001234",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"0195123456",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"34412345",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"60123456",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"2221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"},wO={name:"Côte D'Ivoire",callingCode:"225",flag:{emoji:"🇨🇮",unicode:"U+1F1E8 U+1F1EE"}},kO={name:"Ghana",callingCode:"233",flag:{emoji:"🇬🇭",unicode:"U+1F1EC U+1F1ED"}},SO={name:"Kenya",callingCode:"254",flag:{emoji:"🇰🇪",unicode:"U+1F1F0 U+1F1EA"}},EO={name:"Nigeria",callingCode:"234",flag:{emoji:"🇳🇬",unicode:"U+1F1F3 U+1F1EC"}},TO={name:"South Africa",callingCode:"27",flag:{emoji:"🇿🇦",unicode:"U+1F1FF U+1F1E6"}},$O={name:"United States",callingCode:"1",flag:{emoji:"🇺🇸",unicode:"U+1F1FA U+1F1F8"}},IO={name:"Egypt",callingCode:"20",flag:{emoji:"🇪🇬",unicode:"U+1F1EA U+1F1EC"}},AO={name:"Tanzania, United Republic of",callingCode:"255",flag:{emoji:"🇹🇿",unicode:"U+1F1F9 U+1F1FF"}},zO={name:"Algeria",callingCode:"213",flag:{emoji:"🇩🇿",unicode:"U+1F1E9 U+1F1FF"}},RO={name:"Morocco",callingCode:"212",flag:{emoji:"🇲🇦",unicode:"U+1F1F2 U+1F1E6"}},PO={name:"Mozambique",callingCode:"258",flag:{emoji:"🇲🇿",unicode:"U+1F1F2 U+1F1FF"}},NO={name:"Madagascar",callingCode:"261",flag:{emoji:"🇲🇬",unicode:"U+1F1F2 U+1F1EC"}},MO={name:"Burkina Faso",callingCode:"226",flag:{emoji:"🇧🇫",unicode:"U+1F1E7 U+1F1EB"}},LO={name:"Malawi",callingCode:"265",flag:{emoji:"🇲🇼",unicode:"U+1F1F2 U+1F1FC"}},xO={name:"Senegal",callingCode:"221",flag:{emoji:"🇸🇳",unicode:"U+1F1F8 U+1F1F3"}},OO={name:"Somalia",callingCode:"221",flag:{emoji:"🇸🇴",unicode:"U+1F1F8 U+1F1F4"}},FO={name:"Guinea",callingCode:"224",flag:{emoji:"🇬🇳",unicode:"U+1F1EC U+1F1F3"}},DO={name:"Benin",callingCode:"229",flag:{emoji:"🇧🇯",unicode:"U+1F1E7 U+1F1EF"}},VO={name:"Tunisia",callingCode:"216",flag:{emoji:"🇹🇳",unicode:"U+1F1F9 U+1F1F3"}},BO={name:"Togo",callingCode:"228",flag:{emoji:"🇹🇬",unicode:"U+1F1F9 U+1F1EC"}},UO={name:"Libya",callingCode:"218",flag:{emoji:"🇱🇾",unicode:"U+1F1F1 U+1F1FE"}},HO={name:"Liberia",callingCode:"231",flag:{emoji:"🇱🇷",unicode:"U+1F1F1 U+1F1F7"}},qO={name:"Mauritania",callingCode:"222",flag:{emoji:"🇲🇷",unicode:"U+1F1F2 U+1F1F7"}},WO={name:"Namibia",callingCode:"264",flag:{emoji:"🇳🇦",unicode:"U+1F1F3 U+1F1E6"}},GO={name:"Botswana",callingCode:"267",flag:{emoji:"🇧🇼",unicode:"U+1F1E7 U+1F1FC"}},jO={name:"Lesotho",callingCode:"266",flag:{emoji:"🇱🇸",unicode:"U+1F1F1 U+1F1F8"}},ZO={name:"Equatorial Guinea",callingCode:"240",flag:{emoji:"🇬🇶",unicode:"U+1F1EC U+1F1F6"}},KO={name:"Eswatini",callingCode:"268",flag:{emoji:"🇸🇿",unicode:"U+1F1F8 U+1F1FF"}},YO={name:"Comoros",callingCode:"269",flag:{emoji:"🇰🇲",unicode:"U+1F1F0 U+1F1F2"}},QO={name:"Sao Tome and Principe",callingCode:"239",flag:{emoji:"🇸🇹",unicode:"U+1F1F8 U+1F1F9"}},JO={name:"Réunion",callingCode:"262",flag:{emoji:"🇷🇪",unicode:"U+1F1F7 U+1F1EA"}},XO={name:"Mayotte",callingCode:"262",flag:{emoji:"🇾🇹",unicode:"U+1F1FE U+1F1F9"}},eF={name:"Ethiopia",callingCode:"251",flag:{emoji:"🇪🇹",unicode:"U+1F1EA U+1F1F9"}},tF={name:"Congo (Democratic Republic of the)",callingCode:"243",flag:{emoji:"🇨🇩",unicode:"U+1F1E8 U+1F1E9"}},nF={name:"Uganda",callingCode:"256",flag:{emoji:"🇺🇬",unicode:"U+1F1FA U+1F1EC"}},rF={name:"Sudan",callingCode:"249",flag:{emoji:"🇸🇩",unicode:"U+1F1F8 U+1F1E9"}},sF={name:"Angola",callingCode:"244",flag:{emoji:"🇦🇴",unicode:"U+1F1E6 U+1F1F4"}},aF={name:"Cameroon",callingCode:"237",flag:{emoji:"🇨🇲",unicode:"U+1F1E8 U+1F1F2"}},iF={name:"Niger",callingCode:"227",flag:{emoji:"🇳🇪",unicode:"U+1F1F3 U+1F1EA"}},oF={name:"Mali",callingCode:"223",flag:{emoji:"🇲🇱",unicode:"U+1F1F2 U+1F1F1"}},lF={name:"Zambia",callingCode:"260",flag:{emoji:"🇿🇲",unicode:"U+1F1FF U+1F1F2"}},cF={name:"Chad",callingCode:"235",flag:{emoji:"🇹🇩",unicode:"U+1F1F9 U+1F1E9"}},uF={name:"Zimbabwe",callingCode:"263",flag:{emoji:"🇿🇼",unicode:"U+1F1FF U+1F1FC"}},dF={name:"Rwanda",callingCode:"250",flag:{emoji:"🇷🇼",unicode:"U+1F1F7 U+1F1FC"}},hF={name:"Burundi",callingCode:"257",flag:{emoji:"🇧🇮",unicode:"U+1F1F7 U+1F1FC"}},mF={name:"South Sudan",callingCode:"211",flag:{emoji:"🇸🇸",unicode:"U+1F1F8 U+1F1F8"}},pF={name:"Sierra Leone",callingCode:"232",flag:{emoji:"🇸🇱",unicode:"U+1F1F8 U+1F1F1"}},fF={name:"Congo",callingCode:"242",flag:{emoji:"🇨🇬",unicode:"U+1F1E8 U+1F1EC"}},_F={name:"Central African Republic",callingCode:"236",flag:{emoji:"🇨🇫",unicode:"U+1F1E8 U+1F1EB"}},gF={name:"Eritrea",callingCode:"291",flag:{emoji:"🇪🇷",unicode:"U+1F1EA U+1F1F7"}},vF={name:"Gambia",callingCode:"220",flag:{emoji:"🇬🇲",unicode:"U+1F1EC U+1F1F2"}},yF={name:"Gabon",callingCode:"241",flag:{emoji:"🇬🇦",unicode:"U+1F1EC U+1F1E6"}},bF={name:"Guinea-Bissau",callingCode:"245",flag:{emoji:"🇬🇼",unicode:"U+1F1EC U+1F1FC"}},CF={name:"Mauritius",callingCode:"230",flag:{emoji:"🇲🇺",unicode:"U+1F1F2 U+1F1FA"}},wF={name:"Djibouti",callingCode:"253",flag:{emoji:"🇩🇯",unicode:"U+1F1E9 U+1F1EF"}},kF={name:"Cabo Verde",callingCode:"238",flag:{emoji:"🇨🇻",unicode:"U+1F1E8 U+1F1FB"}},SF={name:"Seychelles",callingCode:"248",flag:{emoji:"🇸🇨",unicode:"U+1F1F8 U+1F1E8"}},EF={name:"United Kingdom",callingCode:"44",flag:{emoji:"🇬🇧",unicode:"U+1F1EC U+1F1E7"}},TF={name:"United Arab Emirates",callingCode:"971",flag:{emoji:"🇦🇪",unicode:"U+1F1E6 U+1F1EA"}},$F={name:"France",callingCode:"33",flag:{emoji:"🇫🇷",unicode:"U+1F1EB U+1F1F7"}},IF={name:"Ireland",callingCode:"353",flag:{emoji:"🇮🇪",unicode:"U+1F1EE U+1F1EA"}},AF={name:"Portugal",callingCode:"351",flag:{emoji:"🇵🇹",unicode:"U+1F1F5 U+1F1F9"}},zF={name:"Germany",callingCode:"49",flag:{emoji:"🇩🇪",unicode:"U+1F1E9 U+1F1EA"}},RF={name:"Netherlands",callingCode:"31",flag:{emoji:"🇳🇱",unicode:"U+1F1F3 U+1F1F1"}},$i={CI:wO,GH:kO,KE:SO,NG:EO,ZA:TO,US:$O,EG:IO,TZ:AO,DZ:zO,MA:RO,MZ:PO,MG:NO,BF:MO,MW:LO,SN:xO,SO:OO,GN:FO,BJ:DO,TN:VO,TG:BO,LY:UO,LR:HO,MR:qO,NA:WO,BW:GO,LS:jO,GQ:ZO,SZ:KO,KM:YO,ST:QO,RE:JO,YT:XO,ET:eF,CD:tF,UG:nF,SD:rF,AO:sF,CM:aF,NE:iF,ML:oF,ZM:lF,TD:cF,ZW:uF,RW:dF,BI:hF,SS:mF,SL:pF,CG:fF,CF:_F,ER:gF,GM:vF,GA:yF,GW:bF,MU:CF,DJ:wF,CV:kF,SC:SF,GB:EF,AE:TF,FR:$F,IE:IF,PT:AF,DE:zF,NL:RF},PF={name:"PhoneNumberSelect",props:{value:{required:!0,type:[String,Number]},disabled:Boolean,placeholder:String,required:Boolean,callingCode:String,countryCode:{type:String,validator(t){return Object.keys($i).includes(t)}}},data(){const t=this.callingCode&&this.getCountryByCallingCode(this.callingCode),r=(t==null?void 0:t.countryCode)||this.countryCode;return{countries:$i,country:r}},emits:["input"],computed:{flag(){const t=$i[this.country];return t?Wh.parse(t.flag.emoji,{folder:"svg",ext:".svg"}).replace("twemoji.maxcdn.com/v","cdnjs.cloudflare.com/ajax/libs/twemoji"):null}},methods:{onInput(t){var e;const r=((e=t==null?void 0:t.target)==null?void 0:e.value)||this.value;this.$emit("input",r,this.country)},countriesArray(){return Object.keys($i).map(r=>({...$i[r],countryCode:r}))},getCountryByCallingCode(t){return this.countriesArray().find(e=>e.callingCode===t)},updateCountry(){this.$emit("input",null,this.country)}}},NF={class:"input-wrapper"},MF={class:"input-addon"},LF={class:"flag-wrapper"},xF=["innerHTML"],OF=["disabled"],FF=["value"],DF=["value","placeholder","required","disabled"];function VF(t,r,e,n,s,a){return f(),v("div",NF,[m("div",MF,[m("div",LF,[m("div",{class:"flag-icon",innerHTML:a.flag},null,8,xF),r[3]||(r[3]=m("div",{class:"flag-select-icon"},[m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"8",height:"8",stroke:"#e4e4e4","stroke-width":"2",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[m("polyline",{points:"6 9 12 15 18 9"})])],-1)),ct(m("select",{class:"select","onUpdate:modelValue":r[0]||(r[0]=i=>s.country=i),onChange:r[1]||(r[1]=(...i)=>a.updateCountry&&a.updateCountry(...i)),disabled:e.disabled},[(f(!0),v(gt,null,Ot(s.countries,(i,o)=>(f(),v("option",{value:o,key:o},T(i.name)+" (+"+T(i.callingCode)+") ",9,FF))),128))],40,OF),[[ks,s.country]])])]),m("input",{type:"tel",ref:"input",name:"phoneNumber",class:"input",onInput:r[2]||(r[2]=(...i)=>a.onInput&&a.onInput(...i)),value:e.value,placeholder:e.placeholder,required:e.required,disabled:e.disabled,"data-testid":"phone-number-input"},null,40,DF)])}const f9=ee(PF,[["render",VF],["__scopeId","data-v-783c246f"]]);function Gg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instruction:e=>{const{normalize:n}=e;return n(["Enter the phone number linked to your bank account or BVN"])},edit:e=>{const{normalize:n}=e;return n(["Edit"])},otpDescription:e=>{const{normalize:n}=e;return n(["An OTP will be sent to this phone number"])},continue:e=>{const{normalize:n}=e;return n(["Continue"])}}}})}const _9={name:"VaultPhoneNumberForm",props:{account:Object},components:{PhoneNumberSelect:f9,PaymentButton:dt},emits:["setPhoneNumber","editAccount"],data(){return{phoneNumber:{subscriberNumber:"",countryCode:"NG"}}},computed:{isValidPhoneNumber(){return Vd(this.phoneNumber.subscriberNumber,this.phoneNumber.countryCode)},phoneNumberPlaceholder(){return m9(this.phoneNumber.countryCode,p9).formatNational()}},methods:{setPhoneNumber(){const t=CO(this.phoneNumber.subscriberNumber,this.phoneNumber.countryCode).format("E.164");this.$emit("setPhoneNumber",t)},editAccount(){this.$emit("editAccount")},handlePhoneNumberChange(t,r){r&&(this.phoneNumber.countryCode=r),t&&(this.phoneNumber.subscriberNumber=t)}}},BF={class:"instruction"},UF={class:"account-summary"},HF={class:"bank-name"},qF={class:"account-number"},WF={key:0,class:"otp-description"};function GF(t,r,e,n,s,a){const i=P("phone-number-select"),o=P("payment-button");return f(),v("div",null,[r[1]||(r[1]=m("div",{class:"icon-container"},[m("img",{src:Gm,alt:"phone icon"})],-1)),m("p",BF,T(t.$t("instruction")),1),m("div",UF,[m("div",null,[m("p",HF,T(e.account.bankName),1),m("p",qF,T(e.account.accountNumber),1)]),m("p",{class:"edit",onClick:r[0]||(r[0]=(...l)=>a.editAccount&&a.editAccount(...l))},T(t.$t("edit")),1)]),m("div",null,[$(i,{onInput:a.handlePhoneNumberChange,value:s.phoneNumber.subscriberNumber,countryCode:s.phoneNumber.countryCode,placeholder:a.phoneNumberPlaceholder,name:"phoneNumber","data-testid":"bank-vault-phone-number"},null,8,["onInput","value","countryCode","placeholder"]),a.isValidPhoneNumber?(f(),v("p",WF,T(t.$t("otpDescription")),1)):D("",!0)]),$(o,{disabled:!a.isValidPhoneNumber,class:"submit-button",onClick:a.setPhoneNumber,"data-testid":"bank-vault-set-phone-number"},{default:ne(()=>[Be(T(t.$t("continue")),1)]),_:1},8,["disabled","onClick"])])}typeof Gg=="function"&&Gg(_9);const jF=ee(_9,[["render",GF],["__scopeId","data-v-9efede7a"]]);function Xu(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{incorrectAmountErrorMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['

We received a wrong amount and a refund has been processed. Please transfer exactly ',s(a("amount")),' to ',s(a("bankName"))," ",s(a("accountNumber"))," to complete this transaction

"])},tryAgain:e=>{const{normalize:n}=e;return n(["Try again"])},continueWithoutSaving:e=>{const{normalize:n}=e;return n(["Continue without saving"])},tryAnotherNumber:e=>{const{normalize:n}=e;return n(["Try another number"])},tryAnotherBank:e=>{const{normalize:n}=e;return n(["Try another bank account"])},tryPayingWithChannel:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Try paying with ",s(a("channelLabel"))])},closeCheckout:e=>{const{normalize:n}=e;return n(["Close checkout"])},startOver:e=>{const{normalize:n}=e;return n(["Start over with the same bank account"])},trySavedAccount:e=>{const{normalize:n}=e;return n(["Try your saved account"])}}}})}const g9={name:"IncorrectAmountErrorResolution",emits:["retryTransfer"],computed:{...we(ae,["transaction","transactionAmount"]),...we(Qt,["bankChannelState"]),errorMessage(){var t,r,e;return this.$t("incorrectAmountErrorMessage",{amount:Qn({amount:this.transactionAmount,currency:this.transaction.currency}),bankName:(r=(t=this.bankChannelState.vaultManagedAccount)==null?void 0:t.bank)==null?void 0:r.name,accountNumber:(e=this.bankChannelState.vaultManagedAccount)==null?void 0:e.account_number})}},mounted(){Nd({channel:"bank",message:Zh.INCORRECT_AMOUNT}),Bm()},methods:{retryTransfer(){this.$emit("retryTransfer"),Hl("Retry")}}},ZF={class:"error"},KF={class:"error__header"},YF=["innerHTML"],QF={class:"resolution"};function JF(t,r,e,n,s,a){return f(),v("div",ZF,[r[1]||(r[1]=m("img",{class:"error__icon",src:Td,alt:"Error"},null,-1)),m("div",KF,[m("div",{class:"error__message","data-testid":"errorMessage",innerHTML:a.errorMessage},null,8,YF)]),m("div",QF,[m("button",{onClick:r[0]||(r[0]=(...i)=>a.retryTransfer&&a.retryTransfer(...i)),"data-testId":"pwb-incorrect-amount"},T(t.$t("tryAgain")),1)])])}typeof Xu=="function"&&Xu(g9);const XF=ee(g9,[["render",JF],["__scopeId","data-v-0a194d7c"]]),eD={name:"OtpInput",props:{otpLength:{type:Number,default:4}},data(){return{value:Array(this.otpLength).fill(""),activeFieldIndex:0}},mounted(){this.$nextTick(()=>{this.$refs.input[0].focus()})},methods:{goToPreviousInput(){this.activeFieldIndex=Math.max(this.activeFieldIndex-1,0),this.$refs.input[this.activeFieldIndex].focus()},goToNextInput(){const t=this.activeFieldIndex+1;this.activeFieldIndex=Math.min(t,this.otpLength-1),t>=this.otpLength?this.$refs.input[this.activeFieldIndex].blur():this.$refs.input[t].focus()},onFocus(t,r){t.target.select(),this.activeFieldIndex=r},onKeyDown(t){const{key:r,target:e}=t;r==="Backspace"&&(t.preventDefault(),!e.value?(this.goToPreviousInput(),this.value[this.activeFieldIndex]=""):(this.value[this.activeFieldIndex]="",this.goToPreviousInput()),this.$emit("update:modelValue",this.value.join("")))},onInput(t){Ju(t.data)&&t.data.length>1?(t.clipboardData={getData:()=>t.data},this.onPaste(t)):Ju(t.data)?(this.value[this.activeFieldIndex]=t.data,this.$emit("update:modelValue",this.value.join("")),this.goToNextInput()):this.value[this.activeFieldIndex]=""},onPaste(t){t.preventDefault();const e=t.clipboardData.getData("text/plain").trim().split("").slice(0,this.otpLength);if(e.forEach((n,s)=>this.value[s]=n),e.length===this.otpLength)this.$refs.input[this.activeFieldIndex].blur();else{const n=e.length===this.otpLength?e.length-1:e.length;this.$refs.input[n].focus()}this.$emit("update:modelValue",this.value.join(""))}}},tD={class:"otp-input"},nD=["onUpdate:modelValue","onFocus"];function rD(t,r,e,n,s,a){return f(),v("div",tD,[r[3]||(r[3]=m("input",{type:"text",name:"prevent_autofill",value:"",style:{display:"none"}},null,-1)),(f(!0),v(gt,null,Ot(e.otpLength,(i,o)=>(f(),v("div",{key:i},[ct(m("input",{required:"",name:"otp",type:"tel",class:"input",autocomplete:"off","onUpdate:modelValue":l=>s.value[o]=l,"data-testid":"otpInput",ref_for:!0,ref:"input",inputmode:"numeric",onFocus:l=>a.onFocus(l,o),onKeydown:r[0]||(r[0]=(...l)=>a.onKeyDown&&a.onKeyDown(...l)),onInput:r[1]||(r[1]=(...l)=>a.onInput&&a.onInput(...l)),onPaste:r[2]||(r[2]=(...l)=>a.onPaste&&a.onPaste(...l))},null,40,nD),[[Wt,s.value[o]]])]))),128))])}const v9=ee(eD,[["render",rD],["__scopeId","data-v-eac83662"]]),sD=(t,r={maskLength:4})=>{if(Vd(t)){const e=new RegExp("\\d(?=(?:\\D*\\d){"+r.maskLength+"})","g");return mr(t).formatNational().replace(e,"*")}else return"**** *** ".concat(t.slice(-r.maskLength))};function jg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{resendViaWhatsApp:e=>{const{normalize:n}=e;return n(["Resend OTP via WhatsApp"])},resendViaWhatsAppCountdown:e=>{const{normalize:n}=e;return n(["Resend OTP via WhatsApp in"])},resendViaSmsAndWhatsApp:e=>{const{normalize:n}=e;return n(["Resend OTP via SMS & WhatsApp"])},resendViaSmsAndWhatsAppCountdown:e=>{const{normalize:n}=e;return n(["Resend OTP via SMS & WhatsApp in"])},phoneNumberFallback:e=>{const{normalize:n}=e;return n(["your phone"])},instructionMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Enter the OTP sent to ",s(a("phoneNumber"))])},otpNotReceived:{title:e=>{const{normalize:n}=e;return n(["Still not getting OTPs?"])},description:e=>{const{normalize:n}=e;return n(["We’ve tried sending your OTP through all our available channels. If you don’t get the OTP within 10 minutes, please try paying using other payment methods."])},back:e=>{const{normalize:n}=e;return n(["Back"])}},otpIncorrect:e=>{const{normalize:n}=e;return n(["Incorrect OTP. Please retry with the correct OTP."])}}}})}const aD={1:{text:"resendViaWhatsApp",countdownMessage:"resendViaWhatsAppCountdown",channels:["whatsapp"],countdownDurationInSeconds:0},2:{text:"resendViaSmsAndWhatsApp",countdownMessage:"resendViaSmsAndWhatsAppCountdown",channels:["sms","whatsapp"],countdownDurationInSeconds:60}},Zg={otpNotReceived:"otp-not-received",verifyOtp:"verify-otp"},y9={name:"VaultVerifyOtp",components:{Countdown:Ss,OtpInput:v9,Loader:tn,Instructions:Et,CancelLink:rn},emits:["otpVerified","cancel"],props:{phoneNumber:String,isRegisteredUser:Boolean,showCancelLink:{type:Boolean,default:!1},email:String},data(){return{otp:"",otpLength:6,otpResendCount:0,showCountdownTimer:!1,isVerifyingOtp:!1,otpErrorMessage:"",tokenToVerifyOtp:null,views:Zg,currentView:Zg.verifyOtp}},async mounted(){this.sendOtp(["sms"])},computed:{...we(ae,["transaction"]),instructionMessage(){const t=this.phoneNumber?sD(this.phoneNumber):this.$t("phoneNumberFallback");return this.$t("instructionMessage",{phoneNumber:t})},canResendOtp(){return this.otpResendCount<2&&!this.showCountdownTimer},nextOtpResendCountConfig(){return aD[this.otpResendCount+1]}},methods:{...It(Qt,["setVaultChannelState"]),hideCountdownTimer(){this.showCountdownTimer=!1},setCurrentView(t){this.currentView=t},async resendOtp(){this.showCountdownTimer=!0,this.otpErrorMessage="";const t=this.nextOtpResendCountConfig.channels;this.otpResendCount++,this.sendOtp(t)},async sendOtp(t){const r={channels:t,email:this.email,...this.isRegisteredUser?{}:{phone:this.phoneNumber}},e=await this.transaction.sendLinkOtp(r);this.tokenToVerifyOtp=e.data.token},async verifyOtp(t){var r;try{const e=this.tokenToVerifyOtp;this.isVerifyingOtp=!0;const n=await this.transaction.verifyLinkOtp({code:t,token:e});this.setVaultChannelState({token:n.data.token}),this.$emit("otpVerified")}catch({response:e}){this.otpErrorMessage=(r=e==null?void 0:e.data)==null?void 0:r.message}finally{this.isVerifyingOtp=!1}},cancel(){this.$emit("cancel")}},watch:{otp(t){this.otpErrorMessage="";const r=Ju(t);t.length===this.otpLength&&r?this.verifyOtp(t):t.length===this.otpLength&&!r&&(this.otpErrorMessage=this.$t("otpIncorrect"))}}},iD={class:"vault-verify-otp row","data-testid":"vault-verify-otp"},oD={class:"col-centered"},lD={key:0},cD={class:"vault-verify-otp--not-received"},uD={class:"title"},dD={class:"description"},hD={key:1},mD={class:"vault-verify-otp__otp-input-container"},pD={key:0,class:"vault-verify-otp__otp-input-container--error","data-testid":"vault-verify-otp-error"},fD={class:"message"},_D={key:1},gD={key:1,class:"countdown-wrapper"},vD={class:"countdown-otp-action"},yD={key:2,class:"countdown-wrapper"};function bD(t,r,e,n,s,a){const i=P("instructions"),o=P("otp-input"),l=P("loader"),d=P("countdown"),u=P("cancel-link");return f(),v("div",iD,[m("div",oD,[r[4]||(r[4]=m("div",{class:"vault-verify-otp__icon-container"},[m("img",{src:Gm,alt:"phone icon"})],-1)),s.currentView===s.views.otpNotReceived?(f(),v("div",lD,[m("div",cD,[m("p",uD,T(t.$t("otpNotReceived.title")),1),m("p",dD,T(t.$t("otpNotReceived.description")),1)]),m("button",{type:"button",onClick:r[0]||(r[0]=g=>a.setCurrentView(s.views.verifyOtp))},T(t.$t("otpNotReceived.back")),1)])):(f(),v("div",hD,[$(i,{message:a.instructionMessage},null,8,["message"]),m("div",mD,[$(o,{otpLength:s.otpLength,modelValue:s.otp,"onUpdate:modelValue":r[1]||(r[1]=g=>s.otp=g)},null,8,["otpLength","modelValue"]),s.otpErrorMessage?(f(),v("div",pD,[m("span",fD,T(s.otpErrorMessage),1)])):D("",!0)]),s.isVerifyingOtp?(f(),se(l,{key:0,class:"loader"})):(f(),v("div",_D,[s.showCountdownTimer&&a.nextOtpResendCountConfig?(f(),se(d,{key:0,animate:!1,countdownDuration:a.nextOtpResendCountConfig.countdownDurationInSeconds,countdownTimerMessage:t.$t(a.nextOtpResendCountConfig.countdownMessage),onCountdownComplete:a.hideCountdownTimer},null,8,["countdownDuration","countdownTimerMessage","onCountdownComplete"])):D("",!0),a.canResendOtp&&a.nextOtpResendCountConfig?(f(),v("div",gD,[m("div",{class:"countdown-info",onClick:r[2]||(r[2]=(...g)=>a.resendOtp&&a.resendOtp(...g)),"data-testid":"vault-resend-otp"},[m("span",vD,T(t.$t(a.nextOtpResendCountConfig.text)),1)])])):a.nextOtpResendCountConfig?D("",!0):(f(),v("div",yD,[m("div",{class:"countdown-info",onClick:r[3]||(r[3]=g=>a.setCurrentView(s.views.otpNotReceived))},[m("span",null,T(t.$t("otpNotReceived.title")),1)])])),e.showCancelLink?(f(),se(u,{key:3,onClick:a.cancel,class:"cancel"},null,8,["onClick"])):D("",!0),Ks(t.$slots,"default")]))]))])])}typeof jg=="function"&&jg(y9);const b9=ee(y9,[["render",bD]]);function Kg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{chargedInWithRate:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["You will be charged for this transaction in ",s(a("chargeCurrency"))," at ",s(a("baseAmount"))," = ",s(a("quoteAmount")),"."])}},fr:{chargedInWithRate:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Vous serez débité pour cette transaction en ",s(a("chargeCurrency"))," au taux de ",s(a("baseAmount"))," = ",s(a("quoteAmount")),"."])}},ar:{chargedInWithRate:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["سيتم تحصيل قيمة هذه المعاملة بـ ",s(a("chargeCurrency"))," بسعر صرف ",s(a("baseAmount"))," = ",s(a("quoteAmount")),"."])}}}})}const CD={class:"exchange-rate-banner","data-testid":"exchange-rate-banner"},wD={class:"exchange-rate-banner__currency-badge","data-testid":"exchange-rate-banner-badge"},kD={class:"exchange-rate-banner__body"},SD={key:0,class:"exchange-rate-banner__text"},ED={key:1,class:"exchange-rate-banner__text"},C9={__name:"ExchangeRateBanner",props:{exchangeRate:{type:Object,required:!0,validator:t=>typeof t.baseCurrency=="string"&&typeof t.quoteCurrency=="string"&&typeof t.rate=="number"},chargeCurrency:{type:String,required:!0},message:{type:String,default:""}},setup(t){const r=t,e=te(()=>r.chargeCurrency.toUpperCase()),n=te(()=>{const a=Wb[r.exchangeRate.baseCurrency]||"".concat(r.exchangeRate.baseCurrency," ");return"".concat(a,"1")}),s=te(()=>"".concat(r.exchangeRate.quoteCurrency," ").concat(r.exchangeRate.rate.toFixed(2)));return(a,i)=>(f(),se(rt,{"enter-active-class":"animated fadeIn","leave-active-class":"animated fadeOut",mode:"out-in",appear:""},{default:ne(()=>[m("div",CD,[m("div",wD,T(e.value),1),m("div",kD,[t.message?(f(),v("p",SD,T(t.message),1)):(f(),v("p",ED,T(a.$t("chargedInWithRate",{chargeCurrency:t.chargeCurrency,baseAmount:n.value,quoteAmount:s.value})),1)),Ks(a.$slots,"currency-switcher",{},void 0,!0)])])]),_:3}))}};typeof Kg=="function"&&Kg(C9);const _c=ee(C9,[["__scopeId","data-v-b240e161"]]),TD=[Hr.NGN];function Bh(t){var r,e;return Ub.includes(t.currency)&&!!((r=t.exchangeRate)!=null&&r.rate||(e=t.exchangeRate)!=null&&e.rates)}function Uh(t){var e,n;return[...Vb,...Bb].includes(t.currency)&&!!((n=(e=t.channelSettings)==null?void 0:e.card)!=null&&n.reach_merchant_id)}function Yg(t){return t.currency===Hr.XOF}function $D(t){return TD.includes(t.currency)}function t1(t,r){return Math.round(r*(t||0))}function Oi(t,r){var g,y,w,k;const{currency:e,countryCode:n}=r!=null?r:{},s=t.exchangeRate;if(!s)return{currency:"",rate:0};const a=s.default_currency||Hr.USD,i=s.rates||{},o=n?Object.values(i).find(E=>{var R;return(R=E==null?void 0:E.supported_country_codes)==null?void 0:R.includes(n)}):null,l=e?i[e]:null,d=i[a],u=(g=o!=null?o:l)!=null?g:d;return{currency:(y=u==null?void 0:u.currency)!=null?y:a,rate:(k=(w=u==null?void 0:u.rate)!=null?w:s.rate)!=null?k:0}}function ID(t,r){var s,a,i;const e=t==null?void 0:t.exchangeRate;if(!e||!r||t.currency===r)return null;const n=(s=e.rates)==null?void 0:s[r];return n!=null&&n.rate?{rate:n.rate,currency:(a=n.currency)!=null?a:r,id:(i=n.id)!=null?i:null}:e.rate&&e.to_currency===r?{rate:e.rate,currency:e.to_currency,id:null}:null}function n1(t,r={}){const{currency:e,countryCode:n}=r,s=e&&e!==t.currency,a=n&&n!==Ca[t.currency];return(Bh(t)||Uh(t))&&(s||a)}function Qg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{chargeInLocalCurrencyNotice:e=>{const{normalize:n}=e;return n(["Your bank's exchange rate and international transaction fees may apply."])},payInCurrency:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay in ",s(a("currency"))," instead"])}},fr:{chargeInLocalCurrencyNotice:e=>{const{normalize:n}=e;return n(["Le taux de change de votre banque et les frais de transaction internationale peuvent s'appliquer."])},payInCurrency:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer en ",s(a("currency"))," à la place"])}},ar:{chargeInLocalCurrencyNotice:e=>{const{normalize:n}=e;return n(["قد يتم تطبيق سعر الصرف لدى البنك ورسوم المعاملات الدولية."])},payInCurrency:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ادفع بـ ",s(a("currency"))," بدلاً من ذلك"])}}}})}const w9={name:"TransactionCurrencySwitcher",components:{ExchangeRateBanner:_c},props:{currency:{type:String,required:!0},card:{type:Object,default:()=>({currency:"",countryCode:""})}},emits:["setCurrency"],computed:{...we(ae,["transaction"]),...we(Qt,["cardChannelState"]),preChargeCheckHints(){return this.cardChannelState.preChargeCheckHints},resolvedExchangeRate(){var t;return this.transaction.preChargeCheckEnabled&&((t=this.preChargeCheckHints)!=null&&t.exchangeRate)?this.preChargeCheckHints.exchangeRate:Oi(this.transaction,this.card)},isPayingInLocalCurrency(){return this.currency===this.transaction.currency},exchangeRate(){return{baseCurrency:this.resolvedExchangeRate.currency,quoteCurrency:this.transaction.currency,rate:1/this.resolvedExchangeRate.rate}},notice(){return this.isPayingInLocalCurrency?this.$t("chargeInLocalCurrencyNotice"):""},switcherDestinationCurrency(){return this.isPayingInLocalCurrency?this.resolvedExchangeRate.currency:this.transaction.currency},isSwitcherLocked(){var t,r,e;return this.transaction.preChargeCheckEnabled&&((t=this.preChargeCheckHints)==null?void 0:t.currencySwitcherLocked)!=null?this.preChargeCheckHints.currencySwitcherLocked:!!((e=(r=this.transaction.channelSettings)==null?void 0:r.card)!=null&&e.currency_switcher_locked)}}},AD={"data-testid":"currency-switch"};function zD(t,r,e,n,s,a){const i=P("exchange-rate-banner");return f(),v("div",AD,[$(i,{"exchange-rate":a.exchangeRate,"charge-currency":e.currency,message:a.notice},{"currency-switcher":ne(()=>[a.isSwitcherLocked?D("",!0):(f(),v("button",{key:0,type:"button",class:"transaction-currency-switcher__cta",onClick:r[0]||(r[0]=o=>t.$emit("setCurrency",a.switcherDestinationCurrency))},T(t.$t("payInCurrency",{currency:a.switcherDestinationCurrency})),1))]),_:1},8,["exchange-rate","charge-currency","message"])])}typeof Qg=="function"&&Qg(w9);const r1=ee(w9,[["render",zD],["__scopeId","data-v-ca3924de"]]),RD={name:"VaultCardLogo.vue",props:{brand:String}},PD={class:"vault-card-logo"};function ND(t,r,e,n,s,a){return f(),v("div",PD,[m("div",{class:pt("vault-card-logo__card ".concat(e.brand))},null,2)])}const MD=ee(RD,[["render",ND],["__scopeId","data-v-0fe46a95"]]);function Ka(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Choose a payment method"])},payWith:e=>{const{normalize:n}=e;return n(["Pay with"])},newAccount:e=>{const{normalize:n}=e;return n(["Add new account"])},newCard:e=>{const{normalize:n}=e;return n(["Add new card"])},change:e=>{const{normalize:n}=e;return n(["Change"])},plusIcon:e=>{const{normalize:n}=e;return n(["Plus icon"])},payAmount:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},recurringMerchantChargeAuthorizationConsent_card:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['By paying, you authorize ',s(a("merchantName"))," to securely charge your card for future transactions."])},recurringMerchantChargeAuthorizationConsent_bank:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['By paying, you authorize ',s(a("merchantName"))," to securely charge your bank account for future transactions."])},learnMore:e=>{const{normalize:n}=e;return n(["Learn more"])}}}})}const k9={name:"VaultPaymentInstrument",emits:["selectPaymentInstrument","changePaymentInstrument"],components:{VaultCardLogo:MD,VaultBankLogo:n9},props:{isDisabled:Boolean,isSelected:Boolean,paymentInstrument:Object},methods:{selectPaymentInstrument(){this.isDisabled||this.$emit("selectPaymentInstrument")}}},LD={class:"label-container"},xD={class:"label-container__logo"},OD={class:"label-container__label"},FD={class:"label-container__label--text"},DD={class:"label-container__label--last4"};function VD(t,r,e,n,s,a){const i=P("vault-bank-logo"),o=P("vault-card-logo");return f(),v("div",{class:pt(["vault-payment-instrument",{"vault-payment-instrument--disabled":e.isDisabled,"vault-payment-instrument--selected":e.isSelected}]),onClick:r[1]||(r[1]=(...l)=>a.selectPaymentInstrument&&a.selectPaymentInstrument(...l))},[m("div",LD,[m("div",xD,[e.paymentInstrument.type==="bank"?(f(),se(i,{key:0,code:e.paymentInstrument.brand},null,8,["code"])):e.paymentInstrument.type==="card"?(f(),se(o,{key:1,brand:e.paymentInstrument.brand},null,8,["brand"])):D("",!0)]),m("div",OD,[m("p",FD,T(e.paymentInstrument.label),1),r[2]||(r[2]=m("p",{class:"label-container__label--separator"},"••••",-1)),m("p",DD,T(e.paymentInstrument.last4),1)])]),e.isSelected?(f(),v("p",{key:0,"data-testid":"change-vault-payment-instrument",class:"change",onClick:r[0]||(r[0]=l=>t.$emit("changePaymentInstrument"))},T(t.$t("change")),1)):D("",!0)],2)}typeof Ka=="function"&&Ka(k9);const S9=ee(k9,[["render",VD],["__scopeId","data-v-c6077b7f"]]),BD={class:"vault-payment-screen"},UD={key:1,class:"vault-payment-screen__recurring-merchant-charge-authorization-consent","data-testid":"recurring-merchant-charge-authorization-consent"},HD=["innerHTML"],E9={__name:"VaultPaymentScreen",props:{paymentButtonText:String,selectedPaymentInstrument:{type:Object,required:!0},isChargingPaymentInstrument:Boolean,showCurrencySwitcher:Boolean,paymentCurrency:String,card:{type:Object,default:()=>({currency:"",countryCode:""})}},emits:["changePaymentInstrument","chargePaymentInstrument","setPaymentCurrency","toggleAboutVault"],setup(t){const{transaction:r}=ae(),e=te(()=>Fd(r)),n=te(()=>Gh(r.merchant.name,{maxCharacterLength:15}));return(s,a)=>(f(),v("div",BD,[$(S9,{class:"vault-payment-screen__selected-payment-instrument",paymentInstrument:t.selectedPaymentInstrument,isDisabled:t.isChargingPaymentInstrument,onChangePaymentInstrument:a[0]||(a[0]=i=>s.$emit("changePaymentInstrument")),isSelected:""},null,8,["paymentInstrument","isDisabled"]),t.showCurrencySwitcher?(f(),se(r1,{key:0,class:"vault-payment-screen__transaction-currency-switcher",currency:t.paymentCurrency,card:t.card,onSetCurrency:a[1]||(a[1]=i=>s.$emit("setPaymentCurrency",i))},null,8,["currency","card"])):D("",!0),$(dt,{loading:t.isChargingPaymentInstrument,disabled:!t.selectedPaymentInstrument.code,onClick:a[2]||(a[2]=i=>s.$emit("chargePaymentInstrument")),"data-testid":"pay-with-vault-payment-instrument"},{default:ne(()=>[Be(T(t.paymentButtonText),1)]),_:1},8,["loading","disabled"]),e.value?(f(),v("div",UD,[m("span",{innerHTML:s.$t("recurringMerchantChargeAuthorizationConsent_".concat(t.selectedPaymentInstrument.type),{merchantName:n.value})},null,8,HD),m("span",{onClick:a[3]||(a[3]=i=>s.$emit("toggleAboutVault")),class:"vault-payment-screen__recurring-merchant-charge-authorization-consent--learn-more"},T(s.$t("learnMore")),1)])):D("",!0)]))}};typeof Ka=="function"&&Ka(E9);const qD=ee(E9,[["__scopeId","data-v-b3ce87c7"]]),WD="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%202.91699V11.0837'%20stroke='%233BB75E'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3cpath%20d='M2.91797%207H11.0846'%20stroke='%233BB75E'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20/%3e%3c/svg%3e",GD=["data-testid"],jD=["onClick"],ZD=["alt"],KD={class:"label"},T9={__name:"VaultPaymentInstruments",props:{paymentInstruments:{type:Object,required:!0,default(){return{banks:[],cards:[]}}}},emits:["selectPaymentInstrument","addPaymentInstrument"],setup(t){const{availableChannels:r,transaction:e}=ae(),n=i=>i===Or.BANK,s=i=>n(i)?r9(e):r.some(({key:o})=>o===i),a=i=>n(i)?"vault-linked-account-section":"vault-saved-card-section";return(i,o)=>(f(!0),v(gt,null,Ot(t.paymentInstruments,(l,d)=>(f(),v("div",{class:"vault-payment-instruments",key:d},[l.length>0?(f(),v("div",{key:0,"data-testid":a(l[0].type)},[(f(!0),v(gt,null,Ot(l,u=>(f(),se(S9,{class:"vault-payment-instruments__payment-instrument",key:u.code,paymentInstrument:u,onSelectPaymentInstrument:g=>i.$emit("selectPaymentInstrument",u)},null,8,["paymentInstrument","onSelectPaymentInstrument"]))),128)),s(l[0].type)?(f(),v("div",{key:0,class:"vault-payment-instruments__add-payment-instrument",onClick:u=>i.$emit("addPaymentInstrument",l[0].type)},[m("img",{class:"logo",src:WD,alt:i.$t("plusIcon")},null,8,ZD),m("p",KD,T(n(l[0].type)?i.$t("newAccount"):i.$t("newCard")),1)],8,jD)):D("",!0)],8,GD)):D("",!0)]))),128))}};typeof Ka=="function"&&Ka(T9);const YD=ee(T9,[["__scopeId","data-v-0283c527"]]),bl={SELECT_PAYMENT_INSTRUMENT:"select-payment-instrument",PAY:"pay",LOADING:"loading",ABOUT_VAULT:"about-vault"},$9={name:"PayWithVault",components:{VaultPaymentInstruments:YD,VaultPaymentScreen:qD,Loader:tn,AboutVault:Xm},emits:["callback","addPaymentInstrument"],props:{types:Array,preSelectedAccount:String},mixins:[Kr],data(){return{views:bl,currentView:bl.LOADING,selectedPaymentInstrument:null,chargingPaymentInstrument:!1,banks:[],cards:[],paymentInstruments:{},paymentCurrency:"",hasSelectedInternationalCard:!1}},async created(){if(this.vaultChannelState.paymentInstruments)this.setupPaymentInstruments(this.vaultChannelState.paymentInstruments);else{this.setCurrentView(bl.LOADING);try{const{data:t}=await this.transaction.getLinkPaymentInstruments({token:this.vaultChannelState.token}),r=(t.banks||[]).map(n=>{var s;return{label:((s=w3[n.bank_code])==null?void 0:s.acronym)||n.bank_name,code:n.code,brand:n.bank_code,type:Or.BANK,accountNumber:n.account_number,isDefault:n.default,last4:n.account_number.slice(-4)}}),e=(t.cards||[]).map(n=>({label:n.brand,code:n.code,brand:n.brand,type:Or.CARD,countryCode:n.country_code,currency:n.currency,isDefault:n.default,last4:n.last4}));this.setVaultChannelState({paymentInstruments:{banks:r,cards:e}}),this.setupPaymentInstruments({banks:r,cards:e})}catch(t){this.emitPaymentChannelError(this,t),this.setVaultChannelState({paymentInstruments:null})}finally{this.loadingPaymentInstruments=!1}}},computed:{...we(ae,["transaction","transactionAmount","availableChannels","paymentInstrument","reusePaymentInfo","lastResponse"]),...we(Qt,["vaultChannelState"]),resolvedExchangeRate(){return Oi(this.transaction,this.selectedPaymentInstrument)},paymentButtonText(){const t=this.paymentCurrency&&this.paymentCurrency!==this.transaction.currency?t1(this.resolvedExchangeRate.rate,this.transactionAmount):this.transactionAmount,r=this.paymentCurrency||this.transaction.currency;return this.$t("payAmount",{amount:Qn({amount:t,currency:r})})},paymentErrorOccurred(){var t;return((t=this.lastResponse)==null?void 0:t.status)==="failed"&&!!this.paymentInstrument.vault},showCurrencySwitcher(){const{rate:t,currency:r}=this.resolvedExchangeRate;return this.hasSelectedInternationalCard&&!!t&&r!==this.transaction.currency}},methods:{...It(ae,["setIsCharging","savePaymentInstrument"]),...It(Qt,["setVaultChannelState"]),setupPaymentInstruments({banks:t,cards:r}){const e=this.transaction.currency===Hr.NGN;this.banks=this.canShowPaymentInstrumentType(Or.BANK)&&e?t:[],this.cards=this.canShowPaymentInstrumentType(Or.CARD)?r:[];const n=this.paymentErrorOccurred&&this.reusePaymentInfo,s=this.paymentErrorOccurred&&!this.reusePaymentInfo;if(this.preSelectedAccount){const a=this.banks.find(({accountNumber:i})=>i===this.preSelectedAccount);a&&this.selectPaymentInstrument(a)}else if(n)this.selectPaymentInstrument(this.paymentInstrument.vault);else if(s)this.selectedPaymentInstrument=this.paymentInstrument.vault,this.orderPaymentInstrumentsByType(this.paymentInstrument.vault),this.setCurrentView(bl.SELECT_PAYMENT_INSTRUMENT);else{const a=[...this.banks,...this.cards],i=a.find(({isDefault:o})=>o)||a[0];this.selectPaymentInstrument(i)}},selectPaymentInstrument(t){var r;this.hasSelectedInternationalCard=t.type===Or.CARD&&n1(this.transaction,{countryCode:t.countryCode,currency:t.currency}),this.paymentCurrency=this.hasSelectedInternationalCard?Oi(this.transaction,{currency:t.currency,countryCode:t.countryCode}).currency:this.transaction.currency,t.code!==((r=this.selectedPaymentInstrument)==null?void 0:r.code)&&this.orderPaymentInstrumentsByType(t),this.selectedPaymentInstrument=t,this.savePaymentInstrument({vault:t}),this.setCurrentView(bl.PAY)},orderPaymentInstrumentsByType(t){if(t.type===Or.BANK){const r=this.banks.filter(({code:e})=>e!==t.code);this.paymentInstruments={banks:[t,...r],cards:this.cards}}else if(t.type===Or.CARD){const r=this.cards.filter(({code:e})=>e!==t.code);this.paymentInstruments={cards:[t,...r],banks:this.banks}}},setCurrentView(t){this.currentView=t},onChargeResponse(t){t.status==="pending"?this.$emit("callback",{status:"requery"}):this.$emit("callback",t)},async chargePaymentInstrument(){var t,r;try{this.chargingPaymentInstrument=!0,this.setIsCharging(!0);const e=await this.transaction.chargeLinkPaymentInstrument({instrumentCode:(t=this.selectedPaymentInstrument)==null?void 0:t.code,instrumentType:(r=this.selectedPaymentInstrument)==null?void 0:r.type,token:this.vaultChannelState.token,selectedCurrency:this.paymentCurrency});this.onChargeResponse(e)}catch(e){this.emitPaymentChannelError(this,e)}finally{this.chargingPaymentInstrument=!1,this.setIsCharging(!1)}},isOneInstrumentType(t){return this.types.length===1&&this.types.includes(t)},canShowPaymentInstrumentType(t){return this.availableChannels.some(({key:r})=>r===t)&&this.types.includes(t)},addPaymentInstrument(t){this.$emit("addPaymentInstrument",t)},setPaymentCurrency(t){this.paymentCurrency=t}}},QD={key:1,class:"pay-with-vault"},JD={class:"pay-with-vault__title"},XD={class:"pay-with-vault__title"};function eV(t,r,e,n,s,a){const i=P("loader"),o=P("about-vault"),l=P("vault-payment-instruments"),d=P("vault-payment-screen");return s.currentView===s.views.LOADING?(f(),se(i,{key:0})):(f(),v("div",QD,[ct($(o,{onBack:r[0]||(r[0]=u=>a.setCurrentView(s.views.PAY))},null,512),[[hr,s.currentView===s.views.ABOUT_VAULT]]),ct(m("div",null,[m("p",JD,T(t.$t("payWith")),1),$(l,{paymentInstruments:s.paymentInstruments,onSelectPaymentInstrument:a.selectPaymentInstrument,onAddPaymentInstrument:a.addPaymentInstrument},null,8,["paymentInstruments","onSelectPaymentInstrument","onAddPaymentInstrument"])],512),[[hr,s.currentView===s.views.SELECT_PAYMENT_INSTRUMENT]]),ct(m("div",null,[m("p",XD,T(t.$t("payWith")),1),$(d,{selectedPaymentInstrument:s.selectedPaymentInstrument,isChargingPaymentInstrument:s.chargingPaymentInstrument,showCurrencySwitcher:a.showCurrencySwitcher,paymentCurrency:s.paymentCurrency,card:s.selectedPaymentInstrument||{},onSetPaymentCurrency:a.setPaymentCurrency,onChangePaymentInstrument:r[1]||(r[1]=u=>a.setCurrentView(s.views.SELECT_PAYMENT_INSTRUMENT)),onChargePaymentInstrument:a.chargePaymentInstrument,onToggleAboutVault:r[2]||(r[2]=u=>a.setCurrentView(s.views.ABOUT_VAULT)),paymentButtonText:a.paymentButtonText},null,8,["selectedPaymentInstrument","isChargingPaymentInstrument","showCurrencySwitcher","paymentCurrency","card","onSetPaymentCurrency","onChargePaymentInstrument","paymentButtonText"])],512),[[hr,s.currentView===s.views.PAY]])]))}typeof Ka=="function"&&Ka($9);const I9=ee($9,[["render",eV],["__scopeId","data-v-e75d2924"]]);function Jg(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{verifyingYourDetails:e=>{const{normalize:n}=e;return n(["Verifying your details to guarantee a secure experience"])}}}})}const A9={LINKED_ACCOUNTS:"linked-accounts",TRANSFER_NOTICE:"transfer-notice",TRANSFER_CREDIT_REQUEST:"transfer-credit-request",TRANSFER_HELP_SCREEN:"transfer-help-screen",INCORRECT_AMOUNT_ERROR_SCREEN:"incorrect-amount-error-screen"},Xg={LOADING:"loading",ACCOUNT_FORM:"account-form",PHONE_NUMBER_FORM:"phone-number-form",VERIFY_OTP:"verify-otp",...A9},tV=Object.values(A9),z9={name:"BankVault",components:{VaultVerifyOtp:b9,AccountDetailsForm:wL,PhoneNumberForm:jF,PayWithVault:I9,TransferNotice:yO,Loader:tn,CreditRequest:X5,Help:t9,IncorrectAmountErrorResolution:XF,Instructions:Et},props:{bank:Object,preSelectedView:String,showCancelLink:Boolean},data(){return{views:Xg,currentView:Xg.ACCOUNT_FORM,phoneNumber:"",accountNumber:"",accountName:"",email:"",isVerifyingAccountDetails:!1,canShowLinkedAccounts:!1,isDelayedTransferConfirmation:!1,creditRequestStatusReQueryCount:0,creditRequestStatus:"",loaderMessage:""}},emits:["reset","callback","changeBank"],mixins:[Kr],created(){if(this.setCurrentView(this.preSelectedView||this.views.ACCOUNT_FORM),this.canShowLinkedAccounts=this.preSelectedView===this.views.LINKED_ACCOUNTS,this.reusePaymentInfo&&this.paymentInstrument.bank){const{accountNumber:t,email:r,phoneNumber:e,accountName:n}=this.paymentInstrument.bank;this.accountNumber=t,this.email=r,this.phoneNumber=e,this.accountName=n}},computed:{...we(ae,["transaction","reusePaymentInfo","paymentInstrument"]),...we(Qt,["vaultChannelState","bankChannelState"]),isRegisteredUser(){return this.bankChannelState.isRegisteredVaultUser},canFulfilLateNotification(){var r,e;const{merchant:t}=this.transaction;return!!((e=(r=t.channelSettings)==null?void 0:r.bank_transfer)!=null&&e.fulfil_late_notification)},paymentInstrumentTypes(){return[Or.BANK]}},methods:{...It(Qt,["setBankChannelState"]),...It(ae,["savePaymentInstrument"]),changeBank(t){this.$emit("changeBank",t)},async getManagedAccount(){return(await this.transaction.generateLinkManagedAccount({token:this.vaultChannelState.token,accountNumber:this.accountNumber,accountName:this.accountName,bankCode:this.bank.code,currency:this.transaction.currency,countryCode:Ca[this.transaction.currency],fulfilLateNotification:this.canFulfilLateNotification})).data},async handleOtpVerified(){this.canShowLinkedAccounts?this.currentView=this.views.LINKED_ACCOUNTS:this.setupTransferView()},async setupTransferView(){if(this.bankChannelState.vaultManagedAccount)this.currentView=this.views.TRANSFER_NOTICE;else try{this.currentView=this.views.LOADING,this.loaderMessage="";const t=await this.getManagedAccount();this.setBankChannelState({vaultManagedAccount:t}),this.currentView=this.views.TRANSFER_NOTICE,this.initiateTransferListener(t.pusher_channel)}catch(t){this.setupErrorView(t)}},setupErrorView(t){var e,n;const r=((n=(e=t.response)==null?void 0:e.data)==null?void 0:n.message)||t.message;this.$emit("callback",{status:"failed",message:r,data:{type:k3.BANK_VAULT}})},async handleVerifyAccountDetails({email:t,accountNumber:r,accountName:e}){try{this.email=t,this.accountNumber=r,this.accountName=e,this.isVerifyingAccountDetails=!0;const n={email:t,accountNumber:r,bankCode:this.bank.code},s=await this.transaction.verifyLinkProfile(n),a=!!s.data.account_is_payment_instrument;this.setBankChannelState({isRegisteredVaultUser:s.data.is_registered_user}),this.canShowLinkedAccounts=a,this.savePaymentInstrument({bank:{bank:this.bank,accountNumber:r,email:t,accountName:e,...s.data.registered_phone&&{phoneNumber:s.data.registered_phone}}}),s.data.is_registered_user&&a?(this.phoneNumber=s.data.registered_phone,this.setCurrentView(this.views.LINKED_ACCOUNTS)):s.data.is_registered_user?(this.phoneNumber=s.data.registered_phone,this.handleValidateAccount()):this.setCurrentView(this.views.PHONE_NUMBER_FORM)}catch(n){this.bankChannelState.accountValidationAttempts&&this.resetAccountValidationAttempts(),this.setupErrorView(n)}finally{this.isVerifyingAccountDetails=!1}},handleSetPhoneNumber(t){this.phoneNumber=t,this.handleValidateAccount(t)},async handleValidateAccount(t){try{this.currentView=this.views.LOADING,this.loaderMessage=this.$t("verifyingYourDetails");const r=await this.transaction.validateLinkCustomerBankAccount({email:this.email,bankCode:this.bank.code,accountNumber:this.accountNumber,...t&&{phoneNumber:t}});r.data.validated?(this.resetAccountValidationAttempts(),this.setCurrentView(this.views.TRANSFER_NOTICE)):(this.setBankChannelState({accountValidationAttempts:Number(r.data.attempts||1)}),this.setupErrorView({message:Zh.BANK_VALIDATION_MISMATCH}))}catch(r){this.resetAccountValidationAttempts(),this.setupErrorView(r)}},resetAccountValidationAttempts(){this.setBankChannelState({accountValidationAttempts:0})},listenForBankTransferChargeCallback(t){if(t.status!=="error"){const{status:r,data:{message_type:e}={}}=t;this.creditRequestStatus=r;const n=e===In.types.INCORRECT_AMOUNT,s=r===In.statuses.SUCCESS;this.isAcceptableCreditRequestStatus(this.creditRequestStatus)&&this.currentView!==this.views.TRANSFER_CREDIT_REQUEST?this.setCurrentView(this.views.TRANSFER_CREDIT_REQUEST):n?this.setCurrentView(this.views.INCORRECT_AMOUNT_ERROR_SCREEN):s&&this.currentView===this.views.TRANSFER_CREDIT_REQUEST?this.handleTransferReceivedInCreditRequestView(t):this.$emit("callback",t)}},listenForBankTransferCharge(t){this.transaction.listenForLinkBankPayWithTransferCharge(t,this.listenForBankTransferChargeCallback)},setCurrentView(t){tV.includes(t)&&!this.vaultChannelState.token?this.currentView=this.views.VERIFY_OTP:t===this.views.TRANSFER_NOTICE?this.setupTransferView():this.currentView=t},reset(){this.$emit("reset")},isAcceptableCreditRequestStatus(t){const{CREDIT_REQUEST_RECEIVED:r,CREDIT_REQUEST_PENDING:e}=In.statuses;return[r,e].includes(t)},async handleReQueryCreditRequestStatus(){try{const t=await this.transaction.requery(),{status:r}=t;this.creditRequestStatusReQueryCount+=1,this.creditRequestStatus=r,this.isAcceptableCreditRequestStatus(r)?this.reQueryCreditRequestStatus():r===In.statuses.SUCCESS?this.handleTransferReceivedInCreditRequestView(t):this.$emit("callback",t)}catch(t){}},handleResponse(t){this.$emit("callback",t)},reQueryCreditRequestStatus(){const t=[0,6e4,18e4,3e5,48e4,78e4];setTimeout(this.handleReQueryCreditRequestStatus,t[this.creditRequestStatusReQueryCount])},handleTransferReceivedInCreditRequestView(t){setTimeout(()=>this.$emit("callback",t),1e3)},initiateTransferListener(t){setTimeout(()=>{this.isDelayedTransferConfirmation=!0},18e4),this.listenForBankTransferCharge(t)}}};function nV(t,r,e,n,s,a){const i=P("loader"),o=P("instructions"),l=P("account-details-form"),d=P("phone-number-form"),u=P("vault-verify-otp"),g=P("pay-with-vault"),y=P("transfer-notice"),w=P("credit-request"),k=P("help"),E=P("incorrect-amount-error-resolution");return f(),se(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.LOADING?(f(),v("div",{key:s.views.LOADING},[$(i),s.loaderMessage?(f(),se(o,{key:0,message:s.loaderMessage},null,8,["message"])):D("",!0)])):s.currentView===s.views.ACCOUNT_FORM?(f(),se(l,{key:s.views.ACCOUNT_FORM,bank:e.bank,onChangeBank:a.changeBank,accountDetails:{accountNumber:s.accountNumber,accountName:s.accountName,email:s.email},onVerifyAccountDetails:a.handleVerifyAccountDetails,isLoading:s.isVerifyingAccountDetails},null,8,["bank","onChangeBank","accountDetails","onVerifyAccountDetails","isLoading"])):s.currentView===s.views.PHONE_NUMBER_FORM?(f(),se(d,{key:s.views.PHONE_NUMBER_FORM,onSetPhoneNumber:a.handleSetPhoneNumber,account:{accountNumber:s.accountNumber,bankName:e.bank.name},onEditAccount:r[0]||(r[0]=R=>a.setCurrentView(s.views.ACCOUNT_FORM))},null,8,["onSetPhoneNumber","account"])):s.currentView===s.views.VERIFY_OTP?(f(),se(u,{key:s.views.VERIFY_OTP,email:s.email,isRegisteredUser:a.isRegisteredUser,phoneNumber:s.phoneNumber,showCancelLink:e.showCancelLink,onCancel:a.reset,onOtpVerified:a.handleOtpVerified},null,8,["email","isRegisteredUser","phoneNumber","showCancelLink","onCancel","onOtpVerified"])):s.currentView===s.views.LINKED_ACCOUNTS?(f(),se(g,{key:s.views.LINKED_ACCOUNTS,types:a.paymentInstrumentTypes,preSelectedAccount:s.accountNumber,onCallback:a.handleResponse,onAddPaymentInstrument:r[1]||(r[1]=R=>a.setCurrentView(s.views.ACCOUNT_FORM))},null,8,["types","preSelectedAccount","onCallback"])):s.currentView===s.views.TRANSFER_NOTICE?(f(),se(y,{key:s.views.TRANSFER_NOTICE,bankName:e.bank.name,accountNumber:s.accountNumber,onRequery:r[2]||(r[2]=R=>a.setCurrentView(s.views.TRANSFER_CREDIT_REQUEST)),isDelayedConfirmation:s.isDelayedTransferConfirmation,onCallback:a.handleResponse},null,8,["bankName","accountNumber","isDelayedConfirmation","onCallback"])):s.currentView===s.views.TRANSFER_CREDIT_REQUEST?(f(),se(w,{key:s.views.TRANSFER_CREDIT_REQUEST,onStartRequery:a.reQueryCreditRequestStatus,onBackToAccount:r[3]||(r[3]=R=>a.setCurrentView(s.views.TRANSFER_NOTICE)),onShowHelp:r[4]||(r[4]=R=>a.setCurrentView(s.views.TRANSFER_HELP_SCREEN)),isDelayedConfirmation:s.creditRequestStatusReQueryCount>1,creditRequestStatus:s.creditRequestStatus,canFulfilLateNotification:a.canFulfilLateNotification},null,8,["onStartRequery","isDelayedConfirmation","creditRequestStatus","canFulfilLateNotification"])):s.currentView===s.views.TRANSFER_HELP_SCREEN?(f(),se(k,{key:s.views.TRANSFER_HELP_SCREEN,onContinueWaiting:r[5]||(r[5]=R=>a.setCurrentView(s.views.TRANSFER_CREDIT_REQUEST)),canFulfilLateNotification:a.canFulfilLateNotification},null,8,["canFulfilLateNotification"])):s.currentView===s.views.INCORRECT_AMOUNT_ERROR_SCREEN?(f(),se(E,{key:s.views.INCORRECT_AMOUNT_ERROR_SCREEN,onRetryTransfer:r[6]||(r[6]=R=>a.setCurrentView(s.views.TRANSFER_NOTICE))})):D("",!0)]),_:1})}typeof Jg=="function"&&Jg(z9);const rV=ee(z9,[["render",nV]]),sV="data:image/svg+xml,%3csvg%20width='80'%20height='24'%20viewBox='0%200%2080%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M48.3522%208.63669V20.0429H45.2164V18.3771C44.8963%2018.9559%2044.4316%2019.4308%2043.8731%2019.75C43.2951%2020.0708%2042.65%2020.2333%2041.997%2020.2227C40.6461%2020.2227%2039.6366%2019.825%2038.9684%2019.0296C38.3001%2018.2342%2037.9667%2017.0344%2037.9681%2015.43V8.63669H41.1843V15.4978C41.1843%2016.8775%2041.7457%2017.5674%2042.8685%2017.5674C43.5361%2017.5674%2044.0764%2017.3276%2044.4895%2016.8481C44.9026%2016.3686%2045.1088%2015.7387%2045.1081%2014.9584V8.63669H48.3522ZM60.6488%203.43457V20.0429H57.4712V18.3556C57.142%2018.942%2056.6616%2019.4177%2056.0861%2019.7274C55.4593%2020.065%2054.7635%2020.2351%2054.0599%2020.2227C53.1815%2020.238%2052.3189%2019.9753%2051.5834%2019.4684C50.8415%2018.9453%2050.2541%2018.2124%2049.8885%2017.3536C49.4832%2016.4489%2049.2806%2015.4104%2049.2806%2014.238C49.2806%2013.0657%2049.4832%2012.0347%2049.8885%2011.145C50.2535%2010.3014%2050.8374%209.5839%2051.5727%209.07548C52.3159%208.58101%2053.1803%208.32739%2054.0588%208.34605C54.7472%208.33713%2055.4274%208.50314%2056.0421%208.83008C56.6147%209.12899%2057.0953%209.59283%2057.4283%2010.1679V3.43457H60.6488ZM56.8365%2016.769C57.2654%2016.1922%2057.4798%2015.3629%2057.4798%2014.281C57.4798%2013.2157%2057.2629%2012.3947%2056.829%2011.8179C56.3952%2011.2411%2055.7877%2010.9524%2055.0065%2010.9516C54.2096%2010.9516%2053.591%2011.2366%2053.1508%2011.8066C52.7105%2012.3766%2052.4904%2013.1863%2052.4904%2014.2358C52.4904%2015.3154%2052.7105%2016.1515%2053.1508%2016.7441C53.591%2017.3367%2054.2096%2017.633%2055.0065%2017.633C55.7977%2017.6345%2056.4077%2017.3465%2056.8365%2016.769ZM72.9454%208.63669V20.0429H69.7668V18.3556C69.4375%2018.9424%2068.9567%2019.4182%2068.3806%2019.7274C67.7539%2020.0641%2067.0586%2020.2334%2066.3554%2020.2205C65.4776%2020.2455%2064.6126%2019.9947%2063.8702%2019.5C63.1279%2019.0052%2062.5417%2018.2888%2062.1862%2017.4419C61.7809%2016.55%2061.5783%2015.5189%2061.5783%2014.3488C61.5783%2013.1787%2061.7809%2012.1361%2062.1862%2011.2208C62.5497%2010.3579%2063.1373%209.62124%2063.8811%209.09584C64.6165%208.59101%2065.4782%208.32988%2066.3554%208.34605C67.0613%208.3341%2067.7583%208.51238%2068.3806%208.864C68.955%209.18603%2069.4346%209.66839%2069.7668%2010.2584V8.63669H72.9454ZM69.1278%2016.7791C69.5566%2016.2092%2069.7711%2015.3844%2069.7711%2014.3047C69.7711%2013.2251%2069.5566%2012.3958%2069.1278%2011.8168C68.699%2011.2385%2068.0875%2010.9498%2067.2935%2010.9505C66.4994%2010.9513%2065.8809%2011.2517%2065.4377%2011.8518C64.9975%2012.455%2064.777%2013.2877%2064.7763%2014.35C64.7756%2015.4123%2064.9925%2016.2258%2065.427%2016.7905C65.8609%2017.3521%2066.483%2017.6334%2067.2935%2017.6341C68.089%2017.6349%2068.7004%2017.3502%2069.1278%2016.7803V16.7791ZM37.3131%2020.2035H33.3175L29.0185%2015.0319V20.2035H25.7573V3.43457H29.0185V13.6183L33.1224%208.67514H37.0322L32.388%2014.2165L37.3131%2020.2035ZM16.8226%2020.2092L10.5639%2012.6095L13.9817%2020.2092H11.6124L8.12601%2012.4614L9.57545%2020.2092H8.11958L6.66907%2012.4501V20.2092H6.09766V3.43457H6.66907V11.8032L8.13995%203.43457H9.59153L8.11422%2011.8394L11.6681%203.43457H14.0117L10.4717%2011.8089L16.8998%203.43457H20.5727L13.9238%2012.0984L20.6038%2020.2092H16.8226Z'%20fill='%2341276D'%20/%3e%3cpath%20d='M75.6466%2020.024C76.6217%2020.024%2077.4123%2019.1901%2077.4123%2018.1614C77.4123%2017.1327%2076.6217%2016.2988%2075.6466%2016.2988C74.6714%2016.2988%2073.8809%2017.1327%2073.8809%2018.1614C73.8809%2019.1901%2074.6714%2020.024%2075.6466%2020.024Z'%20fill='%2341276D'%20/%3e%3c/svg%3e",aV={name:"PhoneNumberInput",props:{modelValue:{type:[String,Number]},disabled:Boolean,placeholder:String,hasError:Boolean,required:Boolean,"country-code":{type:String,validator(t){return Object.keys($i).indexOf(t)!==-1}}},data(){return{country:this.countryCode}},emits:["update:modelValue","onBlur"],computed:{countryClass(){return this.country&&"visible"},flag(){const t=$i[this.country];return t?Wh.parse(t.flag.emoji,{folder:"svg",ext:".svg"}).replace("twemoji.maxcdn.com/v","cdnjs.cloudflare.com/ajax/libs/twemoji"):null}},created(){this.modelValue&&this.parse()},methods:{parse(t){var e,n;const r=((e=t==null?void 0:t.target)==null?void 0:e.value)||this.modelValue;this.country=this.countryCode||((n=mr(r,this.countryCode))==null?void 0:n.country),this.$emit("update:modelValue",r)},focus(){this.$refs.input.focus()}}},iV={class:"input-wrapper"},oV=["value","placeholder","required","disabled"],lV=["innerHTML"];function cV(t,r,e,n,s,a){return f(),v("div",iV,[m("input",{type:"tel",ref:"input",name:"phoneNumber",class:pt(["input",{"input--error":e.hasError}]),value:e.modelValue,onInput:r[0]||(r[0]=(...i)=>a.parse&&a.parse(...i)),placeholder:e.placeholder,required:e.required,disabled:e.disabled,onBlur:r[1]||(r[1]=i=>t.$emit("onBlur",i)),"data-testid":"phone-number-input","aria-label":"Phone number"},null,42,oV),$(rt,{name:"flag"},{default:ne(()=>[a.flag?(f(),v("div",{key:0,class:"flag-icon",innerHTML:a.flag},null,8,lV)):D("",!0)]),_:1})])}const Ui=ee(aV,[["render",cV],["__scopeId","data-v-e0501613"]]);function ev(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Enter your phone number"])},continue:e=>{const{normalize:n}=e;return n(["Continue"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Click here to choose"])}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Saisir votre numéro de téléphone"])},continue:e=>{const{normalize:n}=e;return n(["Continuer"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Cliquez ici pour choisir"])}},ar:{instructionMessage:e=>{const{normalize:n}=e;return n(["أدخل رقم هاتفك"])},continue:e=>{const{normalize:n}=e;return n(["استمرار"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["اضغط هنا للاختيار"])}}}})}const R9={name:"PhoneNumberForm",props:{bank:Object,countryCode:{type:String,default:"NG"}},components:{Instructions:Et,PaymentButton:dt,PhoneNumberInput:Ui},data(){return{selectedBank:this.bank,phoneNumber:"",isValidPhoneNumber:!1}},created(){if(this.reusePaymentInfo&&this.paymentInstrument.bank){const{bank:t,phoneNumber:r}=this.paymentInstrument.bank;this.selectedBank=t,this.phoneNumber=r}},mounted(){this.$refs.phoneNumber.focus()},emits:["changeBank","submit"],computed:{...we(ae,["paymentInstrument","reusePaymentInfo"]),...we(ls,["banks"])},methods:{...It(ae,["savePaymentInstrument"]),onChange(t){this.$emit("changeBank",t)},onSubmit(){var r;const t=(r=mr(this.phoneNumber,this.countryCode))==null?void 0:r.format("E.164");this.$emit("submit",t),this.savePaymentInstrument({bank:{bank:this.selectedBank,phoneNumber:this.phoneNumber}})},onInput(t){var e,n;const r=(e=t==null?void 0:t.target)==null?void 0:e.value;this.isValidPhoneNumber=(n=mr(r,this.countryCode))==null?void 0:n.isValid()}}},uV={id:"phone-number-form","data-testid":"phone-number-form"},dV={class:"row"},hV={class:"col-10-sm col-centered"},mV={class:"form-group"},pV={class:"select-wrap"},fV={value:null,disabled:""},_V=["value"],gV={class:"form-group"};function vV(t,r,e,n,s,a){const i=P("instructions"),o=P("phone-number-input"),l=P("payment-button");return f(),v("div",uV,[m("form",{onSubmit:r[3]||(r[3]=jt((...d)=>a.onSubmit&&a.onSubmit(...d),["prevent"])),class:"form"},[$(i,{message:t.$t("instructionMessage")},null,8,["message"]),m("div",dV,[m("div",hV,[m("div",mV,[m("div",pV,[ct(m("select",{ref:"bankName",name:"bankName",class:"select","onUpdate:modelValue":r[0]||(r[0]=d=>s.selectedBank=d),onChange:r[1]||(r[1]=d=>a.onChange(s.selectedBank)),"data-testid":"bank-select"},[m("option",fV,T(t.$t("clickHereToChoose")),1),(f(!0),v(gt,null,Ot(t.banks,d=>(f(),v("option",{key:d.id,value:d},T(d.name),9,_V))),128))],544),[[ks,s.selectedBank]]),r[4]||(r[4]=m("div",{class:"select-icon"},null,-1))])]),m("div",gV,[$(o,{"country-code":e.countryCode,required:!0,placeholder:"0802 345 6789",modelValue:s.phoneNumber,"onUpdate:modelValue":r[2]||(r[2]=d=>s.phoneNumber=d),onInput:a.onInput,ref:"phoneNumber",name:"phoneNumber"},null,8,["country-code","modelValue","onInput"])]),$(l,{"data-testid":"phone-number-form-continue",disabled:!s.isValidPhoneNumber},{default:ne(()=>[Be(T(t.$t("continue")),1)]),_:1},8,["disabled"])])])],32)])}typeof ev=="function"&&ev(R9);const yV=ee(R9,[["render",vV]]);function tv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Please enter your Pay ID to authorize this payment"])},authorize:e=>{const{normalize:n}=e;return n(["Authorize"])},payIdLink:e=>{const{normalize:n}=e;return n(["How to generate a Pay ID"])},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Enter your Pay ID"])},invalid:e=>{const{normalize:n}=e;return n(["Invalid Pay ID"])}}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["PVeuillez entrer votre Pay ID pour autoriser ce paiement"])},authorize:e=>{const{normalize:n}=e;return n(["Autoriser"])},payIdLink:e=>{const{normalize:n}=e;return n(["Comment obtenir un Pay ID"])},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Entrez votre Pay ID"])},invalid:e=>{const{normalize:n}=e;return n(["Pay ID non valide"])}}}}})}const P9={name:"PayIdForm",components:{Instructions:Et,PaymentButton:dt},data(){return{canShowError:!1,processing:!1,payId:""}},emits:["showPayIdInstructions","cancel","submit"],computed:{...we(ae,["transaction"]),isValid(){return this.payId.length===6&&!Number.isNaN(Number(this.payId))},showError(){return!this.isValid&&this.canShowError},errorMessage(){return this.payId?this.$t("errorMessage.invalid"):this.$t("errorMessage.empty")}},methods:{cancel(){this.$emit("cancel")},showPayIdInstructions(){q8(),this.$emit("showPayIdInstructions")},onBlur(){setTimeout(()=>{this.canShowError=!0},300)},onSubmit(){this.isValid?(this.processing=!0,this.$emit("submit",this.payId)):(Pd(["pay id"]),this.transaction.logValidationErrors(["pay id"]))}}},bV={id:"pay-id-form",class:"pay-id","data-testid":"pay-id-form"},CV={class:"row"},wV={class:"col-10-sm col-centered"},kV={class:"form-group"},SV={key:0,class:"form-group-error","data-testid":"pay-id-error"},EV={class:"pay-id__cancel"};function TV(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button");return f(),v("div",bV,[$(i,{class:"instruction",message:t.$t("instructionMessage"),linkText:t.$t("payIdLink"),onLinkClick:a.showPayIdInstructions,linkDataTestId:"show-pay-id-instructions"},null,8,["message","linkText","onLinkClick"]),m("form",{onSubmit:r[2]||(r[2]=jt((...l)=>a.onSubmit&&a.onSubmit(...l),["prevent"])),class:"form",name:"payIdForm"},[m("div",CV,[m("div",wV,[m("div",kV,[ct(m("input",{ref:"input",type:"text",autocomplete:"off",class:pt(["input input--lg input--centered",{"input--error":a.showError}]),name:"payId","onUpdate:modelValue":r[0]||(r[0]=l=>s.payId=l),autofocus:"true",onBlur:r[1]||(r[1]=(...l)=>a.onBlur&&a.onBlur(...l)),"data-testid":"pay-id-input",required:""},null,34),[[Wt,s.payId,void 0,{trim:!0}]]),$(rt,{name:"fade"},{default:ne(()=>[a.showError?(f(),v("div",SV,T(a.errorMessage),1)):D("",!0)]),_:1})]),$(o,{disabled:!s.payId,loading:s.processing,"data-testid":"pay-id-form-authorize"},{default:ne(()=>[Be(T(t.$t("authorize")),1)]),_:1},8,["disabled","loading"])])])],32),m("div",EV,[m("a",{"data-testid":"",onClick:r[3]||(r[3]=(...l)=>a.cancel&&a.cancel(...l))},T(t.$t("cancel")),1)])])}typeof tv=="function"&&tv(P9);const $V=ee(P9,[["render",TV],["__scopeId","data-v-3009adeb"]]),IV={name:"InstructionsList",props:{instructions:{type:Array,required:!0}}},AV={class:"instructions__wrapper"},zV=["innerHTML","data-testid"];function RV(t,r,e,n,s,a){return f(),v("div",AV,[m("ul",null,[(f(!0),v(gt,null,Ot(e.instructions,(i,o)=>(f(),v("li",{key:o,innerHTML:i,"data-testid":"instruction-"+o},null,8,zV))),128))])])}const xo=ee(IV,[["render",RV],["__scopeId","data-v-11ab9261"]]);function nv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{backToPayment:e=>{const{normalize:n}=e;return n(["Back to payment"])},instructionMessage:e=>{const{normalize:n}=e;return n(["How to generate a Pay ID"])},instructions:{stepOne:e=>{const{normalize:n}=e;return n(["Open your Kuda Bank app"])},stepTwo:e=>{const{normalize:n}=e;return n(['Go to the "Pay" tab'])},stepThree:e=>{const{normalize:n}=e;return n(['Select the "Cardless Payments" or "Pay A Kuda Business" option'])},stepFour:e=>{const{normalize:n}=e;return n(['Select the "Pay With Bank" option'])},stepFive:e=>{const{normalize:n}=e;return n(['Click the "Get Pay ID" button'])}}},fr:{backToPayment:e=>{const{normalize:n}=e;return n(["Retour au paiement"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Comment obtenir un Pay ID"])},instructions:{stepOne:e=>{const{normalize:n}=e;return n(["Ouvrez votre application Kuda Bank"])},stepTwo:e=>{const{normalize:n}=e;return n(["Allez sur l'onglet Paiements"])},stepThree:e=>{const{normalize:n}=e;return n(["Sélectionnez l'option Paiements sans carte ou Pay A Kuda Business"])},stepFour:e=>{const{normalize:n}=e;return n(["Sélectionnez l'option Payer avec la banque"])},stepFive:e=>{const{normalize:n}=e;return n(["Cliquez sur le bouton pour obtenir un identifiant de paiement"])}}}}})}const N9={name:"PayIdInstructions",components:{PaymentButton:dt,Instructions:Et,InstructionsList:xo},emits:["backToPayment"],computed:{instructions(){return bn.getObjectTranslation({$tm:this.$tm,$rt:this.$rt},"instructions")}},methods:{backToPayment(){this.$emit("backToPayment")}}},PV={"data-testid":"pay-id-instructions"};function NV(t,r,e,n,s,a){const i=P("instructions"),o=P("instructions-list"),l=P("payment-button");return f(),v("div",PV,[$(i,{message:t.$t("instructionMessage")},null,8,["message"]),$(o,{instructions:a.instructions,"data-testid":"payid-instructions"},null,8,["instructions"]),$(l,{variant:"light",onClick:a.backToPayment,"data-testid":"back-to-payment-button",class:"back-button"},{default:ne(()=>[Be(T(t.$t("backToPayment")),1)]),_:1},8,["onClick"])])}typeof nv=="function"&&nv(N9);const MV=ee(N9,[["render",NV],["__scopeId","data-v-042151e6"]]),LV={id:"digitalbankmandate"},xV={key:0},OV={key:0,class:"icon-container"},FV=["alt"],DV={key:3},VV={class:"waiting-screen-control"},M9={__name:"KudaBank",props:{bank:{type:Object,required:!0},showCancelLink:{type:Boolean,default:!1}},emits:["changeBank","attempt","callback","requery","reset"],setup(t,{emit:r}){const e={ENTER_PHONE_NUMBER:"enter_phone_number",ENTER_PAY_ID:"enter_pay_id",PAY_ID_INSTRUCTIONS:"pay_id_instructions",WAITING_SCREEN:"waiting_screen"},n=t,s=r,a=ge(e.ENTER_PHONE_NUMBER),i=ge(""),o=ge(""),l=ge(n.bank),d=ge(!1),u=ge(!1),g=ae(),y=te(()=>g.transaction),w=te(()=>n.bank.slug==="kuda-bank"),k=z=>{s("changeBank",z)},E=z=>{a.value=z},R=()=>{E(e.ENTER_PHONE_NUMBER)},O=()=>{E(e.PAY_ID_INSTRUCTIONS)},M=()=>{E(e.ENTER_PAY_ID)},x=(z,U)=>{z.status==="success"?(u.value=!0,setTimeout(()=>s("callback",z),1e3)):s("callback",z),U()},N=z=>{y.value.listenForDigitalBankMandateCharge(x,z)},A=async()=>{s("attempt","digitalbankmandate");try{d.value=!0;const{status:z,message:U,data:j}=await y.value.chargeDigitalBankMandate({phoneNumber:i.value,payId:o.value,bankId:l.value.id});if(z==="failed"){s("callback",{status:z,message:U});return}const{pusher_channel:J}=j;E(e.WAITING_SCREEN),N(J)}catch(z){d.value=!1,s("callback",z)}},V=z=>{i.value=z,E(e.ENTER_PAY_ID)},F=z=>{o.value=z,A()},S=()=>{Um(),s("requery")};return(z,U)=>{const j=P("instructions"),J=P("animated-waiting-screen");return f(),v("div",LV,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[a.value===e.ENTER_PHONE_NUMBER?(f(),v("div",xV,[w.value?(f(),v("div",OV,[m("img",{src:sV,alt:z.$t("kudaIcon"),class:"icon-container__kuda"},null,8,FV)])):D("",!0),$(yV,{bank:t.bank,onChangeBank:k,onSubmit:V},null,8,["bank"])])):a.value===e.ENTER_PAY_ID?(f(),se($V,{key:1,onShowPayIdInstructions:O,onSubmit:F,onCancel:R})):a.value===e.PAY_ID_INSTRUCTIONS?(f(),se(MV,{key:2,onBackToPayment:M})):a.value===e.WAITING_SCREEN?(f(),v("div",DV,[$(j,{message:z.waitingMessage},null,8,["message"]),$(J,{"data-testid":"digitalbankmandate-waiting-screen",checkSentBox:!0,checkReceivedBox:u.value},null,8,["checkReceivedBox"]),m("div",VV,[m("a",{"data-testid":"digitalbankmandate-requery",onClick:S},T(z.$t("accountHasBeenDebited")),1)])])):D("",!0)]),_:1})])}}};typeof Qu=="function"&&Qu(M9);const BV=ee(M9,[["__scopeId","data-v-72c29fa6"]]),UV={name:"BankChannel",components:{ChooseBank:wR,ChooseBankNew:O5,Ibank:q5,Emandate:lM,DigitalBankMandate:IM,BankVault:rV,KudaBank:BV},data(){const t={CHOOSE_BANK:"choose_bank",EMANDATE:"emandate",IBANK:"ibank",DIGITAL_BANK_MANDATE:"digitalbankmandate",VAULT:"banktransfermandate"};return{views:t,currentView:t.CHOOSE_BANK,selectedBank:null,vaultPreselectedView:""}},emits:["callback","attempt"],computed:{...we(ae,["transaction","reusePaymentInfo","paymentInstrument","activeChannel"]),directDebitBanksAvailable(){return r9(this.transaction)},transactionSupportsOneBank(){return this.transaction.supportedBanks.length===1},isKudaBank(){var t;return((t=this.selectedBank)==null?void 0:t.slug)==="kuda-bank"}},created(){var t;if(this.transaction.isTest)this.changeView(this.views.EMANDATE);else if(this.transactionSupportsOneBank)this.setBank(this.transaction.supportedBanks[0]);else if(this.reusePaymentInfo&&this.paymentInstrument.bank){const{bank:r}=this.paymentInstrument.bank;this.setBank(r)}((t=this.activeChannel)==null?void 0:t.view)===this.views.VAULT&&(this.currentView!=this.views.VAULT&&this.changeView(this.views.VAULT),this.vaultPreselectedView=this.activeChannel.subView,this.setActiveChannel({name:"bank"}))},methods:{...It(ae,["setActiveChannel"]),reset(){this.changeView(this.views.CHOOSE_BANK)},changeView(t){this.currentView=t||this.views.CHOOSE_BANK},setBank(t){this.selectedBank=t;const r=this.selectedBank&&this.selectedBank.gateway;this.changeView(r)},onAttempt(t){this.$emit("attempt",{paymentMethod:t})},onChargeResponse(t){this.$emit("callback",t)},requery(){this.$emit("callback",{status:"requery"})}}},HV={id:"bank-channel"},qV={key:"choose_bank"},WV={key:"emandate"},GV={key:"ibank"},jV={key:"digitalbankmandate"};function ZV(t,r,e,n,s,a){const i=P("choose-bank-new"),o=P("choose-bank"),l=P("bank-vault"),d=P("emandate"),u=P("ibank"),g=P("kuda-bank"),y=P("digital-bank-mandate");return f(),v("div",HV,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.CHOOSE_BANK?(f(),v("div",qV,[a.directDebitBanksAvailable?(f(),se(i,{key:0,onSelect:a.setBank},null,8,["onSelect"])):(f(),se(o,{key:1,onSelect:a.setBank},null,8,["onSelect"]))])):s.currentView===s.views.VAULT?(f(),v("div",{key:s.views.VAULT},[$(l,{onReset:a.reset,bank:s.selectedBank,onCallback:a.onChargeResponse,onChangeBank:a.setBank,preSelectedView:s.vaultPreselectedView,showCancelLink:!a.transactionSupportsOneBank},null,8,["onReset","bank","onCallback","onChangeBank","preSelectedView","showCancelLink"])])):s.currentView===s.views.EMANDATE?(f(),v("div",WV,[$(d,{bank:s.selectedBank,onChangeBank:a.setBank,onCancel:a.reset,onAttempt:a.onAttempt,onCallback:a.onChargeResponse},null,8,["bank","onChangeBank","onCancel","onAttempt","onCallback"])])):s.currentView===s.views.IBANK?(f(),v("div",GV,[$(u,{bank:s.selectedBank,onCancel:a.reset,onAttempt:a.onAttempt,onCallback:a.onChargeResponse,showCancelLink:!a.transactionSupportsOneBank},null,8,["bank","onCancel","onAttempt","onCallback","showCancelLink"])])):s.currentView===s.views.DIGITAL_BANK_MANDATE?(f(),v("div",jV,[a.isKudaBank?(f(),se(g,{key:0,onChangeBank:a.setBank,bank:s.selectedBank,onRequery:a.requery,onCallback:a.onChargeResponse,onAttempt:a.onAttempt,onReset:a.reset,showCancelLink:!a.transactionSupportsOneBank},null,8,["onChangeBank","bank","onRequery","onCallback","onAttempt","onReset","showCancelLink"])):(f(),se(y,{key:1,bank:s.selectedBank,onRequery:a.requery,onCallback:a.onChargeResponse,onAttempt:a.onAttempt,onReset:a.reset,showCancelLink:!a.transactionSupportsOneBank},null,8,["bank","onRequery","onCallback","onAttempt","onReset","showCancelLink"]))])):D("",!0)]),_:1})])}const KV=ee(UV,[["render",ZV]]),YV={class:"back-link-container"},QV={__name:"PaymentConfirmation",props:{retryButtonText:{type:String,required:!0},isLoading:{type:Boolean,default:!1},backLinkText:{type:String,required:!0}},emits:["retryButtonClick","backLinkClick"],setup(t,{emit:r}){const e=r;return(n,s)=>(f(),v("div",null,[$(dt,{onClick:s[0]||(s[0]=a=>e("retryButtonClick")),variant:"light",loading:t.isLoading},{default:ne(()=>[Be(T(t.retryButtonText),1)]),_:1},8,["loading"]),m("div",YV,[m("a",{class:"back-link-container__text",onClick:s[1]||(s[1]=jt(a=>e("backLinkClick"),["prevent"]))},T(t.backLinkText),1)])]))}},L9=ee(QV,[["__scopeId","data-v-7d446004"]]),JV="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA7MSURBVHgB7V0JdBTlHf/NzB7ZbDbZJJuQbAhJVA6hYERERK1g5DAeQOurFaqipNVnFVHEitoH9r2qFRVQquUUFS0+rAIVAgIilHKjSDFAOLIkJCEkGzbZI3vM7vT/zSabgxADzG4w5ucbnJ3d+ebb3/6//z0TDu1EEYYZfagdK4C7lV5mA1KmBBjRCcABNvrXQt9nP32vLQJiV2bhG1s7z20bRRiSGYD4FBCY2FkIax+4pQLUL2dhp6XNT53vDSZxAdTOINKm4GcMCfwcFUQicn+rEtkqgUGp824m8jLRBUaShYdmeGvSyLc8UITrs7vIaw7GBeOkkLhp+V4zCeySvLbRmiSGCKzXed91kdc2giQGrm3QiaElXG8wMtGFNsE4EqGa0fBalkC2dP3wFqEL7YYATRZbyrIE+uGbgS5cEEjgZPeOK0K20Q/+LLpwobAJCGTxRN5YdOFiwARvLC1hObbtwkWADMitPCcnBrpwceCyeZZVQRcuChJxx/+8MiyKw8ijC5eELgIvESpcJpDINVWlxkM7pD/UV/SAYIoDFy3Ipk5yiPBX18J3vASeXQcglp2lwwIuB3QogYy0qEFXw/DAKESPGwF1mpnWxI8kyQMSfCWlcK76Gs6P16NudwGR2XELiTuGgRIiDI6ER/9ALuKnTYSm75W4FHgLTsA2+yM43v8Skj+ASCPiBOpGDIRp9nPQ9OvZ7Ljf7kTd5h3w7P0BviOn4LOUIVDGIkySr7R4qDNSoe6TDu3AvojOGQo+JrrZ+d4fjqJq6puoW78HkUTECOS0KiS8+hiMUybSi/plKklwfJaP2qX5cG/cBcnrb99YGgG6kUMQOzEX+nGjGpc9jWeb8z6qX5gPyS0iEogIgUKaCalr5kJ7TZ/QMdfGHbA+9TotwWJcCtS9UmGa9wKiRwwNHfN8fxjldz4Ff2kVwo2wE6jKSIR58yKos3rIr8UqG6xPvgrH8g1oR1W1nZAQc1+OTKRgipeP+IpKUHbbJIgWK8KJsBLIJC9t60LZLWHwFVpQNiIPYnF4smeqjASY19P1emcGr3eiGKW/zCNJDB+J4bP/pPNSv5wbIs+9rwClt0wKG3kM4slqImwS3GSIGNi1U9e8DUSpES6EjcDEVx+FNjuo87wkeeW5k+E/065uiUsCu0b5nZPlazIwvZv4yqMIF8KyhHUjB8G8br6s4gJWG0quu5ekI7JJb7acu+9dQToxmCspG/kH1G3YB6WhvAQKHExvPROyD2eeeCXi5DGw5VxFxqoBptnT5LkpDcUJNDyUS05yb3nftWE7nMs3oqPALD1zlxiY4x4zYTSUhjAZqTOhIHwFRfAVl5J/1gNnHnoJgSp7m5/XjRqI2AfvBp9igO+gBcqCg2ffQehyBsM6fS6cn6wjJamsxlJUBwrpJgoyOLK0Z2hkXo4MfgymhVMQl/cAat5bgarHX0NYwNNcAn4IGcngKBkhlijnYCu6hI3PjkdG0Vqkbl0AITUelwuElDiYt8xH5ol8xE0dDyWhIIF+6MfkyL921LV94a8Kv8vSXviraigJ0U+OmfW/ymFHoBQUywcKZsqYpJvlfdem7eT8BVNLHE1a6JMGzVUZlFDQkn4sh29/ISRP8y/BGw3Q3XEDOH00xOMn4f3uGJr+vpxWgDq7N9Q9UihR4IWn8AQCR8shBYJqQkiJhbp/LwjxcfDX1FLi9SAkW13wZJqL6+vtiLnndso5pslz9ZfVQgkoRqD2hgFBXUPwfFsQOh77+DiY3nmx2Wd9J0pRPuox+I6VhY4Z7h8tbw2o27Ef5XdNgVRth+a6DKR8Ng/qTHOzcc5Mmgn7kn+Di1Ejs3RT6PoMksdLhuMt1MxeEZzT3gKZQCaF2sH94Vr5XygBxQhUX5Ee2vcdKQntc1FRqCOJ9BUdB2vJ0d85ij6bBtPcqRQxTA19TiTJdH31NUlQPPS/zoXuxmzEv/Awqp99G6a3X5TJE0vK4MonojiJxrgKvC44fVWykTIwBfAeKEDA5YLupiHQDKAI5PVnUbvoC0h2sdmc1Fey8PIyI5BPjA3ts2RoA2xvfCxvrIGOM+ggUmCfMONJqHteBblZrB7ONdvICr8l7yf9w4bYR8fDcO9IIvBNaK4OZq1rl62G7S9LKLD20ZkNTjFHEn0GpwY+RPsi/WA6qPr+Cz32kWSqVBSRpJN7VCSrjtBcTbFQCsoRGNMYsEuljQZEN+I6JLwyBZr+PSmVL9BWv8xU548K3DsOE4H0kfRubDR4Dh5D9C2DkDD9MSoD5Mnuke+ohdJis0i37SOSTEh6ZzqihpMOjdKQ3m1iG+ujj0BZ45x4vXKlIAWtcKM0SfXccHoBKavnUeGoH7z/O0y+3kdwbd7ZjrG4ZkNW/m46av6+jDI6+0lvnoDkclMtpSe6rZpDIQYlLt6ciui7hyNQ40Dt4uWwzVvWyvSkc8dXAIr9FAFno1XlzRTAl5yGqnt38FFa+VjF+OcgHq1E3HMTEH3bjW2OpR0SDAVFGoM0Fv2f4tonZofe1wzuhfRd/5TrIkI3HbQD+snHa979FLZXloJP1cA4+cFmY/JpjQ0YAYcPSkE5Aqsa3QJ1hhneXYfJVaiQK2Vs2aZ88jrqtu5D1ND+rZ6vv+NmcAunyhll/dg75GP25flg0pK06CVyX5LJEJH0SQHobg6m7yWfSNkeN5U5i0indkfcH++n82NIx+nPGZ/NKTRXqzIuDINiBLLsbwPUvYMWOWB3w/rCLCT+dSq0gwbImwxaTmLZmeBnapxEMhXVM1MRmzc+9L5j/TacfXWp/NJvrUTsI+Ogw02hazBf0PriXFrOEqqnzYZmbV+ozCYYn3449Bl/rQNSnbfZnIJzLYFSUCwWFsyxyCwJ+mKO1RtRMeZPje8lxUJDBXQ+LibYYXDwOElnJXsH8r1ACXporiEnOCmRvrBbNhr+IrZ8G3SVBFWvNEpQZNGy1RGhNnh2k6Nc4278IpR1ZtdQmZNoDA+RdBJi4SmS0uDX67bqb0E/kBxvS3oOXb8GSkDBZIIfGcVryHKmkeQ5UWQaFopGOhwaHlnWLbLO9J08heLMuwCFWkMUtMICHF9skn9hz/5DoUzw5QAhKZ7mVCCrBufqTYCCfTWKprNUPZLkUEm0VNSnkCLeNdI6WCGfjI9AhojtiicroRQUTWeJxZXwl1fD8MjdSD/4KdR9e6Cjoe6ZivRDK2DIuxuBirOKksegeEpff98IJC9+WQ6/Et9+Dk0d7MhDQuK86dD0zkLywpehnzAKSkNxAh0f58uNPgz6nBuh/+0IdBT09+VAPzLo+ngLjsLxwVooDeWrchSQVD09KyR4ySQBqozIZ6dZWTNpXmMareqZNxWvhzCEpbDO6q+2OUuCF0g0IvWrRRCSI2eVebpW6voFIU+AzSVcbW9h60ywTp8Pz4Ej8r6mVyZSN7wbERLZNVhLCdN7DJ4Dh2F9fgHChfD1xnhElOc+GQrxtAN6w7xtcViXs0Bjm/+zGFHX/0J+za7N2tzgUS550BJhbS5mXVFlt+WFYk9Nz0x03/sZGRZW2FFSH0lkMG6Xx2bSzsDIK8vJg/9UeHsEI9JgqUozIaVlg+WG7bBOmXXJDZYa8jUT5kyDvmmDJamO07mTKfvdCRosQxeSW3wfhXHKI01yBJR1+Xwd7B/kk5Lf2f4WX6rQ6XJugOHB0Yj5TW6TlmEyGHOXoPr5+VRU6kQtvk2hGzUIpreelTPKTRFwOKkcukOu6HmPFFM4WI4AKw1wwQSt3GTeuwe01/WVE7K8oXnOj/l5VU+/gbqv9iKS6KDbHDjEPHwXjM88ECoYXSy8h0/A9tr7cCxbS3lFRBwdQmAjAlSj7QfDhJGIHnsb1N3T2nejTWkpnJ+zG23Wwb2H1aA75q4lJ6s0diyBTeGnpGwCFej7yzVmgcqkrGDO9KTkEuGvslNKvxienQcoGcr6DTv+Vq/FqLicCPxp4RDqMB6Fl8/NhpEAk5RyeEFyTP9dnNzUUvF+Nxz4FFZawNLPg0CmVVegCotwBsfghpJg/QG2znzXuovk5Pc4jl2wIwywqdiTG0m4O+WDJ1hJaxqKLoi8BLUKmdEaqARWlZBQSQ75cft5Y2mLyo/A9zy4TkkgW7brcW750qAOpgAaHCZPfZ5QS/7p6MR43JMWh5OiEykxPLITNbhm9XmfirWfSeA3tPMQOiEWkJvREokaFXaM6AUfed2sz4leotjpw9ZKO/J6xuOTg26srbDhQ0pCDOsWjSlRCW1dYguvRmBl8CGsnQulZG1Pkq1tiTSdGnavhAH5R9Dny0JM//Y03KKEZK0arx+0wuoKIIn2hybpcWuKHhZ7m6mwlTx7Dh4J8AfoZDiGulaPJ2vUqK4T67P7VHSiJMehGg/SSe+drvPje4rJo8m0TsyMR5xaQH6Z43yXWIqgEWE+fWCOH/xT6EQQ0XpXRDeSLjXH489Xm2kJSxicqKPl68SwZBXGpBlw0uVDlCqAMVfEoN+q46hynzfAfpn9IxNIUmihiGQu7XYqElvDNqsDMSpeDrnZll9mx8qyGhx3upESpaZjknyLy9Q9FW2Rx7iysJ2QI01SODMAfkxnf4rlpPQk3J4cRyRJEAQJ0WoO1V4RMwekkGEJBA0LuTCFdjeWnWi1AclC28yGFyECmS4sQvZwIrFTP4Q2UaXBrGPl+OJ08AbI3cP7UDTB4yxJ2+CNhWDOzaQr4zHaHNPa6RbahqOJ0W1WE2FLmYcwjqsXz86IZCLwtJtZVgkGMhacxB7hw6HE2ZDBlmAk43G01tvyVAtt49CCm3Ni4Szs2d8ZJLHmPHcj6SUVchMTcJMxFgYND9FPBFJJwKhSY0bfVLknamhSNNaWN+titSAoeZaW47XxKHj50aAz8RM1LC+SF8gyJi1xu9FI7olKJoptZ0URhxwu3GoyyMajwbhsqKjFKZfsAzKDMRPn8ZXb8ccIsjN94GZSuPeTiVb2ULppAuXqLqG9k5HFfOM5+BF11u5+/3qJHEs5sGEC+Gsuxz+HYadl+yEq8R4ourgw+hhhFsh/DgNbaFuJdkZn/weBnYeCIBrMxgAAAABJRU5ErkJggg==",XV="/assets/stp-avo-80-BmybTvcb.png",eB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAykSURBVHgB7V1pcFXVHf+dc997CSEhC4QIigaVRSwNcamIsokoY0ehTqdjcarVD/Zbq4MFHMtYLVqdtm4oKpWxoo7tVDvUBbdWZPGDxJZ9rwnEtKAhEA1Z37v39P8/596X95KX5C1JSOD+mMt9767n/M5/Pzf3CSQJpVQBrRY4jjNTCDGFPpfSUoDTA/W0HKI+bqNlg2VZa6mP9cmcKHo6gC5YSqtf0PqnOH0I6xHU3z9JKR8kIg91d5zo5gJM1gO0vhtnMIjAJ2n1YFcSmZBAljpa1sOoqQ9SbyJwdiJplB03EHFTfPI6QQsUc9NxR5wE+pLXIzpJYpRAtnm0bIVPXk9gEss9mxirwg/AJy8ZlMJwpaEl0FXdKvhIGiSBY1mVPQl8AD5SAiUUOrwTru07AR+pop6lUNq2vQA+0kEBcycp75sJH2mBJHCmTBQc+kgOXFQRZAzZ/p0xRYJeRj0TqOAjbUj4yAg+gRnCJzBDBJAmBFlOh/5jA2opWgvOCgXMFgVHCUjHpp1BjtZjyxaIgEfOgbQtKMtBX8DkqN4H0d5mtw3kQr2t5jBltqWK1Al0XU5E2hAOE0FU0I0dakhDWwQ7DxxCTe1xjCrMw8yyCW77oz3Rp8u6E/jqhecQJP+l+kEHRCCEUEEh1OizYI0eiZyx4yCH5cO2LFi65UL3wYhAakiZQOUOrUU9D9OXbVWHsXbTdny690t8tvMAWh0eZYk75pRh+pSJuoFxneELhNvQ9t46BCMRLcWpNzs18D0i+t4WbCFRlx1AcMJ3kDNtKkLTr0LwnHNBGYVrz1JrS5IEKs0cU8GEtNDnl97bjNc3fI7N2w/TLov2OzzUXNrRxxu14NMUNaldzJg/XgIkfZGoGvUtJJsT3SabBt6B1RyB3PY5WrdVoHn1asgrp2LYbXcga8J4mOEX2iQl07akCFTUACVJ1G2Fd3ZU4jer/4ZtB47SqJIN49soV8pUu7QZudJ70VHG+DtLQkD1jf1LBKcDHebOrA0tCKz/BMc+3YTQvHkouOMuZJWMpD1kv6l/PSEpAh26WGNTG5b/+SM8/drHZP/Y7vH9w+gXI9aHCNo29S6IrLAD9fZb+PazCuQsWYKcK6ZBJNG1Lg/RpolkjL1pzfEm3HDfSjz++kaEaVAcaTyJcNJ24gMEJGdkdpRsI5VlK0k2svYr1C9dim9efYnURBmL1I2idMmAzV6WjO6+I19j/tIVqDzyrevmRdQTK9F/Ktg3MPaaYqnodxacADm5phf+CLuxGYV33UkCM6RLZe5SAqUjUV1bj/nLnkP1kZM0SsI4AJwZCJBshF9dgxNr/uLaw8ToQCCLrFkawjZuXf4iDld/QzYvXdr6w8f2EYTNwRrCq1eh8R//NLy4/2KRUAL51EdfW4eKPYeJPGTSCkTVZJBBB1+KkwUbx59+GpGvjyS0h50lkIzA1soaPPXmJiIvG16q06tNEx6xgwPZdbVoevkVIlN1Yiz+qzIp2bJVa9FEbp3jOqFjtT5QRTGI1JucZdM7b6N5zy4vFYsinkCSvn/tr8bH2yvBOT5LoxLpqWCrzZLbmXz+JofmUozluAWIQQAmzQ6j9a23SI3jdTieQBLRVe9uJsEjv2NFkAkO/vcYpWqyM/W0wR4SQOicC2iQwhgMsBxLG7KTH34EVVcXty+OwG8iCu9X7CfCZcYZxo6D1fjy6+Pa8MaSqKWOglc5cwbdfXBIoC1NxSaL4sMTGz6J2xfHUsX+Khw91kC9tDO2URGK0des22zy4RipZ4sgicCCm25CS16Bm/JQAq9ZHqiEUkBjm3za2blLhzSOKxlxBH6+p1J7SGObMssy+CZPrd2Ivf87TtdsNwdsTrh4KUtKMOyeRWgNZutqiSMyk/i+BPNBeYUuHLft2kNJhuNGEh0I3FF51AQtoucqRBK3RctJhTsfW4PaxnDMVuOc2DrmXncdin51P9oKR+hcVIiBG9o4wqSuqvYonIZ6t0as4gmsbWjSbCulOrnrdNAWdFCxrwY/WvY8vqC0EIrqcDqiN+UxHqah185F8YsrEfrxbQhfeCEaQiG0BCy9NAcCCZcmd62Ps3gtaVuQFqpWCis6SF4hTWTYF76UcG255UTQUnvMzRHYPMXMC89a/Aw2UQiDTglLZpCknmOKcrB44VzcMncaCkOmhmFzmORw3kmEUvIpIrQ0U2Uk0qoHUSa0iY4bHrXXQbREU8ecsELTsa+gKv+Dhnc/AHbvpiPDCNlcfuudwgcP/tCVLyBvync1S3EEzl7yLDZuPagdSG8SaKaapBb3McW5uPyiUlx+8fkozs3WtiRM3ljHnToTij0v8dU4QhhO504aMwKlo4pIqqkcLy1NrHCjB/4c+fc21D3xONQXe2GJ3im9sYYOXfk88srKdHvjrjokFIRxH1JnIKqXnKJnKViqqo81onrjLry5YYe2tabTrskQruopb3onvqIdXfOh5LYDFC3MKpuIh+66Ed87fwyJuqXvIWBsrHXZpSh+4gnUPfIYnC0bSNJl2hUlqYwd5GLykPxc2DyhJkW8DSwpyNFN5M29a9DdeRJuPA8MzDSo8iYZ+bP0zK4h0hiedi7j1nwO9SasAli/dR+uv+dZrHp/s078ObSUug+Wtrdy+HAUL7sPkfGTtCd10hQKM2tH7Q5lwxpZbMI81YHAi88tcaf27E5zCAMTgiQigMbWCO5Z8Sb+vmWvHiDHDcN0XyySuqLhGLFoEWVX2TrbSvkuNLq2qwLB0vPgZOdo4gQ6eOFJpaNNDNhXBYReBzsPM2dDU9L45TNv0Nx0G7SjceNK3m9R3BacNAk5866Nxm8pgRyQmQCja44frxMBT1niCJxRPgGFeUFz4ACOyWKh4zN3Yryq9gT++vEWksJI1M6xyjvspEQQ1rQr09Isx5W3NhqN/OmzzCC4DMYRmEsHLLx+KgQGV70uCmLrs7011MFApxoQ1/JyrrgMdjALqYIdCGdLobPOQfYlZfH7Yr84NEoLZ5STd2klsfc84SApOcGELlV1DZ1KwFocKE6SwTwESkYgVSgZJqkm10SZk8rKjtsXRyBL5qUTz8OCGZe5TVCDiD4GGXtbP8QRt9V7iEj3dkhuUldSrvCYwaDpzuJ85M+fj47PK8QTqBzt+u+/ZQ6ys9ynqjzjOSggetibvFmSXtjF1yT1z1p4O0IlIzsVgeOYYc/FeeNE8saLfngVgjwzJaxup/VOVzB5poRFM3OXXIqim+frPFt2V5Fm8WQPE6SIfunC72PWFRcZkR3Qtbo+gpf2kNSNvG9pu+3rTgI98CFZIQuv3P0TTB5bpEkV/fgg0IAAqa1DKVv+Qw8idPa5aA9ZkiBQH0b2b0RRLt5Y/jPKUPIREDHG+DQHFVjQMrwI+Q//FjmTyrqNibshkDNKBxdQLrnud/fiqsljKJaiUZBeqsr/90bh9VTDcRNs8uA8jcsPY44dh9G//wOyyika4ck11XU/u3avWtAsrfKj8nPw7sM/x5LbrkFImTTJFE8ym7k79WDTFDSRsrB1dSjrxpsxauUKyIkXU8WHPUAgPQmMv41EVpaF5bfOw4fPkDSOG4mgimDwhDddQen5Gva0bRMmY9gjj2LY4nsRyB8OmWTIk1SV0ZS26JKkv1dfMBrrVyzGh1sP4PFX3sHG3V9SkKMLdEYbdKOU++SqdwH0E0wRxNw95qamMmbyYLfUz5NYYYumKqdejaFzZiPvmrlwApZ2mE4KD+wnWaZtf4Kd1TdADbhhyjjMmbIIBw/XYF3FbnywZT92flGD+pNNVPqxopVhrwP9AmnmQ4xNc+A9Yup4JUYq7beOOhu5pWMQmDgZQ2dM17W9MM2nSC9sYX3zSi1JIOW/lfMO5ieXvKeg9UIj22wr7KuqwdH6BhxvaERrOBJTmOj7NQe5BcNysODK8g7dN0+astRZdpsuNrQXdE351XtYNNXH3tP4Y0MVkydCT9Zw4cEjUXjP0Kn2TNI9rc85NAIn3OkIT2egZ8/4O//hjyNZ6RxvghpR/VYyLUvj/7VmhhjsbvSUwycwQ/gEZggmMKkXDfpIiHom8BB8pItD/NaO7fCRFviVoZLwCXykBX7fqvfqpyr4rz5JGZQ3F0p+Dx4R+DJ8pAR+SS1zJ9wv/uvvUkTc6+/4AxH4FHwkBebKew2oiNnovwI0OSR+BajWZyFmw48Lu4P3Etpo8tHh0Q7BB/wAPomJoLnp+C7phCUw/3XInZD8i7gZriSW+44l6jDKRRfv1O+xCMvSSEXXX9MFbseZAx0bU5b2pEj3xwg6IubnMGbRRfkpw1Kchj+HQaRtoM9J/xzG/wHLMGf4rhISzAAAAABJRU5ErkJggg==",tB="/assets/stp-fnb-80-CgCW88Ht.png",nB="/assets/stp-instapay-80-BcY_KOsf.png",rB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAPrklEQVR4Ae1cC3wM1/7/zuSNxCIaj2KDS6VVCS4RKRvilfZq2tvHvf+Kxk1RKVdouVxU6KVCVeKdBk2vSz/FrUfrokpCVWg9th5VrscK8RYrkUgiu/M/M7uzOzM7szu7Vu+nku/nMztnzvme3zm/3/zOa+bsUPAUy2J1MJkiQaM3uYoEAw05a2zplPXMCK/JD8OI5fxveEZQlIFEGsBQP4Gm8zFqXz48AOUW+1OdBhVVY2Fi0khODR4vGIg58kGbZ2DUAYPaTOoMyBqurHI6CaUpSmFkL36bPIrKVWtIH1cELOkxFpWmTUSoztIUKLYAviB7yYz1bGsyv2EeQ7FdUiIGtryLbZf0cALnHriwxwIiPA01GRSVidHfj1NMlo1lm+y9BxvJrdBx1wwkns/Y755QyuPKo6BHtX8cxuUbIQENOdyryiOjlo4TYLbGmYUEIt0s6Ecedx5DZhk+lRshA8c+cGHPBVz7dwkK6vDY8LRIaKkhfeIOYazYgAtiksnvHNmBSuzSMs2hBvCAaAx48i52XD4gpFmwIFoLiiZNF1oHwVJhUEivGTzSD/qH8/2hoA+kp3PGgyAzQ0F0zYcZoAbzyALiwXQ+2ZKD9T7QFxzcWApKJKhm8yj/BqwXWj2Q8z7X0sxALc8KcxU3P7YY0Awd577cAeUzP4Ov5bGJYy2MeeSpCmXOE1ne1plazc8oDFM1nWem43zJSWexNAPbmpDPy3eqvAAurpZn55kifQmvk91deZZQkBS1PBsYSudLLKwFn85nkJFhz1TLs4GmOrGDiFay7nMEPxeq5YlhhsaX/XEgyJHl0h6KJ+ywnfHUyBM0r19XDw0tSmSkGSh5gQ/Ja1a3IXLi05Ae/aaF4KG8EP86mNb9DeT0G49Q/yCX5aqtnzs8X0UX5sdsl3fHDR5TjaQOAzCz1whoNc24pMR2Ogz56n2cKL6sXh55BNWnRQTmx7+HyLD2XFSf8O5I3Z6BHYYjklHzEegh4Pmgb6t0R6aVBJlh3UNey5BQLOk3FtOfG4EHpmqk783GhlM78FqH/hjV+RVUP6jAyZsGVJiqnMoLCwrG5OgkLE+YgnrEAxf+sAbLDn+OAa2fw6gur6BVvUY4fO0XlFTdfyR6SHkUPoxl7HFWy1ISIiPN6w6PQUrHBMzsPRzNgp/Axl92Y3L+Mpw2XuWaQqtgDXISpqFf624oKNRjYn429l05Dtv0QTB57dfiWWT2n4CIxuHYV3gU7367CD9cPw12QdUypBHm9Hobf+o4AIXGIvwtbzG+OL1PbIyH0kOeRzywRTocrGw9296l8hnd47UOCcOngyZhYs+huHn/Dqfw5L05KKuqxNAO8ejd4hmuya05uRPXS27ghfa9MLRTAhoTz9p36RiqGcti9ImgEMwgMpYO+juCfPwxryAXw7d9hIulN8lMwgdJEf1QUHQS68/k4eS104hvE42UyES0qx+Gg0U/obSy8qH0cMajMNvqgbxl5fKKZLrmUaSAkZEv4G89k6Gt3wT//Gkrpu3JQeG922jXoCkySVMe0CaGKE9hr+Eo3tz6AQx3byKcNPN5fd7Gy6RZn7p5AUlbpqFVSBN82Gc02oeG44fLxzBmx3zidedsCvlRNE4MX43y6vt4c9NUHCu+yjXzjD7vYAjx/EslVzElbznWntoNbunvhh5qeBT+QQwodVcojEYqeO00TZAR9zYSO/TFheIiTNy1CBv+uw8BlC+GdozH3Pix0AQGi/LcrbiHyXkLsUr/DZFqxv89HY85xACN6tQnRqZhrCjBsh+/xNTvVlqbkb1c3oDtQluisroK00jTzdZvJ31gOV57qicx5GhoG7TAxlP5GLdzAfHaYnhTX4sBFWQoClWCqRSX075B0+BQLDq4DnMPrMaVshJENGyOxQPHIy68G5xh2+nvMCn/Exy7ZSCeF4rF/ceTgSII7+7MwpEbF+yjqwCcAUdYDMhjr+EQJuXloODKSTSv1xAfPPcXJEe9iF+un0fEiiFgJx9e0ZdL/iCWgbdguovyKT/iu4uHMWDtBAQHBOAvpFPPIPO0AF8/VSJulRvx8f61mHtwDUykD2T7ODOjrIUf7WhAFqUVZVhyaD0ZsHLItMeE4yP+hYaBIWi+6A9Ea394C7RDu2YkZz6slsedSYB4RtOgULzUPk618ViE1tFgdnwqvh+ajfaapjCbpQt4hbMEwYF1MSk2Gc+SvhOUj2N+wLkeKnm0KIND5Sh5wa541rQzZKqS8MUkTNg+H+VVFXAH3ckIfXTkWozp+iICycirulw41sMhrxf1pe0kSiKccixMDU9SePmDB/joh014dvkQMndzus3EAUF+gVg46D189epsdA9ra/FsuXLVgBIEvKgvbZfMSEpTmge54snQCO+c8TricscQb8zCjXvFcAfxbbtje1IW3n/uTYiHRxVQ8iIv6UvbrapkaUohLMeTlCnhVZPjo4P/Rq9Vqdj0M7t7RK37kMce7GQ6bjiOvrUKzzZ60g0PlOtevKUvxRqQETcN4XKGsUbyYZc8QYfvhHe6+Ape3zADwzfPxO0yh/06ThHZrB0ODF+Fid0TEeIX5DoDI3PtNX1tTVi4TBEWSgmMopYnhDKvymzGSv0udMlOJt64B+4gyD8QGWRe+Z8/z0FMs6ddezIjDXtPX9qx03zIw1ZRShX/4t1ivPTFFCSvn4nLxitwBz3Do7AlaR7asE1aCdJ6AarqpfawzwOFBSkV6oonukPuyKPx2Ylv0S17OFYf/Q+Z+5mhFiEBdeFLu9poK+xahE1Rbf2UebSILBeWCnDGs10zHsm7WlaKoV/Oxp+/mAzD7SJ4Bc6M42b95HiPsAl7mp/Gup8LELsyFdkHvgTjoL2bkDOK15uw3F3iQMkX6ozHXz+kvKLSO3j76wXouyIV525dhOeQDG5e1pcWRYoyKs2z1PAYmYp4Io9CnuEkui5NwdKCDeRx1QO4DWmZjJpy1daP80A+gpGQGIWMLniKhXooj8QZK6vwztdZ+OPqSdBf/hlugVGI85K+tE1h/rCNUsI5kHRupMQTVhBekCfk0dh69hD65U7A9J0rUU1eTKmGgwd6S1/bSgR2awsL5GfjtrALnvRuP6w8Gd6t8nuYmfdPRC8ehhPXzkMVpAb0lr7gVyJCFxUVwlsfUMUTzbdcyCNHsG+Ax+UevlaI3y9+C7N35cJ4vwSKsLUGqNfDDZ54Ii08QyHeGU80/6OUeQQhfgH48o0Z6N86CvLe6+JMUGEyYcq3q5CwagL2nD0MWTAqz2r5Eh7tcIdcHU55lGMhCgdrs6gWEdiUnIH5A0eiDu3rYbkUCi79ghc+m4x3N2eirPI+HCD7kANe0FduIg2VApR4rioq4QURTxyvewMHR2ejc+MWHpd7j7xr/nj/RnTJGoaCC8fl6wG41s/Nch3/6mUWkCFTuBoeo4InkftM07Y4mPYZpuleJ2/iAj0rl+D07auIWTYK725ZhOulMg9uGffkueIpeyA/dCu4riJPWFFX8iTw9fHBzEGppG+cidDAeu6VK+L44ON9G9BraSqulhrl6+Ulfe27syjrJNEVVPDq+LEexN4yWpnESEZtK05cOYM5eWvIdKUUgeQpC9vE77D9mgf1O3PrqqUMcs29GRQaxEv60o7rWC6XJYK3OARnZzzyvrWs4j5i23TG9pS5aKNp5ESeGOyOrU++34DYJX/F7nN6dG36O+wauQA/pq1EQpso8b8qVdePdA2Nm+OrYRn4XVgr0k+Ww6v6gvX1Htp0cSaJAMgIVeJRfliv34koonzf9t2Q/PvnUUY86fi1C6gWPeOjEEC8K633a8RbA3D2RiGS1n6AzH0bCa8acwYNR+bLaWhNHpQ2rBuMN7oOROPAAOiLzqO0qlJl/cyY3OtPyH71PUQ++RTWHdmJlHUZKK6ogNf0JWGrAWXyMtYf4R+SVfCMxANXH96BWyW30bXV03i9cz90ad6WGOkSikpu2XisAVNjEonBdyExdypOkfSYFu2wMXkWXomKx5kbFzHkX+lYd/gbxIR3xICIWAyO6IEbJcU4ef0CbN7gUD8GHZ9oiXVJ6UiJeRHXyBvA8ZsWYuqOXBTfL1eth1oehfG9VXQEnqFNwzDMe/4tJHaK57ZaZO1dT1YOa8gEuJq8LPdFLDHwt+f1qOPrj/f7J2FM7KsI9A/A1K3LsHz/VtL3WRRuGFAHs55PwbDug8nTZxorCjZi2rZVuCkxiB9RakLvP2Jc3BCE1tNg7aHt+PvWHFwkN/NRgcK4R2dAFv5E4dej+mDu4FQ0CW6Ik1fOYdja2fiRnNmBpmerCMxPHI3u2mdwpPAURq6fj0NFZx0FEe7gDtGY9cIIPNOsLc6TJ9bj/70Qm08d4LyjI+njFrw4Cn2f6oHC4muYtGU5Pj9m3dL2CEGRjoixhhxdl48TpnnIa6UJxUJiqMGddDCZTfhwZy73PiMlejB8iDfO2LYC2QVf405FuVN5YXXrY2yvlzEhfgj3LuTT/ZtQSLqGMb1eQ4OgYKws2IyZ33yGS3fvPBI9pDy7AX8NMCYM7dwfs/4wAk82COOi9p8/gQmbsrD/0n/dEYSY5lqsGjID7ZtouZgzZCCauGUpNp/YD3Zj068FCmNlDChndfncHvGa1auPjMEjcPzyWSw7uA2llRUeyWP70X8kDEMAMdis3Z+TAaPEabmu5HnCo/BXiQEpaYBxPip5zGMgmhJ4LM8M2Zf6v5Ie7L812b0VGvvEUaKYkqSH5lFekkep5KmV5xbPyO51NYLhPyQmJPFhCg7eUsuzHBRjoEkLsGzaE22kgbhZiMK1PAHvIvs0Zo99bce7qyQzH1fLE/MY6Nk/XOttCTyfEVzIzY1qebxN8y2nd3R3uH5QrvlLIRRes3kGLMkP5zcXZdnI/FnpqOXx1/nsj8WA/sh0yMC4KKCm80yYAZsBM/ONNi/0xjuRx51HIRfL8w3spX3RGIh0QjJyDZ0Twp4p+bthS6+JPNL3mS3ex8K+tfOAoQLdtJWENNBpr0pZC7LeihrHIw8Aiffl88nivbGHDAfQVduAsKK5DGxG0Yda+YIYcbjG8JgsZOfPgQDyph8Zx35HUCebZvVj52P/Y8nT45O8KGmq/IOzSuYlkk8v2pVkO3iXFsh/7HlkylKHiYMMnJs/pU8maGYsajSoLOTsVvwUtPP/Bxy9sB1dtBeJEP5b+TUJ7JaGyViRl+6M5PpL5kcMejI6b4aJIoMLIh3WiCyEgxkjifst8livCybd2FL7aKsEVz2oGMk6LXyodBLqTQ4tHi8YyfO9LFSTVVluvuo/8LlnQCHe0unIGKQD9/k8RkvunBb4zTRzI3fQZGQ1mfeQoVSPFa69TQ7/Dyo5+kyvjosPAAAAAElFTkSuQmCC",sB="/assets/stp-nedbank-80-Dha8BqCH.png",aB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAvSSURBVHgB7Z0HVFRXGsf/M+MgAbFLokZlFQuJImhWQdeataAoFiLGsoLGrB0TV9RE1x5Fk43usXssuIprjXUt0dhCbCjYYx+wYD1iR5CZ/b5LIPRp9w1o5ncOOsybx5z5v+/er9zvvlHBREoSKSmpnehhM0DlZTAY3PhpvB0kqlQqHWCIpccHtFrNpkTClBNVxl7g6FjSTaPRh5JgwXh7BDOKSoXlJORE0lGX7+vyOpBmcfrxJNxw/IEhy5yl1aon5mWRuQrIVqdW6/eRSbvBDqNzcNC0yM0a1dmfcHZ29rKLlwO35OTUfaxN9gNZLNBueUbJYYkZAvKcl5ysj7GLZxQW0Tt9TtSkP6vROEwj8drCjjFK6vVwTEl5tYt/ERaYNnRTr8OOyZAV/omHchH+hcQbD4UxGPQoXbo0PDxq4f3330epUqXI6jV4+TIJCQm38euvFxEfH4/UVD2HDijsUIjH4d1wVdrcl/oICjNt2lQMHTokX3FevnyJ48ejsWvXbmzZsgVXr14rzGImshWqnJ1dgg0GLIPCsOUdPXpYWJ0pvH79Gnv37sWUKVNx8iT5NhQ+Ienahmi02qKh9NgLCvPgwX1UrlwFdet6mvR6tVoNd3d3BAf3QYUKFeDm5obatT/Ee++9J6zy2bNnQuSCtFB660SywGIxBoNKcQGZ8uXLIyYmGi4uLrCWpKQknDlzBj/+uBdbt27FqVOnC0BMVSxb4HR65AgbwFbz4sULtG7dCtZSpEgRVKxYEU2a/AX9+vVFx47+ePLkCc6dO2tLIR1VTk4uBtgQPQVRR45E0VCuCyW4ePEiwsJGk2XusYmQatgQDmMiIpahTp06UIqaNWti06aNmDt3Dt555x0ojc0ssHXr1liwYC7effdd2IoTJ06gS5duwoEpheIWyAH0uHFjsWHDWpuKx9SvXx979uwiz63c+ypqgRzzLV68EEFB3WAtHLKkOyF+7OTkzAUQcibG48orV67QCPDD3bt3IRvFBHR0dERk5Eq0adMa1pKamorTp0/jp5/2YefOnfjllyPCsjWaIiJAZ6/evXt3ESfmRXz8DbRr1x7Xr+sgE0UEZO8XEbEcXbt2Nuu8O3fuiEA5P2iJgUS4jkWLFmPp0mV4/vxFxrFWrf6Kb76Zig8+8Mj13ISEBLqgfiJFlIX0OZA/4OTJE80Wj9m2bbvR1/DFqVq1KqZPn4bz589i8OCBVBlxEMc4dPn441a4dy93p8GB/O7dO4XVykK6gDzfhYYOg7kcO3ac0jfz4rayZctixoxw/PzzQQqNaothPWnSRLi6lsvzHLZwFtHTU04oJXUIV6hQnkKHaBQvbn6qNmnSZPj4+Ficpbx69YoqOFvxySeBJr3+8ePH6NChkwh1rEGaBfLVX7p0iUXiMTExsWRRZWApRYsWNVk8pkSJEtixYxsN+ZawBmkCBgUFibzUEnjevHz5ivCqtoRW2bBmzWoSsQUsRYqAHLKw47AUFvDhw4eiGGBr2Cndv/8AliJFwODgv4kyvXUYREnflnBhY+DAwRRjnoGlWC0gZxvDh4fCGtgK2KOeO3cO1sKimMqECZNoCK+FNVgtYEBAB1SqVAnWwALWqFFDZBo8nM2Fl2iHDRtOo6AyihUrSXHeh7QGM42C7Od5nrNw4SJ8++13Vpe8rBKQPywXM2VQv349MZRiYmLMOo8r035+7bFkyVI8epTIZXaRtk2ZMo1qjt5U2tqcwyr37NmLUaPGSKkXWhUHcmR/4cI5aLXWe08uzzds2IjEaIP169eZ/OEiIyPRv/+API/zRW7evCkGDRpMK37HSbw99F5nRX4tA6s+ebt2flLEY7jI6u3tTbHZTip9bURgYFeTzrt48VK+x/lCHDhwSPwogVVDuEWL5pBJWiikEvPZ+fPnTTqnSpUqKEgsFpDnFdkCtmzZAj179hBpVvv2HU3yyhzAF6SIFgtYsWIFkQ7J5vvvv0OtWjWponKP8uK2Ykjnh7OzE+XAm8Q5BYHFAvr6+iqy6lWsWDGaA9cLB5WY+Jjy2yB88cUIUY3OC3f3ajh8OAqzZv0LDRp8lKP7gReX2LpN7YowB4u98JdfDqc5axKUIi4uToQncXFp2QkLygKx4+Kuhfx48OABxZT7cfLkCXGhuWDA5fw6dbykX3SLLVDpBSKe1/bv3yfqfAxXk7t16y7K8tHR0fmey1lNt26BougaENBRWDU3LSkxYiwW0NVV+RU2LoxGRR3CkCGDxO8swKFDUWjatDkJFISzZ01P/Tj2UwIrnEh52AKet8LDp2PdujUoUyatXqhSqbF9+w4ano0piP47dLo4o3+HF6WUwGIBnZycYEt47ouOPgp/f/+MfJlDqcjI1RSA16fUbDSlcrm3OfLr0lrk5GNFIJ11PuHU6PLly9i4caNYNVMCV1dXqp5EYsWKZRnWyCQnJ2POnHk0X9YVOXH2NO327dt5imstFguYXvzk8CI8fAYt0niL5L1372AKgE3LIiwlMDBQWGOnTgFZqjdcTBg6NJS8tz+uXft96fLYMWUcCGOxgPHxcaINt3ZtT1oQmkLzkE7MTfyBKlWytrhqHLbGVav+I5qVSpculfE8CxUVFUXVnQZYuXKVeO706VNQCovjQK7fcStZ9ivLk358vA4lS8rPUvKCY7zPPx8gylSZ4YWu0NBQXLp0WXQ0KIH0zgQPDw+KuY7YvFuUHQVPJdOnzxC9M5nhwNucSrU5SF9Y5xWuguhbZpHGjBlNtcS1oukoM0qJJ94XEuH5LyAgAAUJ98fs2vU/ypRcYQukDuHKlStTHe+MFAtMC4uuiDm1enV3mMvVq1dFNefOHfktbZmRaoGDBw+QNnxZOC5R3b9/D+PHTxSxnDlUq1aNooTNijszaRbIW7cuXbqgSIZy69ZthIT0RZMmjTFixD/oPUzvfeYtEJ9+2sui1T5TkGaBYWEjFUvvuHi7efMPFBzrUK/eR9i3b7/J53bo0AF9+4ZAKaRYYPXq1cXWBW7xUBL2pmFhozB//kISJRhTp041qZmJ14054OdMRTZSBNRqtVT1dRSNji4uxWn+qSq2Z3FzN3tDT09PER/yEoCxYqgpfP31OCr9zxKWyVUaLy/jG61mz/43vvpqLGRjs20OnBVwAYA32PASJhdKfX19hOe2pNQ+cuQozJs3X1j9zJnhRocp5+7u7jXz7VawBJvvVMoOO58GDf5MPw3EuoWXV92Mlt384OHcr19/rF27TjgILrpyBTo/C//ss/5YvXoNZFLgAmaGhShRojiaNWsm1jH8/NqK/XB5hUbc1tG2bXvRccBwe/GCBfPyvABcO+QCrEwKlYDZ4Z5pnj/9/dujS5fOYhtXdm7evAUfH98MB9G5cycsX75UbEbMzo0bN+lveEhNNQu1gJlh6+Tu+t69e1Jc1yNLqrZu3Xr06ROSIUyvXj3IU8/LMZw5uylTphxSUl5DFm+MgJlh62KrHDRoIBo1Sluf5p1IXAdMJywsjDKYnF63atXqUncsvZECpsNW6ePTkMKT0cK79ujRO9MxPS0vrKc5MuudXBo29DVrNc8Yb7SA6bBY7HgOHDiYZX4rV64sLSZFi2226TRu3ASxsfIq1DbdL6wUvJRw8OChHM6Bm8fHjv1nludkZyMsoPz8phAREbGCLC5WPOYhn5godXUuUa1SGXR4ywkPnyn+562ycpc3VTq1waBWbsmqkMAtcrwT9NSpU2K4y4KML7YI/bOfLLsP3mJSUlKwYcMPePr0iez1mgMaZ2cnXWqqgbu0bXLrk4KE7y2TkHAHsnBw0ISIy+HsXHwWTbDW7ZYp5HBWwpmILAvkm9Q+f/40xH77OwtJv/2dKMS9fp2USBWMUqSrD+wYhfzGbJpP/ysepz9pvwWoyWS5BWiGT+cn9Hp1C45tYCcv0m9Cm5F8ZAmKkpISdSpVame7iLlC2ug7Z7+XtP1G3KZh+o24GbZEBwe1N0+W+IPDGvw25+lyPW7sD/wW4kygh291tpIN/naHCK1WPcviLyPITvrXYfDuUfrjde1fh5HG/wHsvKhpKmnVlAAAAABJRU5ErkJggg==",iB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAlqSURBVHgB7V1naBRdFz6xd2KLLeoaEyvRSGw/lE8F9bOiIHYlKth+iOWPIIINe8WOQj5RLKigiPpZ8VNUsFdsxMSuscTe9XznOW9mSdm4M5uZ3dn33QeO2bn3zvXuM+eec+49N5MoMo9okT4i/xJJEvFkl/0d8FYkQ+SKyP9E9mSX2QKPyDKRLBH+B0lq9ncPGNHZxIXLF3ZKllEAM80jkk4U0oG7SdLJgjYmUYS8gkhMIj/wUIQ8fyR6qABEU4Q8syR6bWLRHATOE/k3ReAPIK+UyCFcRGUXeugvZiMwj3oiGYYGwlX7NZAR5AKU77/4ByqZRS5HqVKlqEGDBpSUlEQJCQnUqFEjiomJoaJFi9LPnz/p9evXlJaWRtevX6e7d+/S1atX6evXr+QgsFKBFlIKudhoN2/enNesWcNCCv/48YPN4NevX3zv3j3esGEDt2nThqOiopwaXwoITA01SXkFX7hz58588uRJtgOnT5/mXr16OUFkKgi87CbyYmNjec+ePapFduP48eMcFxdn53jBnXs2CQYPHswvXrxgJ/Hx40cePXq0XWNW3xFy4ooUKcJz587l379/c7CwcOFCLl68uB3jDy154kV5/vz5QSXPQGpqqh12MXTkYfDLli3jUGLFihWFJTE05GHaYhq5AePHjw8/AmfNmsVuwdu3b7lFixbhQSA0b+XKlew2nD17losVK+ZuAkPpMMwAYZRrCYShXrp0KbsZN2/eZFlzu49ANzkMf+jZs6f7CJw9ezaHC3bt2uUeAqF5q1at4nDCu3fvuGzZsqEnEA5j3rx5rnUYf4KVaVyEHIA4DFq0aBFNnTpVP4cbJCY03dZ2AmXa0oIFC2jSpEkUrsButxXYOnXnzJnD4Y7Lly8H3waGo8MoCA8ePAgugSDPl8PANbyaJHxYEjwcLnjy5EnwCPS1wpAsmRLauHFj7/qyZMmSmuc4duwYux2PHz8ODoEgT7xtvgGkpKR462vVqqVEVqhQQcsQ3gRrM2H16tU8c+ZMPnPmjKX7rl27FhwCp02blu8/P3XqlE5pCL6AAUzl4cOH630VK1bULSSngZQo/r/Fixdbus/KaqQYBYi+ffuSLNHylSOxLbaP6tWrR7JR6S0XDSTRPNq7dy9lZWXRkSNHSAJWevr0qYY+Ho9HE+FIir98+ZIqV65MQkCBcSQS6Wj7+fNnqlKlirY1gHJJHmkd8OzZM7p06ZJ+RoiCe2W1oWMSE5Ov7xs3bpAVWNa82rVrF5g9W79+vbbBlBWi8tUj4S0DZPlSfOHCBU3s1K9fX/fjkpOTVXNxP2xnhw4dOD09Pdf937594wkTJnBMTIx3Kx5moXXr1t6pivvQj1GPn8asePjwIZ87d47XrVunGTpf6Nevn3NTGIPZtm0bF4Tz58+rw0Bb7PLu2LFDjTIcS16AQLQrV64cV61alRMTE1kCcB43bpw+JNSJJnsfFvro2rWrlmO9OnLkSJ44cSK3bdvWS/rRo0d5yZIlPGbMGBYt1nLU4xoCU4LooKAl5pcvX7h69erOEdiuXTv2B9jGnIkaPHk4k44dO/LGjRt1kDkJhGD9aZQD0NBmzZppHUgFtm7dqtcgBlpkAMSOHTtW6xISErz9BGIDcRrCIifWCDx48KCpgezevVuPU/jaoExKStIvaRAIgsV25utj3759Wl+jRg09qYAHgOthw4bla/vmzRsuXbq01ot9DZhAw9E5QiCmmFVgqqSlpfH+/ft5wIABXhs3Y8YML4HR0dE+73316pXWlyhRgj99+sTx8fF6vXbtWp/tES6hXtbiHAiB0HqYEyucWNpMGDp0qN82t2/fJrGDJMZfr+FF4+LiqHv37rR9+3bq1KmTll+5csV7j4zdZ184umbUox8cYwNEG+lPCHQHSJai6r2twDSBcPfdunXz2w6hinhEEkfgk5hq1arpz5xn996/f6+k54WYC/0p9lPPByI0AiTQzdc2MzOTMjIy9HPOkMYscLZQnA8FAtPT18z5PHhBhBVwInAYOU9Z3blzh4VA7U/2CnM5Edg3IdLb9tGjR9ywYUNvW2Dz5s16jRAprxOBXUQdTl9huluZwhhj7969rdo+azYQsZEZgGTDI0JglzC4Ll26eO1fzZo1lSCDQIQ98J516tThUaNG8YgRI3S1YhAiwbb2DceDGA/lCGMGDhyoIU/Tpk21DGHMgQMHvGOZMmWKlrds2ZKHDBmi4is2xcGmAMkzT+D06dPZChCLNWnSJFcf0ByxhV5CDALLly/P9+/f180Gg+QyZcpoaPP8+fNc/YJEBNJ4CEa/uAcnUQ3vawAxX58+fbQvoy0C6ZzAPYU5GxNlsOgPmzZtInHxZAXfv3/XZZWEGCRaRnXr1lUbaBj5ixcvkmgHCYFqB+X7aHsstWJjY1WwzPMFWUuT5HFJViYkZOr5aV9t0ac8BPrw4YNeo50BeYAkM0OXloWBKaZzTg27cOLECa8GBhuwoRZXHD7F9GaCEVLYCWZTym87EELJkrDQmgeYDmOww2I3EBphVwQSLNy6dYt69OhhC3mAaQ3EtpPdkHW15cC1MIDmIZC3izzAtAbKNhSFMyTTRuLlbSUPME2gsTQLR2CVg6WkrK3JCZjyNgiIJSzhcANyvJUqVSq0t6XCBtLYEfG15eRm4LxfzoDbCTE9hREUyzqXwgVwGHBSTji/vDDNNqZxOJy2wrSVRJOjmkdWp7Ahhw4dYjfDrhWGYwRi28lXgsgNgOYZuziuJRCyc+dOdhvg4JA7CTJ5gRGIKeJrXy1UCJHmBU4gpH///q5wKOJtg+kw7CMQgoM7TvxitFmEwGHYSyB2gpcvX86hgGzGhnLa2kOgQSJyvMGczocPH9ajIC4gTwm05Vf+Bw0apCc7nQQSVsiwGXkTF4hu7dj20glk0Mwe/bAKZPGQ2XPwFSaBiL504j92d4xsGmyUHcCB78mTJ3tPfLlMUkFgihOdY5q1b9+et2zZwpmZmZZIw7k9JOhx0CdnStKFkmK8+imdHHyhrJBAycnJ1KpVK4qPj6fExER9bROOayAtiRQldryRr4Dg9CrSnGGAisaH5eTep+xWSQVxkdffBQ59/Z2xoZohsoIiMAtwlZG3MPIKUHOSTn/wFx6KkOiPPA/5QeQ1yAWTZ/otnx6KkJiXPA9ZBOZ5JLz5i4NCxcgecmC553LJyibOQ35g5Ti78ecwOog0p8ifw1D8H+DfPC9faK9RAAAAAElFTkSuQmCC",oB="/assets/stp-std-bank-80-CZMGhv9B.png",lB="/assets/stp-telkom-pay-80-DRTrEa5t.png",cB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAucSURBVHgB7V1LbBxnHf/P7szsev1a7/oR22myJn1IPVCntOUAUgBxaDgheqiQEGoljqgHxAkhJDiUC+RxQgIkQOKAkIAgKtFKSLQgeuCZSpAmJo9tUz/i2LHX9r4fw///vWcde2fsMXGd+Vnfzvvb+X7zf3+TjQXBkcX2eWxnsM1iK4h9RwHr2IrYLmN7C9slsS8SFLCdx7aGzXuI2k/E2PeMrCDuwzLgg2rnYQ+aVsB2C+CB3vhharcghDTOQkzeTiTOQg8UICavF4kF2AFZiMkLSqKyiUmDwO9iex5i9AKRl8b2Bm1YYmcBOLMxgmMGW1FKILnqngYyhg8kfK/TB4nkGsQIC8pUZhLA07MY4cFSWyLwDMTYK84QgbHt2ztmyQaS/TsqVZX/N9aJQA9i7BkJiLEv2HDE8InhIZjucyGBosGbBwlLrOPSsjxswFpCLC2WTniwVGnCpdtb4IXQySNH4EtTE/D4YAocBweX9MDGETpiSdtJJDLJlmI94SkyE0jux66twzf/cTfw9x05FR4l5iyZoVoqV/WZ+i4Js9ROC758agjC4EhJoI3EDZJYKYY86KA+dnCt4/Fm4TZvKD1CVzl1Fi49uFtrQxgcKQKHSU8tHVj8eXUTvj03z6ghWF3n06lf+kgWvjU7Ko5bsFBuQhgcGIG/P3MK3CS/ZfqUWsWWZLiNQWlDbiyxlVpt+NHcGvz6/RLbdzqXhp9/8jiJEYhuFGG/LJbgN9eromrH992pN2GjubtE3dhsqHWSwOubh4DAYScJhUyKGWVOlhys9n50syZ5ymqxnfzYCcuGi88egyvrNbi6UYcT/Q7kUklxHhl/ThR9brU8tH+u+DL+cFYbrZ73OpmRFPBrwqrwgTiRsZTN7oebGG2i5bJDxsgzyrzd6564xuNcPDfax7an+hwVYvDzdD8rOPAcORDDQdxr9iZwPG3KkAXL1UNA4MxAig2OEYJkmURyi83Fjv15Qj497jGlWffEftpernEiRtNc+jylpqD6Way2IOtzIChNASQwn5IlUf7tC9VDoMKTKIFsGB7XTVp/8S83odToerqSMcEFedGvPzkGZ6cG9Sl4rLjFBzWOg9X04GDLLXjhzdtsiwj82vERo1MssZfr0AuFAUf1Rw/i3VIDwuBACMw6tlJDQhul8D+lOrQDhPh/X60qArkEAywJqTjR73K1pv3I7NxGA4qG15xyU/Igk90gEljolwRaTGuWDoMKj7q2Yc/QFqHkBSGPkHWTyibSRwPJX2922LHjGUfZPPq4XfYTNK5soMe+r9Hp7PpdDnqzCcOJ1PD0amv3a7pxIBI4k+GSIlVzqRbcroyT+kuu8fo7wv7ZuD7kJLmikX2lY3VNoIsS2S9tIPP0Fvz2ucdhrd0Em9K2JE/heE7M07jJTBJSCZ21LFTC2T92X3AAGEs7voT85lZvWyQxo1QKGBfvCRUddPhg5YMh77xW1+qWQYaSVkI8NP7lk3gfJ2xH5cS2zIGTIHJhv1Zc3wx+nxKRqzDFzjmHPxepwiv14HaFwgoztJEOZLLP9oU3dGyhoiWw2m5DpS2+R8ZE23IPsc8UcQP/XKlBWEQugQP4eG2UBGbsLR7CbPO+O4C0aSwl7JxwpitCTR9BBwJg5K1kAw3JruOObxSL8MJ4HvIY7iRJ4ljlBXTlJalLW0lR5mL3iH+X79XhwpXwk5OREziVNgw98DAkiDckDOKI3YRQCuFuV0RmMI1BdMfTMkODX6j5+71WqcCrxcq2fkcw/JkUMaTMjK6WmoEd226InMBjZP9oRalQ8OB0TGQFjCiLB5CLgqQh229tam0Pyq1gBLxYGIbvYMFAkk9XzfzqeuDrd0P0BKYcob7a1HxhKouxoUGA5VuA4ArOTg6qa6UaXxOGncg1TZeLIvjVJ/IoSXWV+3Z1z0DnfbHA+xVxPVSQuGo7XLiyEyInMOfygdLtSSKen8jC2WNZXU4Ho4ggKjNmRcb0tMtVLoHHM64+Bvz4K0+Mir48o8pjFC7EMQBhOwWJFJh39i98DJETmEYbplUYtHhZ5j7jAhUvapGVRFYxEK6LYHi6z/bFluDprtW2KIpK8j2xlB2yChBuz5fDx3s7IfIw5t8bVXbnZibC13kBS+3zeJrGj1m6+GCc8/bdsur3j3fK+sEYFRm+YqnrQF4vztX9aUn8w2IFokLkEvjG3RJWhhPw6fFhcKhSotQUlFpBlyoDgO88ovLGVgMuzi2rfr/37jKUsTj6dD6DsaaoA+okQvflQVdxVtcdyev+CR/ED+aie5fKVKwYe0CkEuig/XsUK9FS2rphbVsxNo3S1iLmzqtGnkvZyURal5126Ebss7Z5ZX6VhyllE7aa0XhfiUgJfGa4H849eRLA8KwJ6R23ed8dPLIY/DlU3x/fXGXrLxVy8JVTeeNckY9Ynm8OZdv3SIcijlNV6OW35+FvWDKLCpE6kfEUzxY8abyBgmKry5nosn13Kb8j9tNwX3lsDNJJfnujKZFbg5yetLY5HOVPTCdlOBSSuxEslb16ehyiRKQSOOIYwa4ckpAWdcAyDxsmWIYe4rCD+XQfmoQaBrwz/SkdG8rLPd1NQgbecL/QRu8nZN1o/WakveVtx7h5i3m9+XrD74XllKRlKW9MdTxKAZXt8nhxYEtUVyZFFsLiPDxnHVVxDZtUUdH1tunRHEpcLpVgR3lc6O2p5rcbIiVwwrV1jIbteqUGL79zI9C1P3z6JHw81883cPAbSFAT9ZWqxoM2L6QSi8TPL95fh3NXl3v2OYTp478+9yjrwxPi/d/NcHMevRApgdOplLBhXLI+qAW/WYoZzeLIvChADCF5pM70ikZCKORGwPoi5bxYcwBbWgn8juVasMpQUESrwo6jjDYpzt168JudSLm+FLBY5uQ/ospYlpjJtGApYL80vyLLY1yC0RPXD2kYk0E75uBNcknhN3yvEZxAsle8AsNVVZI/4SuPcU9yI+AUwcmM7StMyEJClIiMwJzNA13Ps9Tk+Eoj2M3SqyBJSPgKpjKQnhDlMTVdGYKEyT6juCtIvFI6pDZwmlTQ01UPksDFgASOYfjjSx7IVgkC866/DkhlvLVmMBs41efqYo9YoReOokRkBI67eiaug3dKRa0PqsGe9nSfa2ooU+FilatpXsZtou+1VhizkFDemxbk1cuHNZXLJv1BNJG40Q422GNpU02BrdypGjZQiRF65xBxHJ+g8gT30XtgQmQEjuDEK9X3aGqWnnoLb7wZsOwrvbdEB3u41xKTSWlXhUaEMBL0SL8Dniiz0vXvbUVr/wiRETjhuCpXJS9MLwp9/7EZuF2v3/8FSrGkyfLPYu1Qe1oLnU9L5Wp5X3oI8GxuAM5/9DisNtv+GiN4vvcMqYJzeiQjpJfvnY84CyFERmDecQ0byEl8amAAZgcHePqGRMkXLs0KjXyzgg+UVwHmRQBOxQR6EFIFJcufQcK7qzmyX77tqfRbTVDh32r9EKtwWgyQ3XRCk8jBR9Ph1TqmolJS5OSTZRQDblY4gepVDh+0OovIxlc0AHNbVRJ4IL54ADYwsnLWpdVVXTriJkfNzvFylZ6bkOUmMM9j6xZ7G+u1JV5yL6Gavr5c8pfDRF90riqdefcvY5lzMytI3mvzmxA19OOMAM8MDMKpdJqJkay6gFGJYQuzMtO1nwj56/oGzBkvRpIKn0WVpZpgt/00163ubWNZx6rO7xY21WsiUSJSAh9GxP/YcJ+ICdwnYgL3iZjAfYIIjOyHBh9CrBOBRYixVxSJwHcgxl5xmQh8E2LsFW9RIC1/9i7+6ZPwGJFO5GcQIyx+CuJ3YwgFiH/+LixmQDgRQhHbRYgRFMRVsXtn/BOgwdot2MVfFCAmsRd5BeiB+GeQdyYv8C/dFSAmsZu8AoQE6fkFAHjQN/+g2wXYZ4xcAB7zfJgGvd+2JogrQA9YEBzyv8P4FLanROcP/X+H8T+jBRbSooBAIAAAAABJRU5ErkJggg==",uB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAnCSURBVHgB7V17jFxVHf7mubOzOzP73u2LzoKVABKWgkAFUuWfNmoDRgw2jfEZFY0KNeERC6GKARNhi0aDENuS4KPrIyRiLD5Sa7WxIrUQWqWN7rbQLvua1+7Oznv8fjOzBTbdnXvOvXd2C/M1Z3c7O3PvPd/9vc/v3HXAOFo4buFYz9HHEa689nZAjGOI4wjHfo5nKq9ZgjBHP0eUo/gOGrsqc9dGS4W482XCdo1+aGhamGMQWNQLX0pjEArS2Ic6efOR2IcqCKNOXjUSw5gHLaiTZ5TEszbR9SYCH+LYiDqqQcjzcTwn/3FUXgyjzGwdxtHLMTQrgeKqqxrIOt4CEb698kVEMoo6VCGZSq8T5fSsDnWUUls3yrntosPhcKDb6cIl3gZc6Paiw+lEp8uFIL/7+Lsc/V+imMdYPo/xQgEnsmm8mMlgIp/DImK9ELhots9DYno9XmzyN+GWxgBWuF0IOZyGP58sFnE0m8FfU0k8x/HPdIqBRrEUa9QIfWIDxf7VtKoSoqR9rDmAj5K0tV4v3A4HrMBLmTSemp7E3uQUXq+NZMbkymt2w1wk6uvBNmwheSvdbs0zOxAt5PHndBIvpzMY488jJGuakneppwF3h1qQ5XGfnIzjR1MxzFDd7URNCHTw36amJnwj2I53eTzQwfOUrj1TCRzMpHCCtq9QuWyxnTc0NGJrqJXffXDiDWk+TWLvjIzhTzPTsAu2E+ijE/huayc2NwWVT5WhVA1QHX+YiOJ4Nou51s1Le7m9tR2f5bFdC5iBn1Ct74uOI05ptRq2EOiofFlDB/F0x3JcJOqqALmg3Zz0D+IRDOay53yP3Jid7T3Y0OiHEZyiNN42OswbkYaVsE0Cr6Ja/bxzGdqcTqXTvMQJ3h0Zxz/SM/O+R9S2v7ULn2hWk+oRhkBfmBjBAXpsq2A5gWLv3uvz4bddK2A8IOFF8Ep+TMN/L1WtUFz4kj7sD+Cpjm7oYJJO5XMk8Y8W2UXLCZRAeF/3ylKMZxRRTupLkRH8Pll9Ul0uN/b1rEKPywVdJHi+j48P41BqBmahIiRVscrtwQDVVoU8mcyWsWFD5Alu9jebIk8g2c2ujh6EaaPNwjICPfSIj1OtlruMO4w4yds4ehqH0sYl4damAKyApI1P8Hr9TnMUWEbg7YEWXOf1GX6/hLdfjozieMa4V2yl5F0iUmNN4oK1DLw/H5AkTP+AlhDYR+LuCCpkg7zeRxjb/Y4xnooBXuZ0o0nMg0VWW2i7L9SGK30N0IVpAmU+D7V1Mr81eCi+/8DMDL4Tm4AqPBblzHOxg4G+7pHFGj8AE9jASspXA8alL1EoYgs9YFQjK0gVC/gPA+tGTreLlRuvRYSKZ/9fPotjTBFVYTKMceDZ7hVY12Dc9j3BfPZe2j6z6GZ28xF65DuDrawdmvPKghO8MeuGT7EapkaHKRW+sqFBiTypnPQnIrACI7kcHk/EcNWZk3iM383WXNawiLuxsQmqMEWg3H0VDDC/HctZW6ebYij0TdrTGyg98+XNxlCspIZqZkGbwA6GFOt9xhL5WeyZnrKp9FPEK6xM38piwTETJN7I/H2lYuFDm8B1vkY0KxjxvzFYPspanp0YymWwefQMBrN6JDYykngfSVSBNoGbGpuV3r/PgrzTCF6jidgWH0deQ9YddCDX+2pAoAjejUp3ysGFn9oQKOq8l3n1b5J61ZZr6RTL8aYx7dIisJ0ZQZdCQj9dlGVI9RjLDB6OR7U8cy9tYJdT7KAxCdYicI3iusYQDXvMhnL6QiivG6tXn92UvA4F4dAisE0xcP2vqfBCH7pqvNptXEA0VViNwJjNS4vz4WXN9Y8euyUw6FQLNvNFe6K/avi3pt1tdRmnRYtAj+LH7KqiVIMsuOvIftBhM4EZRYlqM1n11YVIflZD+osK6ZzWzBJFtfvaS6PsXAQplOVPt8ZpJxXmp0mgWkgiXs2KkpMqxNm5NEqlZxSiBi0CJ/JqEuinJFzg1uuJMYOLNc/5ak4ExMZM5CgDVFXj/CG/eq3NLC716q11TBSk5GZjJhKjjYgqxnYbfU019cbSIaGzBCpLrUN2q7CUvY8opknvZvr3gVL9sDYk9vJ8V2tI4GEG35MFm52I4A+qvSWUvnta2i3rRq2GrYrV8lnsLzUe2RzGnD2RCheU2iu4KL65Wa2OqIPLKXm3aXYw/D0lRV/jsaM2gceZJh1Kqeea94c6qM76C9kLw1Gysw+2dmhN7BjV9wXFqrmpFOFXyUmoQrIS6Um5wGN9WCPW4WuhtlLLrw72JKeqttbNhSkCf8FVtqRGqnR5qXN1GZZbGBtK1nF7sAX3aNq+GU7jp1yzVoUpAhMskj46qbdL7DKS+GzXClxskTrfTwe1PdSu7eO/l4giklcv+ppusOx0uXF4+epStqGDHCV4ezxS2paQNZyDli9bpO4iLoj3t3VyNc34Av9cxAtFXDN8EuMae0tM98YkOWkxuzcprhHPQooM8llp04iRzFe4NFntjgp90gl7V6i1RF6vSVOwLTqBg2m9vmlLWnz9rJ/9kup4bYN5dZQs5/l0CgcZTgiZ0sJR4FXK3jkJjtd6G3GN14cLFRfA58NhJgQbRl5Tdh6zsKxHejVt2v6eVQgsUvFUHQ6M04bf9PqrOG1izcaySudJxoV3RUdrudHPFGSn07di46bIE1haKh6YmsTDFnVf2YeyhjxKr/u0RtgyF5bX2h+JRdA/GXtTmrfUVLqIJ0mcTofsuWDaC58Lf2GeLFuxrjMRWtiFnQz+t0XHYNUyv21bvQRfDLTgAQa4niXiWL5Ntd3BmLNg4TKrrQTK4SVe+1lHD1ZZFHboQNK0rZFRDEybt3lzYTOBZSxjoCv1uc8EglLVqpFVLJ9lPwPkO0jeqaw97SU13fJ/Nask32/vYjnLW6oPWos3ZEF+GmIA/mB8Ar+eVq8YKaC05f9fqOGDJ8Qe3uwP4CvBEN7jESdjLZEvMLPYORXHHqprDTpKjgiBuzk+iRpDcmDpsf5go58rds2lvWvK4NVnC+X8+UBqBs8kp/EiC6LZYs3C+d1C4KdQftzlIqCsdrLh7zJPecvE9VTzHne5gbOZOban8i6xYPJgCenKjzAFkxz2MMmSLatnWIYqt5vUPA/69OyjnwaxhB4oK2UqIS5AAmd3I+VITqpEYJmk4tJIGs9Wb3dg8Z7Hd76OXUJc/fF3+ujlGJrNhYc4HkMdRiFcDc19sf4IUGNjEAv4izDqJFYjL4wqqD8GeX7yDCccYdRJnEteGIoQPa+HN2UOTMXIYZTTvfNp0mZHtEJcGFWgUlma/XMY7+e4AvU/h1HC/wGFsKsjHDtEcAAAAABJRU5ErkJggg==";function rv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{backToPayment:e=>{const{normalize:n}=e;return n(["Back to payment"])}},fr:{backToPayment:e=>{const{normalize:n}=e;return n(["Retour au paiement"])}}}})}const s1=t=>{window.open(t,"_blank")},Ps=t=>{s1("masterpass.app.scheme://masterpass.oltio.co.za/".concat(encodeURIComponent(t)))},dB=t=>{s1("nedbank://masterpass.oltio.co.za/".concat(encodeURIComponent(t)))},sv=t=>{s1("https://www.online.fnb.co.za/banking/mobileservices?codetype=masterpassdeeplink&urlencodedqr=".concat(encodeURIComponent(t)))},hB=[{name:"Absa Scan to Pay",imageSrc:JV,openDeepLinkUrl:Ps},{name:"Avo",imageSrc:XV,openDeepLinkUrl:Ps},{name:"Capitec",imageSrc:eB,openDeepLinkUrl:Ps},{name:"FNB Pay",imageSrc:tB,openDeepLinkUrl:sv},{name:"Instapay",imageSrc:nB,openDeepLinkUrl:Ps},{name:"Nedbank Money",imageSrc:rB,openDeepLinkUrl:dB},{name:"Nedbank Scan to Pay",imageSrc:sB,openDeepLinkUrl:Ps},{name:"RMB",imageSrc:aB,openDeepLinkUrl:sv},{name:"Spot",imageSrc:iB,openDeepLinkUrl:Ps},{name:"Standard Bank Scan to Pay",imageSrc:oB,openDeepLinkUrl:Ps},{name:"Telkom Pay",imageSrc:lB,openDeepLinkUrl:Ps},{name:"Ukheshe",imageSrc:cB,openDeepLinkUrl:Ps},{name:"Vodapay",imageSrc:uB,openDeepLinkUrl:Ps}],x9={name:"ScanToPayEnabledApps",props:{qrCode:{type:String}},data(){return{enabledApps:hB,isMobile:Fn()}},emits:["backToPayment"],methods:{backToPayment(){this.$emit("backToPayment")}}},mB={class:"container","data-testid":"scan-to-pay-enabled-apps"},pB=["onClick"],fB=["src","alt"],_B=["src","alt"],gB={class:"app__text"};function vB(t,r,e,n,s,a){return f(),v("div",null,[m("div",mB,[(f(!0),v(gt,null,Ot(s.enabledApps,i=>(f(),v("div",{class:"app",key:i.name},[s.isMobile?(f(),v("button",{key:0,class:"app__deep-link",onClick:o=>i.openDeepLinkUrl(e.qrCode)},[m("img",{class:"app__image",src:i.imageSrc,alt:i.name},null,8,fB)],8,pB)):(f(),v("img",{key:1,class:"app__image",src:i.imageSrc,alt:i.name},null,8,_B)),m("p",gB,T(i.name),1)]))),128))]),m("button",{onClick:r[0]||(r[0]=(...i)=>a.backToPayment&&a.backToPayment(...i)),class:"button"},T(t.$t("backToPayment")),1)])}typeof rv=="function"&&rv(x9);const yB=ee(x9,[["render",vB],["__scopeId","data-v-bfea84f9"]]);function O9(t){const r=ge();function e(){document.visibilityState!=="hidden"&&n()}async function n(){r.value=await t()}return Ja(()=>{window.addEventListener("focus",n),window.addEventListener("visibilitychange",e)}),_d(()=>{window.removeEventListener("focus",n),window.removeEventListener("visibilitychange",e)}),{response:r,onFocusCallback:n}}function F9(t){const r=ge(t);function e(){return r.value>0?(r.value--,!0):!1}function n(){r.valueasync()=>{const{tryAcquire:n,release:s}=e;if(n())try{await new Promise(i=>setTimeout(i,500));const a=await t.verifyStatus();return a.status===On.SUCCESS&&r("callback",{status:a.status,message:a.message,data:{...a,trans:a.id}}),a.status}catch(a){}finally{s()}},bB="/assets/scan-to-pay_logo-80-UG7U5qv_.png";function av(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instruction:e=>{const{normalize:n}=e;return n(["Open any Scan to Pay app on your phone to scan the QR code"])},seeScanToPayApps:e=>{const{normalize:n}=e;return n(["See Scan to Pay apps"])},downloadImage:e=>{const{normalize:n}=e;return n(["Download image"])},completedPayment:e=>{const{normalize:n}=e;return n(["I've completed payment"])},paymentNotCompleted:e=>{const{normalize:n}=e;return n(["It's taking longer than expected to confirm your payment."])},retryConfirmation:e=>{const{normalize:n}=e;return n(["Retry confirmation"])},showQrCode:e=>{const{normalize:n}=e;return n(["Show QR code"])}},fr:{instruction:e=>{const{normalize:n}=e;return n(["Ouvrez une application compatible avec Scan to Pay sur votre téléphone pour scanner le QR code"])},seeScanToPayApps:e=>{const{normalize:n}=e;return n(["Voir les applications compatibles avec Scan to Pay"])},downloadImage:e=>{const{normalize:n}=e;return n(["Télécharger l'image"])}}}})}const V9={name:"ScanToPayChannel",components:{QrCode:Wm,Loader:tn,ScanToPayEnabledApps:yB,PaymentButton:dt,PaymentConfirmation:L9},mixins:[Kr],setup(t,{emit:r}){const{transaction:e}=ae(),n=1,{count:s,tryAcquire:a,release:i}=F9(n),o=D9({transaction:e,emit:r,semaphore:{tryAcquire:a,release:i}}),{response:l,onFocusCallback:d}=O9(o);return{isVerifyingTransactionStatus:te(()=>s.value!==n),responseStatus:l,onFocusCallback:d}},emits:["callback"],computed:{...we(ae,["transaction"]),showDownloadQrCode(){return Fn()}},data(){const t={ENABLED_APPS:"enabled_apps",QR_CODE:"qr_code"};return{channel:"MPASS_OLTI",qrData:null,views:t,currentView:t.QR_CODE,showRetryConfirmation:!1}},async created(){try{const{data:t}=await this.transaction.getQRCode({channel:this.channel});this.qrData=t,this.listenForCharge()}catch(t){this.emitPaymentChannelError(this,t)}this.fileName="Paystack_".concat(this.transaction.merchant.name,"_").concat(this.transaction.id,"_QRCode.png")},methods:{async hasCompletedPayment(){await this.onFocusCallback(),this.responseStatus!==On.SUCCESS&&(this.showRetryConfirmation=!0)},showQrCode(){this.showRetryConfirmation=!1},listenForChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),r())},listenForCharge(){this.transaction.listenForQRCharge({channel:this.channel},this.listenForChargeCallback)},changeView(t){this.currentView=t}}},CB={class:"scan-to-pay-container"},wB={key:0},kB={key:1},SB={class:"scan-to-pay-container__header","data-testid":"qrCodeHeader"},EB={key:0,class:"instruction"},TB={key:1,class:"instruction"},$B={key:0,class:"scan-to-pay-container__retry-confirmation"},IB={key:1},AB={class:"scan-to-pay-container__download-container"},zB=["href","download"];function RB(t,r,e,n,s,a){const i=P("loader"),o=P("payment-confirmation"),l=P("qr-code"),d=P("payment-button"),u=P("scan-to-pay-enabled-apps");return f(),v("div",CB,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.QR_CODE?(f(),v("div",wB,[s.qrData?(f(),v("div",kB,[m("div",SB,[m("div",null,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[...r[2]||(r[2]=[m("img",{class:"scan-to-pay-container__header__logo",src:bB,alt:"Scan to Pay Logo"},null,-1)])]),_:1})]),s.showRetryConfirmation?(f(),v("p",TB,T(t.$t("paymentNotCompleted")),1)):(f(),v("p",EB,T(t.$t("instruction")),1))]),s.showRetryConfirmation?(f(),v("div",$B,[$(o,{logoPath:"@/assets/scan-to-pay_logo-80.png",logoAltText:"Scan to Pay Logo",retryButtonText:t.$t("retryConfirmation"),isLoading:n.isVerifyingTransactionStatus,backLinkText:t.$t("showQrCode"),onRetryButtonClick:a.hasCompletedPayment,onBackLinkClick:a.showQrCode},null,8,["retryButtonText","isLoading","backLinkText","onRetryButtonClick","onBackLinkClick"])])):(f(),v("div",IB,[$(l,{url:s.qrData.url,code:s.qrData.qr_code},null,8,["url","code"]),m("div",AB,[a.showDownloadQrCode?(f(),v("a",{key:0,"data-testid":"saveQrImageButton",href:s.qrData.url,download:t.fileName,class:"scan-to-pay-container__download-container__download-qr"},T(t.$t("downloadImage")),9,zB)):D("",!0)]),m("button",{onClick:r[0]||(r[0]=g=>a.changeView(s.views.ENABLED_APPS)),class:"scan-to-pay-container__see-scan-to-pay-apps","data-testid":"show-scan-to-pay-enabled-apps"},T(t.$t("seeScanToPayApps")),1),$(d,{onClick:a.hasCompletedPayment,variant:"light",loading:n.isVerifyingTransactionStatus},{default:ne(()=>[Be(T(t.$t("completedPayment")),1)]),_:1},8,["onClick","loading"])]))])):(f(),se(i,{key:0}))])):s.currentView===s.views.ENABLED_APPS?(f(),se(u,{key:1,onBackToPayment:r[1]||(r[1]=g=>a.changeView(s.views.QR_CODE)),qrCode:s.qrData.qr_code},null,8,["qrCode"])):D("",!0)]),_:1})])}typeof av=="function"&&av(V9);const PB=ee(V9,[["render",RB],["__scopeId","data-v-05c3c645"]]),NB="/assets/snapscan_logo-BYsTYDYq.svg";function iv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instruction:e=>{const{normalize:n}=e;return n(["Scan the QR code below in your SnapScan mobile app to complete the payment"])},openInSnapScanApp:e=>{const{normalize:n}=e;return n(["Open in SnapScan app"])},snapScanLogo:e=>{const{normalize:n}=e;return n(["SnapScan Logo"])},completedPayment:e=>{const{normalize:n}=e;return n(["I've completed payment"])},paymentNotCompleted:e=>{const{normalize:n}=e;return n(["It's taking longer than expected to confirm your payment."])},retryConfirmation:e=>{const{normalize:n}=e;return n(["Retry confirmation"])},showQrCode:e=>{const{normalize:n}=e;return n(["Show QR code"])}},fr:{instruction:e=>{const{normalize:n}=e;return n(["Scannez le QR code ci-dessous dans votre application mobile SnapScan pour effectuer le paiement"])},openInSnapScanApp:e=>{const{normalize:n}=e;return n(["Ouvrir dans l'application SnapScan"])},snapScanLogo:e=>{const{normalize:n}=e;return n(["Logo de SnapScan"])}}}})}const B9={name:"SnapScanQrChannel",components:{QrCode:Wm,Loader:tn,PaymentButton:dt,PaymentConfirmation:L9},mixins:[Kr],emits:["callback"],setup(t,{emit:r}){const{transaction:e}=ae(),n=1,{count:s,tryAcquire:a,release:i}=F9(n),o=D9({transaction:e,emit:r,semaphore:{tryAcquire:a,release:i}}),{response:l,onFocusCallback:d}=O9(o);return{isVerifyingTransactionStatus:te(()=>s.value!==n),responseStatus:l,onFocusCallback:d}},computed:{...we(ae,["transaction"]),showOpenInSnapScanApp(){return Fn()}},data(){return{channel:"MPASS_OLTI",qrData:null,snapScanAppUrl:"",showRetryConfirmation:!1}},async created(){try{const{data:t}=await this.transaction.getQRCode({channel:this.channel});this.qrData=t,this.snapScanAppUrl="https://pos.snapscan.io/open/pay_masterpass/".concat(this.qrData.qr_code),this.listenForCharge()}catch(t){this.emitPaymentChannelError(this,t)}},methods:{async hasCompletedPayment(){await this.onFocusCallback(),this.responseStatus!==On.SUCCESS&&(this.showRetryConfirmation=!0)},showQrCode(){this.showRetryConfirmation=!1},openInSnapScanApp(){window.open(this.snapScanAppUrl,"_blank")},listenForChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),r())},listenForCharge(){this.transaction.listenForQRCharge({channel:this.channel},this.listenForChargeCallback)}}},MB={class:"snapscan-qr-container"},LB={key:1},xB={class:"snapscan-qr-container__header","data-testid":"qrCodeHeader"},OB=["alt"],FB={key:0,class:"instruction"},DB={key:1,class:"instruction"},VB={key:0,class:"snapscan-qr-container__retry-confirmation"},BB={key:1};function UB(t,r,e,n,s,a){const i=P("loader"),o=P("payment-confirmation"),l=P("qr-code"),d=P("payment-button");return f(),v("div",MB,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[s.qrData?(f(),v("div",LB,[m("div",xB,[m("div",null,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:NB,alt:t.$t("snapScanLogo")},null,8,OB)]),_:1})]),s.showRetryConfirmation?(f(),v("p",DB,T(t.$t("paymentNotCompleted")),1)):(f(),v("p",FB,T(t.$t("instruction")),1))]),s.showRetryConfirmation?(f(),v("div",VB,[$(o,{logoPath:"@/assets/snapscan_logo.svg",logoAltText:"SnapScan Logo",retryButtonText:t.$t("retryConfirmation"),isLoading:n.isVerifyingTransactionStatus,backLinkText:t.$t("showQrCode"),onRetryButtonClick:a.hasCompletedPayment,onBackLinkClick:a.showQrCode},null,8,["retryButtonText","isLoading","backLinkText","onRetryButtonClick","onBackLinkClick"])])):(f(),v("div",BB,[$(l,{url:s.qrData.url},null,8,["url"]),a.showOpenInSnapScanApp?(f(),se(d,{key:0,"data-testid":"openInSnapScanApp",onClick:a.openInSnapScanApp,class:"snapscan-qr-container__open-app"},{default:ne(()=>[Be(T(t.$t("openInSnapScanApp")),1)]),_:1},8,["onClick"])):D("",!0),$(d,{onClick:a.hasCompletedPayment,variant:"light",loading:n.isVerifyingTransactionStatus},{default:ne(()=>[Be(T(t.$t("completedPayment")),1)]),_:1},8,["onClick","loading"])]))])):(f(),se(i,{key:0}))]),_:1})])}typeof iv=="function"&&iv(B9);const HB=ee(B9,[["render",UB],["__scopeId","data-v-d06de927"]]),qB={name:"SearchDropdown",props:{name:{type:String,required:!1,default:"search-dropdown"},options:{type:Array,required:!0,default(){return[]}},displayProperty:{type:String,required:!0,notes:"Property on the option object to display"},placeholder:{type:String,required:!1,default:"Please select an option"},disabled:{type:Boolean,required:!1,default:!1}},data(){return{selected:{},showOptions:!1,searchFilter:""}},emits:["selected"],computed:{filteredOptions(){if(!this.searchFilter.trim())return this.options;const t=this.searchFilter.replace(/[#$%^&*()[\]{}|?+.\\-]/g,"\\$&"),r=new RegExp(t,"ig");return this.options.reduce((n,s)=>{var a;return(a=s==null?void 0:s.name)!=null&&a.match(r)?[...n,s]:n},[])}},methods:{selectOption(t){this.selected=t,this.showOptions=!1,this.searchFilter=this.selected.name,this.$emit("selected",this.selected)},handleFocus(){this.showOptions=!0},handleBlur(){this.showOptions=!1}}},WB={key:0,class:"search-dropdown"},GB=["name","disabled","placeholder"],jB={class:"search-dropdown__content"},ZB=["onMousedown","data-testid"];function KB(t,r,e,n,s,a){return e.options?(f(),v("div",WB,[ct(m("input",{class:"input",name:e.name,onFocus:r[0]||(r[0]=i=>a.handleFocus()),onBlur:r[1]||(r[1]=i=>a.handleBlur()),"onUpdate:modelValue":r[2]||(r[2]=i=>s.searchFilter=i),disabled:e.disabled,placeholder:e.placeholder,autocomplete:"off"},null,40,GB),[[Wt,s.searchFilter]]),ct(m("div",jB,[(f(!0),v(gt,null,Ot(a.filteredOptions,(i,o)=>(f(),v("div",{class:"dropdown-item",onMousedown:l=>a.selectOption(i),key:"".concat(i,"-").concat(o),"data-testid":"select-dropdown-item-".concat(i[e.displayProperty])},T(i[e.displayProperty]||"-"),41,ZB))),128))],512),[[hr,s.showOptions]])])):D("",!0)}const YB=ee(qB,[["render",KB],["__scopeId","data-v-173b6f12"]]),QB={name:"HowToPayGuide",data(){return{currentPage:0}},props:{contents:Array,mainTitle:String,nextButtonText:String,backButtonText:String},emits:["slideEnd"],methods:{goToNextPage(){this.currentPage+=1},goToPage(t){t!==this.currentPage&&(this.currentPage=t)}}},JB={class:"guide","data-testid":"how-to-pay-guide"},XB={class:"guide__text"},eU={id:"guide-to",class:"guide__content"},tU={class:"guide__ul"},nU=["data-testid","innerHTML"],rU={class:"guide__dot_wrapper"},sU=["onClick"];function aU(t,r,e,n,s,a){return f(),v("div",JB,[m("span",XB,T(e.mainTitle),1),m("header",eU,[Be(T(e.contents[s.currentPage].title)+" ",1),m("ul",tU,[(f(!0),v(gt,null,Ot(e.contents[s.currentPage].instructions,(i,o)=>(f(),v("li",{"data-testid":"how-to-pay-guide-item-".concat(o),class:"guide__li",key:o,innerHTML:i},null,8,nU))),128))])]),m("div",rU,[(f(!0),v(gt,null,Ot(e.contents,(i,o)=>(f(),v("span",{key:o,class:pt(["guide__dot",{"guide__dot--active":s.currentPage===o}]),onClick:l=>a.goToPage(o)},null,10,sU))),128))]),s.currentPage!==e.contents.length-1?(f(),v("button",{key:0,"data-testid":"how-to-pay-guide-next-button",onClick:r[0]||(r[0]=(...i)=>a.goToNextPage&&a.goToNextPage(...i)),class:"button--light"},T(e.nextButtonText),1)):(f(),v("button",{key:1,"data-testid":"how-to-pay-guide-back-button",onClick:r[1]||(r[1]=i=>t.$emit("slideEnd")),class:"button--light"},T(e.backButtonText),1))])}const U9=ee(QB,[["render",aU],["__scopeId","data-v-0fa88f46"]]);function ov(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{howToPay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["How to pay with ",s(a("providerName"))," USSD"])},next:e=>{const{normalize:n}=e;return n(["Next"])},backToPayment:e=>{const{normalize:n}=e;return n(["Back to payment"])},slides:{pageOne:{title:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["To pay with ",s(a("bank"))," USSD, you need to do the following:"])},stepOne:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Dial ',s(a("registrationCode"))," with your registered phone number"])},stepTwo:e=>{const{normalize:n}=e;return n(["Follow the on screen prompts and create your authentication PIN"])}},pageTwo:{title:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Once you confirm that you can pay with ",s(a("bank"))," USSD:"])},stepOne:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Dial ',s(a("paymentString")),""])},stepTwo_ussd:e=>{const{normalize:n}=e;return n(["Follow the on-screen prompts and complete the transaction with your PIN or password"])},stepTwo_pwt:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Select ",s(a("bankName"))," as the beneficiary bank, follow the on-screen prompts and complete the transaction with your PIN or password"])}}}},fr:{howToPay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Comment payer par USSD avec ",s(a("providerName"))])},next:e=>{const{normalize:n}=e;return n(["Suivant"])},backToPayment:e=>{const{normalize:n}=e;return n(["Retour au paiement"])},slides:{pageOne:{title:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pour payer par USSD avec ",s(a("bank")),", vous devez effectuer l'une des opérations suivantes :"])},stepOne:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Composez ',s(a("registrationCode"))," avec le numéro de téléphone que vous avez enregistré auprès de ",s(a("bank"))])},stepTwo:e=>{const{normalize:n}=e;return n(["Suivez les instructions et créez votre code PIN d'authentification"])}},pageTwo:{title:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Une fois que vous avez confirmé que vous pouvez payer par USSD avec ",s(a("bank")),":"])},stepOne:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Composez ',s(a("paymentString")),""])},stepTwo_ussd:e=>{const{normalize:n}=e;return n(["Suivez les instructions et complétez la transaction avec votre code PIN ou votre mot de passe"])},stepTwo_pwt:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Sélectionnez ",s(a("bankName"))," comme banque bénéficiaire, suivez les instructions et terminez la transaction avec votre code PIN ou votre mot de passe"])}}}}}})}const H9={name:"UssdHowToPayGuide",props:{provider:{type:Object,required:!0}},components:{HowToPayGuide:U9},emits:["backToPayment"],computed:{...we(Qt,["ussdChannelState"]),contents(){var e,n;const r={[Mn.DIRECT]:"ussd",[Mn.PAY_WITH_TRANSFER]:"pwt"}[this.provider.type];return[{instructions:[this.$t("slides.pageOne.stepOne",{registrationCode:PP[this.provider.slug]}),this.$t("slides.pageOne.stepTwo")],title:this.$t("slides.pageOne.title",{bank:this.provider.name})},{instructions:[this.$t("slides.pageTwo.stepOne",{paymentString:this.ussdChannelState.savedUssdData.code}),this.$t("slides.pageTwo.stepTwo_".concat(r),{bankName:(n=(e=this.ussdChannelState.savedManagedAccount)==null?void 0:e.bank)==null?void 0:n.name})],title:this.$t("slides.pageTwo.title",{bank:this.provider.name})}]}}};function iU(t,r,e,n,s,a){const i=P("how-to-pay-guide");return f(),se(i,{mainTitle:t.$t("howToPay",{providerName:e.provider.shortname}),nextButtonText:t.$t("next"),backButtonText:t.$t("backToPayment"),contents:a.contents,onSlideEnd:r[0]||(r[0]=o=>t.$emit("backToPayment")),"data-testid":"ussd-how-to-pay-guide"},null,8,["mainTitle","nextButtonText","backButtonText","contents"])}typeof ov=="function"&&ov(H9);const oU=ee(H9,[["render",iU]]);function lv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{shortCodeExpiry:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['This code expires in ',s(a("timeLeft")),""])},clickToCopy:e=>{const{normalize:n}=e;return n(["Click to copy"])},tapToCall:e=>{const{normalize:n}=e;return n(["Tap (or Long Press) to call"])}},fr:{shortCodeExpiry:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Le code expire dans ',s(a("timeLeft")),""])},clickToCopy:e=>{const{normalize:n}=e;return n(["Cliquez pour copier"])},tapToCall:e=>{const{normalize:n}=e;return n(["Appuyer (ou Appuyer Longuement) pour appeler"])}}}})}const q9={name:"UssdShortcode",props:{provider:{type:Object,required:!0},code:{type:String,required:!0},timeLeft:{type:String,required:!1,default:null}},data(){return{instruction:null,isMobile:Fn(),providerTypes:Mn}},methods:{copyToClipboard(t){return ti(t).then(this.onCopy)},onCopy(t){this.instruction=t||"Copied!",setTimeout(()=>{this.instruction=null},1e3)}}},lU={class:"shortcode"},cU={class:"shortcode__content"},uU=["href"],dU={class:"shortcode__helper"},hU={key:0},mU=["innerHTML"];function pU(t,r,e,n,s,a){return f(),v("div",lU,[m("div",cU,[m("div",{class:pt(["shortcode__code",e.provider.type===s.providerTypes.PAY_WITH_TRANSFER?"shortcode__code-pwt":"shortcode__code-ussd"])},[s.isMobile?(f(),v("a",{key:0,href:"tel:".concat(encodeURIComponent(e.code))},T(e.code),9,uU)):(f(),v("p",{key:1,"data-testid":"ussdShortcode",onClick:r[0]||(r[0]=i=>a.copyToClipboard(e.code))},T(e.code),1))],2),m("div",dU,[s.isMobile?(f(),v("p",hU,T(t.$t("tapToCall")),1)):(f(),v("p",{key:1,onClick:r[1]||(r[1]=i=>a.copyToClipboard(e.code))},T(s.instruction||t.$t("clickToCopy")),1)),e.provider.type===s.providerTypes.PAY_WITH_TRANSFER?(f(),v("p",{key:2,innerHTML:t.$t("shortCodeExpiry",{timeLeft:e.timeLeft}),class:"expiry","data-testid":"ussd-pwt-expiry"},null,8,mU)):D("",!0)])])])}typeof lv=="function"&&lv(q9);const fU=ee(q9,[["render",pU]]);function cv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{waitingForTransfer:e=>{const{normalize:n}=e;return n(["We're waiting to receive your payment. This can take a few minutes"])},sent:e=>{const{normalize:n}=e;return n(["Sent"])},received:e=>{const{normalize:n}=e;return n(["Received"])},showUssdString:e=>{const{normalize:n}=e;return n(["Show USSD string"])}},fr:{waitingForTransfer:e=>{const{normalize:n}=e;return n(["Nous attendons de recevoir votre paiement. Cela peut prendre quelques minutes"])},sent:e=>{const{normalize:n}=e;return n(["Envoyé"])},received:e=>{const{normalize:n}=e;return n(["Reçu"])},showUssdString:e=>{const{normalize:n}=e;return n(["Afficher le code USSD"])}}}})}const W9={name:"UssdTransferPending",props:{status:{type:String,required:!0}},components:{PaymentButton:dt,AnimatedWaitingScreen:Od,Instructions:Et},mounted(){W8()},emits:["showUssdString"],computed:{checkAnimationSentBox(){return[In.statuses.CREDIT_REQUEST_RECEIVED,In.statuses.CREDIT_REQUEST_PENDING,In.statuses.SUCCESS].includes(this.status)}},methods:{showUssdString(){this.$emit("showUssdString")}}},_U={class:"controls"};function gU(t,r,e,n,s,a){const i=P("instructions"),o=P("animated-waiting-screen"),l=P("payment-button");return f(),v("div",null,[$(i,{message:t.$t("waitingForTransfer")},null,8,["message"]),$(o,{"data-testid":"ussd-transfer-pending-screen",sentText:t.$t("sent"),receivedText:t.$t("received"),checkSentBox:a.checkAnimationSentBox,checkReceivedBox:e.status==="success"},null,8,["sentText","receivedText","checkSentBox","checkReceivedBox"]),m("div",_U,[$(l,{onClick:a.showUssdString,"data-testid":"show-ussd-string-button",class:"button--light"},{default:ne(()=>[Be(T(t.$t("showUssdString")),1)]),_:1},8,["onClick"])])])}typeof cv=="function"&&cv(W9);const vU=ee(W9,[["render",gU],["__scopeId","data-v-f89a22f0"]]);function uv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{howToPay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["How to pay with ",s(a("providerName"))," USSD"])},ussdIcon:e=>{const{normalize:n}=e;return n(["USSD Icon"])},paymentCompleted:e=>{const{normalize:n}=e;return n(["I've completed the payment"])},shortCodeInstruction_ussd:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Dial the code below to complete this transaction with ",s(a("providerMessage"))])},shortCodeInstruction_pwt:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Dial the code below and select ',s(a("bankName"))," to complete this transaction"])}},fr:{howToPay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Comment payer par USSD avec ",s(a("providerName"))])},ussdIcon:e=>{const{normalize:n}=e;return n(["Icône USSD"])},paymentCompleted:e=>{const{normalize:n}=e;return n(["J'ai effectué le paiement"])},shortCodeInstruction_ussd:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Composez le code ci-dessous pour terminer cette transaction avec ",s(a("providerMessage"))])},shortCodeInstruction_pwt:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Composez le code ci-dessous et sélectionnez ',s(a("bankName"))," pour terminer cette transaction"])}}}})}const G9={name:"UssdShortcodeWrapper",components:{Shortcode:fU,Loader:tn,PaymentButton:dt,Instructions:Et,UssdTransferPending:vU},props:{provider:{type:Object,required:!0}},mixins:[Kr],data(){const t={SHORTCODE:"shortcode",TRANSFER_PENDING:"transfer-pending"};return{views:t,currentView:t.SHORTCODE,ussdData:null,managedAccount:null,interval:null,timeLimit:null,transferStatus:""}},async created(){this.canRecoverChannelState&&this.recoverChannelState(),this.isAwaitingTransfer(this.status)&&(this.recoverChannelState(),this.handleUssdTransferPending(this.status)),this.ussdData||await{[Mn.DIRECT]:this.generateUssdShortcode,[Mn.PAY_WITH_TRANSFER]:this.getPWTUSSDShortcode}[this.provider.type]()},emits:["showHowToPayGuide","callback"],computed:{...we(Qt,["ussdChannelState"]),...we(ae,["transaction","activeChannel","status"]),timeLeft(){const[t,r]=Jm(this.timeLimit).split(":"),e=Math.ceil(Number("".concat(t,".").concat(r)));return this.timeLimit>60?"".concat(e," minutes"):"".concat(t,":").concat(r)},providerMessage(){return this.provider&&"".concat(this.provider.shortname,"'s ").concat(this.provider.shortcode)},canRecoverChannelState(){const{savedManagedAccount:t,savedUssdData:r,canReuse:e}=this.ussdChannelState;if(!e)return!1;const n=ql((t==null?void 0:t.account_expires_at)||null,new Date);return this.provider.bankSlug===(r==null?void 0:r.providerSlug)&&!n},shortCodeInstruction(){var e,n;const r={[Mn.DIRECT]:"ussd",[Mn.PAY_WITH_TRANSFER]:"pwt"}[this.provider.type];return this.$t("shortCodeInstruction_".concat(r),{providerMessage:this.providerMessage,bankName:(n=(e=this.managedAccount)==null?void 0:e.bank)==null?void 0:n.name})}},methods:{...It(Qt,["setUssdChannelState"]),confirmPayment(){Dm({channel:this.activeChannel.name}),this.$emit("callback",{status:"requery"})},handleUssdTransferPending(t){this.transferStatus=t,this.setView(this.views.TRANSFER_PENDING)},showHowToPayGuide(){this.$emit("showHowToPayGuide"),G8()},recoverChannelState(){var t;this.ussdData=this.ussdChannelState.savedUssdData,this.managedAccount=this.ussdChannelState.savedManagedAccount,((t=this.ussdData)==null?void 0:t.type)===Mn.PAY_WITH_TRANSFER&&this.beginAccountExpiryCountdown()},async generateUssdShortcode(){try{const{data:t}=await this.transaction.getUSSDShortcode({channel:this.provider.shortcode});this.ussdData=t,this.saveUssdData({savedUssdData:{...this.ussdData,type:Mn.DIRECT,providerSlug:this.provider.bankSlug}}),this.listenForUSSDCharge()}catch(t){this.emitPaymentChannelError(this,t)}},async getPWTUSSDShortcode(){var t;try{const{data:r}=await this.transaction.getPWTUSSDShortcode({fulfilLateNotification:!1,bankSlug:this.provider.bankSlug});this.managedAccount=r,this.timeLimit=this.getAccountActiveWindow((t=this.managedAccount)==null?void 0:t.account_expires_at);const e={code:r.ussd_string,channel:r.pusher_channel};this.ussdData=e,this.saveUssdData({savedUssdData:{...this.ussdData,type:Mn.PAY_WITH_TRANSFER,providerSlug:this.provider.bankSlug},savedManagedAccount:this.managedAccount}),this.beginAccountExpiryCountdown(),this.listenForPWTUSSDCharge()}catch(r){this.emitPaymentChannelError(this,r)}},listenForChargeCallback(t){t.status!=="error"&&(this.isAwaitingTransfer(t.status)?this.handleUssdTransferPending(t.status):this.$emit("callback",t))},listenForPWTUSSDCharge(){this.transaction.listenForPWTUSSDCharge({bankSlug:this.provider.bankSlug},this.listenForChargeCallback)},listenForUSSDCharge(){this.transaction.listenForUSSDCharge({channel:this.provider.shortcode},this.listenForChargeCallback)},getAccountActiveWindow(t){return Ea(t,new Date)},isAwaitingTransfer(t){const{CREDIT_REQUEST_RECEIVED:r,CREDIT_REQUEST_PENDING:e}=In.statuses;return[r,e].includes(t)},beginAccountExpiryCountdown(){this.interval&&window.clearInterval(this.interval),this.checkTimeLeft(),this.interval=setInterval(()=>this.checkTimeLeft(),1e3)},checkTimeLeft(){var e;const t=(e=this.managedAccount)==null?void 0:e.account_expires_at;this.timeLimit=this.getAccountActiveWindow(t),ql(t,new Date)&&(window.clearInterval(this.interval),this.$emit("callback",{status:"failed",message:"USSD code expired"}))},saveUssdData(t){this.setUssdChannelState(t)},setView(t){Object.values(this.views).includes(t)&&(this.currentView=t)}}},yU={key:0},bU={key:1,class:"shortcode-wrapper"},CU={class:"icon"},wU=["alt"];function kU(t,r,e,n,s,a){const i=P("loader"),o=P("instructions"),l=P("shortcode"),d=P("payment-button"),u=P("ussd-transfer-pending");return f(),v("div",null,[s.currentView===s.views.SHORTCODE?(f(),v("div",yU,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[s.ussdData&&e.provider.shortcode?(f(),v("div",bU,[m("div",CU,[m("img",{src:d5,alt:t.$t("ussdIcon")},null,8,wU)]),$(o,{message:a.shortCodeInstruction,linkText:t.$t("howToPay",{providerName:e.provider.shortname}),onLinkClick:a.showHowToPayGuide,linkDataTestId:"ussd-how-to-pay-text"},null,8,["message","linkText","onLinkClick"]),$(l,My(s.ussdData,{provider:e.provider,timeLeft:a.timeLeft}),null,16,["provider","timeLeft"]),$(d,{"data-testid":"confirmPayment",onClick:a.confirmPayment,variant:"light"},{default:ne(()=>[Be(T(t.$t("paymentCompleted")),1)]),_:1},8,["onClick"])])):(f(),se(i,{key:0}))]),_:1})])):D("",!0),s.currentView===s.views.TRANSFER_PENDING?(f(),se(u,{key:1,onShowUssdString:r[0]||(r[0]=g=>a.setView(s.views.SHORTCODE)),status:s.transferStatus},null,8,["status"])):D("",!0)])}typeof uv=="function"&&uv(G9);const SU=ee(G9,[["render",kU],["__scopeId","data-v-a63e5d39"]]);function dv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{searchFieldPlaceholder:e=>{const{normalize:n}=e;return n(["Find a bank"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Choose your bank to start the payment"])}},fr:{searchFieldPlaceholder:e=>{const{normalize:n}=e;return n(["Cliquez ici pour choisir"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Choisissez votre banque pour commencer le paiement"])}}}})}const j9={name:"UssdChannel",components:{Instructions:Et,CancelLink:rn,UssdShortcodeWrapper:SU,SearchDropdown:YB,UssdHowToPayGuide:oU},data(){const t={SHORTCODE:"shortcode",CHOOSE_PROVIDER:"choose_provider",HOW_TO_PAY:"how-to-pay"};return{views:t,currentView:t.CHOOSE_PROVIDER,selectedProvider:null}},emits:["attempt","callback"],computed:{...we(ae,["transaction","ussdProvider"]),avalaibleUssdProviders(){return V5(this.transaction)},useListView(){var t;return((t=this.avalaibleUssdProviders)==null?void 0:t.length)<=4}},beforeMount(){this.ussdProvider&&this.selectProvider(this.ussdProvider)},beforeUnmount(){this.setUssdChannelState({canReuse:!1})},methods:{...It(Qt,["setUssdChannelState"]),...It(ae,["setTransactionStatus","setUssdProvider"]),cancel(){this.currentView=this.views.CHOOSE_PROVIDER,this.selectedProvider=null,this.setTransactionStatus("abandoned")},selectProvider(t){this.selectedProvider=t,this.setUssdProvider(t),this.setView(this.views.SHORTCODE)},onAttempt(t){this.$emit("attempt",{paymentMethod:t})},onChargeResponse(t){this.$emit("callback",t)},setView(t){Object.values(this.views).includes(t)&&(this.currentView=t)}}},EU={id:"ussd-channel"},TU={key:"choose_provider"},$U={key:0},IU=["onClick"],AU=["data-testid"],zU={class:"ussdchannel__details__info"},RU={class:"ussdchannel__name"},PU={class:"ussdchannel__details__shortcode"},NU={key:1,class:"row"},MU={class:"col-10-sm col-centered"},LU={class:"form-group"};function xU(t,r,e,n,s,a){const i=P("instructions"),o=P("search-dropdown"),l=P("ussd-shortcode-wrapper"),d=P("ussd-how-to-pay-guide"),u=P("cancel-link");return f(),v("div",EU,[s.currentView===s.views.CHOOSE_PROVIDER?(f(),v("div",TU,[$(i,{key:"instruction",icon:"ussd",message:t.$t("instructionMessage")},null,8,["message"]),a.useListView?(f(),v("div",$U,[(f(!0),v(gt,null,Ot(a.avalaibleUssdProviders,g=>(f(),v("div",{class:"ussdchannel",key:g.shortcode,onClick:y=>a.selectProvider(g)},[m("div",{class:"ussdchannel__details","data-testid":"".concat(g.shortcode,"-ussd-channel")},[m("div",zU,[m("span",RU,T(g.name),1)]),m("div",PU,T("*".concat(g.shortcode,"#")),1)],8,AU)],8,IU))),128))])):(f(),v("div",NU,[m("div",MU,[m("div",LU,[$(o,{placeholder:t.$t("searchFieldPlaceholder"),options:a.avalaibleUssdProviders,name:"bankName",onSelected:a.selectProvider,displayProperty:"name","data-testid":"ussdchannel-select-input"},null,8,["placeholder","options","onSelected"])])])]))])):D("",!0),s.currentView===s.views.SHORTCODE?(f(),se(l,{key:s.views.SHORTCODE,provider:s.selectedProvider,onCallback:a.onChargeResponse,onShowHowToPayGuide:r[0]||(r[0]=g=>a.setView(s.views.HOW_TO_PAY))},null,8,["provider","onCallback"])):D("",!0),s.currentView===s.views.HOW_TO_PAY?(f(),se(d,{key:2,onBackToPayment:r[1]||(r[1]=g=>a.setView(s.views.SHORTCODE)),provider:s.selectedProvider},null,8,["provider"])):D("",!0),s.currentView!=="choose_provider"?(f(),se(u,{key:"cancel",onClick:a.cancel,"data-testid":"cancel-ussd-payment-link"},null,8,["onClick"])):D("",!0)])}typeof dv=="function"&&dv(j9);const OU=ee(j9,[["render",xU],["__scopeId","data-v-ed66691a"]]);function hv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{defaultMessage:e=>{const{normalize:n}=e;return n(["Authorize the payment on your phone to complete this transaction"])},sent:e=>{const{normalize:n}=e;return n(["Sent"])},authenticated:e=>{const{normalize:n}=e;return n(["Authenticated"])},paymentAuthenticated:e=>{const{normalize:n}=e;return n(["I have authorized this payment"])},howToPay:e=>{const{normalize:n}=e;return n(["How to pay with PayAttitude"])},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])}},fr:{defaultMessage:e=>{const{normalize:n}=e;return n(["Autorisez le paiement sur votre téléphone pour effectuer cette transaction"])},sent:e=>{const{normalize:n}=e;return n(["Envoyé"])},authenticated:e=>{const{normalize:n}=e;return n(["Authentifié"])},paymentAuthenticated:e=>{const{normalize:n}=e;return n(["J'ai autorisé ce paiement"])},howToPay:e=>{const{normalize:n}=e;return n(["Comment payer avec PayAttitude"])},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])}}}})}const Z9={name:"AuthenticatePayment",components:{AnimatedWaitingScreen:Od,PaymentButton:dt,Instructions:Et},props:{checkAuthenticatedBox:Boolean},emits:["requery","cancel"],methods:{requery(){this.$emit("requery")}}},FU={"data-testid":"authenticate-payattitude"},DU={class:"controls"};function VU(t,r,e,n,s,a){const i=P("instructions"),o=P("animated-waiting-screen"),l=P("payment-button");return f(),v("div",FU,[m("div",null,[$(i,{message:t.$t("defaultMessage"),linkText:t.$t("howToPay"),onLinkClick:r[0]||(r[0]=d=>t.$emit("showHowToPayGuide"))},null,8,["message","linkText"]),$(o,{"data-testid":"payattitude-authenticate-payment-screen",checkSentBox:!0,checkReceivedBox:e.checkAuthenticatedBox},null,8,["checkReceivedBox"])]),m("div",DU,[$(l,{onClick:a.requery,"data-testid":"payment-authenticated-button",class:"button--light"},{default:ne(()=>[Be(T(t.$t("paymentAuthenticated")),1)]),_:1},8,["onClick"]),m("div",{onClick:r[1]||(r[1]=d=>t.$emit("cancel")),"data-testid":"payment-cancel-button",class:"cancel"},[m("a",null,T(t.$t("cancel")),1)])])])}typeof hv=="function"&&hv(Z9);const BU=ee(Z9,[["render",VU],["__scopeId","data-v-db8a83be"]]),UU="/assets/payattitude-logo-for-phone-number-input-Dv1gHziq.png";function mv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{payattitudeLogo:e=>{const{normalize:n}=e;return n(["PayAttitude Logo"])}},fr:{payattitudeLogo:e=>{const{normalize:n}=e;return n(["Logo de PayAttitude "])}}}})}const K9={name:"PayAttitudePhoneNumberInput",props:{modelValue:{required:!0,type:[String,Number]},placeholder:String,required:Boolean},data(){return{number:this.modelValue}},created(){this.number&&this.updateModelValue(this.number)},emits:["update:modelValue"],methods:{updateModelValue(t){const r=mr(t,"NG");if(r!=null&&r.isValid()){const e=r.format("E.164");this.$emit("update:modelValue",e)}else this.$emit("update:modelValue","")},focus(){this.$refs.input.focus()},handleInput(t){var r;this.number=(r=t.target)==null?void 0:r.value,this.number&&this.updateModelValue(this.number)}}},HU={class:"input-wrapper"},qU=["value","placeholder","required"],WU=["alt"];function GU(t,r,e,n,s,a){return f(),v("div",HU,[m("input",{type:"tel",ref:"input",name:"payAttitudePhoneNumber",class:"input",value:e.modelValue,onInput:r[0]||(r[0]=(...i)=>a.handleInput&&a.handleInput(...i)),placeholder:e.placeholder,required:e.required,"data-testid":"payattitude-phone-number-input"},null,40,qU),m("img",{src:UU,alt:t.$t("payattitudeLogo"),class:"payattitude-logo"},null,8,WU)])}typeof mv=="function"&&mv(K9);const jU=ee(K9,[["render",GU],["__scopeId","data-v-2595ba9a"]]);function pv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Please enter your registered phone number to start this payment"])},howToPay:e=>{const{normalize:n}=e;return n(["How to pay with PayAttitude"])},continue:e=>{const{normalize:n}=e;return n(["Continue"])}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro de téléphone enregistré pour commencer ce paiement"])},howToPay:e=>{const{normalize:n}=e;return n(["Comment payer avec PayAttitude"])},continue:e=>{const{normalize:n}=e;return n(["Continuer"])}}}})}const Y9={name:"PayattitudePhoneNumberForm",components:{PayattitudePhoneNumberInput:jU,Instructions:Et,PaymentButton:dt},props:{submitting:Boolean},data(){return{payattitudePhoneNumber:""}},emits:["submitPhoneNumber","showHowToPayGuide"],computed:{...we(ae,["paymentInstrument","reusePaymentInfo"])},created(){var t;if(this.reusePaymentInfo&&((t=this.paymentInstrument)!=null&&t.payattitude)){const{phoneNumber:r}=this.paymentInstrument.payattitude;this.payattitudePhoneNumber=r}},mounted(){this.$refs.payattitudePhoneNumberInput.focus()},methods:{...It(ae,["savePaymentInstrument"]),submit(){this.$emit("submitPhoneNumber",this.payattitudePhoneNumber),this.savePaymentInstrument({payattitude:{phoneNumber:this.payattitudePhoneNumber}})}}},ZU={id:"payattitude-phone-number-form","data-testid":"payattitude-phone-number-form"},KU={class:"row"},YU={class:"col-10-sm col-centered"},QU={class:"form-group form"};function JU(t,r,e,n,s,a){const i=P("instructions"),o=P("payattitude-phone-number-input"),l=P("payment-button");return f(),v("div",ZU,[m("form",{onSubmit:r[2]||(r[2]=jt(d=>a.submit(),["prevent"])),class:"form"},[$(i,{message:t.$t("instructionMessage"),linkText:t.$t("howToPay"),onLinkClick:r[0]||(r[0]=d=>t.$emit("showHowToPayGuide")),linkDataTestId:"payattitude-how-to-pay-text"},null,8,["message","linkText"]),m("div",KU,[m("div",YU,[m("div",QU,[$(o,{required:!0,placeholder:"0812 000 0000",modelValue:s.payattitudePhoneNumber,"onUpdate:modelValue":r[1]||(r[1]=d=>s.payattitudePhoneNumber=d),ref:"payattitudePhoneNumberInput",name:"payattitudePhoneNumber"},null,8,["modelValue"])]),$(l,{"data-testid":"payattitude-phone-number-form-confirm-button",disabled:!s.payattitudePhoneNumber,loading:e.submitting},{default:ne(()=>[Be(T(t.$t("continue")),1)]),_:1},8,["disabled","loading"])])])],32)])}typeof pv=="function"&&pv(Y9);const XU=ee(Y9,[["render",JU],["__scopeId","data-v-d3262584"]]);function fv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{howToPay:e=>{const{normalize:n}=e;return n(["How to pay with PayAttitude"])},next:e=>{const{normalize:n}=e;return n(["Next"])},backToPayment:e=>{const{normalize:n}=e;return n(["Back to payment"])},slides:{pageOne:{title:e=>{const{normalize:n}=e;return n(["To pay with PayAttitude, you need to do one of the following:"])},stepOne:e=>{const{normalize:n}=e;return n(["Register your phone number for PayAttitude via the *596# USSD code"])},stepTwo:e=>{const{normalize:n}=e;return n(["Be a customer of one of PayAttitude’s supported banks"])}},pageTwo:{title:e=>{const{normalize:n}=e;return n(["Once you confirm that you can pay with PayAttitude:"])},stepOne:e=>{const{normalize:n}=e;return n(["Enter your registered phone number"])},stepTwo:e=>{const{normalize:n}=e;return n(["You will receive a USSD prompt on your phone"])},stepThree:e=>{const{normalize:n}=e;return n(["Enter your 6-digit PayAttitude pin or your bank USSD pin if you use one of the supported banks to complete the payment"])}}}},fr:{howToPay:e=>{const{normalize:n}=e;return n(["Comment payer avec PayAttitude"])},next:e=>{const{normalize:n}=e;return n(["Suivant"])},backToPayment:e=>{const{normalize:n}=e;return n(["Retour au paiement"])},slides:{pageOne:{title:e=>{const{normalize:n}=e;return n(["Pour payer avec PayAttitude, vous devez effectuer l'une des opérations suivantes :"])},stepOne:e=>{const{normalize:n}=e;return n(["Enregistrer votre numéro de téléphone pour PayAttitude via le code USSD *596#."])},stepTwo:e=>{const{normalize:n}=e;return n(["Être client de l'une des banques prises en charge par PayAttitude."])}},pageTwo:{title:e=>{const{normalize:n}=e;return n(["Une fois que vous confirmez que vous pouvez payer avec PayAttitude :"])},stepOne:e=>{const{normalize:n}=e;return n(["Saisissez votre numéro de téléphone enregistré"])},stepTwo:e=>{const{normalize:n}=e;return n(["Vous recevrez une invite USSD sur votre téléphone"])},stepThree:e=>{const{normalize:n}=e;return n(["Saisissez votre code PIN PayAttitude à 6 chiffres ou le code PIN USSD de votre banque si vous utilisez l'une des banques prises en charge pour effectuer le paiement"])}}}}}})}const Q9={name:"PayattitudeHowToPayGuide",components:{HowToPayGuide:U9},emits:["backToPayment"],computed:{contents(){return[{instructions:[this.$t("slides.pageOne.stepOne"),this.$t("slides.pageOne.stepTwo")],title:this.$t("slides.pageOne.title")},{instructions:[this.$t("slides.pageTwo.stepOne"),this.$t("slides.pageTwo.stepTwo"),this.$t("slides.pageTwo.stepThree")],title:this.$t("slides.pageTwo.title")}]}}};function eH(t,r,e,n,s,a){const i=P("how-to-pay-guide");return f(),se(i,{mainTitle:t.$t("howToPay"),nextButtonText:t.$t("next"),backButtonText:t.$t("backToPayment"),contents:a.contents,onSlideEnd:r[0]||(r[0]=o=>t.$emit("backToPayment"))},null,8,["mainTitle","nextButtonText","backButtonText","contents"])}typeof fv=="function"&&fv(Q9);const tH=ee(Q9,[["render",eH]]),nH={name:"PayattitudeChannel",components:{PayattitudePhoneNumberForm:XU,PayattitudeHowToPayGuide:tH,AuthenticatePayment:BU},data(){const t={ENTER_PHONE_NUMBER:"enter_phone_number",AUTHENTICATE_PAYMENT:"authenticate_payment",HOW_TO_PAY_INSTRUCTIONS:"how_pay_to_instructions"};return{views:t,currentView:t.ENTER_PHONE_NUMBER,previousView:"",charging:!1,receievedSuccessResponse:!1}},emits:["attempt","callback"],computed:{...we(ae,["transaction"])},methods:{changeView(t){this.previousView=this.currentView,t&&(this.currentView=t)},async charge(t){this.$emit("attempt","payattitude");try{this.charging=!0;const{status:r,message:e,data:n}=await this.transaction.chargePayattitude({phoneNumber:t});if(r==="failed"){this.$emit("callback",{status:r,message:e});return}const{pusher_channel:s}=n;this.changeView(this.views.AUTHENTICATE_PAYMENT),this.listenForCharge(s)}catch(r){this.$emit("callback",r)}finally{this.charging=!1}},requery(){this.$emit("callback",{status:"requery"})},listenForChargeCallback(t,r){t.status==="success"?(this.receievedSuccessResponse=!0,setTimeout(()=>this.$emit("callback",t),1e3)):this.$emit("callback",t),r()},listenForCharge(t){this.transaction.listenForPayattitudeCharge(this.listenForChargeCallback,t)}}},rH={id:"payattitude-channel"},sH={key:0},aH={key:2};function iH(t,r,e,n,s,a){const i=P("payattitude-phone-number-form"),o=P("payattitude-how-to-pay-guide"),l=P("authenticate-payment");return f(),v("div",rH,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.ENTER_PHONE_NUMBER?(f(),v("div",sH,[$(i,{onSubmitPhoneNumber:a.charge,submitting:s.charging,onShowHowToPayGuide:r[0]||(r[0]=d=>a.changeView(s.views.HOW_TO_PAY_INSTRUCTIONS))},null,8,["onSubmitPhoneNumber","submitting"])])):s.currentView===s.views.HOW_TO_PAY_INSTRUCTIONS?(f(),se(o,{key:1,onBackToPayment:r[1]||(r[1]=d=>a.changeView(s.previousView))})):s.currentView===s.views.AUTHENTICATE_PAYMENT?(f(),v("div",aH,[$(l,{onRequery:a.requery,checkAuthenticatedBox:s.receievedSuccessResponse,onCancel:r[2]||(r[2]=d=>a.changeView(s.views.ENTER_PHONE_NUMBER)),onShowHowToPayGuide:r[3]||(r[3]=d=>a.changeView(s.views.HOW_TO_PAY_INSTRUCTIONS))},null,8,["onRequery","checkAuthenticatedBox"])])):D("",!0)]),_:1})])}const oH=ee(nH,[["render",iH]]);function _v(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{signIn:e=>{const{normalize:n}=e;return n(["Sign in"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Sign in with your email and password to pay"])},email:e=>{const{normalize:n}=e;return n(["Email"])},password:e=>{const{normalize:n}=e;return n(["Password"])}},fr:{signIn:e=>{const{normalize:n}=e;return n(["Se connecter"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Connectez-vous avec votre e-mail et votre mot de passe pour payer"])},email:e=>{const{normalize:n}=e;return n(["E-mail"])},password:e=>{const{normalize:n}=e;return n(["Mot de passe"])}}}})}const J9={name:"DirectDebitLoginForm",components:{Instructions:Et,PaymentButton:dt},data(){return{email:"",password:"",error:!1,processing:!1}},emits:["submit"],computed:{isIncomplete(){return!this.email||!this.password}},methods:{onSubmit(){const t={email:this.email,password:this.password};this.processing=!0,this.$emit("submit",t)}}},lH={class:"row"},cH={class:"col-12-sm"},uH={class:"form-group"},dH={class:"input-wrap"},hH={for:"email",class:"label label--floating"},mH={class:"row"},pH={class:"col-12-sm"},fH={class:"form-group"},_H={class:"input-wrap"},gH={for:"password",class:"label label--floating"},vH={class:"pay-section"};function yH(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button");return f(),v("div",null,[m("form",{onSubmit:r[2]||(r[2]=jt((...l)=>a.onSubmit&&a.onSubmit(...l),["prevent"])),class:"form"},[$(i,{message:t.$t("instructionMessage")},null,8,["message"]),m("div",lH,[m("div",cH,[m("div",uH,[m("div",dH,[ct(m("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>s.email=l),ref:"input",type:"email",id:"email",class:pt(["input input--card",{"input--error":s.error}]),placeholder:"hello@paystack.com",required:"",autofocus:""},null,2),[[Wt,s.email]]),m("label",hH,T(t.$t("email")),1)])])])]),m("div",mH,[m("div",pH,[m("div",fH,[m("div",_H,[ct(m("input",{"onUpdate:modelValue":r[1]||(r[1]=l=>s.password=l),ref:"input",id:"password",type:"password",class:pt(["input input--card",{"input--error":s.error}]),required:""},null,2),[[Wt,s.password]]),m("label",gH,T(t.$t("password")),1)])])])]),m("div",vH,[$(o,{loading:s.processing,disabled:a.isIncomplete},{default:ne(()=>[Be(T(t.$t("signIn")),1)]),_:1},8,["loading","disabled"])])],32)])}typeof _v=="function"&&_v(J9);const bH=ee(J9,[["render",yH]]);function gv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{verifyAccount:e=>{const{normalize:n}=e;return n(["Verify Account"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Choose your preferred provisioned account"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Click here to choose"])}},fr:{verifyAccount:e=>{const{normalize:n}=e;return n(["Vérifier le compte"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Choisissez votre compte provisionné préféré"])},clickHereToChoose:e=>{const{normalize:n}=e;return n(["Cliquez ici pour choisir"])}}}})}const X9={name:"DirectDebitAccountsForm",components:{Loader:tn,Instructions:Et,PaymentButton:dt},data(){return{processing:!1,selectedAccount:""}},emits:["submit"],computed:{...we(ae,["transaction"]),accounts(){return this.transaction.directDebit.accounts.filter(t=>t.account_name!==null)},isIncomplete(){return!this.selectedAccount}},methods:{onSubmit(){this.processing=!0;const{account_code:t}=this.selectedAccount;this.$emit("submit",t)},formatAccountDetails(t){const r={"First City Monument Bank":"FCMB","Guaranty Trust Bank":"GTB","First Bank of Nigeria":"First Bank","United Bank For Africa":"UBA"},{account_number:e,bank:{name:n}}=t;return"".concat(r[n]||n," - ******").concat(e.substr(6))}}},CH={key:0,class:"loading"},wH={class:"row"},kH={class:"col-10-sm col-centered"},SH={class:"form-group"},EH={class:"select-wrap"},TH={value:"",disabled:""},$H=["value"],IH={class:"pay-section"};function AH(t,r,e,n,s,a){const i=P("loader"),o=P("instructions"),l=P("payment-button");return f(),v("div",null,[a.accounts.length?(f(),se(rt,{key:1,name:"fade"},{default:ne(()=>[a.accounts.length?(f(),v("form",{key:0,onSubmit:r[1]||(r[1]=jt((...d)=>a.onSubmit&&a.onSubmit(...d),["prevent"])),class:"form"},[$(o,{message:t.$t("instructionMessage")},null,8,["message"]),m("div",wH,[m("div",kH,[m("div",SH,[m("div",EH,[ct(m("select",{ref:"account",name:"account",class:"select","onUpdate:modelValue":r[0]||(r[0]=d=>s.selectedAccount=d)},[m("option",TH,T(t.$t("clickHereToChoose")),1),(f(!0),v(gt,null,Ot(a.accounts,d=>(f(),v("option",{key:d.id,value:d},T(a.formatAccountDetails(d)),9,$H))),128))],512),[[ks,s.selectedAccount]]),r[2]||(r[2]=m("div",{class:"select-icon"},null,-1))])]),m("div",IH,[$(l,{loading:s.processing,disabled:a.isIncomplete},{default:ne(()=>[Be(T(t.$t("verifyAccount")),1)]),_:1},8,["loading","disabled"])])])])],32)):D("",!0)]),_:1})):(f(),v("div",CH,[$(i)]))])}typeof gv=="function"&&gv(X9);const zH=ee(X9,[["render",AH]]),RH={name:"DirectDebitChannel",components:{LoginForm:bH,AccountsForm:zH,OtpForm:xd},mixins:[Kr],data(){const t={ACCOUNTS:"accounts",LOGIN:"login",OTP:"otp"};return{views:t,currentView:t.LOGIN,otpMessage:"Please enter your 6-digit OTP to authorize this payment"}},emits:["callback"],computed:{...we(ae,["transaction"])},methods:{...It(ae,["setIsCharging"]),changeView(t){this.views[t]&&(this.currentView=t)},async loginToDirectDebit({email:t,password:r}){try{await this.transaction.loginToDirectDebitAccount({email:t,password:r}),await this.transaction.getProvisionedAccounts(),this.changeView(this.views.ACCOUNTS)}catch(e){this.emitPaymentChannelError(this,e)}},async chargeDirectDebit(t){try{this.setIsCharging(!0);const r=await this.transaction.chargeDirectDebit(t);this.onChargeResponse(r)}catch(r){this.emitPaymentChannelError(this,r)}},async authenticateAccount(t){try{this.setIsCharging(!0);const r=await this.transaction.authenticateAccount(t);this.onChargeResponse(r)}catch(r){this.emitPaymentChannelError(this,r)}},onChargeResponse(t){this.setIsCharging(!1),t.status==="auth"?this.changeView(t.data.auth):this.$emit("callback",t)},onCancel(){this.$emit("callback",{status:"requery"})}}};function PH(t,r,e,n,s,a){const i=P("login-form"),o=P("accounts-form"),l=P("otp-form");return f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.LOGIN?(f(),se(i,{key:0,onSubmit:a.loginToDirectDebit},null,8,["onSubmit"])):s.currentView===s.views.ACCOUNTS?(f(),se(o,{key:1,onSubmit:a.chargeDirectDebit},null,8,["onSubmit"])):s.currentView===s.views.OTP?(f(),se(l,{key:2,onSubmit:a.authenticateAccount,message:s.otpMessage,resendCountDown:1800,onCancel:a.onCancel},null,8,["onSubmit","message","onCancel"])):D("",!0)]),_:1})])}const NH=ee(RH,[["render",PH]]);function Bd(){const t=ae(),r=te(()=>t.transaction),e=te(()=>t.transactionAmount),n=te(()=>{var l;return(l=t.activeChannel)==null?void 0:l.name}),s=te(()=>{const l=qb[n.value];return l?ID(r.value,l):null}),a=te(()=>!!s.value),i=te(()=>s.value?{baseCurrency:r.value.currency,quoteCurrency:s.value.currency,rate:s.value.rate}:null),o=te(()=>{var l;return s.value?hE({exchangeRate:s.value.rate,transactionAmount:e.value,currency:s.value.currency}):Qn({amount:e.value,currency:(l=r.value)==null?void 0:l.currency})});return{isCrossCurrencyTransaction:a,formattedAmount:o,resolvedRate:s,exchangeRateToDisplay:i}}const MH="MPESA_OFF";function e6(){const t=ae();return{isMpesaPaybillAvailable:te(()=>{var n,s;return(((s=(n=t.transaction)==null?void 0:n.channel_options)==null?void 0:s.mobile_money)||[]).some(a=>a.key===MH)})}}const t6="/assets/mpesa_logo-C8Va13Qa.svg";function vv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Phone Icon"])},switchToPayBillInfo:e=>{const{normalize:n}=e;return n(["Prefer a different method?"])},switchToPaybill:e=>{const{normalize:n}=e;return n(["Switch to M-PESA Paybill"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please enter your test mobile money number to begin this payment"])},live:e=>{const{normalize:n}=e;return n(["Please enter your mobile money number to begin this payment"])}}},fr:{pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer ",s(a("amount"))])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Icône de Téléphone"])},switchToPayBillInfo:e=>{const{normalize:n}=e;return n(["Préférez-vous une autre méthode?"])},switchToPaybill:e=>{const{normalize:n}=e;return n(["Passer à M-PESA paybill"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro mobile money test pour commencer ce paiement"])},live:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro mobile money pour commencer ce paiement"])}}}}})}const n6={name:"MpesaForm",components:{ExchangeRateBanner:_c,PhoneNumberInput:Ui,Instructions:Et,PaymentButton:dt},setup(){const{isCrossCurrencyTransaction:t,formattedAmount:r,resolvedRate:e,exchangeRateToDisplay:n}=Bd(),{isMpesaPaybillAvailable:s}=e6();return{isCrossCurrencyTransaction:t,formattedAmount:r,resolvedRate:e,exchangeRateToDisplay:n,isMpesaPaybillAvailable:s}},mounted(){this.$refs.phoneNumber.focus()},data(){return{phoneNumber:"",processing:!1,selectedProvider:"",isValidPhoneNumber:!1}},emits:["submit","switchToOffline"],computed:{...we(ae,["transaction","reusePaymentInfo","paymentInstrument","transactionAmount","activeChannel"])},created(){var r,e;const t=((r=this.transaction.channel_options)==null?void 0:r.mobile_money)||[];if(this.selectedProvider=(e=t.find(n=>n.key===this.activeChannel.name.toUpperCase()))==null?void 0:e.key,this.amount=ys(this.transactionAmount),this.transaction.isTest)this.prefillTestDetails();else if(this.reusePaymentInfo&&this.paymentInstrument.mobileMoney){const{phoneNumber:n,provider:s}=this.paymentInstrument.mobileMoney;this.phoneNumber=n,this.selectedProvider=s}},methods:{...It(ae,["savePaymentInstrument"]),prefillTestDetails(){this.phoneNumber="0710000000";const t={target:{value:this.phoneNumber}};this.onInput(t)},onSubmit(){this.processing=!0,this.savePaymentInstrument({mobileMoney:{phoneNumber:this.phoneNumber,provider:this.selectedProvider}}),this.$emit("submit",{phoneNumber:this.phoneNumber,networkProvider:this.selectedProvider})},onInput(t){var e,n;const r=(e=t==null?void 0:t.target)==null?void 0:e.value;this.isValidPhoneNumber=(n=mr(r,"KE"))==null?void 0:n.isValid()},switchToOffline(){this.$emit("switchToOffline")}}},LH={class:"mpesa__wrapper"},xH={class:"mpesa__header"},OH={class:"mpesa__icon"},FH=["alt"],DH={class:"mpesa__description"},VH={class:"row"},BH={class:"col-10-sm col-centered"},UH={class:"mpesa__input form-group"},HH={key:0,class:"mpesa__offline-info"},qH={key:1,class:"mpesa__exhange-rate"};function WH(t,r,e,n,s,a){const i=P("Instructions"),o=P("phone-number-input"),l=P("payment-button"),d=P("exchange-rate-banner");return f(),v("div",LH,[m("div",xH,[m("div",OH,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:t6,alt:t.$t("mobileMoneyIcon")},null,8,FH)]),_:1})]),m("p",DH,[$(i,{"data-testid":"instruction",message:t.transaction.isTest?t.$t("instructionMessage.test"):t.$t("instructionMessage.live")},null,8,["message"])])]),m("form",{onSubmit:r[2]||(r[2]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"])),class:"form"},[m("div",VH,[m("div",BH,[m("div",UH,[$(o,{"country-code":"KE",required:!0,placeholder:"070 000 0000",modelValue:s.phoneNumber,"onUpdate:modelValue":r[0]||(r[0]=u=>s.phoneNumber=u),ref:"phoneNumber",name:"phoneNumber",onInput:a.onInput},null,8,["modelValue","onInput"])]),$(l,{class:"mpesa__button","data-testid":"mpesa-confirm-button",disabled:!s.isValidPhoneNumber,loading:s.processing},{default:ne(()=>[Be(T(t.$t("pay",{amount:n.formattedAmount})),1)]),_:1},8,["disabled","loading"]),n.isMpesaPaybillAvailable?(f(),v("span",HH,[Be(T(t.$t("switchToPayBillInfo"))+" ",1),m("a",{class:"mpesa__offline-link","data-testid":"mpesa-offline",onClick:r[1]||(r[1]=(...u)=>a.switchToOffline&&a.switchToOffline(...u))},T(t.$t("switchToPaybill")),1)])):D("",!0),n.isCrossCurrencyTransaction?(f(),v("div",qH,[$(d,{"exchange-rate":n.exchangeRateToDisplay,"charge-currency":n.resolvedRate.currency},null,8,["exchange-rate","charge-currency"])])):D("",!0)])])],32)])}typeof vv=="function"&&vv(n6);const GH=ee(n6,[["render",WH],["__scopeId","data-v-4cb55a9f"]]);function yv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{title:e=>{const{normalize:n}=e;return n(["Lipa na M-PESA"])},link:e=>{const{normalize:n}=e;return n(["How to pay"])},copy:e=>{const{normalize:n}=e;return n(["Copy"])},businessNumber:e=>{const{normalize:n}=e;return n(["Paybill Number"])},accountNumber:e=>{const{normalize:n}=e;return n(["Account Number"])},amount:e=>{const{normalize:n}=e;return n(["Amount"])},completePayment:e=>{const{normalize:n}=e;return n(["I've completed the payment"])},switchToExpress:e=>{const{normalize:n}=e;return n(["Switch to M-PESA Express"])},copied:e=>{const{normalize:n}=e;return n(["Copied!"])}},fr:{title:e=>{const{normalize:n}=e;return n(["Lipa na M-PESA"])},link:e=>{const{normalize:n}=e;return n(["Comment payer"])},businessNumber:e=>{const{normalize:n}=e;return n(["Numéro d'Entreprise Paybill"])},accountNumber:e=>{const{normalize:n}=e;return n(["Numéro de Compte"])},amount:e=>{const{normalize:n}=e;return n(["Montant"])},completePayment:e=>{const{normalize:n}=e;return n(["J'ai effectué le paiement"])},switchToExpress:e=>{const{normalize:n}=e;return n(["Passer à M-PESA Express"])},copied:e=>{const{normalize:n}=e;return n(["Copié!"])},copy:e=>{const{normalize:n}=e;return n(["Copier"])}}}})}const r6={name:"MpesaOffline",components:{ExchangeRateBanner:_c,Loader:tn,PaymentButton:dt},emits:["callback","changeView","completePayment"],setup(){const{isCrossCurrencyTransaction:t,formattedAmount:r,resolvedRate:e,exchangeRateToDisplay:n}=Bd();return{isCrossCurrencyTransaction:t,formattedAmount:r,resolvedRate:e,exchangeRateToDisplay:n}},computed:{...we(Qt,["mpesaOfflineData"]),...we(ae,["transaction","transactionAmount"])},async mounted(){var t,r;if(this.loading=!0,this.mpesaOfflineData)this.accountNumber=this.mpesaOfflineData.gatewayAccount,this.businessNumber=this.mpesaOfflineData.gatewayReference;else try{const e=await this.transaction.chargeMobileMoney({provider:"MPESA_OFF"});this.$emit("callback",e),this.accountNumber=(t=e.data)==null?void 0:t.display.gatewayAccount,this.businessNumber=(r=e.data)==null?void 0:r.display.gatewayReference}catch(e){this.$emit("callback",e)}this.loading=!1},data(){return{accountNumber:"",businessNumber:"",copiedAccountNumber:null,copiedBusinessNumber:null,copiedTransactionAmount:null,loading:!1}},methods:{copyToClipboard(t,r){ti(t).then(r)},onCopyBusinessNumber(t){this.copiedBusinessNumber=t||this.$t("copied"),setTimeout(()=>{this.copiedBusinessNumber=null},1e3)},onCopyAccountNumber(t){this.copiedAccountNumber=t||this.$t("copied"),setTimeout(()=>{this.copiedAccountNumber=null},1e3)},onCopyTransactionAmount(t){this.copiedTransactionAmount=t||this.$t("copied"),setTimeout(()=>{this.copiedTransactionAmount=null},1e3)},changeView(t){this.$emit("changeView",t)},completePayment(){this.$emit("completePayment")}}},jH={class:"mpesa"},ZH={key:0},KH={class:"mpesa__main_title"},YH={class:"display__inline-block","data-testid":"mpesa-offline-title"},QH={class:"mpesa__link"},JH={class:"display__inline-block"},XH={class:"mpesa__details"},eq={key:"mpesa_offline"},tq={class:"mpesa_title"},nq={key:0},rq={key:1},sq=["alt"],aq={class:"mpesa_title"},iq={key:0},oq={key:1},lq=["alt"],cq={class:"mpesa_title"},uq={key:0},dq={key:1},hq=["alt"],mq={key:0,class:"mpesa__exhange-rate"};function pq(t,r,e,n,s,a){const i=P("loader"),o=P("payment-button"),l=P("exchange-rate-banner");return f(),v("div",jH,[s.loading?(f(),se(i,{key:0})):D("",!0),$(rt,null,{default:ne(()=>[s.loading?D("",!0):(f(),v("div",ZH,[m("div",KH,[m("span",YH,T(t.$t("title")),1)]),m("div",QH,[m("span",JH,[m("a",{onClick:r[0]||(r[0]=d=>a.changeView("offline_how_to_pay")),"data-testid":"mpesa-offline-link-instructions"},T(t.$t("link")),1)])]),m("div",XH,[m("div",eq,[m("span",tq,T(t.$t("businessNumber")),1),m("p",{class:"business_number","data-testid":"mpesa-offline-business-number",onClick:r[1]||(r[1]=d=>a.copyToClipboard(s.accountNumber,a.onCopyAccountNumber))},[m("span",null,T(this.accountNumber),1),s.copiedAccountNumber?(f(),v("span",nq,T(s.copiedAccountNumber),1)):(f(),v("span",rq,[m("img",{class:"icon",src:Sr,alt:t.$t("copy")},null,8,sq)]))]),m("span",aq,T(t.$t("accountNumber")),1),m("p",{class:"account_number","data-testid":"mpesa-offline-account-number",onClick:r[2]||(r[2]=d=>a.copyToClipboard(s.businessNumber.toString(),a.onCopyBusinessNumber))},[m("span",null,T(this.businessNumber),1),s.copiedBusinessNumber?(f(),v("span",iq,T(s.copiedBusinessNumber),1)):(f(),v("span",oq,[m("img",{class:"icon",src:Sr,alt:t.$t("copy")},null,8,lq)]))]),m("span",cq,T(t.$t("amount")),1),m("p",{class:"transaction_amount","data-testid":"mpesa-offline-amount",onClick:r[3]||(r[3]=d=>a.copyToClipboard(n.formattedAmount.toString(),a.onCopyTransactionAmount))},[m("span",null,T(n.formattedAmount),1),s.copiedTransactionAmount?(f(),v("span",uq,T(s.copiedTransactionAmount),1)):(f(),v("span",dq,[m("img",{class:"icon",src:Sr,alt:t.$t("copy")},null,8,hq)]))])])]),$(o,{onClick:a.completePayment,"data-testid":"complete-payment-offline"},{default:ne(()=>[Be(T(t.$t("completePayment")),1)]),_:1},8,["onClick"]),m("a",{class:"mpesa__switch_back","data-testid":"mpesa-switch-back",onClick:r[4]||(r[4]=d=>a.changeView("enter_number"))},T(t.$t("switchToExpress")),1),n.isCrossCurrencyTransaction?(f(),v("div",mq,[$(l,{"exchange-rate":n.exchangeRateToDisplay,"charge-currency":n.resolvedRate.currency},null,8,["exchange-rate","charge-currency"])])):D("",!0)]))]),_:1})])}typeof yv=="function"&&yv(r6);const fq=ee(r6,[["render",pq],["__scopeId","data-v-d20742b7"]]);function bv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{copied:e=>{const{normalize:n}=e;return n(["Copied!"])},copy:e=>{const{normalize:n}=e;return n(["Copy"])},switchToPaymentView:e=>{const{normalize:n}=e;return n(["Back to payment"])},instructions:{title:e=>{const{normalize:n}=e;return n(["How to pay with Lipa na M-PESA"])},stepOne:e=>{const{normalize:n}=e;return n(["Open your M-PESA Menu"])},stepTwo:e=>{const{normalize:n}=e;return n(["Select “Lipa na M-PESA”"])},stepThree:e=>{const{normalize:n}=e;return n(["Select “Pay Bill” or “Buy Goods”"])},stepFour:e=>{const{normalize:n}=e;return n(["Enter Paybill Business Number"])},stepFive:e=>{const{normalize:n}=e;return n(["Enter Account Number"])},stepSix:e=>{const{normalize:n}=e;return n(["Enter your M-PESA pin"])},stepSeven:e=>{const{normalize:n}=e;return n(["You will receive a confirmation SMS from M-PESA once the payment is complete"])}}},fr:{copied:e=>{const{normalize:n}=e;return n(["Copié!"])},copy:e=>{const{normalize:n}=e;return n(["Copier"])},switchToPaymentView:e=>{const{normalize:n}=e;return n(["Retourner au paiement"])},instructions:{title:e=>{const{normalize:n}=e;return n(["Comment payer avec Lipa na M-PESA"])},stepOne:e=>{const{normalize:n}=e;return n(["Ouvrir votre Menu M-PESA"])},stepTwo:e=>{const{normalize:n}=e;return n(["Selectionner “Lipa na M-PESA”"])},stepThree:e=>{const{normalize:n}=e;return n(["Selectionner “Pay Bill” or “Buy Goods”"])},stepFour:e=>{const{normalize:n}=e;return n(["Saisir le Numéro d'Entreprise Paybill"])},stepFive:e=>{const{normalize:n}=e;return n(["Saisir le Numero de Compte"])},stepSix:e=>{const{normalize:n}=e;return n(["Saisir votre code M-PESA"])},stepSeven:e=>{const{normalize:n}=e;return n(["Vous recevrez un SMS de confirmation de M-PESA une fois le paiement effectué"])}}}}})}const s6={name:"MpesaOfflineHowToPay",computed:{...we(Qt,["mpesaOfflineData"])},data(){return{accountNumber:"",businessNumber:"",copiedAccountNumber:null,copiedBusinessNumber:null}},emits:["backToOffline"],mounted(){this.mpesaOfflineData&&(this.accountNumber=this.mpesaOfflineData.gatewayAccount,this.businessNumber=this.mpesaOfflineData.gatewayReference)},methods:{copyToClipboard(t,r){ti(t).then(r)},onCopyAccountNumber(t){this.copiedAccountNumber=t||this.$t("copied"),setTimeout(()=>{this.copiedAccountNumber=null},1e3)},onCopyBusinessNumber(t){this.copiedBusinessNumber=t||this.$t("copied"),setTimeout(()=>{this.copiedBusinessNumber=null},1e3)},backToOffline(){this.$emit("backToOffline")}}},_q={class:"mpesa"},gq={class:"mpesa__main-title"},vq={class:"display__inline-block","data-testid":"mpesa-offline-instructions-title"},yq={class:"mpesa__details"},bq={key:"mpesa_offline"},Cq={"data-testid":"mpesa-instructions-point1"},wq={key:0},kq={key:1},Sq=["alt"],Eq={key:1},Tq={key:0},$q={key:1},Iq=["alt"],Aq={key:3};function zq(t,r,e,n,s,a){return f(),v("div",_q,[m("div",gq,[m("span",vq,T(t.$t("instructions.title")),1)]),m("div",yq,[m("div",bq,[m("ul",null,[m("li",Cq,T(t.$t("instructions.stepOne")),1),m("li",null,T(t.$t("instructions.stepTwo")),1),m("li",null,T(t.$t("instructions.stepThree")),1),this.accountNumber?(f(),v("li",{key:0,onClick:r[0]||(r[0]=i=>a.copyToClipboard(s.accountNumber,a.onCopyAccountNumber))},[Be(T(t.$t("instructions.stepFour"))+" ",1),s.copiedAccountNumber?(f(),v("span",wq,T(s.copiedAccountNumber),1)):(f(),v("span",kq,[m("img",{class:"icon",src:Sr,alt:t.$t("copy")},null,8,Sq)]))])):(f(),v("li",Eq,T(t.$t("instructions.stepFour")),1)),this.businessNumber?(f(),v("li",{key:2,onClick:r[1]||(r[1]=i=>a.copyToClipboard(s.businessNumber.toString(),a.onCopyBusinessNumber))},[Be(T(t.$t("instructions.stepFive"))+" ",1),s.copiedBusinessNumber?(f(),v("span",Tq,T(s.copiedBusinessNumber),1)):(f(),v("span",$q,[m("img",{class:"icon",src:Sr,alt:t.$t("copy")},null,8,Iq)]))])):(f(),v("li",Aq,T(t.$t("instructions.stepFive")),1)),m("li",null,T(t.$t("instructions.stepSix")),1),m("li",null,T(t.$t("instructions.stepSeven")),1)])])]),m("button",{class:"mpesa__switch-back","data-testid":"mpesa-switch-back",onClick:r[2]||(r[2]=(...i)=>a.backToOffline&&a.backToOffline(...i))},T(t.$t("switchToPaymentView")),1)])}typeof bv=="function"&&bv(s6);const Rq=ee(s6,[["render",zq],["__scopeId","data-v-3d2676c9"]]);function Cv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please wait while we authorize this test transaction."])},live:e=>{const{normalize:n}=e;return n(["Please enter your PIN on your phone to complete this payment"])}},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])},message:e=>{const{normalize:n}=e;return n(["Payment is valid for"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Phone icon"])}},fr:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Veuillez patienter pendant que nous autorisons cette transaction test."])},live:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre code PIN sur votre téléphone pour effectuer ce paiement"])}},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])},message:e=>{const{normalize:n}=e;return n(["Le paiement est valide pour"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Icône de Téléphone"])}}}})}const Pq=11,a6={name:"MpesaInProgress",components:{Countdown:Ss,Instructions:Et},props:{message:{type:String,required:!0},displayType:{type:String,required:!0},timer:{type:Number,required:!0},phoneNumber:{type:String,required:!0}},data(){return{countdown:60,interval:null,timerThresholdInSeconds:Pq,isMobile:Fn()}},emits:["confirm","cancel"],computed:{...we(ae,["transaction"])},beforeUnmount(){window.clearInterval(this.interval)},created(){this.displayType==="pop"&&(this.countdown=this.transaction.isTest?5:this.timer,this.interval=window.setInterval(()=>{this.countdown=this.countdown-1,this.countdown===0&&(window.clearInterval(this.interval),this.$emit("confirm"))},1e3))},methods:{cancel(){this.$emit("cancel")}}},Nq={class:"mpesa__wrapper"},Mq={class:"mpesa__icon"},Lq=["alt"],xq={class:"mpesa__description"},Oq={class:"mpesa__phone"};function Fq(t,r,e,n,s,a){const i=P("instructions"),o=P("countdown");return f(),v("div",Nq,[m("div",Mq,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:mc,alt:t.$t("phoneIcon")},null,8,Lq)]),_:1})]),m("div",xq,[m("div",Oq,T(e.phoneNumber),1),$(i,{message:t.transaction.isTest?t.$t("instructionMessage.test"):t.$t("instructionMessage.live")},null,8,["message"])]),e.displayType==="pop"&&s.countdown?(f(),se(o,{key:0,"data-testid":"mpesa-counter",class:"mpesa__countdown",countdownDuration:this.timer,countdownTimerMessage:t.$t("message")},null,8,["countdownDuration","countdownTimerMessage"])):D("",!0),s.isMobile?D("",!0):(f(),v("button",{key:1,"data-testid":"cancel-payment-button",onClick:r[0]||(r[0]=(...l)=>a.cancel&&a.cancel(...l))},T(t.$t("cancel")),1))])}typeof Cv=="function"&&Cv(a6);const i6=ee(a6,[["render",Fq],["__scopeId","data-v-d642351c"]]),Dq={name:"MpesaChannel",components:{MpesaForm:GH,MpesaOffline:fq,MpesaOfflineHowToPay:Rq,MpesaInProgress:i6},mixins:[Kr],data(){const t={ENTER_NUMBER:"enter_number",OFFLINE_MODE:"paybill_offline",OFFLINE_HOW_TO_PAY:"offline_how_to_pay",LISTEN_FOR_CHARGE:"listen_for_charge"};return{views:t,currentView:t.ENTER_NUMBER,message:"",authorizationWaitTime:0,phoneNumber:"",networkProvider:"",displayType:""}},emits:["callback","attempt"],computed:{...we(ae,["transaction","activeChannel"]),...we(Qt,["mpesaOfflineData"])},async created(){var t;(t=this.activeChannel)!=null&&t.view&&this.setView(this.activeChannel.view)},beforeUnmount(){this.setMpesaOfflineData(null)},methods:{...It(Qt,["setMpesaOfflineData"]),...It(ae,["setIsCharging"]),requery(){this.$emit("callback",{status:"requery"})},onPhoneNumberSubmit({networkProvider:t,phoneNumber:r}){var n;this.networkProvider=t,this.phoneNumber=r;const e=(n=mr(r,"KE"))==null?void 0:n.format("E.164");this.chargePhoneNumber({phoneNumber:e,networkProvider:this.networkProvider})},async chargePhoneNumber({phoneNumber:t,networkProvider:r}){try{this.setIsCharging(!0),this.$emit("attempt");const e={...t&&{phoneNumber:t},...r&&{provider:r}},n=await this.transaction.chargeMobileMoney(e);this.setIsCharging(!1),this.handleChargeResponse(n)}catch(e){this.emitPaymentChannelError(this,e)}},listenForChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),r())},listenForCharge(){this.transaction.listenForMobileMoneyCharge(this.listenForChargeCallback)},handleChargeResponse(t){var n,s,a,i;const{status:r,data:e}=t;if(r==="success"){this.message=(n=e==null?void 0:e.display)==null?void 0:n.message,this.displayType=(s=e==null?void 0:e.display)==null?void 0:s.type,this.authorizationWaitTime=((a=e==null?void 0:e.display)==null?void 0:a.timer)||0;const o=(i=this.displayType)==null?void 0:i.toUpperCase(),l=this.views[o]||this.views.LISTEN_FOR_CHARGE;this.setView(l),l===this.views.LISTEN_FOR_CHARGE&&this.listenForCharge()}else this.$emit("callback",t)},handleOfflineResponse(t){t.status==="success"?(this.setMpesaOfflineData(t.data.display),this.listenForCharge()):this.$emit("callback",t)},setView(t){Object.values(this.views).includes(t)&&(this.currentView=t)}}},Vq={key:"enter_number"},Bq={key:"paybill_offline"},Uq={key:"offline_how_to_pay"},Hq={key:"listen_for_charge"};function qq(t,r,e,n,s,a){const i=P("mpesa-form"),o=P("mpesa-offline"),l=P("mpesa-offline-how-to-pay"),d=P("mpesa-in-progress");return f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.ENTER_NUMBER?(f(),v("div",Vq,[$(i,{onSubmit:a.onPhoneNumberSubmit,onSwitchToOffline:r[0]||(r[0]=u=>a.setView(s.views.OFFLINE_MODE))},null,8,["onSubmit"])])):s.currentView===s.views.OFFLINE_MODE?(f(),v("div",Bq,[$(o,{onCompletePayment:a.requery,onChangeView:a.setView,onCallback:a.handleOfflineResponse},null,8,["onCompletePayment","onChangeView","onCallback"])])):s.currentView===s.views.OFFLINE_HOW_TO_PAY?(f(),v("div",Uq,[$(l,{onBackToOffline:r[1]||(r[1]=u=>a.setView(s.views.OFFLINE_MODE))})])):s.currentView===s.views.LISTEN_FOR_CHARGE?(f(),v("div",Hq,[$(d,{phoneNumber:s.phoneNumber,displayType:s.displayType,timer:s.authorizationWaitTime,message:s.message,onCancel:a.requery,onConfirm:a.requery},null,8,["phoneNumber","displayType","timer","message","onCancel","onConfirm"])])):D("",!0)]),_:1})])}const Wq=ee(Dq,[["render",qq]]);function wv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Phone Icon"])},showHelp:e=>{const{normalize:n}=e;return n(["Learn about Pay with M-PESA Till"])},instructionTitle:e=>{const{normalize:n}=e;return n(["Pay from your M-PESA Till"])},accountNumberPlaceholder:e=>{const{normalize:n}=e;return n(["Enter Till number"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please enter your test M-PESA Till number to begin this payment"])},live:e=>{const{normalize:n}=e;return n(["Enter your business’s M-PESA Till number to make a payment directly from your Till account."])}}}}})}const Gq={class:"mpesatill__wrapper"},jq={class:"mpesatill__header"},Zq={class:"mpesatill__icon"},Kq=["alt"],Yq={class:"mpesatill__title"},Qq={class:"mpesatill__description"},Jq={class:"row"},Xq={class:"col-10-sm col-centered"},eW={class:"mpesatill__input form-group"},tW=["placeholder"],nW={key:0,class:"mpesatill__exhange-rate"},rW=6,o6={__name:"MpesaTillForm",props:["submit","showHelp"],emits:["submit","showHelp"],setup(t,{emit:r}){const e=ae(),{t:n}=vn(),s=te(()=>e.transaction),a=te(()=>e.reusePaymentInfo),i=te(()=>e.paymentInstrument),o=s.value.isTest,l=ge(!1),d=ge(!1),u=ge(""),g=ge(null),y=r,{isCrossCurrencyTransaction:w,formattedAmount:k,resolvedRate:E,exchangeRateToDisplay:R}=Bd();An(()=>{Vr(()=>{g.value.focus()}),o?O():a.value&&i.value.mobileMoney&&(u.value=i.value.mobileMoney.accountNumber)});const O=()=>{u.value="000000";const A={target:{value:u.value}};x(A)},M=()=>{l.value=!0,e.savePaymentInstrument({mobileMoney:{accountNumber:u.value}}),y("submit",{accountNumber:u.value})},x=A=>{var F;const V=(F=A==null?void 0:A.target)==null?void 0:F.value;d.value=V.length>=rW&&isFinite(V)},N=()=>{y("showHelp")};return(A,V)=>(f(),v("div",Gq,[m("div",jq,[m("div",Zq,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:t6,alt:fe(n)("mobileMoneyIcon")},null,8,Kq)]),_:1})]),m("p",Yq,T(fe(n)("instructionTitle")),1),m("p",Qq,[$(Et,{"data-testid":"instruction",message:s.value.isTest?fe(n)("instructionMessage.test"):fe(n)("instructionMessage.live")},null,8,["message"])])]),m("form",{onSubmit:jt(M,["prevent"]),class:"form"},[m("div",Jq,[m("div",Xq,[m("div",eW,[ct(m("input",{name:"accountNumber",ref_key:"inputRef",ref:g,class:"input",required:!0,placeholder:fe(n)("accountNumberPlaceholder"),"onUpdate:modelValue":V[0]||(V[0]=F=>u.value=F),onInput:x},null,40,tW),[[Wt,u.value]])]),m("a",{class:"mpesatill__help","data-testid":"mpesatill-help",onClick:N},T(fe(n)("showHelp")),1),$(dt,{class:"mpesatill__button","data-testid":"mpesatill-confirm-button",disabled:!d.value,loading:l.value},{default:ne(()=>[Be(T(fe(n)("pay",{amount:fe(k)})),1)]),_:1},8,["disabled","loading"]),fe(w)?(f(),v("div",nW,[$(_c,{"exchange-rate":fe(R),"charge-currency":fe(E).currency},null,8,["exchange-rate","charge-currency"])])):D("",!0)])])],32)]))}};typeof wv=="function"&&wv(o6);const sW=ee(o6,[["__scopeId","data-v-e5371ab6"]]);function kv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{switchToPaymentView:e=>{const{normalize:n}=e;return n(["Back to payment"])},instructions:{title:e=>{const{normalize:n}=e;return n(["Pay with M-PESA Till"])},introTitle:e=>{const{normalize:n}=e;return n(["What is Pay with Till number?"])},intro:e=>{const{normalize:n}=e;return n(["You can pay another business directly from your business’s MPESA Till account"])},listTitle:e=>{const{normalize:n}=e;return n(["How to Pay with Till number"])},stepOne:e=>{const{normalize:n}=e;return n(["Enter your MPESA Operator ID"])},stepTwo:e=>{const{normalize:n}=e;return n(["Enter your MPESA Operator PIN"])}}}}})}const aW={class:"mpesatill"},iW={class:"mpesatill__main-title"},oW={class:"display__inline-block","data-testid":"mpesatill-instructions-title"},lW={class:"mpesatill__details"},cW={class:"mpesatill__sub-title display__inline-block"},uW={class:"mpesatill__intro display__inline-block"},dW={class:"mpesatill__sub-title display__inline-block"},hW={"data-testid":"mpesatill-instructions-point1"},l6={__name:"MpesaTillHowToPay",emits:["backToForm"],setup(t,{emit:r}){const{t:e}=vn(),n=r,s=()=>{n("backToForm")};return(a,i)=>(f(),v("div",aW,[m("div",iW,[m("span",oW,T(fe(e)("instructions.title")),1)]),m("div",lW,[m("span",cW,T(fe(e)("instructions.introTitle")),1),m("span",uW,T(fe(e)("instructions.intro")),1),m("span",dW,T(fe(e)("instructions.listTitle")),1),m("ul",null,[m("li",hW,T(fe(e)("instructions.stepOne")),1),m("li",null,T(fe(e)("instructions.stepTwo")),1)])]),m("button",{class:"mpesatill__switch-back","data-testid":"mpesatill-switch-back",onClick:s},T(fe(e)("switchToPaymentView")),1)]))}};typeof kv=="function"&&kv(l6);const mW=ee(l6,[["__scopeId","data-v-24e2ec06"]]),pW={name:"MpesaTillChannel",components:{MpesaInProgress:i6,MpesaTillHowToPay:mW,MpesaTillForm:sW},mixins:[Kr],data(){const t={ENTER_NUMBER:"enter_number",HOW_TO_PAY:"how_to_pay",LISTEN_FOR_CHARGE:"listen_for_charge"};return{views:t,currentView:t.ENTER_NUMBER,message:"",authorizationWaitTime:0,accountNumber:"",accountProvider:"",displayType:""}},emits:["callback","attempt"],computed:{...we(ae,["transaction","activeChannel"])},async created(){var t;(t=this.activeChannel)!=null&&t.view&&this.setView(this.activeChannel.view)},methods:{...It(ae,["setIsCharging"]),requery(){this.$emit("callback",{status:"requery"})},setView(t){Object.values(this.views).includes(t)&&(this.currentView=t)},getProvider(){var e;const t=(e=this.transaction.channel_options)==null?void 0:e.mobile_money,r=this.activeChannel.name.toUpperCase();return t==null?void 0:t.find(n=>n.key===r).key},onAccountNumberSubmit({accountNumber:t}){this.accountProvider=this.getProvider(),this.accountNumber=t,this.chargeAccountNumber({accountNumber:t,accountProvider:this.accountProvider})},async chargeAccountNumber({accountNumber:t,accountProvider:r}){try{this.setIsCharging(!0),this.$emit("attempt");const e={...t&&{accountNumber:t},...r&&{provider:r}},n=await this.transaction.chargeMobileMoney(e);this.setIsCharging(!1),this.handleChargeResponse(n)}catch(e){this.emitPaymentChannelError(this,e)}},listenForChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),r())},listenForCharge(){this.transaction.listenForMobileMoneyCharge(this.listenForChargeCallback)},handleChargeResponse(t){var n,s;const{status:r,data:e}=t;if(r==="success"){this.message=e.display.message,this.displayType=e.display.type,this.authorizationWaitTime=((n=e==null?void 0:e.display)==null?void 0:n.timer)||0;const a=(s=this.displayType)==null?void 0:s.toUpperCase(),i=this.views[a]||this.views.LISTEN_FOR_CHARGE;this.setView(i),i===this.views.LISTEN_FOR_CHARGE&&this.listenForCharge()}else this.$emit("callback",t)}}},fW={key:"enter_number"},_W={key:"how_to_pay"},gW={key:"listen_for_charge"};function vW(t,r,e,n,s,a){const i=P("mpesa-till-form"),o=P("mpesa-till-how-to-pay"),l=P("mpesa-in-progress");return f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.ENTER_NUMBER?(f(),v("div",fW,[$(i,{onSubmit:a.onAccountNumberSubmit,onShowHelp:r[0]||(r[0]=d=>a.setView(s.views.HOW_TO_PAY))},null,8,["onSubmit"])])):s.currentView===s.views.HOW_TO_PAY?(f(),v("div",_W,[$(o,{onBackToForm:r[1]||(r[1]=d=>a.setView(s.views.ENTER_NUMBER))})])):s.currentView===s.views.LISTEN_FOR_CHARGE?(f(),v("div",gW,[$(l,{phoneNumber:s.accountNumber,displayType:s.displayType,timer:s.authorizationWaitTime,message:s.message,onCancel:a.requery,onConfirm:a.requery},null,8,["phoneNumber","displayType","timer","message","onCancel","onConfirm"])])):D("",!0)]),_:1})])}const yW=ee(pW,[["render",vW]]),c6="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%3e%3ctitle%3eGhana%20Mobile%20Money%3c/title%3e%3cg%20id='Icons'%3e%3cpath%20d='M13.5.5h-7a1.95878,1.95878,0,0,0-2,2v15a1.95878,1.95878,0,0,0,2,2h7a1.95878,1.95878,0,0,0,2-2V2.5A1.95878,1.95878,0,0,0,13.5.5Zm1,14v2a.97939.97939,0,0,1-1,1h-7a.97939.97939,0,0,1-1-1V2.5a.97939.97939,0,0,1,1-1h7a.97939.97939,0,0,1,1,1Z'%20fill='%23011b33'/%3e%3crect%20x='5.5'%20y='1.5'%20width='9'%20height='16'%20rx='2'%20ry='2'%20fill='%23fff'/%3e%3cpath%20d='M11.5,5.5l-.58685,1.17371A3.17216,3.17216,0,0,0,10,6.5s-2.5,0-2.5,3a3.00481,3.00481,0,0,0,.84326,2.31348L7.5,13.5h1l.60132-1.20258A2.69549,2.69549,0,0,0,10,12.5,2.44847,2.44847,0,0,0,12.5,10h-1A1.46908,1.46908,0,0,1,10,11.5a1.37915,1.37915,0,0,1-.46161-.07678l1.67206-3.344A1.83488,1.83488,0,0,1,11.5,9h1a2.31273,2.31273,0,0,0-.80139-1.89722L12.5,5.5Zm-3,4s0-2,1.5-2a1.80115,1.80115,0,0,1,.47034.05933L8.84021,10.8197A3.00492,3.00492,0,0,1,8.5,9.5Z'%20fill='%2322d34b'/%3e%3c/g%3e%3c/svg%3e",u6="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='a'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2030.87%2046.96'%3e%3cdefs%3e%3cstyle%3e.b{fill:%23fff;}.c{fill:%230f1b33;}.d{fill:%2377d14b;}%3c/style%3e%3c/defs%3e%3cpath%20class='c'%20d='M22.91,3.48H7.96c-.56,0-1.13,.09-1.65,.31-.52,.21-1.01,.52-1.41,.92-.4,.4-.71,.87-.92,1.39-.21,.52-.31,1.06-.31,1.62v31.53c0,.56,.09,1.11,.31,1.62,.21,.52,.52,.99,.92,1.39,.4,.4,.87,.71,1.41,.92,.52,.21,1.08,.31,1.65,.31h14.96c.56,0,1.13-.09,1.65-.31,.52-.21,1.01-.52,1.41-.92,.4-.4,.71-.87,.92-1.39,.21-.52,.31-1.06,.31-1.62V7.69c0-.56-.09-1.11-.31-1.62-.21-.52-.52-.99-.92-1.39-.4-.4-.87-.71-1.41-.92-.52-.19-1.08-.28-1.65-.28h0Zm2.14,29.47v4.21c0,.28-.05,.56-.14,.82-.09,.26-.26,.49-.47,.68-.19,.19-.45,.35-.71,.45-.26,.09-.54,.16-.82,.14H7.96c-.28,0-.56-.05-.82-.14-.26-.09-.49-.26-.71-.45-.19-.19-.35-.42-.47-.68-.09-.26-.16-.54-.14-.82V7.69c0-.28,.05-.56,.14-.82,.09-.26,.26-.49,.47-.68,.19-.19,.45-.35,.71-.45,.26-.09,.54-.16,.82-.14h14.96c.28,0,.56,.05,.82,.14,.26,.09,.49,.26,.71,.45,.19,.19,.35,.42,.47,.68,.09,.26,.16,.54,.14,.82v25.26Z'/%3e%3cpath%20class='b'%20d='M20.76,5.7H10.09c-2.35,0-4.28,1.88-4.28,4.21v25.23c0,2.33,1.9,4.21,4.28,4.21h10.7c2.35,0,4.28-1.88,4.28-4.21V9.89c0-2.33-1.9-4.21-4.28-4.21h-.02v.02Z'/%3e%3cg%3e%3cpath%20class='d'%20d='M9.83,22.9l-1.68-2.79h1.47l1.09,1.91,1.08-1.91h1.33l-1.63,2.75,1.81,2.98h-1.47l-1.24-2.13-1.23,2.13h-1.33l1.82-2.94Z'/%3e%3cpath%20class='d'%20d='M13.22,23.12v-.27c0-1.76,1.03-2.81,2.5-2.81s2.49,1.01,2.49,2.79v.26c0,1.75-.95,2.84-2.5,2.84s-2.49-1.06-2.49-2.81Zm3.7-.02v-.26c0-1.15-.4-1.8-1.19-1.8s-1.21,.62-1.21,1.8v.27c0,1.2,.42,1.8,1.23,1.8s1.18-.62,1.18-1.82Z'/%3e%3cpath%20class='d'%20d='M19.19,20.11h3.68v1.02h-2.38v1.51h1.88v.98h-1.88v2.22h-1.3v-5.73Z'/%3e%3c/g%3e%3c/svg%3e",bW="/assets/atl_ke-DAWGm9Wz.svg",d6="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='a'%20viewBox='0%200%2017%2017'%3e%3cdefs%3e%3cstyle%3e.b{fill:%23011b33;}.c{fill:%23fff;}.d{fill:%2322d34b;}%3c/style%3e%3c/defs%3e%3cpath%20class='b'%20d='M11.68,0H5.32c-.24,0-.48,.04-.7,.13-.22,.09-.43,.22-.6,.39-.17,.17-.3,.37-.39,.59-.09,.22-.13,.45-.13,.69V15.21c0,.24,.04,.47,.13,.69,.09,.22,.22,.42,.39,.59,.17,.17,.37,.3,.6,.39,.22,.09,.46,.13,.7,.13h6.36c.24,0,.48-.04,.7-.13,.22-.09,.43-.22,.6-.39,.17-.17,.3-.37,.39-.59,.09-.22,.13-.45,.13-.69V1.79c0-.24-.04-.47-.13-.69-.09-.22-.22-.42-.39-.59-.17-.17-.37-.3-.6-.39C12.16,.04,11.92,0,11.68,0h0Zm.91,12.53v1.79c0,.12-.02,.24-.06,.35-.04,.11-.11,.21-.2,.29-.08,.08-.19,.15-.3,.19-.11,.04-.23,.07-.35,.06H5.32c-.12,0-.24-.02-.35-.06-.11-.04-.21-.11-.3-.19-.08-.08-.15-.18-.2-.29-.04-.11-.07-.23-.06-.35V1.79c0-.12,.02-.24,.06-.35,.04-.11,.11-.21,.2-.29,.08-.08,.19-.15,.3-.19,.11-.04,.23-.07,.35-.06h6.36c.12,0,.24,.02,.35,.06,.11,.04,.21,.11,.3,.19,.08,.08,.15,.18,.2,.29,.04,.11,.07,.23,.06,.35V12.53Z'/%3e%3cpath%20class='c'%20d='M10.77,.9H6.23c-1,0-1.82,.8-1.82,1.79V13.42c0,.99,.81,1.79,1.82,1.79h4.55c1,0,1.82-.8,1.82-1.79V2.68c0-.99-.81-1.79-1.82-1.79Z'/%3e%3cg%3e%3cpath%20class='d'%20d='M7.22,6.92h.71v1.26l1.05-1.26h.83l-1.08,1.23,1.23,1.92h-.86l-.84-1.37-.32,.36v1.02h-.71v-3.15Z'/%3e%3cpath%20class='d'%20d='M11.44,8.49c0-1.49-1.12-2.71-2.55-2.9v-.53h-.67v.52c-1.48,.15-2.65,1.39-2.65,2.91s1.12,2.71,2.55,2.9v.54h.67v-.53c1.48-.15,2.65-1.39,2.65-2.91Zm-.55,0c0,1.3-1.07,2.36-2.38,2.36s-2.38-1.06-2.38-2.36,1.07-2.36,2.38-2.36,2.38,1.06,2.38,2.36Z'/%3e%3c/g%3e%3c/svg%3e";function Sv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Phone Icon"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please enter your test mobile money number to begin this payment"])},live:e=>{const{normalize:n}=e;return n(["Please enter your mobile money number to begin this payment"])}}},fr:{pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer ",s(a("amount"))])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Icône de Téléphone"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro mobile money test pour commencer ce paiement"])},live:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro mobile money pour commencer ce paiement"])}}}}})}const h6={name:"MobileMoneyProviderForm",components:{ExchangeRateBanner:_c,PhoneNumberInput:Ui,Instructions:Et,PaymentButton:dt},setup(){const{isCrossCurrencyTransaction:t,formattedAmount:r,resolvedRate:e,exchangeRateToDisplay:n}=Bd();return{isCrossCurrencyTransaction:t,formattedAmount:r,resolvedRate:e,exchangeRateToDisplay:n}},mounted(){this.$refs.phoneNumber.focus()},data(){return{phoneNumber:"",processing:!1,selectedProvider:"",isValidPhoneNumber:!1}},emits:["submit"],computed:{...we(ae,["transaction","reusePaymentInfo","paymentInstrument","activeChannel","transactionAmount"]),countryCode(){return Ca[this.transaction.currency]},instructionsMessage(){const t=this.transaction.isTest?"test":"live";return"instructionMessage.".concat(t)}},created(){var r,e;const t=((r=this.transaction.channel_options)==null?void 0:r.mobile_money)||[];if(this.selectedProvider=(e=t.find(n=>n.key===this.activeChannel.name.toUpperCase()))==null?void 0:e.key,this.transaction.isTest)this.prefillTestDetails();else if(this.reusePaymentInfo&&this.paymentInstrument.mobileMoney){const{phoneNumber:n,provider:s}=this.paymentInstrument.mobileMoney;this.phoneNumber=n,this.selectedProvider=s}},methods:{...It(ae,["savePaymentInstrument"]),prefillTestDetails(){this.phoneNumber="0710000000";const t={target:{value:this.phoneNumber}};this.onInput(t)},onSubmit(){this.processing=!0,this.savePaymentInstrument({mobileMoney:{phoneNumber:this.phoneNumber,provider:this.selectedProvider}}),this.$emit("submit",{phoneNumber:this.phoneNumber,networkProvider:this.selectedProvider})},onInput(t){var e,n;const r=(e=t==null?void 0:t.target)==null?void 0:e.value;this.isValidPhoneNumber=(n=mr(r,"KE"))==null?void 0:n.isValid()}}},CW={class:"mobile_money_provider__wrapper"},wW={class:"mobile_money_provider__header"},kW={class:"mobile_money_provider__icon"},SW=["alt"],EW=["alt"],TW=["alt"],$W=["alt"],IW={class:"mobile_money_provider__description"},AW={class:"row"},zW={class:"col-10-sm col-centered"},RW={class:"mobile_money_provider__input form-group"},PW={key:0,class:"mobile_money_provider__exhange-rate"};function NW(t,r,e,n,s,a){const i=P("Instructions"),o=P("phone-number-input"),l=P("payment-button"),d=P("exchange-rate-banner");return f(),v("div",CW,[m("div",wW,[m("div",kW,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[a.countryCode==="GH"?(f(),v("img",{key:0,src:c6,alt:t.$t("mobileMoneyIcon")},null,8,SW)):a.countryCode==="CI"?(f(),v("img",{key:1,src:u6,alt:t.$t("mobileMoneyIcon")},null,8,EW)):this.selectedProvider==="ATL_KE"?(f(),v("img",{key:2,src:bW,alt:t.$t("mobileMoneyIcon")},null,8,TW)):(f(),v("img",{key:3,src:d6,alt:t.$t("mobileMoneyIcon")},null,8,$W))]),_:1})]),m("p",IW,[$(i,{"data-testid":"instruction",message:t.$t(a.instructionsMessage)},null,8,["message"])])]),m("form",{onSubmit:r[1]||(r[1]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"])),class:"form"},[m("div",AW,[m("div",zW,[m("div",RW,[$(o,{"country-code":"KE",required:!0,placeholder:"070 000 0000",modelValue:s.phoneNumber,"onUpdate:modelValue":r[0]||(r[0]=u=>s.phoneNumber=u),ref:"phoneNumber",name:"phoneNumber",onInput:a.onInput},null,8,["modelValue","onInput"])]),$(l,{class:"mobile_money_provider__button","data-testid":"mobile_money_provider-confirm-button",disabled:!s.isValidPhoneNumber,loading:s.processing},{default:ne(()=>[Be(T(t.$t("pay",{amount:n.formattedAmount})),1)]),_:1},8,["disabled","loading"]),n.isCrossCurrencyTransaction?(f(),v("div",PW,[$(d,{"exchange-rate":n.exchangeRateToDisplay,"charge-currency":n.resolvedRate.currency},null,8,["exchange-rate","charge-currency"])])):D("",!0)])])],32)])}typeof Sv=="function"&&Sv(h6);const MW=ee(h6,[["render",NW],["__scopeId","data-v-aa420827"]]);function Ev(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please wait while we authorize this test transaction."])},live:e=>{const{normalize:n}=e;return n(["Please enter your PIN on your phone to complete this payment"])}},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])},message:e=>{const{normalize:n}=e;return n(["Payment is valid for"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Phone icon"])}},fr:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Veuillez patienter pendant que nous autorisons cette transaction test."])},live:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre code PIN sur votre téléphone pour effectuer ce paiement"])}},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])},message:e=>{const{normalize:n}=e;return n(["Le paiement est valide pour"])},phoneIcon:e=>{const{normalize:n}=e;return n(["Icône de Téléphone"])}}}})}const m6={name:"MobileMoneyProviderInProgress",components:{Countdown:Ss,Instructions:Et},props:{message:{type:String,required:!0},displayType:{type:String,required:!0},timer:{type:Number,required:!0},phoneNumber:{type:String,required:!0}},data(){return{countdown:60,interval:null,isMobile:Fn()}},emits:["confirm","cancel"],computed:{...we(ae,["transaction"])},beforeUnmount(){window.clearInterval(this.interval)},created(){this.displayType==="pop"&&(this.countdown=this.transaction.isTest?5:this.timer,this.interval=window.setInterval(()=>{this.countdown=this.countdown-1,this.countdown===0&&(window.clearInterval(this.interval),this.$emit("confirm"))},1e3))},methods:{cancel(){this.$emit("cancel")}}},LW={class:"provider_in_progress__wrapper"},xW={class:"provider_in_progress__icon"},OW=["alt"],FW={class:"provider_in_progress__description"},DW={class:"provider_in_progress__phone"};function VW(t,r,e,n,s,a){const i=P("instructions"),o=P("countdown");return f(),v("div",LW,[m("div",xW,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:mc,alt:t.$t("phoneIcon")},null,8,OW)]),_:1})]),m("div",FW,[m("div",DW,T(e.phoneNumber),1),$(i,{message:t.transaction.isTest?t.$t("instructionMessage.test"):t.$t("instructionMessage.live")},null,8,["message"])]),e.displayType==="pop"&&s.countdown?(f(),se(o,{key:0,"data-testid":"provider_in_progress-counter",class:"provider_in_progress__countdown",countdownDuration:this.timer,countdownTimerMessage:t.$t("message")},null,8,["countdownDuration","countdownTimerMessage"])):D("",!0),s.isMobile?D("",!0):(f(),v("button",{key:1,"data-testid":"cancel-payment-button",onClick:r[0]||(r[0]=(...l)=>a.cancel&&a.cancel(...l))},T(t.$t("cancel")),1))])}typeof Ev=="function"&&Ev(m6);const BW=ee(m6,[["render",VW],["__scopeId","data-v-8a05fb51"]]),UW={name:"AirtelMobileChannel",components:{MobileMoneyProviderForm:MW,MobileMoneyProviderInProgress:BW},mixins:[Kr],data(){const t={ENTER_NUMBER:"enter_number",LISTEN_FOR_CHARGE:"listen_for_charge"};return{views:t,currentView:t.ENTER_NUMBER,message:"",authorizationWaitTime:0,phoneNumber:"",displayType:""}},emits:["callback","attempt"],computed:{...we(ae,["transaction","activeChannel"])},async created(){var t;(t=this.activeChannel)!=null&&t.view&&this.setView(this.activeChannel.view)},methods:{...It(ae,["setIsCharging"]),requery(){this.$emit("callback",{status:"requery"})},onPhoneNumberSubmit({networkProvider:t,phoneNumber:r}){var n;this.phoneNumber=r;const e=(n=mr(r,"KE"))==null?void 0:n.format("E.164");this.chargePhoneNumber({phoneNumber:e,networkProvider:t})},async chargePhoneNumber({phoneNumber:t,networkProvider:r}){try{this.setIsCharging(!0),this.$emit("attempt");const e={phoneNumber:t,provider:r},n=await this.transaction.chargeMobileMoney(e);this.setIsCharging(!1),this.handleChargeResponse(n)}catch(e){this.emitPaymentChannelError(this,e)}},listenForChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),r())},listenForCharge(){this.transaction.listenForMobileMoneyCharge(this.listenForChargeCallback)},handleChargeResponse(t){var n,s,a,i;const{status:r,data:e}=t;if(r==="success"){this.message=(n=e==null?void 0:e.display)==null?void 0:n.message,this.displayType=(s=e==null?void 0:e.display)==null?void 0:s.type,this.authorizationWaitTime=((a=e==null?void 0:e.display)==null?void 0:a.timer)||0;const o=(i=this.displayType)==null?void 0:i.toUpperCase(),l=this.views[o]||this.views.LISTEN_FOR_CHARGE;this.setView(l),l===this.views.LISTEN_FOR_CHARGE&&this.listenForCharge()}else this.$emit("callback",t)},setView(t){Object.values(this.views).includes(t)&&(this.currentView=t)}}},HW={key:"enter_number"},qW={key:"listen_for_charge"};function WW(t,r,e,n,s,a){const i=P("mobile-money-provider-form"),o=P("mobile-money-provider-in-progress");return f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.ENTER_NUMBER?(f(),v("div",HW,[$(i,{onSubmit:a.onPhoneNumberSubmit},null,8,["onSubmit"])])):s.currentView===s.views.LISTEN_FOR_CHARGE?(f(),v("div",qW,[$(o,{phoneNumber:s.phoneNumber,displayType:s.displayType,timer:s.authorizationWaitTime,message:s.message,onCancel:a.requery,onConfirm:a.requery},null,8,["phoneNumber","displayType","timer","message","onCancel","onConfirm"])])):D("",!0)]),_:1})])}const GW=ee(UW,[["render",WW]]);function Tv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{confirmPayment:e=>{const{normalize:n}=e;return n(["I've sent the money"])},checkPayment:e=>{const{normalize:n}=e;return n(["Check my payment status"])}},fr:{confirmPayment:e=>{const{normalize:n}=e;return n(["J'ai envoyé l'argent"])},checkPayment:e=>{const{normalize:n}=e;return n(["Vérifier le statut de mon paiement"])}}}})}const p6={name:"PayWithTransferChannel",components:{ManagedAccount:d9,Loader:tn,CreditRequest:X5,HelpScreen:t9},mixins:[Kr],setup(){const{isKenyanTransaction:t,isGhanaianTransaction:r}=Do();return{isKenyanTransaction:t,isGhanaianTransaction:r}},data(){const t={LOADING:"loading",MANAGED_ACCOUNT_VIEW:"managed-account-view",CREDIT_REQUEST_VIEW:"credit-request-view",HELP_SCREEN:"help-screen"};return{views:t,managedAccount:null,currentView:t.LOADING,requeryCount:0,creditRequestStatus:""}},emits:["callback"],computed:{...we(ae,["transaction","status","lastResponse","activeChannel","countryCode"]),...we(Qt,["bankTransferChannelState"]),canFulfilLateNotification(){var r,e;const{merchant:t}=this.transaction;return(e=(r=t.channelSettings)==null?void 0:r.bank_transfer)==null?void 0:e.fulfil_late_notification},isInCreditRequestView(){return this.currentView===this.views.CREDIT_REQUEST_VIEW}},async created(){var r,e;this.managedAccount=this.bankTransferChannelState.savedManagedAccount;const{lastPusherResponse:t}=this.bankTransferChannelState;(r=this.activeChannel)!=null&&r.view?(this.changeView(this.activeChannel.view),this.setActiveChannel({name:"bank_transfer"})):this.isAcceptableCreditRequestState(this.status)&&!this.managedAccount?this.setUpManagedAccountViewAfterError():(t==null?void 0:t.status)===In.statuses.CREDIT_REQUEST_REJECTED&&((e=t==null?void 0:t.data)==null?void 0:e.message_type)===In.types.INCORRECT_AMOUNT?(this.$emit("callback",{status:"failed",message:"incorrect amount sent"}),this.setBankTransferChannelState({lastPusherResponse:null})):this.isAcceptableCreditRequestState(this.status)?(this.setCreditRequestStatus(this.status),this.setUpView(this.views.CREDIT_REQUEST_VIEW)):await this.getManagedAccount()},methods:{...It(ae,["setActiveChannel"]),...It(Qt,["setBankTransferChannelState"]),async getManagedAccount(t){var r,e;try{const{merchant:{channelSettings:n}}=this.transaction,{data:s}=await this.transaction.getManagedAccount({fulfilLateNotification:((r=n==null?void 0:n.bank_transfer)==null?void 0:r.fulfil_late_notification)||!1,...t&&{preferredProvider:t}}),a=Math.round(this.getAccountActiveWindow(s.account_expires_at)/60);this.saveManagedAccount({...s,activeWindow:a}),this.managedAccount=s,this.setUpView(this.views.MANAGED_ACCOUNT_VIEW)}catch(n){const s=((e=n==null?void 0:n.response)==null?void 0:e.data)||n,{message:a}=s;F8({message:a}),this.emitPaymentChannelError(this,n)}},requery(){this.$emit("callback",{status:"requery"})},changeView(t){this.currentView=t},listenForChargeCallback(t){if(t.status!=="error"){const{status:r,data:{message_type:e}={}}=t;if(this.setCreditRequestStatus(r),this.setBankTransferChannelState({lastPusherResponse:t}),this.isAcceptableCreditRequestState(r))this.changeView(this.views.CREDIT_REQUEST_VIEW);else if(r===In.statuses.CREDIT_REQUEST_REJECTED&&e===In.types.INCORRECT_AMOUNT){if(this.currentView===this.views.MANAGED_ACCOUNT_VIEW)return;this.$emit("callback",{status:"failed",message:"incorrect amount sent"})}else this.isInCreditRequestView&&r===In.statuses.SUCCESS?setTimeout(()=>this.$emit("callback",t),1e3):this.$emit("callback",t)}},listenForCharge(t){this.transaction.listenForPayWithTransferCharge(this.listenForChargeCallback,t)},async handleRequery(){var n;const r=(n=this.managedAccount)==null?void 0:n.account_expires_at;if(this.getAccountActiveWindow(r)>10&&this.currentView===this.views.CREDIT_REQUEST_VIEW)try{const s=await this.transaction.requery(),{status:a}=s;this.requeryCount+=1,this.setCreditRequestStatus(a),this.isAcceptableCreditRequestState(a)?this.performInChannelRequery():this.isInCreditRequestView&&a===In.statuses.SUCCESS?setTimeout(()=>this.$emit("callback",s),1e3):this.$emit("callback",s)}catch(s){}},performInChannelRequery(){setTimeout(()=>this.handleRequery(),[6e4,18e4,3e5,48e4,78e4][this.requeryCount])},setUpView(t,r={}){this.changeView(t),this.listenForCharge(r.channel)},setCreditRequestStatus(t){this.creditRequestStatus=t},isAcceptableCreditRequestState(t){const{CREDIT_REQUEST_RECEIVED:r,CREDIT_REQUEST_PENDING:e}=In.statuses;return[r,e].includes(t)},getAccountActiveWindow(t){return Ea(t,new Date)},handleResponse(t){this.$emit("callback",t)},saveManagedAccount(t){this.setBankTransferChannelState({savedManagedAccount:t})},setUpManagedAccountViewAfterError(){var r,e;if(H8(),this.managedAccount=(r=this.lastResponse)==null?void 0:r.data,!((e=this.managedAccount)!=null&&e.account_name)){this.$emit("callback",{status:"failed",message:"no managed account available"});return}const t=Math.round(this.getAccountActiveWindow(this.managedAccount.account_expires_at)/60);this.saveManagedAccount({...this.managedAccount,activeWindow:t}),this.setUpView(this.views.MANAGED_ACCOUNT_VIEW,{channel:this.managedAccount.pusher_channel})},switchToProvider(t){this.changeView(this.views.LOADING),this.getManagedAccount(t)}}},jW={key:1};function ZW(t,r,e,n,s,a){const i=P("loader"),o=P("managed-account"),l=P("credit-request"),d=P("help-screen");return f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.LOADING?(f(),se(i,{key:0})):s.currentView===s.views.MANAGED_ACCOUNT_VIEW?(f(),v("div",jW,[$(o,{managedAccount:s.managedAccount,onCallback:a.handleResponse,onSwitchBank:a.switchToProvider,canShowAmount:"",canSwitchAccount:""},null,8,["managedAccount","onCallback","onSwitchBank"]),this.isKenyanTransaction||this.isGhanaianTransaction?(f(),v("button",{key:0,"data-testid":"confirmPayment",onClick:r[0]||(r[0]=(...u)=>a.requery&&a.requery(...u)),class:"confirm-payment"},T(t.$t("checkPayment")),1)):(f(),v("button",{key:1,"data-testid":"confirmPayment",onClick:r[1]||(r[1]=(...u)=>a.requery&&a.requery(...u)),class:"confirm-payment"},T(t.$t("confirmPayment")),1))])):s.currentView===s.views.CREDIT_REQUEST_VIEW?(f(),se(l,{key:2,onStartRequery:a.performInChannelRequery,onBackToAccount:r[2]||(r[2]=u=>a.changeView(s.views.MANAGED_ACCOUNT_VIEW)),onShowHelp:r[3]||(r[3]=u=>a.changeView(s.views.HELP_SCREEN)),isDelayedConfirmation:s.requeryCount>0,creditRequestStatus:s.creditRequestStatus,canFulfilLateNotification:a.canFulfilLateNotification},null,8,["onStartRequery","isDelayedConfirmation","creditRequestStatus","canFulfilLateNotification"])):s.currentView===s.views.HELP_SCREEN?(f(),se(d,{key:3,onContinueWaiting:r[4]||(r[4]=u=>a.changeView(s.views.CREDIT_REQUEST_VIEW)),canFulfilLateNotification:a.canFulfilLateNotification},null,8,["canFulfilLateNotification"])):D("",!0)]),_:1})])}typeof Tv=="function"&&Tv(p6);const KW=ee(p6,[["render",ZW]]),YW={getNetworkProvider(t,r=[]){if(!t)throw Error("Please supply valid phone number");return r.reduce((n,s)=>new RegExp(s.phoneNumberRegex).test(t)?s:n).key}};function $v(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{confirm:e=>{const{normalize:n}=e;return n(["Confirm"])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Mobile Money Icon"])},chooseProvider:e=>{const{normalize:n}=e;return n(["Choose Provider"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Use the test mobile money number and provider below to start the payment"])},live:e=>{const{normalize:n}=e;return n(["Enter your mobile money number and provider to start the payment"])}}},fr:{confirm:e=>{const{normalize:n}=e;return n(["Confirmer"])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Icône Mobile Money"])},chooseProvider:e=>{const{normalize:n}=e;return n(["Choisir le fournisseur"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Utilisez le numéro mobile money test et le fournisseur ci-dessous pour commencer le paiement"])},live:e=>{const{normalize:n}=e;return n(["Saisissez votre numéro mobile money et votre fournisseur pour commencer le paiement"])}}}}})}const f6={name:"MobileMoneyForm",components:{PhoneNumberInput:Ui,Instructions:Et,PaymentButton:dt},mounted(){this.$refs.phoneNumber.focus()},data(){return{phoneNumber:"",processing:!1,selectedProvider:"",isValidPhoneNumber:!1,highlightProviderField:!1}},emits:["submit"],computed:{...we(ae,["transaction","reusePaymentInfo","paymentInstrument"]),autoSelectProvider(){return this.countryCode!=="CI"},countryCode(){return Ca[this.transaction.currency]},phoneNumberPlaceholder(){var r,e,n;const t=((r=this.transaction.channel_options)==null?void 0:r.mobile_money)||[];return((e=t.find(({key:s})=>s===this.selectedProvider))==null?void 0:e.phoneNumberPlaceholder)||((n=t[0])==null?void 0:n.phoneNumberPlaceholder)||"000 000 0000"},providers(){var n,s;const{custom_filters:t}=this.transaction,r=t&&t.supported_mobile_money_providers,e=((s=(n=this.transaction.channel_options)==null?void 0:n.mobile_money)==null?void 0:s.filter(a=>!a.isChannel))||[];if(r&&r.length>0){const a=r.reduce((i,o)=>{const l=e.find(({key:d})=>d.toLowerCase()===o.toLowerCase());return l?[...new Set([l,...i])]:i},[]);return a.length>0?a:e}return e}},created(){if(this.providers&&this.providers.length===1){const[t]=this.providers;this.preselectProvider(t==null?void 0:t.key)}if(this.transaction.isTest)this.prefillTestDetails();else if(this.reusePaymentInfo&&this.transaction.mobileMoney.status==="success"&&this.paymentInstrument.mobileMoney){const{phoneNumber:t,provider:r}=this.paymentInstrument.mobileMoney;this.phoneNumber=t,this.selectedProvider=r}},methods:{...It(ae,["savePaymentInstrument"]),prefillTestDetails(){this.phoneNumber="0551234987";const t={target:{value:this.phoneNumber}};this.onInput(t)},isNewMTNNumber(t){return this.countryCode==="GH"&&(t==null?void 0:t.startsWith("53"))},preselectProvider(t){this.selectedProvider=t||""},onSubmit(){this.processing=!0,this.savePaymentInstrument({mobileMoney:{phoneNumber:this.phoneNumber,provider:this.selectedProvider}}),this.$emit("submit",{phoneNumber:this.formattedPhoneNumber,networkProvider:this.selectedProvider})},getProvider(t){var n;const r=this.isNewMTNNumber(t==null?void 0:t.nationalNumber),e=t.format("E.164");return r?"MTN":YW.getNetworkProvider(e,(n=this.transaction.channel_options)==null?void 0:n.mobile_money)},onInput(t){var s;const r=(s=t==null?void 0:t.target)==null?void 0:s.value,e=mr(r,this.countryCode),n=this.isNewMTNNumber(e==null?void 0:e.nationalNumber);if(e!=null&&e.isValid()||n){if(this.isValidPhoneNumber=!0,this.formattedPhoneNumber=e.format("E.164"),this.autoSelectProvider){const a=this.getProvider(e);this.preselectProvider(a)}this.highlightProviderField=!0}else this.selectedProvider="",this.isValidPhoneNumber=!1,this.highlightProviderField=!1}}},QW={class:"mobile_money__wrapper"},JW={class:"mobile_money__header"},XW={class:"mobile_money__icon"},eG=["alt"],tG=["alt"],nG={class:"mobile_money__description"},rG={class:"row"},sG={class:"col-10-sm col-centered"},aG={class:"form-group"},iG={class:"form-group"},oG={class:"select-wrap"},lG={value:"",disabled:""},cG=["value"];function uG(t,r,e,n,s,a){const i=P("instructions"),o=P("phone-number-input"),l=P("payment-button");return f(),v("div",QW,[m("div",JW,[m("div",XW,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[a.countryCode==="GH"?(f(),v("img",{key:0,src:c6,alt:t.$t("mobileMoneyIcon")},null,8,eG)):a.countryCode==="CI"?(f(),v("img",{key:1,src:u6,alt:t.$t("mobileMoneyIcon")},null,8,tG)):D("",!0)]),_:1})]),m("p",nG,[t.transaction.isTest?(f(),se(i,{key:0,message:t.$t("instructionMessage.test")},null,8,["message"])):(f(),se(i,{key:1,message:t.$t("instructionMessage.live")},null,8,["message"]))])]),m("form",{onSubmit:r[3]||(r[3]=jt((...d)=>a.onSubmit&&a.onSubmit(...d),["prevent"])),class:"form"},[m("div",rG,[m("div",sG,[m("div",aG,[$(o,{"country-code":a.countryCode,required:!0,placeholder:a.phoneNumberPlaceholder,modelValue:s.phoneNumber,"onUpdate:modelValue":r[0]||(r[0]=d=>s.phoneNumber=d),ref:"phoneNumber",name:"phoneNumber",onInput:a.onInput},null,8,["country-code","placeholder","modelValue","onInput"])]),m("div",iG,[m("div",oG,[ct(m("select",{name:"provider","aria-label":"Mobile money provider",class:pt(["select",{"select--highlight":s.highlightProviderField}]),"onUpdate:modelValue":r[1]||(r[1]=d=>s.selectedProvider=d),"data-testid":"mobile-money-provider",onBlur:r[2]||(r[2]=d=>s.highlightProviderField=!1)},[m("option",lG,T(t.$t("chooseProvider")),1),(f(!0),v(gt,null,Ot(a.providers,d=>(f(),v("option",{key:d.key,value:d.key,"data-testid":"mobile-money-providers"},T(d.value),9,cG))),128))],34),[[ks,s.selectedProvider]]),r[4]||(r[4]=m("div",{class:"select-icon"},null,-1))])]),$(l,{"data-testid":"mobileMoneyConfirmButton",disabled:!s.isValidPhoneNumber||!s.selectedProvider,loading:s.processing},{default:ne(()=>[Be(T(t.$t("confirm")),1)]),_:1},8,["disabled","loading"])])])],32)])}typeof $v=="function"&&$v(f6);const dG=ee(f6,[["render",uG],["__scopeId","data-v-ef502cf5"]]);function Iv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please wait while we authorize this test transaction."])},live:e=>{const{normalize:n}=e;return n(["Please check your phone for a prompt and enter your mobile money PIN to authorize this transaction."])}},completePayment:e=>{const{normalize:n}=e;return n(["I've completed the payment"])}},fr:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Veuillez patienter pendant que nous autorisons cette transaction test."])},live:e=>{const{normalize:n}=e;return n(["Veuillez vérifier que votre téléphone vous demande de saisir le code PIN de votre mobile money pour autoriser cette transaction."])}},completePayment:e=>{const{normalize:n}=e;return n(["J'ai effectué le paiement"])}}}})}const _6={name:"MobileMoneyInProgress",components:{CancelLink:rn,Instructions:Et},props:{message:{type:String,required:!1},displayType:{type:String,required:!0},timer:{type:Number,required:!0}},data(){return{countdown:null,intervalId:null}},emits:["confirm","cancel"],computed:{...we(ae,["transaction"])},beforeUnmount(){window.clearInterval(this.intervalId)},created(){this.displayType==="pop"&&(this.countdown=this.transaction.isTest?5:this.timer,this.intervalId=window.setInterval(()=>{this.countdown=this.countdown-1,this.countdown===0&&(window.clearInterval(this.intervalId),this.$emit("confirm"))},1e3))},methods:{cancel(){this.$emit("cancel")},completePayment(){this.$emit("confirm")}}},hG={class:"mobile_money__wrapper"},mG={class:"mobile_money__icon"},pG=["alt"],fG={class:"mobile_money__description","data-testid":"mobile-money-progress-message"};function _G(t,r,e,n,s,a){const i=P("instructions"),o=P("cancel-link");return f(),v("div",hG,[m("div",mG,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:mc,alt:t.$t("mobileMoneyIcon")},null,8,pG)]),_:1})]),m("div",fG,[t.transaction.isTest?(f(),se(i,{key:0,message:t.$t("instructionMessage.test")},null,8,["message"])):(f(),se(i,{key:1,message:e.message},null,8,["message"]))]),m("button",{onClick:r[0]||(r[0]=(...l)=>a.completePayment&&a.completePayment(...l)),"data-testid":"mobile_money_complete"},T(t.$t("completePayment")),1),$(o,{onClick:a.cancel},null,8,["onClick"])])}typeof Iv=="function"&&Iv(_6);const gG=ee(_6,[["render",_G],["__scopeId","data-v-546abc1c"]]);function Av(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{titleText:e=>{const{normalize:n}=e;return n(["Please follow these steps to complete this payment"])},instructions:{stepOne:e=>{const{normalize:n}=e;return n(["Dial *110# on your mobile phone"])},stepTwo:e=>{const{normalize:n}=e;return n(["Select option 4: Make Payments"])},stepThree:e=>{const{normalize:n}=e;return n(["Select option 4: Generate Voucher and enter your pin to complete the request"])},stepFour:e=>{const{normalize:n}=e;return n(["You will receive a text message containing your voucher code"])}},paymentButtonText:e=>{const{normalize:n}=e;return n(["I have received my voucher code"])}},fr:{titleText:e=>{const{normalize:n}=e;return n(["Veuillez suivre les étapes suivantes pour effectuer ce paiement"])},instructions:{stepOne:e=>{const{normalize:n}=e;return n(["Composez *110# sur votre téléphone portable"])},stepTwo:e=>{const{normalize:n}=e;return n(["Sélectionnez l'option 4 : Effectuer des paiements"])},stepThree:e=>{const{normalize:n}=e;return n(["Sélectionnez l'option 4 : Obtenir un code promo et entrez votre code pin pour effectuer la demande"])},stepFour:e=>{const{normalize:n}=e;return n(["Vous recevrez un SMS contenant le code promo"])}},paymentButtonText:e=>{const{normalize:n}=e;return n(["J'ai reçu mon code promo"])}}}})}const g6={name:"VoucherPaymentInstructions",components:{Instructions:Et,PaymentButton:dt,CancelLink:rn,InstructionsList:xo},emits:["cancel","showVoucherForm"],computed:{steps(){const t=this.$t("instructions.stepOne"),r=this.$t("instructions.stepTwo"),e=this.$t("instructions.stepThree"),n=this.$t("instructions.stepFour");return[t,r,e,n]}},methods:{cancel(){this.$emit("cancel")},proceedToVoucherForm(){this.$emit("showVoucherForm")}}},vG={"data-testid":"voucher-payment-instructions"};function yG(t,r,e,n,s,a){const i=P("instructions"),o=P("instructions-list"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",vG,[$(i,{message:t.$t("titleText")},null,8,["message"]),$(o,{instructions:a.steps,"data-testid":"voucher-payment-instructions"},null,8,["instructions"]),$(l,{variant:"light",onClick:a.proceedToVoucherForm,"data-testid":"proceed-to-voucher-form-button",class:"confirm-button"},{default:ne(()=>[Be(T(t.$t("paymentButtonText")),1)]),_:1},8,["onClick"]),$(d,{onClick:r[0]||(r[0]=u=>a.cancel())})])}typeof Av=="function"&&Av(g6);const bG=ee(g6,[["render",yG],["__scopeId","data-v-a6edf2b9"]]);function zv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{authorize:e=>{const{normalize:n}=e;return n(["Authorize"])},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])},clockIcon:e=>{const{normalize:n}=e;return n(["Clock icon"])},resend:e=>{const{normalize:n}=e;return n(["Resend OTP"])},"resend-1":e=>{const{normalize:n}=e;return n(["Resend via Whatsapp"])},"resend-2":e=>{const{normalize:n}=e;return n(["Resend via SMS and Whatsapp"])},countdownWaitMessage:e=>{const{normalize:n}=e;return n(["Resend OTP in"])},otpInvalid:e=>{const{normalize:n}=e;return n(["Please enter 6 digits OTP"])},lastOtpRequestMessage:e=>{const{normalize:n}=e;return n(["We are trying one last time to send your OTP"])},noOtp:e=>{const{normalize:n}=e;return n(["We are having trouble sending the OTP. Kindly wait a few more minutes or cancel the transaction."])}},fr:{authorize:e=>{const{normalize:n}=e;return n(["Autoriser"])},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])},clockIcon:e=>{const{normalize:n}=e;return n(["Icône de l'horloge"])},resend:e=>{const{normalize:n}=e;return n(["Resend OTP"])},"resend-1":e=>{const{normalize:n}=e;return n(["Renvoyer via Whatsapp"])},"resend-2":e=>{const{normalize:n}=e;return n(["Renvoyer via SMS et Whatsapp"])},countdownWaitMessage:e=>{const{normalize:n}=e;return n(["Resend OTP in"])},otpInvalid:e=>{const{normalize:n}=e;return n(["Please enter 6 digits OTP"])},lastOtpRequestMessage:e=>{const{normalize:n}=e;return n(["We are trying one last time to send your OTP"])},noOtp:e=>{const{normalize:n}=e;return n(["We are having trouble sending the OTP. Kindly wait a few more minutes or cancel the transaction."])}}}})}const CG={0:{channels:[]},1:{channels:["whatsapp"]},2:{channels:["sms","whatsapp"]}},v6={name:"MobileMoneyOtpForm",components:{Instructions:Et,CancelLink:rn,PaymentButton:dt,Countdown:Ss},props:{message:{type:String,default:"Please enter the One-Time-Password sent to your phone."},countdownDuration:{type:Number,default:60},canResendOtp:{type:Boolean,default:!1},authenticationErrorMessage:{type:String,default:""}},data(){return{otp:null,processing:!1,numberOfOtpRequests:1,showCountdown:!0}},mounted(){this.$nextTick(()=>{this.$refs.input.focus()})},updated(){this.authenticationErrorMessage&&(this.processing=!1)},emits:["cancel","submit","resend"],computed:{...we(ae,["paymentInstrument","activeChannel","transaction"])},methods:{cancel(){this.$emit("cancel")},hideCountdown(){this.showCountdown=!1},onSubmit(){var t;this.processing=!0,this.$emit("submit",{token:this.otp}),R8({channel:(t=this.activeChannel)==null?void 0:t.name})},resend(){var n;this.otp=null;const{phoneNumber:t,provider:r}=this.paymentInstrument.mobileMoney,e=CG[this.numberOfOtpRequests].channels;this.$emit("resend",{numberOfTokenRequests:this.numberOfOtpRequests,otpChannels:e}),this.numberOfOtpRequests+=1,this.showCountdown=!0,Om({channel:(n=this.activeChannel)==null?void 0:n.name,phoneNumber:t,provider:r})}}},wG={id:"otp-form"},kG={class:"row"},SG={class:"col-7-sm"},EG=["title"],TG={class:"col-5-sm"},$G={key:0,class:"form-group-error",role:"alert"},IG={class:"countdown-wrapper"},AG={key:1,class:"resend-count-wrapper"},zG={class:"resend-count","data-testid":"resend-count"},RG={class:"button"},PG={key:2,class:"countdown-info","data-testid":"last-otp-request-message"},NG={key:3,class:"no-otp","data-testid":"no-otp"};function MG(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("countdown"),d=P("cancel-link");return f(),v("div",wG,[m("form",{onSubmit:r[3]||(r[3]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"]))},[$(i,{message:e.message,icon:"otp"},null,8,["message"]),m("div",kG,[m("div",SG,[ct(m("input",{ref:"input",type:"tel",autocomplete:"off",class:pt(["input input--lg input--centered",{"input--error":e.authenticationErrorMessage}]),name:"otp",pattern:"[0-9]{6}",title:t.$t("otpInvalid"),"onUpdate:modelValue":r[0]||(r[0]=u=>s.otp=u),"data-testid":"otp-input",required:""},null,10,EG),[[Wt,s.otp,void 0,{trim:!0}]])]),m("div",TG,[$(o,{disabled:!s.otp,loading:s.processing,"data-testid":"authorize-button"},{default:ne(()=>[Be(T(t.$t("authorize")),1)]),_:1},8,["disabled","loading"])])]),$(rt,null,{default:ne(()=>[e.authenticationErrorMessage?(f(),v("div",$G,T(e.authenticationErrorMessage),1)):D("",!0)]),_:1}),m("div",IG,[s.showCountdown?(f(),se(l,{key:0,countdownDuration:e.countdownDuration,onCountdownComplete:r[1]||(r[1]=u=>a.hideCountdown()),countdownTimerMessage:e.canResendOtp||!s.showCountdown?t.$t("countdownWaitMessage"):""},null,8,["countdownDuration","countdownTimerMessage"])):D("",!0),e.canResendOtp&&!s.showCountdown?(f(),v("div",AG,[m("div",zG,T(s.numberOfOtpRequests),1),m("div",RG,[m("a",{onClick:r[2]||(r[2]=(...u)=>a.resend&&a.resend(...u)),"data-testid":"resend-button"},T(t.$t("resend-".concat(s.numberOfOtpRequests))),1)])])):D("",!0),!e.canResendOtp&&s.showCountdown?(f(),v("div",PG,T(t.$t("lastOtpRequestMessage")),1)):D("",!0),!e.canResendOtp&&!s.showCountdown?(f(),v("div",NG,T(t.$t("noOtp")),1)):D("",!0)]),s.processing?D("",!0):(f(),se(d,{key:0,"data-testid":"cancel-payment-button",text:t.$t("cancel"),onClick:a.cancel},null,8,["text","onClick"]))],32)])}typeof zv=="function"&&zv(v6);const LG=ee(v6,[["render",MG],["__scopeId","data-v-038c4556"]]);function Rv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{voucherModeCountdownTimerMessage:e=>{const{normalize:n}=e;return n(["Your voucher code will expire in "])}},fr:{voucherModeCountdownTimerMessage:e=>{const{normalize:n}=e;return n(["Votre code promo expirera dans "])}}}})}const xG=60,io={SUCCESS:"success",AWAITING_REGISTRATION_TOKEN:"awaiting_registration_token"},y6={name:"MobileMoneyChannel",components:{OtpForm:xd,MobileMoneyOtpForm:LG,MobileMoneyForm:dG,MobileMoneyInProgress:gG,VoucherPaymentInstructions:bG},mixins:[Kr],emits:["callback","attempt"],computed:{...we(ae,["transaction","activeChannel"])},data(){const t={ENTER_NUMBER:"enter_number",LISTEN_FOR_CHARGE:"listen_for_charge",REGISTRATION_TOKEN:"registration_token",ENTER_VOUCHER:"enter_voucher",VOUCHER_PAYMENT_INSTRUCTIONS:"voucher_payment_instructions"};return{views:t,currentView:t.ENTER_NUMBER,message:"",countdownDuration:xG,phoneNumber:"",networkProvider:"",displayType:"",canResendOtp:!1,authenticationErrorMessage:"",qrData:null}},methods:{...It(ae,["setIsCharging"]),requery(){this.$emit("callback",{status:"requery"})},onPhoneNumberSubmit({networkProvider:t,phoneNumber:r}){this.phoneNumber=r,this.networkProvider=t,this.chargePhoneNumber({phoneNumber:this.phoneNumber,networkProvider:this.networkProvider})},async chargePhoneNumber({phoneNumber:t,voucher:r,networkProvider:e}){try{this.setIsCharging(!0),this.$emit("attempt");const n={...t&&{phoneNumber:t},...r&&{voucher:r},...e&&{provider:e}},s=await this.transaction.chargeMobileMoney(n);this.setIsCharging(!1),this.handleChargeResponse(s)}catch(n){this.emitPaymentChannelError(this,n)}},listenForChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),r())},listenForCharge(){this.transaction.listenForMobileMoneyCharge(this.listenForChargeCallback)},authorizePayment(t){this.chargePhoneNumber({voucher:t,phoneNumber:this.phoneNumber,networkProvider:this.networkProvider})},async authenticatePayment({token:t,numberOfTokenRequests:r,otpChannels:e}){try{this.authenticationErrorMessage="";const n={...t&&{registrationToken:t},phoneNumber:this.phoneNumber,provider:this.networkProvider,...r&&{numberOfTokenRequests:r},...e&&{otpChannels:e}};this.setIsCharging(!0);const s=await this.transaction.authenticateMobileMoney(n);this.setIsCharging(!1),this.handleAuthenticateResponse(s)}catch(n){this.emitPaymentChannelError(this,n)}},handleChargeResponse(t){var s,a,i,o,l;const{status:r,data:e}=t,n=(s=e==null?void 0:e.display)==null?void 0:s.continueTransaction;if(r===io.SUCCESS){this.message=e&&e.display&&e.display.message,this.displayType=e&&e.display&&e.display.type,this.countdownDuration=((a=e==null?void 0:e.display)==null?void 0:a.timer)||0,this.qrData={url:(i=e==null?void 0:e.display)==null?void 0:i.qrURL,code:(o=e==null?void 0:e.display)==null?void 0:o.qrCode};const d={...this.views,VOUCHER:"voucher_payment_instructions"},u=(l=this.displayType)==null?void 0:l.toUpperCase(),g=d[u]||d.LISTEN_FOR_CHARGE;this.setView(g),[d.LISTEN_FOR_CHARGE].includes(g)&&this.listenForCharge(),g===d.REGISTRATION_TOKEN&&(this.canResendOtp=e.display.canResendOtp)}else r===io.AWAITING_REGISTRATION_TOKEN&&!n?this.$emit("callback",{...t,status:"failed"}):this.$emit("callback",t)},handleAuthenticateResponse(t){var s,a,i;const{status:r,data:e}=t,n=(s=e==null?void 0:e.display)==null?void 0:s.continueTransaction;if(r===io.SUCCESS||r===io.AWAITING_REGISTRATION_TOKEN&&n){this.displayType=e.display.type;const o=this.views[(a=this.displayType)==null?void 0:a.toUpperCase()]||this.views.LISTEN_FOR_CHARGE;this.setView(o),o===this.views.LISTEN_FOR_CHARGE&&this.listenForCharge(),this.countdownDuration=e.display.timer||0,this.canResendOtp=e.display.canResendOtp,r===io.AWAITING_REGISTRATION_TOKEN?this.authenticationErrorMessage=e.display.message:this.message=(i=e==null?void 0:e.display)==null?void 0:i.message}else r===io.AWAITING_REGISTRATION_TOKEN&&!n?this.$emit("callback",{...t,status:"failed"}):this.$emit("callback",t)},setView(t){this.currentView=t},resetView(){this.setView(this.views.ENTER_NUMBER)},showVoucherForm(){this.setView(this.views.ENTER_VOUCHER)},async submitCode(t){try{const r=await this.transaction.submitMobileMoneyCode({code:t});this.$emit("callback",r)}catch(r){this.emitPaymentChannelError(this,r)}}}},OG={key:"enter_number"},FG={key:"listen_for_charge"},DG={key:"voucher_payment_instructions"},VG={key:"enter_voucher"},BG={"data-testid":"registration-otp-form",key:"registration_otp"};function UG(t,r,e,n,s,a){const i=P("mobile-money-form"),o=P("mobile-money-in-progress"),l=P("voucher-payment-instructions"),d=P("otp-form"),u=P("mobile-money-otp-form");return f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.ENTER_NUMBER?(f(),v("div",OG,[$(i,{onSubmit:a.onPhoneNumberSubmit},null,8,["onSubmit"])])):s.currentView===s.views.LISTEN_FOR_CHARGE?(f(),v("div",FG,[$(o,{displayType:s.displayType,timer:s.countdownDuration,message:s.message,onCancel:a.requery,onConfirm:a.requery},null,8,["displayType","timer","message","onCancel","onConfirm"])])):s.currentView===s.views.VOUCHER_PAYMENT_INSTRUCTIONS?(f(),v("div",DG,[$(l,{onCancel:a.resetView,onShowVoucherForm:a.showVoucherForm},null,8,["onCancel","onShowVoucherForm"])])):s.currentView===s.views.ENTER_VOUCHER?(f(),v("div",VG,[$(d,{message:s.message,countdownMessage:t.$t("voucherModeCountdownTimerMessage"),onSubmit:a.authorizePayment,onCancel:a.requery,showCountdown:!0,timeLimit:300},null,8,["message","countdownMessage","onSubmit","onCancel"])])):s.currentView===s.views.REGISTRATION_TOKEN?(f(),v("div",BG,[$(u,{message:s.message,canResendOtp:s.canResendOtp,countdownDuration:s.countdownDuration,authenticationErrorMessage:s.authenticationErrorMessage,onSubmit:a.authenticatePayment,onResend:a.authenticatePayment,onCancel:a.requery},null,8,["message","canResendOtp","countdownDuration","authenticationErrorMessage","onSubmit","onResend","onCancel"])])):D("",!0)]),_:1})])}typeof Rv=="function"&&Rv(y6);const HG=ee(y6,[["render",UG]]),a1=(t,{integrity:r}={})=>new Promise((e,n)=>{const s=document.createElement("script");s.src=t,r&&(s.integrity=r),s.crossOrigin="anonymous",s.onload=()=>{e(!0)},s.onerror=()=>{s.remove(),n(!1)},document.head.appendChild(s)}),qG="https://www.paypal.com/sdk/js",WG=({clientId:t,merchantId:r})=>a1("".concat(qG,"?client-id=").concat(t,"&merchant-id=").concat(r,"&disable-funding=card"));function Pv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{message:e=>{const{normalize:n}=e;return n(["You'll be redirected to PayPal complete this payment"])},errorMessage:e=>{const{normalize:n}=e;return n(["Could not load payment method"])}},fr:{message:e=>{const{normalize:n}=e;return n(["Vous serez redirigé vers PayPal pour effectuer ce paiement"])},errorMessage:e=>{const{normalize:n}=e;return n(["Impossible de charger le mode de paiement"])}}}})}const GG={class:"container"},b6={__name:"PayPalChannel",emits:["callback","attempt"],setup(t,{emit:r}){const{t:e}=vn(),n=ae(),s=ge(!1),a=ge(!1),i=r,g=ge({style:{layout:"vertical",color:"blue",label:"pay",tagline:!1},createOrder:async()=>{i("attempt");const k=await n.transaction.createPayPalOrder();if(k.status!=="success"){i("callback",{status:"failed",message:k.message});return}return k.data.order_id},onApprove:async()=>{const k=await n.transaction.capturePayPalOrder();return i("callback",k),k},onError:k=>{i("callback",{status:"failed",message:k.message})},onCancel:()=>{try{n.transaction.markAsAbandoned()}catch(k){}}}),y=()=>{window.paypal.Buttons(g.value).render("#paypal-button-container")},w=async()=>{try{s.value=!0;const{data:k}=await n.transaction.getPayPalConfig();a.value=await WG({clientId:k.client_id,merchantId:k.merchant_id}),y()}catch(k){i("callback",{status:"failed",message:e("errorMessage")})}finally{s.value=!1}};return Ja(()=>{a.value?y():w()}),(k,E)=>(f(),v("div",GG,[s.value?(f(),se(tn,{key:0})):(f(),se(Et,{key:1,message:fe(e)("message")},null,8,["message"])),E[0]||(E[0]=m("div",{id:"paypal-button-container"},null,-1))]))}};typeof Pv=="function"&&Pv(b6);const jG=ee(b6,[["__scopeId","data-v-e91e2498"]]);function Nv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{sendOtp:e=>{const{normalize:n}=e;return n(["Send OTP"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Please enter your mobile phone number (at least 10 digits)"])}},fr:{sendOtp:e=>{const{normalize:n}=e;return n(["Envoyer le Mot de passe"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro de téléphone mobile (au moins 10 chiffres)"])}},ar:{sendOtp:e=>{const{normalize:n}=e;return n(["إرسال رقم التعريف الشخصي المؤقت (OTP)"])},instructionMessage:e=>{const{normalize:n}=e;return n(["الرجاء إدخال رقم هاتفك المحمول (10 أرقام على الأقل)"])}}}})}const C6={name:"PhoneForm",components:{CancelLink:rn,Instructions:Et,PhoneNumberInput:Ui,PaymentButton:dt},mounted(){this.$nextTick(()=>{this.$refs.input&&this.$refs.input.focus()})},props:{countryCode:{type:String,default:"NG"}},data(){return{processing:!1,phoneNumber:"",isValidPhoneNumber:!1,error:null}},emits:["cancel","submit"],computed:{...we(ae,["transaction"])},methods:{cancel(){this.$emit("cancel")},onSubmit(){var r;this.processing=!0;const t=(r=mr(this.phoneNumber,this.countryCode))==null?void 0:r.format("E.164");this.$emit("submit",t)},onInput(t){var e;const r=(e=t==null?void 0:t.target)==null?void 0:e.value;this.isValidPhoneNumber=Vd(r,this.countryCode)}}},ZG={class:"row"},KG={class:"col-10-sm col-centered"},YG={class:"col-10-sm col-centered button-wrapper"},QG={key:0,class:"form-group-error"};function JG(t,r,e,n,s,a){const i=P("instructions"),o=P("phone-number-input"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",null,[m("form",{onSubmit:r[1]||(r[1]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"])),class:"auth-form"},[$(i,{message:t.$t("instructionMessage"),icon:"phone"},null,8,["message"]),m("div",ZG,[m("div",KG,[$(o,{"country-code":e.countryCode,required:!0,placeholder:"+234 812 345 6789",modelValue:s.phoneNumber,"onUpdate:modelValue":r[0]||(r[0]=u=>s.phoneNumber=u),onInput:a.onInput,ref:"phoneNumber","data-testid":"phoneInput"},null,8,["country-code","modelValue","onInput"])]),m("div",YG,[$(l,{"data-testid":"phoneNumberSubmitButton",disabled:!s.isValidPhoneNumber,loading:s.processing},{default:ne(()=>[Be(T(t.$t("sendOtp")),1)]),_:1},8,["disabled","loading"])])]),$(rt,{name:"fade"},{default:ne(()=>[s.error?(f(),v("div",QG,T(s.error),1)):D("",!0)]),_:1}),s.processing?D("",!0):(f(),se(d,{key:0,onClick:a.cancel},null,8,["onClick"]))],32)])}typeof Nv=="function"&&Nv(C6);const XG=ee(C6,[["render",JG],["__scopeId","data-v-d1470536"]]),ej={name:"PinField",props:{modelValue:String,disabled:Boolean,focus:Boolean},data(){return{localValue:this.modelValue,isFocused:!1}},mounted(){this.focus&&this.onFocus()},emits:["update:modelValue","valid","back"],computed:{maskField(){return this.localValue&&!this.isFocused}},methods:{onKeyDown(t){const r=t.key==="Backspace",e=t.key==="Tab",n=Number.parseInt(t.key,10);!r&&!e&&Number.isNaN(n)&&t.preventDefault(),r&&!this.localValue&&this.$emit("back")},onKeyUp(t){this.$emit("update:modelValue",this.localValue);const r=Number.parseInt(t.key,10);this.localValue&&!Number.isNaN(r)&&this.$emit("valid")},onFocus(){this.localValue?this.$refs.pinFieldElement.select():this.$refs.pinFieldElement.focus(),this.isFocused=!0},onBlur(){this.isFocused=!1}},watch:{focus(t){t&&this.onFocus()}}},tj=["disabled"];function nj(t,r,e,n,s,a){return f(),v("div",{class:pt(["pin-field",{"pin-field--masked":a.maskField}])},[ct(m("input",{ref:"pinFieldElement",name:"pinField",type:"tel",class:"input",autocomplete:"off",maxlength:"1",disabled:e.disabled,"onUpdate:modelValue":r[0]||(r[0]=i=>s.localValue=i),"data-testid":"pinFieldInput",onKeydown:r[1]||(r[1]=(...i)=>a.onKeyDown&&a.onKeyDown(...i)),onKeyup:r[2]||(r[2]=(...i)=>a.onKeyUp&&a.onKeyUp(...i)),onBlur:r[3]||(r[3]=(...i)=>a.onBlur&&a.onBlur(...i)),onFocus:r[4]||(r[4]=(...i)=>a.onFocus&&a.onFocus(...i))},null,40,tj),[[Wt,s.localValue]]),r[5]||(r[5]=m("span",{class:"pin-mask"},"*",-1))],2)}const rj=ee(ej,[["render",nj],["__scopeId","data-v-1d61f1b0"]]),sj={name:"PinInput",components:{PinField:rj},props:{value:String,pinLength:{type:Number,default:4}},data(){return{activeFieldIndex:0,modelValue:Array(this.pinLength).fill("")}},emits:["update:modelValue"],methods:{handleInput(){this.modelValue.every(t=>t)&&this.$emit("update:modelValue",this.modelValue.join(""))},next(){const t=this.activeFieldIndex+1;t=0&&(this.activeFieldIndex=t)}}},aj={class:"pin-input"};function ij(t,r,e,n,s,a){const i=P("pin-field");return f(),v("div",aj,[r[0]||(r[0]=m("input",{type:"text",name:"prevent_autofill",value:"",style:{display:"none"}},null,-1)),r[1]||(r[1]=m("input",{type:"text",name:"prevent_autofill",value:"",style:{display:"none"}},null,-1)),(f(!0),v(gt,null,Ot(e.pinLength,(o,l)=>(f(),v("div",{key:o},[$(i,{modelValue:s.modelValue[l],"onUpdate:modelValue":d=>s.modelValue[l]=d,focus:l===s.activeFieldIndex,onKeyup:a.handleInput,onValid:a.next,onBack:a.previous},null,8,["modelValue","onUpdate:modelValue","focus","onKeyup","onValid","onBack"])]))),128))])}const oj=ee(sj,[["render",ij],["__scopeId","data-v-5ceeaf8d"]]),lj="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='14'%20cy='14'%20r='14'%20fill='%2309A5DB'/%3e%3cpath%20d='M15.5188%207H12.25V15.2353H15.5188V7Z'%20fill='white'/%3e%3cpath%20d='M15.5188%2016.8824H12.25V20.1549H15.5188V16.8824Z'%20fill='white'/%3e%3c/svg%3e",cj={},uj={class:"info-banner","data-testid":"info-banner"},dj={class:"info-banner__text"};function hj(t,r){return f(),v("div",uj,[r[0]||(r[0]=m("img",{src:lj,alt:"",class:"info-banner__icon"},null,-1)),m("p",dj,[Ks(t.$slots,"default",{},void 0,!0)])])}const w6=ee(cj,[["render",hj],["__scopeId","data-v-3d8797e0"]]),mj={name:"PinForm",props:{message:{type:String,required:!0},issuerNotice:{type:String,default:null}},components:{Loader:tn,Instructions:Et,PinInput:oj,CancelLink:rn,InfoBanner:w6},data(){return{processing:!1,pin:""}},emits:["submit","cancel"],computed:{...we(ae,["transaction"])},watch:{pin(t){t.length===4&&this.submit()}},methods:{submit(){this.processing=!0,this.transaction.card.pin=this.pin,this.$emit("submit")},cancel(){this.$emit("cancel")}}},pj={id:"pin-form"},fj={class:"row"},_j={class:"col-10-sm col-centered"},gj={class:"pin-area"},vj={key:1};function yj(t,r,e,n,s,a){const i=P("info-banner"),o=P("instructions"),l=P("loader"),d=P("pin-input"),u=P("cancel-link");return f(),v("div",pj,[m("form",{onSubmit:r[1]||(r[1]=jt((...g)=>a.submit&&a.submit(...g),["prevent"])),class:"auth-form",autocomplete:"off"},[m("div",fj,[m("div",_j,[e.issuerNotice?(f(),se(i,{key:0,class:"issuer-notice"},{default:ne(()=>[Be(T(e.issuerNotice),1)]),_:1})):D("",!0),$(o,{message:e.message},null,8,["message"]),m("div",gj,[s.processing?(f(),se(l,{key:0})):(f(),v("div",vj,[$(d,{"pin-length":4,modelValue:s.pin,"onUpdate:modelValue":r[0]||(r[0]=g=>s.pin=g)},null,8,["modelValue"])]))]),s.processing?D("",!0):(f(),se(u,{key:1,onClick:a.cancel},null,8,["onClick"]))])])],32)])}const bj=ee(mj,[["render",yj],["__scopeId","data-v-1706b298"]]);function Mv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Enter your CVV and card pin to complete this payment"])},pay:e=>{const{normalize:n}=e;return n(["Pay"])},cardPin:e=>{const{normalize:n}=e;return n(["Card pin"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Saisissez votre CVV et le code PIN de votre carte pour effectuer ce paiement"])},pay:e=>{const{normalize:n}=e;return n(["Payer"])},cardPin:e=>{const{normalize:n}=e;return n(["Code PIN de la carte"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer ",s(a("amount"))])}},ar:{instructionMessage:e=>{const{normalize:n}=e;return n(["ادخل رقم تحقيق البطاقة (CVV) والرقم التعريف الشخصي (PIN) لاتمام عمليه الدفع"])},pay:e=>{const{normalize:n}=e;return n(["ادفع"])},cardPin:e=>{const{normalize:n}=e;return n(["رقم التعريف الشخصي للبطاقة (PIN)"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ادفع ",s(a("amount"))])}}}})}const k6={name:"CvvAndPinForm",directives:{maska:ic},components:{CancelLink:rn,Instructions:Et,PaymentButton:dt},props:{cardType:{type:String,required:!0}},data(){return{error:null,cvv:null,pin:null,processing:null}},emits:["switch","authorize"],computed:{...we(ae,["transaction","transactionAmount","isCharging"]),formIsComplete(){return this.applyPinCheck?this.cvv&&this.pin:this.cvv},applyPinCheck(){return["master-card","mastercard","verve"].includes(this.cardType)},formattedAmount(){return Qn({amount:this.transactionAmount,currency:this.transaction.currency})}},methods:{cancel(){this.$emit("switch","remembered_cards")},onSubmit(){const{cvv:t,pin:r}=this;if(this.formIsComplete){const e={cvv:t,...this.applyPinCheck?{pin:r}:{}};this.processing=!0,this.$emit("authorize",e)}}}},Cj={class:"row"},wj={class:"col-10-sm col-centered"},kj={class:"row"},Sj={class:"form-group text-center"},Ej={key:0,class:"col-6-sm"},Tj={class:"form-group"},$j=["placeholder"],Ij={class:"pay-section"};function Aj(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("cancel-link"),d=cc("maska");return f(),v("div",null,[m("form",{onSubmit:r[3]||(r[3]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"])),class:"form"},[$(rt,{name:"fade"},{default:ne(()=>[$(i,{message:t.$t("instructionMessage")},null,8,["message"])]),_:1}),m("div",Cj,[m("div",wj,[m("div",kj,[m("div",{class:pt(["col-6-sm",{"col-12-sm":!a.applyPinCheck}])},[m("div",Sj,[ct(m("input",{type:"tel",class:pt(["input",{"input--error":s.error,"input--centered":!a.applyPinCheck}]),ref:"cvv",name:"cvv",placeholder:"CVV","data-testid":"cardCvvInput","data-maska":"####","onUpdate:modelValue":r[0]||(r[0]=u=>s.cvv=u),required:""},null,2),[[d],[Wt,s.cvv]])])],2),a.applyPinCheck?(f(),v("div",Ej,[m("div",Tj,[ct(m("input",{type:"password",class:pt(["input",{"input--error":s.error}]),ref:"pin",name:"pin",placeholder:t.$t("cardPin"),"data-maska":"####","onUpdate:modelValue":r[1]||(r[1]=u=>s.pin=u),required:""},null,10,$j),[[d],[Wt,s.pin]])])])):D("",!0)]),m("div",Ij,[$(o,{loading:s.processing,disabled:!a.formIsComplete,"data-testid":"cardFormPaymentButton"},{default:ne(()=>[Be(T(t.$t("paymentInstruction",{amount:a.formattedAmount})),1)]),_:1},8,["loading","disabled"]),s.processing?D("",!0):(f(),se(l,{key:0,onClick:r[2]||(r[2]=u=>a.cancel())}))])])])],32)])}typeof Mv=="function"&&Mv(k6);const zj=ee(k6,[["render",Aj]]);function Lv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{label:e=>{const{normalize:n}=e;return n(["Cardholder name"])},placeholder:e=>{const{normalize:n}=e;return n(["Name on card"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Enter cardholder name"])}}},fr:{label:e=>{const{normalize:n}=e;return n(["Nom du titulaire de la carte"])},placeholder:e=>{const{normalize:n}=e;return n(["Nom sur la carte"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Saisir le nom du titulaire de la carte"])}}},ar:{label:e=>{const{normalize:n}=e;return n(["اسم حامل البطاقة"])},placeholder:e=>{const{normalize:n}=e;return n(["اسم صاحب البطاقة"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["أدخل اسم حامل البطاقة"])}}}}})}const Rj={class:"form-group"},Pj=["name","placeholder","required"],Nj={for:"cardHolderName",class:"label label--floating"},Mj={key:0,class:"form-group-error","data-testid":"cardHolderNameError"},i1={__name:"CardHolderNameInput",props:{modelValue:{type:String,default:""},name:{type:String,default:"cardHolderName"},formSubmitAttempted:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:r,emit:e}){const n=t,s=e,{t:a}=vn(),i=ae(),o=ge(null),l=ge(n.modelValue||""),d=ge(!1),u=ge(!1);Sn(()=>n.modelValue,M=>{M!==l.value&&(l.value=M||""),u.value=!0});const g=te(()=>{var x;return(((x=l.value)==null?void 0:x.trim())||"").replace(/[^a-zA-Z\s'-]/g,"")}),y=te(()=>!!g.value.length),w=te(()=>!y.value&&(n.formSubmitAttempted||d.value)),k=()=>{s("update:modelValue",l.value)},E=()=>{k(),y.value||(d.value=!0),u.value=!0},R=()=>{y.value||(d.value=!0),u.value&&i.transaction&&i.transaction.logInput("cardholder name"),u.value=!1};return r({focus:()=>{Vr(()=>{o.value&&o.value.focus()})}}),(M,x)=>(f(),v("div",Rj,[ct(m("input",{type:"text",name:n.name,id:"cardHolderName",ref_key:"inputRef",ref:o,class:pt(["input input--card",{"input--error":w.value}]),autocomplete:"cc-name",placeholder:fe(a)("placeholder"),"onUpdate:modelValue":x[0]||(x[0]=N=>l.value=N),"data-testid":"cardHolderNameInput",onInput:E,onBlur:R,required:t.required},null,42,Pj),[[Wt,l.value]]),m("label",Nj,T(fe(a)("label")),1),$(rt,null,{default:ne(()=>[w.value?(f(),v("div",Mj,T(fe(a)("errorMessage.empty")),1)):D("",!0)]),_:1})]))}};typeof Lv=="function"&&Lv(i1);function xv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{submit:e=>{const{normalize:n}=e;return n(["Continue"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Enter the name on your card to continue"])}},fr:{submit:e=>{const{normalize:n}=e;return n(["Continuer"])},instructionMessage:e=>{const{normalize:n}=e;return n(["Saisissez le nom inscrit sur votre carte pour continuer"])}},ar:{submit:e=>{const{normalize:n}=e;return n(["متابعة"])},instructionMessage:e=>{const{normalize:n}=e;return n(["أدخل الاسم المدوّن على بطاقتك للمتابعة"])}}}})}const Lj={id:"cardholder-name-form"},xj={class:"row"},Oj={class:"col-12-sm"},S6={__name:"CardholderNameForm",props:{message:{type:String,default:""}},emits:["cancel","submit"],setup(t,{emit:r}){const e=t,n=r,{t:s}=vn(),a=ge(""),i=ge(!1),o=ge(!1),l=te(()=>a.value.trim().replace(/[^a-zA-Z\s'-]/g,"")),d=te(()=>l.value.length>0),u=te(()=>e.message||s("instructionMessage")),g=()=>n("cancel"),y=()=>{o.value=!0,d.value&&(i.value=!0,n("submit",{card_holder_name:l.value}))};return(w,k)=>(f(),v("div",Lj,[m("form",{onSubmit:jt(y,["prevent"]),class:"auth-form",autocomplete:"off"},[$(Et,{"data-testid":"cardholder-name-form-instruction",message:u.value},null,8,["message"]),m("div",xj,[m("div",Oj,[$(i1,{modelValue:a.value,"onUpdate:modelValue":k[0]||(k[0]=E=>a.value=E),formSubmitAttempted:o.value,required:""},null,8,["modelValue","formSubmitAttempted"]),$(dt,{disabled:!d.value,loading:i.value,"data-testid":"cardholderNameFormSubmitButton"},{default:ne(()=>[Be(T(fe(s)("submit")),1)]),_:1},8,["disabled","loading"]),i.value?D("",!0):(f(),se(rn,{key:0,onClick:g}))])])],32)]))}};typeof xv=="function"&&xv(S6);const Fj={},Dj={class:"warning-banner","data-testid":"warning-banner"},Vj={class:"warning-banner__text"};function Bj(t,r){return f(),v("div",Dj,[r[0]||(r[0]=m("img",{src:Td,alt:"",class:"warning-banner__icon"},null,-1)),m("p",Vj,[Ks(t.$slots,"default",{},void 0,!0)])])}const Uj=ee(Fj,[["render",Bj],["__scopeId","data-v-21a2e4c7"]]),Hj={name:"CardLogo",props:["type"]};function qj(t,r,e,n,s,a){return e.type?(f(),v("div",{key:0,class:pt("card-logo ".concat(e.type))},null,2)):D("",!0)}const o1=ee(Hj,[["render",qj],["__scopeId","data-v-16f3050d"]]),ed=(t,r)=>t&&t.length>=r;function Wj(){const t=ae(),r=Qt();async function e(n){const{transaction:s}=t,{data:a}=await wo.preChargeCheck({bin:n,transactionId:s.id,merchantKey:s.merchant.key}),i={requestForCardHolderName:a==null?void 0:a.request_for_card_holder_name,currencySwitcherLocked:a==null?void 0:a.currency_switcher_locked,exchangeRate:a==null?void 0:a.exchange_rate,presentmentAmount:a==null?void 0:a.presentment_amount,presentmentCurrency:a==null?void 0:a.presentment_currency};return r.setCardChannelState({preChargeCheckHints:i}),{preChargeCheckHints:i,binData:{bank:a==null?void 0:a.bank,currency:a==null?void 0:a.currency,countryCode:a==null?void 0:a.country_code}}}return{runPreChargeCheck:e}}function Ov(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{cardNumber:e=>{const{normalize:n}=e;return n(["Card Number"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Enter card number"])},invalid:e=>{const{normalize:n}=e;return n(["Invalid card number"])}}},fr:{cardNumber:e=>{const{normalize:n}=e;return n(["Numéro"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Saisir le numéro de la carte"])},invalid:e=>{const{normalize:n}=e;return n(["Numéro de carte non valide"])}}},ar:{cardNumber:e=>{const{normalize:n}=e;return n(["رقم البطاقة"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["أدخل رقم البطاقة"])},invalid:e=>{const{normalize:n}=e;return n(["رقم البطاقة خاطئ"])}}}}})}const E6={name:"CardNumberInput",directives:{maska:ic},components:{CardLogo:o1},setup(){const{runPreChargeCheck:t}=Wj();return{runPreChargeCheck:t}},props:{modelValue:{type:String,default:""},name:{type:String,default:"number"},formSubmitAttempted:{type:Boolean}},watch:{modelValue(t,r){this.valueHasChanged=!0;const e=t.slice(0,6),n=r.slice(0,6);e.length<6?this.resetCardInformation():e!==n&&(this.transaction.preChargeCheckEnabled?this.runPreChargeCheckBin(e):this.canResolveBin()&&this.resolveBin(e))}},mounted(){const t=this.cardNumberWithoutSpaces.slice(0,6);this.reusePaymentInfo&&this.transaction.preChargeCheckEnabled&&t.length===6&&this.runPreChargeCheckBin(t)},data(){return{cardNumber:this.modelValue,canShowError:!1,valueHasChanged:!1,civBinCheckEnabled:!0,hasEmittedComplete:!1}},emits:["focus","complete","update:modelValue","setUsedInternationalBIN","setResolvedBinBank","setCardAsCanBeRemembered","cardType","setIsLocalCardUnsupported","setLocalCardUnsupported","setResolvingBin","setPreChargeCheckLoading","setPaymentCurrency","setInternationalCard"],computed:{...we(ae,["transaction","reusePaymentInfo"]),cardNumberWithoutSpaces(){return this.cardNumber.replace(/\s/g,"")},cardTypeInfo(){return ba.getType(this.cardNumberWithoutSpaces)},cardType(){return this.cardTypeInfo.type},isVerveCard(){return this.cardType==="verve"},isVariableLengthBrand(){return this.isVerveCard||this.cardType==="unionpay"},cardMask(){if(this.cardType==="american-express")return"#### ###### #####";const t=this.cardTypeInfo.maxLength;return t?"#".repeat(t).match(/.{1,4}/g).join(" "):"#### #### #### #### ###"},isValid(){const{isValid:t}=ba.validateNumber(this.cardNumberWithoutSpaces);return t},cardCanBeRemembered(){const t=this.transaction&&this.transaction.currency==="NGN",r=this.transaction&&this.transaction.rememberMeEnabled,e=this.transaction&&this.transaction.device,s=["master-card","mastercard","verve","visa"].includes(this.cardType);return t&&r&&e&&s&&this.isValid},showError(){const{minLength:t}=this.cardTypeInfo;return this.isVerveCard?this.formSubmitAttempted&&!this.isValid:!this.isValid&&this.canShowError&&(this.formSubmitAttempted||ed(this.cardNumberWithoutSpaces,t))},errorMessage(){return this.cardNumber?this.$t("errorMessage.invalid"):this.$t("errorMessage.empty")}},methods:{...It(Qt,["setCardChannelState"]),focus(){this.$nextTick(()=>{this.$refs.input&&this.$refs.input.focus()})},onChange(){this.$emit("update:modelValue",this.cardNumberWithoutSpaces),this.$emit("cardType",this.cardType),this.$emit("setCardAsCanBeRemembered",this.cardCanBeRemembered),this.handleCardNumberValidity()},onFocus(){this.$emit("focus")},handleCardNumberValidity(){this.isValid?!this.isVariableLengthBrand&&!this.hasEmittedComplete&&(this.hasEmittedComplete=!0,this.$emit("complete")):(this.hasEmittedComplete=!1,this.canShowError=!0)},onBlur(){this.valueHasChanged&&this.transaction.logInput("card number"),this.valueHasChanged=!1},resetCardInformation(){this.$emit("setUsedInternationalBIN",!1),this.$emit("setLocalCardUnsupported",!1),this.$emit("setInternationalCard",{currency:"",countryCode:""}),this.$emit("setPaymentCurrency",this.transaction.currency),this.$emit("setResolvedBinBank",null),this.transaction.preChargeCheckEnabled&&this.setCardChannelState({preChargeCheckHints:null})},canResolveBin(){return Bh(this.transaction)||Uh(this.transaction)||this.civBinCheckEnabled&&Yg(this.transaction)||$D(this.transaction)},async resolveBin(t){(Bh(this.transaction)||Uh(this.transaction))&&this.$emit("setResolvingBin",!0);try{const{data:r}=await wo.resolveCardBin(t),e={currency:(r==null?void 0:r.currency)||"",countryCode:(r==null?void 0:r.country_code)||""},n=n1(this.transaction,{currency:r==null?void 0:r.currency,countryCode:r==null?void 0:r.country_code}),s=n?Oi(this.transaction,e).currency:this.transaction.currency;this.handleBinResolveSuccess({bank:r==null?void 0:r.bank,cardCurrency:r==null?void 0:r.currency,countryCode:r==null?void 0:r.country_code,isInternational:n,paymentCurrency:s})}catch(r){this.$emit("setResolvedBinBank",null)}finally{this.$emit("setResolvingBin",!1)}},async runPreChargeCheckBin(t){this.$emit("setPreChargeCheckLoading",!0);try{const{preChargeCheckHints:r,binData:e}=await this.runPreChargeCheck(t),n=!!r.presentmentCurrency&&r.presentmentCurrency!==this.transaction.currency,s=r.presentmentCurrency||this.transaction.currency;this.handleBinResolveSuccess({bank:e.bank,cardCurrency:e.currency,countryCode:e.countryCode,isInternational:n,paymentCurrency:s})}catch(r){this.setCardChannelState({preChargeCheckHints:null}),await this.resolveBin(t)}finally{this.$emit("setPreChargeCheckLoading",!1)}},handleBinResolveSuccess({bank:t,isInternational:r,cardCurrency:e,countryCode:n,paymentCurrency:s}){if(this.$emit("setResolvedBinBank",t||null),r?(this.$emit("setUsedInternationalBIN",!0),this.$emit("setInternationalCard",{currency:e||"",countryCode:n||""})):(this.$emit("setUsedInternationalBIN",!1),this.$emit("setInternationalCard",{currency:"",countryCode:""})),this.$emit("setPaymentCurrency",s),this.civBinCheckEnabled&&Yg(this.transaction)&&n){const a=Db.includes(n);this.$emit("setLocalCardUnsupported",a)}}}},Gj={class:"form-group"},jj={class:"input-wrap"},Zj=["name","data-maska"],Kj={for:"cardNumber",class:"label label--floating"},Yj={key:0,class:"form-group-error","data-testid":"cardNumberError"};function Qj(t,r,e,n,s,a){const i=P("card-logo"),o=cc("maska");return f(),v("div",Gj,[m("div",jj,[ct(m("input",{ref:"input",type:"tel",id:"cardNumber",name:e.name,"data-maska":a.cardMask,class:pt(["input input--card",{"input--error":a.showError}]),autocomplete:"cc-number",placeholder:"0000 0000 0000 0000","onUpdate:modelValue":r[0]||(r[0]=l=>s.cardNumber=l),"data-testid":"cardNumberInput",onInput:r[1]||(r[1]=(...l)=>a.onChange&&a.onChange(...l)),onBlur:r[2]||(r[2]=(...l)=>a.onBlur&&a.onBlur(...l)),onFocus:r[3]||(r[3]=(...l)=>a.onFocus&&a.onFocus(...l)),required:""},null,42,Zj),[[o],[Wt,s.cardNumber]]),m("label",Kj,T(t.$t("cardNumber")),1),$(rt,{name:"fade"},{default:ne(()=>[a.cardType?(f(),se(i,{key:0,type:a.cardType},null,8,["type"])):D("",!0)]),_:1})]),$(rt,{name:"fade"},{default:ne(()=>[a.showError?(f(),v("div",Yj,T(a.errorMessage),1)):D("",!0)]),_:1})])}typeof Ov=="function"&&Ov(E6);const Jj=ee(E6,[["render",Qj],["__scopeId","data-v-78269461"]]),Xj=/^[a-zA-Z0-9_\-~!@#$%^&*.()<>?/|{} ]+$/;function Fv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{cardExpiry:e=>{const{normalize:n}=e;return n(["Card Expiry"])},placeholder:e=>{const{normalize:n}=e;return n(["MM / YY"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Enter card expiry"])},invalid:e=>{const{normalize:n}=e;return n(["Invalid card expiry"])},languageErrorMessage:e=>{const{normalize:n}=e;return n(["Please complete this field in English"])}}},fr:{cardExpiry:e=>{const{normalize:n}=e;return n(["Date d'expiration"])},placeholder:e=>{const{normalize:n}=e;return n(["MM / AA"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["Saisir la date d'expiration de la carte"])},invalid:e=>{const{normalize:n}=e;return n(["Date d'expiration de la carte non valide"])},languageErrorMessage:e=>{const{normalize:n}=e;return n(["Veuillez remplir ce champ en anglais"])}}},ar:{cardExpiry:e=>{const{normalize:n}=e;return n(["انتهاء صلاحية البطاقة"])},placeholder:e=>{const{normalize:n}=e;return n(["MM / YY"])},errorMessage:{empty:e=>{const{normalize:n}=e;return n(["أدخل تاريخ انتهاء صلاحية البطاقة"])},invalid:e=>{const{normalize:n}=e;return n(["انتهاء صلاحية البطاقة غير صحيح"])},languageErrorMessage:e=>{const{normalize:n}=e;return n(["الرجاء إكمال هذا باللغة الإنجليزية"])}}}}})}const T6={name:"CardExpiryInput",props:{modelValue:{type:Object,default(){return{month:"",year:""}}},name:{type:String,default:"expiry"},formSubmitAttempted:{type:Boolean}},watch:{modelValue(){this.valueHasChanged=!0}},data(){const{month:t,year:r}=this.modelValue;return{expiryString:t&&r?"".concat(t," / ").concat(r):"",canShowError:!1,valueHasChanged:!1}},emits:["complete","focus","update:modelValue"],computed:{...we(ae,["transaction"]),expiryObject(){const{month:t,year:r}=ba.validateExpiry(this.expiryString);return{month:t,year:r}},isValid(){const{isValid:t}=ba.validateExpiry(this.expiryString);return t},hasUnacceptedLanguageCharacter(){return!Xj.test(this.expiryString)},expiryStringWithoutSpaces(){return this.expiryString.replace(/\s/g,"")},showError(){if(this.isValid||!this.canShowError)return!1;const t=5,r=1;return this.formSubmitAttempted||ed(this.expiryStringWithoutSpaces,t)?!0:this.hasUnacceptedLanguageCharacter&&ed(this.expiryStringWithoutSpaces,r)},errorMessage(){return this.hasUnacceptedLanguageCharacter?this.$t("errorMessage.languageErrorMessage"):this.expiryString?this.$t("errorMessage.invalid"):this.$t("errorMessage.empty")}},methods:{focus(){this.$nextTick(()=>{this.$refs.input&&this.$refs.input.focus()})},canAssistInput(t){return this.expiryString.length!==2?!1:t.data&&t.key!=="Backspace"},onChange(t){this.canAssistInput(t)&&this.addSlash(),this.$emit("update:modelValue",this.expiryObject),this.isValid?this.$emit("complete"):this.canShowError=!0},addSlash(){this.expiryString="".concat(this.expiryString," / "),this.moveCursorToEnd()},moveCursorToEnd(){const t=this.$refs.input;if(t!=null&&t.setSelectionRange){const r=this.expiryString.length;t.setSelectionRange(r,r)}},onBlur(){this.valueHasChanged&&this.transaction.logInput("card expiry"),this.valueHasChanged=!1},onFocus(){this.$emit("focus")}}},eZ={class:"form-group"},tZ=["name","placeholder"],nZ={for:"cardExpiry",class:"label label--floating"},rZ={key:0,class:"form-group-error","data-testid":"cardExpiryError"};function sZ(t,r,e,n,s,a){return f(),v("div",eZ,[ct(m("input",{type:"tel",name:e.name,ref:"input",id:"cardExpiry",class:pt(["input input--card",{"input--error":a.showError}]),autocomplete:"cc-exp",placeholder:t.$t("placeholder"),"onUpdate:modelValue":r[0]||(r[0]=i=>s.expiryString=i),"data-testid":"cardExpiryInput",onInput:r[1]||(r[1]=(...i)=>a.onChange&&a.onChange(...i)),onBlur:r[2]||(r[2]=(...i)=>a.onBlur&&a.onBlur(...i)),onFocus:r[3]||(r[3]=(...i)=>a.onFocus&&a.onFocus(...i)),required:""},null,42,tZ),[[Wt,s.expiryString]]),m("label",nZ,T(t.$t("cardExpiry")),1),$(rt,{name:"fade"},{default:ne(()=>[a.showError?(f(),v("div",rZ,T(a.errorMessage),1)):D("",!0)]),_:1})])}typeof Fv=="function"&&Fv(T6);const aZ=ee(T6,[["render",sZ]]),iZ={name:"HintComponent",props:{label:{type:String,required:!0},text:{type:String,required:!0},image:{type:String},imageDescription:{type:String}},data(){return{showHint:!1}},methods:{toggle(){this.showHint?this.hide():this.show()},stopPropagation(t){t.stopPropagation()},show(){document.addEventListener("keyup",this.close),window.addEventListener("click",this.close),this.$refs.hint.addEventListener("click",this.stopPropagation),this.showHint=!0},hide(){var t;document.removeEventListener("keyup",this.close),window.removeEventListener("click",this.close),(t=this.$refs.hint)==null||t.removeEventListener("click",this.stopPropagation),this.showHint=!1},close(t){t.type==="click"&&this.hide(),t.code==="Escape"&&this.hide()}}},oZ={class:"hint",ref:"hint"},lZ={key:0,class:"hint__popup","data-testid":"hintPopup"},cZ={key:0,class:"hint__image"},uZ=["src","alt"],dZ={"data-testid":"hint-text",class:"hint__text"};function hZ(t,r,e,n,s,a){return f(),v("div",oZ,[m("a",{class:"hint__toggle","data-testid":"showHint",onClick:r[0]||(r[0]=i=>a.toggle())},T(e.label),1),$(rt,{name:"show"},{default:ne(()=>[s.showHint?(f(),v("div",lZ,[m("button",{class:"hint__close","data-testid":"hideHint",onClick:r[1]||(r[1]=jt(i=>a.hide(),["prevent"]))},[...r[2]||(r[2]=[m("div",null,"×",-1)])]),e.image?(f(),v("div",cZ,[m("img",{src:e.image,alt:e.imageDescription},null,8,uZ)])):D("",!0),m("div",dZ,T(e.text),1)])):D("",!0)]),_:1})],512)}const mZ=ee(iZ,[["render",hZ]]),pZ="/assets/cvv-D15-gTJv.png";function Dv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{hintText:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Your ",s(a("inputLabel"))," is the 3 or 4-digit number on the back of your card (the side without the chip)."])},help:e=>{const{normalize:n}=e;return n(["Help?"])},cvv:e=>{const{normalize:n}=e;return n(["CVV"])},cid:e=>{const{normalize:n}=e;return n(["CID"])},errorMessage:{empty:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Enter card ",s(a("identificationType"))])},invalid_cvv:e=>{const{normalize:n}=e;return n(["Invalid card cvv"])},invalid_cid:e=>{const{normalize:n}=e;return n(["Invalid card CID"])}}},fr:{hintText:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Votre ",s(a("inputLabel"))," est le numéro à 3 ou 4 chiffres figurant au dos de votre carte (le côté où il n'y a pas de puce)."])},help:e=>{const{normalize:n}=e;return n(["Besoin d'aide ?"])},cvv:e=>{const{normalize:n}=e;return n(["CVV"])},cid:e=>{const{normalize:n}=e;return n(["CID"])},errorMessage:{empty:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Saisir les références de la carte ",s(a("identificationType"))])},invalid_cvv:e=>{const{normalize:n}=e;return n(["CVV de la carte invalide"])},invalid_cid:e=>{const{normalize:n}=e;return n(["CID de la carte invalide"])}}},ar:{hintText:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["الرقم ",s(a("inputLabel"))," مكون من 3 أو 4 أرقام على ظهر بطاقتك (موجود على الجانب الذي لا يحتوي على الشريحة)."])},help:e=>{const{normalize:n}=e;return n(["مساعدة؟"])},cvv:e=>{const{normalize:n}=e;return n(["CVV"])},cid:e=>{const{normalize:n}=e;return n(["CID"])},errorMessage:{empty:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["أدخل بيانات بطاقة ",s(a("identificationType"))])},invalid_cvv:e=>{const{normalize:n}=e;return n(["رقم تعريف البطاقه (CVV) غير صالح"])},invalid_cid:e=>{const{normalize:n}=e;return n(["رقم تعريف البطاقه (CID) غير صالح"])}}}}})}const $6={name:"CardCvvInput",directives:{maska:ic},components:{Hint:mZ},props:{modelValue:{type:String},name:{type:String,default:"cvv"},formSubmitAttempted:{type:Boolean},cardType:{type:String}},watch:{modelValue(){this.valueHasChanged=!0}},data(){return{cardCVV:this.value,cvvImage:pZ,canShowError:!1,valueHasChanged:!1}},emits:["complete","focus","update:modelValue"],computed:{...we(ae,["transaction"]),isValid(){const{isValid:t}=ba.validateCVV(this.cardCVV,this.cardType);return t},showError(){const t=this.isAmexCard?4:3;return!this.isValid&&this.canShowError&&(this.formSubmitAttempted||ed(this.cardCVV,t))},isAmexCard(){return this.cardType==="american-express"},cardIdentificationType(){return this.isAmexCard?"cid":"cvv"},errorMessage(){return this.cardCVV?this.$t("errorMessage.invalid_".concat(this.cardIdentificationType)):this.$t("errorMessage.empty",{identificationType:this.cardIdentificationType.toUpperCase()})},inputLabel(){return this.isAmexCard?this.$t("cid"):this.$t("cvv")}},methods:{focus(){this.$nextTick(()=>{this.$refs.input&&this.$refs.input.focus()})},onChange(){this.$emit("update:modelValue",this.cardCVV),this.isValid?this.$emit("complete"):this.canShowError=!0},onBlur(){this.valueHasChanged&&this.transaction.logInput("card cvv"),this.valueHasChanged=!1},onFocus(){this.$emit("focus")}}},fZ={class:"form-group"},_Z=["name","placeholder"],gZ={"data-testid":"cvv-input-label",for:"cardCvv",class:"label label--floating"},vZ={key:0,class:"form-group-error","data-testid":"cardCvvError"};function yZ(t,r,e,n,s,a){const i=P("hint"),o=cc("maska");return f(),v("div",fZ,[$(i,{label:t.$t("help"),text:t.$t("hintText",{inputLabel:a.inputLabel}),image:s.cvvImage,imageDescription:"CVV hint"},null,8,["label","text","image"]),ct(m("input",{type:"tel",name:e.name,"data-maska":"####",id:"cardCvv",ref:"input",class:pt(["input input--card",{"input--error":a.showError}]),autocomplete:"cc-csc",placeholder:a.isAmexCard?"1234":"123","onUpdate:modelValue":r[0]||(r[0]=l=>s.cardCVV=l),"data-testid":"cardCvvInput",onInput:r[1]||(r[1]=(...l)=>a.onChange&&a.onChange(...l)),onBlur:r[2]||(r[2]=(...l)=>a.onBlur&&a.onBlur(...l)),onFocus:r[3]||(r[3]=(...l)=>a.onFocus&&a.onFocus(...l)),required:""},null,42,_Z),[[o],[Wt,s.cardCVV]]),m("label",gZ,T(a.inputLabel),1),$(rt,null,{default:ne(()=>[a.showError?(f(),v("div",vZ,T(a.errorMessage),1)):D("",!0)]),_:1})])}typeof Dv=="function"&&Dv($6);const bZ=ee($6,[["render",yZ]]);function Vv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{new:e=>{const{normalize:n}=e;return n(["New"])},label:e=>{const{normalize:n}=e;return n(["Save this card for faster checkouts"])},mobileNumberInputInfo:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Enter your mobile number for verification. Your card will be saved to ',s(a("email")),""])},mobileNumberLabel:e=>{const{normalize:n}=e;return n(["Enter your mobile number for verification."])},change:e=>{const{normalize:n}=e;return n(["Change"])},emailInfo:e=>{const{normalize:n}=e;return n(["Your card will be saved to this email address"])}},fr:{new:e=>{const{normalize:n}=e;return n(["Nouvelle"])},label:e=>{const{normalize:n}=e;return n(["Enregistrer cette carte pour effectuer les paiements plus rapidement"])},mobileNumberInputInfo:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Entrez votre numéro de mobile pour vérification. Votre carte sera enregistrée à ',s(a("email")),""])},mobileNumberLabel:e=>{const{normalize:n}=e;return n(["Entrez votre numéro de mobile pour vérification."])},change:e=>{const{normalize:n}=e;return n(["Modifier"])}},ar:{new:e=>{const{normalize:n}=e;return n(["جديد"])},label:e=>{const{normalize:n}=e;return n(["أدخل رقم هاتفك المحمول لحفظ بطاقتك"])},mobileNumberInputInfo:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['أدخل رقم هاتفك المحمول للتحقق. سيتم حفظ بطاقتك على ',s(a("email")),""])},mobileNumberLabel:e=>{const{normalize:n}=e;return n(["أدخل رقم هاتفك المحمول للتحقق."])},change:e=>{const{normalize:n}=e;return n(["تغيير"])}}}})}const I6={components:{PhoneNumberSelect:f9},name:"SaveNewCardForm",props:{isSavingNewCard:Boolean},data(){return{phoneNumber:"",countryCode:"NG",email:"",isValidEmail:!0,showEmailField:!1}},mounted(){this.countryCode=Ca[this.transaction.currency]},emits:["parentEvent"],computed:{...we(ae,["transaction"]),phoneNumberExample(){return m9(this.countryCode,p9).formatNational()},registeredPhoneNumberCallingCode(){var t;return(t=this.transaction.savedCardsConfig)==null?void 0:t.registered_calling_code},isUserRegisteredWithSavedCards(){var t;return(t=this.transaction.savedCardsConfig)==null?void 0:t.registered},phoneNumberInputValue(){var r;const t=(r=this.transaction.savedCardsConfig)==null?void 0:r.registered_phone;return this.isUserRegisteredWithSavedCards?"**** *** **".concat(t):this.phoneNumber},mobileNumberLabel(){const t=this.isUserRegisteredWithSavedCards?"afterFirstTime":"firstTime";return this.$t("mobileNumberLabel_".concat(t))}},methods:{sendEventToGrandParent(t,r){this.$emit("parentEvent",{eventName:t,data:r})},handlePhoneNumberInput(t,r){var e;if(r&&(this.countryCode=r),!t)this.sendEventToGrandParent("setSavedCardsPhoneNumber","");else if(!this.isUserRegisteredWithSavedCards){const n=(e=mr(t,r))==null?void 0:e.format("E.164");this.sendEventToGrandParent("setSavedCardsPhoneNumber",n||"")}},togglePhoneNumberInput(){this.sendEventToGrandParent("setIsSavingNewCard",!this.isSavingNewCard),this.trackSaveCardChecked()},trackSaveCardChecked(){if(this.isSavingNewCard)return kr.enterDetails.checkedSaveCard();kr.enterDetails.uncheckedSaveCard()},validateEmail(){this.isValidEmail=rd(this.email)},handleEmailInput(t){this.validateEmail(),this.sendEventToGrandParent("setSavedCardsEmail",t)},toggleEmailField(){this.showEmailField=!this.showEmailField}}},CZ={class:"save-new-card-form"},wZ={class:"save-new-card-form__wrapper"},kZ={"data-testid":"save-new-card-label",class:"save-new-card-form__label"},SZ=["checked"],EZ={"aria-hidden":"true",class:"badge badge--red"},TZ={key:0,class:"save-new-card-form__phone-wrapper"},$Z={key:0,class:"save-new-card-form__info"},IZ={key:1,class:"save-new-card-form__info"},AZ=["innerHTML"],zZ={key:2},RZ={class:"save-new-card-form__info"};function PZ(t,r,e,n,s,a){const i=P("phone-number-select");return f(),v("div",CZ,[m("div",wZ,[m("label",kZ,[m("input",{type:"checkbox",checked:e.isSavingNewCard,class:"save-new-card-form__checkbox",onClick:r[0]||(r[0]=(...o)=>a.togglePhoneNumberInput&&a.togglePhoneNumberInput(...o))},null,8,SZ),Be(" "+T(t.$t("label")),1)]),m("span",EZ,T(t.$t("new")),1)]),e.isSavingNewCard?(f(),v("div",TZ,[$(i,{countryCode:s.countryCode,onInput:a.handlePhoneNumberInput,value:a.phoneNumberInputValue,disabled:a.isUserRegisteredWithSavedCards,callingCode:a.registeredPhoneNumberCallingCode,placeholder:a.phoneNumberExample,name:"phoneNumber"},null,8,["countryCode","onInput","value","disabled","callingCode","placeholder"]),s.showEmailField?(f(),v("p",$Z,T(t.$t("mobileNumberLabel")),1)):(f(),v("p",IZ,[m("span",{innerHTML:t.$t("mobileNumberInputInfo",{email:t.transaction.email})},null,8,AZ),m("span",{class:"save-new-card-form__change",onClick:r[1]||(r[1]=(...o)=>a.toggleEmailField&&a.toggleEmailField(...o)),"data-testid":"change-email"},T(t.$t("change")),1)])),s.showEmailField?(f(),v("div",zZ,[ct(m("input",{class:pt([{"input--error":!s.isValidEmail},"input save-new-card-form__email-input"]),onBlur:r[2]||(r[2]=(...o)=>a.validateEmail&&a.validateEmail(...o)),onInput:r[3]||(r[3]=(...o)=>a.handleEmailInput&&a.handleEmailInput(...o)),ref:"email",required:"",type:"email","onUpdate:modelValue":r[4]||(r[4]=o=>s.email=o)},null,34),[[Wt,s.email,void 0,{trim:!0}]]),m("p",RZ,T(t.$t("emailInfo")),1)])):D("",!0)])):D("",!0)])}typeof Vv=="function"&&Vv(I6);const NZ=ee(I6,[["render",PZ],["__scopeId","data-v-f4d32098"]]);function Bv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Enter your card details to pay"])},localCardUnavailableMessage:e=>{const{normalize:n}=e;return n(["Local Card Payments are currently unavailable. Please use an International Card or select an alternative payment channel"])},pay:e=>{const{normalize:n}=e;return n(["Pay"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},useTestCard:e=>{const{normalize:n}=e;return n(["Use a test card"])},payWithSavedCard:e=>{const{normalize:n}=e;return n(["Or pay with a saved card"])},useSavedCard:e=>{const{normalize:n}=e;return n(["Use a saved card"])},rememberCard:e=>{const{normalize:n}=e;return n(["Remember card"])},hintText:e=>{const{normalize:n}=e;return n(["Remember your card details on this device to pay faster in the future (you'll skip entering an OTP). You can always remove the card later."])},whatIsThis:e=>{const{normalize:n}=e;return n(["what is this?"])}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Saisir les références de votre carte"])},localCardUnavailableMessage:e=>{const{normalize:n}=e;return n(["Les paiements par carte locale sont actuellement indisponibles. Veuillez utiliser une carte internationale ou choisir un autre mode de paiement"])},pay:e=>{const{normalize:n}=e;return n(["Payer"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer ",s(a("amount"))])},useTestCard:e=>{const{normalize:n}=e;return n(["Utiliser une carte de test"])},payWithSavedCard:e=>{const{normalize:n}=e;return n(["Ou payer avec une carte enregistrée"])},rememberCard:e=>{const{normalize:n}=e;return n(["Mémoriser la carte"])},hintText:e=>{const{normalize:n}=e;return n(["Mémoriser les références de votre carte sur cet appareil pour payer plus rapidement à l'avenir (vous n'aurez plus à saisir de Mot de passe). Vous pourrez toujours retirer la carte plus tard."])},whatIsThis:e=>{const{normalize:n}=e;return n(["Qu'est-ce que c'est?"])}},ar:{instructionMessage:e=>{const{normalize:n}=e;return n(["أدخل بيانات بطاقتك للدفع"])},localCardUnavailableMessage:e=>{const{normalize:n}=e;return n(["الدفع بالبطاقة المحلية في الوقت الحالي غير متاح. يرجى استخدام بطاقة دولية أو اختيار قناة دفع أخرى"])},pay:e=>{const{normalize:n}=e;return n(["ادفع"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ادفع ",s(a("amount"))])},useTestCard:e=>{const{normalize:n}=e;return n(["استخدم بطاقة تجريبية"])},payWithSavedCard:e=>{const{normalize:n}=e;return n(["أو ادفع ببطاقة محفوظة"])},rememberCard:e=>{const{normalize:n}=e;return n(["حفظ بيانات البطاقة"])},hintText:e=>{const{normalize:n}=e;return n(["احفظ بيانات بطاقتك على هذا الجهاز للدفع بشكل أسرع في المستقبل (سوف تتخطى إدخال رقم التعريف الشخصي المؤقت (OTP)). يمكنك دائمًا حذف البطاقة لاحقًا."])},whatIsThis:e=>{const{normalize:n}=e;return n(["ما هذا؟"])}}}})}const A6={name:"CardForm",components:{Instructions:Et,WarningBanner:Uj,CardCvvInput:bZ,CardExpiryInput:aZ,CardNumberInput:Jj,CardHolderNameInput:i1,CancelLink:rn,PaymentButton:dt,TransactionCurrencySwitcher:r1,SaveNewCardForm:NZ},props:{savedCardsEmail:String,savedCardsPhoneNumber:String,isSavingNewCard:Boolean},data(){return{processing:!1,focusedInput:"",number:"",cardHolderName:"",expiry:{month:"",year:""},cvv:"",cardType:null,rememberCard:!1,showHint:!1,cardCanBeRemembered:!1,formSubmitAttempted:!1,paymentCurrency:"",resolvingBin:!1,preChargeCheckLoading:!1}},mounted(){this.reusePaymentInfo?this.paymentCurrency=this.usedInternationalBIN?this.resolvedExchangeRate.currency:this.transaction.currency:this.setCardChannelState({usedInternationalBIN:!1,internationalCard:{currency:"",countryCode:""}}),this.isCIVMerchant&&this.setCardChannelState({isLocalCardUnsupported:!1}),this.moveFocus("number")},async created(){if(this.reusePaymentInfo&&this.paymentInstrument.card){const{number:t,month:r,year:e,cvv:n,name:s}=this.paymentInstrument.card;this.number=t,this.expiry={month:r,year:e},this.cvv=n,this.cardHolderName=s||""}},emits:["submit","switch","paymentRequestResult","billingAddress","setSavedCardsPhoneNumber","setIsSavingNewCard"],computed:{...we(ae,["transaction","transactionAmount","reusePaymentInfo","paymentInstrument","availableChannels","activeChannel"]),...we(Qt,["cardChannelState","vaultChannelState"]),usedInternationalBIN(){return this.cardChannelState.usedInternationalBIN},isLocalCardUnsupported(){return this.cardChannelState.isLocalCardUnsupported},internationalCard(){return this.cardChannelState.internationalCard},preChargeCheckHints(){return this.cardChannelState.preChargeCheckHints},isCIVMerchant(){return Ca[this.transaction.currency]==="CI"},isSavedCardsPhoneNumberValid(){const t=Ca[this.transaction.currency];return Vd(this.savedCardsPhoneNumber,t)},merchantName(){return this.transaction.merchant.name},isSavedCardsEnabled(){var t;return(t=this.transaction.savedCardsConfig)==null?void 0:t.enabled},isCardHolderNameValid(){var t;return!!((t=this.cardHolderName)!=null&&t.trim())},isUserRegisteredWithSavedCards(){var t;return(t=this.transaction.savedCardsConfig)==null?void 0:t.registered},isPaymentButtonDisabled(){const t=this.isSavingNewCard&&!this.isUserRegisteredWithSavedCards&&!this.isSavedCardsPhoneNumberValid,r=!this.savedCardsEmail||rd(this.savedCardsEmail),e=this.isCIVMerchant&&this.isLocalCardUnsupported;return t||!r||!this.number||!this.expiry||!this.cvv||this.requiresCardHolderName&&!this.isCardHolderNameValid||e},canUseTestCards(){return this.transaction.isTest&&!this.processing},canUseRememberedCard(){return this.transaction&&this.transaction.authorizations&&this.transaction.authorizations.length>0},canUseVaultSavedCards(){var t;return this.availableChannels.some(({key:r})=>r==="vault")&&((t=this.transaction.linkConfig)==null?void 0:t.has_saved_cards)},canUseSavedCards(){return this.canUseVaultSavedCards||this.isSavedCardsEnabled},resolvedExchangeRate(){var t;return this.transaction.preChargeCheckEnabled&&((t=this.preChargeCheckHints)!=null&&t.exchangeRate)?this.preChargeCheckHints.exchangeRate:Oi(this.transaction,this.internationalCard)},amountToPay(){var t;return this.transaction.preChargeCheckEnabled&&((t=this.preChargeCheckHints)==null?void 0:t.presentmentAmount)!=null&&this.paymentCurrency===this.preChargeCheckHints.presentmentCurrency?this.preChargeCheckHints.presentmentAmount:this.usedInternationalBIN&&this.paymentCurrency!==this.transaction.currency?t1(this.resolvedExchangeRate.rate,this.transactionAmount):this.transactionAmount},formattedAmount(){const t=this.paymentCurrency||this.transaction.currency;return Qn({amount:this.amountToPay,currency:t})},isRTL(){return bn.languageDirection==="rtl"},requiresCardHolderName(){var t,r,e,n,s;return this.transaction.preChargeCheckEnabled&&((t=this.preChargeCheckHints)==null?void 0:t.requestForCardHolderName)!=null?this.preChargeCheckHints.requestForCardHolderName:(this.usedInternationalBIN||((e=(r=this.transaction.exchangeRate)==null?void 0:r.rates)==null?void 0:e[this.transaction.currency]))&&!!((s=(n=this.transaction.channelSettings)==null?void 0:n.card)!=null&&s.request_for_card_holder_name)},showCurrencySwitcher(){if(this.transaction.preChargeCheckEnabled&&this.preChargeCheckHints){const{exchangeRate:e}=this.preChargeCheckHints;return!!(e!=null&&e.rate)&&e.currency!==this.transaction.currency}const{rate:t,currency:r}=this.resolvedExchangeRate;return this.usedInternationalBIN&&!!t&&r!==this.transaction.currency}},methods:{...It(ae,["savePaymentInstrument","setActiveChannel","setTransactionAmount"]),...It(Qt,["setCardChannelState"]),handleParentEvent({eventName:t,data:r}){this.$emit(t,r)},handleUseSavedCard(){if(this.$emit("setIsSavingNewCard",!1),this.canUseVaultSavedCards){this.setActiveChannel({name:"vault",view:"vault-payment-instruments"});return}return this.isUserRegisteredWithSavedCards?this.$emit("switch","saved_cards",{subView:"access_saved_cards"}):this.$emit("switch","saved_cards",{subView:"email_login"})},async onSubmit(){var a;const t=this.vaultChannelState.token||this.transaction.savedCardsToken,r=this.isSavedCardsEnabled&&this.isSavingNewCard&&!t,e={number:this.number,cvv:this.cvv,month:this.expiry.month,year:this.expiry.year},n=((a=this.cardHolderName)==null?void 0:a.trim())||"",s=ba.validate(e);if(s.isValid){const i={...e,...this.requiresCardHolderName&&{name:n}};this.processing=!0,this.savePaymentInstrument({card:i}),await this.transaction.setCard(i),this.rememberCard&&this.transaction.rememberCard(),r?this.sendSavedCardsOTP(this.isUserRegisteredWithSavedCards?null:this.savedCardsPhoneNumber,this.savedCardsEmail):(this.usedInternationalBIN&&this.setTransactionAmount(this.amountToPay,this.paymentCurrency),this.$emit("submit",{...this.isSavingNewCard&&t&&{save_transaction_card:!0},...this.usedInternationalBIN&&{selected_currency:this.paymentCurrency}}))}else{this.formSubmitAttempted=!0;const i=Object.keys(s.result).filter(o=>!s.result[o]).map(o=>"card ".concat(o));this.requiresCardHolderName&&!this.isCardHolderNameValid&&i.push("cardholder name"),Pd(i),this.transaction.logValidationErrors(i)}},onFocus(t){this.focusedInput=t},moveFocus(t,r){this.$nextTick(()=>{const e=this.focusedInput!==r;r&&e||this.$refs[t]&&this.$refs[t].focus()})},setLocalCardUnsupported(t){this.setCardChannelState({isLocalCardUnsupported:t})},setUsedInternationalBIN(t){var r,e;this.setCardChannelState({usedInternationalBIN:t}),t&&((r=this.transaction.exchangeRate)!=null&&r.rate)&&((e=this.transaction.exchangeRate)!=null&&e.rates)&&this.transaction.logTransactionCurrencySwitch({isUserAction:!1,currency:this.paymentCurrency})},setResolvedBinBank(t){this.setCardChannelState({resolvedBinBank:t})},setCardAsCanBeRemembered(t){this.cardCanBeRemembered=t,this.cardCanBeRemembered&&N8()},switchToTestCards(){this.$emit("switch","test_cards")},switchToRememberedCard(){this.$emit("switch","remembered_cards")},sendSavedCardsOTP(t,r){this.transaction.sendSavedCardsOTP({phone:t,email:r}),this.switchToSavedCardsOTPForm()},switchToSavedCardsOTPForm(){this.$emit("switch","saved_cards",{subView:"otp_form"})},onChecked(){this.rememberCard&&M8(),this.showHint=this.rememberCard},toggleHint(){this.showHint=!this.showHint},setCardType(t){this.cardType=t},setPaymentCurrency(t){var r,e;this.paymentCurrency=t,(e=(r=this.transaction).logTransactionCurrencySwitch)==null||e.call(r,{currency:t})},setInternationalCard(t){this.setCardChannelState({internationalCard:t})},setResolvingBin(t){this.resolvingBin=t},setPreChargeCheckLoading(t){this.preChargeCheckLoading=t},createPaymentRequest(){const t=[{supportedMethods:["basic-card"],data:{supportedNetworks:["visa","mastercard","amex","discover","diners","jcb","unionpay"]}}],{currency:r,merchant:e}=this.transaction,n=ys(this.transactionAmount),s={displayItems:[{label:"".concat(e.name," - Paystack"),amount:{currency:r,value:n}}],total:{label:"Amount",amount:{currency:r,value:n}}};return new PaymentRequest(t,s)},async canUsePaymentRequestAPI(){if(this.transaction.isTest||Vh||!(window!=null&&window.PaymentRequest))return!1;try{return await this.createPaymentRequest().canMakePayment()}catch(r){return!1}},async usePaymentRequestApi(){try{const r=await this.createPaymentRequest().show(),{details:{cardNumber:e,cardSecurityCode:n,expiryMonth:s,expiryYear:a,billingAddress:i}}=r,o={number:e,cvv:n,month:s,year:a};ba.validate(o).isValid?(await this.transaction.setCard(o),this.$emit("paymentRequestResult",r),i&&this.$emit("billingAddress",i),this.$emit("submit")):r.complete("fail")}catch(t){const r=t&&t.message||"Payment Request API error";Nd({channel:"card",message:r})}}}},MZ={id:"card-form","data-testid":"cardForm"},LZ={class:"row"},xZ={class:"col-12-sm"},OZ={class:"col-6-sm"},FZ={class:"col-6-sm"},DZ={class:"row"},VZ={class:"col-12-sm"},BZ={key:0,class:"remember-card"},UZ={class:"row"},HZ={class:"col-6-sm"},qZ={for:"remember_card",class:"remember-card__label"},WZ={class:"col-6-sm"},GZ={key:0,class:"row"},jZ={class:"remember-card__description"},ZZ={class:"pay-section"},KZ={key:0,"data-testid":"localCardUnavailableBanner",class:"local-card-unavailable-banner"};function YZ(t,r,e,n,s,a){const i=P("instructions"),o=P("card-number-input"),l=P("card-expiry-input"),d=P("card-cvv-input"),u=P("card-holder-name-input"),g=P("save-new-card-form"),y=P("payment-button"),w=P("transaction-currency-switcher"),k=P("warning-banner"),E=P("cancel-link");return f(),v("div",MZ,[m("form",{onSubmit:r[14]||(r[14]=jt((...R)=>a.onSubmit&&a.onSubmit(...R),["prevent"]))},[$(i,{message:t.$t("instructionMessage")},null,8,["message"]),m("div",LZ,[m("div",xZ,[$(o,{ref:"number",modelValue:s.number,"onUpdate:modelValue":r[0]||(r[0]=R=>s.number=R),modelModifiers:{trim:!0},onFocus:r[1]||(r[1]=R=>a.onFocus("number")),onComplete:r[2]||(r[2]=R=>a.moveFocus("expiry","number")),onSetUsedInternationalBIN:a.setUsedInternationalBIN,onSetLocalCardUnsupported:a.setLocalCardUnsupported,onSetResolvedBinBank:a.setResolvedBinBank,onSetCardAsCanBeRemembered:a.setCardAsCanBeRemembered,onSetPaymentCurrency:a.setPaymentCurrency,onSetInternationalCard:a.setInternationalCard,onSetResolvingBin:a.setResolvingBin,onSetPreChargeCheckLoading:a.setPreChargeCheckLoading,onCardType:a.setCardType,formSubmitAttempted:s.formSubmitAttempted},null,8,["modelValue","onSetUsedInternationalBIN","onSetLocalCardUnsupported","onSetResolvedBinBank","onSetCardAsCanBeRemembered","onSetPaymentCurrency","onSetInternationalCard","onSetResolvingBin","onSetPreChargeCheckLoading","onCardType","formSubmitAttempted"])])]),m("div",{class:pt(["row",{rtl:a.isRTL}])},[m("div",OZ,[$(l,{ref:"expiry",modelValue:s.expiry,"onUpdate:modelValue":r[3]||(r[3]=R=>s.expiry=R),modelModifiers:{trim:!0},onFocus:r[4]||(r[4]=R=>a.onFocus("expiry")),onComplete:r[5]||(r[5]=R=>a.moveFocus("cvv","expiry")),formSubmitAttempted:s.formSubmitAttempted},null,8,["modelValue","formSubmitAttempted"])]),m("div",FZ,[$(d,{ref:"cvv",cardType:s.cardType,modelValue:s.cvv,"onUpdate:modelValue":r[6]||(r[6]=R=>s.cvv=R),modelModifiers:{trim:!0},onFocus:r[7]||(r[7]=R=>a.onFocus("cvv")),onComplete:r[8]||(r[8]=R=>a.moveFocus("cardHolderName","cvv")),formSubmitAttempted:s.formSubmitAttempted},null,8,["cardType","modelValue","formSubmitAttempted"])])],2),ct(m("div",DZ,[m("div",VZ,[$(u,{ref:"cardHolderName",modelValue:s.cardHolderName,"onUpdate:modelValue":r[9]||(r[9]=R=>s.cardHolderName=R),onFocus:r[10]||(r[10]=R=>a.onFocus("cardHolderName")),formSubmitAttempted:s.formSubmitAttempted,required:a.requiresCardHolderName},null,8,["modelValue","formSubmitAttempted","required"])])],512),[[hr,a.requiresCardHolderName]]),$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[s.cardCanBeRemembered?(f(),v("div",BZ,[m("div",UZ,[m("div",HZ,[ct(m("input",{type:"checkbox",id:"remember_card",name:"rememberMeCheckbox","data-testid":"rememberMeCheckbox","onUpdate:modelValue":r[11]||(r[11]=R=>s.rememberCard=R),onChange:r[12]||(r[12]=(...R)=>a.onChecked&&a.onChecked(...R))},null,544),[[Vy,s.rememberCard]]),m("label",qZ,T(t.$t("rememberCard")),1)]),m("div",WZ,[m("a",{href:"#",class:"remember-card__link",onClick:r[13]||(r[13]=(...R)=>a.toggleHint&&a.toggleHint(...R))},T(t.$t("whatIsThis")),1)])]),$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[s.showHint?(f(),v("div",GZ,[m("div",jZ,T(t.$t("hintText")),1)])):D("",!0)]),_:1})])):D("",!0)]),_:1}),a.isSavedCardsEnabled?(f(),se(g,{key:0,onParentEvent:a.handleParentEvent,isSavingNewCard:e.isSavingNewCard},null,8,["onParentEvent","isSavingNewCard"])):D("",!0),m("div",ZZ,[$(y,{loading:s.processing||s.resolvingBin||s.preChargeCheckLoading,disabled:a.isPaymentButtonDisabled,"data-testid":"cardFormPaymentButton"},{default:ne(()=>[Be(T(t.$t("paymentInstruction",{amount:a.formattedAmount})),1)]),_:1},8,["loading","disabled"]),a.showCurrencySwitcher?(f(),se(w,{key:0,class:"transaction-currency-switcher",currency:s.paymentCurrency,card:a.internationalCard,onSetCurrency:a.setPaymentCurrency},null,8,["currency","card","onSetCurrency"])):D("",!0)]),$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[a.isCIVMerchant&&a.isLocalCardUnsupported?(f(),v("div",KZ,[$(k,null,{default:ne(()=>[Be(T(t.$t("localCardUnavailableMessage")),1)]),_:1})])):D("",!0)]),_:1})],32),a.canUseTestCards?(f(),se(E,{key:0,text:t.$t("useTestCard"),onClick:a.switchToTestCards},null,8,["text","onClick"])):D("",!0),a.canUseRememberedCard?(f(),se(E,{key:1,text:t.$t("payWithSavedCard"),onClick:a.switchToRememberedCard},null,8,["text","onClick"])):D("",!0),a.canUseSavedCards?(f(),se(E,{key:2,text:t.$t("useSavedCard"),onClick:a.handleUseSavedCard},null,8,["text","onClick"])):D("",!0)])}typeof Bv=="function"&&Bv(A6);const QZ=ee(A6,[["render",YZ],["__scopeId","data-v-b12d5e5e"]]);function Uv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Use any of the options below to test the payment flow"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},useAnotherCard:e=>{const{normalize:n}=e;return n(["Use another card"])},cards:{success:e=>{const{normalize:n}=e;return n(["Success"])},bankAuth:e=>{const{normalize:n}=e;return n(["Bank Authentication"])},declined:e=>{const{normalize:n}=e;return n(["Declined"])}}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Utiliser l'une des cartes de test ci-dessous pour effectuer ce paiement"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer ",s(a("amount"))])},useAnotherCard:e=>{const{normalize:n}=e;return n(["Utiliser une autre carte"])},cards:{success:e=>{const{normalize:n}=e;return n(["Réussi"])},bankAuth:e=>{const{normalize:n}=e;return n(["Autorisation de la banque"])},declined:e=>{const{normalize:n}=e;return n(["Refusé"])}}},ar:{instructionMessage:e=>{const{normalize:n}=e;return n(["استخدم أي من بطاقات التجريبية الموضحة فيما يلي لإتمام عملية الدفع"])},paymentInstruction:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ادفع ",s(a("amount"))])},useAnotherCard:e=>{const{normalize:n}=e;return n(["استخدم بطاقة أخرى"])},cards:{success:e=>{const{normalize:n}=e;return n(["النجاح"])},bankAuth:e=>{const{normalize:n}=e;return n(["مصادقة البنك"])},declined:e=>{const{normalize:n}=e;return n(["تم الرفض"])}}}}})}const z6={name:"TestCards",components:{Instructions:Et,CardLogo:o1,CancelLink:rn,PaymentButton:dt},data(){return{processing:!1,selectedCardIndex:null,cardData:["success","bank_auth","declined"].map(t=>({...ba.generateTestCard(t),name:t==="bank_auth"?"bankAuth":t}))}},emits:["submit","switch"],computed:{...we(ae,["transaction","transactionAmount"]),cards(){return this.cardData.map(t=>{const r=ba.getType(t.number).type;return Object.assign(t,{type:r})})},formattedAmount(){return Qn({amount:this.transactionAmount,currency:this.transaction.currency})}},methods:{async pay(){this.processing=!0;const t=this.cards[this.selectedCardIndex];await this.transaction.setCard(t),this.$emit("submit")},switchToCardForm(){this.$emit("switch","card_form")}}},JZ={id:"test-cards"},XZ={class:"cards"},eK=["onClick"],tK={class:"card__details"},nK={class:"card__details__select"},rK=["data-testid"],sK={class:"card__details__info"},aK={class:"card__number"},iK={class:"card__details__type"};function oK(t,r,e,n,s,a){const i=P("instructions"),o=P("card-logo"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",JZ,[$(i,{message:t.$t("instructionMessage")},null,8,["message"]),m("div",XZ,[(f(!0),v(gt,null,Ot(a.cards,(u,g)=>(f(),v("div",{class:pt(["card",{"card--is-active":g===s.selectedCardIndex,"card--disabled":s.processing}]),key:u.number,onClick:y=>s.selectedCardIndex=g},[m("div",tK,[m("div",nK,[m("div",{class:"card__select","data-testid":"testCard-"+g},null,8,rK)]),m("div",sK,[m("span",aK,T(t.$t("cards.".concat(u.name))),1)]),m("div",iK,[$(o,{type:u.type},null,8,["type"])])])],10,eK))),128))]),$(l,{"data-testid":"testCardsPaymentButton",disabled:s.selectedCardIndex===null,loading:s.processing,onClick:r[0]||(r[0]=u=>a.pay())},{default:ne(()=>[Be(T(t.$t("paymentInstruction",{amount:a.formattedAmount})),1)]),_:1},8,["disabled","loading"]),s.processing?D("",!0):(f(),se(d,{key:0,"data-testid":"test-cards-cancel-link",text:t.$t("useAnotherCard"),onClick:a.switchToCardForm},null,8,["text","onClick"]))])}typeof Uv=="function"&&Uv(z6);const lK=ee(z6,[["render",oK],["__scopeId","data-v-333bea60"]]),cK={name:"ThreeDSecure",components:{Redirect:U5},props:{url:{type:String,required:!0}},data(){return{chargeResponse:null}},emits:["cancel","callback"],computed:{...we(ae,["transaction"])},created(){this.listenForResponse()},methods:{...It(ae,["setIsRedirected"]),onCancel(){this.$emit("cancel")},onRedirectClosed(){this.$emit("callback",{status:"requery"})},listenFor3DSChargeCallback(t,r){t.status!=="error"&&(this.$emit("callback",t),this.setIsRedirected(!1),r())},listenForResponse(){this.transaction.listenFor3DSCharge(this.listenFor3DSChargeCallback)}}},uK={id:"three-d-secure"};function dK(t,r,e,n,s,a){const i=P("redirect");return f(),v("div",uK,[$(i,{type:"3DS",url:e.url,onCancel:a.onCancel,onClosed:a.onRedirectClosed},null,8,["url","onCancel","onClosed"])])}const hK=ee(cK,[["render",dK]]);function Hv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{submit:e=>{const{normalize:n}=e;return n(["Submit"])}},fr:{submit:e=>{const{normalize:n}=e;return n(["Soumettre"])}},ar:{submit:e=>{const{normalize:n}=e;return n(["إرسال"])}}}})}const R6={name:"CustomFieldForm",props:{message:{type:String},field:{type:Object}},components:{Instructions:Et,PaymentButton:dt,CancelLink:rn},data(){return{processing:!1,form:{[this.field.name]:""}}},emits:["submit","cancel"],computed:{inputType(){return this.field.type==="string"?"text":this.field.type}},methods:{submit(){this.processing=!0;const t={[this.field.name]:this.form[this.field.name]};this.$emit("submit",t)},cancel(){this.$emit("cancel")}}},mK={class:"row"},pK={class:"col-11-sm col-centered"},fK={class:"row"},_K={class:"col-7-sm"},gK=["type","name","pattern"],vK={class:"col-5-sm"};function yK(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("cancel-link");return f(),v("form",{onSubmit:r[1]||(r[1]=jt((...d)=>a.submit&&a.submit(...d),["prevent"])),class:"auth-form",autocomplete:"off"},[m("div",mK,[m("div",pK,[$(i,{message:e.message},null,8,["message"]),m("div",fK,[m("div",_K,[ct(m("input",{ref:"input",type:a.inputType,autocomplete:"off",class:"input input--lg input--centered",name:e.field.name,pattern:e.field.pattern,"onUpdate:modelValue":r[0]||(r[0]=d=>s.form[e.field.name]=d),"data-testid":"customFieldInput",required:""},null,8,gK),[[Uy,s.form[e.field.name]]])]),m("div",vK,[$(o,{disabled:!s.form[e.field.name],loading:s.processing,"data-testid":"submitCustomField"},{default:ne(()=>[Be(T(t.$t("submit")),1)]),_:1},8,["disabled","loading"])])]),s.processing?D("",!0):(f(),se(l,{key:0,onClick:a.cancel},null,8,["onClick"]))])])],32)}typeof Hv=="function"&&Hv(R6);const bK=ee(R6,[["render",yK]]);function qv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Enter your billing address to complete this payment"])},streetAddress:e=>{const{normalize:n}=e;return n(["Street address"])},zipCode:e=>{const{normalize:n}=e;return n(["ZIP CODE"])},completePayment:e=>{const{normalize:n}=e;return n(["Complete payment"])},state:e=>{const{normalize:n}=e;return n(["State"])},city:e=>{const{normalize:n}=e;return n(["City"])}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Entrez votre adresse de facturation pour effectuer ce paiement"])},streetAddress:e=>{const{normalize:n}=e;return n(["Adresse"])},zipCode:e=>{const{normalize:n}=e;return n(["CODE POSTAL"])},completePayment:e=>{const{normalize:n}=e;return n(["Effectuer le paiement"])},state:e=>{const{normalize:n}=e;return n(["État"])},city:e=>{const{normalize:n}=e;return n(["Ville"])}},ar:{instructionMessage:e=>{const{normalize:n}=e;return n(["أدخل عنوان الفواتير الخاص بك لإتمام عملية الدفع"])},streetAddress:e=>{const{normalize:n}=e;return n(["عنوان الشارع"])},zipCode:e=>{const{normalize:n}=e;return n(["الرمز البريدي"])},completePayment:e=>{const{normalize:n}=e;return n(["استكمال الدفع"])},state:e=>{const{normalize:n}=e;return n(["المحافظة"])},city:e=>{const{normalize:n}=e;return n(["المدينة"])}}}})}const P6={name:"AddressForm",components:{Instructions:Et,PaymentButton:dt,Loader:tn,CancelLink:rn},props:{billingAddress:{type:Object}},data(){return{address:"",zipCode:"",state:"",city:"",error:!1,processing:!1,allStates:[]}},async created(){try{this.billingAddress&&this.setBillingAddressData();const{data:{countryCode:t}}=this.lastResponse,r=await wo.fetch("states",{country:t});this.allStates=r.data}catch(t){this.$emit("callback",{status:"failed"})}},emits:["callback","submit","cancel"],computed:{...we(ae,["lastResponse"]),isIncomplete(){const{address:t,zipCode:r,state:e,city:n}=this;return!(t&&r&&e&&n)}},methods:{onSubmit(){const{address:t,zipCode:r,state:e,city:n}=this,s={address:t,zipCode:r,state:e,city:n};this.processing=!0,this.$emit("submit",s)},setBillingAddressData(){const{addressLine:t,city:r,region:e,postalCode:n}=this.billingAddress;this.address=t,this.city=r,this.state=e.toLowerCase(),this.zipCode=n},cancel(){this.$emit("cancel")}}},CK={class:"row"},wK={class:"col-12-sm"},kK={class:"form-group"},SK={class:"input-wrap"},EK={for:"street",class:"label label--floating"},TK={class:"row"},$K={class:"col-12-sm"},IK={class:"form-group"},AK={class:"input-wrap"},zK={for:"zipCodes",class:"label label--floating"},RK={class:"row"},PK={class:"col-6-sm"},NK={class:"form-group"},MK={class:"select-wrap"},LK={value:"",disabled:""},xK=["value"],OK={class:"col-6-sm"},FK={class:"form-group"},DK=["placeholder"],VK={class:"pay-section"};function BK(t,r,e,n,s,a){const i=P("loader"),o=P("instructions"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",null,[s.allStates.length===0?(f(),se(i,{key:0})):(f(),v("form",{key:1,onSubmit:r[4]||(r[4]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"])),class:"form"},[$(o,{message:t.$t("instructionMessage")},null,8,["message"]),m("div",CK,[m("div",wK,[m("div",kK,[m("div",SK,[ct(m("input",{"onUpdate:modelValue":r[0]||(r[0]=u=>s.address=u),ref:"input",type:"text",id:"street",class:pt(["input input--card",{"input--error":s.error}]),placeholder:"201 Stacks Street",required:"",autofocus:"","data-testid":"street-address"},null,2),[[Wt,s.address]]),m("label",EK,T(t.$t("streetAddress")),1)])])])]),m("div",TK,[m("div",$K,[m("div",IK,[m("div",AK,[ct(m("input",{"onUpdate:modelValue":r[1]||(r[1]=u=>s.zipCode=u),ref:"input",type:"text",id:"zipCodes",class:pt(["input input--card",{"input--error":s.error}]),placeholder:"12345",required:"",autofocus:"","data-testid":"zip-code"},null,2),[[Wt,s.zipCode]]),m("label",zK,T(t.$t("zipCode")),1)])])])]),m("div",RK,[m("div",PK,[m("div",NK,[m("div",MK,[ct(m("select",{ref:"state",name:"state",class:"select","onUpdate:modelValue":r[2]||(r[2]=u=>s.state=u),"data-testid":"state"},[m("option",LK,T(t.$t("state")),1),(f(!0),v(gt,null,Ot(s.allStates,u=>(f(),v("option",{key:u.abbreviation,value:u.abbreviation},T(u.name),9,xK))),128))],512),[[ks,s.state]]),r[5]||(r[5]=m("div",{class:"select-icon"},null,-1))])])]),m("div",OK,[m("div",FK,[ct(m("input",{"onUpdate:modelValue":r[3]||(r[3]=u=>s.city=u),ref:"input",type:"text",class:pt(["input",{"input--error":s.error}]),placeholder:t.$t("city"),required:"",autofocus:"","data-testid":"city"},null,10,DK),[[Wt,s.city]])])])]),m("div",VK,[$(l,{loading:s.processing,disabled:a.isIncomplete,"data-testid":"complete-payment"},{default:ne(()=>[Be(T(t.$t("completePayment")),1)]),_:1},8,["loading","disabled"])]),s.processing?D("",!0):(f(),se(d,{key:0,onClick:a.cancel},null,8,["onClick"]))],32))])}typeof qv=="function"&&qv(P6);const UK=ee(P6,[["render",BK]]),HK="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%2018C13.9585%2018%2018%2013.9585%2018%209C18%204.04149%2013.9585%200%209%200C4.04149%200%200%204.04149%200%209C0%2013.9585%204.04149%2018%209%2018ZM9%201.25902C13.2591%201.25902%2016.741%204.72549%2016.741%209C16.741%2013.2745%2013.2745%2016.741%209%2016.741C4.72549%2016.741%201.25902%2013.2591%201.25902%209C1.25902%204.74087%204.74087%201.25902%209%201.25902Z'%20fill='%23000'/%3e%3cpath%20d='M5.47118%209.54381H12.5128C12.8702%209.54381%2013.15%209.26399%2013.15%208.90661C13.15%208.54923%2012.8702%208.26941%2012.5128%208.26941H5.47118C5.1138%208.26941%204.83398%208.54923%204.83398%208.90661C4.83398%209.26399%205.12918%209.54381%205.47118%209.54381Z'%20fill='%23000'/%3e%3c/svg%3e";function Wv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{cardDescription:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("type"))," ending in"])},forgetCard:e=>{const{normalize:n}=e;return n(["Forget Card"])},cardIcon:e=>{const{normalize:n}=e;return n(["Card Icon"])},deleteCard:e=>{const{normalize:n}=e;return n(["Delete Card"])}},fr:{cardDescription:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("type"))," se terminant par"])},forgetCard:e=>{const{normalize:n}=e;return n(["Oublier cette carte"])},cardIcon:e=>{const{normalize:n}=e;return n(["Icône de la Carte"])},deleteCard:e=>{const{normalize:n}=e;return n(["Supprimer cette carte"])}},ar:{cardDescription:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ينتهي ب ",s(a("type"))])},forgetCard:e=>{const{normalize:n}=e;return n(["حذف البطاقة"])},cardIcon:e=>{const{normalize:n}=e;return n(["أيقونة البطاقة (نص بديل)"])},deleteCard:e=>{const{normalize:n}=e;return n(["حذف البطاقة"])}}}})}const N6={name:"RememberedCard",props:{active:{type:Boolean,default:!1},type:{type:String},last4:{type:String},deleting:{type:Boolean}},data(){return{isDeleteOpen:!1}},emits:["click","delete"],methods:{onClick(){this.isDeleteOpen?this.hideDelete():this.$emit("click")},showDelete(){this.isDeleteOpen=!0},hideDelete(){this.isDeleteOpen=!1},deleteCard(){this.$emit("delete")}}},qK={class:"card__icon"},WK=["alt"],GK=["alt"],jK={class:"card__description"},ZK=["alt"],KK={key:0,class:"spinner"},YK={key:1};function QK(t,r,e,n,s,a){return f(),v("div",{class:pt(["card",{active:e.active,delete:s.isDeleteOpen}])},[m("div",{class:"card__details",onClick:r[1]||(r[1]=(...i)=>a.onClick&&a.onClick(...i))},[m("div",qK,[$(rt,{name:"fade"},{default:ne(()=>[e.active?(f(),v("img",{key:"active",src:a5,alt:t.$t("cardIcon")},null,8,WK)):(f(),v("img",{key:"inactive",src:s5,alt:t.$t("cardIcon")},null,8,GK))]),_:1})]),m("span",jK,[Be(T(t.$t("cardDescription",{type:e.type}))+" ",1),m("em",null,T(e.last4),1)]),m("button",{class:"card__delete-button",onClick:r[0]||(r[0]=jt((...i)=>a.showDelete&&a.showDelete(...i),["stop"]))},[m("img",{src:HK,alt:t.$t("deleteCard")},null,8,ZK)])]),m("button",{class:"card__confirm-delete",ref:"deleteButton",onClick:r[2]||(r[2]=i=>a.deleteCard())},[e.deleting?(f(),v("span",KK)):(f(),v("span",YK,T(t.$t("forgetCard")),1))],512)],2)}typeof Wv=="function"&&Wv(N6);const JK=ee(N6,[["render",QK],["__scopeId","data-v-93598026"]]);function Gv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{continue:e=>{const{normalize:n}=e;return n(["Continue"])},singleCardInstructionMessage:e=>{const{normalize:n}=e;return n(["Continue this payment with your saved card"])},multipleCardsInstructionMessage:e=>{const{normalize:n}=e;return n(["Choose one of your saved cards to continue this payment"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Or pay with another card"])}},fr:{continue:e=>{const{normalize:n}=e;return n(["Continuer"])},singleCardInstructionMessage:e=>{const{normalize:n}=e;return n(["Continuer ce paiement avec votre carte enregistrée"])},multipleCardsInstructionMessage:e=>{const{normalize:n}=e;return n(["Choisir l'une de vos cartes enregistrées pour continuer ce paiement"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Ou payer avec une autre carte"])}},ar:{continue:e=>{const{normalize:n}=e;return n(["استمرار"])},singleCardInstructionMessage:e=>{const{normalize:n}=e;return n(["أكمل عملية الدفع باستخدام البطاقة المحفوظة"])},multipleCardsInstructionMessage:e=>{const{normalize:n}=e;return n(["اختر إحدى البطاقات المحفوظة لمواصلة عملية الدفع"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["أو ادفع ببطاقة أخرى"])}}}})}const M6={name:"RememberedCards",components:{RememberedCard:JK,PaymentButton:dt,Instructions:Et,CancelLink:rn},props:{loading:{type:Boolean,default:!1}},data(){return{selected:null,deletingCard:!1,capitalize:e1}},emits:["cancel","selectedCard"],computed:{...we(ae,["transaction"]),hasRememberedCards(){return this.transaction&&this.transaction.authorizations&&this.transaction.authorizations.length>0},rememberedCards(){return this.transaction&&this.transaction.authorizations}},methods:{...It(ae,["deleteRememberedCard"]),getLast4(t){return t.substring(t.lastIndexOf(" ")+1)},selectCard(t){this.selected=t},cancel(){this.$emit("cancel")},authorizePayment(){const t=this.rememberedCards&&this.rememberedCards[this.selected];t&&this.$emit("selectedCard",t)},async deleteCard(t){try{const{id:r}=this.rememberedCards&&this.rememberedCards[t];this.deletingCard=!0;const e=await this.transaction.forgetRememberedCard(r);e&&e.status==="success"&&(this.deleteRememberedCard(r),x8(),this.hasRememberedCards||this.$emit("cancel"),this.deletingCard=!1)}catch(r){this.deletingCard=!1}}}},XK={key:2,class:"cards"};function eY(t,r,e,n,s,a){const i=P("instructions"),o=P("remembered-card"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",null,[a.rememberedCards&&a.rememberedCards.length>1?(f(),se(i,{key:0,message:t.$t("multipleCardsInstructionMessage")},null,8,["message"])):(f(),se(i,{key:1,message:t.$t("singleCardInstructionMessage")},null,8,["message"])),a.rememberedCards?(f(),v("div",XK,[(f(!0),v(gt,null,Ot(a.rememberedCards,(u,g)=>(f(),se(o,{key:u.id,active:s.selected===g,type:s.capitalize(u.brand),last4:a.getLast4(u.description),onClick:y=>a.selectCard(g),onDelete:y=>a.deleteCard(g),deleting:s.deletingCard},null,8,["active","type","last4","onClick","onDelete","deleting"]))),128))])):D("",!0),$(l,{disabled:s.selected==null,loading:e.loading,onClick:a.authorizePayment},{default:ne(()=>[Be(T(t.$t("continue")),1)]),_:1},8,["disabled","loading","onClick"]),$(d,{text:t.$t("payWithAnotherCard"),onClick:r[0]||(r[0]=u=>a.cancel())},null,8,["text"])])}typeof Gv=="function"&&Gv(M6);const tY=ee(M6,[["render",eY]]);function jv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{message:e=>{const{normalize:n}=e;return n(["Choose one of your saved cards to continue this payment"])},endingIn:e=>{const{normalize:n}=e;return n(["ending in"])},pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Pay with another card"])}},fr:{message:e=>{const{normalize:n}=e;return n(["Choisissez une de vos cartes enregistrées pour continuer ce paiement"])},endingIn:e=>{const{normalize:n}=e;return n(["se terminant par"])},pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer ",s(a("amount"))])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Payer avec une autre carte"])}},ar:{message:e=>{const{normalize:n}=e;return n(["اختر إحدى بطاقاتك المحفوظة لمواصلة هذه الدفعة"])},endingIn:e=>{const{normalize:n}=e;return n(["تنتهي ب"])},pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("amount"))," ادفع"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["حاول باستخدام بطاقة أخرى"])}}}})}const L6={name:"SavedCardsList",components:{Loader:tn,CardLogo:o1,CancelLink:rn,Instructions:Et,PaymentButton:dt,TransactionCurrencySwitcher:r1},data(){return{cards:[],processing:!1,selectedCard:null,fetchingCards:!0,hasSelectedInternationalCard:!1,selectedInternationalCard:{currency:"",countryCode:""},paymentCurrency:""}},props:{phoneNumber:String},emits:["switch","parentEvent","cancel"],computed:{...we(ae,["transaction","transactionAmount"]),resolvedExchangeRate(){return Oi(this.transaction,this.selectedInternationalCard)},amountToPay(){return this.paymentCurrency&&this.paymentCurrency!==this.transaction.currency?t1(this.resolvedExchangeRate.rate,this.transactionAmount):this.transactionAmount},showCurrencySwitcher(){const{rate:t,currency:r}=this.resolvedExchangeRate;return this.hasSelectedInternationalCard&&!!t&&r!==this.transaction.currency},formattedAmount(){const t=this.paymentCurrency||this.transaction.currency;return Qn({currency:t,amount:this.amountToPay})}},mounted(){this.fetchSavedCards()},methods:{sendEventToGrandParent(t,r){this.$emit("parentEvent",{eventName:t,data:r})},removeCard(t){this.$emit("switch","remove_card",{card:t}),kr.cardsList.clickedDeleteCard()},setPaymentCurrency(t){var r,e;this.paymentCurrency=t,(e=(r=this.transaction).logTransactionCurrencySwitch)==null||e.call(r,{currency:t})},charge(){this.processing=!0,this.sendEventToGrandParent("submit",{cardCode:this.selectedCard,...this.hasSelectedInternationalCard&&{selected_currency:this.paymentCurrency}}),kr.cardsList.clickedPayWithExistingCard()},cancel(){this.$emit("cancel"),this.sendEventToGrandParent("setIsSavingNewCard",!0),kr.cardsList.clickedPayWithAnotherCard()},async setSelectedCard({code:t,country_code:r,currency:e}){this.selectedCard=t,this.hasSelectedInternationalCard=n1(this.transaction,{currency:e,countryCode:r}),this.selectedInternationalCard={currency:e||"",countryCode:r||""},this.paymentCurrency=this.hasSelectedInternationalCard?Oi(this.transaction,this.selectedInternationalCard).currency:this.transaction.currency,await this.transaction.logSavedCardSelect(),kr.cardsList.selectedSavedCard()},async fetchSavedCards(){try{const{data:t}=await this.transaction.getSavedCards();this.fetchingCards=!1,this.cards=t,t.length===0&&this.$emit("switch","no_saved_cards"),this.cards.length===1&&this.setSelectedCard(this.cards[0])}catch(t){this.sendEventToGrandParent("setIsSavingNewCard",!1),await this.transaction.sendSavedCardsOTP(),this.$emit("switch","otp_form")}}}},nY={class:"row"},rY={key:1,class:"col-centered"},sY={class:"cards"},aY=["data-testid","onClick"],iY={class:"card__details"},oY={class:"card__logo"},lY={class:"card__details__info"},cY={class:"card__number"},uY={class:"card__type"},dY=["onClick"],hY={class:"pay-section"};function mY(t,r,e,n,s,a){const i=P("loader"),o=P("instructions"),l=P("card-logo"),d=P("payment-button"),u=P("transaction-currency-switcher"),g=P("cancel-link");return f(),v("div",nY,[s.fetchingCards?(f(),se(i,{key:0})):D("",!0),s.fetchingCards?D("",!0):(f(),v("div",rY,[$(o,{message:t.$t("message")},null,8,["message"]),m("div",sY,[(f(!0),v(gt,null,Ot(s.cards,y=>(f(),v("div",{class:pt(["card",{"card--disabled":s.processing,"card--is-active":y.code===s.selectedCard}]),key:y.code,"data-testid":"card-".concat(y.code),onClick:w=>a.setSelectedCard(y)},[m("div",iY,[m("div",oY,[$(l,{type:y.brand},null,8,["type"])]),m("div",lY,[m("span",cY,[m("span",uY,T(y.brand),1),Be(" "+T(t.$t("endingIn"))+" "+T(y.last4),1)])]),m("button",{type:"button","aria-label":"Remove card",class:"card__remove",onClick:w=>a.removeCard(y)},[...r[0]||(r[0]=[Ny('',1)])],8,dY)])],10,aY))),128))]),m("div",hY,[$(d,{"data-testid":"savedCardsListPaymentButton",loading:s.processing,disabled:!s.selectedCard,onClick:a.charge},{default:ne(()=>[Be(T(t.$t("pay",{amount:a.formattedAmount})),1)]),_:1},8,["loading","disabled","onClick"]),a.showCurrencySwitcher?(f(),se(u,{key:0,class:"transaction-currency-switcher",currency:s.paymentCurrency,card:s.selectedInternationalCard,onSetCurrency:a.setPaymentCurrency},null,8,["currency","card","onSetCurrency"])):D("",!0),$(g,{text:t.$t("payWithAnotherCard"),onClick:a.cancel},null,8,["text","onClick"])])]))])}typeof jv=="function"&&jv(L6);const pY=ee(L6,[["render",mY],["__scopeId","data-v-aa44c562"]]),fY="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23FF9400'%20d='M28.03%2033.92h-16c-1.1%200-2-.9-2-2V13.35h20v18.57c0%201.1-.9%202-2%202Z'/%3e%3cpath%20fill='%23E9623B'%20d='M27.31%209.23V7.87c0-1.1-.9-2-2-2H14.63c-1.1%200-2%20.9-2%202v1.36H7.85v4.66h24.24V9.23h-4.78ZM16.65%207.46h6.64c.55%200%201%20.45%201%201v.77h-8.64v-.77c0-.55.45-1%201-1Z'/%3e%3cpath%20fill='%23FFCE00'%20d='M16.22%2018.71a1.68%201.68%200%200%200-3.36%200v10.36a1.68%201.68%200%201%200%203.36%200V18.71ZM21.71%2018.71a1.68%201.68%200%200%200-3.36%200v10.36a1.68%201.68%200%201%200%203.36%200V18.71ZM27.2%2018.71a1.68%201.68%200%200%200-3.36%200v10.36a1.68%201.68%200%201%200%203.36%200V18.71Z'/%3e%3c/svg%3e";function Zv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{message:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Removing your ",s(a("cardBrand"))," card ",s(a("cardLastFourDigits"))," means you won't be able to pay with it without entering its details again"])},removeCard:e=>{const{normalize:n}=e;return n(["Remove card"])},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])}},fr:{message:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Supprimer votre carte ",s(a("cardBrand"))," ",s(a("cardLastFourDigits"))," signifie que vous ne pourrez pas payer avec elle sans entrer à nouveau ses détails"])},removeCard:e=>{const{normalize:n}=e;return n(["Supprimer la carte"])},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])}},ar:{message:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["إن إزالة بطاقة ",s(a("cardBrand"))," الخاصة بك ",s(a("cardLastFourDigits"))," يعني أنك لن تتمكن من الدفع بها دون إدخال تفاصيلها مرة أخرى"])},removeCard:e=>{const{normalize:n}=e;return n(["إزالة البطاقة"])},cancel:e=>{const{normalize:n}=e;return n(["إلغاء"])}}}})}const x6={name:"RemoveSavedCard",props:{card:{type:Object,required:!0}},data(){return{processing:!1}},components:{CancelLink:rn,Instructions:Et,PaymentButton:dt},emits:["switchToCardList"],computed:{...we(ae,["transaction"])},methods:{async removeCard(){try{this.processing=!0,await this.transaction.deleteSavedCard(this.card.code),this.processing=!1,this.switchToCardList()}catch(t){this.processing=!1}},switchToCardList(){this.$emit("switchToCardList")}}},_Y={class:"row"},gY={class:"col-10-sm col-centered"},vY={class:"icon-wrapper"},yY=["alt"],bY={class:"pay-section"};function CY(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("cancel-link");return f(),v("div",_Y,[m("div",gY,[m("div",vY,[m("img",{src:fY,alt:t.$t("removeCard")},null,8,yY)])]),$(i,{message:t.$t("message",{cardBrand:e.card.brand,cardLastFourDigits:e.card.last4})},null,8,["message"]),m("div",bY,[$(o,{"data-testid":"remove-saved-card",loading:s.processing,class:"button--delete",onClick:a.removeCard},{default:ne(()=>[Be(T(t.$t("removeCard")),1)]),_:1},8,["loading","onClick"]),$(l,{text:t.$t("cancel"),disabled:s.processing,onClick:a.switchToCardList},null,8,["text","disabled","onClick"])])])}typeof Zv=="function"&&Zv(x6);const wY=ee(x6,[["render",CY],["__scopeId","data-v-0aa37b78"]]),O6=(t,r)=>{var n,s;const e=((s=(n=t.response)==null?void 0:n.data)==null?void 0:s.message)||t.message;return e.toLowerCase()==="otp could not be sent"?r("otpNotSent"):e},F6="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23FF9400'%20d='M32.09%205.91H7.91a2%202%200%200%200-2%202v24.18a2%202%200%200%200%202%202h24.18a2%202%200%200%200%202-2V7.91a2%202%200%200%200-2-2Z'/%3e%3cpath%20fill='%23E9623B'%20d='M20%2021.01a4.7%204.7%200%201%200%200-9.4%204.7%204.7%200%200%200%200%209.4Z'/%3e%3cpath%20fill='%23E9623B'%20d='M24.7%2028.39h-9.4l3.02-11.06h3.36l3.02%2011.06Z'/%3e%3cpath%20fill='%23FFCE00'%20d='M33.72%2010.55c-2.5%200-4.61%201.59-5.41%203.81h-8.24c-1.07%200-1.94.87-1.94%201.94%200%201.07.87%201.94%201.94%201.94h8.24c.8%202.22%202.92%203.81%205.41%203.81a5.75%205.75%200%200%200%205.75-5.75c0-3.17-2.58-5.75-5.75-5.75Z'/%3e%3cpath%20fill='%23E9623B'%20d='M35.89%2018.06a1.75%201.75%200%201%200%200-3.5%201.75%201.75%200%200%200%200%203.5Z'/%3e%3c/svg%3e";function Kv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{message:e=>{const{normalize:n}=e;return n(["Access cards you saved to"])},continue:e=>{const{normalize:n}=e;return n(["Access saved cards"])},retry:e=>{const{normalize:n}=e;return n(["Retry and access saved cards"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Pay with another card"])},change:e=>{const{normalize:n}=e;return n(["change"])},info:e=>{const{normalize:n}=e;return n(["An OTP will be sent to the registered phone number"])},otpNotSent:e=>{const{normalize:n}=e;return n(["OTP failed, can’t access saved cards"])}},fr:{message:e=>{const{normalize:n}=e;return n(["Accédez aux cartes enregistrées sur"])},continue:e=>{const{normalize:n}=e;return n(["Accédez aux cartes enregistrées"])},retry:e=>{const{normalize:n}=e;return n(["Réessayez et accédez aux cartes enregistrées"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Payer avec une autre carte"])},change:e=>{const{normalize:n}=e;return n(["Modifier"])},info:e=>{const{normalize:n}=e;return n(["Un code sera envoyé au numéro de téléphone enregistré"])},otpNotSent:e=>{const{normalize:n}=e;return n(["Échec de l’envoi du code, impossible d’accéder aux cartes enregistrées"])}},ar:{message:e=>{const{normalize:n}=e;return n(["بطاقات الوصول المحفوظة في"])},continue:e=>{const{normalize:n}=e;return n(["الوصول إلى بطاقاتك المحفوظة"])},retry:e=>{const{normalize:n}=e;return n(["أعد المحاولة وادخل إلى البطاقات المحفوظة"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["حاول باستخدام بطاقة أخرى"])},change:e=>{const{normalize:n}=e;return n(["تغيير"])},info:e=>{const{normalize:n}=e;return n(["سيتم إرسال كلمة مرور لمرة واحدة (OTP) إلى رقم الهاتف المسجل"])},otpNotSent:e=>{const{normalize:n}=e;return n(["فشل إرسال الرمز، لا يمكن الوصول إلى البطاقات المحفوظة"])}}}})}const D6={name:"AccessSavedCards",components:{CancelLink:rn,PaymentButton:dt},data(){return{errorMessage:null,processing:!1}},emits:["cancel","switch"],computed:{...we(ae,["transaction"]),buttonText(){return this.errorMessage?this.$t("retry"):this.$t("continue")}},methods:{cancel(){this.$emit("cancel"),kr.accessSavedCards.clickedPayWithAnotherCard()},changeEmail(){this.$emit("switch","email_login")},async switchToOTPForm(){this.errorMessage=null,this.processing=!0;try{await this.transaction.sendSavedCardsOTP(),kr.accessSavedCards.clickedAccessSavedCards(),this.$emit("switch","otp_form")}catch(t){this.errorMessage=O6(t,this.$t)}finally{this.processing=!1}}}},kY={class:"row"},SY={class:"col-10-sm col-centered"},EY={class:"message"},TY={class:"change-button-email"},$Y={class:"change-button-action"},IY={key:0,class:"error"},AY={class:"pay-section"},zY={class:"info"};function RY(t,r,e,n,s,a){const i=P("payment-button"),o=P("cancel-link");return f(),v("div",kY,[m("div",SY,[r[1]||(r[1]=m("div",{class:"icon-wrapper"},[m("img",{src:F6,alt:""})],-1)),m("p",EY,T(t.$t("message")),1),m("button",{class:"change-button",onClick:r[0]||(r[0]=(...l)=>a.changeEmail&&a.changeEmail(...l)),"data-testid":"change-saved-cards-profile"},[m("span",TY,T(t.transaction.email),1),m("span",$Y,T(t.$t("change")),1)]),s.errorMessage?(f(),v("p",IY,T(s.errorMessage),1)):D("",!0),m("div",AY,[$(i,{"data-testid":"access-saved-cards-button",loading:s.processing,onClick:a.switchToOTPForm},{default:ne(()=>[Be(T(a.buttonText),1)]),_:1},8,["loading","onClick"])]),$(o,{text:t.$t("payWithAnotherCard"),onClick:a.cancel},null,8,["text","onClick"]),m("p",zY,T(t.$t("info")),1)])])}typeof Kv=="function"&&Kv(D6);const PY=ee(D6,[["render",RY],["__scopeId","data-v-c9dee1cf"]]),NY="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23FF9400'%20d='M38%2012.19H2a2%202%200%200%200-2%202v13.93a2%202%200%200%200%202%202h36a2%202%200%200%200%202-2V14.19a2%202%200%200%200-2-2Z'/%3e%3cpath%20fill='%23E9623B'%20d='m26.12%2026.31-2.41-1.75%203.23-4.44-5.22-1.69.92-2.83.35-1.07-2.33.59-1.27%203.9%205.22%201.69-3.23%204.44%203.32%202.41%202.33-.59-.91-.66ZM28.2%2016.23v-6.2l-1.81.59v5.02l1.81.59ZM29.07%2024.16l2.08%203.4%202.33-.59-3.23-4.44-1.18%201.63Z'/%3e%3cpath%20fill='%23FFCE00'%20d='m38.79%2018.43-1.27-3.9-5.22%201.7v-6.2h-4.1v6.2l-5.21-1.7-1.27%203.9%205.22%201.69-3.23%204.44%203.32%202.41%203.22-4.44%203.23%204.44%203.31-2.41-3.22-4.44%205.22-1.69Z'/%3e%3cpath%20fill='%23E9623B'%20d='m8.47%2026.31-2.41-1.75%203.22-4.44-5.22-1.69.93-2.83.34-1.07-2.33.59-1.27%203.9%205.22%201.69-3.22%204.44%203.31%202.41%202.33-.59-.9-.66ZM10.55%2016.23v-6.2l-1.81.59v5.02l1.81.59ZM11.42%2024.16l2.07%203.4%202.33-.59-3.22-4.44-1.18%201.63Z'/%3e%3cpath%20fill='%23FFCE00'%20d='m21.13%2018.43-1.26-3.9-5.22%201.7v-6.2h-4.1v6.2l-5.22-1.7-1.27%203.9%205.22%201.69-3.22%204.44%203.31%202.41%203.23-4.44%203.22%204.44%203.32-2.41-3.22-4.44%205.21-1.69Z'/%3e%3c/svg%3e";function Yv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{verifyOtp:e=>{const{normalize:n}=e;return n(["Verify OTP"])},pinFormMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Enter the one-time password (OTP) sent to ",s(a("phoneNumber"))," to verify it"])},pinFormGenericMessage:e=>{const{normalize:n}=e;return n(["Enter the one-time password (OTP) sent to your phone to verify it"])},skipOtp:e=>{const{normalize:n}=e;return n(["Skip OTP and pay"])},cardWillNotBeSaved:e=>{const{normalize:n}=e;return n(["Your card will not be saved"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Resend OTP via SMS and WhatsApp in"])},resendWhatsappMessage:e=>{const{normalize:n}=e;return n(["Resend OTP via WhatsApp"])},resendOtp:e=>{const{normalize:n}=e;return n(["Resend OTP via SMS and WhatsApp"])},otpIncorrect:e=>{const{normalize:n}=e;return n(["Incorrect OTP. Please retry with the correct OTP."])}},fr:{verifyOtp:e=>{const{normalize:n}=e;return n(["Verifier le code"])},pinFormMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Saisissez le code (OTP) envoyé au ",s(a("phoneNumber"))," pour le vérifier"])},skipOtp:e=>{const{normalize:n}=e;return n(["Ignorer le code et payer"])},cardWillNotBeSaved:e=>{const{normalize:n}=e;return n(["Votre carte ne sera pas enregistrée"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Envoyer à nouveau le code dans"])},resendOtp:e=>{const{normalize:n}=e;return n(["Envoyer à nouveau le code"])},otpIncorrect:e=>{const{normalize:n}=e;return n(["Mot de passe incorrect. Veuillez réessayer avec le bon mot de passe"])}},ar:{verifyOtp:e=>{const{normalize:n}=e;return n(["التحقق من الرقم السري المتغير (OTP)"])},pinFormMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["أدخل الرقم السري المتغير (OTP) المرسل إلى ",s(a("phoneNumber"))," للتحقق"])},skipOtp:e=>{const{normalize:n}=e;return n(["تخطي الرقم السري المتغير (OTP) والدفع"])},cardWillNotBeSaved:e=>{const{normalize:n}=e;return n(["لن يتم حفظ بطاقتك"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["إعادة إرسال الرقم السري المتغير (OTP) في "])},resendOtp:e=>{const{normalize:n}=e;return n(["إعادة إرسال الرقم السري المتغير (OTP)"])},otpIncorrect:e=>{const{normalize:n}=e;return n(["رقم التعريف الشخصي المؤقت (OTP) غير صحيح. يرجي اعاده المحاوله باستخدام OTP الصحيحه."])}}}})}const Qv={countdownDurationInSeconds:60,retries:{0:{text:"resendOtp",countdownTimerMessage:"",channels:[]},1:{text:"resendOtp",countdownTimerMessage:"countdownTimerMessage",channels:["whatsapp"]},2:{text:"skipOtp",countdownTimerMessage:"skipOtp",channels:["sms","whatsapp"]}}},V6={name:"SavedCardOtpForm",components:{Loader:tn,OtpInput:v9,Countdown:Ss,CancelLink:rn,Instructions:Et},props:{email:String,phoneNumber:String,isSavingNewCard:Boolean},data(){return{otp:"",processing:!1,otpErrorMessage:"",numberOfOTPResent:0,showCountdownTimer:!1,countdownDuration:Qv.countdownDurationInSeconds,countdownMessage:"",sendMessage:"resendWhatsappMessage"}},emits:["cancel","switch","submit","parentEvent"],computed:{...we(ae,["transaction"]),canResendOTP(){return this.numberOfOTPResent<2&&!this.showCountdownTimer&&!this.canSkipAndPayWithCard},canSkipAndPayWithCard(){return this.numberOfOTPResent===2&&!this.showCountdownTimer},instructionMessage(){var e;const t=(e=this.transaction.savedCardsConfig)==null?void 0:e.registered_phone;let r="";return this.phoneNumber?r=mr(this.phoneNumber).formatNational():t&&(r="**** *** **".concat(t)),r?this.$t("pinFormMessage",{phoneNumber:r}):this.$t("pinFormGenericMessage")}},watch:{otp(t){this.otpErrorMessage="";const r=Ju(t);t.length===4&&r?this.verifyOTP(t):t.length===4&&!r&&(this.otpErrorMessage=this.$t("otpIncorrect"))}},methods:{cancel(){this.$emit("cancel"),kr.enterOtp.clickedCancel()},sendEventToGrandParent(t,r){this.$emit("parentEvent",{eventName:t,data:r})},skipOtpAndPay(){this.processing=!0,this.sendEventToGrandParent("submit")},hideCountdownTimer(){this.showCountdownTimer=!1},async sendOtp(){this.showCountdownTimer=!0,this.otpErrorMessage="",this.numberOfOTPResent++;const t=Qv.retries[this.numberOfOTPResent];this.countdownMessage=t.countdownTimerMessage,this.sendMessage=t.text,await this.transaction.sendSavedCardsOTP({phone:this.phoneNumber,channels:t.channels,email:this.email}),kr.enterOtp.clickedResendOtp()},async verifyOTP(t){try{this.processing=!0,await this.transaction.verifySavedCardsOtp({code:t}),this.processing=!1,this.$emit("switch",this.isSavingNewCard?"phone_number_verified":"cards_list")}catch({response:r}){this.processing=!1;const e=r==null?void 0:r.data;this.otpErrorMessage=e==null?void 0:e.message}}}},MY={class:"verify-otp-form row"},LY={class:"col-10-sm col-centered"},xY={class:"icon-wrapper"},OY=["alt"],FY={key:1},DY={key:0,class:"otp-error"},VY={class:"otp-error__message"},BY={key:2,class:"countdown-wrapper"},UY={width:"38px",height:"38px",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},HY={ref:"countdownIndicatorElement",cx:"50",cy:"50",r:"44",fill:"transparent",stroke:"#909090","stroke-width":"12"},qY={class:"countdown-otp-action"},WY={class:"countdown-otp-action"},GY={class:"skip-otp-message"};function jY(t,r,e,n,s,a){const i=P("instructions"),o=P("loader"),l=P("otp-input"),d=P("countdown"),u=P("cancel-link");return f(),v("div",MY,[m("div",LY,[m("div",xY,[m("img",{width:"40px",src:NY,alt:t.$t("verifyOtp")},null,8,OY)]),$(i,{message:a.instructionMessage},null,8,["message"]),s.processing?(f(),se(o,{key:0})):D("",!0),s.processing?D("",!0):(f(),v("div",FY,[$(l,{modelValue:s.otp,"onUpdate:modelValue":r[0]||(r[0]=g=>s.otp=g)},null,8,["modelValue"]),s.otpErrorMessage?(f(),v("div",DY,[m("span",VY,T(s.otpErrorMessage),1)])):D("",!0),s.showCountdownTimer?(f(),se(d,{key:1,countdownDuration:s.countdownDuration,countdownTimerMessage:t.$t(s.countdownMessage),onCountdownComplete:a.hideCountdownTimer},null,8,["countdownDuration","countdownTimerMessage","onCountdownComplete"])):D("",!0),!s.showCountdownTimer||a.canSkipAndPayWithCard?(f(),v("div",BY,[(f(),v("svg",UY,[m("circle",HY,null,512),r[3]||(r[3]=m("path",{class:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.41176 0.5H10.5882C11.3679 0.5 12 1.09695 12 1.83333V7.16667C12 7.90305 11.3679 8.5 10.5882 8.5H4.94118L2.82353 10.5V8.5H1.41176C0.632069 8.5 0 7.90305 0 7.16667V1.83333C0 1.09695 0.632069 0.5 1.41176 0.5ZM3.86065 3.78941L4.06865 4.43008L3.21132 4.70875L3.74132 5.43741L3.19665 5.83341L2.66665 5.10408L2.13665 5.83341L1.59198 5.43741L2.12198 4.70875L1.26465 4.43008L1.47265 3.78941L2.32998 4.06808V3.16675H3.00332V4.06808L3.86065 3.78941ZM7.40202 4.43008L7.19402 3.78941L6.33669 4.06808V3.16675H5.66336V4.06808L4.80602 3.78941L4.59802 4.43008L5.45536 4.70875L4.92536 5.43741L5.47002 5.83341L6.00002 5.10408L6.53002 5.83341L7.07469 5.43741L6.54469 4.70875L7.40202 4.43008ZM10.5273 3.78941L10.7353 4.43008L9.87794 4.70875L10.4079 5.43741L9.86327 5.83341L9.33327 5.10408L8.80327 5.83341L8.25861 5.43741L8.78861 4.70875L7.93127 4.43008L8.13927 3.78941L8.99661 4.06808V3.16675H9.66994V4.06808L10.5273 3.78941Z",fill:"currentColor",transform:"translate(15,15)"},null,-1))]))])):D("",!0),a.canResendOTP||s.numberOfOTPResent===0?(f(),v("div",{key:3,class:"countdown-info",onClick:r[1]||(r[1]=(...g)=>a.sendOtp&&a.sendOtp(...g))},[m("span",qY,T(t.$t(s.sendMessage)),1)])):D("",!0),a.canSkipAndPayWithCard?(f(),v("div",{key:4,class:"countdown-info",onClick:r[2]||(r[2]=(...g)=>a.skipOtpAndPay&&a.skipOtpAndPay(...g))},[m("div",WY,T(t.$t("skipOtp")),1),m("div",GY,T(t.$t("cardWillNotBeSaved")),1)])):D("",!0),$(u,{onClick:a.cancel},null,8,["onClick"])]))])])}typeof Yv=="function"&&Yv(V6);const ZY=ee(V6,[["render",jY]]);function Jv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{title_phoneConfirmed:e=>{const{normalize:n}=e;return n(["Phone number confirmed!"])},title_noSavedCards:e=>{const{normalize:n}=e;return n(["No Saved Cards!"])},message_phoneConfirmed:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Your card will be saved when this payment is successful. It will be available next time you checkout with ',s(a("email")),""])},message_noSavedCards:e=>{const{normalize:n}=e;return n(["You have not saved any cards. Complete a payment to save your card and checkout quickly in the future."])},continueToPayment:e=>{const{normalize:n}=e;return n(["Continue to payment"])}},fr:{title_phoneConfirmed:e=>{const{normalize:n}=e;return n(["Numéro de téléphone confirmé"])},title_noSavedCards:e=>{const{normalize:n}=e;return n(["Pas de cartes enregistrées!"])},message_phoneConfirmed:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['Votre carte sera enregistrée une fois ce paiement réussi. Il sera disponible lors de votre prochain paiement avec ',s(a("email")),""])},message_noSavedCards:e=>{const{normalize:n}=e;return n(["Vous n'avez enregistré aucune carte. Effectuez un paiement pour enregistrer votre carte et payer rapidement à l'avenir."])},continueToPayment:e=>{const{normalize:n}=e;return n(["Continuer le paiement"])}},ar:{title_phoneConfirmed:e=>{const{normalize:n}=e;return n(["تم تأكيد رقم الهاتف"])},title_noSavedCards:e=>{const{normalize:n}=e;return n(["لم يتم العثور على بطاقات محفوظة"])},message_phoneConfirmed:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(['سيتم حفظ بطاقتك عند نجاح عملية الدفع. سيكون متاحًا في المرة القادمة التي تقوم فيها بالدفع باستخدام ',s(a("email")),""])},message_noSavedCards:e=>{const{normalize:n}=e;return n(["لم تقم بحفظ أي بطاقة. أكمل عملية الدفع لحفظ بطاقتك وادفع بسرعة في المرة القادمة."])},continueToPayment:e=>{const{normalize:n}=e;return n(["مواصلة الدفع"])}}}})}const B6={components:{Instructions:Et,PaymentButton:dt},props:{email:String,type:{type:String,required:!0}},data(){return{processing:!1}},emits:["parentEvent"],computed:{...we(ae,["transaction"]),transactionEmail(){return this.transaction.email}},methods:{sendEventToGrandParent(t,r){this.$emit("parentEvent",{eventName:t,data:r})},continuePayment(){this.processing=!0,kr.phoneNumberConfirmed.clickedContinueToPayment(),this.type==="phoneConfirmed"?(this.sendEventToGrandParent("submit",{save_transaction_card:!0}),kr.cardsList.clickedPayWithNewCard()):(this.sendEventToGrandParent("setIsSavingNewCard",!0),this.sendEventToGrandParent("switch","card_form"))}}},KY={class:"row"},YY={class:"col-12-sm col-centered"},QY=["innerHTML"],JY={class:"pay-section"};function XY(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button");return f(),v("div",KY,[m("div",YY,[$(i,{message:t.$t("title_".concat(e.type)),role:"heading"},null,8,["message"]),m("div",{class:"panel","data-testid":"message",innerHTML:t.$t("message_".concat(e.type),{email:e.email||a.transactionEmail})},null,8,QY),m("div",JY,[$(o,{"data-testid":"savedCardsContinueButton",loading:s.processing,onClick:a.continuePayment},{default:ne(()=>[Be(T(t.$t("continueToPayment")),1)]),_:1},8,["loading","onClick"])])])])}typeof Jv=="function"&&Jv(B6);const eQ=ee(B6,[["render",XY],["__scopeId","data-v-e2790798"]]);function Xv(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{message:e=>{const{normalize:n}=e;return n(["Enter your email address to access your saved cards"])},continue:e=>{const{normalize:n}=e;return n(["Access saved cards"])},retry:e=>{const{normalize:n}=e;return n(["Retry and access saved cards"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Pay with another card"])},info:e=>{const{normalize:n}=e;return n(["An OTP will be sent to the registered phone number"])},otpNotSent:e=>{const{normalize:n}=e;return n(["OTP failed, can’t access saved cards"])}},fr:{message:e=>{const{normalize:n}=e;return n(["Entrez votre adresse e-mail pour accéder à vos cartes enregistrées"])},continue:e=>{const{normalize:n}=e;return n(["Accédez aux cartes enregistrées"])},retry:e=>{const{normalize:n}=e;return n(["Réessayez et accédez aux cartes enregistrées"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["Payer avec une autre carte"])},info:e=>{const{normalize:n}=e;return n(["Un code sera envoyé au numéro de téléphone enregistré"])},otpNotSent:e=>{const{normalize:n}=e;return n(["Échec de l’envoi du code, impossible d’accéder aux cartes enregistrées"])}},ar:{message:e=>{const{normalize:n}=e;return n(["أدخل عنوان بريدك الإلكتروني للوصول إلى بطاقاتك المحفوظة"])},continue:e=>{const{normalize:n}=e;return n(["الوصول إلى بطاقاتك المحفوظة"])},retry:e=>{const{normalize:n}=e;return n(["أعد المحاولة وادخل إلى البطاقات المحفوظة"])},payWithAnotherCard:e=>{const{normalize:n}=e;return n(["حاول باستخدام بطاقة أخرى"])},info:e=>{const{normalize:n}=e;return n(["سيتم إرسال كلمة مرور لمرة واحدة (OTP) إلى رقم الهاتف المسجل"])},otpNotSent:e=>{const{normalize:n}=e;return n(["فشل إرسال الرمز، لا يمكن الوصول إلى البطاقات المحفوظة"])}}}})}const U6={name:"SavedCardsEmailLogin",components:{CancelLink:rn,Instructions:Et,PaymentButton:dt},data(){return{email:"",errorMessage:null,isDirty:!1,isValidEmail:!1,processing:!1}},emits:["cancel","switch","parentEvent"],computed:{...we(ae,["transaction"]),buttonText(){return this.errorMessage?this.$t("retry"):this.$t("continue")}},methods:{sendEventToGrandParent(t,r){this.$emit("parentEvent",{eventName:t,data:r})},cancel(){this.$emit("cancel"),kr.accessSavedCards.clickedPayWithAnotherCard()},isEmailEmpty(){return!this.email},validateEmail(){this.isDirty=!0,this.isValidEmail=rd(this.email)},handleEmailInput(t){this.validateEmail(),this.sendEventToGrandParent("setSavedCardsEmail",t)},async onSubmit(){this.errorMessage=null,this.processing=!0;try{await this.transaction.sendSavedCardsOTP({email:this.email}),kr.accessSavedCards.clickedAccessSavedCards(),this.$emit("switch","otp_form")}catch(t){this.errorMessage=O6(t,this.$t)}finally{this.processing=!1}}}},tQ={class:"row"},nQ={class:"col-10-sm col-centered"},rQ={class:"form-group"},sQ={key:0,class:"error"},aQ={class:"pay-section"},iQ={class:"info"};function oQ(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("cancel-link");return f(),v("div",tQ,[m("div",nQ,[r[4]||(r[4]=m("div",{class:"icon-wrapper"},[m("img",{src:F6,alt:"login"})],-1)),$(i,{message:t.$t("message")},null,8,["message"]),m("form",{onSubmit:r[3]||(r[3]=jt((...d)=>a.onSubmit&&a.onSubmit(...d),["prevent"])),class:"form"},[m("div",rQ,[ct(m("input",{class:pt([{"input--error":!s.isValidEmail&&s.isDirty},"input"]),onInput:r[0]||(r[0]=(...d)=>a.handleEmailInput&&a.handleEmailInput(...d)),onBlur:r[1]||(r[1]=(...d)=>a.validateEmail&&a.validateEmail(...d)),autofocus:"",ref:"email",required:"",type:"email","onUpdate:modelValue":r[2]||(r[2]=d=>s.email=d)},null,34),[[Wt,s.email,void 0,{trim:!0}]])]),s.errorMessage?(f(),v("p",sQ,T(s.errorMessage),1)):D("",!0),m("div",aQ,[$(o,{"data-testid":"access-saved-cards-button",disabled:!s.isValidEmail||a.isEmailEmpty(),loading:s.processing,onClick:a.onSubmit},{default:ne(()=>[Be(T(a.buttonText),1)]),_:1},8,["disabled","loading","onClick"])])],32),$(l,{text:t.$t("payWithAnotherCard"),onClick:a.cancel},null,8,["text","onClick"]),m("p",iQ,T(t.$t("info")),1)])])}typeof Xv=="function"&&Xv(U6);const lQ=ee(U6,[["render",oQ],["__scopeId","data-v-1d3726d0"]]),cQ={name:"SavedCards",components:{SavedCardsList:pY,RemoveSavedCard:wY,AccessSavedCards:PY,SavedCardsOtpForm:ZY,SavedCardsContinueScreen:eQ,SavedCardsEmailLogin:lQ},props:{email:String,phoneNumber:String,preselectedView:String,isSavingNewCard:Boolean},data(){const t={OTP_FORM:"otp_form",CARDS_LIST:"cards_list",REMOVE_CARD:"remove_card",NO_SAVED_CARDS:"no_saved_cards",ACCESS_SAVED_CARDS:"access_saved_cards",PHONE_NUMBER_VERIFIED:"phone_number_verified",EMAIL_LOGIN:"email_login"};return{views:t,selectedCard:{},currentView:t.ACCESS_SAVED_CARDS}},emits:["switch","setIsSavingNewCard","setSavedCardsPhoneNumber","submit","setSavedCardsEmail"],computed:{...we(ae,["transaction"])},created(){this.preselectedView?this.currentView=this.preselectedView:this.transaction.savedCardsToken?this.currentView=this.views.CARDS_LIST:this.currentView=this.views.ACCESS_SAVED_CARDS},methods:{switchToCardForm(){this.$emit("switch","card_form")},changeView(t,r){t===this.views.REMOVE_CARD&&(this.selectedCard=r.card),this.currentView=t},handleParentEvent({eventName:t,data:r}){this.$emit(t,r)}}},uQ={key:"phone"},dQ={key:"otp"},hQ={key:"verified"},mQ={key:"no_saved_cards"},pQ={key:"cards_list"},fQ={key:"remove_card"},_Q={key:"email_login"};function gQ(t,r,e,n,s,a){const i=P("access-saved-cards"),o=P("saved-cards-otp-form"),l=P("saved-cards-continue-screen"),d=P("saved-cards-list"),u=P("remove-saved-card"),g=P("saved-cards-email-login");return f(),se(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[s.currentView===s.views.ACCESS_SAVED_CARDS?(f(),v("div",uQ,[$(i,{onSwitch:a.changeView,onCancel:a.switchToCardForm},null,8,["onSwitch","onCancel"])])):s.currentView===s.views.OTP_FORM?(f(),v("div",dQ,[$(o,{isSavingNewCard:e.isSavingNewCard,email:e.email,phoneNumber:e.phoneNumber,onSwitch:a.changeView,onCancel:a.switchToCardForm,onParentEvent:a.handleParentEvent},null,8,["isSavingNewCard","email","phoneNumber","onSwitch","onCancel","onParentEvent"])])):s.currentView===s.views.PHONE_NUMBER_VERIFIED?(f(),v("div",hQ,[$(l,{email:e.email,onParentEvent:a.handleParentEvent,type:"phoneConfirmed"},null,8,["email","onParentEvent"])])):s.currentView===s.views.NO_SAVED_CARDS?(f(),v("div",mQ,[$(l,{onParentEvent:a.handleParentEvent,type:"noSavedCards"},null,8,["onParentEvent"])])):s.currentView===s.views.CARDS_LIST?(f(),v("div",pQ,[$(d,{phoneNumber:e.phoneNumber,onSwitch:a.changeView,onCancel:a.switchToCardForm,onParentEvent:a.handleParentEvent},null,8,["phoneNumber","onSwitch","onCancel","onParentEvent"])])):s.currentView===s.views.REMOVE_CARD?(f(),v("div",fQ,[$(u,{card:s.selectedCard,onSwitchToCardList:r[0]||(r[0]=y=>a.changeView(s.views.CARDS_LIST))},null,8,["card"])])):s.currentView===s.views.EMAIL_LOGIN?(f(),v("div",_Q,[$(g,{onSwitch:a.changeView,onCancel:a.switchToCardForm,onParentEvent:a.handleParentEvent},null,8,["onSwitch","onCancel","onParentEvent"])])):D("",!0)]),_:1})}const vQ=ee(cQ,[["render",gQ]]),yQ="/assets/reach-logo-BVDE4yMF.svg";function e3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{checkoutDescription:e=>{const{normalize:n}=e;return n(['By completing your order, you will check out with our preferred international seller, and agree to the Terms of Service of Reach UK'])},reachLogo:e=>{const{normalize:n}=e;return n(["Reach Verified Badge"])}},fr:{checkoutDescription:e=>{const{normalize:n}=e;return n(['En finalisant votre commande, vous procéderez au paiement avec notre vendeur international préféré, et acceptez les Conditions de Service de Reach UK'])},reachLogo:e=>{const{normalize:n}=e;return n(["Badge de Reach Verifié"])}},ar:{checkoutDescription:e=>{const{normalize:n}=e;return n(['من خلال إكمال طلبك، ستقوم بالدفع مع بائعنا الدولي المفضل وتوافق على شروط الخدمة of Reach UK'])},reachLogo:e=>{const{normalize:n}=e;return n(["بطاقة Reach المعتمدة"])}}}})}const H6={},bQ={class:"reach-badge","data-testid":"reach-badge"},CQ={class:"reach-badge__logo"},wQ=["alt"],kQ=["innerHTML"];function SQ(t,r){return f(),v("div",bQ,[m("div",CQ,[m("img",{src:yQ,alt:t.$t("reachLogo"),class:"reach-badge__logo-image"},null,8,wQ)]),m("div",{class:"reach-badge__content",innerHTML:t.$t("checkoutDescription")},null,8,kQ)])}typeof e3=="function"&&e3(H6);const EQ=ee(H6,[["render",SQ]]),TQ="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='15.9008'%20height='16.704'%20rx='4.5'%20fill='%23D44141'/%3e%3cpath%20d='M5.68541%207.60458C4.69153%207.60458%204.09912%206.9965%204.09912%205.9736C4.09912%204.96956%204.70622%204.35205%205.68541%204.35205C6.6695%204.35205%207.2717%204.96956%207.2717%205.9736C7.2717%207.00121%206.67929%207.60458%205.68541%207.60458ZM5.68541%206.88808C6.13094%206.88808%206.38064%206.5534%206.38064%205.97831C6.38064%205.41266%206.12605%205.07326%205.68541%205.07326C5.24478%205.07326%204.98529%205.41266%204.98529%205.97831C4.98529%206.55811%205.23988%206.88808%205.68541%206.88808ZM6.15053%2011.2813H5.23009L10.0477%204.47932H10.9633L6.15053%2011.2813ZM10.5128%2011.3521C9.52385%2011.3521%208.92654%2010.744%208.92654%209.72579C8.92654%208.72175%209.53364%208.10424%2010.5128%208.10424C11.4969%208.10424%2012.0991%208.71703%2012.0991%209.72579C12.0991%2010.7487%2011.5067%2011.3521%2010.5128%2011.3521ZM10.5128%2010.6356C10.9584%2010.6356%2011.213%2010.3009%2011.213%209.7305C11.213%209.16013%2010.9584%208.82074%2010.5128%208.82074C10.0722%208.82074%209.8176%209.16013%209.8176%209.7305C9.8176%2010.3056%2010.0722%2010.6356%2010.5128%2010.6356Z'%20fill='white'%20stroke='white'%20stroke-width='0.5'/%3e%3c/svg%3e",$Q="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='15.9008'%20height='16.704'%20rx='4.5'%20fill='%2309A5DB'/%3e%3cpath%20d='M5.68541%207.60458C4.69153%207.60458%204.09912%206.9965%204.09912%205.9736C4.09912%204.96956%204.70622%204.35205%205.68541%204.35205C6.6695%204.35205%207.2717%204.96956%207.2717%205.9736C7.2717%207.00121%206.67929%207.60458%205.68541%207.60458ZM5.68541%206.88808C6.13094%206.88808%206.38064%206.5534%206.38064%205.97831C6.38064%205.41266%206.12605%205.07326%205.68541%205.07326C5.24478%205.07326%204.98529%205.41266%204.98529%205.97831C4.98529%206.55811%205.23988%206.88808%205.68541%206.88808ZM6.15053%2011.2813H5.23009L10.0477%204.47932H10.9633L6.15053%2011.2813ZM10.5128%2011.3521C9.52385%2011.3521%208.92654%2010.744%208.92654%209.72579C8.92654%208.72175%209.53364%208.10424%2010.5128%208.10424C11.4969%208.10424%2012.0991%208.71703%2012.0991%209.72579C12.0991%2010.7487%2011.5067%2011.3521%2010.5128%2011.3521ZM10.5128%2010.6356C10.9584%2010.6356%2011.213%2010.3009%2011.213%209.7305C11.213%209.16013%2010.9584%208.82074%2010.5128%208.82074C10.0722%208.82074%209.8176%209.16013%209.8176%209.7305C9.8176%2010.3056%2010.0722%2010.6356%2010.5128%2010.6356Z'%20fill='white'%20stroke='white'%20stroke-width='0.5'/%3e%3c/svg%3e";function t3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{description:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["A VAT rate of ",s(a("rate")),"% applies to purchases in ",s(a("location"))])},hideBreakdown:e=>{const{normalize:n}=e;return n(["Hide breakdown"])},showBreakdown:e=>{const{normalize:n}=e;return n(["Show breakdown"])},subtotal:e=>{const{normalize:n}=e;return n(["Subtotal"])},tax:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["VAT (",s(a("rate")),"%)"])},total:e=>{const{normalize:n}=e;return n(["Total"])},percentageIcon:e=>{const{normalize:n}=e;return n(["Percentage Icon"])},errorMessage:e=>{const{normalize:n}=e;return n(["Unable to calculate VAT at the moment. Please re-confirm your address, or choose another payment method to continue"])},error:e=>{const{normalize:n}=e;return n(["Error"])}},ar:{description:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["يطبق معدل ضريبة القيمة المضافة ",s(a("rate")),"% على المشتريات في ",s(a("location"))])},hideBreakdown:e=>{const{normalize:n}=e;return n(["إخفاء التفصيل"])},showBreakdown:e=>{const{normalize:n}=e;return n(["إظهار التفصيل"])},subtotal:e=>{const{normalize:n}=e;return n(["المجموع الفرعي"])},tax:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ضريبة القيمة المضافة (",s(a("rate")),"%)"])},total:e=>{const{normalize:n}=e;return n(["المجموع"])},percentageIcon:e=>{const{normalize:n}=e;return n(["أيقونة النسبة المئوية"])},errorMessage:e=>{const{normalize:n}=e;return n(["لا يمكن حساب ضريبة القيمة المضافة في الوقت الحالي. يرجى إعادة التأكد من عنوانك، أو اختيار بديل للدفع."])},error:e=>{const{normalize:n}=e;return n(["خطأ"])}},fr:{description:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Un taux de taxe de la valeur ajoutée de ",s(a("rate")),"% s'applique aux achats en ",s(a("location"))])},hideBreakdown:e=>{const{normalize:n}=e;return n(["Masquer la répartition"])},showBreakdown:e=>{const{normalize:n}=e;return n(["Afficher la répartition"])},subtotal:e=>{const{normalize:n}=e;return n(["Sous-total"])},tax:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Taxe de la valeur ajoutée (",s(a("rate")),"%)"])},total:e=>{const{normalize:n}=e;return n(["Total"])},percentageIcon:e=>{const{normalize:n}=e;return n(["Icône de pourcentage"])},errorMessage:e=>{const{normalize:n}=e;return n(["Impossible de calculer la taxe de la valeur ajoutée en ce moment. Veuillez vérifier votre adresse, ou choisir une autre méthode de paiement."])},error:e=>{const{normalize:n}=e;return n(["Erreur"])}}}})}const IQ=["aria-label"],AQ={class:"tax-rate__error-content"},zQ={class:"tax-rate__error-badge"},RQ=["alt"],PQ={class:"tax-rate__error-message"},NQ={key:1,class:"tax-rate__loading","aria-busy":"true","data-testid":"tax-rate-loading"},MQ={class:"tax-rate__breakdown"},LQ={key:2,class:"tax-rate__content"},xQ={class:"tax-rate__header"},OQ={class:"tax-rate__info"},FQ={class:"tax-rate__badge"},DQ=["alt"],VQ={class:"tax-rate__description"},BQ={key:0,class:"tax-rate__breakdown"},UQ={class:"tax-rate__row"},HQ={class:"tax-rate__label"},qQ={class:"tax-rate__amount"},WQ={class:"tax-rate__row"},GQ={class:"tax-rate__label"},jQ={class:"tax-rate__amount"},ZQ={class:"tax-rate__row tax-rate__row--total"},KQ={class:"tax-rate__label"},YQ={class:"tax-rate__amount"},q6={__name:"TaxRate",props:{isLoading:{type:Boolean,default:!1},taxData:{type:Object,default:()=>({rate:0,amount:0,subtotal:0,location:"",tax_currency:""})},error:{type:Boolean,default:!1}},emits:["toggle-breakdown"],setup(t,{emit:r}){const e=ae(),n=te(()=>e.transaction),s=te(()=>e.activeChannel),a=te(()=>{var R;return(R=n.value.channelFeesConfig)==null?void 0:R[s.value.name]}),i=t,o=r,l=ge(!0),d=te(()=>i.taxData.tax_currency||n.value.currency),u=te(()=>{var R;return i.taxData.subtotal!=null?i.taxData.subtotal:((R=a.value)==null?void 0:R.amount)||n.value.amount}),g=te(()=>u.value+i.taxData.amount),y=te(()=>{const R=ys(u.value);return x0(R,{currency:d.value,minimumFractionDigits:2})}),w=te(()=>{const R=ys(i.taxData.amount);return x0(R,{currency:d.value,minimumFractionDigits:2})}),k=te(()=>{const R=ys(g.value);return x0(R,{currency:d.value,minimumFractionDigits:2})}),E=()=>{l.value=!l.value,o("toggle-breakdown",l.value)};return(R,O)=>(f(),v("div",{class:pt(["tax-rate",{"tax-rate--error":t.error}]),"data-testid":"tax-rate"},[t.error?(f(),v("div",{key:0,class:"tax-rate__error",role:"alert","aria-label":R.$t("error")},[m("div",AQ,[m("div",zQ,[m("img",{src:TQ,alt:R.$t("error"),class:"tax-rate__badge-icon"},null,8,RQ)]),m("div",PQ,T(R.$t("errorMessage")),1)])],8,IQ)):t.isLoading?(f(),v("div",NQ,[O[1]||(O[1]=m("div",{class:"tax-rate__header"},[m("div",{class:"tax-rate__skeleton tax-rate__skeleton--icon"}),m("div",{class:"tax-rate__skeleton tax-rate__skeleton--text"})],-1)),m("div",MQ,[(f(),v(gt,null,Ot(3,M=>m("div",{class:"tax-rate__row",key:M},[...O[0]||(O[0]=[m("div",{class:"tax-rate__skeleton tax-rate__skeleton--label"},null,-1),m("div",{class:"tax-rate__skeleton tax-rate__skeleton--amount"},null,-1)])])),64))])])):(f(),v("div",LQ,[m("div",xQ,[m("div",OQ,[m("div",FQ,[m("img",{src:$Q,alt:R.$t("percentageIcon"),class:"tax-rate__badge-icon"},null,8,DQ)]),m("div",VQ,T(R.$t("description",{rate:t.taxData.rate,location:t.taxData.location})),1)]),m("button",{type:"button",class:"tax-rate__toggle",onClick:E,"data-testid":"tax-rate-toggle"},T(R.$t(l.value?"hideBreakdown":"showBreakdown")),1)]),$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[l.value?(f(),v("div",BQ,[m("div",UQ,[m("span",HQ,T(R.$t("subtotal")),1),m("span",qQ,T(y.value),1)]),m("div",WQ,[m("span",GQ,T(R.$t("tax",{rate:t.taxData.rate})),1),m("span",jQ,T(w.value),1)]),m("div",ZQ,[m("span",KQ,T(R.$t("total")),1),m("span",YQ,T(k.value),1)])])):D("",!0)]),_:1})]))],2))}};typeof t3=="function"&&t3(q6);const QQ=ee(q6,[["__scopeId","data-v-3181ecfd"]]);function JQ(t,r=300){const e=ge(null);let n=null;const s=()=>{e.value&&(clearTimeout(e.value),e.value=null)},a=(...l)=>{n=l,s(),e.value=setTimeout(async()=>{e.value=null,await t(...n)},r)},i=()=>{n=null,s()},o=()=>{if(e.value&&n){clearTimeout(e.value);const l=n;e.value=null,n=null,t(...l)}};return Di(i),{run:a,cancel:i,flush:o}}function n3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{noMatches:e=>{const{normalize:n}=e;return n(["No matches found"])}},fr:{noMatches:e=>{const{normalize:n}=e;return n(["Aucun match trouvé"])}},ar:{noMatches:e=>{const{normalize:n}=e;return n(["لا يوجد مطابقات"])}}}})}const XQ={class:"search-combobox__control"},eJ={key:0,class:"search-combobox__loader"},tJ={key:1,src:L5},nJ={key:1},rJ={class:"search-combobox__empty"},W6={__name:"SearchCombobox",props:{modelValue:{type:[String,Number,Object,null],default:""},options:{type:Array,default:()=>[]},displayKey:{type:String,default:"name"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},inputId:{type:String,default:void 0},ariaLabel:{type:String,default:""}},emits:["update:modelValue","change"],setup(t,{emit:r}){const e=t,n=r,s=ge(""),a=ge(null),i=u=>(u==null?void 0:u.toString().toLowerCase().replace(/\s+/g,""))||"",o=u=>u==null?void 0:u[e.valueKey],l=u=>(u==null?void 0:u[e.displayKey])||"",d=te(()=>{const u=i(s.value);return u?e.options.filter(g=>i(l(g)).includes(u)||i(o(g)).includes(u)):e.options});return Sn(()=>e.modelValue,u=>{const g=e.options.find(y=>o(y)===u)||null;a.value=g},{immediate:!0}),Sn(()=>e.options,u=>{const g=u.find(y=>o(y)===e.modelValue)||null;a.value=g}),Sn(a,u=>{const g=u?o(u):"";g!==e.modelValue&&n("update:modelValue",g),n("change",u)}),(u,g)=>(f(),v("div",{class:pt(["search-combobox",{"search-combobox--disabled":t.disabled}])},[$(fe(I5),{modelValue:a.value,"onUpdate:modelValue":g[2]||(g[2]=y=>a.value=y),nullable:"",disabled:t.disabled},{default:ne(()=>[m("div",XQ,[$(fe(z5),{id:t.inputId,class:"input input--card search-combobox__input",displayValue:y=>l(y),placeholder:t.placeholder,onChange:g[0]||(g[0]=({target:y})=>s.value=y.value),autocomplete:"off",disabled:t.disabled},null,8,["id","displayValue","placeholder","disabled"]),$(fe(A5),{class:"search-combobox__button",disabled:t.disabled,"aria-label":"Toggle ".concat(t.ariaLabel||t.placeholder," list")},{default:ne(()=>[t.loading?(f(),v("div",eJ)):(f(),v("img",tJ))]),_:1},8,["disabled","aria-label"])]),$(fe(Qm),{onAfterLeave:g[1]||(g[1]=y=>s.value="")},{default:ne(()=>[t.disabled?D("",!0):(f(),se(fe(R5),{key:0,class:"search-combobox__options"},{default:ne(()=>[d.value.length?(f(!0),v(gt,{key:0},Ot(d.value,y=>(f(),se(fe(P5),{key:o(y),value:y},{default:ne(({active:w})=>[m("p",{class:pt(["search-combobox__option",{"search-combobox__option--active":w}])},T(l(y)),3)]),_:2},1032,["value"]))),128)):(f(),v("ul",nJ,[m("li",rJ,T(u.$t("noMatches")),1)]))]),_:1}))]),_:1})]),_:1},8,["modelValue","disabled"])],2))}};typeof n3=="function"&&n3(W6);const r3=ee(W6,[["__scopeId","data-v-cb4433a8"]]);function s3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:e=>{const{normalize:n}=e;return n(["Enter your shipping address"])},streetAddress:e=>{const{normalize:n}=e;return n(["Street address"])},zipCode:e=>{const{normalize:n}=e;return n(["ZIP CODE"])},continue:e=>{const{normalize:n}=e;return n(["Continue"])},state:e=>{const{normalize:n}=e;return n(["State"])},search:e=>{const{normalize:n}=e;return n(["Search"])},city:e=>{const{normalize:n}=e;return n(["City"])},country:e=>{const{normalize:n}=e;return n(["Country"])},back:e=>{const{normalize:n}=e;return n(["Back"])}},fr:{instructionMessage:e=>{const{normalize:n}=e;return n(["Entrez votre adresse de livraison"])},streetAddress:e=>{const{normalize:n}=e;return n(["Adresse"])},zipCode:e=>{const{normalize:n}=e;return n(["CODE POSTAL"])},continue:e=>{const{normalize:n}=e;return n(["Continuer"])},state:e=>{const{normalize:n}=e;return n(["État"])},search:e=>{const{normalize:n}=e;return n(["Rechercher"])},city:e=>{const{normalize:n}=e;return n(["Ville"])},country:e=>{const{normalize:n}=e;return n(["Pays"])},back:e=>{const{normalize:n}=e;return n(["Retour"])}},ar:{instructionMessage:e=>{const{normalize:n}=e;return n(["أدخل عنوان الشحن الخاص بك"])},streetAddress:e=>{const{normalize:n}=e;return n(["عنوان الشارع"])},zipCode:e=>{const{normalize:n}=e;return n(["الرمز البريدي"])},continue:e=>{const{normalize:n}=e;return n(["استمرار"])},state:e=>{const{normalize:n}=e;return n(["المحافظة"])},search:e=>{const{normalize:n}=e;return n(["البحث"])},city:e=>{const{normalize:n}=e;return n(["المدينة"])},country:e=>{const{normalize:n}=e;return n(["الدولة"])},back:e=>{const{normalize:n}=e;return n(["العودة"])}}}})}const sJ={key:1,class:"reach-form"},aJ={class:"row"},iJ={class:"col-12-sm"},oJ={class:"form-group"},lJ={class:"input-wrap"},cJ={for:"country",class:"label label--floating"},uJ={class:"row"},dJ={class:"col-12-sm"},hJ={class:"form-group"},mJ={class:"input-wrap"},pJ={for:"street",class:"label label--floating"},fJ={class:"row"},_J={class:"col-12-sm"},gJ={class:"form-group"},vJ={class:"input-wrap"},yJ={for:"zipCode",class:"label label--floating"},bJ={class:"row"},CJ={class:"col-6-sm"},wJ={class:"form-group"},kJ={class:"input-wrap"},SJ={for:"state",class:"label label--floating"},EJ={class:"col-6-sm"},TJ={class:"form-group"},$J={class:"input-wrap"},IJ=["placeholder"],AJ={for:"city",class:"label label--floating"},zJ={key:0,class:"reach-form__tax-rate"},RJ={class:"pay-section"},G6={__name:"ReachForm",emits:["callback","cancel","submit"],setup(t,{emit:r}){const e=ae(),n=ge([]),s=ge(!1),a=ge(!1),i=ge(!1),o=ge([]),l=ge(null),d=ge(!1),u=ge(!1),g=ge(!1),y=Qa({street:"",zipCode:"",state:"",city:"",country:""}),w=r,k=async()=>{i.value=!0;try{const{data:S}=await wo.fetch("countries",{scope:"REACH",merchantKey:e.transaction.merchant.key});o.value=S}catch(S){w("callback",{status:"failed"})}finally{i.value=!1}};An(()=>{k()});const E=async S=>{a.value=!0;try{const z=await wo.fetch("reachStates",{country:S,merchantKey:e.transaction.merchant.key});n.value=z.data.filter(U=>!!U.region_code)}catch(z){n.value=[]}finally{a.value=!1}},R=te(()=>{var S,z,U,j;return((z=(S=l.value)==null?void 0:S.subtotal)!=null?z:0)+((j=(U=l.value)==null?void 0:U.amount)!=null?j:0)}),O=async()=>{var S,z;if(u.value){l.value=null,g.value=!1,s.value=!0;try{const U=n.value.find(Ue=>Ue.id===y.state),j={street:y.street,postCode:y.zipCode,state:(S=U==null?void 0:U.region_code)!=null?S:"",city:y.city,country:y.country},{data:J}=await e.transaction.getReachTaxQuote(j),de=U==null?void 0:U.name,Ae=(z=o.value.find(Ue=>Ue.iso2===j.country))==null?void 0:z.iso3,qe="".concat(de,", ").concat(Ae);l.value={rate:J.tax_rate,amount:J.tax_amount,subtotal:J.amount,location:qe,tax_currency:J.tax_currency},e.setTransactionAmount(R.value,J.tax_currency)}catch(U){l.value=null,g.value=!0}finally{s.value=!1}}},{run:M,cancel:x}=JQ(O,700);Sn(y,S=>{u.value=Object.values(S).every(z=>String(z!=null?z:"").trim()!==""),u.value?M():(x(),s.value=!1,l.value=null,g.value=!1)}),Sn(()=>y.country,(S,z)=>{n.value=[],y.state="",S&&S!==z&&E(S)});const N=te(()=>!!l.value||s.value||g.value),A=te(()=>u.value&&l.value&&!g.value),V=()=>{d.value=!0,w("submit",{gateway_device_fingerprint:window.gip_device_fingerprint})},F=()=>{w("cancel")};return(S,z)=>o.value.length===0?(f(),se(tn,{key:0})):(f(),v("div",sJ,[m("form",{onSubmit:jt(V,["prevent"]),class:"form"},[$(Et,{message:S.$t("instructionMessage")},null,8,["message"]),m("div",aJ,[m("div",iJ,[m("div",oJ,[m("div",lJ,[$(r3,{modelValue:y.country,"onUpdate:modelValue":z[0]||(z[0]=U=>y.country=U),options:o.value,"display-key":"name","value-key":"iso2",placeholder:S.$t("search"),"input-id":"country",loading:i.value,"aria-label":S.$t("country")},null,8,["modelValue","options","placeholder","loading","aria-label"]),m("label",cJ,T(S.$t("country")),1)])])])]),m("div",uJ,[m("div",dJ,[m("div",hJ,[m("div",mJ,[ct(m("input",{"onUpdate:modelValue":z[1]||(z[1]=U=>y.street=U),ref:"input",type:"text",id:"street",class:"input input--card",placeholder:"201 Stacks Street",required:""},null,512),[[Wt,y.street]]),m("label",pJ,T(S.$t("streetAddress")),1)])])])]),m("div",fJ,[m("div",_J,[m("div",gJ,[m("div",vJ,[ct(m("input",{"onUpdate:modelValue":z[2]||(z[2]=U=>y.zipCode=U),ref:"input",type:"text",id:"zipCode",class:"input input--card",placeholder:"12345",required:""},null,512),[[Wt,y.zipCode]]),m("label",yJ,T(S.$t("zipCode")),1)])])])]),m("div",bJ,[m("div",CJ,[m("div",wJ,[m("div",kJ,[$(r3,{modelValue:y.state,"onUpdate:modelValue":z[3]||(z[3]=U=>y.state=U),options:n.value,"display-key":"name","value-key":"id",placeholder:S.$t("search"),"input-id":"state",disabled:a.value||!y.country,loading:a.value,"aria-label":S.$t("state")},null,8,["modelValue","options","placeholder","disabled","loading","aria-label"]),m("label",SJ,T(S.$t("state")),1)])])]),m("div",EJ,[m("div",TJ,[m("div",$J,[ct(m("input",{"onUpdate:modelValue":z[4]||(z[4]=U=>y.city=U),ref:"input",type:"text",class:"input input--card",placeholder:S.$t("city"),required:"",id:"city"},null,8,IJ),[[Wt,y.city]]),m("label",AJ,T(S.$t("city")),1)])])])]),N.value?(f(),v("div",zJ,[$(QQ,{isLoading:s.value,taxData:l.value,error:g.value},null,8,["isLoading","taxData","error"])])):D("",!0),$(EQ),m("div",RJ,[$(dt,{loading:d.value,disabled:!A.value,"data-testid":"complete-payment"},{default:ne(()=>[Be(T(S.$t("continue")),1)]),_:1},8,["loading","disabled"])]),d.value?D("",!0):(f(),se(rn,{key:1,onClick:F,text:S.$t("back")},null,8,["text"]))],32)]))}};typeof s3=="function"&&s3(G6);const PJ=ee(G6,[["__scopeId","data-v-2294e21b"]]);function a3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{pinMessage:e=>{const{normalize:n}=e;return n(["Please enter your 4-digit card pin to authorize this payment"])},opayPinNotice:e=>{const{normalize:n}=e;return n(["Use your card PIN, not your app login PIN"])}},fr:{pinMessage:e=>{const{normalize:n}=e;return n(["Veuillez saisir le code PIN à 4 chiffres de votre carte pour autoriser ce paiement"])},opayPinNotice:e=>{const{normalize:n}=e;return n(["Utilisez le code PIN de votre carte, pas le code PIN de connexion à l'application"])}},ar:{pinMessage:e=>{const{normalize:n}=e;return n(["الرجاء إدخال رقم التعريف الشخصي (PIN) المكون من 4 أرقام لتصديق عملية الدفع"])},opayPinNotice:e=>{const{normalize:n}=e;return n(["استخدم الرقم السري (PIN) الخاص بالبطاقة، وليس رقم التعريف الخاص بتسجيل الدخول إلى التطبيق"])}}}})}const j6={name:"CardChannel",components:{OtpForm:xd,CvvAndPinForm:zj,PhoneForm:XG,PinForm:bj,CardholderNameForm:S6,CardForm:QZ,TestCards:lK,ThreeDSecure:hK,CustomFieldForm:bK,AddressForm:UK,RememberedCards:tY,SavedCards:vQ,ReachForm:PJ},mixins:[Kr],data(){const t={CARD_FORM:"card_form",TEST_CARDS:"test_cards",REMEMBERED_CARDS:"remembered_cards",CVV_AND_PIN:"cvv_and_pin",CUSTOM_FIELD:"custom_field",SAVED_CARDS:"saved_cards"};return{baseViews:t,authViews:{PIN:"pin",OTP:"otp",PHONE:"phone",THREE_D_SECURE:"3DS",ADDRESS_VERIFICATION:"avs",REACH_ADDRESS:"reach_address",SEND_CARDHOLDER_NAME:"send_cardholder_name"},currentBaseView:t.CARD_FORM,pinMessage:this.$t("pinMessage"),authRequired:null,authRequestedAt:null,selectedCard:null,paymentRequestResult:null,billingAddress:null,savedCardsPhoneNumber:"",savedCardsEmail:"",savedCardsView:null,selectedCurrency:null}},beforeMount(){var s,a;this.isRecurringCardCharge||this.saveLastResponse(null);const t=(s=this.transaction)==null?void 0:s.savedCardsConfig,r=(a=this.transaction)==null?void 0:a.isTest,e=(t==null?void 0:t.enabled)&&(t==null?void 0:t.registered)&&!this.availableChannels.some(({key:i})=>i==="vault"),n=this.hasRememberedCards&&!this.useDefaultChannelView;r?this.changeView(this.baseViews.TEST_CARDS):e?this.changeView(this.baseViews.SAVED_CARDS):n&&this.changeView(this.baseViews.REMEMBERED_CARDS)},emits:["reload","attempt","callback","parentEvent"],computed:{...we(ae,["transaction","lastResponse","activeChannel","useDefaultChannelView","chargeType","availableChannels"]),...we(Qt,["cardChannelState"]),isSavingNewCard(){return this.cardChannelState.isSavingNewCard},authMessage(){return this.lastResponse&&this.lastResponse.message},currentAuthView(){return this.lastResponse&&this.lastResponse.data&&this.lastResponse.data.auth},otpWaitTime(){var t,r;return((r=(t=this.lastResponse)==null?void 0:t.data)==null?void 0:r.otp_delivery_wait_time_in_seconds)||j5},issuerNotice(){var e,n;const t=String((n=(e=this.cardChannelState)==null?void 0:e.resolvedBinBank)!=null?n:"").trim().toLowerCase();return["opay","paycom"].includes(t)?this.$t("opayPinNotice"):null},customField(){var t,r,e,n,s,a;return{name:(r=(t=this.lastResponse)==null?void 0:t.data)==null?void 0:r.field,type:(n=(e=this.lastResponse)==null?void 0:e.data)==null?void 0:n.type,pattern:(a=(s=this.lastResponse)==null?void 0:s.data)==null?void 0:a.format}},hasRememberedCards(){return this.transaction&&this.transaction.authorizations&&this.transaction.authorizations.length>0},countryCode(){return Ca[this.transaction.currency]},isRecurringCardCharge(){return Bi(this.chargeType)}},methods:{...It(ae,["saveLastResponse","setIsCharging","setPaymentInfoReuse","setTransactionAmount"]),...It(Qt,["setCardChannelState"]),sendEventToGrandParent(t,r){this.$emit("parentEvent",{eventName:t,data:r})},reset(){this.isRecurringCardCharge?this.sendEventToGrandParent("reload"):(this.saveLastResponse(null),this.setPaymentInfoReuse(!1),this.setTransactionAmount(this.transaction.amount,""),this.changeView(this.baseViews.CARD_FORM))},changeView(t,r){t===this.baseViews.SAVED_CARDS&&(r!=null&&r.subView)&&(this.savedCardsView=r.subView),this.currentBaseView=t},chargeCard(t){return{[Gs.DEFAULT]:()=>{if(t.cardCode){const{cardCode:e,selected_currency:n}=t;return this.transaction.chargeSavedCard({cardCode:e,selectedCurrency:n})}return this.transaction.chargeCard(t)},[Gs.RECURRING]:()=>this.transaction.resumeCardCharge({accessCode:this.transaction.accessCode,pin:this.transaction.card.pin,customFields:t}),[Gs.PREAUTHORIZATION]:()=>this.transaction.reserveFunds({preauthorizationId:this.transaction.id,publicKey:this.transaction.merchant.key,customFields:t})}[this.chargeType]},async charge(t={}){t.selected_currency&&(this.selectedCurrency=t.selected_currency);try{this.setIsCharging(!0),this.$emit("attempt");const r=await this.chargeCard(t)(),e=!!this.paymentRequestResult;this.onChargeResponse(r,{usedPaymentRequestApi:e})}catch(r){this.setIsCharging(!1),this.emitPaymentChannelError(this,r)}},async authenticate(t){try{this.setIsCharging(!0),this.trackAuthentication();const r=await this.transaction.authenticateCard(t);this.onChargeResponse(r)}catch(r){this.setIsCharging(!1),this.$emit("callback",{status:"requery"})}},requery(t){this.$emit("callback",{status:"requery",message:t})},async verifyAddress({address:t,city:r,state:e,zipCode:n}){try{this.setIsCharging(!0),this.trackAuthentication();const s=await this.transaction.verifyAddress({address:t,city:r,state:e,zipCode:n,...this.selectedCurrency&&{selectedCurrency:this.selectedCurrency}});this.onChargeResponse(s)}catch(s){this.setIsCharging(!1),this.$emit("callback",{status:"requery"})}},setSelectedCard(t){this.selectedCard=t,this.changeView(this.baseViews.CVV_AND_PIN)},async chargeRememberedCard({cvv:t,pin:r}){try{this.setIsCharging(!0),this.$emit("attempt",{usedSavedCard:!0});const{authorization_code:e,last4:n}=this.selectedCard,s={cvv:t,pin:r,cardLast4:n,authorizationCode:e},a=await this.transaction.chargeRememberedCard(s);this.onChargeResponse(a,{usedSavedCard:!0})}catch(e){this.setIsCharging(!1),this.$emit("callback",{status:"failed",data:e})}},trackAuthentication(){const t=Ea(new Date,this.authRequestedAt);hc({auth:this.authRequired,timeSpent:t})},onChargeResponse(t,r){this.setIsCharging(!1),r&&r.usedPaymentRequestApi&&(this.paymentRequestResult.complete("success"),this.$emit("attempt",{usedPaymentRequestApi:!0})),t.status==="auth"?(this.saveLastResponse(t),xm(t.data.auth),this.authRequestedAt=new Date,this.authRequired=t.data.auth):t.status===this.baseViews.CUSTOM_FIELD?(this.saveLastResponse(t),this.changeView(this.baseViews.CUSTOM_FIELD)):this.$emit("callback",t,r)},savePaymentRequestResult(t){this.paymentRequestResult=t},setIsSavingNewCard(t){this.setCardChannelState({isSavingNewCard:t})},setSavedCardsEmail(t){this.savedCardsEmail=t.target.value},setSavedCardsPhoneNumber(t){this.savedCardsPhoneNumber=t},saveBillingAddress(t){this.billingAddress=t}}},NJ={id:"card-channel","data-testid":"card-channel"},MJ={key:"pin"},LJ={key:"otp"},xJ={key:"phone"},OJ={key:"3DS"},FJ={key:"address"},DJ={key:"reach"},VJ={key:"cardholder_name"},BJ={key:"saved_cards"},UJ={key:"test_cards"},HJ={key:"card_form"},qJ={key:"remembered_cards"},WJ={key:"cvv_and_pin"},GJ={key:"custom_field"};function jJ(t,r,e,n,s,a){const i=P("pin-form"),o=P("otp-form"),l=P("phone-form"),d=P("three-d-secure"),u=P("address-form"),g=P("reach-form"),y=P("cardholder-name-form"),w=P("saved-cards"),k=P("test-cards"),E=P("card-form"),R=P("remembered-cards"),O=P("cvv-and-pin-form"),M=P("custom-field-form");return f(),v("div",NJ,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[a.currentAuthView===s.authViews.PIN?(f(),v("div",MJ,[$(i,{message:s.pinMessage,issuerNotice:a.issuerNotice,onCancel:a.reset,onSubmit:a.charge},null,8,["message","issuerNotice","onCancel","onSubmit"])])):a.currentAuthView===s.authViews.OTP?(f(),v("div",LJ,[$(o,{message:a.authMessage,onCancel:a.reset,onSubmit:a.authenticate,onRequery:a.requery,timeLimit:a.otpWaitTime},null,8,["message","onCancel","onSubmit","onRequery","timeLimit"])])):a.currentAuthView===s.authViews.PHONE?(f(),v("div",xJ,[$(l,{message:a.authMessage,onCancel:a.reset,onSubmit:a.authenticate,countryCode:a.countryCode},null,8,["message","onCancel","onSubmit","countryCode"])])):a.currentAuthView===s.authViews.THREE_D_SECURE?(f(),v("div",OJ,[$(d,{url:a.authMessage,onCancel:a.reset,onCallback:a.onChargeResponse},null,8,["url","onCancel","onCallback"])])):a.currentAuthView===s.authViews.ADDRESS_VERIFICATION?(f(),v("div",FJ,[$(u,{onSubmit:a.verifyAddress,onCallback:a.onChargeResponse,billingAddress:s.billingAddress,onCancel:a.reset},null,8,["onSubmit","onCallback","billingAddress","onCancel"])])):a.currentAuthView===s.authViews.REACH_ADDRESS?(f(),v("div",DJ,[$(g,{onSubmit:a.charge,onCallback:a.onChargeResponse,onCancel:a.reset},null,8,["onSubmit","onCallback","onCancel"])])):a.currentAuthView===s.authViews.SEND_CARDHOLDER_NAME?(f(),v("div",VJ,[$(y,{message:a.authMessage,onCancel:a.reset,onSubmit:a.charge},null,8,["message","onCancel","onSubmit"])])):s.currentBaseView===s.baseViews.SAVED_CARDS?(f(),v("div",BJ,[$(w,{isSavingNewCard:a.isSavingNewCard,email:s.savedCardsEmail,phoneNumber:s.savedCardsPhoneNumber,onSubmit:a.charge,onSwitch:a.changeView,preselectedView:s.savedCardsView,onSetIsSavingNewCard:a.setIsSavingNewCard,onSetSavedCardsPhoneNumber:a.setSavedCardsPhoneNumber,onSetSavedCardsEmail:a.setSavedCardsEmail},null,8,["isSavingNewCard","email","phoneNumber","onSubmit","onSwitch","preselectedView","onSetIsSavingNewCard","onSetSavedCardsPhoneNumber","onSetSavedCardsEmail"])])):s.currentBaseView===s.baseViews.TEST_CARDS?(f(),v("div",UJ,[$(k,{onSwitch:a.changeView,onSubmit:a.charge},null,8,["onSwitch","onSubmit"])])):s.currentBaseView===s.baseViews.CARD_FORM?(f(),v("div",HJ,[$(E,{onSwitch:a.changeView,onSubmit:a.charge,onPaymentRequestResult:a.savePaymentRequestResult,onBillingAddress:a.saveBillingAddress,isSavingNewCard:a.isSavingNewCard,savedCardsEmail:s.savedCardsEmail,savedCardsPhoneNumber:s.savedCardsPhoneNumber,onSetIsSavingNewCard:a.setIsSavingNewCard,onSetSavedCardsEmail:a.setSavedCardsEmail,onSetSavedCardsPhoneNumber:a.setSavedCardsPhoneNumber},null,8,["onSwitch","onSubmit","onPaymentRequestResult","onBillingAddress","isSavingNewCard","savedCardsEmail","savedCardsPhoneNumber","onSetIsSavingNewCard","onSetSavedCardsEmail","onSetSavedCardsPhoneNumber"])])):s.currentBaseView===s.baseViews.REMEMBERED_CARDS?(f(),v("div",qJ,[$(R,{onSelectedCard:a.setSelectedCard,onCancel:a.reset,onCallback:a.onChargeResponse},null,8,["onSelectedCard","onCancel","onCallback"])])):s.currentBaseView===s.baseViews.CVV_AND_PIN?(f(),v("div",WJ,[$(O,{cardType:s.selectedCard.brand,onAuthorize:a.chargeRememberedCard,onSwitch:a.changeView,onCallback:a.onChargeResponse},null,8,["cardType","onAuthorize","onSwitch","onCallback"])])):s.currentBaseView===s.baseViews.CUSTOM_FIELD?(f(),v("div",GJ,[$(M,{message:a.authMessage,field:a.customField,onCancel:a.reset,onSubmit:a.charge},null,8,["message","field","onCancel","onSubmit"])])):D("",!0)]),_:1})])}typeof a3=="function"&&a3(j6);const ZJ=ee(j6,[["render",jJ]]),KJ="/assets/vault-DR0QXgjM.svg";function i3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{payFasterViaVault:e=>{const{normalize:n}=e;return n(["Access your saved cards and bank accounts for faster, more secure payments"])},payWithVault:e=>{const{normalize:n}=e;return n(["Pay with Vault"])}}}})}const Z6={name:"VaultLogin",components:{PaymentButton:dt},emits:["payWithVault"],methods:{handlePayWithVault(){this.$emit("payWithVault")}}},YJ={class:"vault-login"},QJ={class:"vault-login__instruction"};function JJ(t,r,e,n,s,a){const i=P("payment-button");return f(),v("div",YJ,[r[0]||(r[0]=m("div",{class:"vault-login__icon-container"},[m("img",{src:KJ,alt:"vault logo"})],-1)),m("p",QJ,T(t.$t("payFasterViaVault")),1),$(i,{onClick:a.handlePayWithVault,"data-testid":"pay-with-vault"},{default:ne(()=>[Be(T(t.$t("payWithVault")),1)]),_:1},8,["onClick"])])}typeof i3=="function"&&i3(Z6);const K6=ee(Z6,[["render",JJ],["__scopeId","data-v-dd5a2c4d"]]),XJ={name:"VaultChannel",emits:["callback"],components:{VaultLogin:K6,PayWithVault:I9,VaultVerifyOtp:b9},data(){const t={LOGIN:"vault-login",OTP:"vault-otp",PAYMENT_INSTRUMENTS:"vault-payment-instruments"};return{views:t,currentView:t.LOGIN,paymentInstrumentTypes:[Or.CARD,Or.BANK]}},computed:{...we(ae,["transaction","activeChannel"]),...we(Qt,["vaultChannelState"])},created(){this.activeChannel.view?(this.changeView(this.activeChannel.view),this.setActiveChannel({name:"vault"})):this.vaultChannelState.token?this.changeView(this.views.PAYMENT_INSTRUMENTS):this.changeView(this.views.LOGIN)},methods:{...It(ae,["setActiveChannel"]),...It(Qt,["setCardChannelState"]),callback(t){this.$emit("callback",t)},changeView(t){t===this.views.PAYMENT_INSTRUMENTS&&!this.vaultChannelState.token?this.currentView=this.views.OTP:this.currentView=t},addPaymentInstrument(t){t===Or.CARD?(this.setCardChannelState({isSavingNewCard:!0}),this.setActiveChannel({name:"card"})):t===Or.BANK&&this.setActiveChannel({name:"bank",view:"banktransfermandate",subview:"account-form"})}}};function eX(t,r,e,n,s,a){const i=P("vault-login"),o=P("pay-with-vault"),l=P("vault-verify-otp");return f(),se(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>{var d,u,g;return[s.currentView===s.views.LOGIN?(f(),se(i,{key:s.views.LOGIN,onPayWithVault:r[0]||(r[0]=y=>a.changeView(s.views.OTP))})):s.currentView===s.views.PAYMENT_INSTRUMENTS?(f(),se(o,{key:s.views.PAYMENT_INSTRUMENTS,types:s.paymentInstrumentTypes,onCallback:a.callback,onAddPaymentInstrument:a.addPaymentInstrument},null,8,["types","onCallback","onAddPaymentInstrument"])):s.currentView===s.views.OTP?(f(),se(l,{key:s.views.OTP,email:(d=t.transaction)==null?void 0:d.email,phoneNumber:(g=(u=t.transaction)==null?void 0:u.linkConfig)==null?void 0:g.registered_phone,onOtpVerified:r[1]||(r[1]=y=>a.changeView(s.views.PAYMENT_INSTRUMENTS)),isRegisteredUser:""},null,8,["email","phoneNumber"])):D("",!0)]}),_:1})}const tX=ee(XJ,[["render",eX]]),nX="/assets/eft_ozow-DZ4QyY2B.svg";function o3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{authMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Waiting for response from ",s(a("provider"))])}},fr:{authMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["En attente de réponse de la part du ",s(a("provider"))])}}}})}const rX={class:"redirect"},sX=["src"],aX="display: block; border: 0px none transparent; overflow-x: hidden;\n overflow-y: hidden; visibility: visible; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none; position: relative; left: 0; top: 0; width: 100%; height: 100%;",Y6={__name:"OzowRedirect",props:{url:String,provider:Object},emits:["closed"],setup(t,{emit:r}){const e=r,n=ge(!1),s=ae(),a=te(()=>s.transaction);let i=null;const o=()=>{e("closed"),a.value.logAuthWindowClose(),l()},l=()=>{const u=Ea(new Date,i);hc({auth:"EFT",timeSpent:u})},d=()=>{window.addEventListener("message",({data:u})=>{typeof u=="string"&&(n.value=u==="loaded:AuthPage",u.split(" ")[0]==="PaystackAuth"&&o())})};return An(()=>{i=new Date,d()}),(u,g)=>(f(),v("div",rX,[$(Et,{icon:"redirect",message:u.$t("authMessage",{provider:t.provider.gateway})},null,8,["message"]),$(tn),m("div",{class:pt(["iframe",{iframe__content:!n.value}])},[m("button",{onClick:g[0]||(g[0]=y=>o()),class:"iframe__close"},T(u.$t("close")),1),m("iframe",{src:t.url,ref:"iframe",style:aX,frameBorder:"0",allowtransparency:"true"},null,8,sX)],2)]))}};typeof o3=="function"&&o3(Y6);const iX=ee(Y6,[["__scopeId","data-v-27d82e07"]]);function l3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{message:e=>{const{normalize:n}=e;return n(["Please click the button below to authenticate your payment"])},ozowIcon:e=>{const{normalize:n}=e;return n(["Ozow Icon"])},authenticate:e=>{const{normalize:n}=e;return n(["Authenticate"])},selectDifferentBank:e=>{const{normalize:n}=e;return n(["Select a different bank"])}},fr:{message:e=>{const{normalize:n}=e;return n(["Cliquez sur le bouton ci-dessous pour authentifier votre paiement"])},ozowIcon:e=>{const{normalize:n}=e;return n(["Icône Ozow"])},authenticate:e=>{const{normalize:n}=e;return n(["Authentifier"])}}}})}const oX={key:0,class:"eftchannel"},lX=["alt"],cX={class:"eftchannel__message","data-testid":"eft-instruction"},uX={key:0,class:"eftchannel__select-different-bank-container"},Q6={__name:"OzowChannel",emits:["callback","attempt"],setup(t,{emit:r}){const e={REDIRECT:"redirect",AUTHENTICATE:"authenticate"},n={name:"Ozow",gateway:"EFT_OZOW"},s=ge(e.AUTHENTICATE),a=ae(),i=te(()=>a.transaction);function o(E){s.value=E}const l=r;function d(){l("callback",{status:"requery"})}const u=ge(null);async function g(){try{const{data:E}=await i.value.getEFTUrl({eftGateway:n.gateway});u.value=E,i.value.listenForEFTCharge(y),o(e.REDIRECT)}catch(E){l("callback",{status:"failed",message:E})}}function y(E,R){E.status!=="error"&&(l("attempt"),l("callback",E),R())}function w(){a.setActiveChannel({name:dr.EFT_CHANNELS})}const{hasMoreThanOneEftChannel:k}=Vo();return(E,R)=>(f(),v("div",null,[s.value===e.AUTHENTICATE?(f(),v("div",oX,[m("div",null,[m("img",{src:nX,alt:E.$t("ozowIcon"),class:"eftchannel__icon"},null,8,lX),m("div",cX,T(E.$t("message")),1)]),m("div",null,[$(dt,{onClick:g,"data-testid":"authenticate-button",name:"authenticate-button"},{default:ne(()=>[Be(T(E.$t("authenticate")),1)]),_:1})]),fe(k)?(f(),v("div",uX,[m("a",{onClick:jt(w,["prevent"]),class:"eftchannel__select-different-bank-container__text"},T(E.$t("selectDifferentBank")),1)])):D("",!0)])):D("",!0),s.value===e.REDIRECT?(f(),se(iX,{key:1,url:u.value.url,onClosed:d,provider:n},null,8,["url"])):D("",!0)]))}};typeof l3=="function"&&l3(Q6);const dX=ee(Q6,[["__scopeId","data-v-9e3b20e4"]]),Oa={AUTHENTICATE:"AUTHENTICATE",PAYMENT_INSTRUCTIONS:"PAYMENT_INSTRUCTIONS",RETRY_CONFIRMATION:"RETRY_CONFIRMATION"},Lr={CELLPHONE:"CELLPHONE",ID_NUMBER:"IDNUMBER",ACCOUNT_NUMBER:"ACCOUNTNUMBER"},Hh=120,J6="data:image/svg+xml,%3csvg%20width='126'%20height='48'%20viewBox='0%200%20126%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.3208%2024C2.3208%2011.9956%2012.0523%202.26416%2024.0567%202.26416H101.943C113.948%202.26416%20123.679%2011.9956%20123.679%2024C123.679%2036.0044%20113.948%2045.7359%20101.943%2045.7359H24.0566C12.0523%2045.7359%202.3208%2036.0044%202.3208%2024Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.0566%200H101.943C115.198%200%20125.943%2010.7452%20125.943%2024C125.943%2037.2548%20115.198%2048%20101.943%2048H24.0566C10.8018%2048%200.0566406%2037.2548%200.0566406%2024C0.0566406%2010.7452%2010.8018%200%2024.0566%200ZM24.0566%202.26415C12.0523%202.26415%202.32079%2011.9956%202.32079%2024C2.32079%2036.0044%2012.0523%2045.7359%2024.0566%2045.7359H101.943C113.948%2045.7359%20123.679%2036.0044%20123.679%2024C123.679%2011.9956%20113.948%202.26415%20101.943%202.26415H24.0566Z'%20fill='%230033A0'/%3e%3cpath%20d='M43.3817%2013.1321H28.3943V19.5411C28.3943%2021.7705%2030.2298%2023.5837%2032.4732%2023.5837H40.3114C43.1171%2023.5837%2045.4101%2026.0104%2045.4101%2028.804V34.8679C50.845%2033.975%2055.0067%2029.2642%2055.0067%2024.011C55.0067%2018.1169%2049.7702%2013.1321%2043.3761%2013.1321H43.3817Z'%20fill='%23E61414'/%3e%3cpath%20d='M37.175%2024.3561H29.3643C26.5587%2024.3561%2024.2601%2022.1102%2024.2601%2019.322V13.1321C18.1913%2013.4772%2013.3462%2018.3141%2013.3462%2023.989C13.3462%2029.664%2018.5827%2034.8679%2024.9767%2034.8679H41.2539V28.4151C41.2539%2026.1856%2039.4184%2024.3561%2037.1694%2024.3561'%20fill='%2300486D'/%3e%3cpath%20d='M100.714%2040.7841C100.138%2040.7841%2099.2577%2040.6931%2098.5902%2040.5414V37.0523C99.2577%2037.1737%2099.8948%2037.2343%20100.441%2037.2343C101.351%2037.2343%20101.958%2036.7186%20102.201%2036.0511L102.747%2034.5645L96.9519%2019.1216H101.655L105.053%2029.4371H105.144L108.451%2019.1216H112.698L106.266%2036.9916C105.295%2039.7829%20103.232%2040.7841%20100.714%2040.7841Z'%20fill='%230033A0'/%3e%3cpath%20d='M87.06%2035.2016C83.935%2035.2016%2081.7202%2033.4723%2081.7202%2030.499C81.7202%2027.1313%2085.0576%2025.5233%2088.1522%2025.5233H91.6109V24.1884C91.6109%2022.732%2090.6401%2022.0039%2088.8804%2022.0039C87.2724%2022.0039%2086.3015%2022.6714%2086.3015%2023.6119V24.0973H82.418V23.6119C82.418%2020.1835%2085.7554%2018.8182%2089.0321%2018.8182C92.6121%2018.8182%2095.9495%2020.1228%2095.9495%2024.0367V31.4395C95.9495%2032.4104%2096.1012%2034.5342%2096.2226%2034.8679H92.0053L91.8536%2033.2599H91.7626C90.4277%2034.8679%2088.8804%2035.2016%2087.06%2035.2016ZM88.5466%2031.925C90.9435%2031.925%2091.6109%2030.681%2091.6109%2029.1034V28.2842H88.6073C87.06%2028.2842%2086.0284%2028.7696%2086.0284%2030.1046C86.0284%2031.2575%2086.9083%2031.925%2088.5466%2031.925Z'%20fill='%230033A0'/%3e%3cpath%20d='M64.1272%2034.8679V13.2357H73.4111C77.9014%2013.2357%2080.8443%2015.8753%2080.8443%2020.1228C80.8443%2023.5209%2078.6599%2027.0706%2073.5628%2027.0706H68.8298V34.8679H64.1272ZM68.8298%2023.2781H72.7133C74.8674%2023.2781%2076.2327%2022.1556%2076.2327%2020.1835C76.2327%2017.9687%2074.7764%2017.0585%2072.683%2017.0585H68.8298V23.2781Z'%20fill='%230033A0'/%3e%3c/svg%3e";function Ya(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{authenticate:{logoAltText:e=>{const{normalize:n}=e;return n(["Capitec Pay"])},instruction:{default:e=>{const{normalize:n}=e;return n(["Enter the details linked to your Capitec account"])},cellphoneNumber:e=>{const{normalize:n}=e;return n(["Enter the mobile number linked to your Capitec account"])},idNumber:e=>{const{normalize:n}=e;return n(["Enter the ID number linked to your Capitec account"])},accountNumber:e=>{const{normalize:n}=e;return n(["Enter the account number linked to your Capitec account"])}},selectDifferentBank:e=>{const{normalize:n}=e;return n(["Select a different bank"])},infoBanner:e=>{const{normalize:n}=e;return n(["Have your phone ready to approve the payment in your Capitec app."])},form:{identifierKeyLabels:{chooseIdentifier:e=>{const{normalize:n}=e;return n(["Choose Identifier"])},cellphoneNumber:e=>{const{normalize:n}=e;return n(["Cellphone Number"])},idNumber:e=>{const{normalize:n}=e;return n(["ID Number"])},accountNumber:e=>{const{normalize:n}=e;return n(["Account Number"])}},validation:{cellphoneNumber:e=>{const{normalize:n}=e;return n(["Please enter a valid 10-digit cellphone number"])},idNumber:e=>{const{normalize:n}=e;return n(["Please enter a valid 13-digit ID number"])},accountNumber:e=>{const{normalize:n}=e;return n(["Please enter a valid 10-digit account number"])}},accountNumberInputPlaceholder:e=>{const{normalize:n}=e;return n(["Enter your account number"])},confirm:e=>{const{normalize:n}=e;return n(["Confirm"])}}},paymentInstructions:{heading:e=>{const{normalize:n}=e;return n(["Complete your payment"])},steps:{openApp:e=>{const{normalize:n}=e;return n(['Open your Capitec app'])},transact:e=>{const{normalize:n}=e;return n(['Tap on Transact in the bottom navigation'])},selectCapitecPay:e=>{const{normalize:n}=e;return n(['Tap on Capitec Pay'])},approve:e=>{const{normalize:n}=e;return n(['Tap on Pay to approve the payment'])}},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Approve payment in"])},approvedPayment:e=>{const{normalize:n}=e;return n(["I've approved the payment"])},openInCapitecApp:e=>{const{normalize:n}=e;return n(["Open in Capitec app"])}},retryConfirmation:{heading:e=>{const{normalize:n}=e;return n(["It's taking longer than expected to confirm your payment."])},retryConfirmationButton:e=>{const{normalize:n}=e;return n(["Retry confirmation"])}},failureMessage:e=>{const{normalize:n}=e;return n(["Charge failed. Please try again."])}},fr:{authenticate:{instruction:e=>{const{normalize:n}=e;return n(["Enter the mobile number linked to your Capitec account"])}}},ar:{authenticate:{instruction:e=>{const{normalize:n}=e;return n(["Enter the mobile number linked to your Capitec account"])}}}}})}const hX={class:"capitec-pay"},mX={class:"capitec-pay__logo-container"},pX=["alt"],fX={class:"capitec-pay__instructions"},_X={class:"form-group"},gX={class:"select-wrap"},vX=["value"],yX={class:"test"},bX={class:"capitec-pay__error","data-testid":"identifier-value-error"},CX={class:"capitec-pay__info-banner"},wX={key:0},kX={class:"capitec-pay__select-different-bank-container"},SX="0836599418",X6={__name:"CapitecPayAuthenticate",emits:["callback","switchToPaymentInstructions"],setup(t,{emit:r}){const{t:e}=vn(),n=ge({}),s=ge([]);Vr(()=>{s.value=[{label:e("authenticate.form.identifierKeyLabels.cellphoneNumber"),value:Lr.CELLPHONE},{label:e("authenticate.form.identifierKeyLabels.idNumber"),value:Lr.ID_NUMBER},{label:e("authenticate.form.identifierKeyLabels.accountNumber"),value:Lr.ACCOUNT_NUMBER}],n.value={[Lr.CELLPHONE]:e("authenticate.form.validation.cellphoneNumber"),[Lr.ID_NUMBER]:e("authenticate.form.validation.idNumber"),[Lr.ACCOUNT_NUMBER]:e("authenticate.form.validation.accountNumber")}});const a=ae(),i=te(()=>a.transaction),o=ge(Lr.CELLPHONE),l=Qa({touched:!1,value:i.value.isTest?SX:"",error:""}),d=ge(!1),u=te(()=>{const N={[Lr.CELLPHONE]:"authenticate.instruction.cellphoneNumber",[Lr.ID_NUMBER]:"authenticate.instruction.idNumber",[Lr.ACCOUNT_NUMBER]:"authenticate.instruction.accountNumber",DEFAULT:"authenticate.instruction.default"},A=N[o.value]||N.DEFAULT;return e(A)}),g=()=>{const N=i.value.validateIdentifier({identifierKey:o.value,identifierValue:S2(l.value)});return l.error=N?"":n.value[o.value],N},y=()=>{S2(l.value)&&i.value.logInput(o.value),l.touched=!0,g()},w=()=>{g()},k=()=>{l.touched=!1,l.value=""},E=N=>{o.value=N.target.value,i.value.logCapitecPayAccountIdentifierSwitch(o.value),k()},R=r,O=async()=>{var N,A;try{if(i.value.logCapitecPayConfirmation(o.value),d.value=!0,g()){const V=await i.value.authenticateCapitecPay({identifierKey:o.value,identifierValue:S2(l.value)});((N=V.data)==null?void 0:N.status)===On.FAILED&&R("callback",{status:On.FAILED,message:V.message}),((A=V.data)==null?void 0:A.status)===On.SUCCESS&&R("switchToPaymentInstructions",V.data)}}catch(V){R("callback",{status:On.FAILED,data:V.message})}finally{d.value=!1}},M=()=>{a.setActiveChannel({name:dr.EFT_CHANNELS})},{hasMoreThanOneEftChannel:x}=Vo();return _d(()=>{k()}),(N,A)=>(f(),v("div",hX,[m("div",mX,[m("img",{src:J6,alt:fe(e)("authenticate.logoAltText")},null,8,pX)]),m("p",fX,T(u.value),1),m("form",{onSubmit:jt(O,["prevent"])},[m("div",_X,[m("div",gX,[ct(m("select",{name:"identifierKey",class:"select","onUpdate:modelValue":A[0]||(A[0]=V=>o.value=V),onChange:E},[(f(!0),v(gt,null,Ot(s.value,V=>(f(),v("option",{key:V.value,value:V.value},T(V.label),9,vX))),128))],544),[[ks,o.value]]),A[4]||(A[4]=m("div",{class:"select-icon"},null,-1))])]),m("div",yX,[o.value===fe(Lr).CELLPHONE?(f(),se(Ui,{key:0,"country-code":"ZA",required:!0,placeholder:"Enter your cellphone number",modelValue:l.value,"onUpdate:modelValue":[A[1]||(A[1]=V=>l.value=V),w],onOnBlur:y,hasError:!!l.error&&l.touched},null,8,["modelValue","hasError"])):D("",!0),o.value===fe(Lr).ID_NUMBER?ct((f(),v("input",{key:1,name:"id-number",class:pt(["input",{"input--error":!!l.error&&l.touched}]),type:"tel",required:!0,placeholder:"Enter your ID number","onUpdate:modelValue":A[2]||(A[2]=V=>l.value=V),onBlur:y,onInput:w},null,34)),[[Wt,l.value]]):D("",!0),o.value===fe(Lr).ACCOUNT_NUMBER?ct((f(),v("input",{key:2,name:"account-number",class:pt([{"input--error":!!l.error&&l.touched},"input"]),type:"tel",required:!0,placeholder:"Enter your account number","onUpdate:modelValue":A[3]||(A[3]=V=>l.value=V),onBlur:y,onInput:w},null,34)),[[Wt,l.value]]):D("",!0)]),m("p",bX,T(l.touched&&l.error?l.error:""),1),$(dt,{name:"authenticate-button",loading:d.value,"data-testid":"authenticate-button"},{default:ne(()=>[Be(T(fe(e)("authenticate.form.confirm")),1)]),_:1},8,["loading"])],32),m("div",CX,[$(w6,null,{default:ne(()=>[Be(T(fe(e)("authenticate.infoBanner")),1)]),_:1})]),fe(x)?(f(),v("div",wX,[m("div",kX,[m("a",{onClick:jt(M,["prevent"]),class:"capitec-pay__select-different-bank-container__text"},T(fe(e)("authenticate.selectDifferentBank")),1)])])):D("",!0)]))}};typeof Ya=="function"&&Ya(X6);const EX=ee(X6,[["__scopeId","data-v-c349dd77"]]),TX={class:"payment-instructions"},$X={class:"payment-instructions__heading"},IX={class:"payment-instructions__steps-container"},AX=["innerHTML"],zX=["innerHTML"],RX=["innerHTML"],PX=["innerHTML"],NX={class:"countdown-timer"},MX={key:0,class:"open-in-capitec-pay-app"},LX={class:"approved-payment"},xX="https://pay.capitecbank.co.za/payme/cappay",e7={__name:"CapitecPayPaymentInstructions",props:{paymentConfirmationMaxTimeInSeconds:{type:Number,default:Hh},isRequeryFetching:{type:Boolean,default:!1}},emits:["switchToRetryConfirmation","queryTransactionStatus"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=te(()=>n.paymentConfirmationMaxTimeInSeconds||Hh),a=te(()=>n.isRequeryFetching),i=Fn(),o=r,l=()=>{o("switchToRetryConfirmation")},d=async()=>{o("queryTransactionStatus")},u=()=>{window.open(xX,"_blank")};return(g,y)=>(f(),v(gt,null,[m("div",TX,[m("p",$X,T(fe(e)("paymentInstructions.heading")),1),m("div",IX,[m("div",null,[y[0]||(y[0]=m("div",{class:"payment-instructions__steps-container__bullet"},null,-1)),m("span",{innerHTML:fe(e)("paymentInstructions.steps.openApp")},null,8,AX)]),m("div",null,[y[1]||(y[1]=m("div",{class:"payment-instructions__steps-container__bullet"},null,-1)),m("span",{innerHTML:fe(e)("paymentInstructions.steps.transact")},null,8,zX)]),m("div",null,[y[2]||(y[2]=m("div",{class:"payment-instructions__steps-container__bullet"},null,-1)),m("span",{innerHTML:fe(e)("paymentInstructions.steps.selectCapitecPay")},null,8,RX)]),m("div",null,[y[3]||(y[3]=m("div",{class:"payment-instructions__steps-container__bullet"},null,-1)),m("span",{innerHTML:fe(e)("paymentInstructions.steps.approve")},null,8,PX)])])]),m("div",NX,[$(Ss,{countdownDuration:s.value,countdownTimerMessage:fe(e)("paymentInstructions.countdownTimerMessage"),onCountdownComplete:l},null,8,["countdownDuration","countdownTimerMessage"])]),fe(i)?(f(),v("div",MX,[$(dt,{onClick:u,name:"open-capitec-app-button","data-testid":"open-capitec-app-button"},{default:ne(()=>[Be(T(fe(e)("paymentInstructions.openInCapitecApp")),1)]),_:1})])):D("",!0),m("div",LX,[$(dt,{variant:"light",onClick:d,loading:a.value,name:"approved-payment-button","data-testid":"approved-payment-button"},{default:ne(()=>[Be(T(fe(e)("paymentInstructions.approvedPayment")),1)]),_:1},8,["loading"])])],64))}};typeof Ya=="function"&&Ya(e7);const OX=ee(e7,[["__scopeId","data-v-9b4848ca"]]),FX={class:"capitec-pay"},DX={class:"capitec-pay__logo-container"},VX=["alt"],BX={class:"capitec-pay__heading"},t7={__name:"CapitecPayRetryConfirmation",props:{isRequeryFetching:{type:Boolean,default:!1}},emits:["switchToRetryConfirmation","requeryTransactionStatus"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=r,a=te(()=>n.isRequeryFetching),i=async()=>{s("requeryTransactionStatus")};return(o,l)=>(f(),v(gt,null,[m("div",FX,[m("div",DX,[m("img",{src:J6,alt:fe(e)("authenticate.logoAltText")},null,8,VX)])]),m("p",BX,T(fe(e)("retryConfirmation.heading")),1),$(dt,{variant:"light",onClick:i,"data-testid":"retry-confirmation-button",name:"retry-confirmation-button",loading:a.value},{default:ne(()=>[Be(T(fe(e)("retryConfirmation.retryConfirmationButton")),1)]),_:1},8,["loading"])],64))}};typeof Ya=="function"&&Ya(t7);const UX=ee(t7,[["__scopeId","data-v-bfe14e14"]]);function HX(){const t=ae(),r=te(()=>t.transaction),e=ge(!1);return{isRequeryFetching:e,requeryTransactionStatus:async()=>{try{return e.value=!0,await r.value.requeryCapitecPay()}catch(s){return{status:On.FAILED,message:s.message}}finally{e.value=!1}}}}const n7={__name:"CapitecPay",emits:["callback"],setup(t,{emit:r}){const e={INITIAL_REQUERY_IN_MILLISECONDS:9e4,REQUERY_INTERVAL_IN_MILLISECONDS:1e4,MAX_POLLING_DURATION_IN_MILLISECONDS:6e5},{t:n}=vn(),s=ge({initialRequery:null,requeryInterval:null,startPollingTime:null}),a=ge(!1),i=ge(null),o=ae(),l=te(()=>o.transaction),{isRequeryFetching:d,requeryTransactionStatus:u}=HX(),g=ge(Oa.AUTHENTICATE),y=ge(Hh),w=r,k=j=>{w("callback",j)},E=j=>(j==null?void 0:j.status)===On.SUCCESS||(j==null?void 0:j.status)===On.FAILED,R=()=>{clearTimeout(s.value.initialRequery),clearTimeout(s.value.requeryInterval),s.value.initialRequery=null,s.value.requeryInterval=null},O=j=>{var J;a.value||(a.value=!0,R(),(J=i.value)==null||J.call(i),i.value=null,(j==null?void 0:j.status)===On.SUCCESS?w("callback",j):(j==null?void 0:j.status)===On.FAILED&&w("callback",{...j,message:(j==null?void 0:j.message)||n("failureMessage")}))},M=async()=>{if(a.value)return;R(),l.value.logCapitecPayConfirmedPaymentApproval();const j=await u();if(!a.value){if(E(j))return O(j);F(),S()}},x=async()=>{if(a.value)return;s.value.startPollingTime||(s.value.startPollingTime=Date.now());const j=await u();a.value||(E(j)?O(j):Date.now()-s.value.startPollingTime(l.value.logCapitecPayRetryConfirmation(),x()),A=j=>{g.value=j},V=j=>{j!=null&&j.timeToLive&&(y.value=j.timeToLive),A(Oa.PAYMENT_INSTRUCTIONS),z()},F=()=>{A(Oa.RETRY_CONFIRMATION)},S=()=>{clearTimeout(s.value.requeryInterval),s.value.requeryInterval=setTimeout(()=>{x()},e.REQUERY_INTERVAL_IN_MILLISECONDS)},z=()=>{clearTimeout(s.value.initialRequery),s.value.initialRequery=setTimeout(()=>{x()},e.INITIAL_REQUERY_IN_MILLISECONDS)},U=(j,J)=>{var de;if((de=i.value)!=null||(i.value=J!=null?J:null),(j==null?void 0:j.status)==="error"){J==null||J(),i.value=null;return}E(j)&&O(j)};return An(()=>{l.value.listenForCapitecPayCharge(U)}),Di(()=>{var j;R(),(j=i.value)==null||j.call(i),i.value=null}),_d(()=>{R()}),Ja(()=>{a.value||(g.value===Oa.PAYMENT_INSTRUCTIONS?z():g.value===Oa.RETRY_CONFIRMATION&&S())}),(j,J)=>(f(),v("div",null,[g.value===fe(Oa).AUTHENTICATE?(f(),se(EX,{key:0,onSwitchToPaymentInstructions:V,onCallback:k})):D("",!0),g.value===fe(Oa).PAYMENT_INSTRUCTIONS?(f(),se(OX,{key:1,onQueryTransactionStatus:M,onSwitchToRetryConfirmation:F,paymentConfirmationMaxTimeInSeconds:y.value,isRequeryFetching:fe(d)},null,8,["paymentConfirmationMaxTimeInSeconds","isRequeryFetching"])):D("",!0),g.value===fe(Oa).RETRY_CONFIRMATION?(f(),se(UX,{key:2,onRequeryTransactionStatus:N,isRequeryFetching:fe(d)},null,8,["isRequeryFetching"])):D("",!0)]))}};typeof Ya=="function"&&Ya(n7);const r7="data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2013%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%201H12M12%201V5M12%201L6%207'%20stroke='%2309A5DB'%20stroke-width='1.4'%20stroke-linecap='round'/%3e%3cpath%20d='M4.5%201H1V12H12V9'%20stroke='%2309A5DB'%20stroke-width='1.4'%20stroke-linecap='round'/%3e%3c/svg%3e";function c3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{title:e=>{const{normalize:n}=e;return n(["Approve the payment with the Wave app"])},instructions:{stepOne_desktop:e=>{const{normalize:n}=e;return n(["Scan QR-code in the Wave app or with your phone camera"])},stepOne_mobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Open Wave app "])},stepTwo:e=>{const{normalize:n}=e;return n(["Review the amount and tap on 'Confirm'"])},stepThree:e=>{const{normalize:n}=e;return n(["Return here to complete the transaction"])}},paymentCompleted:e=>{const{normalize:n}=e;return n(["I've completed the transaction"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Expires in"])},openInWaveApp:e=>{const{normalize:n}=e;return n(["Open Wave app"])}},fr:{title:e=>{const{normalize:n}=e;return n(["Autorisez ce paiement avec l'application Wave"])},instructions:{stepOne_desktop:e=>{const{normalize:n}=e;return n(["Scannez le code QR dans l'application Wave ou avec l'appareil photo de votre téléphone"])},stepOne_mobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Ouvrez l'application Wave "])},stepTwo:e=>{const{normalize:n}=e;return n(["Vérifiez le montant et appuyez sur 'Confirmer'"])},stepThree:e=>{const{normalize:n}=e;return n(["Revenez ici pour finaliser la transaction"])}},paymentCompleted:e=>{const{normalize:n}=e;return n(["J'ai terminé la transaction"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Expire dans"])},openInWaveApp:e=>{const{normalize:n}=e;return n(["Ouvrez l'application Wave"])}}}})}const qX={class:"wrapper"},WX={key:0},GX={class:"contents"},jX={key:1},ZX={class:"contents"},KX=["src"],s7={__name:"WavePaymentInstructions",props:{countdownDuration:{type:Number,default:60},qrData:{type:Object,required:!0}},emits:["confirm","cancel"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=ge(!1),a=ge(Fn()),i=r,o=te(()=>[e("instructions.stepOne_".concat(a.value?"mobile":"desktop"),{icon:r7,qrCode:n.qrData.code}),e("instructions.stepTwo"),e("instructions.stepThree")]),l=()=>{s.value=!0},d=()=>{i("confirm")},u=()=>{window.open(n.qrData.code,"_blank")};return(g,y)=>(f(),v("div",qX,[a.value?(f(),v("div",WX,[$(Et,{message:fe(e)("title"),role:"heading"},null,8,["message"]),m("div",GX,[$(xo,{instructions:o.value},null,8,["instructions"])])])):(f(),v("div",jX,[s.value?D("",!0):(f(),se(tn,{key:0})),ct(m("div",null,[$(Et,{message:fe(e)("title"),role:"heading"},null,8,["message"]),m("div",ZX,[m("img",{name:"qrCodeImage",alt:"Wave QR Code",src:t.qrData.url,onLoad:l},null,40,KX),$(xo,{instructions:o.value},null,8,["instructions"])])],512),[[hr,s.value]])])),$(Ss,{"data-testid":"wave-counter",countdownDuration:t.countdownDuration,onCountdownComplete:d,countdownTimerMessage:fe(e)("countdownTimerMessage"),class:"countdown"},null,8,["countdownDuration","countdownTimerMessage"]),a.value?(f(),se(dt,{key:2,"data-testid":"wave-app",onClick:u},{default:ne(()=>[Be(T(fe(e)("openInWaveApp")),1)]),_:1})):D("",!0),$(dt,{class:"button--primary",variant:"light","data-testid":"wave-confirm-button",onClick:d},{default:ne(()=>[Be(T(fe(e)("paymentCompleted")),1)]),_:1})]))}};typeof c3=="function"&&c3(s7);const YX=ee(s7,[["__scopeId","data-v-49d143ad"]]),QX={key:"wave_payment_loading"},JX={key:"wave_payment_instructions"},XX={__name:"WaveCiChannel",emits:["callback","attempt"],setup(t,{emit:r}){const e={WAVE_PAYMENT_LOADING:"wave_payment_loading",WAVE_PAYMENT_INSTRUCTIONS:"wave_payment_instructions"},n=ge(""),s=ge(0),a=ge(null),i=ge(e.WAVE_PAYMENT_LOADING),o=ae(),l=te(()=>o.transaction),d=o.setIsCharging,u=r,g=()=>{u("callback",{status:"requery"})},y=R=>{Object.values(e).includes(R)&&(i.value=R)},w=(R,O)=>{R.status!=="error"&&(u("callback",R),O())},k=()=>{l.value.listenForMobileMoneyCharge(w)},E=R=>{const{status:O,data:M}=R;if(O===Kh.SUCCESS){const{message:x,type:N,timer:A,qrURL:V,qrCode:F}=M.display;n.value=x,s.value=A,a.value={url:V,code:F};const S=e[N==null?void 0:N.toUpperCase()]||e.WAVE_PAYMENT_LOADING;y(S),S===e.WAVE_PAYMENT_INSTRUCTIONS&&k()}else u("callback",R)};return Ja(async()=>{try{d(!0),u("attempt");const R=await l.value.chargeMobileMoney({provider:"WAVE_CI"});d(!1),E(R)}catch(R){u("callback",R)}}),(R,O)=>(f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[i.value===e.WAVE_PAYMENT_LOADING?(f(),v("div",QX,[$(tn)])):i.value===e.WAVE_PAYMENT_INSTRUCTIONS?(f(),v("div",JX,[$(YX,{onConfirm:g,countdownDuration:s.value,qrData:a.value},null,8,["countdownDuration","qrData"])])):D("",!0)]),_:1})]))}},eee="data:image/svg+xml,%3csvg%20viewBox='0%200%20820%20820'%20xmlns='http://www.w3.org/2000/svg'%20width='2500'%20height='2500'%3e%3cpath%20d='M0%200h820v820H0z'%20fill='%23ffc403'/%3e%3cpath%20d='M364.5%20361.6v93.6h-25.6v-52.5L321.8%20428h-13.4l-18.8-25.3v52.5h-23.4v-93.6h23.6l27%2036.7%2024.2-36.7zM371.9%20382.8v-21.2h87.4v21.2h-30.6v72.4h-26.1v-72.4zM555.6%20361.6v93.6h-21.5l-44-53.5v53.5h-23.4v-93.6H490l42.1%2051.6v-51.6z'/%3e%3cpath%20d='M410%20553c-75.6%200-146.9-14.1-200.7-39.8C153%20486.3%20122%20449.7%20122%20410s31-76.3%2087.3-103.2C263.1%20281.1%20334.4%20267%20410%20267s146.9%2014.1%20200.7%2039.8C667%20333.7%20698%20370.3%20698%20410s-31%2076.3-87.3%20103.2C556.9%20538.9%20485.6%20553%20410%20553zm0-264.9c-72.6%200-140.6%2013.4-191.6%2037.8-48.5%2023.2-75.3%2053.1-75.3%2084.2s26.7%2061%2075.3%2084.1c51%2024.4%20119.1%2037.8%20191.6%2037.8s140.6-13.4%20191.6-37.8c48.5-23.1%2075.3-53.1%2075.3-84.1s-26.7-61-75.3-84.1c-51-24.5-119-37.9-191.6-37.9z'/%3e%3c/svg%3e",tee="/assets/mobile_money_orange-peMEVXHC.svg";function u3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay ",s(a("amount"))])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Phone Icon"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please enter your test mobile money number to begin this payment"])},live:e=>{const{normalize:n}=e;return n(["Please enter your mobile money number to begin this payment"])}},instructionMessage_orange_ci:{test:e=>{const{normalize:n}=e;return n(["Please enter your test Orange number to begin this payment"])},live:e=>{const{normalize:n}=e;return n(["Please enter your Orange number to begin this payment"])}},instructionMessage_mtn_ci:{test:e=>{const{normalize:n}=e;return n(["Please enter your test MTN number to begin this payment"])},live:e=>{const{normalize:n}=e;return n(["Please enter your MTN number to begin this payment"])}},invalidPhoneNumber:e=>{const{normalize:n}=e;return n(["Please enter a valid phone number"])}},fr:{pay:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer ",s(a("amount"))])},mobileMoneyIcon:e=>{const{normalize:n}=e;return n(["Icône de Téléphone"])},instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro mobile money test pour commencer ce paiement"])},live:e=>{const{normalize:n}=e;return n(["Veuillez saisir votre numéro mobile money pour commencer ce paiement"])}},instructionMessage_orange_ci:{test:e=>{const{normalize:n}=e;return n(["Utilisez le numéro Orange test ci-dessous pour commencer le paiement"])},live:e=>{const{normalize:n}=e;return n(["Saisissez votre numéro Orange pour commencer le paiement"])}},instructionMessage_mtn_ci:{test:e=>{const{normalize:n}=e;return n(["Utilisez le numéro MTN test ci-dessous pour commencer le paiement"])},live:e=>{const{normalize:n}=e;return n(["Saisissez votre numéro MTN pour commencer le paiement"])}},invalidPhoneNumber:e=>{const{normalize:n}=e;return n(["Veuillez entrer un numéro de téléphone valide"])}}}})}const nee={class:"mobile_provider_form__wrapper"},ree={class:"mobile_provider_form__header"},see={class:"mobile_provider_form__icon"},aee=["alt"],iee=["alt"],oee=["alt"],lee={key:0,class:"mobile_provider_form__description"},cee={class:"row"},uee={class:"col-10-sm col-centered"},dee={class:"mobile_provider_form__input form-group"},hee={key:0,class:"mobile_provider_form__error"},a7={__name:"MobileMoneyProviderForm",emits:["submit"],setup(t,{emit:r}){const e=ge(!1),n=ge(""),s=Qa({touched:!1,value:"",isValid:!1}),a=ae(),i=te(()=>a.transaction),o=te(()=>a.reusePaymentInfo),l=te(()=>a.paymentInstrument),d=te(()=>a.activeChannel),u=te(()=>{const N=i.value.isTest?"test":"live";return"instructionMessage_".concat(d.value.name,".").concat(N)}),g=te(()=>["mtn_ci","orange_ci"].includes(d.value.name)),y=te(()=>Qn({amount:i.value.amount,currency:i.value.currency})),w=r,k=a.savePaymentInstrument,E=()=>{s.value="0710000000",O()},R=()=>{e.value=!0,k({mobileMoney:{phoneNumber:s.value,provider:n.value}}),w("submit",{phoneNumber:s.value,networkProvider:n.value})};An(()=>{var A,V;const N=((A=i.value.channel_options)==null?void 0:A.mobile_money)||[];if(n.value=(V=N.find(F=>F.key===d.value.name.toUpperCase()))==null?void 0:V.key,i.value.isTest)E();else if(o.value&&l.value.mobileMoney){const{phoneNumber:F,provider:S}=l.value.mobileMoney;s.value=F,n.value=S}});const O=()=>{var A;const N=s.value;s.isValid=(A=mr(N,"CI"))==null?void 0:A.isValid()},M=()=>{s.touched=!0,O()},x=()=>{O()};return(N,A)=>(f(),v("div",nee,[m("div",ree,[m("div",see,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[d.value.name==="mtn_ci"?(f(),v("img",{key:0,src:eee,alt:N.$t("mobileMoneyIcon")},null,8,aee)):d.value.name==="orange_ci"?(f(),v("img",{key:1,src:tee,alt:N.$t("mobileMoneyIcon")},null,8,iee)):(f(),v("img",{key:2,src:d6,alt:N.$t("mobileMoneyIcon")},null,8,oee))]),_:1})]),g.value?(f(),v("p",lee,[$(Et,{"data-testid":"instruction",message:N.$t(u.value)},null,8,["message"])])):D("",!0)]),m("form",{onSubmit:jt(R,["prevent"]),class:"form"},[m("div",cee,[m("div",uee,[m("div",dee,[$(Ui,{"country-code":"CI",required:!0,placeholder:"070 000 0000",modelValue:s.value,"onUpdate:modelValue":[A[0]||(A[0]=V=>s.value=V),x],onOnBlur:M,hasError:!s.isValid&&s.touched},null,8,["modelValue","hasError"]),s.touched&&!s.isValid?(f(),v("p",hee,T(N.$t("invalidPhoneNumber")),1)):D("",!0)]),$(dt,{class:"mobile_provider_form__button","data-testid":"mobile-provider-form-confirm-button",disabled:!s.isValid,loading:e.value},{default:ne(()=>[Be(T(N.$t("pay",{amount:y.value})),1)]),_:1},8,["disabled","loading"])])])],32)]))}};typeof u3=="function"&&u3(a7);const i7=ee(a7,[["__scopeId","data-v-374c4406"]]);function d3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Please wait while we authorize this test transaction."])},live:e=>{const{normalize:n}=e;return n(["Please check your phone for a prompt and enter your mobile money PIN to authorize this transaction."])}},completePayment:e=>{const{normalize:n}=e;return n(["I've completed the payment"])}},fr:{instructionMessage:{test:e=>{const{normalize:n}=e;return n(["Veuillez patienter pendant que nous autorisons cette transaction test."])},live:e=>{const{normalize:n}=e;return n(["Veuillez vérifier que votre téléphone vous demande de saisir le code PIN de votre mobile money pour autoriser cette transaction."])}},completePayment:e=>{const{normalize:n}=e;return n(["J'ai effectué le paiement"])}}}})}const mee={class:"charge_in_progress__wrapper"},pee={class:"charge_in_progress__icon"},fee=["alt"],_ee={class:"charge_in_progress__description"},gee={class:"charge_in_progress__phone"},o7={__name:"ChargeInProgress",props:{message:{type:String,required:!0},displayType:{type:String,required:!0},timerInSeconds:{type:Number,required:!0},phoneNumber:{type:String,required:!0}},emits:["confirm","cancel"],setup(t,{emit:r}){const e=t,n=r,s=ge(60),a=ge(null),o=ae().transaction;An(()=>{e.displayType==="pop"&&(s.value=o.isTest?5:e.timerInSeconds,a.value=window.setInterval(()=>{s.value-=1,s.value===0&&(window.clearInterval(a.value),n("confirm"))},1e3))}),Di(()=>{window.clearInterval(a.value)});const l=()=>{n("cancel")};return(d,u)=>(f(),v("div",mee,[m("div",pee,[$(rt,{"enter-active-class":"animated tada",appear:""},{default:ne(()=>[m("img",{src:mc,alt:d.$t("phoneIcon")},null,8,fee)]),_:1})]),m("div",_ee,[m("div",gee,T(t.phoneNumber),1),$(Et,{message:fe(o).isTest?d.$t("instructionMessage.test"):d.$t("instructionMessage.live")},null,8,["message"])]),t.displayType==="pop"&&s.value?(f(),se(Ss,{key:0,"data-testid":"charge_in_progress-counter",class:"charge_in_progress__countdown",countdownDuration:s.value.value,countdownTimerMessage:d.$t("message")},null,8,["countdownDuration","countdownTimerMessage"])):D("",!0),fe(Fn)?D("",!0):(f(),v("button",{key:1,"data-testid":"cancel-payment-button",onClick:l},T(d.$t("cancel")),1))]))}};typeof d3=="function"&&d3(o7);const l7=ee(o7,[["__scopeId","data-v-de7981e2"]]);function h3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{title:e=>{const{normalize:n}=e;return n(["Please enter the code generated with the Orange Money app"])},buttonText:e=>{const{normalize:n}=e;return n(["Authorize"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Expires in"])},cancel:e=>{const{normalize:n}=e;return n(["Cancel"])},invalidCode:e=>{const{normalize:n}=e;return n(["Please enter 4 digits code"])}},fr:{title:e=>{const{normalize:n}=e;return n(["Veuillez entrer le code généré avec l'application Orange Money"])},buttonText:e=>{const{normalize:n}=e;return n(["Autoriser"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Expire dans"])},cancel:e=>{const{normalize:n}=e;return n(["Annuler"])},invalidCode:e=>{const{normalize:n}=e;return n(["Veuillez saisir le code à 4 chiffres"])}}}})}const c7={name:"MobileMoneyCodeForm",components:{Countdown:Ss,Instructions:Et,CancelLink:rn,PaymentButton:dt},props:{countdownDuration:{type:Number,default:60}},data(){return{code:null,processing:!1}},mounted(){this.$refs.input.focus()},emits:["cancel","submit"],methods:{cancel(){this.$emit("cancel")},onSubmit(){this.processing=!0,this.$emit("submit",this.code)}}},vee={class:"row"},yee={class:"col-7-sm"},bee=["title"],Cee={class:"col-5-sm"};function wee(t,r,e,n,s,a){const i=P("instructions"),o=P("payment-button"),l=P("countdown"),d=P("cancel-link");return f(),v("form",{onSubmit:r[3]||(r[3]=jt((...u)=>a.onSubmit&&a.onSubmit(...u),["prevent"]))},[$(i,{message:t.$t("title"),icon:"otp"},null,8,["message"]),m("div",vee,[m("div",yee,[ct(m("input",{ref:"input",type:"tel",autocomplete:"off",class:"input input--lg input--centered",name:"code",pattern:"[0-9]{4}",title:t.$t("invalidCode"),"onUpdate:modelValue":r[0]||(r[0]=u=>s.code=u),"data-testid":"code-input",required:""},null,8,bee),[[Wt,s.code,void 0,{trim:!0}]])]),m("div",Cee,[$(o,{disabled:!s.code,loading:s.processing,"data-testid":"authorize-button"},{default:ne(()=>[Be(T(t.$t("buttonText")),1)]),_:1},8,["disabled","loading"])])]),$(l,{countdownDuration:e.countdownDuration,onCountdownComplete:r[1]||(r[1]=u=>a.cancel()),countdownTimerMessage:t.$t("countdownTimerMessage")},null,8,["countdownDuration","countdownTimerMessage"]),s.processing?D("",!0):(f(),se(d,{key:0,"data-testid":"cancel-payment-button",text:t.$t("cancel"),onClick:r[2]||(r[2]=u=>a.cancel())},null,8,["text"]))],32)}typeof h3=="function"&&h3(c7);const kee=ee(c7,[["render",wee]]);function m3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{title:e=>{const{normalize:n}=e;return n(["Approve the payment with the Orange Money app"])},instructions:{stepOne:e=>{const{normalize:n}=e;return n(["Open Orange Money app on your phone"])},stepTwo:e=>{const{normalize:n}=e;return n(["Tap on ‘My Account’"])},stepThree:e=>{const{normalize:n}=e;return n(["Tap on ‘Generate a temporary code’ and select ‘Payment’ as the reason"])},stepFour:e=>{const{normalize:n}=e;return n(["Tap ‘Generate a temporary code’"])},stepFive:e=>{const{normalize:n}=e;return n(["Return here to enter the generated code"])}},buttonText:e=>{const{normalize:n}=e;return n(["Enter generated code"])}},fr:{title:e=>{const{normalize:n}=e;return n(["Approuvez ce paiement dans l'application Orange Money"])},instructions:{stepOne:e=>{const{normalize:n}=e;return n(["Ouvrez l'Application Orange Money sur votre téléphone"])},stepTwo:e=>{const{normalize:n}=e;return n(["Appuyez sur 'Mon compte'"])},stepThree:e=>{const{normalize:n}=e;return n(["Appuyez sur 'Générer un code temporaire' et selectionnez 'Un paiement' pour raison"])},stepFour:e=>{const{normalize:n}=e;return n(["Appuyez sur 'Générer un code temporaire'"])},stepFive:e=>{const{normalize:n}=e;return n(["Revenir sur cette page pour entrer le code généré"])}},buttonText:e=>{const{normalize:n}=e;return n(["Entrez le code généré"])}}}})}const u7={name:"OrangePaymentInstructions",components:{CancelLink:rn,Instructions:Et,PaymentButton:dt,InstructionsList:xo},emits:["cancel"],computed:{instructions(){return[this.$t("instructions.stepOne"),this.$t("instructions.stepTwo"),this.$t("instructions.stepThree"),this.$t("instructions.stepFour"),this.$t("instructions.stepFive")]}},methods:{cancel(){this.$emit("cancel")}}},See={class:"wrapper"},Eee={class:"contents"};function Tee(t,r,e,n,s,a){const i=P("instructions"),o=P("instructions-list"),l=P("payment-button"),d=P("cancel-link");return f(),v("div",See,[$(i,{message:t.$t("title"),role:"heading"},null,8,["message"]),m("div",Eee,[$(o,{instructions:a.instructions},null,8,["instructions"])]),$(l,{class:"button--light",onClick:r[0]||(r[0]=u=>t.$emit("showCodeForm"))},{default:ne(()=>[Be(T(t.$t("buttonText")),1)]),_:1}),$(d,{onClick:r[1]||(r[1]=u=>a.cancel())})])}typeof m3=="function"&&m3(u7);const $ee=ee(u7,[["render",Tee]]),Iee={key:"enter_number"},Aee={key:"listen_for_charge"},zee={key:"orange_payment_instructions"},Ree={"data-testid":"enter-code-form",key:"enter_code"},Pee={__name:"OrangeCiChannel",emits:["callback","attempt"],setup(t,{emit:r}){const e={ENTER_NUMBER:"enter_number",LISTEN_FOR_CHARGE:"listen_for_charge",ORANGE_PAYMENT_INSTRUCTIONS:"orange_payment_instructions",ENTER_CODE:"enter_code"},n=ge(""),s=ge(""),a=ge(""),i=ge(60),o=ge(e.ENTER_NUMBER),l=ae(),d=te(()=>l.transaction),u=l.setIsCharging,g=r,y=()=>{g("callback",{status:"requery"})},w=A=>{Object.values(e).includes(A)&&(o.value=A)},k=({networkProvider:A,phoneNumber:V})=>{var S;s.value=V;const F=(S=mr(V,"CI"))==null?void 0:S.format("E.164");E({phoneNumber:F,networkProvider:A})},E=async({phoneNumber:A,networkProvider:V})=>{try{u(!0),g("attempt");const F={phoneNumber:A,provider:V},S=await d.value.chargeMobileMoney(F);u(!1),M(S)}catch(F){g("callback",{status:"failed",message:F})}},R=(A,V)=>{A.status!=="error"&&(g("callback",A),V())},O=()=>{d.value.listenForMobileMoneyCharge(R)},M=A=>{var S;const{status:V,data:F}=A;if(V===Kh.SUCCESS){const{message:z,type:U,timer:j}=F.display;n.value=z,a.value=U,i.value=j;const J=e[(S=a.value)==null?void 0:S.toUpperCase()]||e.LISTEN_FOR_CHARGE;w(J),J===e.LISTEN_FOR_CHARGE&&O()}else g("callback",A)},x=async A=>{try{const V=await d.value.submitMobileMoneyCode({code:A});g("callback",V)}catch(V){g("callback",{status:"failed",message:V})}},N=()=>{w(e.ENTER_NUMBER)};return Ja(async()=>{N()}),(A,V)=>(f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[o.value===e.ENTER_NUMBER?(f(),v("div",Iee,[$(i7,{onSubmit:k})])):o.value===e.LISTEN_FOR_CHARGE?(f(),v("div",Aee,[$(l7,{phoneNumber:s.value,displayType:a.value,"timer-in-seconds":i.value,message:n.value,onCancel:y,onConfirm:y},null,8,["phoneNumber","displayType","timer-in-seconds","message"])])):o.value===e.ORANGE_PAYMENT_INSTRUCTIONS?(f(),v("div",zee,[$($ee,{onCancel:N,onShowCodeForm:V[0]||(V[0]=F=>w(e.ENTER_CODE))})])):o.value===e.ENTER_CODE?(f(),v("div",Ree,[$(kee,{countdownDuration:i.value,onCancel:y,onSubmit:x},null,8,["countdownDuration"])])):D("",!0)]),_:1})]))}},Nee={name:"TabsComponent"},Mee={role:"tablist",class:"tabs-wrapper"},Lee={class:"tabs"};function xee(t,r,e,n,s,a){return f(),v("div",Mee,[m("div",Lee,[Ks(t.$slots,"default")])])}const Oee=ee(Nee,[["render",xee]]),Fee={name:"TabPanel",props:{activeTabIndex:{type:Number,default:0},index:{type:Number,default:0}}},Dee={key:0,role:"tabpanel",class:"tab-panel"};function Vee(t,r,e,n,s,a){return e.activeTabIndex===e.index?(f(),v("div",Dee,[Ks(t.$slots,"default",{},void 0,!0)])):D("",!0)}const Bee=ee(Fee,[["render",Vee],["__scopeId","data-v-d4dd9051"]]),Uee="/assets/mtn-app-qr-code-C6CWeotp.svg",Hee="/assets/phone-blue-BsTa6saQ.svg";function p3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{appInstructions:{title:e=>{const{normalize:n}=e;return n(["App"])},stepOne_desktop:e=>{const{normalize:n}=e;return n(["Open MTN MoMo app on your phone or scan QR-code"])},stepOne_mobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Open MTN MoMo app "])},stepTwo:e=>{const{normalize:n}=e;return n(["Navigate to the ‘Validations’ section"])},stepThree:e=>{const{normalize:n}=e;return n(["Find your transaction and tap ‘Finalize’"])}},ussdInstructions:{title:e=>{const{normalize:n}=e;return n(["USSD"])},stepOne_desktop:e=>{const{normalize:n}=e;return n(["Dial *133# on your phone"])},stepOne_mobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Dial *133# on your phone"])},stepTwo:e=>{const{normalize:n}=e;return n(["Select option 1: Valider retrait et paiement"])},stepThree:e=>{const{normalize:n}=e;return n(["Select option 1: Valider retrait initie par PAYSTACK_CDI"])}},paymentCompleted:e=>{const{normalize:n}=e;return n(["I've completed the payment"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Time out in"])}},fr:{appInstructions:{title:e=>{const{normalize:n}=e;return n(["App"])},stepOne_desktop:e=>{const{normalize:n}=e;return n(["Ouvrez l'application MTN MoMo sur votre téléphone ou scannez le code QR"])},stepOne_mobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Ouvrir l’application MoMo "])},stepTwo:e=>{const{normalize:n}=e;return n(["Allez à la section ‘Validations’"])},stepThree:e=>{const{normalize:n}=e;return n(["Appuyez ‘Finaliser’ sur votre transaction"])}},ussdInstructions:{title:e=>{const{normalize:n}=e;return n(["USSD"])},stepOne_desktop:e=>{const{normalize:n}=e;return n(["Composez *133# sur votre téléphone"])},stepOne_mobile:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Composez *133# sur votre téléphone"])},stepTwo:e=>{const{normalize:n}=e;return n(["Sélectionnez l'option 1: Valider retrait et paiement"])},stepThree:e=>{const{normalize:n}=e;return n(["Sélectionnez l'option 1: Valider retrait initie par PAYSTACK_CDI"])}},paymentCompleted:e=>{const{normalize:n}=e;return n(["J'ai effectué le paiement"])},countdownTimerMessage:e=>{const{normalize:n}=e;return n(["Expire dans"])}}}})}const d7={name:"MtnPaymentInstructions",components:{PaymentButton:dt,CancelLink:rn,Tabs:Oee,Countdown:Ss,InstructionsList:xo,TabPanel:Bee},props:{countdownDuration:{type:Number,default:60}},data(){return{activeTabIndex:0}},emits:["cancel"],computed:{tabs(){const t=Fn()?"mobile":"desktop";return[{instructions:[this.$t("appInstructions.stepOne_".concat(t),{icon:r7,appUrl:"https://mymtnapp2.mtn.co.ug/dls/consumerug"}),this.$t("appInstructions.stepTwo"),this.$t("appInstructions.stepThree")],image:Fn()?null:{name:"mtnQrCode",alt:"MTN QR Code",url:Uee},title:this.$t("appInstructions.title")},{instructions:[this.$t("ussdInstructions.stepOne_".concat(t),{icon:Hee}),this.$t("ussdInstructions.stepTwo"),this.$t("ussdInstructions.stepThree")],title:this.$t("ussdInstructions.title")}]}},methods:{setActiveTabIndex(t){this.activeTabIndex=t},cancel(){this.$emit("cancel")}}},qee=["onClick"],Wee=["name","alt","src"];function Gee(t,r,e,n,s,a){const i=P("tabs"),o=P("instructions-list"),l=P("tab-panel"),d=P("countdown"),u=P("payment-button"),g=P("cancel-link");return f(),v("div",null,[$(i,null,{default:ne(()=>[(f(!0),v(gt,null,Ot(a.tabs,(y,w)=>(f(),v("div",{class:"tab",role:"tab",key:w,onClick:k=>a.setActiveTabIndex(w)},[Be(T(y.title)+" ",1),m("div",{class:pt({active:s.activeTabIndex===w})},null,2)],8,qee))),128))]),_:1}),(f(!0),v(gt,null,Ot(a.tabs,(y,w)=>(f(),se(l,{key:w,activeTabIndex:s.activeTabIndex,index:w},{default:ne(()=>[y.image?(f(),v("img",{key:0,name:y.image.name,alt:y.image.alt,src:y.image.url},null,8,Wee)):D("",!0),$(o,{instructions:y.instructions},null,8,["instructions"])]),_:2},1032,["activeTabIndex","index"]))),128)),$(d,{countdownDuration:e.countdownDuration,onCountdownComplete:r[0]||(r[0]=y=>a.cancel()),countdownTimerMessage:t.$t("countdownTimerMessage")},null,8,["countdownDuration","countdownTimerMessage"]),$(u,{class:"payment-button",variant:"light",onClick:a.cancel},{default:ne(()=>[Be(T(t.$t("paymentCompleted")),1)]),_:1},8,["onClick"]),$(g,{onClick:r[1]||(r[1]=y=>a.cancel())})])}typeof p3=="function"&&p3(d7);const jee=ee(d7,[["render",Gee]]),Zee={key:"enter_number"},Kee={key:"listen_for_charge"},Yee={key:"mtn_payment_instructions"},Qee={__name:"MtnCiChannel",emits:["callback","attempt"],setup(t,{emit:r}){const e={ENTER_NUMBER:"enter_number",LISTEN_FOR_CHARGE:"listen_for_charge",MTN_PAYMENT_INSTRUCTIONS:"mtn_payment_instructions"},n=ge(""),s=ge(""),a=ge(""),i=ge(60),o=ge(e.ENTER_NUMBER),l=ae(),d=te(()=>l.transaction),u=l.setIsCharging,g=r,y=()=>{g("callback",{status:"requery"})},w=x=>{Object.values(e).includes(x)&&(o.value=x)},k=({networkProvider:x,phoneNumber:N})=>{var V;s.value=N;const A=(V=mr(N,"CI"))==null?void 0:V.format("E.164");E({phoneNumber:A,networkProvider:x})},E=async({phoneNumber:x,networkProvider:N})=>{try{u(!0),g("attempt");const A={phoneNumber:x,provider:N},V=await d.value.chargeMobileMoney(A);u(!1),M(V)}catch(A){g("callback",{status:"failed",message:A})}},R=(x,N)=>{x.status!=="error"&&(g("callback",x),N())},O=()=>{d.value.listenForMobileMoneyCharge(R)},M=x=>{var V;const{status:N,data:A}=x;if(N===Kh.SUCCESS){const{message:F,type:S,timer:z}=A.display;n.value=F,a.value=S,i.value=z;const U=e[(V=a.value)==null?void 0:V.toUpperCase()]||e.LISTEN_FOR_CHARGE;w(U),(U===e.LISTEN_FOR_CHARGE||U===e.MTN_PAYMENT_INSTRUCTIONS)&&O()}else g("callback",x)};return Ja(async()=>{w(e.ENTER_NUMBER)}),(x,N)=>(f(),v("div",null,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[o.value===e.ENTER_NUMBER?(f(),v("div",Zee,[$(i7,{onSubmit:k})])):o.value===e.LISTEN_FOR_CHARGE?(f(),v("div",Kee,[$(l7,{phoneNumber:s.value,displayType:a.value,"timer-in-seconds":i.value,message:n.value,onCancel:y,onConfirm:y},null,8,["phoneNumber","displayType","timer-in-seconds","message"])])):o.value===e.MTN_PAYMENT_INSTRUCTIONS?(f(),v("div",Yee,[$(jee,{onCancel:y,countdownDuration:i.value},null,8,["countdownDuration"])])):D("",!0)]),_:1})]))}},Jee={name:"OPayChannel",components:{Ibank:q5},emits:["attempt","callback"],computed:{...we(ls,["banks"]),oPayIBank(){return this.banks.find(({slug:t})=>["opay","paycom"].includes(t))}},methods:{onAttempt(t){this.$emit("attempt",{paymentMethod:t})},onChargeResponse(t){this.$emit("callback",t)}}};function Xee(t,r,e,n,s,a){const i=P("ibank");return f(),se(i,{bank:a.oPayIBank,onAttempt:a.onAttempt,onCallback:a.onChargeResponse,showCancelLink:!1},null,8,["bank","onAttempt","onCallback"])}const ete=ee(Jee,[["render",Xee]]),tte="data:image/svg+xml,%3csvg%20width='73'%20height='30'%20viewBox='0%200%2073%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_22008_30376)'%3e%3cpath%20d='M22.5555%208.03596L24.1991%200.390625H4.28017L1.6239%2010.833H7.28716C7.28716%2010.833%2010.6202%206.30287%2013.0332%206.30287C14.031%206.30287%2014.2903%206.95613%2014.2903%207.49361C14.2903%2010.4272%201.6239%2017.5996%201.6239%2017.5996L0%2023.8068H20.4179L22.5147%2014.153L17.1454%2014.1432C17.1454%2014.1432%2014.5854%2018.2115%2012.4478%2018.2115C11.7044%2018.2115%2011.2932%2017.83%2011.2932%2017.1268C11.2932%2014.0676%2022.5555%208.03596%2022.5555%208.03596Z'%20fill='black'/%3e%3cpath%20d='M47.1156%2023.8268L48.5963%2017.5233C48.5963%2017.5233%2045.0904%2018.1193%2045.0904%2015.0285C45.0904%2012.3533%2046.5648%2010.3082%2046.5648%206.50687C46.5648%203.67445%2044.5483%200.0644531%2038.1317%200.0644531C31.7151%200.0644531%2025.4974%203.88164%2025.4974%203.88164L28.1796%2010.9785C28.1796%2010.9785%2033.0093%205.56963%2037.6501%205.56963C38.9072%205.56963%2039.3962%206.14246%2039.3962%206.81034C39.3962%208.88469%2036.8215%209.73295%2032.0226%2010.6872C25.9457%2011.8975%2022.877%2014.4947%2022.877%2018.3874C22.877%2022.2802%2025.7172%2023.8317%2028.6118%2023.8317C34.0627%2023.8317%2036.1694%2020.1595%2036.8202%2018.9444L35.7002%2023.8317H47.1045L47.1144%2023.8268H47.1156ZM30.5099%2016.5032C30.5099%2014.4142%2034.0207%2012.3533%2038.4083%2012.3533C38.4083%2013.544%2035.9385%2018.2058%2032.4178%2018.2058C31.4558%2018.2058%2030.5099%2017.5477%2030.5099%2016.4983V16.5032Z'%20fill='black'/%3e%3cpath%20d='M59.8487%205.20293C59.9808%204.58501%2060.9021%200.381475%2060.9021%200.381475H49.4212L47.7059%208.05606C47.7059%208.05606%2052.07%207.58074%2051.2525%2010.7837C50.74%2012.7959%2046.8711%2030%2046.8711%2030H54.9165C54.9165%2030%2056.7639%2022.0293%2057.4209%2019.0104C57.3789%2020.2425%2059.3127%2023.7965%2062.8668%2023.7965C67.1111%2023.7965%2071.2345%2020.4168%2072.6484%2012.546C73.9673%205.19805%2071.4889%200%2066.711%200C62.8841%200%2060.5081%203.85619%2059.8499%205.20293H59.8487ZM64.1029%2012.8629C63.3447%2016.1377%2061.5121%2018.5204%2060.0117%2018.1816C58.51%2017.8428%2057.9148%2014.9116%2058.6731%2011.6368C59.4313%208.36197%2061.2626%205.98416%2062.7643%206.32297C64.2647%206.66179%2064.8661%209.59293%2064.1079%2012.8629H64.1029Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_22008_30376'%3e%3crect%20width='73'%20height='30'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",nte="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='27'%20height='51'%20fill='none'%3e%3crect%20width='8.1'%20height='2.1'%20x='9.42'%20y='1.801'%20fill='%23BBB'%20rx='1.05'/%3e%3crect%20width='26'%20height='49.7'%20x='.5'%20y='.5'%20stroke='%23BBB'%20rx='5.5'/%3e%3cpath%20fill='%23fff'%20d='M5%2016.35h18v18H5z'/%3e%3cpath%20fill='%233E3E3E'%20d='m19.328%2026.644-.129.626c-.106.52-.21%201.041-.319%201.56-.105.498-.216.994-.321%201.492-.08.376-.16.753-.229%201.131-.018.102-.058.128-.151.128-.557-.004-1.115-.002-1.672-.002H7.944c-.188%200-.194-.007-.157-.195l.325-1.654c.068-.343.135-.686.21-1.027a.244.244%200%200%201%20.09-.137c.876-.605%201.762-1.197%202.631-1.813%201.015-.72%202.001-1.479%202.937-2.306.473-.418.934-.852%201.318-1.362.113-.15.21-.312.303-.475a.886.886%200%200%200%20.094-.568c-.021-.17-.182-.303-.4-.343-.336-.064-.653.016-.96.144-.706.297-1.313.759-1.895%201.255-.318.271-.618.564-.93.843a.208.208%200%200%201-.126.052c-.907.003-1.814.002-2.72.001-.017%200-.034-.005-.064-.011.002-.05-.001-.097.008-.142l.36-1.729a1298.213%201298.213%200%200%201%20.57-2.728c.013-.065.025-.131.05-.192a.138.138%200%200%201%20.078-.067c.035-.011.077-.003.116-.003H20.23c-.031.175-.056.33-.088.485-.062.299-.129.597-.19.895-.066.316-.128.633-.192.95-.02.09-.057.18-.06.271-.003.138-.086.202-.181.268a58.91%2058.91%200%200%200-3.425%202.572c-.785.637-1.553%201.295-2.256%202.028-.357.372-.7.757-.94%201.225a1.296%201.296%200%200%200-.119.334c-.073.367.137.62.502.61.33-.01.634-.124.93-.264.662-.313%201.249-.75%201.817-1.216.235-.193.457-.404.687-.603a.209.209%200%200%201%20.126-.05c.803-.002%201.607%200%202.41.001.02%200%20.04.008.077.016h-.001Z'/%3e%3c/svg%3e",rte="data:image/svg+xml,%3csvg%20width='8'%20height='13'%20viewBox='0%200%208%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.88184%206.93555C7.875%207.16797%207.79297%207.36621%207.6084%207.54395L2.27637%2012.7598C2.13281%2012.9102%201.94141%2012.9854%201.72266%2012.9854C1.27832%2012.9854%200.929688%2012.6436%200.929688%2012.1992C0.929688%2011.9805%201.01855%2011.7822%201.16895%2011.625L5.97461%206.93555L1.16895%202.24609C1.01855%202.0957%200.929688%201.89746%200.929688%201.67871C0.929688%201.22754%201.27832%200.885742%201.72266%200.885742C1.94141%200.885742%202.13281%200.960937%202.27637%201.11133L7.6084%206.32715C7.79297%206.50488%207.88184%206.70312%207.88184%206.93555Z'%20fill='%23CCD1D6'/%3e%3c/svg%3e",ste=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"],ate=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),l1=({platform:t,userAgent:r}={})=>{const e=t||ate,n=r||window&&window.navigator&&window.navigator.userAgent;return{devicePlatform:e,deviceUserAgent:n}},h7=(t={})=>{const{devicePlatform:r,deviceUserAgent:e}=l1(t);return ste.includes(r)||e.includes("Mac")&&"ontouchend"in document},ite=(t={})=>{const{devicePlatform:r,deviceUserAgent:e}=l1(t),n=e&&!!e.match(/Version\/[\d.]+.*Safari/),s=r&&/(Mac)/i.test(r);return h7(t)||s&&n},ote=(t={})=>{const{devicePlatform:r,deviceUserAgent:e}=l1(t);return r&&/Android/i.test(r)||e&&/Android/i.test(e)};function td(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{instruction:e=>{const{normalize:n}=e;return n(["Scan the QR code to open Zap and complete this payment"])},instruction_mobile_qr:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(["Scan the QR code, or ",s(a(0))," to open Zap to complete this payment"])},instruction_mobile:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(["Click the button below or ",s(a(0))," to complete this payment"])},clickHere:e=>{const{normalize:n}=e;return n(["Click here"])},scanQRCode:e=>{const{normalize:n}=e;return n(["scan the QR code"])},completedPayment:e=>{const{normalize:n}=e;return n(["I've completed the payment"])},openZap:e=>{const{normalize:n}=e;return n(["Open Zap"])},zapQRCode:e=>{const{normalize:n}=e;return n(["Zap QR Code"])},zapLogo:e=>{const{normalize:n}=e;return n(["Zap Logo"])},copied:e=>{const{normalize:n}=e;return n(["Copied!"])},copyInstruction:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(['Having trouble clicking the "Open Zap" button? ',s(a(0))," to copy the link and paste it into your browser."])},betterInApp:e=>{const{normalize:n}=e;return n(["Speed up your checkout with Zap."])},downloadZap:e=>{const{normalize:n}=e;return n(["Download Zap by Paystack"])}},ar:{instruction:e=>{const{normalize:n}=e;return n(["مسح الرمز المصور لفتح Zap وإنهاء هذه الدفعة"])},instruction_mobile_qr:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(["مسح الرمز المصور, أو ",s(a(0))," لفتح Zap وإنهاء هذه الدفعة"])},instruction_mobile:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(["اضغط على الزر أدناه أو ",s(a(0))," لإنهاء هذه الدفعة"])},clickHere:e=>{const{normalize:n}=e;return n(["اضغط هنا"])},scanQRCode:e=>{const{normalize:n}=e;return n(["مسح الرمز المصور"])},completedPayment:e=>{const{normalize:n}=e;return n(["لقد إنهيت الدفعة"])},openZap:e=>{const{normalize:n}=e;return n(["فتح Zap"])},zapQRCode:e=>{const{normalize:n}=e;return n(["رمز QR لـ Zap"])},zapLogo:e=>{const{normalize:n}=e;return n(["شعار Zap"])},copied:e=>{const{normalize:n}=e;return n(["تم النسخ!"])},copyInstruction:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(['عدم القدرة على النقر على الزر "فتح Zap"؟ ',s(a(0))," لنسخ الرابط وألصقه في متصفحك."])},betterInApp:e=>{const{normalize:n}=e;return n(["سرّع عملية الدفع مع Zap."])},downloadZap:e=>{const{normalize:n}=e;return n(["تنزيل Zap من Paystack"])}},fr:{instruction:e=>{const{normalize:n}=e;return n(["Scannez le QR code pour ouvrir Zap et compléter ce paiement"])},instruction_mobile_qr:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(["Scannez le QR code, ou ",s(a(0))," pour ouvrir Zap et compléter ce paiement"])},instruction_mobile:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(["Cliquez sur le bouton ci-dessous ou ",s(a(0))," pour compléter ce paiement"])},clickHere:e=>{const{normalize:n}=e;return n(["cliquez ici"])},scanQRCode:e=>{const{normalize:n}=e;return n(["scannez le QR code"])},completedPayment:e=>{const{normalize:n}=e;return n(["J'ai complété le paiement"])},openZap:e=>{const{normalize:n}=e;return n(["Ouvrir Zap"])},zapQRCode:e=>{const{normalize:n}=e;return n(["Code QR de Zap"])},zapLogo:e=>{const{normalize:n}=e;return n(["Logo de Zap"])},copied:e=>{const{normalize:n}=e;return n(["Copié!"])},copyInstruction:e=>{const{normalize:n,interpolate:s,list:a}=e;return n(['Problème pour cliquer sur le bouton "Ouvrir Zap"? ',s(a(0))," pour copier le lien et coller-le dans votre navigateur."])},betterInApp:e=>{const{normalize:n}=e;return n(["Accélérez votre paiement avec Zap."])},downloadZap:e=>{const{normalize:n}=e;return n(["Télécharger Zap par Paystack"])}}}})}const lte={class:"zap-app-promo"},cte={class:"zap-app-promo__icon"},ute=["alt"],dte={class:"zap-app-promo__content"},hte={class:"zap-app-promo__text"},m7={__name:"ZapAppPromo",setup(t){vn();const r=()=>{let e="https://joinzap.com";h7()?e="https://apps.apple.com/us/app/zap-by-paystack/id6463129864":ote()&&(e="https://play.google.com/store/apps/details?id=com.paystack.zap"),window.open(e,"_blank")};return(e,n)=>(f(),v("div",lte,[m("div",cte,[m("img",{src:nte,alt:e.$t("zapLogo")},null,8,ute)]),m("div",dte,[m("p",hte,T(e.$t("betterInApp")),1),m("button",{type:"button",class:"zap-app-promo__link",onClick:r},[Be(T(e.$t("downloadZap"))+" ",1),n[0]||(n[0]=m("img",{src:rte,alt:"",class:"zap-app-promo__chevron"},null,-1))])])]))}};typeof td=="function"&&td(m7);const E2=ee(m7,[["__scopeId","data-v-668c557f"]]),mte={key:0},pte={key:1},fte={key:0},_te={key:0,class:"zap-channel"},gte=["alt"],vte={class:"zap-channel__instruction"},yte={class:"zap-channel__mobile-actions"},bte={class:"zap-channel__copy-instruction"},Cte={key:1,class:"zap-channel"},wte={class:"zap-channel__qr-code"},kte=["src","alt"],Ste={key:1,class:"zap-channel"},Ete={class:"zap-channel__qr-code"},Tte=["src","alt"],$te={class:"zap-channel__instruction"},p7={__name:"ZapChannel",emits:["callback","attempt"],setup(t,{emit:r}){const{t:e}=vn(),n=r,s=ae(),a=te(()=>s.transaction),i=ge(!1),o=ge(!1),l=ge(""),d=ge(""),u=ge(null),g=a.value.supportedBanks.find(F=>F.slug==="zap"),y=()=>{n("callback",{status:"requery"})},w=()=>{window.open(d.value,"_blank")},k=()=>{i.value=!0},E={QR_CODE:"qr-code",OPEN_ZAP:"open-zap"},R=ge(E.OPEN_ZAP),O=F=>{R.value=F};function M(F,S){F.status!=="error"&&n("callback",F),S()}function x(F){a.value.listenForDigitalBankMandateCharge(M,F)}An(()=>{u.value=e("clickHere"),N()});async function N(){n("attempt","zap");try{o.value=!0;const F=await a.value.chargeDigitalBankMandate({bankId:g.id,walletId:a.value.email});if(F.status==="failed"){o.value=!1,n("callback",F);return}const{payment_url:S,qr_image:z,pusher_channel:U}=F.data;l.value=z,d.value=S,x(U)}catch(F){o.value=!1,n("callback",F)}finally{o.value=!1}}function A(F){ti(F).then(V)}function V(){u.value=e("copied"),setTimeout(()=>{u.value=e("clickHere")},1e3)}return(F,S)=>{const z=P("i18n-t");return o.value?(f(),v("div",mte,[$(tn)])):(f(),v("div",pte,[fe(Fn)()?(f(),v("div",fte,[$(rt,{name:"fade-down",mode:"out-in"},{default:ne(()=>[R.value===E.OPEN_ZAP?(f(),v("div",_te,[m("img",{src:tte,alt:F.$t("zapLogo")},null,8,gte),m("span",vte,[$(z,{keypath:"instruction_mobile",tag:"span"},{default:ne(()=>[m("button",{type:"button",class:"zap-channel__inline-button",onClick:S[0]||(S[0]=U=>O(E.QR_CODE))},T(F.$t("scanQRCode")),1)]),_:1})]),m("div",yte,[m("button",{onClick:w,class:"zap-channel__open-zap-link","data-testid":"open-zap-link"},T(F.$t("openZap")),1),m("button",{onClick:y,"data-testid":"completed-payment-button"},T(F.$t("completedPayment")),1),m("div",bte,[$(z,{keypath:"copyInstruction",tag:"span"},{default:ne(()=>[m("button",{type:"button",class:"zap-channel__inline-button",onClick:S[1]||(S[1]=U=>A(d.value))},T(u.value),1)]),_:1})])]),S[3]||(S[3]=m("hr",{class:"zap-channel__divider"},null,-1)),$(E2)])):R.value===E.QR_CODE?(f(),v("div",Cte,[m("div",wte,[i.value?D("",!0):(f(),se(tn,{key:0})),ct(m("img",{src:l.value,alt:F.$t("zapQRCode"),onLoad:k,"data-testid":"zap-qr-code"},null,40,kte),[[hr,i.value]])]),$(z,{keypath:"instruction_mobile_qr",tag:"span",class:"zap-channel__instruction"},{default:ne(()=>[m("button",{type:"button",class:"zap-channel__inline-button",onClick:S[2]||(S[2]=U=>O(E.OPEN_ZAP))},T(F.$t("clickHere").toLowerCase()),1)]),_:1}),m("button",{onClick:y,"data-testid":"completed-payment-button"},T(F.$t("completedPayment")),1),S[4]||(S[4]=m("hr",{class:"zap-channel__divider"},null,-1)),$(E2)])):D("",!0)]),_:1})])):(f(),v("div",Ste,[m("div",Ete,[i.value?D("",!0):(f(),se(tn,{key:0})),ct(m("img",{src:l.value,alt:F.$t("zapQRCode"),onLoad:k,"data-testid":"zap-qr-code"},null,40,Tte),[[hr,i.value]])]),m("span",$te,T(F.$t("instruction")),1),m("button",{onClick:y,"data-testid":"completed-payment-button"},T(F.$t("completedPayment")),1),S[5]||(S[5]=m("hr",{class:"zap-channel__divider"},null,-1)),$(E2)]))]))}}};typeof td=="function"&&td(p7);const Ite=ee(p7,[["__scopeId","data-v-97a9152e"]]),Ate={name:"PaymentForm",props:{channel:String},components:{card:ZJ,visa_qr:Hz,eft_channels:Qz,eft:dX,bank:KV,mpass_olti_qr:PB,snapscan_qr:HB,ussd:OU,payattitude:oH,direct_debit:NH,mpesa:Wq,mptill:yW,atl_ke:GW,wave_ci:XX,orange_ci:Pee,mtn_ci:Qee,bank_transfer:KW,mobile_money:HG,paypal:jG,vault:tX,capitec_pay:n7,opay:ete,zap:Ite},emits:["failed","success"],computed:{...we(ae,["transaction","transactionAmount","activeChannel"])},methods:{...It(ae,["setTransactionStatus","saveLastResponse"]),handleParentEvent({eventName:t,data:r}){this.$emit(t,r)},onAttempt(t){const r=t&&t.paymentMethod,e=t&&t.usedSavedCard,n=t&&t.usedPaymentRequestApi,s=this.transaction.currency,a=this.activeChannel.name,i=ys(this.transactionAmount),o=this.transaction.id;Lm({transactionId:o,channel:a,paymentMethod:r,currency:s,amount:i,usedSavedCard:e,usedPaymentRequestApi:n})},handlePendingCharge(t){["mpesa","mptill","atl_ke","wave_ci","orange_ci","mtn_ci","mobile_money"].includes(this.activeChannel.name)?(this.setTransactionStatus("failed"),this.$emit("failed",t.message)):this.$emit("success",t.data)},onChargeResponse(t,r){const{status:e,message:n,data:s}=t;switch(this.saveLastResponse(t),this.setTransactionStatus(e),e){case On.SUCCESS:case jh.AUTHORIZED:this.$emit("success",s,r);break;case On.PENDING:this.handlePendingCharge(t);break;case On.FAILED:this.$emit("failed",n);break}}}},zte={id:"payment-form",class:"payment-form"};function Rte(t,r,e,n,s,a){return f(),v("section",zte,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[(f(),se(ZC,{exclude:"UssdChannel,PayWithTransferChannel,BankChannel,CardChannel"},[(f(),se(my(t.activeChannel.name),{onAttempt:a.onAttempt,onCallback:a.onChargeResponse,onParentEvent:a.handleParentEvent},null,40,["onAttempt","onCallback","onParentEvent"]))],1024))]),_:1})])}const Pte=ee(Ate,[["render",Rte],["__scopeId","data-v-5bbf33a0"]]),Nte=t=>({biannually:"BIANNUAL PLAN",annually:"ANNUAL PLAN"})[t]||"".concat(t.toUpperCase()," PLAN"),f7="https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js",Mte="sha384-z/6BVHCcSypLSykOVpaT1PQWHOOgU45uOOlMkgi/bElX4yFqmChNMb7qiv80wFav",Lte="6",xte=()=>{try{return a1(f7,{integrity:Mte})}catch(t){return!1}},Ote=()=>document.head.querySelector('script[src="'.concat(f7,'"]')),Fte=()=>{try{return window.location&&window.location.protocol==="https:"&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(Lte)}catch(t){return!1}},Dte=(t=[])=>ite()&&Fte()&&t.includes("apple_pay"),ou="apple_pay",Vte={name:"PayWithApplePay",emits:["payWithApplePayResponse"],computed:{...we(ae,["transaction","transactionAmount"]),...we(Nr,["language"]),applePaySDKLoaded(){return Ote()&&Array.isArray(window==null?void 0:window.webpackJsonp)}},methods:{...It(ae,["setActiveChannel","saveLastResponse","setTransactionStatus"]),initializePayment(){const t={channel:ou},{id:r,currency:e,merchant:n,planDetails:s}=this.transaction;try{Lm({channel:ou,paymentMethod:ou,currency:e,amount:this.transactionAmount,transactionId:r});const a={countryCode:"NG",currencyCode:e,merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:["visa","masterCard"],requiredBillingContactFields:["postalAddress","name","phone","email"],total:{label:"".concat(n.name," - Paystack"),type:"final",amount:ys(this.transactionAmount)},...(s==null?void 0:s.interval)&&{lineItems:[{label:Nte(s.interval),amount:ys(this.transactionAmount)}]}},i=6,o=new window.ApplePaySession(i,a);o.onvalidatemerchant=async({validationURL:l})=>{var d;try{const u={sessionUrl:l,displayName:n.name,domainName:(d=window==null?void 0:window.location)==null?void 0:d.hostname},{data:g}=await this.transaction.validateApplePaySession(u);o.completeMerchantValidation(g)}catch(u){this.$emit("payWithApplePayResponse",{status:"failed",data:"Could not validate Apple Pay session"},t)}},o.oncancel=()=>{this.$emit("payWithApplePayResponse",{status:"failed",data:"Cancelled"},t)},o.onpaymentauthorized=async({payment:l})=>{try{const d=await this.transaction.chargeApplePay({paymentObject:JSON.stringify(l)});this.saveLastResponse(d),this.setTransactionStatus(d==null?void 0:d.status),(d==null?void 0:d.status)==="success"?(o.completePayment(o.STATUS_SUCCESS),this.setActiveChannel({name:ou}),this.$emit("payWithApplePayResponse",{status:"success",data:d==null?void 0:d.data},t)):(o.completePayment(o.STATUS_FAILURE),this.$emit("payWithApplePayResponse",{status:"failed",data:d==null?void 0:d.message},t))}catch(d){this.$emit("payWithApplePayResponse",{status:"failed",data:"Could not authorize Apple Pay session"},t)}},o.begin()}catch(a){this.$emit("payWithApplePayResponse",{status:"failed",data:"Could not initialize Apple Pay session"},t)}}}},Bte=["locale"];function Ute(t,r,e,n,s,a){return f(),v("div",null,[a.applePaySDKLoaded?(f(),v("apple-pay-button",{key:0,buttonstyle:"black",type:"pay",locale:t.language,"data-testid":"apple-pay-button",onClick:r[0]||(r[0]=(...i)=>a.initializePayment&&a.initializePayment(...i))},null,8,Bte)):(f(),v("button",{key:1,class:"apple-pay-button apple-pay-button-black","data-testid":"apple-pay-button",onClick:r[1]||(r[1]=(...i)=>a.initializePayment&&a.initializePayment(...i))},[...r[2]||(r[2]=[m("span",{class:"logo"},null,-1)])]))])}const Hte=ee(Vte,[["render",Ute],["__scopeId","data-v-69009074"]]),qte="/assets/secure-gray-en-Cq4cTBru.svg",Wte="/assets/secure-gray-fr-ewTpCwoV.svg",Gte="/assets/secure-gray-ar-BaAGBHyD.svg",jte="/assets/apple_pay_mark-CEeCDeC6.svg";function f3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{applePay:e=>{const{normalize:n}=e;return n(["Apple Pay"])},applePayDescription:e=>{const{normalize:n}=e;return n(["Pay with Apple Pay to complete your purchase without filling a form"])},morePaymentOptions:e=>{const{normalize:n}=e;return n(["More payment options"])},morePaymentOptions_vault:e=>{const{normalize:n}=e;return n(["Use other payment methods"])},securedByPaystack:e=>{const{normalize:n}=e;return n(["Secured by Paystack"])},or:e=>{const{normalize:n}=e;return n(["or"])}},fr:{applePay:e=>{const{normalize:n}=e;return n(["Apple Pay"])},applePayDescription:e=>{const{normalize:n}=e;return n(["Payez avec Apple Pay pour effectuer votre achat sans remplir de formulaire."])},morePaymentOptions:e=>{const{normalize:n}=e;return n(["Plus d'options de paiement"])},securedByPaystack:e=>{const{normalize:n}=e;return n(["Sécurisé par Paystack"])}},ar:{morePaymentOptions:e=>{const{normalize:n}=e;return n(["المزيد من خيارات الدفع"])},securedByPaystack:e=>{const{normalize:n}=e;return n(["مضمون من قبل Paystack"])}}}})}const _7={name:"PreCheckoutView",props:{canPayWithVault:Boolean,canPayWithApplePay:Boolean},data(){return{isMobile:Fn({tablet:!0})}},components:{PayWithApplePay:Hte,VaultLogin:K6,SectionDivider:i9},emits:["payWithApplePayResponse","closed"],computed:{...we(ae,["transaction","availableChannels"]),...we(Nr,["language"]),securedByPaystackImage(){const t={en:qte,fr:Wte,ar:Gte};return t[this.language]||t.en},showMorePaymentOptions(){var t;return((t=this.availableChannels)==null?void 0:t.length)>0}},methods:{...It(ae,["setActiveChannel"]),closePreCheckoutView(){this.$emit("closed")},handlePayWithApplePayResponse({status:t,data:r},e){this.$emit("payWithApplePayResponse",{status:t,data:r},e),t==="success"&&this.closePreCheckoutView()},handlePayWithVault(){this.setActiveChannel({name:"vault",view:"vault-payment-instruments"}),this.closePreCheckoutView()}}},Zte={key:0,class:"pre-checkout-view__content--vault"},Kte={class:"divider"},Yte={key:1,class:"pre-checkout-view__content--default"},Qte=["alt"],Jte={class:"instruction"};function Xte(t,r,e,n,s,a){const i=P("vault-login"),o=P("section-divider"),l=P("pay-with-apple-pay");return f(),v("div",{class:pt(["pre-checkout-view",{"animated fadeIn animation-delay-500":s.isMobile}])},[m("div",{class:pt(["pre-checkout-view__content",{"animated slideInUp animation-delay-750":s.isMobile}])},[e.canPayWithVault?(f(),v("div",Zte,[$(i,{onPayWithVault:a.handlePayWithVault},null,8,["onPayWithVault"]),m("div",Kte,[$(o,{text:t.$t("or")},null,8,["text"])]),e.canPayWithApplePay?(f(),se(l,{key:0,onPayWithApplePayResponse:a.handlePayWithApplePayResponse},null,8,["onPayWithApplePayResponse"])):D("",!0),a.showMorePaymentOptions?(f(),v("button",{key:1,class:"close-button other-payment-methods-button",onClick:r[0]||(r[0]=(...d)=>a.closePreCheckoutView&&a.closePreCheckoutView(...d)),"data-testid":"more-payment-options"},T(t.$t("morePaymentOptions_vault")),1)):D("",!0)])):(f(),v("div",Yte,[m("img",{src:jte,alt:t.$t("applePay"),class:"apple-pay-mark"},null,8,Qte),m("p",Jte,T(t.$t("applePayDescription")),1),$(l,{onPayWithApplePayResponse:a.handlePayWithApplePayResponse},null,8,["onPayWithApplePayResponse"]),a.showMorePaymentOptions?(f(),v("button",{key:0,class:"close-button other-payment-methods-button",onClick:r[1]||(r[1]=(...d)=>a.closePreCheckoutView&&a.closePreCheckoutView(...d)),"data-testid":"more-payment-options"},T(t.$t("morePaymentOptions")),1)):D("",!0)]))],2)],2)}typeof f3=="function"&&f3(_7);const ene=ee(_7,[["render",Xte],["__scopeId","data-v-f62cb5ff"]]);function nd(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{tryAgain:e=>{const{normalize:n}=e;return n(["Try again"])},payWithChannel:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Pay with ",s(a("channel"))])},alreadySent:e=>{const{normalize:n}=e;return n(["I already sent the money"])}},fr:{tryAgain:e=>{const{normalize:n}=e;return n(["Réessayer"])},payWithChannel:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Payer avec ",s(a("channel"))])},alreadySent:e=>{const{normalize:n}=e;return n(["J'ai déjà envoyé l'argent"])}}}})}const tne={"data-testid":"pwt-error-resolution",class:"resolution"},nne={key:0},rne={key:0},sne={key:1,"data-testid":"pwt-error-resolution-other-channels"},ane=["onClick"],g7={__name:"ErrorResolution",props:{otherAvailableChannels:Array,errorMessage:String},emits:["switchChannel","retry"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=r,i=ls().knownErrors,o=te(()=>{if(!n.errorMessage)return!0;const y=n.errorMessage.toLowerCase(),w=i[y];return w!=null&&w.resolution?w.resolution==="retry-same-channel":!1}),l=te(()=>[...Y8(["card","bank","ussd","qr"],"key",n.otherAvailableChannels)].reverse().slice(0,2)),d=te(()=>n.errorMessage.toLowerCase()==="account expired"),u=y=>{s("switchChannel",y)},g=()=>{d.value&&Vm(),s("retry")};return(y,w)=>(f(),v("div",tne,[o.value?(f(),v("div",nne,[m("div",null,[m("button",{onClick:g,"data-testid":"pwt-error-try-again",class:"button"},T(fe(e)("tryAgain")),1)]),d.value?(f(),v("div",rne,[m("button",{onClick:w[0]||(w[0]=k=>u({name:"bank_transfer",view:"help-screen"})),"data-testid":"pwt-funds-already-sent",class:"button"},T(fe(e)("alreadySent")),1)])):D("",!0)])):(f(),v("div",sne,[(f(!0),v(gt,null,Ot(l.value,k=>(f(),v("button",{onClick:E=>u({name:k.key}),key:k.key},T(fe(e)("payWithChannel",{channel:k.label})),9,ane))),128))]))]))}};typeof nd=="function"&&nd(g7);const ine=ee(g7,[["__scopeId","data-v-e6dbbbd0"]]),one={"data-testid":"pwt-error-resolution",class:"resolution"},lne={key:0},cne={key:1,"data-testid":"pwt-error-resolution-other-channels"},une=["onClick"],v7={__name:"ErrorResolution",props:{otherAvailableChannels:Array,errorMessage:String},emits:["switchChannel","retry"],setup(t,{emit:r}){const{t:e}=vn(),n=t,s=r,i=ls().knownErrors,o=te(()=>{if(!n.errorMessage)return!0;const g=n.errorMessage.toLowerCase(),y=i[g];return y!=null&&y.resolution?y.resolution==="retry-same-channel":!1}),l=te(()=>[...Y8(["card","bank","ussd","visa_qr"],"key",n.otherAvailableChannels)].reverse().slice(0,2)),d=g=>{s("switchChannel",g)},u=()=>{n.errorMessage.toLowerCase()==="account expired"&&Vm(),s("retry")};return(g,y)=>(f(),v("div",one,[o.value?(f(),v("div",lne,[m("button",{onClick:u,"data-testid":"pwt-error-try-again",class:"try-again"},T(fe(e)("tryAgain")),1)])):(f(),v("div",cne,[(f(!0),v(gt,null,Ot(l.value,w=>(f(),v("button",{onClick:k=>d(w.key),key:w.key},T(fe(e)("payWithChannel",{channel:w.label})),9,une))),128))]))]))}};typeof nd=="function"&&nd(v7);const dne=ee(v7,[["__scopeId","data-v-fc353e99"]]),hne={__name:"ErrorResolution",props:{otherAvailableChannels:Array,errorMessage:String},emits:["switchChannel","retry"],setup(t,{emit:r}){const e=t,n=r,s=ae(),a=Qt(),i=te(()=>s.transaction),o=te(()=>s.activeChannel),l=te(()=>a.ussdChannelState),d=te(()=>{var k,E,R;const{merchant:y}=i.value,w=o.value.name==="ussd"&&((k=l.value.savedUssdData)==null?void 0:k.type)===Mn.PAY_WITH_TRANSFER;return((R=(E=y.channelSettings)==null?void 0:E.bank_transfer)==null?void 0:R.fulfil_late_notification)&&!w}),u=y=>{n("switchChannel",y)},g=()=>{n("retry")};return(y,w)=>(f(),v("div",null,[d.value?(f(),se(ine,{key:0,onSwitchChannel:u,onRetry:g,otherAvailableChannels:e.otherAvailableChannels,errorMessage:e.errorMessage},null,8,["otherAvailableChannels","errorMessage"])):(f(),se(dne,{key:1,onSwitchChannel:u,onRetry:g,otherAvailableChannels:e.otherAvailableChannels,errorMessage:e.errorMessage},null,8,["otherAvailableChannels","errorMessage"]))]))}},y7={name:"BankVaultErrorResolution",components:{PaymentButton:dt},props:{message:{type:String,default:""}},emits:["switchChannel","retry","reset","close"],computed:{...we(ae,["transaction","availableChannels"]),...we(Qt,["bankChannelState"]),...we(ls,["knownErrors"]),otherAvailableChannels(){return this.availableChannels.filter(t=>t.key!=="bank"&&t.key!=="bank_transfer")},canPayWithBankTransferWithoutSavingToVault(){return!(Fd(this.transaction)||this.transaction.planDetails)&&this.availableChannels.some(r=>r.key==="bank_transfer")},knownError(){const t=this.message.toLowerCase();return this.knownErrors[t]},canReuseLastChannel(){return!this.knownError||["retry-same-payment-method","retry-same-channel"].includes(this.knownError.resolution)},canReusePaymentMethod(){return!this.knownError||this.knownError.resolution==="retry-same-payment-method"},hasLinkedAccount(){return this.transaction.linkConfig.has_linked_accounts},isRegisteredUser(){return this.bankChannelState.isRegisteredVaultUser},validationAttempts(){return this.bankChannelState.accountValidationAttempts}},methods:{...It(ae,["retry","switchChannel"]),...It(Qt,["setBankChannelState"]),switchChannel(t){this.$emit("switchChannel",t)},setBankChannelView(t){["linked-accounts","phone-number-form"].includes(t)?this.$emit("retry",{channel:{name:"bank",view:"banktransfermandate",subView:t}}):this.$emit("reset")},closeCheckout(){this.$emit("close")},continueWithoutSavingToVault(){this.switchChannel("bank_transfer")},retryPayingWithSameBank(){this.$emit("retry")}}},mne={class:"error"},pne={key:0},fne={key:0},_ne={key:1},gne=["onClick"],vne={key:1},yne={key:1},bne={key:0},Cne=["onClick"],wne={key:2},kne={key:2,"data-testid":"other-available-channels"},Sne=["onClick"],Ene={key:3,class:"error__retry"},Tne={"data-testid":"start-over-with-same-details"};function $ne(t,r,e,n,s,a){const i=P("payment-button");return f(),v("div",mne,[a.validationAttempts===1?(f(),v("div",pne,[m("div",null,[a.isRegisteredUser?(f(),v("div",fne,[a.hasLinkedAccount?(f(),se(i,{key:0,onClick:r[0]||(r[0]=o=>a.setBankChannelView("linked-accounts"))},{default:ne(()=>[Be(T(t.$t("trySavedAccount")),1)]),_:1})):(f(),se(i,{key:1,onClick:r[1]||(r[1]=o=>a.setBankChannelView())},{default:ne(()=>[Be(T(t.$t("tryAnotherBank")),1)]),_:1}))])):(f(),se(i,{key:1,onClick:r[2]||(r[2]=o=>a.setBankChannelView("phone-number-form"))},{default:ne(()=>[Be(T(t.$t("tryAnotherNumber")),1)]),_:1}))]),a.canPayWithBankTransferWithoutSavingToVault?(f(),v("button",{key:0,class:"error__subtext-button",onClick:r[3]||(r[3]=(...o)=>a.continueWithoutSavingToVault&&a.continueWithoutSavingToVault(...o))},T(t.$t("continueWithoutSaving")),1)):a.otherAvailableChannels.length?(f(),v("div",_ne,[(f(!0),v(gt,null,Ot(a.otherAvailableChannels,o=>(f(),v("button",{onClick:l=>a.switchChannel(o.key),key:o.key},T(t.$t("tryPayingWithChannel",{channelLabel:o.label})),9,gne))),128))])):D("",!0)])):a.validationAttempts>1?(f(),v("div",vne,[a.canPayWithBankTransferWithoutSavingToVault?(f(),se(i,{key:0,onClick:a.continueWithoutSavingToVault},{default:ne(()=>[Be(T(t.$t("continueWithoutSaving")),1)]),_:1},8,["onClick"])):(f(),v("div",yne,[a.otherAvailableChannels.length?(f(),v("div",bne,[(f(!0),v(gt,null,Ot(a.otherAvailableChannels,o=>(f(),v("button",{onClick:l=>a.switchChannel(o.key),key:o.key},T(t.$t("tryPayingWithChannel",{channelLabel:o.label})),9,Cne))),128))])):D("",!0),m("button",{onClick:r[4]||(r[4]=(...o)=>a.closeCheckout&&a.closeCheckout(...o))},T(t.$t("closeCheckout")),1)]))])):(f(),v("div",wne,[a.canPayWithBankTransferWithoutSavingToVault?(f(),se(i,{key:0,onClick:a.continueWithoutSavingToVault},{default:ne(()=>[Be(T(t.$t("continueWithoutSaving")),1)]),_:1},8,["onClick"])):D("",!0),a.canReuseLastChannel?(f(),v("button",{key:1,"data-testid":"try-another-method",onClick:r[5]||(r[5]=o=>a.setBankChannelView())},T(t.$t("tryAnotherBank")),1)):D("",!0),a.otherAvailableChannels.length?(f(),v("div",kne,[(f(!0),v(gt,null,Ot(a.otherAvailableChannels,o=>(f(),v("button",{onClick:l=>a.switchChannel(o.key),key:o.key},T(t.$t("tryPayingWithChannel",{channelLabel:o.label})),9,Sne))),128))])):D("",!0),a.canReusePaymentMethod?(f(),v("div",Ene,[m("button",{onClick:r[6]||(r[6]=(...o)=>a.retryPayingWithSameBank&&a.retryPayingWithSameBank(...o))},[r[7]||(r[7]=m("svg",{width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M5 0C2.25 0 0 2.25 0 5s2.25 5 5 5c2.313 0 4.25-1.625 5-3.75H8.75C8\n 7.688 6.625 8.75 5 8.75A3.761 3.761 0 0 1 1.25 5 3.761 3.761 0 0 1 5\n 1.25c1.063 0 1.714.576 2.429 1.321L5.625 4.375H10V0L8.35 1.63C7.41.757 6.374 0 5 0z",fill:"#000","fill-rule":"nonzero"})],-1)),m("span",Tne,T(t.$t("startOver")),1)])])):D("",!0)]))])}typeof Xu=="function"&&Xu(y7);const Ine=ee(y7,[["render",$ne],["__scopeId","data-v-a9c4f95a"]]),qh=t=>[On.SUCCESS,jh.AUTHORIZED].includes(t),Ane=t=>t===On.PENDING;function _3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{incorrectAmountErrorMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["We received a wrong amount, and a reversal/refund has been processed. Please transfer exactly ",s(a("amount"))," to complete this transaction."])},waveErrorMessage:e=>{const{normalize:n}=e;return n(["The Business is not enabled to collect via Wave."])},bankValidationMismatchMessage:e=>{const{normalize:n}=e;return n(["Phone number does not match your bank account or BVN record"])},bankVaultDefaultErrorMessage:e=>{const{normalize:n}=e;return n(["Sorry, we encountered a problem"])},fallbackMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["We were unable to charge your ",s(a("channelLabel"))])},retryWithTestDetails:e=>{const{normalize:n}=e;return n(["Retry with test details"])},closeCheckout:e=>{const{normalize:n}=e;return n(["Close Checkout"])},tryAgain:e=>{const{normalize:n}=e;return n(["Try again"])},startOver:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Start over with the same ",s(a("paymentMethod"))])},tryPayingWithChannel:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Try paying with ",s(a("channel"))])},tryAnother:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Try another ",s(a("paymentMethod"))])},pwtUssdAccountUnavailableError:e=>{const{normalize:n}=e;return n(["We’re having some trouble generating a USSD code. Please pay with any of our other channels."])},mpesaOffline:e=>{const{normalize:n}=e;return n(["Switch to M-PESA paybill"])},multiEftRetryLabel:e=>{const{normalize:n}=e;return n(["Try Pay by Bank"])},retryWithKenyaBankTransfer:e=>{const{normalize:n}=e;return n(["Try paying with Pesalink"])},retryWithGhanaBankTransfer:e=>{const{normalize:n}=e;return n(["Try paying with Bank Transfer"])},paymentMethodNames:{card:e=>{const{normalize:n}=e;return n(["card"])},bank:e=>{const{normalize:n}=e;return n(["bank account"])},mobile_money:e=>{const{normalize:n}=e;return n(["mobile money number"])},mpesa:e=>{const{normalize:n}=e;return n(["M-PESA number"])},mptill:e=>{const{normalize:n}=e;return n(["M-PESA Till number"])},atl_ke:e=>{const{normalize:n}=e;return n(["Airtel Number"])},wave_ci:e=>{const{normalize:n}=e;return n(["Wave account"])},orange_ci:e=>{const{normalize:n}=e;return n(["Orange Mobile Number"])},mtn_ci:e=>{const{normalize:n}=e;return n(["MTN Number"])},qr:e=>{const{normalize:n}=e;return n(["account"])},visa_qr:e=>{const{normalize:n}=e;return n(["account"])},ussd:e=>{const{normalize:n}=e;return n(["account"])},direct_debit:e=>{const{normalize:n}=e;return n(["account"])},bank_transfer:e=>{const{normalize:n}=e;return n(["transfer"])},eft:e=>{const{normalize:n}=e;return n(["Ozow payment"])},paypal:e=>{const{normalize:n}=e;return n(["PayPal payment"])},snapscan_qr:e=>{const{normalize:n}=e;return n(["SnapScan payment"])},mpass_olti_qr:e=>{const{normalize:n}=e;return n(["Scan to Pay payment"])},vault:e=>{const{normalize:n}=e;return n(["Vault payment method"])},capitec_pay:e=>{const{normalize:n}=e;return n(["Capitec account"])},eft_channels:e=>{const{normalize:n}=e;return n(["EFT"])},opay:e=>{const{normalize:n}=e;return n(["OPay account"])},zap:e=>{const{normalize:n}=e;return n(["Zap account"])}},channels:{card:e=>{const{normalize:n}=e;return n(["Card"])},bank:e=>{const{normalize:n}=e;return n(["Bank"])},ussd:e=>{const{normalize:n}=e;return n(["USSD"])},visa_qr:e=>{const{normalize:n}=e;return n(["Visa QR"])},mpass_olti_qr:e=>{const{normalize:n}=e;return n(["Scan to Pay"])},snapscan_qr:e=>{const{normalize:n}=e;return n(["SnapScan"])},mobile_money:e=>{const{normalize:n}=e;return n(["Mobile Money"])},mpesa:e=>{const{normalize:n}=e;return n(["M-PESA"])},mptill:e=>{const{normalize:n}=e;return n(["M-PESA Till"])},atl_ke:e=>{const{normalize:n}=e;return n(["Airtel Number"])},wave_ci:e=>{const{normalize:n}=e;return n(["Wave account"])},orange_ci:e=>{const{normalize:n}=e;return n(["Orange Mobile Number"])},mtn_ci:e=>{const{normalize:n}=e;return n(["MTN Number"])},direct_debit:e=>{const{normalize:n}=e;return n(["Direct Debit"])},bank_transfer:e=>{const{normalize:n}=e;return n(["Transfer"])},eft:e=>{const{normalize:n}=e;return n(["Ozow"])},capitec_pay:e=>{const{normalize:n}=e;return n(["Capitec Pay"])},eft_channels:e=>{const{normalize:n}=e;return n(["EFT"])},payattitude:e=>{const{normalize:n}=e;return n(["PayAttitude"])},paypal:e=>{const{normalize:n}=e;return n(["PayPal"])},opay:e=>{const{normalize:n}=e;return n(["OPay"])},vault:e=>{const{normalize:n}=e;return n(["Vault"])},zap:e=>{const{normalize:n}=e;return n(["Zap"])}}},fr:{incorrectAmountErrorMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Nous avons reçu un montant erroné, et l'annulation/le remboursement a été traité(e). Veuillez transférer exactement ",s(a("amount"))," pour effectuer cette transaction."])},waveErrorMessage:e=>{const{normalize:n}=e;return n(["l'entreprise n'est pas habilitée à collecter via Wave."])},fallbackMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Nous n'avons pas pu débiter votre ",s(a("channelLabel"))])},retryWithTestDetails:e=>{const{normalize:n}=e;return n(["Réessayer avec les informations du test"])},closeCheckout:e=>{const{normalize:n}=e;return n(["Fermer la commande"])},tryAgain:e=>{const{normalize:n}=e;return n(["Réessayer"])},startOver:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Recommencer avec le même ",s(a("paymentMethod"))])},tryPayingWithChannel:e=>{const{normalize:n,linked:s,type:a,interpolate:i,named:o}=e;return n(["Essayer de payer avec ",s("channels.",void 0,a),i(o("channel"))])},tryAnother:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Essayer un(e) autre ",s(a("paymentMethod"))])},pwtUssdAccountUnavailableError:e=>{const{normalize:n}=e;return n(["Nous rencontrons des difficultés pour générer un code USSD. Veuillez payer avec une autre méthode de paiement."])},mpesaOffline:e=>{const{normalize:n}=e;return n(["Passer à M-PESA paybill"])},paymentMethodNames:{card:e=>{const{normalize:n}=e;return n(["carte"])},mobile_money:e=>{const{normalize:n}=e;return n(["numéro mobile money"])},wave_ci:e=>{const{normalize:n}=e;return n(["compte Wave"])},zap:e=>{const{normalize:n}=e;return n(["Zap"])}},channels:{card:e=>{const{normalize:n}=e;return n(["Carte"])},mobile_money:e=>{const{normalize:n}=e;return n(["Mobile Money"])},wave_ci:e=>{const{normalize:n}=e;return n(["compte Wave"])},zap:e=>{const{normalize:n}=e;return n(["Zap"])}}},ar:{incorrectAmountErrorMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["تم تلقي مبلغ خطأ وتم إلغاء العملية/رد المبلغ. يرجى تحويل بالضبط ",s(a("amount"))," لإكمال هذه العملية."])},fallbackMessage:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["لم نتمكن من شحن ",s(a("channelLabel"))])},retryWithTestDetails:e=>{const{normalize:n}=e;return n(["أعد المحاولة بتفاصيل الاختبار"])},closeCheckout:e=>{const{normalize:n}=e;return n(["إغلاق الدفع"])},tryAgain:e=>{const{normalize:n}=e;return n(["حاول مرة أخرى"])},startOver:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["ابدأ من جديد بنفس ",s(a("paymentMethod"))])},tryPayingWithChannel:e=>{const{normalize:n,linked:s,type:a,interpolate:i,named:o}=e;return n(["حاول الدفع باستخدام ",s("channels.",void 0,a),i(o("channel"))])},tryAnother:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["حاول بطريقة اخرى ",s(a("paymentMethod"))])},paymentMethodNames:{card:e=>{const{normalize:n}=e;return n(["بطاقة"])}},channels:{card:e=>{const{normalize:n}=e;return n(["بطاقة"])}}}}})}const b7={name:"ErrorResolution",props:{message:String},components:{PaymentButton:dt,PayWithTransferErrorResolution:hne,BankVaultErrorResolution:Ine},data(){return{capitalize:e1}},emits:["switchChannel","reset"],setup(){const{hasMoreThanOneEftChannel:t}=Vo(),{isGhanaianTransaction:r,isKenyanTransaction:e}=Do(),{isMpesaPaybillAvailable:n}=e6();return{isGhanaianTransaction:r,isKenyanTransaction:e,hasMoreThanOneEftChannel:t,isMpesaPaybillAvailable:n}},mounted(){this.isIncorrectAmountError&&Bm()},computed:{...we(Nr,["mode"]),...we(ls,["knownErrors"]),...we(Qt,["ussdChannelState","bankChannelState"]),...we(ae,["transaction","transactionAmount","activeChannel","availableChannels","lastResponse","status","chargeType"]),isDefaultCharge(){return $$(this.chargeType)},isRecurringCardCharge(){return Bi(this.chargeType)},isPreauthorizationCharge(){return $8(this.chargeType)},transactionIsAlreadySuccessful(){var n;const t=qh(this.status),r=this.knownError&&this.knownError.resolution==="success",e=qh((n=this.lastResponse)==null?void 0:n.status);return t||e||r},lastPaymentMethod(){return this.$t("paymentMethodNames.".concat(this.activeChannel.name))},usePWTErrorResolution(){var n;const t=this.activeChannel.name==="bank_transfer",e=this.activeChannel.name==="ussd"&&((n=this.ussdChannelState.savedUssdData)==null?void 0:n.type)===Mn.PAY_WITH_TRANSFER;return this.knownError&&(t||e||this.noManagedAccountError)},canReusePaymentDetails(){return!(this.lastChannel.isOffline||this.isRecurringCardCharge||["eft"].includes(this.lastChannel.key))},lastChannel(){return this.availableChannels.find(t=>t.key===this.activeChannel.name)||this.availableChannels[0]},otherAvailableChannels(){const t=this.noManagedAccountError?["bank_transfer",this.activeChannel.name]:[this.activeChannel.name];return!this.hasMoreThanOneEftChannel&&oc.includes(this.activeChannel.name)&&t.push(dr.EFT_CHANNELS),this.availableChannels.filter(r=>!t.includes(r.key))},noManagedAccountError(){var t;return((t=this.message)==null?void 0:t.toLowerCase())==="no managed account available"},knownError(){const t=this.message&&this.message.toLowerCase();return this.knownErrors[t]},isIncorrectAmountError(){return(this.message&&this.message.toLowerCase())==="incorrect amount sent"},isBankVaultError(){var t,r;return((r=(t=this.lastResponse)==null?void 0:t.data)==null?void 0:r.type)===k3.BANK_VAULT},canReuseLastChannel(){const t=!this.knownError||["retry-same-payment-method","retry-same-channel"].includes(this.knownError.resolution);return!this.lastChannel.isOffline&&t&&(this.isDefaultCharge||this.isPreauthorizationCharge)},isWaveError(){return(this.message&&this.message.toLowerCase())==="the business is not enabled to collect via wave."},errorMessage(){var n,s,a,i,o,l;if(this.isIncorrectAmountError)return this.$t("incorrectAmountErrorMessage",{amount:Qn({amount:this.transactionAmount,currency:this.transaction.currency})});if(this.isBankVaultError)return((n=this.message)==null?void 0:n.toLowerCase())===Zh.BANK_VALIDATION_MISMATCH?this.$t("bankValidationMismatchMessage"):this.$t("bankVaultDefaultErrorMessage");if(this.noManagedAccountError&&this.lastChannel.key==="ussd")return this.$t("pwtUssdAccountUnavailableError");if(this.isWaveError)return this.$t("waveErrorMessage");const t=((i=(a=(s=this.$i18n)==null?void 0:s.locale)==null?void 0:a.split("-"))==null?void 0:i[0])||"en",r=((l=(o=this.knownError)==null?void 0:o.message)==null?void 0:l[t])||this.message,e=this.$t("fallbackMessage",{channelLabel:this.lastPaymentMethod||"account"});return r||e},isInsufficientFundsError(){const t=["insufficient funds","not sufficient funds","your balance is not sufficient for this transaction","no sufficient funds"],r=this.message&&this.message.toLowerCase();return t.includes(r)},shouldCloseCheckout(){return this.knownError&&this.knownError.resolution==="close-checkout"},canReusePaymentMethod(){return this.activeChannel.name===dr.OZOW?!1:this.knownError?this.isInsufficientFundsError?!1:this.knownError.resolution==="retry-same-payment-method":!0}},methods:{...It(ae,["setUseDefaultChannelView"]),switchChannel(t){this.$emit("switchChannel",t),Hl("Switch Channel")},reset(t){this.$emit("reset",t),this.setUseDefaultChannelView(!0),Hl("Reset Channel")},retry(t){this.$emit("reset",{reusePaymentInfo:!0,...t||{}}),Hl("Retry")},close(){qm(this.transaction,this.mode,Rd.ERROR_RESOLUTION)},getChannelName(t){const r=this.isGhanaianTransaction&&t.key==="bank_transfer",e=this.isKenyanTransaction&&t.key==="bank_transfer";return t.key===dr.EFT_CHANNELS?this.$t("multiEftRetryLabel"):e?this.$t("retryWithKenyaBankTransfer"):r?this.$t("retryWithGhanaBankTransfer"):this.$t("tryPayingWithChannel",{channel:this.$t("channels.".concat(t.key))})}}},zne={class:"error"},Rne={class:"error__header"},Pne={class:"error__message","data-testid":"errorMessage"},Nne={key:0,class:"resolution","data-testid":"errorResolution"},Mne={key:1},Lne={key:2},xne={key:0},One={key:2},Fne={key:0},Dne={key:1},Vne={key:2},Bne=["onClick"],Une={key:3,class:"error__retry"},Hne={key:0,"data-testid":"start-over-with-same-details"},qne={key:1};function Wne(t,r,e,n,s,a){const i=P("pay-with-transfer-error-resolution"),o=P("bank-vault-error-resolution"),l=P("payment-button");return f(),v("div",zne,[r[7]||(r[7]=m("img",{class:"error__icon",src:Td,alt:"Error"},null,-1)),m("div",Rne,[m("div",Pne,T(a.errorMessage),1)]),a.transactionIsAlreadySuccessful?(f(),v("button",{key:1,onClick:r[5]||(r[5]=(...d)=>a.close&&a.close(...d)),"data-testId":"close-checkout-button"},T(t.$t("closeCheckout")),1)):(f(),v("div",Nne,[a.shouldCloseCheckout?(f(),v("button",{key:0,onClick:r[0]||(r[0]=(...d)=>a.close&&a.close(...d)),"data-testId":"close-checkout-button"},T(t.$t("closeCheckout")),1)):t.transaction.isTest?(f(),v("div",Mne,[m("button",{onClick:r[1]||(r[1]=(...d)=>a.reset&&a.reset(...d)),"data-testId":"retryTestPaymentButton"},T(t.$t("retryWithTestDetails")),1)])):(f(),v("div",Lne,[a.usePWTErrorResolution?(f(),v("div",xne,[$(i,{otherAvailableChannels:a.otherAvailableChannels,errorMessage:e.message,onSwitchChannel:a.switchChannel,onRetry:a.retry},null,8,["otherAvailableChannels","errorMessage","onSwitchChannel","onRetry"])])):a.isBankVaultError?(f(),se(o,{key:1,message:e.message,onSwitchChannel:a.switchChannel,onRetry:a.retry,onReset:a.reset,onClose:a.close},null,8,["message","onSwitchChannel","onRetry","onReset","onClose"])):(f(),v("div",One,[t.activeChannel.name==="mpesa"&&n.isMpesaPaybillAvailable?(f(),v("div",Fne,[$(l,{onClick:r[2]||(r[2]=d=>a.switchChannel({name:"mpesa",view:"paybill_offline"})),"data-testid":"mpesa-offline-button"},{default:ne(()=>[Be(T(t.$t("mpesaOffline")),1)]),_:1})])):D("",!0),a.canReuseLastChannel?(f(),v("div",Dne,[m("button",{"data-testid":"try-another-method",onClick:r[3]||(r[3]=(...d)=>a.reset&&a.reset(...d))},T(t.$t("tryAnother",{paymentMethod:a.lastPaymentMethod})),1)])):D("",!0),a.otherAvailableChannels.length?(f(),v("div",Vne,[(f(!0),v(gt,null,Ot(a.otherAvailableChannels,d=>(f(),v("button",{onClick:u=>a.switchChannel(d.key),key:d.key},T(a.getChannelName(d)),9,Bne))),128))])):D("",!0),a.canReusePaymentMethod?(f(),v("div",Une,[m("button",{onClick:r[4]||(r[4]=(...d)=>a.retry&&a.retry(...d))},[r[6]||(r[6]=m("svg",{width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg"},[m("path",{d:"M5 0C2.25 0 0 2.25 0 5s2.25 5 5 5c2.313 0 4.25-1.625 5-3.75H8.75C8\n 7.688 6.625 8.75 5 8.75A3.761 3.761 0 0 1 1.25 5 3.761 3.761 0 0 1 5\n 1.25c1.063 0 1.714.576 2.429 1.321L5.625 4.375H10V0L8.35 1.63C7.41.757 6.374 0 5 0z",fill:"#000","fill-rule":"nonzero"})],-1)),a.canReusePaymentDetails?(f(),v("span",Hne,T(t.$t("startOver",{paymentMethod:a.lastPaymentMethod})),1)):(f(),v("span",qne,T(t.$t("tryAgain")),1))])])):D("",!0)]))]))]))])}typeof _3=="function"&&_3(b7);const Gne=ee(b7,[["render",Wne],["__scopeId","data-v-98e3f36e"]]);function g3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{checkingTransactionStatus:e=>{const{normalize:n}=e;return n(["Checking transaction status"])}},fr:{checkingTransactionStatus:e=>{const{normalize:n}=e;return n(["Etat de la transaction"])}},ar:{checkingTransactionStatus:e=>{const{normalize:n}=e;return n(["التحقق من حالة العملية"])}}}})}const C7={name:"TransactionRequery",props:{message:{type:String}},components:{Loader:tn},emits:["failed","success"],computed:{...we(ae,["transaction"]),requeryMessage(){return this.message||this.$t("checkingTransactionStatus")}},created(){this.requeryTransactionStatus()},methods:{...It(ae,["saveLastResponse","setTransactionStatus"]),requeryTransactionStatus(){const t=this.transaction.isTest?0:5e3;setTimeout(()=>this.handleRequery(),t)},async handleRequery(){const t=await this.transaction.requery(),{status:r,message:e,data:n}=t;switch(this.saveLastResponse(t),this.setTransactionStatus(r),r){case On.REQUERY:this.requeryTransactionStatus();break;case On.SUCCESS:case jh.AUTHORIZED:this.$emit("success",n);break;case On.FAILED:this.$emit("failed",e);break}}}};function jne(t,r,e,n,s,a){const i=P("loader");return f(),se(i,{message:a.requeryMessage,"data-testid":"requery-loader"},null,8,["message"])}typeof g3=="function"&&g3(C7);const Zne=ee(C7,[["render",jne]]);function v3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{title:{pending:e=>{const{normalize:n}=e;return n(["Payment processing"])},success:e=>{const{normalize:n}=e;return n(["Payment Successful"])},authorized:e=>{const{normalize:n}=e;return n(["Payment Authorized"])}},message:{success:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["You paid ",s(a("amount"))," to ",s(a("merchant"))])},pending:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Your payment of ",s(a("amount"))," to ",s(a("merchant"))," is being processed, you will be notified by your bank when the payment is completed."])},authorized:e=>{const{normalize:n,interpolate:s,named:a}=e;return n([s(a("amount"))," will be reserved on your account until you are charged by ",s(a("merchant"))])}}},fr:{title:{pending:e=>{const{normalize:n}=e;return n(["Traitement du paiement"])},success:e=>{const{normalize:n}=e;return n(["Paiement réussi"])},authorized:e=>{const{normalize:n}=e;return n(["Paiement autorisé"])}},message:{success:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Vous avez payé ",s(a("amount"))," à ",s(a("merchant"))])},pending:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["Votre paiement de ",s(a("amount"))," à ",s(a("merchant"))," est en cours de traitement, vous recevrez une notification de votre banque une fois le paiement effectué."])},authorized:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["سيتم حجز ",s(a("amount"))," في حسابك حتى يتم تحصيل الرسوم منك من ",s(a("merchant"))])}}},ar:{title:{pending:e=>{const{normalize:n}=e;return n(["معالجة عملية الدفع"])},success:e=>{const{normalize:n}=e;return n(["تم الدفع بنجاح"])},authorized:e=>{const{normalize:n}=e;return n(["تم التصريح بالدفع"])}},message:{success:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["تم دفع ",s(a("amount"))," إلى ",s(a("merchant"))])},pending:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["تتم عمليه معالجه دفع ",s(a("amount"))," الي ",s(a("merchant"))," وسيتم إخطارك من قبل البنك الخاص بك عند اكتمال الدفع."])},authorized:e=>{const{normalize:n,interpolate:s,named:a}=e;return n(["سيتم حجز ",s(a("amount"))," في حسابك حتى يتم تحصيل الرسوم منك من ",s(a("merchant"))])}}}}})}const w7={name:"PaymentSuccess",props:["successResponse"],computed:{...we(ae,["transaction","transactionAmount","transactionAmountCurrency","status"]),...we(Nr,["mode"]),paymentStatus(){return this.paymentPending?"pending":"success"},formattedAmount(){const t=this.transactionAmountCurrency||this.transaction.currency;return Qn({amount:this.transactionAmount,currency:t})},message(){const{merchant:t}=this.transaction;return{success:this.$t("message.success",{amount:this.formattedAmount,merchant:t==null?void 0:t.name}),authorized:this.$t("message.authorized",{amount:this.formattedAmount,merchant:t==null?void 0:t.name}),pending:this.$t("message.pending",{amount:this.formattedAmount,merchant:t==null?void 0:t.name})}[this.status]},title(){return{success:this.$t("title.success"),authorized:this.$t("title.authorized"),pending:this.$t("title.pending")}[this.status]}},mounted(){this.timerId=setTimeout(()=>{this.endSession()},1e3)},beforeUnmount(){clearTimeout(this.timerId)},methods:{endSession(){var t;Ua("success",Lt(this.successResponse)),this.mode!==Ms.POPUP&&((t=this.successResponse)!=null&&t.redirecturl)&&Hm.redirectTo(this.successResponse.redirecturl)}}},Kne={class:"success animated fadeIn"},Yne={class:"success__title","data-testid":"successTitle"},Qne={class:"success__message","data-testid":"successMessage"};function Jne(t,r,e,n,s,a){return f(),v("div",Kne,[m("div",null,[r[0]||(r[0]=m("div",{class:"success__icon"},[m("svg",{id:"success-icon",version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130.2 130.2"},[m("circle",{class:"circle",fill:"none",stroke:"#3bb75e","stroke-width":"6","stroke-miterlimit":"10",cx:"65.1",cy:"65.1",r:"62.1"}),m("polyline",{class:"checkmark",fill:"none",stroke:"#3bb75e","stroke-width":"6","stroke-linecap":"round","stroke-miterlimit":"10",points:"100.2,40.2 51.5,88.8 29.8,67.5 "})])],-1)),m("h2",Yne,T(a.title),1),m("h2",Qne,T(a.message),1)])])}typeof v3=="function"&&v3(w7);const Xne=ee(w7,[["render",Jne],["__scopeId","data-v-1bfc11c4"]]);function y3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{changePaymentMethod:e=>{const{normalize:n}=e;return n(["Change Payment Method"])},cancelPayment:e=>{const{normalize:n}=e;return n(["Cancel Payment"])}},fr:{changePaymentMethod:e=>{const{normalize:n}=e;return n(["Modifier le Mode de Paiement"])},cancelPayment:e=>{const{normalize:n}=e;return n(["Annuler le Paiement"])}},ar:{changePaymentMethod:e=>{const{normalize:n}=e;return n(["تغيير طريقة الدفع"])},cancelPayment:e=>{const{normalize:n}=e;return n(["الغاء الدفع"])}}}})}const k7={name:"CheckoutCore",components:{Container:J8,Navigation:vz,CloseButton:X8,FooterButton:e5,PaymentInfo:Iz,PaymentForm:Pte,PreCheckoutView:ene,ErrorResolution:Gne,TransactionRequery:Zne,PaymentSuccess:Xne},props:{canShowPreCheckoutView:Boolean},data(){return{successResponse:null,preCheckoutViewClosed:!1,isMobile:Fn({tablet:!0})}},emits:["reload"],computed:{...we(Nr,["mode"]),...we(ae,["transaction","transactionAmount","activeChannel","availableChannels","isCharging","isResumed","chargeType","status","lastResponse","reusePaymentInfo"]),isSuccessful(){return this.isPendingHandledAsSuccess||qh(this.status)},isPendingHandledAsSuccess(){return Ane(this.status)&&!["mpesa","mobile_money"].includes(this.activeChannel.name)},checkoutChannels(){return BP(this.availableChannels)},showNavigation(){return this.checkoutChannels.length===1&&!Wl[this.transaction.currency]?!1:!this.isSuccessful&&(this.isMobile||!this.showPreCheckoutView)},showPaymentInfo(){const t=this.showPreCheckoutView?!Fn():!!this.activeChannel.name;return!this.isSuccessful&&t},containerSize(){return this.showNavigation?"md":"sm"},lastResponseMessage(){return this.lastResponse&&this.lastResponse.message},canChangePaymentMethod(){return!!this.activeChannel.name&&this.checkoutChannels.length>1},canPayWithApplePay(){var r,e;const t=window&&window.ApplePaySession;return!this.isRecurringCardCharge&&((e=(r=this.transaction)==null?void 0:r.channels)==null?void 0:e.includes("apple_pay"))&&!!t},canPayWithVault(){return this.availableChannels.some(({key:t})=>t==="vault")},showPreCheckoutView(){const t=this.canPayWithApplePay||this.canPayWithVault;return this.canShowPreCheckoutView&&this.mode===Ms.STANDARD&&t&&!this.preCheckoutViewClosed},isRecurringCardCharge(){return Bi(this.chargeType)}},created(){var t,r;if(((t=this.availableChannels)==null?void 0:t.length)>0){const e=VP(this.availableChannels);(((r=this.availableChannels)==null?void 0:r.length)===1||!Fn()||this.isResumed)&&this.setActiveChannel({name:e})}},beforeMount(){Wl[this.transaction.currency]||bn.switchLanguage(Zr.I18N_DEFAULT_LANGUAGE)},methods:{...It(ae,["setActiveChannel","setPaymentInfoReuse","setTransactionStatus"]),setChannel(t){const r=t&&typeof t=="object"?t:{name:t};this.reset(),this.setActiveChannel(r),!oc.includes(r.name)&&this.transaction.logChannelSwitch(r.name)},onSuccess(t,r){const e=(r==null?void 0:r.channel)||this.activeChannel.name,n=this.transaction.currency,s=ys(this.transactionAmount),a=this.transaction.getTimeSpent(),i=r&&r.usedSavedCard,o=r&&r.usedPaymentRequestApi;e!=="vault"&&FP(e),P8({channel:e,currency:n,amount:s,timeSpent:a,usedSavedCard:i,usedPaymentRequestApi:o}),this.transaction.remember_card&&L8(),this.saveSuccessResponse(t)},saveSuccessResponse(t){const{response:r,redirecturl:e,page:n,reference:s,trans:a,...i}=t,o={reference:s,trans:a,status:"success",message:r,transaction:a,trxref:s,...i};n&&(o.page=n);const l="?trxref=".concat(s);e&&e!==l&&(o.redirecturl=e),this.successResponse=o},onFail(t,r){const e=(r==null?void 0:r.channel)||this.activeChannel.name;Nd({channel:e,message:t})},onCancel(){qm(this.transaction,this.mode,Rd.CHECKOUT_CLOSE)},reset(t){this.isRecurringCardCharge?this.$emit("reload"):(this.setActiveChannel({name:this.activeChannel.name,...(t==null?void 0:t.channel)||{}}),this.status!=="abandoned"&&this.setTransactionStatus("abandoned"));const r=!!(t&&t.reusePaymentInfo);this.reusePaymentInfo!==r&&this.setPaymentInfoReuse(r)},closePreCheckoutView(){this.preCheckoutViewClosed=!0},handlePayWithApplePayResponse({status:t,data:r},e){t==="success"&&this.onSuccess(r,e),t==="failed"&&this.onFail(r,e)}}},ere={class:"checkout__outer-container"},tre={class:"checkout"},nre={class:"checkout__nav"},rre={class:"checkout__core"},sre={key:0,class:"checkout__stage"},are={key:1},ire={class:"desktop-only"},ore={key:0,class:"checkout__footer mobile-only","data-testId":"mobileCancelbutton"};function lre(t,r,e,n,s,a){const i=P("navigation"),o=P("payment-info"),l=P("payment-success"),d=P("error-resolution"),u=P("transaction-requery"),g=P("payment-form"),y=P("pre-checkout-view"),w=P("close-button"),k=P("footer-button"),E=P("container");return f(),v("div",ere,[$(E,{size:a.containerSize},{default:ne(()=>[m("div",tre,[ct(m("div",nre,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[$(i,{onSetChannel:a.setChannel},null,8,["onSetChannel"])]),_:1})],512),[[hr,a.showNavigation]]),m("div",rre,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[ct($(o,null,null,512),[[hr,a.showPaymentInfo]])]),_:1}),t.activeChannel.name&&(!a.showPreCheckoutView||s.isMobile)?(f(),v("div",sre,[$(rt,{name:"fade",mode:"out-in"},{default:ne(()=>[a.isSuccessful?(f(),se(l,{key:0,successResponse:s.successResponse},null,8,["successResponse"])):t.status==="failed"?(f(),se(d,{key:1,message:a.lastResponseMessage,onReset:a.reset,onSwitchChannel:a.setChannel},null,8,["message","onReset","onSwitchChannel"])):t.status==="requery"?(f(),se(u,{key:2,message:a.lastResponseMessage,onSuccess:a.onSuccess,onFailed:a.onFail},null,8,["message","onSuccess","onFailed"])):(f(),se(g,{key:3,onReload:a.reset,onSuccess:a.onSuccess,onFailed:a.onFail},null,8,["onReload","onSuccess","onFailed"]))]),_:1})])):D("",!0),a.showPreCheckoutView?(f(),v("div",are,[$(y,{canPayWithVault:a.canPayWithVault,canPayWithApplePay:a.canPayWithApplePay,onPayWithApplePayResponse:a.handlePayWithApplePayResponse,onClosed:a.closePreCheckoutView},null,8,["canPayWithVault","canPayWithApplePay","onPayWithApplePayResponse","onClosed"])])):D("",!0)]),m("div",ire,[$(w,{onClick:a.onCancel},null,8,["onClick"])]),a.isSuccessful?D("",!0):(f(),v("div",ore,[a.canChangePaymentMethod?(f(),se(k,{key:0,text:t.$t("changePaymentMethod"),icon:"change",onClick:r[0]||(r[0]=R=>a.setChannel(null))},null,8,["text"])):D("",!0),$(k,{text:t.$t("cancelPayment"),icon:"cancel",onClick:a.onCancel},null,8,["text","onClick"])]))])]),_:1},8,["size"])])}typeof y3=="function"&&y3(k7);const cre=ee(k7,[["render",lre],["__scopeId","data-v-7c63b7cc"]]),ure=Zr.REACH_FINGERPRINT_URL,dre=t=>{try{const r=new URL(ure);return r.searchParams.set("MerchantId",t),a1(r)}catch(r){return!1}},hre=[{name:"Zenith Bank",slug:"zenith-bank",code:"057",longcode:"057150013",gateway:"emandate",pay_with_bank:!0,active:!0,is_deleted:!1,country:"Nigeria",currency:"NGN",type:"nuban",id:21,createdAt:"2016-07-14T10:04:29.000Z",updatedAt:"2016-07-14T10:04:29.000Z"},{name:"Kuda Bank",slug:"kuda-bank",code:"50211",longcode:"50211",gateway:"digitalbankmandate",pay_with_bank:!0,active:!0,is_deleted:!1,country:"Nigeria",currency:"NGN",type:"nuban",id:67,createdAt:"2019-11-12T23:12:00.000Z",updatedAt:"2019-11-12T23:12:00.000Z",types:["wallet"]}];function b3(t){const r=t;r.__i18n=r.__i18n||[],r.__i18n.push({locale:"",resource:{en:{setupError:{couldNotStartTransaction:e=>{const{normalize:n}=e;return n(["We could not start this transaction"])},pageNotFound:e=>{const{normalize:n}=e;return n(["Page not found"])},invalidTransaction:e=>{const{normalize:n}=e;return n(["This transaction is either invalid or already completed. Please confirm that the link is correct."])},noAvailableChannels:e=>{const{normalize:n}=e;return n(["There are no channels available to process this transaction. Please contact the merchant."])}}},fr:{setupError:{couldNotStartTransaction:e=>{const{normalize:n}=e;return n(["Nous n'avons pas pu lancer cette transaction"])},pageNotFound:e=>{const{normalize:n}=e;return n(["Page introuvable"])},invalidTransaction:e=>{const{normalize:n}=e;return n(["Cette transaction n'est pas valide ou a déjà été effectuée. Veuillez confirmer que le lien est correct."])},noAvailableChannels:e=>{const{normalize:n}=e;return n(["Il n'y a pas de canaux disponibles pour traiter cette transaction. Veuillez contacter le commerçant."])}}},ar:{setupError:{couldNotStartTransaction:e=>{const{normalize:n}=e;return n(["لم نتمكن من بدء العملية"])},pageNotFound:e=>{const{normalize:n}=e;return n(["الصفحة غير موجودة"])},invalidTransaction:e=>{const{normalize:n}=e;return n(["هذه العملية إما غير صالحة أو اكتملت بالفعل. يرجى تأكيد أن الرابط صحيح."])},noAvailableChannels:e=>{const{normalize:n}=e;return n(["لا يوجد أي قنوات متاحة لمعالجة هذه المعاملة. يرجى الاتصال بالتاجر."])}}}}})}function mre(t){if(t!=null&&t.response){const{data:r}=t.response;return r==null?void 0:r.message}return t==null?void 0:t.message}const S7={name:"App",components:{Loader:tn,SetupError:EI,Checkout:cre},data(){return{loading:!0,params:null,error:null,errorCode:null,canShowPreCheckoutView:!0}},computed:{...we(ae,["transaction","activeChannel","chargeType","availableChannels"]),...we(Nr,["mode"]),isRecurringCardCharge(){return Bi(this.chargeType)},isPreauthorizationCharge(){return $8(this.chargeType)}},beforeMount(){const t=this.getUrlParts();this.setChargeType(T$(t));const r=this.getAccessCode(t),e=this.getTransactionNonce(),n=r===Ms.POPUP?Ms.POPUP:Ms.STANDARD;if(I8({mode:n}),this.setMode(n),Ua("loadedCheckout"),e){this.canShowPreCheckoutView=!1,this.setupTransaction({transactionNonce:e});return}if(n===Ms.POPUP)R$(s=>{const{language:a,...i}=s!=null?s:{};Object.keys(i).length>0&&this.setupTransaction(i),a&&bn.isLanguageSupported(a)&&bn.switchLanguage(a)}),P$(()=>{this.setActiveChannel({name:"vault",view:"vault-payment-instruments"})}),N$(({action:s,params:a})=>{sg[s]&&sg[s](a)});else if(r){this.setupTransaction({accessCode:r});const a=new URLSearchParams(window.location.search).get("lang");a&&bn.isLanguageSupported(a)&&bn.switchLanguage(a)}else this.error=this.$t("setupError.pageNotFound"),this.errorCode=404,this.loading=!1},methods:{...It(ae,["setChargeType","removeStoreTransaction","resetChannels","saveLastResponse","setTransactionStatus","setAvailableChannels","setTransaction","setActiveChannel","setTransactionAsResumed"]),...It(Nr,["setMode","setBrowserIp"]),...It(ls,["setBanks","setResolutions"]),getUrlParts(){var t,r;return(r=(t=window==null?void 0:window.location)==null?void 0:t.pathname)==null?void 0:r.split("/").slice(1)},getAccessCode(t){return this.isPreauthorizationCharge||this.isRecurringCardCharge?t==null?void 0:t[1]:t==null?void 0:t[0]},getTransactionNonce(){return new URLSearchParams(window.location.search).get("nonce")},removeTransaction(){this.transaction&&(this.removeStoreTransaction(),this.resetChannels())},resetError(){this.error=null,this.loading=!0},async setupTransaction({transactionNonce:t,...r}){var e,n,s,a;this.removeTransaction(),this.resetError(),this.params=r;try{const i=t?await this.resumeTransaction(t):await this.requestTransaction(r);if(this.isRecurringCardCharge){i.channels=["card"];const k=await i.resumeCardCharge(r);this.saveLastResponse(k),this.setTransactionStatus(k.status)}else this.setTransactionStatus(i.status);const o=this.mode!==Ms.POPUP&&!this.isRecurringCardCharge&&((e=i==null?void 0:i.channels)==null?void 0:e.includes("apple_pay"))&&(window==null?void 0:window.ApplePaySession);this.setupAnalytics(i),o&&await xte();const l=(s=(n=i==null?void 0:i.channelSettings)==null?void 0:n.card)==null?void 0:s.reach_merchant_id;l&&await dre(l),this.setTransaction(i),Ua("loadedTransaction",i),this.mode===Ms.STANDARD&&document.referrer&&!((a=i==null?void 0:i.metadata)!=null&&a.referrer)&&!document.referrer.includes(Zr.CHECKOUT_URL)&&i.saveReferrer(document.referrer);const u=OP(i,this.chargeType),g=Dte(i.channels)&&!this.isRecurringCardCharge;if(u.length===0&&!g)throw new Error(this.$t("setupError.noAvailableChannels"));if(this.mode===Ms.POPUP&&u.length===0){this.error=this.$t("setupError.noAvailableChannels"),this.loading=!1;return}this.setAvailableChannels(u),this.activeChannel.name&&!u.find(k=>k.label===this.activeChannel.name)&&this.setActiveChannel({name:u[0].key}),t&&(this.setTransactionStatus("requery"),this.setTransactionAsResumed(),O8(),this.transaction.logAuthWindowClose(),history.replaceState({},"Paystack Checkout",window.location.pathname)),i.channels.includes("bank")&&this.setBanks(i.isTest?hre:this.transaction.supportedBanks.filter(k=>k.slug!=="zap")),this.loading=!1;const w=await wo.fetch("resolutions").catch(()=>{});w!=null&&w.data&&this.setResolutions(w.data)}catch(i){const o=mre(i);this.error=o||this.$t("setupError.invalidTransaction"),this.loading=!1,Ua("loadedTransaction"),Ua("error",{type:"setup",message:this.error}),A8({message:this.error,mode:this.mode}),console.error(i)}},requestTransaction(t){const{accessCode:r,transactionData:e}=t;return this.isPreauthorizationCharge?Lp.requestWithAccessCode(r):r?Hc.requestWithAccessCode(r):e?Hc.createInstance(e):Hc.request(t)},async resumeTransaction(t){const[r,e,n]=t.split("-"),s=ZP(r);return this.setActiveChannel({name:n}),this.isPreauthorizationCharge?Lp.getByAccessCode(e,s):Hc.getByAccessCode(e,s)},async reload(){if(this.params)if(this.isRecurringCardCharge&&this.transaction){this.resetError();const t=await this.transaction.resumeCardCharge(this.params);this.saveLastResponse(t),this.setTransactionStatus(t.status),this.loading=!1}else this.setupTransaction(this.params)},async setupAnalytics(t){if(!t.isTest)try{const r=await UP();this.setBrowserIp(r.ip_address);const n=window&&window.performance&&window.performance.now?Math.round(window.performance.now())/1e3:null;z8({...t,timeToLoad:n,mode:this.mode})}catch(r){}}}},pre={id:"app",class:"app","data-testid":"app-component"},fre={key:0,class:"app__loader"};function _re(t,r,e,n,s,a){const i=P("loader"),o=P("setup-error"),l=P("checkout");return f(),v("div",pre,[s.loading?(f(),v("div",fre,[$(i)])):(f(),se(rt,{key:1,"enter-active-class":"animated zoomIn","leave-active-class":"animated fadeOut",mode:"out-in",appear:""},{default:ne(()=>[s.error?(f(),se(o,{key:0,title:t.$t("setupError.couldNotStartTransaction"),message:s.error,code:s.errorCode,onReload:a.reload},null,8,["title","message","code","onReload"])):t.transaction?(f(),se(l,{key:1,onReload:a.reload,canShowPreCheckoutView:s.canShowPreCheckoutView},null,8,["onReload","canShowPreCheckoutView"])):D("",!0)]),_:1}))])}typeof b3=="function"&&b3(S7);const gre=ee(S7,[["render",_re],["__scopeId","data-v-4bd30d6a"]]);(function(){function t(h,c,p,_,b,C,I){try{var L=h[C](I),q=L.value}catch(H){return void p(H)}L.done?c(q):Promise.resolve(q).then(_,b)}function r(h){return function(){var c=this,p=arguments;return new Promise((function(_,b){var C=h.apply(c,p);function I(q){t(C,_,b,I,L,"next",q)}function L(q){t(C,_,b,I,L,"throw",q)}I(void 0)}))}}function e(){return e=Object.assign?Object.assign.bind():function(h){for(var c=1;arguments.length>c;c++){var p=arguments[c];for(var _ in p)({}).hasOwnProperty.call(p,_)&&(h[_]=p[_])}return h},e.apply(null,arguments)}var n,s=["type"],a=Object.defineProperty,i=(h,c,p)=>((_,b,C)=>b in _?a(_,b,{enumerable:!0,configurable:!0,writable:!0,value:C}):_[b]=C)(h,typeof c!="symbol"?c+"":c,p),o=(h=>(h[h.DomContentLoaded=0]="DomContentLoaded",h[h.Load=1]="Load",h[h.FullSnapshot=2]="FullSnapshot",h[h.IncrementalSnapshot=3]="IncrementalSnapshot",h[h.Meta=4]="Meta",h[h.Custom=5]="Custom",h[h.Plugin=6]="Plugin",h))(o||{}),l=(h=>(h[h.Mutation=0]="Mutation",h[h.MouseMove=1]="MouseMove",h[h.MouseInteraction=2]="MouseInteraction",h[h.Scroll=3]="Scroll",h[h.ViewportResize=4]="ViewportResize",h[h.Input=5]="Input",h[h.TouchMove=6]="TouchMove",h[h.MediaInteraction=7]="MediaInteraction",h[h.StyleSheetRule=8]="StyleSheetRule",h[h.CanvasMutation=9]="CanvasMutation",h[h.Font=10]="Font",h[h.Log=11]="Log",h[h.Drag=12]="Drag",h[h.StyleDeclaration=13]="StyleDeclaration",h[h.Selection=14]="Selection",h[h.AdoptedStyleSheet=15]="AdoptedStyleSheet",h[h.CustomElement=16]="CustomElement",h))(l||{}),d=(h=>(h[h.MouseUp=0]="MouseUp",h[h.MouseDown=1]="MouseDown",h[h.Click=2]="Click",h[h.ContextMenu=3]="ContextMenu",h[h.DblClick=4]="DblClick",h[h.Focus=5]="Focus",h[h.Blur=6]="Blur",h[h.TouchStart=7]="TouchStart",h[h.TouchMove_Departed=8]="TouchMove_Departed",h[h.TouchEnd=9]="TouchEnd",h[h.TouchCancel=10]="TouchCancel",h))(d||{}),u=(h=>(h[h.Mouse=0]="Mouse",h[h.Pen=1]="Pen",h[h.Touch=2]="Touch",h))(u||{}),g=(h=>(h[h["2D"]=0]="2D",h[h.WebGL=1]="WebGL",h[h.WebGL2=2]="WebGL2",h))(g||{}),y=(h=>(h[h.Play=0]="Play",h[h.Pause=1]="Pause",h[h.Seeked=2]="Seeked",h[h.VolumeChange=3]="VolumeChange",h[h.RateChange=4]="RateChange",h))(y||{}),w=(h=>(h[h.Document=0]="Document",h[h.DocumentType=1]="DocumentType",h[h.Element=2]="Element",h[h.Text=3]="Text",h[h.CDATA=4]="CDATA",h[h.Comment=5]="Comment",h))(w||{}),k={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot"],MutationObserver:[]},E={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:["querySelector","querySelectorAll"],MutationObserver:["constructor"]},R={};function O(h){if(R[h])return R[h];var c=(function(K){var ie,pe,oe=(pe=(ie=globalThis==null?void 0:globalThis.Zone)==null?void 0:ie.__symbol__)==null?void 0:pe.call(ie,K);return oe&&globalThis[oe]?globalThis[oe]:void 0})(h)||globalThis[h],p=c.prototype,_=h in k?k[h]:void 0,b=!!(_&&_.every((K=>{var ie,pe;return!!((pe=(ie=Object.getOwnPropertyDescriptor(p,K))==null?void 0:ie.get)!=null&&pe.toString().includes("[native code]"))}))),C=h in E?E[h]:void 0,I=!!(C&&C.every((K=>{var ie;return typeof p[K]=="function"&&((ie=p[K])==null?void 0:ie.toString().includes("[native code]"))})));if(b&&I)return R[h]=c.prototype,c.prototype;var L=document.createElement("iframe");try{document.body.appendChild(L);var q=L.contentWindow;if(!q)return c.prototype;var H=q[h].prototype;return H?R[h]=H:p}catch(K){return p}finally{L.parentNode&&document.body.removeChild(L)}}var M={};function x(h,c,p){var _,b=h+"."+String(p);if(M[b])return M[b].call(c);var C=O(h),I=(_=Object.getOwnPropertyDescriptor(C,p))==null?void 0:_.get;return I?(M[b]=I,I.call(c)):c[p]}var N={};function A(h,c,p){var _=h+"."+String(p);if(N[_])return N[_].bind(c);var b=O(h)[p];return typeof b!="function"?c[p]:(N[_]=b,b.bind(c))}function V(){return O("MutationObserver").constructor}function F(h,c,p){try{if(!(c in h))return()=>{};var _=h[c],b=p(_);return typeof b=="function"&&(b.prototype=b.prototype||{},Object.defineProperties(b,{__rrweb_original__:{enumerable:!1,value:_}})),h[c]=b,()=>{h[c]=_}}catch(C){return()=>{}}}var S={childNodes:h=>x("Node",h,"childNodes"),parentNode:h=>x("Node",h,"parentNode"),parentElement:h=>x("Node",h,"parentElement"),textContent:h=>x("Node",h,"textContent"),contains:(h,c)=>A("Node",h,"contains")(c),getRootNode:h=>A("Node",h,"getRootNode")(),host:h=>h&&"host"in h?x("ShadowRoot",h,"host"):null,styleSheets:h=>h.styleSheets,shadowRoot:h=>h&&"shadowRoot"in h?x("Element",h,"shadowRoot"):null,querySelector:(h,c)=>A("Element",h,"querySelector")(c),querySelectorAll:(h,c)=>A("Element",h,"querySelectorAll")(c),mutationObserver:V,patch:F};function z(h){return h.nodeType===h.ELEMENT_NODE}function U(h){var c=h&&"host"in h&&"mode"in h&&S.host(h)||null;return!!(c&&"shadowRoot"in c&&S.shadowRoot(c)===h)}function j(h){return{}.toString.call(h)==="[object ShadowRoot]"}function J(h){try{var c=h.rules||h.cssRules;if(!c)return null;var p=h.href;return!p&&h.ownerNode&&(p=h.ownerNode.baseURI),(_=Array.from(c,(b=>de(b,p))).join("")).includes(" background-clip: text;")&&!_.includes(" -webkit-background-clip: text;")&&(_=_.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),_}catch(b){return null}var _}function de(h,c){var p;if((function(C){return"styleSheet"in C})(h)){var _;try{_=J(h.styleSheet)||(function(C){var{cssText:I}=C;if(3>I.split('"').length)return I;var L=["@import","url("+JSON.stringify(C.href)+")"];return C.layerName===""?L.push("layer"):C.layerName&&L.push("layer("+C.layerName+")"),C.supportsText&&L.push("supports("+C.supportsText+")"),C.media.length&&L.push(C.media.mediaText),L.join(" ")+";"})(h)}catch(C){_=h.cssText}try{if(_&&((p=h.styleSheet)!=null&&p.href))return ce(_,h.styleSheet.href)}catch(C){}return _}var b=h.cssText;return(function(C){return"selectorText"in C})(h)&&h.selectorText.includes(":")&&(b=b.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),c?ce(b,c):b}class Ae{constructor(){i(this,"idNodeMap",new Map),i(this,"nodeMetaMap",new WeakMap)}getId(c){var p;if(!c)return-1;var _=(p=this.getMeta(c))==null?void 0:p.id;return _!=null?_:-1}getNode(c){return this.idNodeMap.get(c)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(c){return this.nodeMetaMap.get(c)||null}removeNodeFromMap(c){var p=this.getId(c);if(this.idNodeMap.delete(p),c.childNodes&&c.childNodes.forEach((b=>this.removeNodeFromMap(b))),z(c)){var _=S.shadowRoot(c);_&&this.removeNodeFromMap(_),c.nodeName==="IFRAME"&&c.contentDocument&&this.removeNodeFromMap(c.contentDocument)}}has(c){return this.idNodeMap.has(c)}hasNode(c){return this.nodeMetaMap.has(c)}add(c,p){this.idNodeMap.set(p.id,c),this.nodeMetaMap.set(c,p)}replace(c,p){var _=this.getNode(c);if(_){var b=this.nodeMetaMap.get(_);b&&this.nodeMetaMap.set(p,b)}this.idNodeMap.set(c,p)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function qe(h){var{element:c,maskInputOptions:p,tagName:_,type:b,value:C,maskInputFn:I}=h,L=C||"",q=b&&Ue(b);return(p[_.toLowerCase()]||q&&p[q])&&(L=I?I(L,c):"*".repeat(L.length)),L}function Ue(h){return h.toLowerCase()}var je="__rrweb_original__";function nt(h){var c=h.type;return h.hasAttribute("data-rr-is-password")?"password":c?Ue(c):null}function Pt(h,c){var p,_;try{_=new URL(h,c!=null?c:window.location.href)}catch(C){return null}var b=_.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(p=b==null?void 0:b[1])!==null&&p!==void 0?p:null}var G=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,X=/^(?:[a-z+]+:)?\/\//i,W=/^www\..*/i,Y=/^(data:)([^,]*),(.*)/i;function ce(h,c){return(h||"").replace(G,((p,_,b,C,I,L)=>{var q,H=b||I||L,K=_||C||"";if(!H)return p;if(X.test(H)||W.test(H)||Y.test(H))return"url("+K+H+K+")";if(H[0]==="/")return"url("+K+(((q=c).indexOf("//")>-1?q.split("/").slice(0,3).join("/"):q.split("/")[0]).split("?")[0]+H)+K+")";var ie=c.split("/"),pe=H.split("/");for(var oe of(ie.pop(),pe))oe!=="."&&(oe===".."?ie.pop():ie.push(oe));return"url("+K+ie.join("/")+K+")"}))}var me,ue,at="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InN0cmlwZXMiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CiAgICAgIDxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iYmxhY2siLz4KICAgICAgPHBhdGggZD0iTTggMEgxNkwwIDE2VjhMOCAwWiIgZmlsbD0iIzJEMkQyRCIvPgogICAgICA8cGF0aCBkPSJNMTYgOFYxNkg4TDE2IDhaIiBmaWxsPSIjMkQyRDJEIi8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjc3RyaXBlcykiLz4KPC9zdmc+Cg==",it=4096,$t=1,Bt=new RegExp("[^a-z0-9-_:]"),yn=-2;function B(){return $t++}var Q=/^[^ \t\n\r\u000c]+/,Z=/^[, \t\n\r\u000c]+/,he=new WeakMap;function ve(h,c){return c&&c.trim()!==""?Ee(h,c):c}function Ee(h,c){var p=he.get(h);if(p||(p=h.createElement("a"),he.set(h,p)),c){if(c.startsWith("blob:")||c.startsWith("data:"))return c}else c="";return p.setAttribute("href",c),p.href}function He(h,c,p,_,b,C){if(!_)return _;if(p==="src"||p==="href"&&(c!=="use"||_[0]!=="#")){var I=ve(h,_);if(c==="img"&&I.startsWith("data:")&&b){var L=I;return(C!=null&&C.type||(C==null?void 0:C.quality)!==void 0)&&(L=(function(K,ie,pe,oe){if(!K.complete||K.naturalWidth===0||K.naturalWidth>it||K.naturalHeight>it)return ie;try{var $e=document.createElement("canvas");$e.width=K.naturalWidth,$e.height=K.naturalHeight;var Ce=$e.getContext("2d");return Ce?(Ce.drawImage(K,0,0),$e.toDataURL(pe||"image/webp",oe!=null?oe:.4)):ie}catch(Fe){return ie}})(b,I,C.type,C.quality)),C!=null&&C.maxBase64ImageLength&&(q=L,L=(H=C.maxBase64ImageLength)&&q.length>H?at:q),L}return I}return p==="xlink:href"&&_[0]!=="#"?ve(h,_):p!=="background"||c!=="table"&&c!=="td"&&c!=="th"?p==="srcset"?(function(K,ie){if(ie.trim()==="")return ie;var pe=0;function oe(Ze){var Ie,ke=Ze.exec(ie.substring(pe));return ke?(pe+=(Ie=ke[0]).length,Ie):""}for(var $e=[];oe(Z),ie.length>pe;){var Ce=oe(Q);if(Ce.slice(-1)===",")Ce=ve(K,Ce.substring(0,Ce.length-1)),$e.push(Ce);else{var Fe="";Ce=ve(K,Ce);for(var ze=!1;;){var be=ie.charAt(pe);if(be===""){$e.push((Ce+Fe).trim());break}if(ze)be===")"&&(ze=!1);else{if(be===","){pe+=1,$e.push((Ce+Fe).trim());break}be==="("&&(ze=!0)}Fe+=be,pe+=1}}}return $e.join(", ")})(h,_):p==="style"?ce(_,Ee(h)):c==="object"&&p==="data"?ve(h,_):_:ve(h,_);var q,H}function Ve(h,c,p){return(h==="video"||h==="audio")&&c==="autoplay"}function Le(h,c,p){if(!h)return!1;if(h.nodeType!==h.ELEMENT_NODE)return!!p&&Le(S.parentNode(h),c,p);for(var _=h.classList.length;_--;)if(c.test(h.classList[_]))return!0;return!!p&&Le(S.parentNode(h),c,p)}function Te(h,c,p,_){var b;if(z(h)){if(!S.childNodes(b=h).length)return!1}else{if(S.parentElement(h)===null)return!1;b=S.parentElement(h)}try{if(typeof c=="string"){if(_){if(b.closest("."+c))return!0}else if(b.classList.contains(c))return!0}else if(Le(b,c,_))return!0;if(p){if(_){if(b.closest(p))return!0}else if(b.matches(p))return!0}}catch(C){}return!1}function ft(h,c){return Array.from(h.styleSheets).find((p=>p.href===c))}function De(h){return h==null?"":h.toLowerCase()}var vt=50,Je=!1,re=!1;function ye(h,c){var{doc:p,mirror:_,blockClass:b,blockSelector:C,maskTextClass:I,maskTextSelector:L,skipChild:q=!1,inlineStylesheet:H=!0,maskInputOptions:K={},maskTextFn:ie,maskInputFn:pe,slimDOMOptions:oe,dataURLOptions:$e={},inlineImages:Ce=!1,recordCanvas:Fe=!1,onSerialize:ze,onIframeLoad:be,iframeLoadTimeout:Ze=5e3,onStylesheetLoad:Ie,stylesheetLoadTimeout:ke=5e3,keepIframeSrcFn:Se=(()=>!1),newlyAddedElement:xe=!1,depth:Re=0,maxDepth:_e=vt}=c,{needsMask:Ne}=c,{preserveWhiteSpace:Xe=!0}=c;if(Re>=_e)return re=!0,Je||(Je=!0,console.warn("[rrweb-snapshot] DOM tree depth exceeded max depth of "+_e+". Children beyond this depth will not be recorded. This may indicate deeply nested DOM structures.")),null;Ne||(Ne=Te(h,I,L,Ne===void 0));var We,ht=(function(Pe,zt){var{doc:on,mirror:Vn,blockClass:Rn,blockSelector:ln,needsMask:Ln,inlineStylesheet:ea,maskInputOptions:As={},maskTextFn:ms,maskInputFn:ci,dataURLOptions:za={},inlineImages:Tt,recordCanvas:cn,keepIframeSrcFn:st,newlyAddedElement:Ft=!1}=zt,Pn=(function(bt,ta){if(ta.hasNode(bt)){var zs=ta.getId(bt);return zs===1?void 0:zs}})(on,Vn);switch(Pe.nodeType){case Pe.DOCUMENT_NODE:return Pe.compatMode!=="CSS1Compat"?{type:w.Document,childNodes:[],compatMode:Pe.compatMode}:{type:w.Document,childNodes:[]};case Pe.DOCUMENT_TYPE_NODE:return{type:w.DocumentType,name:Pe.name,publicId:Pe.publicId,systemId:Pe.systemId,rootId:Pn};case Pe.ELEMENT_NODE:return(function(bt,ta){for(var zs,Ki,ui,{doc:ps,blockClass:Ra,blockSelector:Pa,inlineStylesheet:Ir,maskInputOptions:Na={},maskInputFn:Yi,dataURLOptions:gr={},inlineImages:rl,recordCanvas:I0,keepIframeSrcFn:A0,newlyAddedElement:z0=!1,rootId:R0}=ta,Fc=(function(Un,Rs,di){try{if(typeof Rs=="string"){if(Un.classList.contains(Rs))return!0}else for(var hi=Un.classList.length;hi--;)if(Rs.test(Un.classList[hi]))return!0;if(di)return Un.matches(di)}catch(Uc){}return!1})(bt,Ra,Pa),Bn=(function(Un){if(Un instanceof HTMLFormElement)return"form";var Rs=Ue(Un.tagName);return Bt.test(Rs)?"div":Rs})(bt),Zt={},kb=bt.attributes.length,P0=0;kb>P0;P0++){var Dc=bt.attributes[P0];Ve(Bn,Dc.name)||(Zt[Dc.name]=He(ps,Bn,Ue(Dc.name),Dc.value,bt,gr))}if(Bn==="link"&&Ir){var Vc=(function(Un){return Un.href})(bt);if(Vc){var Bc=ft(ps,Vc);!Bc&&Vc.includes(".css")&&(Bc=ft(ps,window.location.origin+"/"+Vc.replace(window.location.href,"")));var N0=null;Bc&&(N0=J(Bc)),N0&&(delete Zt.rel,delete Zt.href,Zt._cssText=N0)}}if(Bn==="style"&&bt.sheet&&!(bt.innerText||S.textContent(bt)||"").trim().length){var Ap=J(bt.sheet);Ap&&(Zt._cssText=Ap)}if(Bn==="input"||Bn==="textarea"||Bn==="select"){var zp=bt.value,Rp=bt.checked;Zt.type!=="radio"&&Zt.type!=="checkbox"&&Zt.type!=="submit"&&Zt.type!=="button"&&zp?Zt.value=qe({element:bt,type:nt(bt),tagName:Bn,value:zp,maskInputOptions:Na,maskInputFn:Yi}):Rp&&(Zt.checked=Rp)}if(Bn==="option"&&(bt.selected&&!Na.select?Zt.selected=!0:delete Zt.selected),Bn==="dialog"&&bt.open)try{Zt.rr_open_mode=bt.matches("dialog:modal")?"modal":"non-modal"}catch(Un){Zt.rr_open_mode="modal",Zt.ph_rr_could_not_detect_modal=!0}if(Bn==="canvas"&&I0){if(bt.__context==="2d")(function(Un){var Rs=Un.getContext("2d");if(!Rs)return!0;for(var di=0;Un.width>di;di+=50)for(var hi=0;Un.height>hi;hi+=50){var Uc=Rs.getImageData;if(new Uint32Array((je in Uc?Uc[je]:Uc).call(Rs,di,hi,Math.min(50,Un.width-di),Math.min(50,Un.height-hi)).data.buffer).some((Ab=>Ab!==0)))return!1}return!0})(bt)||(Zt.rr_dataURL=bt.toDataURL(gr.type,gr.quality));else if(!("__context"in bt)){var Pp=bt.toDataURL(gr.type,gr.quality),M0=ps.createElement("canvas");M0.width=bt.width,M0.height=bt.height,Pp!==M0.toDataURL(gr.type,gr.quality)&&(Zt.rr_dataURL=Pp)}}if(Bn==="img"&&rl){me||(me=ps.createElement("canvas"),ue=me.getContext("2d"));var Jn=bt,Sb=Jn.currentSrc||Jn.getAttribute("src")||"",Np=Jn.crossOrigin,sl=()=>{Jn.removeEventListener("load",sl);try{me.width=Jn.naturalWidth,me.height=Jn.naturalHeight,ue.drawImage(Jn,0,0),Zt.rr_dataURL=me.toDataURL(gr.type,gr.quality)}catch(Un){if(Jn.crossOrigin!=="anonymous")return Jn.crossOrigin="anonymous",void(Jn.complete&&Jn.naturalWidth!==0?sl():Jn.addEventListener("load",sl));console.warn("Cannot inline img src="+Sb+"! Error: "+Un)}Jn.crossOrigin==="anonymous"&&(Np?Zt.crossOrigin=Np:Jn.removeAttribute("crossorigin"))};Jn.complete&&Jn.naturalWidth!==0?sl():Jn.addEventListener("load",sl)}if(Bn==="audio"||Bn==="video"){var Qi=Zt;Qi.rr_mediaState=bt.paused?"paused":"played",Qi.rr_mediaCurrentTime=bt.currentTime,Qi.rr_mediaPlaybackRate=bt.playbackRate,Qi.rr_mediaMuted=bt.muted,Qi.rr_mediaLoop=bt.loop,Qi.rr_mediaVolume=bt.volume}if(z0||(bt.scrollLeft&&(Zt.rr_scrollLeft=bt.scrollLeft),bt.scrollTop&&(Zt.rr_scrollTop=bt.scrollTop)),Fc){var{width:Eb,height:Tb,left:$b,top:Ib}=bt.getBoundingClientRect();Zt={class:Zt.class,rr_width:Eb+"px",rr_height:Tb+"px",rr_left:Math.floor($b+(((zs=ps.defaultView)==null?void 0:zs.scrollX)||0))+"px",rr_top:Math.floor(Ib+(((Ki=ps.defaultView)==null?void 0:Ki.scrollY)||0))+"px"}}Bn!=="iframe"||A0(Zt.src)||(bt.contentDocument||(Zt.rr_src=Zt.src),delete Zt.src);try{customElements.get(Bn)&&(ui=!0)}catch(Un){}return{type:w.Element,tagName:Bn,attributes:Zt,childNodes:[],isSVG:(L0=bt,!!(L0.tagName==="svg"||L0.ownerSVGElement)||void 0),needBlock:Fc,rootId:R0,isCustom:ui};var L0})(Pe,{doc:on,blockClass:Rn,blockSelector:ln,inlineStylesheet:ea,maskInputOptions:As,maskInputFn:ci,dataURLOptions:za,inlineImages:Tt,recordCanvas:cn,keepIframeSrcFn:st,newlyAddedElement:Ft,rootId:Pn});case Pe.TEXT_NODE:return(function(bt,ta){var zs,{needsMask:Ki,maskTextFn:ui,rootId:ps}=ta,Ra=S.parentNode(bt),Pa=Ra&&Ra.tagName,Ir=S.textContent(bt),Na=Pa==="STYLE"||void 0,Yi=Pa==="SCRIPT"||void 0;if(Na&&Ir){try{if(!(bt.nextSibling||bt.previousSibling)){if((zs=Ra.sheet)!=null&&zs.cssRules){var gr=J(Ra.sheet);gr&&!/(?:^|[\s;{}])-?[a-zA-Z][\w-]*\s*:\s*;/.test(gr)&&(Ir=gr)}}}catch(rl){console.warn("Cannot get CSS styles from text's parentNode. Error: "+rl,bt)}Ir=ce(Ir,Ee(ta.doc))}return Yi&&(Ir="SCRIPT_PLACEHOLDER"),!Na&&!Yi&&Ir&&Ki&&(Ir=ui?ui(Ir,S.parentElement(bt)):Ir.replace(/[\S]/g,"*")),{type:w.Text,textContent:Ir||"",isStyle:Na,rootId:ps}})(Pe,{doc:on,needsMask:Ln,maskTextFn:ms,rootId:Pn});case Pe.CDATA_SECTION_NODE:return{type:w.CDATA,textContent:"",rootId:Pn};case Pe.COMMENT_NODE:return{type:w.Comment,textContent:S.textContent(Pe)||"",rootId:Pn};default:return!1}})(h,{doc:p,mirror:_,blockClass:b,blockSelector:C,needsMask:Ne,inlineStylesheet:H,maskInputOptions:K,maskTextFn:ie,maskInputFn:pe,dataURLOptions:$e,inlineImages:Ce,recordCanvas:Fe,keepIframeSrcFn:Se,newlyAddedElement:xe});if(!ht)return console.warn(h,"not serialized"),null;We=_.hasNode(h)?_.getId(h):!(function(Pe,zt){return!!(zt.comment&&Pe.type===w.Comment||Pe.type===w.Element&&(zt.script&&(Pe.tagName==="script"||Pe.tagName==="link"&&(Pe.attributes.rel==="preload"&&Pe.attributes.as==="script"||Pe.attributes.rel==="modulepreload")||Pe.tagName==="link"&&Pe.attributes.rel==="prefetch"&&typeof Pe.attributes.href=="string"&&Pt(Pe.attributes.href)==="js")||zt.headFavicon&&(Pe.tagName==="link"&&Pe.attributes.rel==="shortcut icon"||Pe.tagName==="meta"&&(De(Pe.attributes.name).match(/^msapplication-tile(image|color)$/)||De(Pe.attributes.name)==="application-name"||["icon","apple-touch-icon","shortcut icon"].includes(De(Pe.attributes.rel))))||Pe.tagName==="meta"&&(zt.headMetaDescKeywords&&De(Pe.attributes.name).match(/^description|keywords$/)||zt.headMetaSocial&&(De(Pe.attributes.property).match(/^(og|twitter|fb):/)||De(Pe.attributes.name).match(/^(og|twitter):/)||De(Pe.attributes.name)==="pinterest")||zt.headMetaRobots&&["robots","googlebot","bingbot"].includes(De(Pe.attributes.name))||zt.headMetaHttpEquiv&&Pe.attributes["http-equiv"]!==void 0||zt.headMetaAuthorship&&(["author","generator","framework","publisher","progid"].includes(De(Pe.attributes.name))||De(Pe.attributes.property).match(/^article:/)||De(Pe.attributes.property).match(/^product:/))||zt.headMetaVerification&&["google-site-verification","yandex-verification","csrf-token","p:domain_verify","verify-v1","verification","shopify-checkout-api-token"].includes(De(Pe.attributes.name)))))})(ht,oe)&&(Xe||ht.type!==w.Text||ht.isStyle||ht.textContent.replace(/^\s+|\s+$/gm,"").length)?B():yn;var Me=Object.assign(ht,{id:We});if(_.add(h,Me),We===yn)return null;ze&&ze(h);var _t=!q;if(Me.type===w.Element){_t=_t&&!Me.needBlock,delete Me.needBlock;var ot=S.shadowRoot(h);ot&&j(ot)&&(Me.isShadowHost=!0)}if((Me.type===w.Document||Me.type===w.Element)&&_t){oe.headWhitespace&&Me.type===w.Element&&Me.tagName==="head"&&(Xe=!1);var et={doc:p,mirror:_,blockClass:b,blockSelector:C,needsMask:Ne,maskTextClass:I,maskTextSelector:L,skipChild:q,inlineStylesheet:H,maskInputOptions:K,maskTextFn:ie,maskInputFn:pe,slimDOMOptions:oe,dataURLOptions:$e,inlineImages:Ce,recordCanvas:Fe,preserveWhiteSpace:Xe,onSerialize:ze,onIframeLoad:be,iframeLoadTimeout:Ze,onStylesheetLoad:Ie,stylesheetLoadTimeout:ke,keepIframeSrcFn:Se,depth:Re+1,maxDepth:_e};if(!(Me.type===w.Element&&Me.tagName==="textarea"&&Me.attributes.value!==void 0))for(var Qe of Array.from(S.childNodes(h))){var Ct=ye(Qe,et);Ct&&Me.childNodes.push(Ct)}var lt=null;if(z(h)&&(lt=S.shadowRoot(h)))for(var ut of Array.from(S.childNodes(lt))){var wt=ye(ut,et);wt&&(j(lt)&&(wt.isShadow=!0),Me.childNodes.push(wt))}}var xt=S.parentNode(h);return xt&&U(xt)&&j(xt)&&(Me.isShadow=!0),Me.type===w.Element&&Me.tagName==="iframe"&&(function(Pe,zt,on){var Vn=Pe.contentWindow;if(Vn){var Rn,ln=!1;try{Rn=Vn.document.readyState}catch(As){return}if(Rn==="complete"){var Ln="about:blank";if(Vn.location.href!==Ln||Pe.src===Ln||Pe.src==="")return setTimeout(zt,0),Pe.addEventListener("load",zt);Pe.addEventListener("load",zt)}else{var ea=setTimeout((()=>{ln||(zt(),ln=!0)}),on);Pe.addEventListener("load",(()=>{clearTimeout(ea),ln=!0,zt()}))}}})(h,(()=>{var Pe=h.contentDocument;if(Pe&&be){var zt=ye(Pe,{doc:Pe,mirror:_,blockClass:b,blockSelector:C,needsMask:Ne,maskTextClass:I,maskTextSelector:L,skipChild:!1,inlineStylesheet:H,maskInputOptions:K,maskTextFn:ie,maskInputFn:pe,slimDOMOptions:oe,dataURLOptions:$e,inlineImages:Ce,recordCanvas:Fe,preserveWhiteSpace:Xe,onSerialize:ze,onIframeLoad:be,iframeLoadTimeout:Ze,onStylesheetLoad:Ie,stylesheetLoadTimeout:ke,keepIframeSrcFn:Se,depth:Re+1,maxDepth:_e});zt&&be(h,zt)}}),Ze),Me.type===w.Element&&Me.tagName==="link"&&typeof Me.attributes.rel=="string"&&(Me.attributes.rel==="stylesheet"||Me.attributes.rel==="preload"&&typeof Me.attributes.href=="string"&&Pt(Me.attributes.href)==="css")&&(function(Pe,zt,on){var Vn,Rn=!1;try{Vn=Pe.sheet}catch(Ln){return}if(!Vn){var ln=setTimeout((()=>{Rn||(zt(),Rn=!0)}),on);Pe.addEventListener("load",(()=>{clearTimeout(ln),Rn=!0,zt()}))}})(h,(()=>{if(Ie){var Pe=ye(h,{doc:p,mirror:_,blockClass:b,blockSelector:C,needsMask:Ne,maskTextClass:I,maskTextSelector:L,skipChild:!1,inlineStylesheet:H,maskInputOptions:K,maskTextFn:ie,maskInputFn:pe,slimDOMOptions:oe,dataURLOptions:$e,inlineImages:Ce,recordCanvas:Fe,preserveWhiteSpace:Xe,onSerialize:ze,onIframeLoad:be,iframeLoadTimeout:Ze,onStylesheetLoad:Ie,stylesheetLoadTimeout:ke,keepIframeSrcFn:Se,depth:Re,maxDepth:_e});Pe&&Ie(h,Pe)}}),ke),Me}function yt(h){return h===!0||h==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:h==="all",headMetaDescKeywords:h==="all",headTitleMutations:h==="all"}:h===!1?{}:h}class At{constructor(){i(this,"parentElement",null),i(this,"parentNode",null),i(this,"ownerDocument"),i(this,"firstChild",null),i(this,"lastChild",null),i(this,"previousSibling",null),i(this,"nextSibling",null),i(this,"ELEMENT_NODE",1),i(this,"TEXT_NODE",3),i(this,"nodeType"),i(this,"nodeName"),i(this,"RRNodeType")}get childNodes(){for(var c=[],p=this.firstChild;p;)c.push(p),p=p.nextSibling;return c}contains(c){if(!(c instanceof At)||c.ownerDocument!==this.ownerDocument)return!1;if(c===this)return!0;for(;c.parentNode;){if(c.parentNode===this)return!0;c=c.parentNode}return!1}appendChild(c){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(c,p){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(c){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}function Mt(h,c,p){p===void 0&&(p=document);var _={capture:!0,passive:!0};return p.addEventListener(h,c,_),()=>p.removeEventListener(h,c,_)}function zn(h){try{h()}catch(c){if(!(c instanceof DOMException&&c.name==="SecurityError"))throw c}}var gn="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Es={map:{},getId(){return console.error(gn),-1},getNode(){return console.error(gn),null},removeNodeFromMap(){console.error(gn)},has(){return console.error(gn),!1},reset(){console.error(gn)}};function Ys(h,c,p){p===void 0&&(p={});var _=null,b=0;return function(){for(var C=arguments.length,I=new Array(C),L=0;C>L;L++)I[L]=arguments[L];var q=Date.now();b||p.leading!==!1||(b=q);var H=c-(q-b),K=this;0>=H||H>c?(_&&(clearTimeout(_),_=null),b=q,h.apply(K,I)):_||p.trailing===!1||(_=setTimeout((()=>{b=p.leading===!1?0:Date.now(),_=null,h.apply(K,I)}),H))}}function Zn(h,c,p,_,b){b===void 0&&(b=window);var C=b.Object.getOwnPropertyDescriptor(h,c);return b.Object.defineProperty(h,c,_?p:{set(I){setTimeout((()=>{p.set.call(this,I)}),0),C&&C.set&&C.set.call(this,I)}}),()=>Zn(h,c,C||{},!0)}typeof window<"u"&&window.Proxy&&window.Reflect&&(Es=new Proxy(Es,{get(h,c,p){return c==="map"&&console.error(gn),Reflect.get(h,c,p)}}));var pr=Date.now;function Uo(h){var c,p,_,b,C=h.document;return{left:C.scrollingElement?C.scrollingElement.scrollLeft:h.pageXOffset!==void 0?h.pageXOffset:C.documentElement.scrollLeft||(C==null?void 0:C.body)&&((c=S.parentElement(C.body))==null?void 0:c.scrollLeft)||((p=C==null?void 0:C.body)==null?void 0:p.scrollLeft)||0,top:C.scrollingElement?C.scrollingElement.scrollTop:h.pageYOffset!==void 0?h.pageYOffset:(C==null?void 0:C.documentElement.scrollTop)||(C==null?void 0:C.body)&&((_=S.parentElement(C.body))==null?void 0:_.scrollTop)||((b=C==null?void 0:C.body)==null?void 0:b.scrollTop)||0}}function Ho(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function u1(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function d1(h){return h?h.nodeType===h.ELEMENT_NODE?h:S.parentElement(h):null}function ir(h,c,p,_){if(!h)return!1;var b=d1(h);if(!b)return!1;try{if(typeof c=="string"){if(b.classList.contains(c)||_&&b.closest("."+c)!==null)return!0}else if(Le(b,c,_))return!0}catch(C){}return!!(p&&(b.matches(p)||_&&b.closest(p)!==null))}function Ud(h,c,p){return!(h.tagName!=="TITLE"||!p.headTitleMutations)||c.getId(h)===yn}function h1(h,c){if(U(h))return!1;var p=c.getId(h);if(!c.has(p))return!0;var _=S.parentNode(h);return(!_||_.nodeType!==h.DOCUMENT_NODE)&&(!_||h1(_,c))}function Hd(h){return!!h.changedTouches}function m1(h,c){return!!(h.nodeName==="IFRAME"&&c.getMeta(h))}function p1(h,c){return!!(h.nodeName==="LINK"&&h.nodeType===h.ELEMENT_NODE&&h.getAttribute&&h.getAttribute("rel")==="stylesheet"&&c.getMeta(h))}function qd(h){return!!h&&(h instanceof At&&"shadowRoot"in h?!!h.shadowRoot:!!S.shadowRoot(h))}/[1-9][0-9]{12}/.test(Date.now().toString())||(pr=()=>new Date().getTime());class E7{constructor(){i(this,"id",1),i(this,"styleIDMap",new WeakMap),i(this,"idStyleMap",new Map)}getId(c){var p;return(p=this.styleIDMap.get(c))!==null&&p!==void 0?p:-1}has(c){return this.styleIDMap.has(c)}add(c,p){return this.has(c)?this.getId(c):(_=p===void 0?this.id++:p,this.styleIDMap.set(c,_),this.idStyleMap.set(_,c),_);var _}getStyle(c){return this.idStyleMap.get(c)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function f1(h){var c,p=null;return"getRootNode"in h&&((c=S.getRootNode(h))==null?void 0:c.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&S.host(S.getRootNode(h))&&(p=S.host(S.getRootNode(h))),p}function _1(h){var c=h.ownerDocument;return!!c&&(S.contains(c,h)||(function(p){var _=p.ownerDocument;if(!_)return!1;var b=(function(C){for(var I,L=C;I=f1(L);)L=I;return L})(p);return S.contains(_,b)})(h))}function g1(h){return"__ln"in h}class T7{constructor(){i(this,"length",0),i(this,"head",null),i(this,"tail",null)}get(c){if(c>=this.length)throw new Error("Position outside of list range");for(var p=this.head,_=0;c>_;_++)p=(p==null?void 0:p.next)||null;return p}addNode(c){var p={value:c,previous:null,next:null};if(c.__ln=p,c.previousSibling&&g1(c.previousSibling)){var _=c.previousSibling.__ln.next;p.next=_,p.previous=c.previousSibling.__ln,c.previousSibling.__ln.next=p,_&&(_.previous=p)}else if(c.nextSibling&&g1(c.nextSibling)&&c.nextSibling.__ln.previous){var b=c.nextSibling.__ln.previous;p.previous=b,p.next=c.nextSibling.__ln,c.nextSibling.__ln.previous=p,b&&(b.next=p)}else this.head&&(this.head.previous=p),p.next=this.head,this.head=p;p.next===null&&(this.tail=p),this.length++}removeNode(c){var p=c.__ln;this.head&&(p.previous?(p.previous.next=p.next,p.next?p.next.previous=p.previous:this.tail=p.previous):(this.head=p.next,this.head?this.head.previous=null:this.tail=null),c.__ln&&delete c.__ln,this.length--)}}var qo,v1=(h,c)=>h+"@"+c;class $7{constructor(){i(this,"frozen",!1),i(this,"locked",!1),i(this,"texts",[]),i(this,"attributes",[]),i(this,"attributeMap",new WeakMap),i(this,"removes",[]),i(this,"mapRemoves",[]),i(this,"movedMap",{}),i(this,"addedSet",new Set),i(this,"movedSet",new Set),i(this,"droppedSet",new Set),i(this,"removesSubTreeCache",new Set),i(this,"mutationCb"),i(this,"blockClass"),i(this,"blockSelector"),i(this,"maskTextClass"),i(this,"maskTextSelector"),i(this,"inlineStylesheet"),i(this,"maskInputOptions"),i(this,"maskTextFn"),i(this,"maskInputFn"),i(this,"keepIframeSrcFn"),i(this,"recordCanvas"),i(this,"inlineImages"),i(this,"slimDOMOptions"),i(this,"dataURLOptions"),i(this,"doc"),i(this,"mirror"),i(this,"iframeManager"),i(this,"stylesheetManager"),i(this,"shadowDomManager"),i(this,"canvasManager"),i(this,"processedNodeManager"),i(this,"unattachedDoc"),i(this,"processMutations",(c=>{c.forEach(this.processMutation),this.emit()})),i(this,"emit",(()=>{if(!this.frozen&&!this.locked){for(var c=[],p=new Set,_=new T7,b=be=>{for(var Ze=be,Ie=yn;Ie===yn;)Ie=(Ze=Ze&&Ze.nextSibling)&&this.mirror.getId(Ze);return Ie},C=be=>{var Ze=S.parentNode(be);if(Ze&&_1(be)&&Ze.tagName!=="TEXTAREA"){var Ie=U(Ze)?this.mirror.getId(f1(be)):this.mirror.getId(Ze),ke=b(be);if(Ie===-1||ke===-1)return _.addNode(be);var Se=ye(be,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:xe=>{m1(xe,this.mirror)&&this.iframeManager.addIframe(xe),p1(xe,this.mirror)&&this.stylesheetManager.trackLinkElement(xe),qd(be)&&this.shadowDomManager.addShadowRoot(S.shadowRoot(be),this.doc)},onIframeLoad:(xe,Re)=>{this.iframeManager.attachIframe(xe,Re),this.shadowDomManager.observeAttachShadow(xe)},onStylesheetLoad:(xe,Re)=>{this.stylesheetManager.attachLinkElement(xe,Re)}});Se&&(c.push({parentId:Ie,nextId:ke,node:Se}),p.add(Se.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(var I of this.movedSet)y1(this.removesSubTreeCache,I)&&!this.movedSet.has(S.parentNode(I))||C(I);for(var L of this.addedSet)b1(this.droppedSet,L)||y1(this.removesSubTreeCache,L)?b1(this.movedSet,L)?C(L):this.droppedSet.add(L):C(L);for(var q=null;_.length;){var H=null;if(q){var K=this.mirror.getId(S.parentNode(q.value)),ie=b(q.value);K!==-1&&ie!==-1&&(H=q)}if(!H)for(var pe=_.tail;pe;){var oe=pe;if(pe=pe.previous,oe){var $e=this.mirror.getId(S.parentNode(oe.value));if(b(oe.value)===-1)continue;if($e!==-1){H=oe;break}var Ce=S.parentNode(oe.value);if(Ce&&Ce.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var Fe=S.host(Ce);if(this.mirror.getId(Fe)!==-1){H=oe;break}}}}if(!H){for(;_.head;)_.removeNode(_.head.value);break}q=H.previous,_.removeNode(H.value),C(H.value)}var ze={texts:this.texts.map((be=>{var Ze=be.node,Ie=S.parentNode(Ze);return Ie&&Ie.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(Ie),{id:this.mirror.getId(Ze),value:be.value}})).filter((be=>!p.has(be.id))).filter((be=>this.mirror.has(be.id))),attributes:this.attributes.map((be=>{var{attributes:Ze}=be;if(typeof Ze.style=="string"){var Ie=JSON.stringify(be.styleDiff),ke=JSON.stringify(be._unchangedStyles);Ze.style.length>Ie.length&&(Ie+ke).split("var(").length===Ze.style.split("var(").length&&(Ze.style=be.styleDiff)}return{id:this.mirror.getId(be.node),attributes:Ze}})).filter((be=>!p.has(be.id))).filter((be=>this.mirror.has(be.id))),removes:this.removes,adds:c};(ze.texts.length||ze.attributes.length||ze.removes.length||ze.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(ze))}})),i(this,"bufferBelongsToIframe",(c=>this.doc===c.contentDocument)),i(this,"genTextAreaValueMutation",(c=>{var p=this.attributeMap.get(c);p||(this.attributes.push(p={node:c,attributes:{},styleDiff:{},_unchangedStyles:{}}),this.attributeMap.set(c,p));var _=Array.from(S.childNodes(c),(b=>S.textContent(b)||"")).join("");p.attributes.value=qe({element:c,maskInputOptions:this.maskInputOptions,tagName:c.tagName,type:nt(c),value:_,maskInputFn:this.maskInputFn})})),i(this,"processMutation",(c=>{if(!Ud(c.target,this.mirror,this.slimDOMOptions))switch(c.type){case"characterData":var p=S.textContent(c.target);ir(c.target,this.blockClass,this.blockSelector,!1)||p===c.oldValue||this.texts.push({value:Te(c.target,this.maskTextClass,this.maskTextSelector,!0)&&p?this.maskTextFn?this.maskTextFn(p,d1(c.target)):p.replace(/[\S]/g,"*"):p,node:c.target});break;case"attributes":var _=c.target,b=c.attributeName,C=c.target.getAttribute(b);if(b==="value"){var I=nt(_);C=qe({element:_,maskInputOptions:this.maskInputOptions,tagName:_.tagName,type:I,value:C,maskInputFn:this.maskInputFn})}if(ir(c.target,this.blockClass,this.blockSelector,!1)||C===c.oldValue)return;var L=this.attributeMap.get(c.target);if(_.tagName==="IFRAME"&&b==="src"&&!this.keepIframeSrcFn(C)){if(_.contentDocument)return;b="rr_src"}if(L||(this.attributes.push(L={node:c.target,attributes:{},styleDiff:{},_unchangedStyles:{}}),this.attributeMap.set(c.target,L)),b==="type"&&_.tagName==="INPUT"&&(c.oldValue||"").toLowerCase()==="password"&&_.setAttribute("data-rr-is-password","true"),!Ve(_.tagName,b))if(L.attributes[b]=He(this.doc,Ue(_.tagName),Ue(b),C,_,this.dataURLOptions),b==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(oe){this.unattachedDoc=this.doc}var q=this.unattachedDoc.createElement("span");for(var H of(c.oldValue&&q.setAttribute("style",c.oldValue),Array.from(_.style))){var K=_.style.getPropertyValue(H),ie=_.style.getPropertyPriority(H);K!==q.style.getPropertyValue(H)||ie!==q.style.getPropertyPriority(H)?L.styleDiff[H]=ie===""?K:[K,ie]:L._unchangedStyles[H]=[K,ie]}for(var pe of Array.from(q.style))_.style.getPropertyValue(pe)===""&&(L.styleDiff[pe]=!1)}else b==="open"&&_.tagName==="DIALOG"&&(L.attributes.rr_open_mode=_.matches("dialog:modal")?"modal":"non-modal");break;case"childList":if(ir(c.target,this.blockClass,this.blockSelector,!0))return;if(c.target.tagName==="TEXTAREA")return void this.genTextAreaValueMutation(c.target);c.addedNodes.forEach((oe=>this.genAdds(oe,c.target))),c.removedNodes.forEach((oe=>{var $e=this.mirror.getId(oe),Ce=U(c.target)?this.mirror.getId(S.host(c.target)):this.mirror.getId(c.target);ir(c.target,this.blockClass,this.blockSelector,!1)||Ud(oe,this.mirror,this.slimDOMOptions)||!(function(Fe,ze){return ze.getId(Fe)!==-1})(oe,this.mirror)||(this.addedSet.has(oe)?(Wd(this.addedSet,oe),this.droppedSet.add(oe)):this.addedSet.has(c.target)&&$e===-1||h1(c.target,this.mirror)||(this.movedSet.has(oe)&&this.movedMap[v1($e,Ce)]?Wd(this.movedSet,oe):(this.removes.push({parentId:Ce,id:$e,isShadow:!(!U(c.target)||!j(c.target))||void 0}),(function(Fe,ze){for(var be=[Fe];be.length;){var Ze=be.pop();ze.has(Ze)||(ze.add(Ze),S.childNodes(Ze).forEach((Ie=>be.push(Ie))))}})(oe,this.removesSubTreeCache))),this.mapRemoves.push(oe))}))}})),i(this,"genAdds",((c,p)=>{if(!this.processedNodeManager.inOtherBuffer(c,this)&&!this.addedSet.has(c)&&!this.movedSet.has(c)){if(this.mirror.hasNode(c)){if(Ud(c,this.mirror,this.slimDOMOptions))return;this.movedSet.add(c);var _=null;p&&this.mirror.hasNode(p)&&(_=this.mirror.getId(p)),_&&_!==-1&&(this.movedMap[v1(this.mirror.getId(c),_)]=!0)}else this.addedSet.add(c),this.droppedSet.delete(c);ir(c,this.blockClass,this.blockSelector,!1)||(S.childNodes(c).forEach((b=>this.genAdds(b))),qd(c)&&S.childNodes(S.shadowRoot(c)).forEach((b=>{this.processedNodeManager.add(b,this),this.genAdds(b,c)})))}}))}init(c){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((p=>{this[p]=c[p]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}destroy(){for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift())}}function Wd(h,c){h.delete(c),S.childNodes(c).forEach((p=>Wd(h,p)))}function y1(h,c,p){return h.size!==0&&(function(_,b,C){var I=S.parentNode(b);return!!I&&_.has(I)})(h,c)}function b1(h,c){return h.size!==0&&C1(h,c)}function C1(h,c){var p=S.parentNode(c);return!!p&&(!!h.has(p)||C1(h,p))}var qt=h=>qo?function(){try{return h(...arguments)}catch(c){if(qo&&qo(c)===!0)return;throw c}}:h,Mr=[];function Wo(h){try{if("composedPath"in h){var c=h.composedPath();if(c.length)return c[0]}else if("path"in h&&h.path.length)return h.path[0]}catch(p){}return h&&h.target}function w1(h,c){var p=new $7;Mr.push(p),p.init(h);var _=new(V())(qt(p.processMutations.bind(p)));return _.observe(c,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{observer:_,buffer:p}}function k1(h){var{scrollCb:c,doc:p,mirror:_,blockClass:b,blockSelector:C,sampling:I}=h;return Mt("scroll",qt(Ys(qt((L=>{var q=Wo(L);if(q&&!ir(q,b,C,!0)){var H=_.getId(q);if(q===p&&p.defaultView){var K=Uo(p.defaultView);c({id:H,x:K.left,y:K.top})}else c({id:H,x:q.scrollLeft,y:q.scrollTop})}})),I.scroll||100)),p)}var I7=["INPUT","TEXTAREA","SELECT"],S1=new WeakMap;function gc(h){return(function c(p,_){if(vc("CSSGroupingRule")&&p.parentRule instanceof CSSGroupingRule||vc("CSSMediaRule")&&p.parentRule instanceof CSSMediaRule||vc("CSSSupportsRule")&&p.parentRule instanceof CSSSupportsRule||vc("CSSConditionRule")&&p.parentRule instanceof CSSConditionRule){var b=Array.from(p.parentRule.cssRules).indexOf(p);return _.unshift(b),c(p.parentRule,_)}if(p.parentStyleSheet){var C=Array.from(p.parentStyleSheet.cssRules).indexOf(p);_.unshift(C)}return _})(h,[])}function Ia(h,c,p){var _,b;return h?(h.ownerNode?_=c.getId(h.ownerNode):b=p.getId(h),{styleId:b,id:_}):{}}function E1(h,c){var p,_,b,C,{mirror:I,stylesheetManager:L}=h;C=I.getId(c.nodeName==="#document"?c:S.host(c));var q=c.nodeName==="#document"?(p=c.defaultView)==null?void 0:p.Document:(b=(_=c.ownerDocument)==null?void 0:_.defaultView)==null?void 0:b.ShadowRoot,H=q!=null&&q.prototype?Object.getOwnPropertyDescriptor(q==null?void 0:q.prototype,"adoptedStyleSheets"):void 0;return C!==null&&C!==-1&&q&&H?(Object.defineProperty(c,"adoptedStyleSheets",{configurable:H.configurable,enumerable:H.enumerable,get(){var K;return(K=H.get)==null?void 0:K.call(this)},set(K){var ie,pe=(ie=H.set)==null?void 0:ie.call(this,K);if(C!==null&&C!==-1)try{L.adoptStyleSheets(K,C)}catch(oe){}return pe}}),qt((()=>{Object.defineProperty(c,"adoptedStyleSheets",{configurable:H.configurable,enumerable:H.enumerable,get:H.get,set:H.set})}))):()=>{}}function A7(h,c){c===void 0&&(c={});var p,_,b=h.doc.defaultView;if(!b)return()=>{};if((function(Ie,ke){var{mutationCb:Se,mousemoveCb:xe,mouseInteractionCb:Re,scrollCb:_e,viewportResizeCb:Ne,inputCb:Xe,mediaInteractionCb:We,styleSheetRuleCb:ht,styleDeclarationCb:Me,canvasMutationCb:_t,fontCb:ot,selectionCb:et,customElementCb:Qe}=Ie;Ie.mutationCb=function(){ke.mutation&&ke.mutation(...arguments),Se(...arguments)},Ie.mousemoveCb=function(){ke.mousemove&&ke.mousemove(...arguments),xe(...arguments)},Ie.mouseInteractionCb=function(){ke.mouseInteraction&&ke.mouseInteraction(...arguments),Re(...arguments)},Ie.scrollCb=function(){ke.scroll&&ke.scroll(...arguments),_e(...arguments)},Ie.viewportResizeCb=function(){ke.viewportResize&&ke.viewportResize(...arguments),Ne(...arguments)},Ie.inputCb=function(){ke.input&&ke.input(...arguments),Xe(...arguments)},Ie.mediaInteractionCb=function(){ke.mediaInteaction&&ke.mediaInteaction(...arguments),We(...arguments)},Ie.styleSheetRuleCb=function(){ke.styleSheetRule&&ke.styleSheetRule(...arguments),ht(...arguments)},Ie.styleDeclarationCb=function(){ke.styleDeclaration&&ke.styleDeclaration(...arguments),Me(...arguments)},Ie.canvasMutationCb=function(){ke.canvasMutation&&ke.canvasMutation(...arguments),_t(...arguments)},Ie.fontCb=function(){ke.font&&ke.font(...arguments),ot(...arguments)},Ie.selectionCb=function(){ke.selection&&ke.selection(...arguments),et(...arguments)},Ie.customElementCb=function(){ke.customElement&&ke.customElement(...arguments),Qe(...arguments)}})(h,c),h.recordDOM){var C=w1(h,h.doc);p=C.observer,_=C.buffer}var I=(function(Ie){var{mousemoveCb:ke,sampling:Se,doc:xe,mirror:Re}=Ie;if(Se.mousemove===!1)return()=>{};var _e,Ne=typeof Se.mousemove=="number"?Se.mousemove:50,Xe=typeof Se.mousemoveCallback=="number"?Se.mousemoveCallback:500,We=[],ht=Ys(qt((ot=>{var et=Date.now()-_e;ke(We.map((Qe=>(Qe.timeOffset-=et,Qe))),ot),We=[],_e=null})),Xe),Me=qt(Ys(qt((ot=>{var et=Wo(ot),{clientX:Qe,clientY:Ct}=Hd(ot)?ot.changedTouches[0]:ot;_e||(_e=pr()),We.push({x:Qe,y:Ct,id:Re.getId(et),timeOffset:pr()-_e}),ht(typeof DragEvent<"u"&&ot instanceof DragEvent?l.Drag:ot instanceof MouseEvent?l.MouseMove:l.TouchMove)})),Ne,{trailing:!1})),_t=[Mt("mousemove",Me,xe),Mt("touchmove",Me,xe),Mt("drag",Me,xe)];return qt((()=>{_t.forEach((ot=>ot()))}))})(h),L=(function(Ie){var{mouseInteractionCb:ke,doc:Se,mirror:xe,blockClass:Re,blockSelector:_e,sampling:Ne}=Ie;if(Ne.mouseInteraction===!1)return()=>{};var Xe=Ne.mouseInteraction===!0||Ne.mouseInteraction===void 0?{}:Ne.mouseInteraction,We=[],ht=null;return Object.keys(d).filter((Me=>Number.isNaN(Number(Me))&&!Me.endsWith("_Departed")&&Xe[Me]!==!1)).forEach((Me=>{var _t=Ue(Me),ot=(et=>Qe=>{var Ct=Wo(Qe);if(!ir(Ct,Re,_e,!0)){var lt=null,ut=et;if("pointerType"in Qe){switch(Qe.pointerType){case"mouse":lt=u.Mouse;break;case"touch":lt=u.Touch;break;case"pen":lt=u.Pen}lt===u.Touch&&(d[et]===d.MouseDown?ut="TouchStart":d[et]===d.MouseUp&&(ut="TouchEnd"))}else Hd(Qe)&&(lt=u.Touch);lt!==null?(ht=lt,(ut.startsWith("Touch")&<===u.Touch||ut.startsWith("Mouse")&<===u.Mouse)&&(lt=null)):d[et]===d.Click&&(lt=ht,ht=null);var wt=Hd(Qe)?Qe.changedTouches[0]:Qe;if(wt){var xt=xe.getId(Ct),{clientX:Pe,clientY:zt}=wt;qt(ke)(e({type:d[ut],id:xt,x:Pe,y:zt},lt!==null&&{pointerType:lt}))}}})(Me);if(window.PointerEvent)switch(d[Me]){case d.MouseDown:case d.MouseUp:_t=_t.replace("mouse","pointer");break;case d.TouchStart:case d.TouchEnd:return}We.push(Mt(_t,ot,Se))})),qt((()=>{We.forEach((Me=>Me()))}))})(h),q=k1(h),H=(function(Ie,ke){var{viewportResizeCb:Se}=Ie,{win:xe}=ke,Re=-1,_e=-1;return Mt("resize",qt(Ys(qt((()=>{var Ne=Ho(),Xe=u1();Re===Ne&&_e===Xe||(Se({width:Number(Xe),height:Number(Ne)}),Re=Ne,_e=Xe)})),200)),xe)})(h,{win:b}),K=(function(Ie){var{inputCb:ke,doc:Se,mirror:xe,blockClass:Re,blockSelector:_e,ignoreClass:Ne,ignoreSelector:Xe,maskInputOptions:We,maskInputFn:ht,sampling:Me,userTriggeredOnInput:_t}=Ie;function ot(ut){var wt=Wo(ut),xt=ut.isTrusted,Pe=wt&&wt.tagName;if(wt&&Pe==="OPTION"&&(wt=S.parentElement(wt)),wt&&Pe&&I7.indexOf(Pe)>=0&&!ir(wt,Re,_e,!0)&&!(wt.classList.contains(Ne)||Xe&&wt.matches(Xe))){var zt=wt.value,on=!1,Vn=nt(wt)||"";Vn==="radio"||Vn==="checkbox"?on=wt.checked:(We[Pe.toLowerCase()]||We[Vn])&&(zt=qe({element:wt,maskInputOptions:We,tagName:Pe,type:Vn,value:zt,maskInputFn:ht})),et(wt,_t?{text:zt,isChecked:on,userTriggered:xt}:{text:zt,isChecked:on});var Rn=wt.name;Vn==="radio"&&Rn&&on&&Se.querySelectorAll('input[type="radio"][name="'+Rn+'"]').forEach((ln=>{if(ln!==wt){var Ln=ln.value;et(ln,_t?{text:Ln,isChecked:!on,userTriggered:!1}:{text:Ln,isChecked:!on})}}))}}function et(ut,wt){var xt=S1.get(ut);if(!xt||xt.text!==wt.text||xt.isChecked!==wt.isChecked){S1.set(ut,wt);var Pe=xe.getId(ut);qt(ke)(e({},wt,{id:Pe}))}}var Qe=(Me.input==="last"?["change"]:["input","change"]).map((ut=>Mt(ut,qt(ot),Se))),Ct=Se.defaultView;if(!Ct)return()=>{Qe.forEach((ut=>ut()))};var lt=Ct.Object.getOwnPropertyDescriptor(Ct.HTMLInputElement.prototype,"value");return lt&<.set&&Qe.push(...[[Ct.HTMLInputElement.prototype,"value"],[Ct.HTMLInputElement.prototype,"checked"],[Ct.HTMLSelectElement.prototype,"value"],[Ct.HTMLTextAreaElement.prototype,"value"],[Ct.HTMLSelectElement.prototype,"selectedIndex"],[Ct.HTMLOptionElement.prototype,"selected"]].map((ut=>Zn(ut[0],ut[1],{set(){qt(ot)({target:this,isTrusted:!1})}},!1,Ct)))),qt((()=>{Qe.forEach((ut=>ut()))}))})(h),ie=(function(Ie){var{mediaInteractionCb:ke,blockClass:Se,blockSelector:xe,mirror:Re,sampling:_e,doc:Ne}=Ie,Xe=qt((ht=>Ys(qt((Me=>{var _t=Wo(Me);if(_t&&!ir(_t,Se,xe,!0)){var{currentTime:ot,volume:et,muted:Qe,playbackRate:Ct,loop:lt}=_t;ke({type:ht,id:Re.getId(_t),currentTime:ot,volume:et,muted:Qe,playbackRate:Ct,loop:lt})}})),_e.media||500))),We=[Mt("play",Xe(y.Play),Ne),Mt("pause",Xe(y.Pause),Ne),Mt("seeked",Xe(y.Seeked),Ne),Mt("volumechange",Xe(y.VolumeChange),Ne),Mt("ratechange",Xe(y.RateChange),Ne)];return qt((()=>{We.forEach((ht=>ht()))}))})(h),pe=()=>{},oe=()=>{},$e=()=>{},Ce=()=>{};h.recordDOM&&(pe=(function(Ie,ke){var{styleSheetRuleCb:Se,mirror:xe,stylesheetManager:Re}=Ie,{win:_e}=ke;if(!_e.CSSStyleSheet||!_e.CSSStyleSheet.prototype)return()=>{};var Ne=_e.CSSStyleSheet.prototype.insertRule;_e.CSSStyleSheet.prototype.insertRule=new Proxy(Ne,{apply:qt(((ot,et,Qe)=>{var[Ct,lt]=Qe,{id:ut,styleId:wt}=Ia(et,xe,Re.styleMirror);return(ut&&ut!==-1||wt&&wt!==-1)&&Se({id:ut,styleId:wt,adds:[{rule:Ct,index:lt}]}),ot.apply(et,Qe)}))}),_e.CSSStyleSheet.prototype.addRule=function(ot,et,Qe){return Qe===void 0&&(Qe=this.cssRules.length),_e.CSSStyleSheet.prototype.insertRule.apply(this,[ot+" { "+et+" }",Qe])};var Xe,We,ht=_e.CSSStyleSheet.prototype.deleteRule;_e.CSSStyleSheet.prototype.deleteRule=new Proxy(ht,{apply:qt(((ot,et,Qe)=>{var[Ct]=Qe,{id:lt,styleId:ut}=Ia(et,xe,Re.styleMirror);return(lt&<!==-1||ut&&ut!==-1)&&Se({id:lt,styleId:ut,removes:[{index:Ct}]}),ot.apply(et,Qe)}))}),_e.CSSStyleSheet.prototype.removeRule=function(ot){return _e.CSSStyleSheet.prototype.deleteRule.apply(this,[ot])},_e.CSSStyleSheet.prototype.replace&&(Xe=_e.CSSStyleSheet.prototype.replace,_e.CSSStyleSheet.prototype.replace=new Proxy(Xe,{apply:qt(((ot,et,Qe)=>{var[Ct]=Qe,{id:lt,styleId:ut}=Ia(et,xe,Re.styleMirror);return(lt&<!==-1||ut&&ut!==-1)&&Se({id:lt,styleId:ut,replace:Ct}),ot.apply(et,Qe)}))})),_e.CSSStyleSheet.prototype.replaceSync&&(We=_e.CSSStyleSheet.prototype.replaceSync,_e.CSSStyleSheet.prototype.replaceSync=new Proxy(We,{apply:qt(((ot,et,Qe)=>{var[Ct]=Qe,{id:lt,styleId:ut}=Ia(et,xe,Re.styleMirror);return(lt&<!==-1||ut&&ut!==-1)&&Se({id:lt,styleId:ut,replaceSync:Ct}),ot.apply(et,Qe)}))}));var Me={};yc("CSSGroupingRule")?Me.CSSGroupingRule=_e.CSSGroupingRule:(yc("CSSMediaRule")&&(Me.CSSMediaRule=_e.CSSMediaRule),yc("CSSConditionRule")&&(Me.CSSConditionRule=_e.CSSConditionRule),yc("CSSSupportsRule")&&(Me.CSSSupportsRule=_e.CSSSupportsRule));var _t={};return Object.entries(Me).forEach((ot=>{var[et,Qe]=ot;_t[et]={insertRule:Qe.prototype.insertRule,deleteRule:Qe.prototype.deleteRule},Qe.prototype.insertRule=new Proxy(_t[et].insertRule,{apply:qt(((Ct,lt,ut)=>{var[wt,xt]=ut,{id:Pe,styleId:zt}=Ia(lt.parentStyleSheet,xe,Re.styleMirror);return(Pe&&Pe!==-1||zt&&zt!==-1)&&Se({id:Pe,styleId:zt,adds:[{rule:wt,index:[...gc(lt),xt||0]}]}),Ct.apply(lt,ut)}))}),Qe.prototype.deleteRule=new Proxy(_t[et].deleteRule,{apply:qt(((Ct,lt,ut)=>{var[wt]=ut,{id:xt,styleId:Pe}=Ia(lt.parentStyleSheet,xe,Re.styleMirror);return(xt&&xt!==-1||Pe&&Pe!==-1)&&Se({id:xt,styleId:Pe,removes:[{index:[...gc(lt),wt]}]}),Ct.apply(lt,ut)}))})})),qt((()=>{_e.CSSStyleSheet.prototype.insertRule=Ne,_e.CSSStyleSheet.prototype.deleteRule=ht,Xe&&(_e.CSSStyleSheet.prototype.replace=Xe),We&&(_e.CSSStyleSheet.prototype.replaceSync=We),Object.entries(Me).forEach((ot=>{var[et,Qe]=ot;Qe.prototype.insertRule=_t[et].insertRule,Qe.prototype.deleteRule=_t[et].deleteRule}))}))})(h,{win:b}),oe=E1(h,h.doc),$e=(function(Ie,ke){var{styleDeclarationCb:Se,mirror:xe,ignoreCSSAttributes:Re,stylesheetManager:_e}=Ie,{win:Ne}=ke,Xe=Ne.CSSStyleDeclaration.prototype.setProperty;Ne.CSSStyleDeclaration.prototype.setProperty=new Proxy(Xe,{apply:qt(((ht,Me,_t)=>{var ot,[et,Qe,Ct]=_t;if(Re.has(et))return Xe.apply(Me,[et,Qe,Ct]);var{id:lt,styleId:ut}=Ia((ot=Me.parentRule)==null?void 0:ot.parentStyleSheet,xe,_e.styleMirror);return(lt&<!==-1||ut&&ut!==-1)&&Se({id:lt,styleId:ut,set:{property:et,value:Qe,priority:Ct},index:gc(Me.parentRule)}),ht.apply(Me,_t)}))});var We=Ne.CSSStyleDeclaration.prototype.removeProperty;return Ne.CSSStyleDeclaration.prototype.removeProperty=new Proxy(We,{apply:qt(((ht,Me,_t)=>{var ot,[et]=_t;if(Re.has(et))return We.apply(Me,[et]);var{id:Qe,styleId:Ct}=Ia((ot=Me.parentRule)==null?void 0:ot.parentStyleSheet,xe,_e.styleMirror);return(Qe&&Qe!==-1||Ct&&Ct!==-1)&&Se({id:Qe,styleId:Ct,remove:{property:et},index:gc(Me.parentRule)}),ht.apply(Me,_t)}))}),qt((()=>{Ne.CSSStyleDeclaration.prototype.setProperty=Xe,Ne.CSSStyleDeclaration.prototype.removeProperty=We}))})(h,{win:b}),h.collectFonts&&(Ce=(function(Ie){var{fontCb:ke,doc:Se}=Ie,xe=Se.defaultView;if(!xe)return()=>{};var Re=[],_e=new WeakMap,Ne=xe.FontFace;xe.FontFace=function(We,ht,Me){var _t=new Ne(We,ht,Me);return _e.set(_t,{family:We,buffer:typeof ht!="string",descriptors:Me,fontSource:typeof ht=="string"?ht:JSON.stringify(Array.from(new Uint8Array(ht)))}),_t};var Xe=F(Se.fonts,"add",(function(We){return function(ht){return setTimeout(qt((()=>{var Me=_e.get(ht);Me&&(ke(Me),_e.delete(ht))})),0),We.apply(this,[ht])}}));return Re.push((()=>{xe.FontFace=Ne})),Re.push(Xe),qt((()=>{Re.forEach((We=>We()))}))})(h)));var Fe=(function(Ie){var{doc:ke,mirror:Se,blockClass:xe,blockSelector:Re,selectionCb:_e}=Ie,Ne=!0,Xe=qt((()=>{var We=ke.getSelection();if(!(!We||Ne&&(We!=null&&We.isCollapsed))){Ne=We.isCollapsed||!1;for(var ht=[],Me=We.rangeCount||0,_t=0;Me>_t;_t++){var ot=We.getRangeAt(_t),{startContainer:et,startOffset:Qe,endContainer:Ct,endOffset:lt}=ot;ir(et,xe,Re,!0)||ir(Ct,xe,Re,!0)||ht.push({start:Se.getId(et),startOffset:Qe,end:Se.getId(Ct),endOffset:lt})}_e({ranges:ht})}}));return Xe(),Mt("selectionchange",Xe)})(h),ze=(function(Ie){var{doc:ke,customElementCb:Se}=Ie,xe=ke.defaultView;return xe&&xe.customElements?F(xe.customElements,"define",(function(Re){return function(_e,Ne,Xe){try{Se({define:{name:_e}})}catch(We){console.warn("Custom element callback failed for "+_e)}return Re.apply(this,[_e,Ne,Xe])}})):()=>{}})(h),be=[];for(var Ze of h.plugins)be.push(Ze.observer(Ze.callback,b,Ze.options));return qt((()=>{if(_){_.destroy(),_.reset();var Ie=Mr.indexOf(_);Ie!==-1&&Mr.splice(Ie,1)}p==null||p.disconnect(),I(),L(),q(),H(),K(),ie(),pe(),oe(),$e(),Ce(),Fe(),ze(),be.forEach((ke=>ke()))}))}function vc(h){return window[h]!==void 0}function yc(h){return!!(window[h]!==void 0&&window[h].prototype&&"insertRule"in window[h].prototype&&"deleteRule"in window[h].prototype)}class T1{constructor(c){i(this,"iframeIdToRemoteIdMap",new WeakMap),i(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=c}getId(c,p,_,b){var C=_||this.getIdToRemoteIdMap(c),I=b||this.getRemoteIdToIdMap(c),L=C.get(p);return L||(L=this.generateIdFn(),C.set(p,L),I.set(L,p)),L}getIds(c,p){var _=this.getIdToRemoteIdMap(c),b=this.getRemoteIdToIdMap(c);return p.map((C=>this.getId(c,C,_,b)))}getRemoteId(c,p,_){var b=_||this.getRemoteIdToIdMap(c);return typeof p!="number"?p:b.get(p)||-1}getRemoteIds(c,p){var _=this.getRemoteIdToIdMap(c);return p.map((b=>this.getRemoteId(c,b,_)))}reset(c){if(!c)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(c),this.iframeRemoteIdToIdMap.delete(c)}getIdToRemoteIdMap(c){var p=this.iframeIdToRemoteIdMap.get(c);return p||this.iframeIdToRemoteIdMap.set(c,p=new Map),p}getRemoteIdToIdMap(c){var p=this.iframeRemoteIdToIdMap.get(c);return p||this.iframeRemoteIdToIdMap.set(c,p=new Map),p}}class z7{constructor(c){i(this,"iframes",new WeakMap),i(this,"crossOriginIframeMap",new WeakMap),i(this,"crossOriginIframeMirror",new T1(B)),i(this,"crossOriginIframeStyleMirror"),i(this,"crossOriginIframeRootIdMap",new WeakMap),i(this,"mirror"),i(this,"mutationCb"),i(this,"wrappedEmit"),i(this,"loadListener"),i(this,"pageHideListener"),i(this,"stylesheetManager"),i(this,"recordCrossOriginIframes"),i(this,"messageHandler"),i(this,"nestedIframeListeners",new Map),i(this,"attachedIframes",new Map),this.mutationCb=c.mutationCb,this.wrappedEmit=c.wrappedEmit,this.stylesheetManager=c.stylesheetManager,this.recordCrossOriginIframes=c.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new T1(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=c.mirror,this.messageHandler=this.handleMessage.bind(this),this.recordCrossOriginIframes&&window.addEventListener("message",this.messageHandler)}addIframe(c){this.iframes.set(c,!0),c.contentWindow&&this.crossOriginIframeMap.set(c.contentWindow,c)}addLoadListener(c){this.loadListener=c}addPageHideListener(c){this.pageHideListener=c}removeLoadListener(){this.loadListener=void 0}trackIframeContent(c,p){var _=this.mirror.getId(c);return this.attachedIframes.set(_,{element:c,content:p}),_}attachIframe(c,p){var _,b=this.trackIframeContent(c,p);this.mutationCb({adds:[{parentId:b,nextId:null,node:p}],removes:[],texts:[],attributes:[],isAttachIframe:!0});var C=c.contentWindow;if(this.recordCrossOriginIframes&&C&&!this.nestedIframeListeners.has(C)){var I=this.handleMessage.bind(this);zn((()=>{C.addEventListener("message",I),this.nestedIframeListeners.set(C,I)}))}zn((()=>{var L;return(L=c.contentWindow)==null?void 0:L.addEventListener("pagehide",(()=>{var q;(q=this.pageHideListener)==null||q.call(this,c),c.contentDocument&&this.mirror.removeNodeFromMap(c.contentDocument),c.contentWindow&&this.crossOriginIframeMap.delete(c.contentWindow)}))})),(_=this.loadListener)==null||_.call(this,c),c.contentDocument&&c.contentDocument.adoptedStyleSheets&&c.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(c.contentDocument.adoptedStyleSheets,this.mirror.getId(c.contentDocument))}handleMessage(c){var p=c;if(p.data.type==="rrweb"&&p.origin===p.data.origin&&c.source){var _=this.crossOriginIframeMap.get(c.source);if(_){var b=this.transformCrossOriginEvent(_,p.data.event);b&&this.wrappedEmit(b,p.data.isCheckout)}}}transformCrossOriginEvent(c,p){var _;switch(p.type){case o.FullSnapshot:this.crossOriginIframeMirror.reset(c),this.crossOriginIframeStyleMirror.reset(c),this.replaceIdOnNode(p.data.node,c);var b=p.data.node.id;return this.crossOriginIframeRootIdMap.set(c,b),this.patchRootIdOnNode(p.data.node,b),this.trackIframeContent(c,p.data.node),{timestamp:p.timestamp,type:o.IncrementalSnapshot,data:{source:l.Mutation,adds:[{parentId:this.mirror.getId(c),nextId:null,node:p.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case o.Meta:case o.Load:case o.DomContentLoaded:return!1;case o.Plugin:return p;case o.Custom:return this.replaceIds(p.data.payload,c,["id","parentId","previousId","nextId"]),p;case o.IncrementalSnapshot:switch(p.data.source){case l.Mutation:return p.data.adds.forEach((C=>{this.replaceIds(C,c,["parentId","nextId","previousId"]),this.replaceIdOnNode(C.node,c);var I=this.crossOriginIframeRootIdMap.get(c);I&&this.patchRootIdOnNode(C.node,I)})),p.data.removes.forEach((C=>{this.replaceIds(C,c,["parentId","id"])})),p.data.attributes.forEach((C=>{this.replaceIds(C,c,["id"])})),p.data.texts.forEach((C=>{this.replaceIds(C,c,["id"])})),p;case l.Drag:case l.TouchMove:case l.MouseMove:return p.data.positions.forEach((C=>{this.replaceIds(C,c,["id"])})),p;case l.ViewportResize:return!1;case l.MediaInteraction:case l.MouseInteraction:case l.Scroll:case l.CanvasMutation:case l.Input:return this.replaceIds(p.data,c,["id"]),p;case l.StyleSheetRule:case l.StyleDeclaration:return this.replaceIds(p.data,c,["id"]),this.replaceStyleIds(p.data,c,["styleId"]),p;case l.Font:return p;case l.Selection:return p.data.ranges.forEach((C=>{this.replaceIds(C,c,["start","end"])})),p;case l.AdoptedStyleSheet:return this.replaceIds(p.data,c,["id"]),this.replaceStyleIds(p.data,c,["styleIds"]),(_=p.data.styles)==null||_.forEach((C=>{this.replaceStyleIds(C,c,["styleId"])})),p}}return!1}replace(c,p,_,b){for(var C of b)(Array.isArray(p[C])||typeof p[C]=="number")&&(p[C]=Array.isArray(p[C])?c.getIds(_,p[C]):c.getId(_,p[C]));return p}replaceIds(c,p,_){return this.replace(this.crossOriginIframeMirror,c,p,_)}replaceStyleIds(c,p,_){return this.replace(this.crossOriginIframeStyleMirror,c,p,_)}replaceIdOnNode(c,p){this.replaceIds(c,p,["id","rootId"]),"childNodes"in c&&c.childNodes.forEach((_=>{this.replaceIdOnNode(_,p)}))}patchRootIdOnNode(c,p){c.type===w.Document||c.rootId||(c.rootId=p),"childNodes"in c&&c.childNodes.forEach((_=>{this.patchRootIdOnNode(_,p)}))}removeIframeById(c){var p=this.attachedIframes.get(c),_=(p==null?void 0:p.element)||this.mirror.getNode(c);if(_){var b=_.contentWindow;if(b&&this.nestedIframeListeners.has(b)){var C=this.nestedIframeListeners.get(b);zn((()=>b.removeEventListener("message",C))),this.nestedIframeListeners.delete(b)}b&&this.crossOriginIframeMap.delete(b),this.iframes.delete(_)}p&&this.attachedIframes.delete(c)}reattachIframes(){this.attachedIframes.forEach(((c,p)=>{var{content:_}=c;this.mirror.has(p)?this.mutationCb({adds:[{parentId:p,nextId:null,node:_}],removes:[],texts:[],attributes:[],isAttachIframe:!0}):this.attachedIframes.delete(p)}))}destroy(){this.recordCrossOriginIframes&&window.removeEventListener("message",this.messageHandler),this.nestedIframeListeners.forEach(((c,p)=>{zn((()=>p.removeEventListener("message",c)))})),this.nestedIframeListeners.clear(),this.crossOriginIframeMirror.reset(),this.crossOriginIframeStyleMirror.reset(),this.attachedIframes.clear(),this.crossOriginIframeMap=new WeakMap,this.iframes=new WeakMap,this.crossOriginIframeRootIdMap=new WeakMap}}class R7{constructor(c){i(this,"shadowDoms",new WeakSet),i(this,"mutationCb"),i(this,"scrollCb"),i(this,"bypassOptions"),i(this,"mirror"),i(this,"restoreHandlers",[]),this.mutationCb=c.mutationCb,this.scrollCb=c.scrollCb,this.bypassOptions=c.bypassOptions,this.mirror=c.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(c,p){if(j(c)&&!this.shadowDoms.has(c)){this.shadowDoms.add(c);var{observer:_,buffer:b}=w1(e({},this.bypassOptions,{doc:p,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),c);this.restoreHandlers.push((()=>{_.disconnect(),b.destroy();var C=Mr.indexOf(b);C!==-1&&Mr.splice(C,1)})),this.restoreHandlers.push(k1(e({},this.bypassOptions,{scrollCb:this.scrollCb,doc:c,mirror:this.mirror}))),setTimeout((()=>{c.adoptedStyleSheets&&c.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(c.adoptedStyleSheets,this.mirror.getId(S.host(c))),this.restoreHandlers.push(E1({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},c))}),0)}}observeAttachShadow(c){c.contentWindow&&c.contentDocument&&this.patchAttachShadow(c.contentWindow.Element,c.contentDocument)}patchAttachShadow(c,p){var _=this;this.restoreHandlers.push(F(c.prototype,"attachShadow",(function(b){return function(C){var I=b.call(this,C),L=S.shadowRoot(this);return L&&_1(this)&&_.addShadowRoot(L,p),I}})))}reset(){this.restoreHandlers.forEach((c=>{try{c()}catch(p){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var Go="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P7=typeof Uint8Array>"u"?[]:new Uint8Array(256),bc=0;64>bc;bc++)P7[Go.charCodeAt(bc)]=bc;var $1=new Map,I1=(h,c,p)=>{if(h&&(z1(h,c)||typeof h=="object")){var _=(function(C,I){var L=$1.get(C);return L||$1.set(C,L=new Map),L.has(I)||L.set(I,[]),L.get(I)})(p,h.constructor.name),b=_.indexOf(h);return b===-1&&(b=_.length,_.push(h)),b}};function Cc(h,c,p,_){if(h instanceof Array)return h.map((q=>Cc(q,c,p,_)));if(h===null)return h;if(h instanceof Float32Array||h instanceof Float64Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Uint8Array||h instanceof Uint16Array||h instanceof Int16Array||h instanceof Int8Array||h instanceof Uint8ClampedArray)return{rr_type:h.constructor.name,args:[Object.values(h)]};if(h instanceof ArrayBuffer){var b=h.constructor.name,C=(function(q){var H,K=new Uint8Array(q),ie=K.length,pe="";for(H=0;ie>H;H+=3)pe+=Go[K[H]>>2],pe+=Go[(3&K[H])<<4|K[H+1]>>4],pe+=Go[(15&K[H+1])<<2|K[H+2]>>6],pe+=Go[63&K[H+2]];return ie%3==2?pe=pe.substring(0,pe.length-1)+"=":ie%3==1&&(pe=pe.substring(0,pe.length-2)+"=="),pe})(h);return{rr_type:b,base64:C}}if(h instanceof DataView)return{rr_type:h.constructor.name,args:[Cc(h.buffer,c,p,_),h.byteOffset,h.byteLength]};if(h instanceof HTMLImageElement){var I=h.constructor.name,{src:L}=h;return{rr_type:I,src:L}}return h instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:h.toDataURL(_.type,_.quality)}:h instanceof ImageData?{rr_type:h.constructor.name,args:[Cc(h.data,c,p,_),h.width,h.height]}:z1(h,c)||typeof h=="object"?{rr_type:h.constructor.name,index:I1(h,c,p)}:h}var A1=(h,c,p,_)=>h.map((b=>Cc(b,c,p,_))),z1=(h,c)=>{var p=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((_=>typeof c[_]=="function"));return!!p.find((_=>h instanceof c[_]))},N7=["webgl","webgl2"];function R1(h){return"nodeType"in h}function P1(h,c,p,_){var b=[];try{if(_){var C=(function(L,q,H){var K=L.GPUCanvasContext;if(K!=null&&K.prototype&&typeof K.prototype.configure=="function")return F(K.prototype,"configure",(function(ie){return function(pe){var oe=(function(Ce){var{canvas:Fe}=Ce;return Fe&&typeof Fe=="object"?Fe:null})(this);if(!oe||R1(oe)&&ir(oe,q,H,!0))return ie.call(this,pe);R1(oe)&&!("__context"in oe)&&(oe.__context="webgpu");var $e=(function(Ce){var Fe=Ce.GPUTextureUsage;return Fe?Fe.COPY_SRC|Fe.RENDER_ATTACHMENT:null})(L);return ie.call(this,$e!==null&&pe?e({},pe,{usage:typeof pe.usage=="number"?pe.usage|$e:$e}):pe)}}))})(h,c,p);C&&b.push(C)}var I=F(h.HTMLCanvasElement.prototype,"getContext",(function(L){return function(q){for(var H=(function($e){return $e==="experimental-webgl"?"webgl":$e})(q),K=arguments.length,ie=new Array(K>1?K-1:0),pe=1;K>pe;pe++)ie[pe-1]=arguments[pe];if(!ir(this,c,p,!0)&&("__context"in this||(this.__context=H),_&&N7.includes(H)))if(ie[0]&&typeof ie[0]=="object"){var oe=ie[0];oe.preserveDrawingBuffer||(oe.preserveDrawingBuffer=!0)}else ie.splice(0,1,{preserveDrawingBuffer:!0});return L.apply(this,[q,...ie])}}));b.push(I)}catch(L){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{b.forEach((L=>L()))}}function N1(h,c,p,_,b,C,I){var L=[],q=Object.getOwnPropertyNames(h),H=function(ie){if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(ie))return 0;try{if(typeof h[ie]!="function")return 0;var pe=F(h,ie,(function($e){return function(){for(var Ce=arguments.length,Fe=new Array(Ce),ze=0;Ce>ze;ze++)Fe[ze]=arguments[ze];var be=$e.apply(this,Fe);if(I1(be,C,this),"tagName"in this.canvas&&!ir(this.canvas,_,b,!0)){var Ze=A1(Fe,C,this,I);p(this.canvas,{type:c,property:ie,args:Ze})}return be}}));L.push(pe)}catch($e){var oe=Zn(h,ie,{set(Ce){p(this.canvas,{type:c,property:ie,args:[Ce],setter:!0})}});L.push(oe)}};for(var K of q)H(K);return L}var Tn,wc,Gd,M1='(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastFingerprintMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n function fnv1aHash(buffer) {\n const view = new Uint8Array(buffer);\n let hash = 2166136261;\n for (let i2 = 0; i2 < view.length; i2++) {\n hash ^= view[i2];\n hash = hash * 16777619 | 0;\n }\n return (hash >>> 0).toString(16);\n }\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n let reusableCanvas = null;\n let reusableCtx = null;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n try {\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n if (!reusableCanvas || reusableCanvas.width !== width || reusableCanvas.height !== height) {\n reusableCanvas = new OffscreenCanvas(width, height);\n reusableCtx = reusableCanvas.getContext("2d");\n }\n reusableCtx.clearRect(0, 0, width, height);\n reusableCtx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await reusableCanvas.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const fingerprint = fnv1aHash(arrayBuffer);\n if (!lastFingerprintMap.has(id)) {\n const base642 = encode(arrayBuffer);\n if (await transparentBase64 === base642) {\n lastFingerprintMap.set(id, fingerprint);\n return worker.postMessage({ id });\n }\n lastFingerprintMap.set(id, fingerprint);\n worker.postMessage({ id, type, base64: base642, width, height });\n return;\n }\n if (lastFingerprintMap.get(id) === fingerprint)\n return worker.postMessage({ id });\n const base64 = encode(arrayBuffer);\n worker.postMessage({ id, type, base64, width, height });\n lastFingerprintMap.set(id, fingerprint);\n } catch {\n worker.postMessage({ id });\n }\n } else {\n e.data.bitmap.close();\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-Ca9A-vl6.js.map\n',L1=typeof self<"u"&&self.Blob&&new Blob([M1],{type:"text/javascript;charset=utf-8"});function M7(h){var c;try{if(!(c=L1&&(self.URL||self.webkitURL).createObjectURL(L1)))throw"";var p=new Worker(c,{name:h==null?void 0:h.name});return p.addEventListener("error",(()=>{(self.URL||self.webkitURL).revokeObjectURL(c)})),p}catch(_){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(M1),{name:h==null?void 0:h.name})}finally{c&&(self.URL||self.webkitURL).revokeObjectURL(c)}}class L7{constructor(c){i(this,"pendingCanvasMutations",new Map),i(this,"rafStamps",{latestId:0,invokeId:null}),i(this,"mirror"),i(this,"mutationCb"),i(this,"resetObservers"),i(this,"frozen",!1),i(this,"locked",!1),i(this,"rafIdTimestamp",null),i(this,"rafIdFlush",null),i(this,"processMutation",((q,H)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(q)||this.pendingCanvasMutations.set(q,[]),this.pendingCanvasMutations.get(q).push(H)}));var{sampling:p="all",win:_,blockClass:b,blockSelector:C,recordCanvas:I,dataURLOptions:L}=c;this.mutationCb=c.mutationCb,this.mirror=c.mirror,I&&p==="all"&&this.initCanvasMutationObserver(_,b,C,L),I&&typeof p=="number"&&this.initCanvasFPSObserver(p,_,b,C,{dataURLOptions:L})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers(),this.rafIdTimestamp!==null&&(cancelAnimationFrame(this.rafIdTimestamp),this.rafIdTimestamp=null),this.rafIdFlush!==null&&(cancelAnimationFrame(this.rafIdFlush),this.rafIdFlush=null)}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(c,p,_,b,C){var I=this;if("OffscreenCanvas"in p){var L=P1(p,_,b,!0),q=new Map,H=new M7;H.onmessage=$e=>{var{id:Ce}=$e.data;if(q.set(Ce,!1),"base64"in $e.data){var{base64:Fe,type:ze,width:be,height:Ze}=$e.data;this.mutationCb({id:Ce,type:g["2D"],commands:[{property:"clearRect",args:[0,0,be,Ze]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:Fe}],type:ze}]},0,0]}],displayWidth:be,displayHeight:Ze})}};var K,ie=1e3/c,pe=0,oe=$e=>{var Ce,Fe;pe&&ie>$e-pe||(pe=$e,(Ce=[],Fe=ze=>{try{ze.querySelectorAll("canvas").forEach((be=>{ir(be,_,b,!0)||Ce.push(be)})),ze.querySelectorAll("*").forEach((be=>{be.shadowRoot&&Fe(be.shadowRoot)}))}catch(be){}},Fe(p.document),Ce).forEach((function(){var ze=r((function*(be){var Ze,Ie,ke=I.mirror.getId(be);if(!q.get(ke)&&be.width!==0&&be.height!==0){q.set(ke,!0);try{if(["webgl","webgl2"].includes(be.__context)){var Se=be.getContext(be.__context);if((Ze=Se==null?void 0:Se.isContextLost)!=null&&Ze.call(Se))return void q.set(ke,!1);((Ie=Se==null?void 0:Se.getContextAttributes())==null?void 0:Ie.preserveDrawingBuffer)===!1&&Se.clear(Se.COLOR_BUFFER_BIT)}var xe=be.clientWidth||be.width,Re=be.clientHeight||be.height,_e=yield createImageBitmap(be,{resizeWidth:xe,resizeHeight:Re});H.postMessage({id:ke,bitmap:_e,width:xe,height:Re,dataURLOptions:C.dataURLOptions},[_e])}catch(Ne){q.set(ke,!1)}}}));return function(be){return ze.apply(this,arguments)}})())),K=requestAnimationFrame(oe)};K=requestAnimationFrame(oe),this.resetObservers=()=>{L(),cancelAnimationFrame(K)}}}initCanvasMutationObserver(c,p,_,b){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var C=P1(c,p,_,!1),I=(function(q,H,K,ie,pe){var oe=[],$e=Object.getOwnPropertyNames(H.CanvasRenderingContext2D.prototype),Ce=function(ze){try{if(typeof H.CanvasRenderingContext2D.prototype[ze]!="function")return 1;var be=F(H.CanvasRenderingContext2D.prototype,ze,(function(Ie){return function(){for(var ke=arguments.length,Se=new Array(ke),xe=0;ke>xe;xe++)Se[xe]=arguments[xe];return ir(this.canvas,K,ie,!0)||setTimeout((()=>{var Re=A1(Se,H,this,pe);q(this.canvas,{type:g["2D"],property:ze,args:Re})}),0),Ie.apply(this,Se)}}));oe.push(be)}catch(Ie){var Ze=Zn(H.CanvasRenderingContext2D.prototype,ze,{set(ke){q(this.canvas,{type:g["2D"],property:ze,args:[ke],setter:!0})}});oe.push(Ze)}};for(var Fe of $e)Ce(Fe);return()=>{oe.forEach((ze=>ze()))}})(this.processMutation.bind(this),c,p,_,b),L=(function(q,H,K,ie,pe){var oe=[];return H.WebGLRenderingContext!==void 0&&oe.push(...N1(H.WebGLRenderingContext.prototype,g.WebGL,q,K,ie,H,pe)),H.WebGL2RenderingContext!==void 0&&oe.push(...N1(H.WebGL2RenderingContext.prototype,g.WebGL2,q,K,ie,H,pe)),()=>{oe.forEach(($e=>$e()))}})(this.processMutation.bind(this),c,p,_,b);this.resetObservers=()=>{C(),I(),L()}}startPendingCanvasMutationFlusher(){this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){var c=p=>{this.rafStamps.latestId=p,this.rafIdTimestamp=requestAnimationFrame(c)};this.rafIdTimestamp=requestAnimationFrame(c)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((c,p)=>{var _=this.mirror.getId(p);this.flushPendingCanvasMutationFor(p,_)})),this.rafIdFlush=requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(c,p){if(!this.frozen&&!this.locked){var _=this.pendingCanvasMutations.get(c);if(_&&p!==-1){var b=_.map((I=>(function(L,q){if(L==null)return{};var H={};for(var K in L)if({}.hasOwnProperty.call(L,K)){if(q.indexOf(K)!==-1)continue;H[K]=L[K]}return H})(I,s))),{type:C}=_[0];this.mutationCb({id:p,type:C,commands:b}),this.pendingCanvasMutations.delete(c)}}}}class x7{constructor(c){i(this,"trackedLinkElements",new WeakSet),i(this,"mutationCb"),i(this,"adoptedStyleSheetCb"),i(this,"styleMirror",new E7),this.mutationCb=c.mutationCb,this.adoptedStyleSheetCb=c.adoptedStyleSheetCb}attachLinkElement(c,p){"_cssText"in p.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:p.attributes}]}),this.trackLinkElement(c)}trackLinkElement(c){this.trackedLinkElements.has(c)||(this.trackedLinkElements.add(c),this.trackStylesheetInLinkElement(c))}adoptStyleSheets(c,p){var _=this;if(c.length!==0){var b={id:p,styleIds:[]},C=[],I=function(q){var H;_.styleMirror.has(q)?H=_.styleMirror.getId(q):(H=_.styleMirror.add(q),C.push({styleId:H,rules:Array.from(q.rules||CSSRule,((K,ie)=>({rule:de(K,q.href),index:ie})))})),b.styleIds.push(H)};for(var L of c)I(L);C.length>0&&(b.styles=C),this.adoptedStyleSheetCb(b)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(c){}}class O7{constructor(){i(this,"nodeMap",new WeakMap),i(this,"active",!1)}inOtherBuffer(c,p){var _=this.nodeMap.get(c);return _&&Array.from(_).some((b=>b!==p))}add(c,p){this.active||(this.active=!0,requestAnimationFrame((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(c,(this.nodeMap.get(c)||new Set).add(p))}destroy(){}}var kc=!1;try{if(Array.from([1],(h=>2*h))[0]!==2){var jd=document.createElement("iframe");document.body.appendChild(jd),Array.from=((n=jd.contentWindow)==null?void 0:n.Array.from)||Array.from,document.body.removeChild(jd)}}catch(h){console.debug("Unable to override Array.from",h)}var fr=new Ae;function jo(h){h===void 0&&(h={});var{emit:c,checkoutEveryNms:p,checkoutEveryNth:_,blockClass:b="rr-block",blockSelector:C=null,ignoreClass:I="rr-ignore",ignoreSelector:L=null,maskTextClass:q="rr-mask",maskTextSelector:H=null,inlineStylesheet:K=!0,maskAllInputs:ie,maskInputOptions:pe,slimDOMOptions:oe,maskInputFn:$e,maskTextFn:Ce,hooks:Fe,packFn:ze,sampling:be={},dataURLOptions:Ze={},mousemoveWait:Ie,recordDOM:ke=!0,recordCanvas:Se=!1,recordCrossOriginIframes:xe=!1,recordAfter:Re=h.recordAfter==="DOMContentLoaded"?h.recordAfter:"load",userTriggeredOnInput:_e=!1,collectFonts:Ne=!1,inlineImages:Xe=!1,plugins:We,keepIframeSrcFn:ht=(()=>!1),ignoreCSSAttributes:Me=new Set([]),errorHandler:_t}=h;qo=_t;var ot=e({type:"image/webp",quality:.4,maxBase64ImageLength:1048576},Ze),et=!xe||window.parent===window,Qe=!1;if(!et)try{window.parent.document&&(Qe=!1)}catch(Tt){Qe=!0}if(et&&!c)throw new Error("emit function is required");if(!et&&!Qe)return()=>{};Ie!==void 0&&be.mousemove===void 0&&(be.mousemove=Ie),fr.reset();var Ct,lt=ie===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:pe!==void 0?pe:{password:!0},ut=yt(oe!==void 0&&oe);(function(Tt){Tt===void 0&&(Tt=window),"NodeList"in Tt&&!Tt.NodeList.prototype.forEach&&(Tt.NodeList.prototype.forEach=[].forEach),"DOMTokenList"in Tt&&!Tt.DOMTokenList.prototype.forEach&&(Tt.DOMTokenList.prototype.forEach=[].forEach)})();var wt=0,xt=new Map,Pe=Tt=>{for(var cn of We||[])cn.eventProcessor&&(Tt=cn.eventProcessor(Tt));return ze&&!Qe&&(Tt=ze(Tt)),Tt};Tn=(Tt,cn)=>{var st,Ft=Tt;if(Ft.timestamp=pr(),!((st=Mr[0])!=null&&st.isFrozen())||Ft.type===o.FullSnapshot||Ft.type===o.IncrementalSnapshot&&Ft.data.source===l.Mutation||Mr.forEach((bt=>bt.unfreeze())),et)c==null||c(Pe(Ft),cn);else if(Qe){var Pn={type:"rrweb",event:Pe(Ft),origin:window.location.origin,isCheckout:cn};window.parent.postMessage(Pn,"*")}if(Ft.type===o.FullSnapshot)Ct=Ft,wt=0;else if(Ft.type===o.IncrementalSnapshot){if(Ft.data.source===l.Mutation&&Ft.data.isAttachIframe)return;wt++,(_&&wt>=_||p&&Ft.timestamp-Ct.timestamp>p)&&wc(!0)}};var zt=Tt=>{if(xe&&Tt.removes&&Tt.removes.length>0){var cn=Tt.adds.length>0?new Set(Tt.adds.map((st=>st.node.id))):null;Tt.removes.forEach((st=>{var{id:Ft}=st;if(!cn||!cn.has(Ft)){var Pn=xt.get(Ft);Pn&&(Pn(),xt.delete(Ft)),ln.removeIframeById(Ft)}})),(function(){for(var[st,Ft]of xt){var Pn=fr.getNode(st);if(Pn)try{Pn.contentDocument&&Pn.contentDocument.defaultView||(Ft(),xt.delete(st))}catch(bt){Ft(),xt.delete(st)}else Ft(),xt.delete(st)}})()}Tn({type:o.IncrementalSnapshot,data:e({source:l.Mutation},Tt)})},on=Tt=>Tn({type:o.IncrementalSnapshot,data:e({source:l.Scroll},Tt)}),Vn=Tt=>Tn({type:o.IncrementalSnapshot,data:e({source:l.CanvasMutation},Tt)}),Rn=new x7({mutationCb:zt,adoptedStyleSheetCb:Tt=>Tn({type:o.IncrementalSnapshot,data:e({source:l.AdoptedStyleSheet},Tt)})}),ln=new z7({mirror:fr,mutationCb:zt,stylesheetManager:Rn,recordCrossOriginIframes:xe,wrappedEmit:Tn});for(var Ln of We||[])Ln.getMirror&&Ln.getMirror({nodeMirror:fr,crossOriginIframeMirror:ln.crossOriginIframeMirror,crossOriginIframeStyleMirror:ln.crossOriginIframeStyleMirror});var ea=new O7;Gd=new L7({recordCanvas:Se,mutationCb:Vn,win:window,blockClass:b,blockSelector:C,mirror:fr,sampling:be.canvas,dataURLOptions:ot});var As=new R7({mutationCb:zt,scrollCb:on,bypassOptions:{blockClass:b,blockSelector:C,maskTextClass:q,maskTextSelector:H,inlineStylesheet:K,maskInputOptions:lt,dataURLOptions:ot,maskTextFn:Ce,maskInputFn:$e,recordCanvas:Se,inlineImages:Xe,sampling:be,slimDOMOptions:ut,iframeManager:ln,stylesheetManager:Rn,canvasManager:Gd,keepIframeSrcFn:ht,processedNodeManager:ea},mirror:fr});wc=function(Tt){if(Tt===void 0&&(Tt=!1),ke){Tn({type:o.Meta,data:{href:window.location.href,width:u1(),height:Ho()}},Tt),Rn.reset(),As.init(),Mr.forEach((st=>st.lock()));var cn=(function(st,Ft){var{mirror:Pn=new Ae,blockClass:bt="rr-block",blockSelector:ta=null,maskTextClass:zs="rr-mask",maskTextSelector:Ki=null,inlineStylesheet:ui=!0,inlineImages:ps=!1,recordCanvas:Ra=!1,maskAllInputs:Pa=!1,maskTextFn:Ir,maskInputFn:Na,slimDOM:Yi=!1,dataURLOptions:gr,preserveWhiteSpace:rl,onSerialize:I0,onIframeLoad:A0,iframeLoadTimeout:z0,onStylesheetLoad:R0,stylesheetLoadTimeout:Fc,keepIframeSrcFn:Bn=(()=>!1),maxDepth:Zt}=Ft||{};return ye(st,{doc:st,mirror:Pn,blockClass:bt,blockSelector:ta,maskTextClass:zs,maskTextSelector:Ki,skipChild:!1,inlineStylesheet:ui,maskInputOptions:Pa===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:Pa===!1?{password:!0}:Pa,maskTextFn:Ir,maskInputFn:Na,slimDOMOptions:yt(Yi),dataURLOptions:gr,inlineImages:ps,recordCanvas:Ra,preserveWhiteSpace:rl,onSerialize:I0,onIframeLoad:A0,iframeLoadTimeout:z0,onStylesheetLoad:R0,stylesheetLoadTimeout:Fc,keepIframeSrcFn:Bn,newlyAddedElement:!1,maxDepth:Zt})})(document,{mirror:fr,blockClass:b,blockSelector:C,maskTextClass:q,maskTextSelector:H,inlineStylesheet:K,maskAllInputs:lt,maskTextFn:Ce,maskInputFn:$e,slimDOM:ut,dataURLOptions:ot,recordCanvas:Se,inlineImages:Xe,onSerialize(st){m1(st,fr)&&ln.addIframe(st),p1(st,fr)&&Rn.trackLinkElement(st),qd(st)&&As.addShadowRoot(S.shadowRoot(st),document)},onIframeLoad(st,Ft){ln.attachIframe(st,Ft),As.observeAttachShadow(st)},onStylesheetLoad(st,Ft){Rn.attachLinkElement(st,Ft)},keepIframeSrcFn:ht});if(!cn)return console.warn("Failed to snapshot the document");Tn({type:o.FullSnapshot,data:{node:cn,initialOffset:Uo(window)}},Tt),Mr.forEach((st=>st.unlock())),xe&&ln.reattachIframes(),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Rn.adoptStyleSheets(document.adoptedStyleSheets,fr.getId(document))}};try{var ms=[],ci=Tt=>{var cn;return qt(A7)({mutationCb:zt,mousemoveCb:(st,Ft)=>Tn({type:o.IncrementalSnapshot,data:{source:Ft,positions:st}}),mouseInteractionCb:st=>Tn({type:o.IncrementalSnapshot,data:e({source:l.MouseInteraction},st)}),scrollCb:on,viewportResizeCb:st=>Tn({type:o.IncrementalSnapshot,data:e({source:l.ViewportResize},st)}),inputCb:st=>Tn({type:o.IncrementalSnapshot,data:e({source:l.Input},st)}),mediaInteractionCb:st=>Tn({type:o.IncrementalSnapshot,data:e({source:l.MediaInteraction},st)}),styleSheetRuleCb:st=>Tn({type:o.IncrementalSnapshot,data:e({source:l.StyleSheetRule},st)}),styleDeclarationCb:st=>Tn({type:o.IncrementalSnapshot,data:e({source:l.StyleDeclaration},st)}),canvasMutationCb:Vn,fontCb:st=>Tn({type:o.IncrementalSnapshot,data:e({source:l.Font},st)}),selectionCb(st){Tn({type:o.IncrementalSnapshot,data:e({source:l.Selection},st)})},customElementCb(st){Tn({type:o.IncrementalSnapshot,data:e({source:l.CustomElement},st)})},blockClass:b,ignoreClass:I,ignoreSelector:L,maskTextClass:q,maskTextSelector:H,maskInputOptions:lt,inlineStylesheet:K,sampling:be,recordDOM:ke,recordCanvas:Se,inlineImages:Xe,userTriggeredOnInput:_e,collectFonts:Ne,doc:Tt,maskInputFn:$e,maskTextFn:Ce,keepIframeSrcFn:ht,blockSelector:C,slimDOMOptions:ut,dataURLOptions:ot,mirror:fr,iframeManager:ln,stylesheetManager:Rn,shadowDomManager:As,processedNodeManager:ea,canvasManager:Gd,ignoreCSSAttributes:Me,plugins:((cn=We==null?void 0:We.filter((st=>st.observer)))==null?void 0:cn.map((st=>({observer:st.observer,options:st.options,callback:Ft=>Tn({type:o.Plugin,data:{plugin:st.name,payload:Ft}})}))))||[]},Fe)};ln.addLoadListener((Tt=>{try{var cn=fr.getId(Tt),st=ci(Tt.contentDocument);ms.push(st),cn!==-1&&xt.set(cn,st)}catch(Ft){console.warn(Ft)}})),ln.addPageHideListener((Tt=>{var cn=fr.getId(Tt),st=xt.get(cn);st&&(st(),xt.delete(cn)),(function(Ft){for(var Pn=Mr.length-1;Pn>=0;Pn--){var bt=Mr[Pn];bt!=null&&bt.bufferBelongsToIframe(Ft)&&(bt.reset(),Mr.splice(Pn,1))}})(Tt)}));var za=()=>{wc(),ms.push(ci(document)),kc=!0};return["interactive","complete"].includes(document.readyState)?za():(ms.push(Mt("DOMContentLoaded",(()=>{Tn({type:o.DomContentLoaded,data:{}}),Re==="DOMContentLoaded"&&za()}))),ms.push(Mt("load",(()=>{Tn({type:o.Load,data:{}}),Re==="load"&&za()}),window))),()=>{ms.forEach((Tt=>zn(Tt))),ea.destroy(),ln.removeLoadListener(),ln.destroy(),xt.clear(),fr.reset(),kc=!1,qo=void 0}}catch(Tt){console.warn(Tt)}}jo.addCustomEvent=(h,c)=>{if(!kc)throw new Error("please add custom event after start recording");Tn({type:o.Custom,data:{tag:h,payload:c}})},jo.freezePage=()=>{Mr.forEach((h=>h.freeze()))},jo.takeFullSnapshot=h=>{if(!kc)throw new Error("please take full snapshot after start recording");wc(h)},jo.mirror=fr;var F7=Object.defineProperty,Sc=(h,c,p)=>((_,b,C)=>b in _?F7(_,b,{enumerable:!0,configurable:!0,writable:!0,value:C}):_[b]=C)(h,typeof c!="symbol"?c+"":c,p);class Hi{constructor(c){Sc(this,"fileName"),Sc(this,"functionName"),Sc(this,"lineNumber"),Sc(this,"columnNumber"),this.fileName=c.fileName||"",this.functionName=c.functionName||"",this.lineNumber=c.lineNumber,this.columnNumber=c.columnNumber}toString(){var c=this.lineNumber||"",p=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+c+":"+p+")":this.fileName+":"+c+":"+p}}var D7=/(^|@)\S+:\d+/,x1=/^\s*at .*(\S+:\d+|\(native\))/m,V7=/^(eval@)?(\[native code])?$/,Zd={parse(h){return h?h.stacktrace!==void 0||h["opera#sourceloc"]!==void 0?this.parseOpera(h):h.stack&&h.stack.match(x1)?this.parseV8OrIE(h):h.stack?this.parseFFOrSafari(h):[]:[]},extractLocation(h){if(h.indexOf(":")===-1)return[h];var c=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(h.replace(/[()]/g,""));if(!c)throw new Error("Cannot parse given url: "+h);return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE(h){return h.stack.split("\n").filter((function(c){return!!c.match(x1)}),this).map((function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var p=c.replace(/^\s+/,"").replace(/\(eval code/g,"("),_=p.match(/ (\((.+):(\d+):(\d+)\)$)/),b=(p=_?p.replace(_[0],""):p).split(/\s+/).slice(1),C=this.extractLocation(_?_[1]:b.pop()),I=b.join(" ")||void 0,L=["eval",""].indexOf(C[0])>-1?void 0:C[0];return new Hi({functionName:I,fileName:L,lineNumber:C[1],columnNumber:C[2]})}),this)},parseFFOrSafari(h){return h.stack.split("\n").filter((function(c){return!c.match(V7)}),this).map((function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new Hi({functionName:c});var p=/((.*".+"[^@]*)?[^@]*)(?:@)/,_=c.match(p),b=_&&_[1]?_[1]:void 0,C=this.extractLocation(c.replace(p,""));return new Hi({functionName:b,fileName:C[0],lineNumber:C[1],columnNumber:C[2]})}),this)},parseOpera(h){return!h.stacktrace||h.message.indexOf("\n")>-1&&h.message.split("\n").length>h.stacktrace.split("\n").length?this.parseOpera9(h):h.stack?this.parseOpera11(h):this.parseOpera10(h)},parseOpera9(h){for(var c=/Line (\d+).*script (?:in )?(\S+)/i,p=h.message.split("\n"),_=[],b=2,C=p.length;C>b;b+=2){var I=c.exec(p[b]);I&&_.push(new Hi({fileName:I[2],lineNumber:parseFloat(I[1])}))}return _},parseOpera10(h){for(var c=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,p=h.stacktrace.split("\n"),_=[],b=0,C=p.length;C>b;b+=2){var I=c.exec(p[b]);I&&_.push(new Hi({functionName:I[3]||void 0,fileName:I[2],lineNumber:parseFloat(I[1])}))}return _},parseOpera11(h){return h.stack.split("\n").filter((function(c){return!!c.match(D7)&&!c.match(/^Error created at/)}),this).map((function(c){var p=c.split("@"),_=this.extractLocation(p.pop()),b=(p.shift()||"").replace(//,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Hi({functionName:b,fileName:_[0],lineNumber:_[1],columnNumber:_[2]})}),this)}};function B7(h){if(!h||!h.outerHTML)return"";for(var c="";h.parentElement;){var p=h.localName;if(!p)break;p=p.toLowerCase();var _=h.parentElement,b=[];if(_.children&&_.children.length>0)for(var C=0;_.children.length>C;C++){var I=_.children[C];I.localName&&I.localName.toLowerCase&&I.localName.toLowerCase()===p&&b.push(I)}b.length>1&&(p+=":eq("+b.indexOf(h)+")"),c=p+(c?">"+c:""),h=_}return c}function O1(h){return Array.isArray(h)}function Kd(h){return typeof h=="object"&&h!==null&&!O1(h)}function F1(h,c){if(c===0)return!0;var p=Object.keys(h);for(var _ of p)if(Kd(h[_])&&F1(h[_],c-1))return!0;return!1}function qi(h,c){var p={numOfKeysLimit:50,depthOfLimit:4};Object.assign(p,c);var _=[],b=[];return JSON.stringify(h,(function(C,I){if(_.length>0){var L=_.indexOf(this);~L?_.splice(L+1):_.push(this),~L?b.splice(L,1/0,C):b.push(C),~_.indexOf(I)&&(I=_[0]===I?"[Circular ~]":"[Circular ~."+b.slice(0,_.indexOf(I)).join(".")+"]")}else _.push(I);if(I===null)return I;if(I===void 0)return"undefined";if(Kd(q=I)&&Object.keys(q).length>p.numOfKeysLimit||typeof q=="function"||Kd(q)&&F1(q,p.depthOfLimit))return(function(pe){var oe=pe.toString();return p.stringLengthLimit&&oe.length>p.stringLengthLimit&&(oe=oe.slice(0,p.stringLengthLimit)+"..."),oe})(I);var q;if(typeof I=="bigint")return I.toString()+"n";if(I instanceof Event){var H={};for(var K in I){var ie=I[K];H[K]=O1(ie)?B7(ie.length?ie[0]:null):ie}return H}return I instanceof Node?I instanceof HTMLElement?I?I.outerHTML:"":I.nodeName:I instanceof Error?I.stack?I.stack+"\nEnd of stack for Error object":I.name+": "+I.message:I}))}var D1={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function U7(h,c,p){var _,b=p?Object.assign({},D1,p):D1,C=b.logger;if(!C)return()=>{};_=typeof C=="string"?c[C]:C;var I=0,L=!1,q=[];if(b.level.includes("error")){var H=oe=>{var $e=oe.message,Ce=Zd.parse(oe.error).map((ze=>ze.toString())),Fe=[qi($e,b.stringifyOptions)];h({level:"error",trace:Ce,payload:Fe})};c.addEventListener("error",H),q.push((()=>{c.removeEventListener("error",H)}));var K=oe=>{var $e,Ce;oe.reason instanceof Error?Ce=[qi("Uncaught (in promise) "+($e=oe.reason).name+": "+$e.message,b.stringifyOptions)]:($e=new Error,Ce=[qi("Uncaught (in promise)",b.stringifyOptions),qi(oe.reason,b.stringifyOptions)]);var Fe=Zd.parse($e).map((ze=>ze.toString()));h({level:"error",trace:Fe,payload:Ce})};c.addEventListener("unhandledrejection",K),q.push((()=>{c.removeEventListener("unhandledrejection",K)}))}for(var ie of b.level)q.push(pe(_,ie));return()=>{q.forEach((oe=>oe()))};function pe(oe,$e){var Ce=this;return oe[$e]?(function(Fe,ze,be){try{if(!(ze in Fe))return()=>{};var Ze=Fe[ze],Ie=(ke=>function(){for(var Se=arguments.length,xe=new Array(Se),Re=0;Se>Re;Re++)xe[Re]=arguments[Re];if(ke.apply(Ce,xe),!($e==="assert"&&xe[0]||L)){L=!0;try{var _e=Zd.parse(new Error).map((Xe=>Xe.toString())).splice(1),Ne=($e==="assert"?xe.slice(1):xe).map((Xe=>qi(Xe,b.stringifyOptions)));I++,b.lengthThreshold>I?h({level:$e,trace:_e,payload:Ne}):I===b.lengthThreshold&&h({level:"warn",trace:[],payload:[qi("The number of log records reached the threshold.")]})}catch(Xe){ke("rrweb logger error:",Xe,...xe)}finally{L=!1}}})(Ze);return typeof Ie=="function"&&(Ie.prototype=Ie.prototype||{},Object.defineProperties(Ie,{__rrweb_original__:{enumerable:!1,value:Ze}})),Fe[ze]=Ie,()=>{Fe[ze]=Ze}}catch(ke){return()=>{}}})(oe,$e):()=>{}}}var en=typeof window<"u"?window:void 0,Aa=typeof globalThis<"u"?globalThis:en;typeof self>"u"&&(Aa.self=Aa),typeof File>"u"&&(Aa.File=function(){});var Zo=Aa==null?void 0:Aa.document;Aa!=null&&Aa.XMLHttpRequest&&new Aa.XMLHttpRequest;var Ts=en!=null?en:{},V1=Object.prototype,H7=V1.hasOwnProperty,Ec=V1.toString,ri=Array.isArray||function(h){return Ec.call(h)==="[object Array]"},Ko=h=>typeof h=="function",Yr=h=>h===Object(h)&&!ri(h),Dn=h=>h===void 0,Wi=h=>Ec.call(h)=="[object String]",Qs=h=>h===null,us=h=>Dn(h)||Qs(h),ds=h=>Ec.call(h)=="[object Number]"&&h==h,Js=h=>Ec.call(h)==="[object Boolean]",B1=h=>h instanceof FormData;function si(h,c,p,_,b){return c>p&&(_.warn("min cannot be greater than max."),c=p),ds(h)?h>p?(_.warn(" cannot be greater than max: "+p+". Using max value instead."),p):c>h?(_.warn(" cannot be less than min: "+c+". Using min value instead."),c):h:(_.warn(" must be a number. using max or fallback. max: "+p+", fallback: "+b),si(b||p,c,p,_))}class q7{constructor(c){this.$t={},this.zt=c.zt,this.Zt=si(c.bucketSize,0,100,c.Gt),this.Qt=si(c.refillRate,0,this.Zt,c.Gt),this.Jt=si(c.refillInterval,0,864e5,c.Gt)}Kt(c,p){var _=Math.floor((p-c.lastAccess)/this.Jt);_>0&&(c.tokens=Math.min(c.tokens+_*this.Qt,this.Zt),c.lastAccess=c.lastAccess+_*this.Jt)}consumeRateLimit(c){var p,_=Date.now(),b=String(c),C=this.$t[b];return C?this.Kt(C,_):this.$t[b]=C={tokens:this.Zt,lastAccess:_},C.tokens===0||(C.tokens--,C.tokens===0&&((p=this.zt)==null||p.call(this,c)),C.tokens===0)}stop(){this.$t={}}}var W7=h=>h instanceof Document,G7="1.374.2",j7="web",U1=function(h,c){var{debugEnabled:p}=c===void 0?{}:c,_={k(b){if(en&&(Ts.POSTHOG_DEBUG||p)&&!Dn(en.console)&&en.console){for(var C=("__rrweb_original__"in en.console[b])?en.console[b].__rrweb_original__:en.console[b],I=arguments.length,L=new Array(I>1?I-1:0),q=1;I>q;q++)L[q-1]=arguments[q];C(h,...L)}},debug(){for(var b=arguments.length,C=new Array(b),I=0;b>I;I++)C[I]=arguments[I];_.k("debug",...C)},info(){for(var b=arguments.length,C=new Array(b),I=0;b>I;I++)C[I]=arguments[I];_.k("log",...C)},warn(){for(var b=arguments.length,C=new Array(b),I=0;b>I;I++)C[I]=arguments[I];_.k("warn",...C)},error(){for(var b=arguments.length,C=new Array(b),I=0;b>I;I++)C[I]=arguments[I];_.k("error",...C)},critical(){for(var b=arguments.length,C=new Array(b),I=0;b>I;I++)C[I]=arguments[I];console.error(h,...C)},uninitializedWarning(b){_.error("You must initialize PostHog before calling "+b)},createLogger:(b,C)=>U1(h+" "+b,C)};return _},ai=U1("[PostHog.js]"),Yo=ai.createLogger;function Yd(h,c){if(!us(h))if(ri(h))h.forEach(c);else if(B1(h))h.forEach(((_,b)=>c(_,b)));else for(var p in h)H7.call(h,p)&&c(h[p],p)}function Tc(h,c,p,_){var{capture:b=!1,passive:C=!0}={};h==null||h.addEventListener(c,p,{capture:b,passive:C})}var Z7=["localhost","127.0.0.1"],H1=h=>{var c=Zo==null?void 0:Zo.createElement("a");return Dn(c)?null:(c.href=h,c)},K7=function(h,c){var p,_;c===void 0&&(c="&");var b=[];return Yd(h,(function(C,I){Dn(C)||Dn(I)||I==="undefined"||(p=encodeURIComponent((L=>L instanceof File)(C)?C.name:C.toString()),_=encodeURIComponent(I),b[b.length]=_+"="+p)})),b.join(c)};function q1(h,c,p){try{if(!(c in h))return()=>{};var _=h[c],b=p(_);return Ko(b)&&(b.prototype=b.prototype||{},Object.defineProperties(b,{__posthog_wrapped__:{enumerable:!1,value:!0}})),h[c]=b,()=>{h[c]=_}}catch(C){return()=>{}}}function Qd(h,c){var p,_=(function(I){try{return typeof I=="string"?new URL(I).hostname:"url"in I?new URL(I.url).hostname:I.hostname}catch(L){return null}})(h),b={hostname:_,isHostDenied:!1};if((p=c.payloadHostDenyList)==null||!p.length||_==null||!_.trim().length)return b;for(var C of c.payloadHostDenyList)if(_.endsWith(C))return{hostname:_,isHostDenied:!0};return b}var W1="$session_recording_remote_config",G1="$replay_override_sampling",j1="$replay_override_linked_flag",Z1="$replay_override_url_trigger",K1="$replay_override_event_trigger",ii="$session_is_sampled",$c="$session_past_minimum_duration",Jd="$session_recording_url_trigger_activated_session",Xd="$session_recording_event_trigger_activated_session",e0="$posthog_sr_group_event_trigger_",t0="$posthog_sr_group_url_trigger_",Y1="$posthog_sr_group_sampling_",n0="$debug_first_full_snapshot_timestamp",Q1="$stored_person_properties",J1="$sdk_debug_replay_remote_trigger_matching_config",Y7=new RegExp("(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})"),Q7=new RegExp("(\\d{3}-?\\d{2}-?\\d{4})"),r0="[SessionRecording]",s0="redacted",Gi={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:h=>h,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","analytics.google.com","bam.nr-data.net"]},J7=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],X7=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],eb=["/s/","/e/","/i/"];function X1(h,c,p,_){if(us(h))return h;var b=(c==null?void 0:c["content-length"])||(function(C){return new Blob([C]).size})(h);return Wi(b)&&(b=parseInt(b)),b>p?r0+" "+_+" body too large to record ("+b+" bytes)":h}function ep(h,c){if(us(h))return h;var p=h;return(function(_,b){return!(us(_)||Wi(_)&&(_=_.trim(),Y7.test((_||"").replace(/[- ]/g,""))||Q7.test(_)))})(p)||(p=r0+" "+c+" body "+s0),Yd(X7,(_=>{var b,C;(b=p)!=null&&b.length&&((C=p)==null?void 0:C.indexOf(_))!==-1&&(p=r0+" "+c+" body "+s0+" as might contain: "+_)})),p}var tp=Yo("[Recorder]"),np=h=>h.entryType==="navigation",a0=h=>h.entryType==="resource";function Ic(h,c){return!!c&&(Js(c)||c[h])}function Ac(h){var{type:c,recordBody:p,headers:_,url:b}=h;function C(L){var q=Object.keys(_).find((K=>K.toLowerCase()==="content-type")),H=q&&_[q];return L.some((K=>H==null?void 0:H.includes(K)))}if(!p||(function L(q){try{return typeof q=="string"?q.startsWith("blob:"):q instanceof URL?q.protocol==="blob:":q instanceof Request&&L(q.url)}catch(H){return!1}})(b))return!1;if(Js(p))return!0;if(ri(p))return C(p);var I=p[c];return Js(I)?I:C(I)}function i0(h,c,p,_,b,C){return o0.apply(this,arguments)}function o0(){return o0=r((function*(h,c,p,_,b,C){if(C===void 0&&(C=0),C>10)return tp.warn("Failed to get performance entry for request",{url:p,initiatorType:c}),null;var I=(function(L,q){for(var H=L.length-1;H>=0;H-=1)if(a0(K=L[H])&&K.initiatorType===c&&(Dn(_)||K.startTime>=_)&&(Dn(b)||b>=K.startTime))return L[H];var K})(h.performance.getEntriesByName(p));return I||(yield new Promise((L=>setTimeout(L,50*C))),i0(h,c,p,_,b,C+1))})),o0.apply(this,arguments)}function rp(h){var{body:c,options:p,url:_}=h;if(us(c))return null;var{hostname:b,isHostDenied:C}=Qd(_,p);if(C)return b+" is in deny list";if(Wi(c))return c;if(W7(c))return c.textContent;if(B1(c))return K7(c);if(Yr(c))try{return JSON.stringify(c)}catch(I){return"[SessionReplay] Failed to stringify response object"}return"[SessionReplay] Cannot read body of type "+toString.call(c)}var tb=h=>!Qs(h)&&(h.entryType==="navigation"||h.entryType==="resource");function zc(h){var{entry:c,method:p,status:_,networkRequest:b,isInitial:C,start:I,end:L,url:q,initiatorType:H}=h;I=c?c.startTime:I,L=c?c.responseEnd:L;var K=Math.floor(Date.now()-performance.now()),ie=Math.floor(K+(I||0)),pe=[e({},c?c.toJSON():{name:q},{startTime:Dn(I)?void 0:Math.round(I),endTime:Dn(L)?void 0:Math.round(L),timeOrigin:K,timestamp:ie,method:p,initiatorType:H||(c?c.initiatorType:void 0),status:_,requestHeaders:b.requestHeaders,requestBody:b.requestBody,responseHeaders:b.responseHeaders,responseBody:b.responseBody,isInitial:C})];if(tb(c))for(var oe of c.serverTiming||[])pe.push({timeOrigin:K,timestamp:ie,startTime:Math.round(c.startTime),name:oe.name,duration:oe.duration,entryType:"serverTiming"});return pe}var nb=["video/","audio/"];function sp(h){return new Promise((c=>{var p=setTimeout((()=>c("[SessionReplay] Timeout while trying to read body")),500);try{h.clone().text().then((_=>c(_)),(_=>c("[SessionReplay] Failed to read body: "+_))).finally((()=>clearTimeout(p)))}catch(_){clearTimeout(p),c("[SessionReplay] Failed to read body")}}))}function ap(){return(ap=r((function*(h){var{r:c,options:p,url:_}=h,{hostname:b,isHostDenied:C}=Qd(_,p);return C?Promise.resolve(b+" is in deny list"):sp(c)}))).apply(this,arguments)}function ip(){return(ip=r((function*(h){var{r:c,options:p,url:_}=h,b=(function(C){var I,{r:L,options:q,url:H}=C;if(L.headers.get("Transfer-Encoding")==="chunked")return"Chunked Transfer-Encoding is not supported";var K=(I=L.headers.get("Content-Type"))==null?void 0:I.toLowerCase(),ie=nb.some(($e=>K==null?void 0:K.startsWith($e)));if(K&&ie)return"Content-Type "+K+" is not supported";var{hostname:pe,isHostDenied:oe}=Qd(H,q);return oe?pe+" is in deny list":null})({r:c,options:p,url:_});return Qs(b)?sp(c):Promise.resolve(b)}))).apply(this,arguments)}var l0=null;function rb(h,c,p){if(!("performance"in c))return()=>{};if(l0)return tp.warn("Network observer already initialised, doing nothing"),()=>{};var _=p?Object.assign({},Gi,p):Gi,b=q=>{var H=[];q.requests.forEach((K=>{var ie=_.maskRequestFn(K);ie&&H.push(ie)})),H.length>0&&h(e({},q,{requests:H}))},C=(function(q,H,K){if(K.recordInitialRequests){var ie=H.performance.getEntries().filter(($e=>np($e)||a0($e)&&K.initiatorTypes.includes($e.initiatorType)));q({requests:ie.flatMap(($e=>zc({entry:$e,method:void 0,status:void 0,networkRequest:{},isInitial:!0}))),isInitial:!0})}var pe=new H.PerformanceObserver(($e=>{var Ce=$e.getEntries().filter((Fe=>np(Fe)||a0(Fe)&&K.initiatorTypes.includes(Fe.initiatorType)&&(ze=>!K.recordBody&&!K.recordHeaders||ze.initiatorType!=="xmlhttprequest"&&ze.initiatorType!=="fetch")(Fe)));q({requests:Ce.flatMap((Fe=>zc({entry:Fe,method:void 0,status:void 0,networkRequest:{}})))})})),oe=PerformanceObserver.supportedEntryTypes.filter(($e=>K.performanceEntryTypeToObserve.includes($e)));return pe.observe({entryTypes:oe}),()=>{pe.disconnect()}})(b,c,_),I=()=>{},L=()=>{};return(_.recordHeaders||_.recordBody)&&(I=(function(q,H,K){if(!K.initiatorTypes.includes("xmlhttprequest"))return()=>{};var ie=Ic("request",K.recordHeaders),pe=Ic("response",K.recordHeaders),oe=q1(H.XMLHttpRequest.prototype,"open",($e=>function(Ce,Fe,ze,be,Ze){ze===void 0&&(ze=!0);var Ie,ke,Se=this,xe=new Request(Fe),Re={},_e={},Ne=Se.setRequestHeader.bind(Se);Se.setRequestHeader=(Me,_t)=>(_e[Me]=_t,Ne(Me,_t)),ie&&(Re.requestHeaders=_e);var Xe=Se.send.bind(Se);Se.send=Me=>(Ac({type:"request",headers:_e,url:Fe,recordBody:K.recordBody})&&(Re.requestBody=rp({body:Me,options:K,url:Fe})),Ie=H.performance.now(),Xe(Me));var We=()=>{Se.removeEventListener("readystatechange",ht),Se.removeEventListener("error",We),Se.removeEventListener("abort",We),Se.removeEventListener("timeout",We)},ht=()=>{if(Se.readyState===Se.DONE){We(),ke=H.performance.now();var Me={};Se.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((_t=>{var ot=_t.split(": "),et=ot.shift(),Qe=ot.join(": ");et&&(Me[et]=Qe)})),pe&&(Re.responseHeaders=Me),Ac({type:"response",headers:Me,url:Fe,recordBody:K.recordBody})&&(Re.responseBody=rp({body:Se.response,options:K,url:Fe})),i0(H,"xmlhttprequest",xe.url,Ie,ke).then((_t=>{var ot=zc({entry:_t,method:Ce,status:Se==null?void 0:Se.status,networkRequest:Re,start:Ie,end:ke,url:Fe.toString(),initiatorType:"xmlhttprequest"});q({requests:ot})})).catch((()=>{}))}};Se.addEventListener("readystatechange",ht),Se.addEventListener("error",We),Se.addEventListener("abort",We),Se.addEventListener("timeout",We),$e.call(Se,Ce,Fe.toString(),ze,be,Ze)}));return()=>{oe()}})(b,c,_),L=(function(q,H,K){if(!K.initiatorTypes.includes("fetch"))return()=>{};var ie=Ic("request",K.recordHeaders),pe=Ic("response",K.recordHeaders),oe=q1(H,"fetch",($e=>(function(){var Ce=r((function*(Fe,ze){var be,Ze,Ie,ke=new Request(Fe,ze),Se={};try{var xe={};ke.headers.forEach(((_e,Ne)=>{xe[Ne]=_e})),ie&&(Se.requestHeaders=xe),Ac({type:"request",headers:xe,url:Fe,recordBody:K.recordBody})&&(Se.requestBody=yield(function(_e){return ap.apply(this,arguments)})({r:ke,options:K,url:Fe})),Ze=H.performance.now(),be=yield $e(ke),Ie=H.performance.now();var Re={};return be.headers.forEach(((_e,Ne)=>{Re[Ne]=_e})),pe&&(Se.responseHeaders=Re),Ac({type:"response",headers:Re,url:Fe,recordBody:K.recordBody})&&(Se.responseBody=yield(function(_e){return ip.apply(this,arguments)})({r:be,options:K,url:Fe})),be}finally{i0(H,"fetch",ke.url,Ze,Ie).then((_e=>{var Ne,Xe=zc({entry:_e,method:ke.method,status:(Ne=be)==null?void 0:Ne.status,networkRequest:Se,start:Ze,end:Ie,url:ke.url,initiatorType:"fetch"});q({requests:Xe})})).catch((()=>{}))}}));return function(Fe,ze){return Ce.apply(this,arguments)}})()));return()=>{oe()}})(b,c,_)),l0=()=>{C(),I(),L(),l0=null}}var hs={DomContentLoaded:0,Load:1,FullSnapshot:2,IncrementalSnapshot:3,Meta:4,Custom:5,Plugin:6},$s="disabled",c0="sampled",Rc="active",oi="buffering",Pc="paused",u0="rrweb_error",d0="trigger",Tr=d0+"_activated",_r=d0+"_pending",Is=d0+"_"+$s;function h0(h,c,p){return c.some((_=>{var b;return _.matching==="regex"&&((b=p==null?void 0:p.get(_.url))!==null&&b!==void 0?b:new RegExp(_.url)).test(h)}))}class m0{constructor(c){this.t=c}triggerStatus(c){var p=this.t.map((_=>_.triggerStatus(c)));return p.includes(Tr)?Tr:p.includes(_r)?_r:Is}stop(){this.t.forEach((c=>c.stop()))}}class p0{constructor(c){this.t=c}triggerStatus(c){var p=new Set;for(var _ of this.t)p.add(_.triggerStatus(c));switch(p.delete(Is),p.size){case 0:return Is;case 1:return Array.from(p)[0];default:return _r}}stop(){this.t.forEach((c=>c.stop()))}}class sb{triggerStatus(){return Tr}stop(){}}var Nc=h=>"sessionRecording"in h;class op{constructor(c,p){this.u=[],this.Ma=[],this.Ra=new Map,this.Oa=new Map,this.Aa="",this.urlBlocked=!1,this._instance=c,this.La=p}onConfig(c){var p,_;this.u=(Nc(c)?Yr(c.sessionRecording)?(p=c.sessionRecording)==null?void 0:p.urlTriggers:[]:c==null?void 0:c.urlTriggers)||[],this.Ma=(Nc(c)?Yr(c.sessionRecording)?(_=c.sessionRecording)==null?void 0:_.urlBlocklist:[]:c==null?void 0:c.urlBlocklist)||[],this.Fa()}Fa(){for(var c of(this.Ra.clear(),this.Oa.clear(),this.u))if(c.matching==="regex"&&!this.Ra.has(c.url))try{this.Ra.set(c.url,new RegExp(c.url))}catch(_){ai.error("Invalid URL trigger regex pattern:",c.url,_)}for(var p of this.Ma)if(p.matching==="regex"&&!this.Oa.has(p.url))try{this.Oa.set(p.url,new RegExp(p.url))}catch(_){ai.error("Invalid URL blocklist regex pattern:",p.url,_)}}onRemoteConfig(c){this.onConfig(c)}Na(c){var p;return this.u.length===0?Is:((p=this._instance)==null?void 0:p.get_property(this.La?t0+this.La:Jd))===c?Tr:_r}triggerStatus(c){var p=this.Na(c),_=p===Tr?Tr:p===_r?_r:Is;return this._instance.register_for_session({$sdk_debug_replay_url_trigger_status:_}),_}checkUrlBlocklist(c,p){if(en!==void 0&&en.location.href){var _=en.location.href;if(_!==this.Aa){this.Aa=_;var b=this.urlBlocked,C=h0(_,this.Ma,this.Oa);b&&C||(C&&!b?c():!C&&b&&p())}}}checkUrlTriggerConditions(c,p,_,b){if(en!==void 0&&en.location.href){var C=en.location.href;if(C!==this.Aa){this.Aa=C;var I=this.urlBlocked,L=h0(C,this.Ma,this.Oa);L&&!I?c():!L&&I&&p();var q=this.Na(b)===Tr,H=h0(C,this.u,this.Ra);!q&&H&&_("url",C)}}}stop(){this.Aa=""}}class lp{constructor(c){this.linkedFlag=null,this.linkedFlagSeen=!1,this.Da=()=>{},this._instance=c}triggerStatus(){var c=_r;return us(this.linkedFlag)&&(c=Is),this.linkedFlagSeen&&(c=Tr),this._instance.register_for_session({$sdk_debug_replay_linked_flag_trigger_status:c}),c}onConfig(c,p){var _;if(this.linkedFlag=(Nc(c)?Yr(c.sessionRecording)?(_=c.sessionRecording)==null?void 0:_.linkedFlag:null:c==null?void 0:c.linkedFlag)||null,!us(this.linkedFlag)&&!this.linkedFlagSeen){var b=Wi(this.linkedFlag)?this.linkedFlag:this.linkedFlag.flag,C=Wi(this.linkedFlag)?null:this.linkedFlag.variant;this.Da=this._instance.onFeatureFlags(((I,L)=>{var q=!1;if(Yr(L)&&b in L){var H=L[b];q=Js(H)?H===!0:C?H===C:!!H}this.linkedFlagSeen=q,q&&p(b,C)}))}}onRemoteConfig(c,p){this.onConfig(c,p)}stop(){this.Da()}}class cp{constructor(c,p){this.Ba=[],this._instance=c,this.La=p}onConfig(c){var p;this.Ba=(Nc(c)?Yr(c.sessionRecording)?(p=c.sessionRecording)==null?void 0:p.eventTriggers:[]:c==null?void 0:c.eventTriggers)||[]}onRemoteConfig(c){this.onConfig(c)}Pa(c){var p;return this.Ba.length===0?Is:((p=this._instance)==null?void 0:p.get_property(this.La?e0+this.La:Xd))===c?Tr:_r}triggerStatus(c){var p=this.Pa(c),_=p===Tr?Tr:p===_r?_r:Is;return this._instance.register_for_session({$sdk_debug_replay_event_trigger_status:_}),_}checkEventTriggerConditions(c,p,_){if(this.Ba.length!==0){var b=this.Pa(_)===Tr,C=this.Ba.includes(c);!b&&C&&p("event",c)}}stop(){}}class ab{constructor(c,p,_){if(this._instance=c,this.group=p,this.Ua=new op(c,p.id),this.Wa=new cp(c,p.id),this.$a=new lp(c),p.conditions.events&&p.conditions.events.length>0||p.conditions.urls&&p.conditions.urls.length>0||p.conditions.flag){var b=(p.conditions.events||[]).map((L=>L.name)),C={urlTriggers:p.conditions.urls||[],eventTriggers:b,linkedFlag:p.conditions.flag||null,urlBlocklist:[]};this.Ua.onConfig(C),this.Wa.onConfig(C),this.$a.onConfig(C,_);var I=[this.Wa,this.Ua,this.$a];this.za=p.conditions.matchType==="any"?new m0(I):new p0(I)}else this.za=new sb}triggerStatus(c){return this.za.triggerStatus(c)}checkEventTriggerConditions(c,p,_){this.Wa.checkEventTriggerConditions(c,p,_)}checkUrlTriggerConditions(c,p,_,b){this.Ua.checkUrlTriggerConditions(c,p,_,b)}activateTrigger(c,p){var _;(_=this._instance.persistence)==null||_.register({[c==="url"?t0+this.group.id:e0+this.group.id]:p})}stop(){this.Ua.stop(),this.Wa.stop(),this.$a.stop()}}function ib(h){if(h.rrwebError)return u0;if(!h.receivedFlags)return oi;if(!h.isRecordingEnabled)return $s;if(h.urlTriggerMatching.urlBlocked)return Pc;var c=h.isSampled===!0,p=new m0([h.eventTriggerMatching,h.urlTriggerMatching,h.linkedFlagMatching]).triggerStatus(h.sessionId);return c?c0:p===Tr?Rc:p===_r?oi:h.isSampled===!1?$s:Rc}function up(h){if(h.rrwebError)return u0;if(!h.receivedFlags)return oi;if(!h.isRecordingEnabled)return $s;if(h.urlTriggerMatching.urlBlocked)return Pc;var c=new p0([h.eventTriggerMatching,h.urlTriggerMatching,h.linkedFlagMatching]).triggerStatus(h.sessionId),p=c!==Is,_=Js(h.isSampled);return p&&c===_r?oi:p&&c===Is||_&&!h.isSampled?$s:h.isSampled===!0?c0:Rc}function dp(h){var c,p;return((c=JSON.stringify(h,(p=[],function(_,b){if(Yr(b)){for(;p.length>0&&p[p.length-1]!==this;)p.pop();return p.includes(b)?"[Circular]":(p.push(b),b)}return b})))==null?void 0:c.length)||0}function Qo(h){if(Qs(h))return 4;if(Dn(h))return 0;switch(typeof h){case"string":return h.length+2;case"number":return String(h).length;case"boolean":return h?4:5;case"object":if(ri(h)){for(var c=2,p=0;h.length>p;p++){p>0&&(c+=1);var _=h[p];c+=Dn(_)||Qs(_)?4:Qo(_)}return c}var b=h,C=2,I=!0;for(var L in b)if({}.hasOwnProperty.call(b,L)){var q=b[L];Dn(q)||(I||(C+=1),I=!1,C+=L.length+3+Qo(q))}return C;default:return 0}}var Qr=Uint8Array,$r=Uint16Array,ji=Uint32Array,f0=new Qr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),_0=new Qr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),hp=new Qr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mp=function(h,c){for(var p=new $r(31),_=0;31>_;++_)p[_]=c+=1<_;++_)for(var C=p[_];p[_+1]>C;++C)b[C]=C-p[_]<<5|_;return[p,b]},pp=mp(f0,2),g0=pp[1];pp[0][28]=258,g0[258]=28;for(var fp=mp(_0,0)[1],_p=new $r(32768),hn=0;32768>hn;++hn){var Zi=(43690&hn)>>>1|(21845&hn)<<1;_p[hn]=((65280&(Zi=(61680&(Zi=(52428&Zi)>>>2|(13107&Zi)<<2))>>>4|(3855&Zi)<<4))>>>8|(255&Zi)<<8)>>>1}var Jo=function(h,c,p){for(var _=h.length,b=0,C=new $r(c);_>b;++b)++C[h[b]-1];var I,L=new $r(c);for(b=0;c>b;++b)L[b]=L[b-1]+C[b-1]<<1;for(I=new $r(_),b=0;_>b;++b)I[b]=_p[L[h[b]-1]++]>>>15-h[b];return I},li=new Qr(288);for(hn=0;144>hn;++hn)li[hn]=8;for(hn=144;256>hn;++hn)li[hn]=9;for(hn=256;280>hn;++hn)li[hn]=7;for(hn=280;288>hn;++hn)li[hn]=8;var Mc=new Qr(32);for(hn=0;32>hn;++hn)Mc[hn]=5;var ob=Jo(li,9),lb=Jo(Mc,5),gp=function(h){return(h/8>>0)+(7&h&&1)},vp=function(h,c,p){(p==null||p>h.length)&&(p=h.length);var _=new(h instanceof $r?$r:h instanceof ji?ji:Qr)(p-c);return _.set(h.subarray(c,p)),_},Xs=function(h,c,p){var _=c/8>>0;h[_]|=p<<=7&c,h[_+1]|=p>>>8},Xo=function(h,c,p){var _=c/8>>0;h[_]|=p<<=7&c,h[_+1]|=p>>>8,h[_+2]|=p>>>16},v0=function(h,c){for(var p=[],_=0;h.length>_;++_)h[_]&&p.push({s:_,f:h[_]});var b=p.length,C=p.slice();if(!b)return[new Qr(0),0];if(b==1){var I=new Qr(p[0].s+1);return I[p[0].s]=1,[I,1]}p.sort((function(ke,Se){return ke.f-Se.f})),p.push({s:-1,f:25001});var L=p[0],q=p[1],H=0,K=1,ie=2;for(p[0]={s:-1,f:L.f+q.f,l:L,r:q};K!=b-1;)L=p[p[ie].f>p[H].f?H++:ie++],q=p[H!=K&&p[ie].f>p[H].f?H++:ie++],p[K++]={s:-1,f:L.f+q.f,l:L,r:q};var pe=C[0].s;for(_=1;b>_;++_)C[_].s>pe&&(pe=C[_].s);var oe=new $r(pe+1),$e=y0(p[K-1],oe,0);if($e>c){_=0;var Ce=0,Fe=$e-c,ze=1<_;++_){var be=C[_].s;if(c>=oe[be])break;Ce+=ze-(1<<$e-oe[be]),oe[be]=c}for(Ce>>>=Fe;Ce>0;){var Ze=C[_].s;c>oe[Ze]?Ce-=1<=0&&Ce;--_){var Ie=C[_].s;oe[Ie]==c&&(--oe[Ie],++Ce)}$e=c}return[new Qr(oe),$e]},y0=function(h,c,p){return h.s==-1?Math.max(y0(h.l,c,p+1),y0(h.r,c,p+1)):c[h.s]=p},yp=function(h){for(var c=h.length;c&&!h[--c];);for(var p=new $r(++c),_=0,b=h[0],C=1,I=function(q){p[_++]=q},L=1;c>=L;++L)if(h[L]==b&&L!=c)++C;else{if(!b&&C>2){for(;C>138;C-=138)I(32754);C>2&&(I(C>10?C-11<<5|28690:C-3<<5|12305),C=0)}else if(C>3){for(I(b),--C;C>6;C-=6)I(8304);C>2&&(I(C-3<<5|8208),C=0)}for(;C--;)I(b);C=1,b=h[L]}return[p.subarray(0,_),c]},el=function(h,c){for(var p=0,_=0;c.length>_;++_)p+=h[_]*c[_];return p},b0=function(h,c,p){var _=p.length,b=gp(c+2);h[b]=255&_,h[b+1]=_>>>8,h[b+2]=255^h[b],h[b+3]=255^h[b+1];for(var C=0;_>C;++C)h[b+C+4]=p[C];return 8*(b+4+_)},bp=function(h,c,p,_,b,C,I,L,q,H,K){Xs(c,K++,p),++b[256];for(var ie=v0(b,15),pe=ie[0],oe=ie[1],$e=v0(C,15),Ce=$e[0],Fe=$e[1],ze=yp(pe),be=ze[0],Ze=ze[1],Ie=yp(Ce),ke=Ie[0],Se=Ie[1],xe=new $r(19),Re=0;be.length>Re;++Re)xe[31&be[Re]]++;for(Re=0;ke.length>Re;++Re)xe[31&ke[Re]]++;for(var _e=v0(xe,7),Ne=_e[0],Xe=_e[1],We=19;We>4&&!Ne[hp[We-1]];--We);var ht,Me,_t,ot,et=H+5<<3,Qe=el(b,li)+el(C,Mc)+I,Ct=el(b,pe)+el(C,Ce)+I+14+3*We+el(xe,Ne)+(2*xe[16]+3*xe[17]+7*xe[18]);if(Qe>=et&&Ct>=et)return b0(c,K,h.subarray(q,q+H));if(Xs(c,K,1+(Qe>Ct)),K+=2,Qe>Ct){ht=Jo(pe,oe),Me=pe,_t=Jo(Ce,Fe),ot=Ce;var lt=Jo(Ne,Xe);for(Xs(c,K,Ze-257),Xs(c,K+5,Se-1),Xs(c,K+10,We-4),K+=14,Re=0;We>Re;++Re)Xs(c,K+3*Re,Ne[hp[Re]]);K+=3*We;for(var ut=[be,ke],wt=0;2>wt;++wt){var xt=ut[wt];for(Re=0;xt.length>Re;++Re)Xs(c,K,lt[Pe=31&xt[Re]]),K+=Ne[Pe],Pe>15&&(Xs(c,K,xt[Re]>>>5&127),K+=xt[Re]>>>12)}}else ht=ob,Me=li,_t=lb,ot=Mc;for(Re=0;L>Re;++Re)if(_[Re]>255){var Pe;Xo(c,K,ht[257+(Pe=_[Re]>>>18&31)]),K+=Me[Pe+257],Pe>7&&(Xs(c,K,_[Re]>>>23&31),K+=f0[Pe]);var zt=31&_[Re];Xo(c,K,_t[zt]),K+=ot[zt],zt>3&&(Xo(c,K,_[Re]>>>5&8191),K+=_0[zt])}else Xo(c,K,ht[_[Re]]),K+=Me[_[Re]];return Xo(c,K,ht[256]),K+Me[256]},cb=new ji([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ub=(function(){for(var h=new ji(256),c=0;256>c;++c){for(var p=c,_=9;--_;)p=(1&p&&3988292384)^p>>>1;h[c]=p}return h})(),db=function(){var h=4294967295;return{p(c){for(var p=h,_=0;c.length>_;++_)p=ub[255&p^c[_]]^p>>>8;h=p},d:()=>4294967295^h}},hb=function(h,c,p,_,b){return(function(C,I,L,q,H,K){var ie=C.length,pe=new Qr(q+ie+5*(1+Math.floor(ie/7e3))+H),oe=pe.subarray(q,pe.length-H),$e=0;if(!I||8>ie)for(var Ce=0;ie>=Ce;Ce+=65535){var Fe=Ce+65535;ie>Fe?$e=b0(oe,$e,C.subarray(Ce,Fe)):(oe[Ce]=!0,$e=b0(oe,$e,C.subarray(Ce,ie)))}else{for(var ze=cb[I-1],be=ze>>>13,Ze=8191&ze,Ie=(1<Ce;++Ce){var Qe=_e(Ce),Ct=32767&Ce,lt=Se[Qe];if(ke[Ct]=lt,Se[Qe]=Ct,Ce>=ot){var ut=ie-Ce;if((ht>7e3||_t>24576)&&ut>423){$e=bp(C,oe,0,Ne,Xe,We,Me,_t,et,Ce-et,$e),_t=ht=Me=0,et=Ce;for(var wt=0;286>wt;++wt)Xe[wt]=0;for(wt=0;30>wt;++wt)We[wt]=0}var xt=2,Pe=0,zt=Ze,on=Ct-lt&32767;if(ut>2&&Qe==_e(Ce-on))for(var Vn=Math.min(be,ut)-1,Rn=Math.min(32767,Ce),ln=Math.min(258,ut);Rn>=on&&--zt&&Ct!=lt;){if(C[Ce+xt]==C[Ce+xt-on]){for(var Ln=0;ln>Ln&&C[Ce+Ln]==C[Ce+Ln-on];++Ln);if(Ln>xt){if(xt=Ln,Pe=on,Ln>Vn)break;var ea=Math.min(on,Ln-2),As=0;for(wt=0;ea>wt;++wt){var ms=Ce-on+wt+32768&32767,ci=ms-ke[ms]+32768&32767;ci>As&&(As=ci,lt=ms)}}}on+=(Ct=lt)-(lt=ke[Ct])+32768&32767}if(Pe){Ne[_t++]=268435456|g0[xt]<<18|fp[Pe];var za=31&g0[xt],Tt=31&fp[Pe];Me+=f0[za]+_0[Tt],++Xe[257+za],++We[Tt],ot=Ce+xt,++ht}else Ne[_t++]=C[Ce],++Xe[C[Ce]]}}$e=bp(C,oe,!0,Ne,Xe,We,Me,_t,et,Ce-et,$e)}return vp(pe,0,q+gp($e)+H)})(h,c.level==null?6:c.level,c.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(h.length)))):12+c.mem,p,_)},C0=function(h,c,p){for(;p;++c)h[c]=p,p>>>=8},mb=function(h,c){var p=c.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>c.level?4:c.level==9?2:0,h[9]=3,c.mtime!=0&&C0(h,4,Math.floor(new Date(c.mtime||Date.now())/1e3)),p){h[3]=8;for(var _=0;p.length>=_;++_)h[_+10]=p.charCodeAt(_)}},pb=function(h){return 10+(h.filename&&h.filename.length+1||0)};class fb{constructor(c,p){var _,b;p===void 0&&(p={}),this.ja={},this.qa=C=>{if(!this.ja[C]){var I,L;this.ja[C]=!0;var q=this.Ha(C);(I=(L=this.Ga).onBlockedNode)==null||I.call(L,C,q)}},this.Va=C=>{var I=this.Ha(C);if((I==null?void 0:I.nodeName)!=="svg"&&I instanceof Element){var L=I.closest("svg");if(L)return[this._rrweb.mirror.getId(L),L]}return[C,I]},this.Ha=C=>this._rrweb.mirror.getNode(C),this.Za=C=>{var I,L,q,H,K,ie,pe,oe;return((I=(L=C.removes)==null?void 0:L.length)!==null&&I!==void 0?I:0)+((q=(H=C.attributes)==null?void 0:H.length)!==null&&q!==void 0?q:0)+((K=(ie=C.texts)==null?void 0:ie.length)!==null&&K!==void 0?K:0)+((pe=(oe=C.adds)==null?void 0:oe.length)!==null&&pe!==void 0?pe:0)},this.throttleMutations=C=>{if(C.type!==3||C.data.source!==0)return C;var I=C.data,L=this.Za(I);I.attributes&&(I.attributes=I.attributes.filter((H=>{var[K]=this.Va(H.id);return!this.do.consumeRateLimit(K)&&H})));var q=this.Za(I);return q!==0||L===q?C:void 0},this._rrweb=c,this.Ga=p,this.do=new q7({bucketSize:(_=this.Ga.bucketSize)!==null&&_!==void 0?_:100,refillRate:(b=this.Ga.refillRate)!==null&&b!==void 0?b:10,refillInterval:1e3,zt:this.qa,Gt:ai})}reset(){this.ja={}}stop(){this.do.stop(),this.reset()}}var Lc="$sess_rec_flush_size";class _b{constructor(c){if(!c.persistence)throw new Error("it is not valid to not have persistence and be this far into setting up the application");this.Ja=c.get_property.bind(c),this.Xa=c.persistence.set_property.bind(c.persistence)}trackSize(c){var p=Number(this.Ja(Lc))||0;this.Xa(Lc,p+c)}reset(){return this.Xa(Lc,0)}get currentTrackedSize(){return Number(this.Ja(Lc))||0}}function Cp(h,c){return(function(p){for(var _=0,b=0;p.length>b;b++)_=(_<<5)-_+p.charCodeAt(b),_|=0;return Math.abs(_)})(h)%100c.some((p=>h.some((_=>p===_)))),is_not:(h,c)=>c.every((p=>h.every((_=>p!==_)))),regex:(h,c)=>c.some((p=>h.some((_=>wp(p,_))))),not_regex:(h,c)=>c.every((p=>h.every((_=>!wp(p,_))))),icontains:(h,c)=>c.map(xc).some((p=>h.map(xc).some((_=>p.includes(_))))),not_icontains:(h,c)=>c.map(xc).every((p=>h.map(xc).every((_=>!p.includes(_))))),gt:(h,c)=>c.some((p=>{var _=parseFloat(p);return!isNaN(_)&&h.some((b=>_>parseFloat(b)))})),lt:(h,c)=>c.some((p=>{var _=parseFloat(p);return!isNaN(_)&&h.some((b=>_h.toLowerCase(),vb=new Set(["is_not","not_icontains","not_regex"]);function kp(h,c,p){return!h||h.length===0||h.every((_=>{var b=_.type==="person"?p:c,C=b==null?void 0:b[_.key],I=_.operator||"exact";if(Dn(C)||Qs(C))return vb.has(I);var L=gb[I];return!!L&&!Dn(_.value)&&!Qs(_.value)&&L(ri(_.value)?_.value.map(String):[String(_.value)],ri(C)?C.map(String):[String(C)])}))}var tl=Yo("[SessionRecording]");class yb{constructor(c,p,_,b,C,I){this.Ya=null,this.Ka=up,this._instance=c,this.Ua=p,this.Wa=_,this.$a=b,this.Qa=C,this.tu=I}onRemoteConfig(c){this.Ya=ds(c.sampleRate)?c.sampleRate:null,c.triggerMatchType==="any"?(this.eu=new m0([this.Wa,this.Ua]),this.Ka=ib):(this.eu=new p0([this.Wa,this.Ua]),this.Ka=up),this._instance.register_for_session({[J1]:c.triggerMatchType}),this.Ua.onConfig(c),this.Wa.onConfig(c),this.$a.onConfig(c,((p,_)=>{this.Qa("linked_flag_matched",{flag:p,variant:_})}))}getStatus(c){return this.Ka({receivedFlags:!0,isRecordingEnabled:!0,isSampled:c.isSampled,rrwebError:c.rrwebError,urlTriggerMatching:c.urlTriggerMatching,eventTriggerMatching:c.eventTriggerMatching,linkedFlagMatching:c.linkedFlagMatching,sessionId:c.sessionId})}getMinimumDuration(c){var p=this._instance.get_property("$session_recording_remote_config"),_=p==null?void 0:p.minimumDurationMilliseconds;return ds(_)?_:null}checkUrlTriggers(c,p,_,b){this.Ua.checkUrlTriggerConditions(p,_,b,c)}setupEventTriggerListeners(c,p,_){if(this.Wa.Ba.length!==0&&us(this.ru))return this.ru=c((b=>{try{this.Wa.checkEventTriggerConditions(b.event,_,p)}catch(C){tl.error("Could not activate event trigger",C)}})),this.ru}makeSamplingDecisions(c){var p,_=this.Ya;if(ds(_)){var b=this._instance.get_property(ii),C=b===c||b!==!1&&null,I=typeof b=="string"&&b!==c||!Js(C),L=I?Cp(c,_):C;I&&(L?this.Qa("sampled"):tl.warn("Sample rate ("+_+") has determined that this sessionId ("+c+") will not be sent to the server.")),(p=this._instance.persistence)==null||p.register({[ii]:!!L&&c})}else{var q;(q=this._instance.persistence)==null||q.unregister(ii)}}onFlushComplete(){}clearConditionalRecordingPersistence(){var c,p,_,b;(c=this._instance.persistence)==null||c.unregister(Xd),(p=this._instance.persistence)==null||p.unregister(Jd),(_=this._instance.persistence)==null||_.unregister(ii),(b=this._instance.persistence)==null||b.unregister($c)}updateActiveTriggers(c){}hasPendingTriggers(c){var p;return((p=this.eu)==null?void 0:p.triggerStatus(c))===_r}stop(){var c;(c=this.ru)==null||c.call(this),this.ru=void 0,this.Wa.stop(),this.Ua.stop(),this.$a.stop()}}class bb{constructor(c,p,_,b){this.iu=[],this.nu=new Map,this.su=!1,this._instance=c,this.Ua=p,this.Qa=_,this.au=b}onRemoteConfig(c){c.triggerGroups&&c.triggerGroups.length!==0?(this.ou(c.triggerGroups),this._instance.register_for_session({[J1]:"v2_trigger_groups",$sdk_debug_replay_trigger_groups_count:c.triggerGroups.length}),this.Ua.onConfig(c)):tl.warn("[V2Strategy] No trigger groups configured")}getStatus(c){return(function(p){if(p.rrwebError)return u0;if(p.urlTriggerMatching.urlBlocked)return Pc;var _=p.triggerGroupMatchers,b=p.triggerGroupSamplingResults;if(_.length===0)return $s;var C=!1,I=!1;for(var L of _){var q=L.triggerStatus(p.sessionId);if(q===Tr){var H=L.group.id,K=b.get(H);Dn(K)?ai.warn("[V2 Triggers] Group activated but no sampling decision found",{groupId:H}):K===!0&&(I=!0)}else q===_r&&(C=!0)}return I?c0:C?oi:$s})({isSampled:c.isSampled,rrwebError:c.rrwebError,urlTriggerMatching:c.urlTriggerMatching,eventTriggerMatching:c.eventTriggerMatching,linkedFlagMatching:c.linkedFlagMatching,sessionId:c.sessionId,triggerGroupMatchers:this.iu,triggerGroupSamplingResults:this.nu,minimumDuration:this.getMinimumDuration(c.sessionId)})}getMinimumDuration(c){var p=null;for(var _ of this.iu)if(_.triggerStatus(c)==="trigger_activated"){var b=_.group.minDurationMs;ds(b)&&(Qs(p)||p>b)&&(p=b)}return p}checkUrlTriggers(c,p,_,b){var C=this;this.Ua.checkUrlBlocklist(p,_);var I=function(q){q.checkUrlTriggerConditions(p,_,(H=>{C.uu(q,void 0)&&(q.activateTrigger(H,c),C.updateActiveTriggers(c))}),c)};for(var L of this.iu)I(L)}setupEventTriggerListeners(c,p,_){var b=this;return this.ru=c((C=>{var I;if(this.su)return tl.info("[SessionRecorder] Stopping trigger checks - initial buffer flushed"),(I=this.ru)==null||I.call(this),void(this.ru=void 0);try{var L=function(H){H.checkEventTriggerConditions(C.event,(K=>{if(b.uu(H,C.properties)){var ie=(H.group.conditions.events||[]).filter((oe=>oe.name===C.event)),pe=b._instance.get_property(Q1);ie.some((oe=>!oe.properties||oe.properties.length===0||kp(oe.properties,C.properties,pe)))&&(H.activateTrigger(K,p),b.updateActiveTriggers(p))}}),p)};for(var q of this.iu)L(q)}catch(H){tl.error("Could not activate event trigger for trigger groups",H)}})),this.ru}makeSamplingDecisions(c){for(var p of this.iu){var _,b=p.group,C=b.id,I=b.sampleRate,L=Y1+C,q=this._instance.get_property(L),H=q===c||q!==!1&&null,K=typeof q=="string"&&q!==c||!Js(H),ie=K?Cp(c+C,I):H;K&&this.au("triggerGroupSamplingDecisionMade",{group_id:C,group_name:b.name,sampleRate:I,isSampled:ie}),this.nu.set(C,ie),(_=this._instance.persistence)==null||_.register({[L]:!!ie&&c})}this.updateActiveTriggers(c)}onFlushComplete(){this.su=!0}clearConditionalRecordingPersistence(){var c,p;for(var _ of((c=this._instance.persistence)==null||c.unregister(ii),(p=this._instance.persistence)==null||p.unregister($c),this.iu)){var b,C,I,L=_.group.id;(b=this._instance.persistence)==null||b.unregister(e0+L),(C=this._instance.persistence)==null||C.unregister(t0+L),(I=this._instance.persistence)==null||I.unregister(Y1+L)}}updateActiveTriggers(c){var p=[];for(var _ of this.iu){var b=_.group,C=b.id,I=_.triggerStatus(c)==="trigger_activated",L=this.nu.get(C)===!0;I&&p.push({id:C,name:b.name,matched:!0,sampled:L})}this._instance.register_for_session({$sdk_debug_replay_matched_recording_trigger_groups:p})}hasPendingTriggers(c){for(var p of this.iu)if(p.triggerStatus(c)===_r)return!0;return!1}stop(){var c;(c=this.ru)==null||c.call(this),this.ru=void 0,this.iu.forEach((p=>p.stop())),this.iu=[],this.nu.clear(),this.Ua.stop()}uu(c,p){var _=c.group.conditions.properties;return!_||_.length===0||kp(_,p,this._instance.get_property(Q1))}ou(c){var p=this;this.iu.forEach((C=>C.stop())),this.iu=[],this.nu.clear();var _=function(C){var I=new ab(p._instance,C,((L,q)=>{p.Qa("linked_flag_matched",{flag:L,variant:q,group_id:C.id,group_name:C.name})}));p.iu.push(I)};for(var b of c)_(b)}}function Sp(h){return Yr(h)?h.network_timing:h}var w0,k0="[SessionRecording]",or=Yo(k0),Cb=[1,2,3,4,5,6,7,12],Ep=h=>({rrwebMethod:h,enqueuedAt:Date.now(),attempt:1});function S0(){var h;return Ts==null||(h=Ts.__PosthogExtensions__)==null?void 0:h.rrweb}function E0(){var h;return(h=S0())==null?void 0:h.record}function nl(h){return(function(c,p){for(var _="",b=0;c.length>b;){var C=c[b++];_+=String.fromCharCode(C)}return _})((function(c,p){p===void 0&&(p={});var _=db(),b=c.length;_.p(c);var C=hb(c,p,pb(p),8),I=C.length;return mb(C,p),C0(C,I-8,_.d()),C0(C,I-4,b),C})((function(c,p){var _=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var b=new Qr(c.length+(c.length>>>1)),C=0,I=function(K){b[C++]=K},L=0;_>L;++L){if(C+5>b.length){var q=new Qr(C+8+(_-L<<1));q.set(b),b=q}var H=c.charCodeAt(L);128>H?I(H):2048>H?(I(192|H>>>6),I(128|63&H)):H>55295&&57344>H?(I(240|(H=65536+(1047552&H)|1023&c.charCodeAt(++L))>>>18),I(128|H>>>12&63),I(128|H>>>6&63),I(128|63&H)):(I(224|H>>>12),I(128|H>>>6&63),I(128|63&H))}return vp(b,0,C)})(JSON.stringify(h))))}function Oc(h){return ri(h)&&h.length===0?w0=w0!=null?w0:nl([]):nl(h)}function T0(h,c){return h.type===hs.Custom&&h.data.tag===c}function Tp(h){return T0(h,"sessionIdle")}function $p(h){return T0(h,"$session_ending")}function Ip(h){return T0(h,"$session_starting")}function $0(h,c){if(c===void 0&&(c=66060288e-1),h.size>=c&&h.data.length>1){var p=Math.floor(h.data.length/2),_=h.sizes.slice(0,p),b=h.sizes.slice(p);return[$0({size:_.reduce(((C,I)=>C+I),0),data:h.data.slice(0,p),sizes:_,sessionId:h.sessionId,windowId:h.windowId}),$0({size:b.reduce(((C,I)=>C+I),0),data:h.data.slice(p),sizes:b,sessionId:h.sessionId,windowId:h.windowId})].flatMap((C=>C))}return[h]}class wb{get sessionId(){return this.di}get lu(){if(!this._instance.sessionManager)throw new Error(k0+" must be started with a valid sessionManager.");return this._instance.sessionManager}get hu(){return this._instance.config.session_recording.session_idle_threshold_ms||3e5}get du(){var c=this._instance.get_property(ii);return c===!0?null:c!==!1&&(Wi(c)?c===this.sessionId:null)}get Ya(){var c,p=(c=this.ea)==null?void 0:c.sampleRate;return ds(p)?p:null}get cu(){var c,p;return(c=(p=this.fu)==null?void 0:p.getMinimumDuration(this.sessionId))!==null&&c!==void 0?c:null}constructor(c){this.vu="/s/",this._forceAllowLocalhostNetworkCapture=!1,this.pu=void 0,this.mu=Date.now(),this.gu=!1,this.yu=[],this.bu="unknown",this.wu=!1,this.ku=!1,this.Su=[],this.Iu=void 0,this.ru=void 0,this._u=void 0,this.Cu=void 0,this.Mu=void 0,this.Tu=void 0,this.ti=(b,C,I)=>{var L,q;if(I&&(b!==this.di||C!==this.ci)){var H,K,ie=!I.noSessionId&&(I.activityTimeout||I.sessionPastMaximumLength),pe=this.di,oe=this.ci;ie&&this.au("$session_ending",{currentSessionId:pe,currentWindowId:oe,nextSessionId:b,nextWindowId:C,changeReason:I,lastActivityTimestamp:this.mu,flushed_size:(H=this.xu)==null?void 0:H.currentTrackedSize}),this.xu&&this.xu.reset(),(L=this._instance.persistence)==null||L.unregister(n0),this.ku=!1,(q=S0())==null||q.resetMaxDepthState==null||q.resetMaxDepthState(),this.au("$session_id_change",{sessionId:b,windowId:C,changeReason:I}),this.Ru(),this.bu===!0&&(this.bu="unknown",this.stop(),this.start("session_id_changed")),ie&&this.au("$session_starting",{previousSessionId:pe,previousWindowId:oe,nextSessionId:b,nextWindowId:C,changeReason:I,lastActivityTimestamp:this.mu}),ds(this.Ya)&&us(this.Mu)&&((K=this.fu)==null||K.makeSamplingDecisions(b))}},this.Ou=()=>{var b;return((b=this._instance.persistence)==null?void 0:b.props[$c])===this.di},this.Au=()=>{var b,C;if(this.M.data.length===0)return null;var I=(b=this.M.data[0])==null?void 0:b.timestamp,L=(C=this.M.data[this.M.data.length-1])==null?void 0:C.timestamp;return ds(I)&&ds(L)?L-I:null},this.Lu=()=>{var b,C,I=this.cu;if(!ds(I))return!1;if((b=(C=this._instance.config.session_recording)==null?void 0:C.strictMinimumDuration)===null||b===void 0||!b){var L=this.Fu;return ds(L)&&L>=0&&I>L}if(this.Ou())return!1;var q,H=this.Au();return!!Qs(H)||I>H||((q=this._instance.persistence)==null||q.register({[$c]:this.di}),!1)},this.Nu=()=>{this.status!==oi?this.Eu():this.Du()},this.Bu=()=>{this.au("browser offline",{})},this.Pu=()=>{this.au("browser online",{})},this.At=()=>{Zo!=null&&Zo.visibilityState&&this.au("window "+Zo.visibilityState,{})},this._instance=c;var{sessionId:p,windowId:_}=this.lu.checkAndGetSessionAndWindowId();this.di=p,this.ci=_,this.$a=new lp(this._instance),this.Ua=new op(this._instance),this.Wa=new cp(this._instance),this.M=this.Du(),this.lu.sessionTimeoutMs>this.hu||or.warn("session_idle_threshold_ms ("+this.hu+") is greater than the session timeout ("+this.lu.sessionTimeoutMs+"). Session will never be detected as idle"),this.xu=new _b(this._instance)}get Uu(){var c,p,_,b,C,I,L,q=(c=this.ea)==null?void 0:c.masking,H={maskAllInputs:(p=this._instance.config.session_recording)==null?void 0:p.maskAllInputs,maskTextSelector:(_=this._instance.config.session_recording)==null?void 0:_.maskTextSelector,blockSelector:(b=this._instance.config.session_recording)==null?void 0:b.blockSelector},K=(C=H==null?void 0:H.maskAllInputs)!==null&&C!==void 0?C:q==null?void 0:q.maskAllInputs,ie=(I=H==null?void 0:H.maskTextSelector)!==null&&I!==void 0?I:q==null?void 0:q.maskTextSelector,pe=(L=H==null?void 0:H.blockSelector)!==null&&L!==void 0?L:q==null?void 0:q.blockSelector;return Dn(K)&&Dn(ie)&&Dn(pe)?void 0:{maskAllInputs:K==null||K,maskTextSelector:ie,blockSelector:pe}}get Wu(){var c,p,_,b,C,I,L,q=this._instance.config.session_recording.captureCanvas,H=(c=this.ea)==null?void 0:c.canvasRecording,K=(p=(_=q==null?void 0:q.recordCanvas)!==null&&_!==void 0?_:H==null?void 0:H.enabled)!==null&&p!==void 0&&p,ie=(b=(C=q==null?void 0:q.canvasFps)!==null&&C!==void 0?C:H==null?void 0:H.fps)!==null&&b!==void 0?b:4,pe=(I=(L=q==null?void 0:q.canvasQuality)!==null&&L!==void 0?L:H==null?void 0:H.quality)!==null&&I!==void 0?I:.4;if(typeof pe=="string"){var oe=parseFloat(pe);pe=isNaN(oe)?.4:oe}return{enabled:K,fps:si(ie,0,12,Yo("canvas recording fps"),4),quality:si(pe,0,1,Yo("canvas recording quality"),.4)}}get $u(){var c,p=!((c=this.ea)==null||!c.consoleLogRecordingEnabled),_=this._instance.config.enable_recording_console_log;return _!=null?_:p}get zu(){var c,p,_,b=(c=this.ea)==null?void 0:c.networkPayloadCapture,C={recordHeaders:(p=this._instance.config.session_recording)==null?void 0:p.recordHeaders,recordBody:(_=this._instance.config.session_recording)==null?void 0:_.recordBody},I=(C==null?void 0:C.recordHeaders)||(b==null?void 0:b.recordHeaders),L=(C==null?void 0:C.recordBody)||(b==null?void 0:b.recordBody),q=Sp(this._instance.config.capture_performance),H=Sp(b==null?void 0:b.capturePerformance),K=!!(Js(q)?q:H);return I||L||K?{recordHeaders:I,recordBody:L,recordPerformance:K}:void 0}ju(){var c,p,_=[],b=(c=Ts.__PosthogExtensions__)==null||(c=c.rrwebPlugins)==null?void 0:c.getRecordConsolePlugin;b&&this.$u&&_.push(b());var C,I,L,q,H,K,ie,pe,oe,$e,Ce,Fe=(p=Ts.__PosthogExtensions__)==null||(p=p.rrwebPlugins)==null?void 0:p.getRecordNetworkPlugin;return this.zu&&Ko(Fe)&&(!Z7.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?_.push(Fe((H={payloadSizeLimitBytes:Gi.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...Gi.performanceEntryTypeToObserve],payloadHostDenyList:[...(I=this.zu).payloadHostDenyList||[],...Gi.payloadHostDenyList]},K=(C=this._instance.config).session_recording.recordHeaders!==!1&&I.recordHeaders,ie=C.session_recording.recordBody!==!1&&I.recordBody,pe=C.capture_performance!==!1&&I.recordPerformance,q=Math.min(1e6,(L=H.payloadSizeLimitBytes)!==null&&L!==void 0?L:1e6),oe=ze=>(ze!=null&&ze.requestBody&&(ze.requestBody=X1(ze.requestBody,ze.requestHeaders,q,"Request")),ze!=null&&ze.responseBody&&(ze.responseBody=X1(ze.responseBody,ze.responseHeaders,q,"Response")),ze),$e=ze=>{return oe(((Ie,ke)=>{var Se,xe=H1(Ie.name),Re=ke.indexOf("http")===0?(Se=H1(ke))==null?void 0:Se.pathname:ke;Re==="/"&&(Re="");var _e=xe==null?void 0:xe.pathname.replace(Re||"","");if(!(xe&&_e&&eb.some((Ne=>_e.indexOf(Ne)===0))))return Ie})((us(Ze=(be=ze).requestHeaders)||Yd(Object.keys(Ze!=null?Ze:{}),(Ie=>{J7.includes(Ie.toLowerCase())&&(Ze[Ie]=s0)})),be),C.api_host));var be,Ze},(Ce=Ko(C.session_recording.maskNetworkRequestFn))&&Ko(C.session_recording.maskCapturedNetworkRequestFn)&&ai.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),Ce&&(C.session_recording.maskCapturedNetworkRequestFn=ze=>{var be=C.session_recording.maskNetworkRequestFn({url:ze.name});return e({},ze,{name:be==null?void 0:be.url})}),H.maskRequestFn=Ko(C.session_recording.maskCapturedNetworkRequestFn)?ze=>{var be,Ze=$e(ze);return Ze&&(be=C.session_recording.maskCapturedNetworkRequestFn==null?void 0:C.session_recording.maskCapturedNetworkRequestFn(Ze))!==null&&be!==void 0?be:void 0}:ze=>(function(be){if(!Dn(be))return be.requestBody=ep(be.requestBody,"Request"),be.responseBody=ep(be.responseBody,"Response"),be})($e(ze)),e({},Gi,H,{recordHeaders:K,recordBody:ie,recordPerformance:pe,recordInitialRequests:pe})))):or.info("NetworkCapture not started because we are on localhost.")),_}qu(c){var p=this._instance.config.session_recording;if(p.maskCapturedNetworkRequestFn){var _,b=p.maskCapturedNetworkRequestFn({name:c});return(_=b==null?void 0:b.name)!==null&&_!==void 0?_:b==null?void 0:b.url}if(p.maskNetworkRequestFn){var C=p.maskNetworkRequestFn({url:c});return C==null?void 0:C.url}return c}Hu(c){try{return c.rrwebMethod(),!0}catch(p){return 10>this.yu.length?this.yu.push({enqueuedAt:c.enqueuedAt||Date.now(),attempt:c.attempt+1,rrwebMethod:c.rrwebMethod}):or.warn("could not emit queued rrweb event.",p,c),!1}}au(c,p){return this.Hu(Ep((()=>E0().addCustomEvent(c,p))))}Gu(){try{if(this._instance.config.capture_pageview||!en)return;var c=new URL(en.location.href),p=this.qu(c.origin+c.pathname+c.search);this.Vu!==p&&(this.Vu=p,this.au("$url_changed",{href:p}))}catch(_){}}Zu(){if(this.yu.length){var c=[...this.yu];this.yu=[],c.forEach((p=>{Date.now()-p.enqueuedAt>2e3||this.Hu(p)}))}}tu(){return this.Hu(Ep((()=>E0().takeFullSnapshot())))}get Ju(){var c,p,_;return(c=this.fu)!=null&&c.hasPendingTriggers(this.sessionId)&&!["sampled","active"].includes(this.status)?6e4:(p=(_=this._instance.config.session_recording)==null?void 0:_.full_snapshot_interval_millis)!==null&&p!==void 0?p:3e5}Xu(){if(this.Yu&&clearInterval(this.Yu),this.bu!==!0){var c=this.Ju;c&&(this.Yu=setInterval((()=>{this.tu()}),c))}}Ku(){this.Ua.urlBlocked||(this.Ua.urlBlocked=!0,clearInterval(this.Yu),or.info("recording paused due to URL blocker"),this.au("recording paused",{reason:"url blocker"}))}Qu(){this.Ua.urlBlocked&&(this.Ua.urlBlocked=!1,this.tu(),this.Xu(),this.au("recording resumed",{reason:"left blocked url"}),or.info("recording resumed"))}th(c,p){var _;if(!this.gu&&(_=this.fu)!=null&&_.hasPendingTriggers(this.sessionId)){this.gu=!0;try{var b,C;(b=this._instance.persistence)==null||b.register({[c==="url"?Jd:Xd]:this.sessionId}),(C=this.fu)==null||C.updateActiveTriggers(this.sessionId),this.Eu(),this.Qa(c+"_trigger_matched",{[c==="url"?"matchedUrl":"matchedEvent"]:p})}finally{this.gu=!1}}}get isStarted(){return!!this.pu}get ea(){var c=this._instance.get_property(W1);if(c){var p;try{p=Yr(c)?c:JSON.parse(c)}catch(I){return void or.warn("persisted remote config for session recording is invalid and will be ignored",I)}if(!this.isStarted){var _,b,C=(_=p.cache_timestamp)!==null&&_!==void 0?_:Date.now();if(Date.now()-C>36e5)return or.info("persisted remote config for session recording is stale and will be ignored",{cacheTimestamp:C,persistedConfig:c}),void((b=this._instance.persistence)==null||b.unregister(W1))}return p}}eh(c,p,_){this._instance.get_property(c)&&(p(),_())}start(c){var p,_,b=this.ea;if(b){var{sessionId:C,windowId:I}=this.lu.checkAndGetSessionAndWindowId();this.di=C,this.ci=I,(p=this._instance.persistence)==null||p.unregister(n0),b!=null&&b.endpoint&&(this.vu=b==null?void 0:b.endpoint),this.fu=(b==null?void 0:b.version)===2&&(b!=null&&b.triggerGroups)&&b.triggerGroups.length>0?new bb(this._instance,this.Ua,this.Qa.bind(this),this.au.bind(this)):new yb(this._instance,this.Ua,this.Wa,this.$a,this.Qa.bind(this),this.tu.bind(this)),this.fu.onRemoteConfig(b),(_=this.ru)==null||_.call(this),this.ru=this.fu.setupEventTriggerListeners(this._instance.on.bind(this._instance,"eventCaptured"),this.sessionId,((L,q)=>this.th(L,q))),this.eh(G1,(()=>{this.overrideSampling()}),(()=>{var L;return(L=this._instance.persistence)==null?void 0:L.unregister(G1)})),this.eh(j1,(()=>{this.overrideLinkedFlag()}),(()=>{var L;return(L=this._instance.persistence)==null?void 0:L.unregister(j1)})),this.eh(K1,(()=>{this.overrideTrigger("event")}),(()=>{var L;return(L=this._instance.persistence)==null?void 0:L.unregister(K1)})),this.eh(Z1,(()=>{this.overrideTrigger("url")}),(()=>{var L;return(L=this._instance.persistence)==null?void 0:L.unregister(Z1)})),this.fu.makeSamplingDecisions(this.sessionId),this.rh(),this.wu||(Tc(en,"beforeunload",this.Nu),Tc(en,"offline",this.Bu),Tc(en,"online",this.Pu),Tc(en,"visibilitychange",this.At),this._u||(this._u=this.lu.onSessionId(this.ti)),this.Cu||(this.Cu=this.lu.on("forcedIdleReset",(()=>{this.Ru(),this.bu="unknown",this.stop(),this.Tu=this.lu.onSessionId(((L,q,H)=>{var K;(K=this.Tu)==null||K.call(this),this.Tu=void 0,this.ti(L,q,H)}))}))),us(this.Iu)&&(this.Iu=this._instance.on("eventCaptured",(L=>{try{if(L.event==="$pageview"){var q=L!=null&&L.properties.$current_url?this.qu(L==null?void 0:L.properties.$current_url):"";if(!q)return;this.au("$pageview",{href:q})}}catch(H){or.error("Could not add $pageview to rrweb session",H)}}))),this.status===Rc&&this.Qa(c||"recording_initialized"))}else or.info("remote config must be stored in persistence before recording can start")}ih(){var c,p,_,b,C,I,L,q,H;en==null||en.removeEventListener("beforeunload",this.Nu),en==null||en.removeEventListener("offline",this.Bu),en==null||en.removeEventListener("online",this.Pu),en==null||en.removeEventListener("visibilitychange",this.At),clearInterval(this.Yu),this.nh(),(c=this.Iu)==null||c.call(this),this.Iu=void 0,(p=this.ru)==null||p.call(this),this.ru=void 0,(_=this._u)==null||_.call(this),this._u=void 0,(b=this.Cu)==null||b.call(this),this.Cu=void 0,(C=this.Mu)==null||C.call(this),this.Mu=void 0,(I=this.Tu)==null||I.call(this),this.Tu=void 0,(L=this.fu)==null||L.stop(),(q=this.sh)==null||q.stop(),this.yu=[],(H=this.pu)==null||H.call(this),this.pu=void 0}stop(){this.Eu(),this.Du(),this.ih(),or.info("stopped")}discard(){this.Du(),this.ih(),or.info("discarded")}onRRwebEmit(c){var p,_,b,C,I,L,q,H;if(this._instance.sessionManager&&(this.Zu(),c&&Yr(c))){if(c.type===hs.Meta){var K=this.qu(c.data.href);if(this.Vu=K,!K)return;c.data.href=K}else this.Gu();if((p=this.fu)==null||p.checkUrlTriggers(this.sessionId,(()=>this.Ku()),(()=>this.Qu()),((_e,Ne)=>this.th(_e,Ne))),!this.Ua.urlBlocked||(ie=c).type===hs.Custom&&ie.data.tag==="recording paused"){var ie,pe,oe;c.type===hs.FullSnapshot&&(this.Xu(),(pe=this.sh)==null||pe.reset(),(oe=this._instance.persistence)==null||oe.register_once({[n0]:c.timestamp},void 0)),c.type===hs.FullSnapshot&&(_=this.fu)!=null&&_.hasPendingTriggers(this.sessionId)&&this.ah();var $e=this.sh?this.sh.throttleMutations(c):c;if($e){var Ce=(function(_e){var Ne=_e;if(Ne&&Yr(Ne)&&Ne.type===6&&Yr(Ne.data)&&Ne.data.plugin==="rrweb/console@1"){Ne.data.payload.payload.length>10&&(Ne.data.payload.payload=Ne.data.payload.payload.slice(0,10),Ne.data.payload.payload.push("...[truncated]"));for(var Xe=[],We=0;Ne.data.payload.payload.length>We;We++)Xe.push(Ne.data.payload.payload[We]&&Ne.data.payload.payload[We].length>2e3?Ne.data.payload.payload[We].slice(0,2e3)+"...[truncated]":Ne.data.payload.payload[We]);return Ne.data.payload.payload=Xe,_e}return _e})($e),Fe=(function(_e){return $p(_e)?_e.data.payload:null})(Ce),ze=(function(_e){return Ip(_e)?_e.data.payload:null})(Ce);if(Fe||ze){var be=Fe!=null?Fe:ze;be!=null&&be.lastActivityTimestamp&&(Ce.timestamp=be.lastActivityTimestamp)}else this.oh(Ce);c.type===hs.FullSnapshot&&(this.Su.push([this.di,c.timestamp]),this.Su.length>6&&(this.Su=this.Su.slice(-6)));var Ze=(b=(C=Fe==null?void 0:Fe.currentSessionId)!==null&&C!==void 0?C:ze==null?void 0:ze.nextSessionId)!==null&&b!==void 0?b:this.di,Ie=(I=(L=Fe==null?void 0:Fe.currentWindowId)!==null&&L!==void 0?L:ze==null?void 0:ze.nextWindowId)!==null&&I!==void 0?I:this.ci;if(this.bu!==!0||(function(_e){return Tp(_e)||$p(_e)||Ip(_e)})(Ce)){if(Tp(Ce)){var ke=Ce.data.payload;ke&&(Ce.timestamp=ke.lastActivityTimestamp+ke.threshold)}var{event:Se,size:xe}=(q=this._instance.config.session_recording.compress_events)===null||q===void 0||q?(function(_e){try{if(_e.type===hs.FullSnapshot){var Ne=e({},_e,{data:nl(_e.data),cv:"2024-10"});return{event:Ne,size:Qo(Ne)}}if(_e.type===hs.IncrementalSnapshot&&_e.data.source===0){var Xe=e({},_e,{cv:"2024-10",data:e({},_e.data,{texts:Oc(_e.data.texts),attributes:Oc(_e.data.attributes),removes:Oc(_e.data.removes),adds:Oc(_e.data.adds)})});return{event:Xe,size:Qo(Xe)}}if(_e.type===hs.IncrementalSnapshot&&_e.data.source===8){var We=e({},_e,{cv:"2024-10",data:e({},_e.data,{adds:_e.data.adds?nl(_e.data.adds):void 0,removes:_e.data.removes?nl(_e.data.removes):void 0})});return{event:We,size:Qo(We)}}}catch(ht){or.error("could not compress event - will use uncompressed event",ht)}return{event:_e,size:dp(_e)}})(Ce):{event:Ce,size:dp(Ce)},Re={$snapshot_bytes:xe,$snapshot_data:Se,$session_id:Ze,$window_id:Ie};Ce.type===hs.FullSnapshot&&(H=S0())!=null&&H.wasMaxDepthReached!=null&&H.wasMaxDepthReached()&&(this.ku=!0),this.status!==$s?this.uh(Re):this.Du()}}}}}get status(){return this.fu?this.fu.getStatus({instance:this._instance,sessionId:this.sessionId,isSampled:this.du,rrwebError:this.wu,urlTriggerMatching:this.Ua,eventTriggerMatching:this.Wa,linkedFlagMatching:this.$a,remoteConfig:this.ea}):$s}log(c,p){var _;p===void 0&&(p="log"),(_=this._instance.sessionRecording)==null||_.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:p,trace:[],payload:[JSON.stringify(c)]}},timestamp:Date.now()})}overrideLinkedFlag(){this.$a.linkedFlagSeen=!0,this.tu(),this.Qa("linked_flag_overridden")}overrideSampling(){var c;(c=this._instance.persistence)==null||c.register({[ii]:this.sessionId}),this.tu(),this.Qa("sampling_overridden")}overrideTrigger(c){this.th(c)}nh(){this.lh&&(clearTimeout(this.lh),this.lh=void 0)}Eu(){this.nh();var c,p=this.Lu();return this.status===oi||this.status===Pc||this.status===$s||p?(this.lh=setTimeout((()=>{this.Eu()}),2e3),this.M):(this.M.data.length>0&&($0(this.M).forEach((_=>{var b;(b=this.xu)==null||b.trackSize(_.size),this.hh({$snapshot_bytes:_.size,$snapshot_data:_.data,$session_id:_.sessionId,$window_id:_.windowId,$lib:j7,$lib_version:G7})})),(c=this.fu)==null||c.onFlushComplete()),this.Du())}uh(c){var p,_=2+(((p=this.M)==null?void 0:p.data.length)||0),b=c.$session_id;this.bu||943718.4>=this.M.size+c.$snapshot_bytes+_&&this.M.sessionId===b||(this.M=this.Eu(),this.M.sessionId=b,this.M.windowId=c.$window_id),this.M.size+=c.$snapshot_bytes,this.M.data.push(c.$snapshot_data),this.M.sizes.push(c.$snapshot_bytes),this.lh||this.bu||(this.lh=setTimeout((()=>{this.Eu()}),2e3))}hh(c){this._instance.capture("$snapshot",c,{_url:this._instance.requestRouter.endpointFor("api",this.vu),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}get Fu(){var c,p,_=(c=this.M)==null?void 0:c.data[((p=this.M)==null?void 0:p.data.length)-1],{sessionStartTimestamp:b}=this.lu.checkAndGetSessionAndWindowId(!0);return _?_.timestamp-b:null}ah(){if(!this.M||this.M.data.length===0)return this.Du();for(var c=-1,p=this.M.data.length-1;p>=0;p--)if(this.M.data[p].type===hs.Meta){c=p;break}return 0>c?this.Du():(this.M.data=this.M.data.slice(c),this.M.sizes=this.M.sizes.slice(c),this.M.size=this.M.sizes.reduce(((_,b)=>_+b),0),this.M)}Du(){return this.M={size:0,data:[],sizes:[],sessionId:this.di,windowId:this.ci},this.M}Qa(c,p){this._instance.register_for_session({$session_recording_start_reason:c}),or.info(c.replace("_"," "),p),c!=="session_id_changed"&&this.au("$recording_started",e({reason:c},p))}dh(c){var p;return c.type===3&&Cb.indexOf((p=c.data)==null?void 0:p.source)!==-1}oh(c){var p=this.dh(c);p||this.bu||c.timestamp-this.mu>this.hu&&(this.bu=!0,clearInterval(this.Yu),this.au("sessionIdle",{eventTimestamp:c.timestamp,lastActivityTimestamp:this.mu,threshold:this.hu,bufferLength:this.M.data.length,bufferSize:this.M.size}),this.Eu());var _=!1;if(p&&(this.mu=c.timestamp,this.bu)){var b=this.bu==="unknown";this.bu=!1,b||(this.au("sessionNoLongerIdle",{reason:"user activity",type:c.type}),_=!0)}if(!this.bu){var{windowId:C,sessionId:I}=this.lu.checkAndGetSessionAndWindowId(!p,c.timestamp),L=this.di!==I,q=this.ci!==C;this.ci=C,this.di=I,L||q?(this.stop(),this.start("session_id_changed")):_&&this.Xu()}}Ru(){var c;(c=this.fu)==null||c.clearConditionalRecordingPersistence()}get sdkDebugProperties(){var c,{sessionStartTimestamp:p}=this.lu.checkAndGetSessionAndWindowId(!0);return{$recording_status:this.status,$sdk_debug_replay_internal_buffer_length:this.M.data.length,$sdk_debug_replay_internal_buffer_size:this.M.size,$sdk_debug_current_session_duration:this.Fu,$sdk_debug_session_start:p,$sdk_debug_replay_flushed_size:(c=this.xu)==null?void 0:c.currentTrackedSize,$sdk_debug_replay_full_snapshots:this.Su,$snapshot_max_depth_exceeded:this.ku,$sdk_debug_replay_rrweb_error:this.wu}}rh(){var c;if(!this.pu){var p,_,b,C={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},I=this._instance.config.session_recording;for(var[L,q]of Object.entries(I||{}))L in C&&(L==="maskInputOptions"?C.maskInputOptions=e({password:!0},q):C[L]=q);this.Wu&&this.Wu.enabled&&(C.recordCanvas=!0,C.sampling={canvas:this.Wu.fps},C.dataURLOptions={type:"image/webp",quality:this.Wu.quality}),this.Uu&&(C.maskAllInputs=(p=this.Uu.maskAllInputs)===null||p===void 0||p,C.maskTextSelector=(_=this.Uu.maskTextSelector)!==null&&_!==void 0?_:void 0,C.blockSelector=(b=this.Uu.blockSelector)!==null&&b!==void 0?b:void 0);var H=E0();if(H){this.sh=(c=this.sh)!==null&&c!==void 0?c:new fb(H,{refillRate:this._instance.config.session_recording.__mutationThrottlerRefillRate,bucketSize:this._instance.config.session_recording.__mutationThrottlerBucketSize,onBlockedNode:(ie,pe)=>{var oe="Too many mutations on node '"+ie+"'. Rate limiting. This could be due to SVG animations or something similar";or.info(oe,{node:pe}),this.log(k0+" "+oe,"warn")}});var K=this.ju();if(this.pu=H(e({emit:ie=>{this.onRRwebEmit(ie)},plugins:K},C)),!this.pu)return this.wu=!0,void or.error("rrweb failed to start - Loss of recording data is possible. Check the browser console for rrweb errors.");this.wu=!1,this.mu=Date.now(),this.bu=Js(this.bu)?this.bu:"unknown",this.tryAddCustomEvent("$remote_config_received",this.ea),this.au("$session_options",{sessionRecordingOptions:C,activePlugins:K.map((ie=>ie==null?void 0:ie.name))}),this.au("$posthog_config",{config:this._instance.config})}else or.error("_startRecorder was called but rrwebRecord is not available. This indicates something has gone wrong.")}}tryAddCustomEvent(c,p){return this.au(c,p)}}Ts.__PosthogExtensions__=Ts.__PosthogExtensions__||{},Ts.__PosthogExtensions__.rrwebPlugins={getRecordConsolePlugin:h=>({name:"rrweb/console@1",observer:U7,options:h}),getRecordNetworkPlugin:h=>({name:"rrweb/network@1",observer:rb,options:h})},Ts.__PosthogExtensions__.rrweb={record:jo,version:"v2",wasMaxDepthReached:()=>re,resetMaxDepthState(){re=!1,Je=!1}},Ts.__PosthogExtensions__.initSessionRecording=h=>new wb(h)})();(function(){var t=typeof window<"u"?window:void 0,r=typeof globalThis<"u"?globalThis:t;typeof self>"u"&&(r.self=r),typeof File>"u"&&(r.File=function(){}),r!=null&&r.XMLHttpRequest&&new r.XMLHttpRequest;var e=t!=null?t:{};function n(G,X,W,Y,ce,me,ue){try{var at=G[me](ue),it=at.value}catch($t){return void W($t)}at.done?X(it):Promise.resolve(it).then(Y,ce)}function s(G){return function(){var X=this,W=arguments;return new Promise((function(Y,ce){var me=G.apply(X,W);function ue(it){n(me,Y,ce,ue,at,"next",it)}function at(it){n(me,Y,ce,ue,at,"throw",it)}ue(void 0)}))}}function a(){return a=Object.assign?Object.assign.bind():function(G){for(var X=1;arguments.length>X;X++){var W=arguments[X];for(var Y in W)({}).hasOwnProperty.call(W,Y)&&(G[Y]=W[Y])}return G},a.apply(null,arguments)}var i,o,l,d={}.toString,u=Array.isArray||function(G){return d.call(G)==="[object Array]"},g=G=>G===void 0,y=G=>d.call(G)=="[object String]";function w(G){return G===null||typeof G!="object"}function k(G,X){return{}.toString.call(G)==="[object "+X+"]"}function E(G){return typeof Event<"u"&&(function(X,W){try{return X instanceof W}catch(Y){return!1}})(G,Event)}function R(G){var X=globalThis._posthogChunkIds;if(X){var W=Object.keys(X);return l&&W.length===o?l:(o=W.length,l=W.reduce(((Y,ce)=>{i||(i={});var me=i[ce];if(me)Y[me[0]]=me[1];else for(var ue=G(ce),at=ue.length-1;at>=0;at--){var it=ue[at],$t=it==null?void 0:it.filename,Bt=X[ce];if($t&&Bt){Y[$t]=Bt,i[ce]=[$t,Bt];break}}return Y}),{}))}}var O="?";function M(G,X,W,Y,ce){var me={platform:G,filename:X,function:W===""?O:W,in_app:!0};return g(Y)||(me.lineno=Y),g(ce)||(me.colno=ce),me}var x=(G,X)=>{var W=G.indexOf("safari-extension")!==-1,Y=G.indexOf("safari-web-extension")!==-1;return W||Y?[G.indexOf("@")!==-1?G.split("@")[0]:O,W?"safari-extension:"+X:"safari-web-extension:"+X]:[G,X]},N=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,A=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,V=/\((\S*)(?::(\d+))(?::(\d+))\)/,F=(G,X)=>{var W=N.exec(G);if(W){var[,Y,ce,me]=W;return M(X,Y,O,+ce,+me)}var ue=A.exec(G);if(ue){if(ue[2]&&ue[2].indexOf("eval")===0){var at=V.exec(ue[2]);at&&(ue[2]=at[1],ue[3]=at[2],ue[4]=at[3])}var[it,$t]=x(ue[1]||O,ue[2]);return M(X,$t,it,ue[3]?+ue[3]:void 0,ue[4]?+ue[4]:void 0)}},S=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,z=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,U=(G,X)=>{var W=S.exec(G);if(W){if(W[3]&&W[3].indexOf(" > eval")>-1){var Y=z.exec(W[3]);Y&&(W[1]=W[1]||"eval",W[3]=Y[1],W[4]=Y[2],W[5]="")}var ce=W[3],me=W[1]||O;return[me,ce]=x(me,ce),M(X,ce,me,W[4]?+W[4]:void 0,W[5]?+W[5]:void 0)}},j=/\(error: (.*)\)/,J=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,de=["fatal","error","warning","log","info","debug"];function Ae(G,X){X===void 0&&(X=40);var W=Object.keys(G);if(W.sort(),!W.length)return"[object has no keys]";for(var Y=W.length;Y>0;Y--){var ce=W.slice(0,Y).join(", ");if(X>=ce.length)return Y===W.length?ce:ce.length>X?ce.slice(0,X)+"...":ce}return""}var qe=function(G,X){var{debugEnabled:W}=X===void 0?{}:X,Y={k(ce){if(t&&(e.POSTHOG_DEBUG||W)&&!g(t.console)&&t.console){for(var me=("__rrweb_original__"in t.console[ce])?t.console[ce].__rrweb_original__:t.console[ce],ue=arguments.length,at=new Array(ue>1?ue-1:0),it=1;ue>it;it++)at[it-1]=arguments[it];me(G,...at)}},debug(){for(var ce=arguments.length,me=new Array(ce),ue=0;ce>ue;ue++)me[ue]=arguments[ue];Y.k("debug",...me)},info(){for(var ce=arguments.length,me=new Array(ce),ue=0;ce>ue;ue++)me[ue]=arguments[ue];Y.k("log",...me)},warn(){for(var ce=arguments.length,me=new Array(ce),ue=0;ce>ue;ue++)me[ue]=arguments[ue];Y.k("warn",...me)},error(){for(var ce=arguments.length,me=new Array(ce),ue=0;ce>ue;ue++)me[ue]=arguments[ue];Y.k("error",...me)},critical(){for(var ce=arguments.length,me=new Array(ce),ue=0;ce>ue;ue++)me[ue]=arguments[ue];console.error(G,...me)},uninitializedWarning(ce){Y.error("You must initialize PostHog before calling "+ce)},createLogger:(ce,me)=>qe(G+" "+ce,me)};return Y},Ue=qe("[PostHog.js]").createLogger;Ue("[Error tracking]");var je=Ue("[ExceptionAutocapture]"),nt=new class{constructor(G,X,W){W===void 0&&(W=[]),this.coercers=G,this.stackParser=X,this.modifiers=W}buildFromUnknown(G,X){X===void 0&&(X={});var W=X&&X.mechanism||{handled:!0,type:"generic"},Y=this.buildCoercingContext(W,X,0).apply(G),ce=this.buildParsingContext(X),me=this.parseStacktrace(Y,ce);return{$exception_list:this.convertToExceptionList(me,W),$exception_level:"error"}}modifyFrames(G){var X=this;return s((function*(){for(var W of G)W.stacktrace&&W.stacktrace.frames&&u(W.stacktrace.frames)&&(W.stacktrace.frames=yield X.applyModifiers(W.stacktrace.frames));return G}))()}coerceFallback(G){var X;return{type:"Error",value:"Unknown error",stack:(X=G.syntheticException)==null?void 0:X.stack,synthetic:!0}}parseStacktrace(G,X){var W,Y;return G.cause!=null&&(W=this.parseStacktrace(G.cause,X)),G.stack!=""&&G.stack!=null&&(Y=this.applyChunkIds(this.stackParser(G.stack,G.synthetic?X.skipFirstLines:0),X.chunkIdMap)),a({},G,{cause:W,stack:Y})}applyChunkIds(G,X){return G.map((W=>(W.filename&&X&&(W.chunk_id=X[W.filename]),W)))}applyCoercers(G,X){for(var W of this.coercers)if(W.match(G))return W.coerce(G,X);return this.coerceFallback(X)}applyModifiers(G){var X=this;return s((function*(){var W=G;for(var Y of X.modifiers)W=yield Y(W);return W}))()}convertToExceptionList(G,X){var W,Y,ce,me={type:G.type,value:G.value,mechanism:{type:(W=X.type)!==null&&W!==void 0?W:"generic",handled:(Y=X.handled)===null||Y===void 0||Y,synthetic:(ce=G.synthetic)!==null&&ce!==void 0&&ce}};G.stack&&(me.stacktrace={type:"raw",frames:G.stack});var ue=[me];return G.cause!=null&&ue.push(...this.convertToExceptionList(G.cause,a({},X,{handled:!0}))),ue}buildParsingContext(G){var X;return{chunkIdMap:R(this.stackParser),skipFirstLines:(X=G.skipFirstLines)!==null&&X!==void 0?X:1}}buildCoercingContext(G,X,W){W===void 0&&(W=0);var Y=(ce,me)=>{if(4>=me){var ue=this.buildCoercingContext(G,X,me);return this.applyCoercers(ce,ue)}};return a({},X,{syntheticException:W==0?X.syntheticException:void 0,mechanism:G,apply:ce=>Y(ce,W),next:ce=>Y(ce,W+1)})}}([new class{match(G){return this.isDOMException(G)||this.isDOMError(G)}coerce(G,X){var W=y(G.stack);return{type:this.getType(G),value:this.getValue(G),stack:W?G.stack:void 0,cause:G.cause?X.next(G.cause):void 0,synthetic:!1}}getType(G){return this.isDOMError(G)?"DOMError":"DOMException"}getValue(G){var X=G.name||(this.isDOMError(G)?"DOMError":"DOMException");return G.message?X+": "+G.message:X}isDOMException(G){return k(G,"DOMException")}isDOMError(G){return k(G,"DOMError")}},new class{match(G){return k(G,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(G)}isCustomEventWrappingRejection(G){if(!E(G))return!1;try{var X=G.detail;return X!=null&&typeof X=="object"&&"reason"in X}catch(W){return!1}}coerce(G,X){var W,Y=this.getUnhandledRejectionReason(G);return w(Y)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(Y),stack:(W=X.syntheticException)==null?void 0:W.stack,synthetic:!0}:X.apply(Y)}getUnhandledRejectionReason(G){try{if("reason"in G)return G.reason;if("detail"in G&&G.detail!=null&&typeof G.detail=="object"&&"reason"in G.detail)return G.detail.reason}catch(X){}return G}},new class{constructor(){}match(G){return k(G,"ErrorEvent")&&G.error!=null}coerce(G,X){var W;return X.apply(G.error)||{type:"ErrorEvent",value:G.message,stack:(W=X.syntheticException)==null?void 0:W.stack,synthetic:!0}}},new class{match(G){return G instanceof Error}coerce(G,X){return{type:this.getType(G),value:this.getMessage(G,X),stack:this.getStack(G),cause:G.cause?X.next(G.cause):void 0,synthetic:!1}}getType(G){return G.name||G.constructor.name}getMessage(G,X){var W=G.message;return String(W.error&&typeof W.error.message=="string"?W.error.message:W)}getStack(G){return G.stacktrace||G.stack||void 0}},new class{match(G){return E(G)}coerce(G,X){var W,Y=G.constructor.name;return{type:Y,value:Y+" captured as exception with keys: "+Ae(G),stack:(W=X.syntheticException)==null?void 0:W.stack,synthetic:!0}}},new class{match(G){return typeof G=="object"&&G!==null}coerce(G,X){var W,Y=this.getErrorPropertyFromObject(G);return Y?X.apply(Y):{type:this.getType(G),value:this.getValue(G),stack:(W=X.syntheticException)==null?void 0:W.stack,level:this.isSeverityLevel(G.level)?G.level:"error",synthetic:!0}}getType(G){return E(G)?G.constructor.name:"Error"}getValue(G){if("name"in G&&typeof G.name=="string"){var X="'"+G.name+"' captured as exception";return"message"in G&&typeof G.message=="string"&&(X+=" with message: '"+G.message+"'"),X}if("message"in G&&typeof G.message=="string")return G.message;var W=this.getObjectClassName(G);return(W&&W!=="Object"?"'"+W+"'":"Object")+" captured as exception with keys: "+Ae(G)}isSeverityLevel(G){return y(G)&&!(X=>y(X)&&X.trim().length===0)(G)&&de.indexOf(G)>=0}getErrorPropertyFromObject(G){for(var X in G)if({}.hasOwnProperty.call(G,X)){var W=G[X];if(W instanceof Error)return W}}getObjectClassName(G){try{var X=Object.getPrototypeOf(G);return X?X.constructor.name:void 0}catch(W){return}}},new class{match(G){return typeof G=="string"}coerce(G,X){var W,[Y,ce]=this.getInfos(G);return{type:Y!=null?Y:"Error",value:ce!=null?ce:G,stack:(W=X.syntheticException)==null?void 0:W.stack,synthetic:!0}}getInfos(G){var X="Error",W=G,Y=G.match(J);return Y&&(X=Y[1],W=Y[2]),[X,W]}},new class{match(G){return w(G)}coerce(G,X){var W;return{type:"Error",value:"Primitive value captured as exception: "+String(G),stack:(W=X.syntheticException)==null?void 0:W.stack,synthetic:!0}}}],(function(G){for(var X=arguments.length,W=new Array(X>1?X-1:0),Y=1;X>Y;Y++)W[Y-1]=arguments[Y];return function(ce,me){me===void 0&&(me=0);for(var ue=[],at=ce.split("\n"),it=me;at.length>it;it++){var $t=at[it];if(1024>=$t.length){var Bt=j.test($t)?$t.replace(j,"$1"):$t;if(!Bt.match(/\S*Error: /)){for(var yn of W){var B=yn(Bt,G);if(B){ue.push(B);break}}if(ue.length>=50)break}}}return(function(Q){if(!Q.length)return[];var Z=Array.from(Q);return Z.reverse(),Z.slice(0,50).map((he=>{return a({},he,{filename:he.filename||(ve=Z,ve[ve.length-1]||{}).filename,function:he.function||O});var ve}))})(ue)}})("web:javascript",F,U)),Pt={wrapOnError(G){var X=t;X||je.info("window not available, cannot wrap onerror");var W=X.onerror;return X.onerror=function(){for(var Y,ce=arguments.length,me=new Array(ce),ue=0;ce>ue;ue++)me[ue]=arguments[ue];var at=nt.buildFromUnknown(me[4]||me[0],{mechanism:{handled:!1}});return G(at),(Y=W==null?void 0:W(...me))!==null&&Y!==void 0&&Y},X.onerror.__POSTHOG_INSTRUMENTED__=!0,()=>{var Y;(Y=X.onerror)==null||delete Y.__POSTHOG_INSTRUMENTED__,X.onerror=W}},wrapUnhandledRejection(G){var X=t;X||je.info("window not available, cannot wrap onUnhandledRejection");var W=X.onunhandledrejection;return X.onunhandledrejection=function(Y){var ce,me=nt.buildFromUnknown(Y,{mechanism:{handled:!1}});return G(me),(ce=W==null?void 0:W(Y))!==null&&ce!==void 0&&ce},X.onunhandledrejection.__POSTHOG_INSTRUMENTED__=!0,()=>{var Y;(Y=X.onunhandledrejection)==null||delete Y.__POSTHOG_INSTRUMENTED__,X.onunhandledrejection=W}},wrapConsoleError(G){var X=console;X||je.info("console not available, cannot wrap console.error");var W=X.error;return X.error=function(){for(var Y,ce=arguments.length,me=new Array(ce),ue=0;ce>ue;ue++)me[ue]=arguments[ue];Y=me.length==1?me[0]:me.join(" ");var at=me.find(($t=>$t instanceof Error)),it=nt.buildFromUnknown(at||Y,{mechanism:{handled:!1},syntheticException:new Error("PostHog syntheticException"),skipFirstLines:2});return G(it),W==null?void 0:W(...me)},X.error.__POSTHOG_INSTRUMENTED__=!0,()=>{var Y;(Y=X.error)==null||delete Y.__POSTHOG_INSTRUMENTED__,X.error=W}}};e.__PosthogExtensions__=e.__PosthogExtensions__||{},e.__PosthogExtensions__.errorWrappingFunctions=Pt,e.posthogErrorWrappingFunctions=Pt})();(function(){function t(d,u,g,y,w,k,E){try{var R=d[k](E),O=R.value}catch(M){return void g(M)}R.done?u(O):Promise.resolve(O).then(y,w)}var r={}.toString,e=Array.isArray||function(d){return r.call(d)==="[object Array]"};function n(d,u,g){try{if(!(u in d))return()=>{};var y=d[u],w=g(y);return typeof w=="function"&&(w.prototype=w.prototype||{},Object.defineProperties(w,{__posthog_wrapped__:{enumerable:!1,value:!0}})),d[u]=w,()=>{d[u]=y}}catch(k){return()=>{}}}var s=typeof window<"u"?window:void 0,a=typeof globalThis<"u"?globalThis:s;typeof self>"u"&&(a.self=a),typeof File>"u"&&(a.File=function(){}),a!=null&&a.XMLHttpRequest&&new a.XMLHttpRequest;var i=s!=null?s:{},o=(d,u,g,y)=>{var w;try{w=new URL(y.url).hostname}catch(R){return}if(!e(d)||d.includes(w)){if(g){var{sessionId:k,windowId:E}=g.checkAndGetSessionAndWindowId(!0);y.headers.set("X-POSTHOG-SESSION-ID",k),y.headers.set("X-POSTHOG-WINDOW-ID",E)}u!=="$posthog_cookieless"&&y.headers.set("X-POSTHOG-DISTINCT-ID",u)}};i.__PosthogExtensions__=i.__PosthogExtensions__||{};var l={_patchFetch:(d,u,g)=>n(s,"fetch",(y=>(function(){var w,k=(w=function*(E,R){var O=new Request(E,R);return o(d,u,g,O),y(O)},function(){var E=this,R=arguments;return new Promise((function(O,M){var x=w.apply(E,R);function N(V){t(x,O,M,N,A,"next",V)}function A(V){t(x,O,M,N,A,"throw",V)}N(void 0)}))});return function(E,R){return k.apply(this,arguments)}})())),_patchXHR:(d,u,g)=>n(s.XMLHttpRequest.prototype,"open",(y=>function(w,k,E,R,O){E===void 0&&(E=!0);var M=new Request(k);return o(d,u,g,M),y.call(this,w,M.url,E,R,O)}))};i.__PosthogExtensions__.tracingHeadersPatchFns=l,i.postHogTracingHeadersPatchFns=l})();(function(){var t=typeof window<"u"?window:void 0,r=typeof globalThis<"u"?globalThis:t;typeof self>"u"&&(r.self=r),typeof File>"u"&&(r.File=function(){}),r!=null&&r.XMLHttpRequest&&new r.XMLHttpRequest;var e=t!=null?t:{};function n(){return n=Object.assign?Object.assign.bind():function(W){for(var Y=1;arguments.length>Y;Y++){var ce=arguments[Y];for(var me in ce)({}).hasOwnProperty.call(ce,me)&&(W[me]=ce[me])}return W},n.apply(null,arguments)}var s=-1,a=W=>{addEventListener("pageshow",(Y=>{Y.persisted&&(s=Y.timeStamp,W(Y))}),!0)},i=(W,Y,ce,me)=>{var ue,at;return it=>{Y.value>=0&&(it||me)&&((at=Y.value-(ue!=null?ue:0))||ue===void 0)&&(ue=Y.value,Y.delta=at,Y.rating=(($t,Bt)=>$t>Bt[1]?"poor":$t>Bt[0]?"needs-improvement":"good")(Y.value,ce),W(Y))}},o=W=>{requestAnimationFrame((()=>requestAnimationFrame((()=>W()))))},l=()=>{var W=performance.getEntriesByType("navigation")[0];if(W&&W.responseStart>0&&W.responseStart{var W,Y=l();return(W=Y==null?void 0:Y.activationStart)!==null&&W!==void 0?W:0},u=function(W,Y){Y===void 0&&(Y=-1);var ce=l(),me="navigate";return 0>s?ce&&(document.prerendering||d()>0?me="prerender":document.wasDiscarded?me="restore":ce.type&&(me=ce.type.replace(/_/g,"-"))):me="back-forward-cache",{name:W,value:Y,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12),navigationType:me}},g=new WeakMap;function y(W,Y){return g.get(W)||g.set(W,new Y),g.get(W)}class w{constructor(){this.t=void 0,this.i=0,this.o=[]}h(Y){var ce;if(!Y.hadRecentInput){var me=this.o[0],ue=this.o.at(-1);this.i&&me&&ue&&1e3>Y.startTime-ue.startTime&&5e3>Y.startTime-me.startTime?(this.i+=Y.value,this.o.push(Y)):(this.i=Y.value,this.o=[Y]),(ce=this.t)==null||ce.call(this,Y)}}}var k,E=function(W,Y,ce){ce===void 0&&(ce={});try{if(PerformanceObserver.supportedEntryTypes.includes(W)){var me=new PerformanceObserver((ue=>{Promise.resolve().then((()=>{Y(ue.getEntries())}))}));return me.observe(n({type:W,buffered:!0},ce)),me}}catch(ue){}},R=W=>{var Y=!1;return()=>{Y||(W(),Y=!0)}},O=-1,M=new Set,x=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,N=W=>{if(document.visibilityState==="hidden"){if(W.type==="visibilitychange")for(var Y of M)Y();isFinite(O)||(O=W.type==="visibilitychange"?W.timeStamp:0,removeEventListener("prerenderingchange",N,!0))}},A=()=>{if(0>O){var W,Y=d(),ce=document.prerendering||(W=globalThis.performance.getEntriesByType("visibility-state").filter((me=>me.name==="hidden"&&me.startTime>Y))[0])==null?void 0:W.startTime;O=ce!=null?ce:x(),addEventListener("visibilitychange",N,!0),addEventListener("prerenderingchange",N,!0),a((()=>{setTimeout((()=>{O=x()}))}))}return{get firstHiddenTime(){return O},onHidden(me){M.add(me)}}},V=W=>{document.prerendering?addEventListener("prerenderingchange",(()=>W()),!0):W()},F=[1800,3e3],S=function(W,Y){Y===void 0&&(Y={}),V((()=>{var ce,me=A(),ue=u("FCP"),at=E("paint",(it=>{for(var $t of it)$t.name==="first-contentful-paint"&&(at.disconnect(),me.firstHiddenTime>$t.startTime&&(ue.value=Math.max($t.startTime-d(),0),ue.entries.push($t),ce(!0)))}));at&&(ce=i(W,ue,F,Y.reportAllChanges),a((it=>{ue=u("FCP"),ce=i(W,ue,F,Y.reportAllChanges),o((()=>{ue.value=performance.now()-it.timeStamp,ce(!0)}))})))}))},z=[.1,.25],U=0,j=1/0,J=0,de=W=>{for(var Y of W)Y.interactionId&&(j=Math.min(j,Y.interactionId),J=Math.max(J,Y.interactionId),U=J?(J-j)/7+1:0)},Ae=()=>{var W;return k?U:(W=performance.interactionCount)!==null&&W!==void 0?W:0},qe=0;class Ue{constructor(){this.u=[],this.l=new Map,this.m=void 0,this.p=void 0}v(){qe=Ae(),this.u.length=0,this.l.clear()}L(){var Y=Math.min(this.u.length-1,Math.floor((Ae()-qe)/50));return this.u[Y]}h(Y){var ce;if((ce=this.m)!=null&&ce.call(this,Y),Y.interactionId||Y.entryType==="first-input"){var me=this.u.at(-1),ue=this.l.get(Y.interactionId);if(ue||10>this.u.length||Y.duration>me.P){var at;if(ue?Y.duration>ue.P?(ue.entries=[Y],ue.P=Y.duration):Y.duration===ue.P&&Y.startTime===ue.entries[0].startTime&&ue.entries.push(Y):(this.l.set((ue={id:Y.interactionId,entries:[Y],P:Y.duration}).id,ue),this.u.push(ue)),this.u.sort(((Bt,yn)=>yn.P-Bt.P)),this.u.length>10){var it=this.u.splice(10);for(var $t of it)this.l.delete($t.id)}(at=this.p)==null||at.call(this,ue)}}}}var je=W=>{var Y=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?W():(W=R(W),addEventListener("visibilitychange",W,{once:!0,capture:!0}),Y((()=>{W(),removeEventListener("visibilitychange",W,{capture:!0})})))},nt=[200,500];class Pt{constructor(){this.m=void 0}h(Y){var ce;(ce=this.m)==null||ce.call(this,Y)}}var G=[2500,4e3],X={onLCP(W,Y){Y===void 0&&(Y={}),V((()=>{var ce,me=A(),ue=u("LCP"),at=y(Y,Pt),it=Q=>{for(var Z of(Y.reportAllChanges||(Q=Q.slice(-1)),Q))at.h(Z),me.firstHiddenTime>Z.startTime&&(ue.value=Math.max(Z.startTime-d(),0),ue.entries=[Z],ce())},$t=E("largest-contentful-paint",it);if($t){ce=i(W,ue,G,Y.reportAllChanges);var Bt=R((()=>{it($t.takeRecords()),$t.disconnect(),ce(!0)})),yn=Q=>{Q.isTrusted&&(je(Bt),removeEventListener(Q.type,yn,{capture:!0}))};for(var B of["keydown","click","visibilitychange"])addEventListener(B,yn,{capture:!0});a((Q=>{ue=u("LCP"),ce=i(W,ue,G,Y.reportAllChanges),o((()=>{ue.value=performance.now()-Q.timeStamp,ce(!0)}))}))}}))},onCLS(W,Y){Y===void 0&&(Y={});var ce=A();S(R((()=>{var me,ue=u("CLS",0),at=y(Y,w),it=Bt=>{for(var yn of Bt)at.h(yn);at.i>ue.value&&(ue.value=at.i,ue.entries=at.o,me())},$t=E("layout-shift",it);$t&&(me=i(W,ue,z,Y.reportAllChanges),ce.onHidden((()=>{it($t.takeRecords()),me(!0)})),a((()=>{at.i=0,ue=u("CLS",0),me=i(W,ue,z,Y.reportAllChanges),o((()=>me()))})),setTimeout(me))})))},onFCP:S,onINP(W,Y){if(Y===void 0&&(Y={}),globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype){var ce=A();V((()=>{var me;"interactionCount"in performance||k||(k=E("event",de,{type:"event",buffered:!0,durationThreshold:0}));var ue,at=u("INP"),it=y(Y,Ue),$t=yn=>{je((()=>{for(var B of yn)it.h(B);var Q=it.L();Q&&Q.P!==at.value&&(at.value=Q.P,at.entries=Q.entries,ue())}))},Bt=E("event",$t,{durationThreshold:(me=Y.durationThreshold)!==null&&me!==void 0?me:40});ue=i(W,at,nt,Y.reportAllChanges),Bt&&(Bt.observe({type:"first-input",buffered:!0}),ce.onHidden((()=>{$t(Bt.takeRecords()),ue(!0)})),a((()=>{it.v(),at=u("INP"),ue=i(W,at,nt,Y.reportAllChanges)})))}))}}};e.__PosthogExtensions__=e.__PosthogExtensions__||{},e.__PosthogExtensions__.postHogWebVitalsCallbacks=X,e.postHogWebVitalsCallbacks=X,e.__PosthogExtensions__.loadWebVitalsCallbacks=()=>X})();function vre(t){return t.startsWith("/")&&!t.startsWith("//")&&t.endsWith(".js")}function yre(){return xh.init(Zr.POSTHOG_API_KEY,{api_host:"https://eu.i.posthog.com",defaults:"2025-11-30",person_profiles:"identified_only",autocapture:!1,capture_pageleave:!1,before_send:t=>{var i,o,l;if((t==null?void 0:t.event)!=="$exception")return t;const e=(t.properties.$exception_list||[])[0];if(!e)return t;if(((i=e.type)!=null?i:e.$exception_type)==="AxiosError")return null;const s=(o=e.value)!=null?o:e.$exception_message;return!s||s==="Script error."||s==="Script error"||!((l=t.properties.$exception_sources)!=null?l:[]).some(vre)?null:t}}),{posthog:xh}}yre();const bre=Ck(),c1=vk(gre);c1.use(zu);c1.use(bre);c1.mount("#app");export{Cre as __vite_legacy_guard};