niubiz-pay
Version:
Library that allows you to make payments and tokenize debit and credit cards with Niubiz.
1 lines • 325 kB
JavaScript
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("react-dom");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=r(t),o=r(n),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function c(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}"function"==typeof SuppressedError&&SuppressedError;var l="customForm-module_formContainer__TTsoQ",d="customForm-module_formSection__9XoWT",p="customForm-module_formSectionApp__gwKSB",f="customForm-module_formHeader__dPkwr",h="customForm-module_formTitle__CGRox",m="customForm-module_formIconClose__NFCGD",v="customForm-module_formBody__Nl19f",y="customForm-module_formBodyApp__T5hOI",g="customForm-module_formContent__8TVvm",b="customForm-module_formCardContainer__IAQGT",w="customForm-module_formInfoCard__Ym5vR",x="customForm-module_formRow__fHS7Q",k="customForm-module_formCheckboxContainer__-gM4c",S="customForm-module_formCheckbox__YXPHd",D="customForm-module_formCheckboxLabel__T6ErT",_="customForm-module_formFooter__-eSk8",E="customForm-module_formButtonContainer__pELEw",C="customForm-module_buttonPrimary__Z5d-t",N="customForm-module_buttonSecondary__wpuEX",M="customForm-module_inputContainer__63f5b",T="customForm-module_formControl__t-S6N",F="customForm-module_formError__n60gZ",O="customForm-module_inputLabel__45HQo",j="customForm-module_inputErrorContainer__x1Ygx",P="customForm-module_inputError__qMoZl",A="customForm-module_buttonDisabled__8cd6v",R=Object.defineProperty,L=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,H=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const B=t.forwardRef(((e,n)=>{const r=e,{alt:a,color:o="currentColor",size:i="1em",weight:s="regular",mirrored:c=!1,children:u,weights:l}=r,d=((e,t)=>{var n={};for(var r in e)I.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&L)for(var r of L(e))t.indexOf(r)<0&&Y.call(e,r)&&(n[r]=e[r]);return n})(r,["alt","color","size","weight","mirrored","children","weights"]);return t.createElement("svg",((e,t)=>{for(var n in t||(t={}))I.call(t,n)&&H(e,n,t[n]);if(L)for(var n of L(t))Y.call(t,n)&&H(e,n,t[n]);return e})({ref:n,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:o,viewBox:"0 0 256 256",transform:c?"scale(-1, 1)":void 0},d),!!a&&t.createElement("title",null,a),u,l.get(s))}));B.displayName="SSRBase";const $=B,V=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),t.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]);var W=Object.defineProperty,z=Object.defineProperties,q=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,G=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const X=t.forwardRef(((e,n)=>t.createElement($,((e,t)=>z(e,q(t)))(((e,t)=>{for(var n in t||(t={}))Q.call(t,n)&&G(e,n,t[n]);if(U)for(var n of U(t))K.call(t,n)&&G(e,n,t[n]);return e})({ref:n},e),{weights:V}))));X.displayName="X";const Z=t.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1});var J=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(e,t,n)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ae=(e,t)=>{for(var n in t||(t={}))te.call(t,n)&&re(e,n,t[n]);if(ee)for(var n of ee(t))ne.call(t,n)&&re(e,n,t[n]);return e},oe=(e,t)=>{var n={};for(var r in e)te.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ee)for(var r of ee(e))t.indexOf(r)<0&&ne.call(e,r)&&(n[r]=e[r]);return n};const ie=t.forwardRef(((e,n)=>{const r=e,{alt:a,color:o,size:i,weight:s,mirrored:c,children:u,weights:l}=r,d=oe(r,["alt","color","size","weight","mirrored","children","weights"]),p=t.useContext(Z),{color:f="currentColor",size:h,weight:m="regular",mirrored:v=!1}=p,y=oe(p,["color","size","weight","mirrored"]);return t.createElement("svg",ae(ae({ref:n,xmlns:"http://www.w3.org/2000/svg",width:null!=i?i:h,height:null!=i?i:h,fill:null!=o?o:f,viewBox:"0 0 256 256",transform:c||v?"scale(-1, 1)":void 0},y),d),!!a&&t.createElement("title",null,a),u,l.get(null!=s?s:m))}));ie.displayName="IconBase";const se=ie;var ce=Object.defineProperty,ue=Object.defineProperties,le=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,he=(e,t,n)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const me=t.forwardRef(((e,n)=>t.createElement(se,((e,t)=>ue(e,le(t)))(((e,t)=>{for(var n in t||(t={}))pe.call(t,n)&&he(e,n,t[n]);if(de)for(var n of de(t))fe.call(t,n)&&he(e,n,t[n]);return e})({ref:n},e),{weights:V}))));me.displayName="X";var ve={card:"card-module_card__BroLO",cardSection:"card-module_cardSection__au6Vb",cardBody:"card-module_cardBody__vzdB8",cardBodyFront:"card-module_cardBodyFront__C9Nxa",cardBodyBack:"card-module_cardBodyBack__0ejA4",cardFlipped:"card-module_cardFlipped__HvooS",cardBodyResume:"card-module_cardBodyResume__O6tHq",cardBrand:"card-module_cardBrand__FHlbB",cardNumber:"card-module_cardNumber__-oYX2",cardDate:"card-module_cardDate__fBE6w",cardOwner:"card-module_cardOwner__nPPO4",cardBrandIconContainer:"card-module_cardBrandIconContainer__OVuJI",cardMagneticTape:"card-module_cardMagneticTape__wfQMj",cardHolderContainer:"card-module_cardHolderContainer__TlWtP",cardCvv:"card-module_cardCvv__EvwmP",faVisa:"card-module_faVisa__QCY-1",faMastercard:"card-module_faMastercard__wj00U",faAmex:"card-module_faAmex__Wx22R",faDinersClub:"card-module_faDinersClub__O7FyO"},ye=function(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"91",height:"26",fill:"none",viewBox:"0 0 91 26",children:[e.jsxs("g",{clipPath:"url(#clip0_9600_7564)",children:[e.jsx("path",{fill:"#fff",d:"M86.376 0H4.488a4 4 0 0 0-4 4v17.169a4 4 0 0 0 4 4h81.888a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4",children:" "}),e.jsx("path",{fill:"#DBDADE",fillRule:"evenodd",d:"M11.185 8.925a5.17 5.17 0 0 0-3.415 0L.563 11.448l-.075.021.001-.233v-.239L7.62 8.502a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0L25.6 8.5a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l5.426 1.9a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.472l-.074-.021-7.207-2.523a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.711 0l-5.426-1.899a5.17 5.17 0 0 0-3.415 0l-5.425 1.899c-1.202.42-2.51.42-3.712 0L47.14 8.925a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.712 0l-5.425-1.899a5.17 5.17 0 0 0-3.415 0l-5.425 1.899c-1.202.42-2.51.42-3.712 0zM11.185 3.437a5.17 5.17 0 0 0-3.415 0L.563 5.959l-.075.022.001-.234V5.51L7.62 3.013a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l5.426 1.9a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.472l-.074-.022-7.207-2.522a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.711 0l-5.426-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0zM11.185 19.712a5.17 5.17 0 0 0-3.415 0L.563 22.235l-.075.021.001-.233v-.238l7.132-2.497a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.899a5.62 5.62 0 0 1 3.712 0l5.425 1.899a5.17 5.17 0 0 0 3.415 0l5.425-1.899a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.899a5.62 5.62 0 0 1 3.712 0l5.425 1.899a5.17 5.17 0 0 0 3.415 0l5.425-1.899a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.471l-.074-.021-7.207-2.523a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.711 0l-5.426-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0zM11.185 14.224a5.17 5.17 0 0 0-3.415 0L.563 16.747l-.075.021.001-.234v-.238L7.62 13.8a5.62 5.62 0 0 1 3.712 0l5.426 1.899a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l5.426 1.9a5.17 5.17 0 0 0 3.414 0l5.426-1.9a5.62 5.62 0 0 1 3.712 0l5.425 1.9a5.17 5.17 0 0 0 3.415 0l5.425-1.9a5.62 5.62 0 0 1 3.712 0l7.133 2.497v.472l-.074-.021-7.207-2.523a5.17 5.17 0 0 0-3.415 0l-5.426 1.899c-1.201.42-2.51.42-3.711 0l-5.426-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.426 1.9c-1.201.42-2.51.42-3.712 0l-5.425-1.9a5.17 5.17 0 0 0-3.415 0l-5.425 1.9c-1.202.42-2.51.42-3.712 0z",clipRule:"evenodd",children:" "})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_9600_7564",children:e.jsx("path",{fill:"#fff",d:"M0 0h91v26H0z",children:" "})})})]})},ge=function(t){return e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:e.jsx("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"})})},be={Visa:{name:"Visa",icon:function(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[e.jsx("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"}),e.jsx("path",{fill:"#3362AB",d:"M24.373 7.87a5.5 5.5 0 0 0-2.016-.37c-2.22 0-3.783 1.184-3.793 2.876-.018 1.249 1.12 1.942 1.97 2.359.87.425 1.166.703 1.166 1.082-.01.583-.703.851-1.35.851-.898 0-1.379-.138-2.11-.462l-.295-.14-.315 1.952c.527.24 1.499.454 2.507.463 2.359 0 3.894-1.166 3.912-2.97.01-.989-.591-1.747-1.886-2.367-.787-.398-1.268-.666-1.268-1.073.01-.37.407-.749 1.295-.749a3.8 3.8 0 0 1 1.674.333l.203.092zM16.224 16.351h-2.248l1.406-8.693h2.248z"}),e.jsx("path",{fill:"#3362AB",fillRule:"evenodd",d:"M30.136 7.658h-1.74c-.535 0-.943.157-1.174.72l-3.339 7.973h2.359l.471-1.304H29.6c.064.305.268 1.304.268 1.304h2.081zM27.36 13.27l.897-2.432.069-.193v-.002c.065-.179.161-.444.227-.637l.157.749s.426 2.08.518 2.515z",clipRule:"evenodd"}),e.jsx("path",{fill:"#3362AB",d:"m12.099 7.658-2.202 5.928-.24-1.202v-.001L8.87 8.388c-.129-.555-.527-.712-1.017-.73H4.236l-.037.175c.882.226 1.671.55 2.363.955l2.003 7.554h2.377l3.534-8.684z"})]})},class:"faVisa"},Mastercard:{name:"Mastercard",icon:function(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[e.jsx("rect",{width:"35.7",height:"23.7",x:"0.15",y:"0.15",fill:"#fff",rx:"2.25"}),e.jsx("rect",{width:"35.7",height:"23.7",x:"0.15",y:"0.15",stroke:"#CCC",strokeWidth:"0.3",rx:"2.25"}),e.jsx("path",{fill:"#F79E1B",d:"M30.001 11.916c0 4.1-3.317 7.417-7.416 7.417a7.37 7.37 0 0 1-4.574-1.587 7.37 7.37 0 0 0 2.823-5.83c0-2.369-1.113-4.47-2.823-5.83A7.37 7.37 0 0 1 22.585 4.5c4.1 0 7.416 3.337 7.416 7.416"}),e.jsx("path",{fill:"#FF5F00",d:"M18.011 6.086a7.44 7.44 0 0 1 2.823 5.83c0 2.37-1.092 4.47-2.823 5.83h-.02a7.436 7.436 0 0 1 0-11.66z"}),e.jsx("path",{fill:"#EB001B",d:"M15.168 11.916c0-2.369 1.113-4.47 2.823-5.83A7.37 7.37 0 0 0 13.417 4.5a7.41 7.41 0 0 0-7.416 7.416c0 4.1 3.317 7.417 7.416 7.417a7.37 7.37 0 0 0 4.574-1.587 7.4 7.4 0 0 1-2.823-5.83"})]})},class:"faMastercard"},AmericanExpress:{name:"American Express",icon:function(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[e.jsx("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"}),e.jsx("path",{fill:"#1F72CD",fillRule:"evenodd",d:"M6.88 8.4 3.6 15.662h3.928l.487-1.158h1.113l.487 1.158h4.323v-.884l.386.884h2.236l.386-.903v.903h8.992l1.093-1.128 1.024 1.128 4.618.009-3.291-3.62 3.291-3.65h-4.546l-1.065 1.106-.991-1.107h-9.783l-.84 1.875-.86-1.875h-3.92v.854l-.435-.854zM20.31 9.431h5.163l1.58 1.707 1.63-1.707h1.58l-2.4 2.62 2.4 2.588H28.61l-1.579-1.726-1.638 1.726h-5.084zm1.275 2.03v-.952h3.222l1.406 1.521-1.468 1.53h-3.16v-1.038H24.4v-1.06zM7.64 9.432h1.915l2.176 4.924V9.431h2.098l1.68 3.53 1.55-3.53h2.087v5.21h-1.27l-.01-4.082-1.852 4.083H14.88l-1.861-4.083v4.083h-2.613l-.495-1.168H7.234L6.74 14.64h-1.4zm.05 2.963.881-2.08.88 2.08z",clipRule:"evenodd"})]})},class:"faAmex"},DinersClub:{name:"Diners Club",icon:function(t){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"24",fill:"none",viewBox:"0 0 36 24",children:[e.jsx("rect",{width:"36",height:"24",fill:"#fff",rx:"2.4"}),e.jsx("path",{fill:"#0079BE",d:"M19.523 19.79c4.222.021 8.076-3.474 8.076-7.726 0-4.65-3.854-7.865-8.076-7.863h-3.634c-4.273-.002-7.79 3.214-7.79 7.863 0 4.253 3.517 7.747 7.79 7.727z"}),e.jsx("path",{fill:"#fff",d:"M15.906 4.846c-3.904 0-7.068 3.194-7.07 7.136.002 3.941 3.166 7.134 7.07 7.136 3.905-.002 7.07-3.195 7.07-7.136s-3.164-7.135-7.07-7.136m-4.48 7.136a4.53 4.53 0 0 1 2.876-4.221v8.442a4.53 4.53 0 0 1-2.877-4.221m6.084 4.222V7.76a4.53 4.53 0 0 1 2.879 4.222 4.53 4.53 0 0 1-2.879 4.222"})]})},class:"faDinersClub"},Discover:{name:"Discover",icon:ge,class:"faDiscover"},JCB:{name:"JCB",icon:ge,class:"faJCB"},NotFound:{name:"Not Found",icon:ge,class:"faNotFound"}},we=function(e){var t=e.charAt(0),n=e.substring(0,2),r=e.substring(0,4);return"4"===t?be.Visa.name:n>="51"&&n<="55"?be.Mastercard.name:"34"===n||"37"===n?be.AmericanExpress.name:"6011"===r||r>="644"&&r<="649"||"65"===r?be.Discover.name:"3"===t&&n>="30"&&n<="35"||"36"===n||"38"===n?be.DinersClub.name:r>="2131"&&r<="2132"||"1800"===r||r>="3528"&&r<="3589"?be.JCB.name:be.NotFound.name},xe=function(t){var n,r=t.isFlipped,a=void 0!==r&&r,o=t.number,i=void 0===o?"**** **** **** ****":o;t.dateYear,t.dateMonth,t.cvv;var s=t.owner,c=void 0===s?"Nombre del titular":s,u=t.brand;t.brandIcon,i=i||"**** **** **** ****";var l=null!==(n=Object.values(be).find((function(e){return e.name===u})))&&void 0!==n?n:be.NotFound,d=l.icon;return e.jsx("div",{className:"".concat(ve.card),children:e.jsxs("div",{className:"".concat(ve.cardSection," ").concat(a?ve.cardFlipped:""),children:[e.jsx("div",{className:"".concat(ve.cardBody," ").concat(ve.cardBodyFront," ").concat(ve[l.class]),children:e.jsxs("div",{className:ve.cardBodyResume,children:[l.name&&l.name!==be.NotFound.name&&e.jsx("div",{className:ve.cardBrand,children:l.name}),e.jsx("div",{className:ve.cardNumber,children:i}),e.jsx("div",{className:ve.cardOwner,children:c&&""!==c.trim()?c:"Nombre del titular"}),l.name!==be.NotFound.name&&e.jsx("div",{className:ve.cardBrandIconContainer,children:e.jsx(d,{})})]})}),e.jsxs("div",{className:"".concat(ve.cardBody," ").concat(ve.cardBodyBack," ").concat(ve[l.class]),children:[e.jsx("div",{className:"".concat(ve.cardMagneticTape," ").concat(ve.colorMagnetic)}),e.jsx("div",{className:ve.cardHolderContainer,children:e.jsx(ye,{})}),e.jsx("div",{className:ve.cardBodyResume,children:e.jsx("div",{className:ve.cardCvv,children:"****"})})]})]})})},ke="inputGroup-module_inputContainer__wW9Gi",Se="inputGroup-module_inputContent__-eqvR",De="inputGroup-module_inputLabel__pBZ2O",_e="inputGroup-module_inputFieldContainer__JFoHJ",Ee="inputGroup-module_inputFieldDateContainer__s-2Tp",Ce="inputGroup-module_inputFieldIcon__SnI5b",Ne="inputGroup-module_inputFieldIconImg__D6Pem",Me="inputGroup-module_inputField__G0gKn",Te="inputGroup-module_inputFieldWithIcon__wQcBh",Fe="inputGroup-module_inputErrorContainer__I2H-D",Oe="inputGroup-module_inputError__kU1kL",je="inputGroup-module_inputSpanMessage__cGXki",Pe="inputGroup-module_inputFieldError__PapWk";const Ae=6048e5,Re=Symbol.for("constructDateFrom");function Le(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Re in e?e[Re](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ie(e,t){return Le(t||e,e)}let Ye={};function He(){return Ye}function Be(e,t){const n=He(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=Ie(e,t?.in),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function $e(e,t){return Be(e,{...t,weekStartsOn:1})}function Ve(e,t){const n=Ie(e,t?.in),r=n.getFullYear(),a=Le(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=$e(a),i=Le(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const s=$e(i);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function We(e){const t=Ie(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ze(e,t){const n=Ie(e,t?.in);return n.setHours(0,0,0,0),n}function qe(e,t,n){const[r,a]=function(e,...t){const n=Le.bind(null,t.find((e=>"object"==typeof e)));return t.map(n)}(0,e,t),o=ze(r),i=ze(a),s=+o-We(o),c=+i-We(i);return Math.round((s-c)/864e5)}function Ue(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+Ie(e)));var t}const Qe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Ke(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ge={date:Ke({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ke({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ke({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Xe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ze(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Je={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ze({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ze({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ze({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ze({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ze({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function et(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(i.length)}}}const tt={ordinalNumber:(nt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(nt.matchPattern);if(!n)return null;const r=n[0],a=e.match(nt.parsePattern);if(!a)return null;let o=nt.valueCallback?nt.valueCallback(a[0]):a[0];return o=t.valueCallback?t.valueCallback(o):o,{value:o,rest:e.slice(r.length)}}),era:et({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:et({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:et({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:et({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:et({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var nt;const rt={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=Qe[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Ge,formatRelative:(e,t,n,r)=>Xe[e],localize:Je,match:tt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function at(e,t){const n=Ie(e,t?.in),r=qe(n,function(e,t){const n=Ie(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n));return r+1}function ot(e,t){const n=Ie(e,t?.in),r=+$e(n)-+function(e,t){const n=Ve(e,t),r=Le(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),$e(r)}(n);return Math.round(r/Ae)+1}function it(e,t){const n=Ie(e,t?.in),r=n.getFullYear(),a=He(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=Le(t?.in||e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=Be(i,t),c=Le(t?.in||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Be(c,t);return+n>=+s?r+1:+n>=+u?r:r-1}function st(e,t){const n=Ie(e,t?.in),r=+Be(n,t)-+function(e,t){const n=He(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=it(e,t),o=Le(t?.in||e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),Be(o,t)}(n,t);return Math.round(r/Ae)+1}function ct(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const ut={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ct("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):ct(n+1,2)},d:(e,t)=>ct(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>ct(e.getHours()%12||12,t.length),H:(e,t)=>ct(e.getHours(),t.length),m:(e,t)=>ct(e.getMinutes(),t.length),s:(e,t)=>ct(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return ct(Math.trunc(r*Math.pow(10,n-3)),t.length)}},lt="midnight",dt="noon",pt="morning",ft="afternoon",ht="evening",mt="night",vt={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return ut.y(e,t)},Y:function(e,t,n,r){const a=it(e,r),o=a>0?a:1-a;if("YY"===t){return ct(o%100,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):ct(o,t.length)},R:function(e,t){return ct(Ve(e),t.length)},u:function(e,t){return ct(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ct(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ct(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ut.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ct(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=st(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):ct(a,t.length)},I:function(e,t,n){const r=ot(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ct(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):ut.d(e,t)},D:function(e,t,n){const r=at(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ct(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ct(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ct(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return ct(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(a=12===r?dt:0===r?lt:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(a=r>=17?ht:r>=12?ft:r>=4?pt:mt,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return ut.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):ut.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ut.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ut.s(e,t)},S:function(e,t){return ut.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return gt(r);case"XXXX":case"XX":return bt(r);default:return bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gt(r);case"xxxx":case"xx":return bt(r);default:return bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yt(r,":");default:return"GMT"+bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yt(r,":");default:return"GMT"+bt(r,":")}},t:function(e,t,n){return ct(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return ct(+e,t.length)}};function yt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return 0===o?n+String(a):n+String(a)+t+ct(o,2)}function gt(e,t){if(e%60==0){return(e>0?"-":"+")+ct(Math.abs(e)/60,2)}return bt(e,t)}function bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+ct(Math.trunc(r/60),2)+t+ct(r%60,2)}const wt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},xt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},kt={p:xt,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return wt(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",wt(r,t)).replace("{{time}}",xt(a,t))}},St=/^D+$/,Dt=/^Y+$/,_t=["D","DD","YY","YYYY"];const Et=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ct=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nt=/^'([^]*?)'?$/,Mt=/''/g,Tt=/[a-zA-Z]/;function Ft(e,t,n){const r=He(),a=r.locale??rt,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Ie(e,n?.in);if(!Ue(s))throw new RangeError("Invalid time value");let c=t.match(Ct).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,kt[t])(e,a.formatLong)}return e})).join("").match(Et).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Ot(e)};if(vt[t])return{isToken:!0,value:e};if(t.match(Tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));a.localize.preprocessor&&(c=a.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return c.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return Dt.test(e)}(r)||function(e){return St.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),_t.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,vt[r[0]])(s,r,a.localize,u)})).join("")}function Ot(e){const t=e.match(Nt);return t?t[1].replace(Mt,"'"):e}function jt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=jt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=jt(e))&&(r&&(r+=" "),r+=t);return r}function At(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function Rt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Lt(e,t){const n=At(e);return isNaN(t)?Rt(e,NaN):t?(n.setDate(n.getDate()+t),n):n}function It(e,t){const n=At(e);if(isNaN(t))return Rt(e,NaN);if(!t)return n;const r=n.getDate(),a=Rt(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);return r>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),r),n)}function Yt(e,t){return Rt(e,+At(e)+t)}const Ht=6048e5,Bt=6e4,$t=36e5;function Vt(e,t){return Yt(e,t*$t)}let Wt={};function zt(){return Wt}function qt(e,t){const n=zt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=At(e),o=a.getDay(),i=(o<r?7:0)+o-r;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function Ut(e){return qt(e,{weekStartsOn:1})}function Qt(e){const t=At(e),n=t.getFullYear(),r=Rt(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Ut(r),o=Rt(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=Ut(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Kt(e){const t=At(e);return t.setHours(0,0,0,0),t}function Gt(e){const t=At(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Xt(e,t){const n=Kt(e),r=Kt(t),a=+n-Gt(n),o=+r-Gt(r);return Math.round((a-o)/864e5)}function Zt(e,t){return Yt(e,t*Bt)}function Jt(e,t){return It(e,3*t)}function en(e,t){return Yt(e,1e3*t)}function tn(e,t){return Lt(e,7*t)}function nn(e,t){return It(e,12*t)}function rn(e){let t;return e.forEach((function(e){const n=At(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)}function an(e){let t;return e.forEach((e=>{const n=At(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)}function on(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function sn(e){if(!on(e)&&"number"!=typeof e)return!1;const t=At(e);return!isNaN(Number(t))}function cn(e,t){const n=At(e),r=At(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function un(e){const t=At(e);return Math.trunc(t.getMonth()/3)+1}function ln(e,t){const n=At(e),r=At(t);return 4*(n.getFullYear()-r.getFullYear())+(un(n)-un(r))}function dn(e,t){const n=At(e),r=At(t);return n.getFullYear()-r.getFullYear()}function pn(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function fn(e){const t=At(e);return t.setHours(23,59,59,999),t}function hn(e){const t=At(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function mn(e){const t=At(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function vn(e){const t=At(e);return t.setDate(1),t.setHours(0,0,0,0),t}function yn(e){const t=At(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function gn(e){const t=At(e),n=Rt(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const bn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function wn(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const xn={date:wn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:wn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:wn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Sn(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;r=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Dn={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Sn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Sn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Sn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Sn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Sn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function _n(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const i=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(i))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(i)));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(i.length)}}}const En={ordinalNumber:function(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=n.valueCallback?n.valueCallback(i):i;return{value:i,rest:t.slice(a.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:_n({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:_n({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:_n({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:_n({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Cn={code:"en-US",formatDistance:(e,t,n)=>{let r;const a=bn[e];return r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:xn,formatRelative:(e,t,n,r)=>kn[e],localize:Dn,match:En,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Nn(e){const t=At(e),n=+Ut(t)-+function(e){const t=Qt(e),n=Rt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ut(n)}(t);return Math.round(n/Ht)+1}function Mn(e,t){const n=At(e),r=n.getFullYear(),a=zt(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=Rt(e,0);i.setFullYear(r+1,0,o),i.setHours(0,0,0,0);const s=qt(i,t),c=Rt(e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=qt(c,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function Tn(e,t){const n=At(e),r=+qt(n,t)-+function(e,t){const n=zt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Mn(e,t),o=Rt(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),qt(o,t)}(n,t);return Math.round(r/Ht)+1}function Fn(e,t){return(e<0?"-":"")+Math.abs(e).toString().p