@inflow_pay/sdk 1.0.0 → 1.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk.umd.js CHANGED
@@ -1,53 +1,21 @@
1
- (function(W,V){typeof exports=="object"&&typeof module<"u"?V(exports):typeof define=="function"&&define.amd?define(["exports"],V):(W=typeof globalThis<"u"?globalThis:W||self,V(W.InflowPaySDK={}))})(this,function(W){"use strict";var V={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ke;function et(){if(ke)return V;ke=1;var u=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function c(w,m,a){var T=null;if(a!==void 0&&(T=""+a),m.key!==void 0&&(T=""+m.key),"key"in m){a={};for(var O in m)O!=="key"&&(a[O]=m[O])}else a=m;return m=a.ref,{$$typeof:u,type:w,key:T,ref:m!==void 0?m:null,props:a}}return V.Fragment=r,V.jsx=c,V.jsxs=c,V}var me={},be={exports:{}},h={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ie;function tt(){if(Ie)return h;Ie=1;var u=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),M=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),k=Symbol.iterator;function x(t){return t===null||typeof t!="object"?null:(t=k&&t[k]||t["@@iterator"],typeof t=="function"?t:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,Z={};function F(t,o,l){this.props=t,this.context=o,this.refs=Z,this.updater=l||H}F.prototype.isReactComponent={},F.prototype.setState=function(t,o){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,o,"setState")},F.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function J(){}J.prototype=F.prototype;function ie(t,o,l){this.props=t,this.context=o,this.refs=Z,this.updater=l||H}var ee=ie.prototype=new J;ee.constructor=ie,G(ee,F.prototype),ee.isPureReactComponent=!0;var K=Array.isArray;function ae(){}var b={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function U(t,o,l){var f=l.ref;return{$$typeof:u,type:t,key:o,ref:f!==void 0?f:null,props:l}}function te(t,o){return U(t.type,o,t.props)}function ue(t){return typeof t=="object"&&t!==null&&t.$$typeof===u}function R(t){var o={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(l){return o[l]})}var ne=/\/+/g;function B(t,o){return typeof t=="object"&&t!==null&&t.key!=null?R(""+t.key):o.toString(36)}function z(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(ae,ae):(t.status="pending",t.then(function(o){t.status==="pending"&&(t.status="fulfilled",t.value=o)},function(o){t.status==="pending"&&(t.status="rejected",t.reason=o)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Y(t,o,l,f,y){var S=typeof t;(S==="undefined"||S==="boolean")&&(t=null);var p=!1;if(t===null)p=!0;else switch(S){case"bigint":case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case u:case r:p=!0;break;case I:return p=t._init,Y(p(t._payload),o,l,f,y)}}if(p)return y=y(t),p=f===""?"."+B(t,0):f,K(y)?(l="",p!=null&&(l=p.replace(ne,"$&/")+"/"),Y(y,o,l,"",function(Q){return Q})):y!=null&&(ue(y)&&(y=te(y,l+(y.key==null||t&&t.key===y.key?"":(""+y.key).replace(ne,"$&/")+"/")+p)),o.push(y)),1;p=0;var D=f===""?".":f+":";if(K(t))for(var A=0;A<t.length;A++)f=t[A],S=D+B(f,A),p+=Y(f,o,l,S,y);else if(A=x(t),typeof A=="function")for(t=A.call(t),A=0;!(f=t.next()).done;)f=f.value,S=D+B(f,A++),p+=Y(f,o,l,S,y);else if(S==="object"){if(typeof t.then=="function")return Y(z(t),o,l,f,y);throw o=String(t),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return p}function q(t,o,l){if(t==null)return t;var f=[],y=0;return Y(t,f,"","",function(S){return o.call(l,S,y++)}),f}function re(t){if(t._status===-1){var o=t._result;o=o(),o.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l)},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l)}),t._status===-1&&(t._status=0,t._result=o)}if(t._status===1)return t._result.default;throw t._result}var X=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},ce={map:q,forEach:function(t,o,l){q(t,function(){o.apply(this,arguments)},l)},count:function(t){var o=0;return q(t,function(){o++}),o},toArray:function(t){return q(t,function(o){return o})||[]},only:function(t){if(!ue(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};return h.Activity=N,h.Children=ce,h.Component=F,h.Fragment=c,h.Profiler=m,h.PureComponent=ie,h.StrictMode=w,h.Suspense=P,h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,h.__COMPILER_RUNTIME={__proto__:null,c:function(t){return b.H.useMemoCache(t)}},h.cache=function(t){return function(){return t.apply(null,arguments)}},h.cacheSignal=function(){return null},h.cloneElement=function(t,o,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var f=G({},t.props),y=t.key;if(o!=null)for(S in o.key!==void 0&&(y=""+o.key),o)!fe.call(o,S)||S==="key"||S==="__self"||S==="__source"||S==="ref"&&o.ref===void 0||(f[S]=o[S]);var S=arguments.length-2;if(S===1)f.children=l;else if(1<S){for(var p=Array(S),D=0;D<S;D++)p[D]=arguments[D+2];f.children=p}return U(t.type,y,f)},h.createContext=function(t){return t={$$typeof:T,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:a,_context:t},t},h.createElement=function(t,o,l){var f,y={},S=null;if(o!=null)for(f in o.key!==void 0&&(S=""+o.key),o)fe.call(o,f)&&f!=="key"&&f!=="__self"&&f!=="__source"&&(y[f]=o[f]);var p=arguments.length-2;if(p===1)y.children=l;else if(1<p){for(var D=Array(p),A=0;A<p;A++)D[A]=arguments[A+2];y.children=D}if(t&&t.defaultProps)for(f in p=t.defaultProps,p)y[f]===void 0&&(y[f]=p[f]);return U(t,S,y)},h.createRef=function(){return{current:null}},h.forwardRef=function(t){return{$$typeof:O,render:t}},h.isValidElement=ue,h.lazy=function(t){return{$$typeof:I,_payload:{_status:-1,_result:t},_init:re}},h.memo=function(t,o){return{$$typeof:M,type:t,compare:o===void 0?null:o}},h.startTransition=function(t){var o=b.T,l={};b.T=l;try{var f=t(),y=b.S;y!==null&&y(l,f),typeof f=="object"&&f!==null&&typeof f.then=="function"&&f.then(ae,X)}catch(S){X(S)}finally{o!==null&&l.types!==null&&(o.types=l.types),b.T=o}},h.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},h.use=function(t){return b.H.use(t)},h.useActionState=function(t,o,l){return b.H.useActionState(t,o,l)},h.useCallback=function(t,o){return b.H.useCallback(t,o)},h.useContext=function(t){return b.H.useContext(t)},h.useDebugValue=function(){},h.useDeferredValue=function(t,o){return b.H.useDeferredValue(t,o)},h.useEffect=function(t,o){return b.H.useEffect(t,o)},h.useEffectEvent=function(t){return b.H.useEffectEvent(t)},h.useId=function(){return b.H.useId()},h.useImperativeHandle=function(t,o,l){return b.H.useImperativeHandle(t,o,l)},h.useInsertionEffect=function(t,o){return b.H.useInsertionEffect(t,o)},h.useLayoutEffect=function(t,o){return b.H.useLayoutEffect(t,o)},h.useMemo=function(t,o){return b.H.useMemo(t,o)},h.useOptimistic=function(t,o){return b.H.useOptimistic(t,o)},h.useReducer=function(t,o,l){return b.H.useReducer(t,o,l)},h.useRef=function(t){return b.H.useRef(t)},h.useState=function(t){return b.H.useState(t)},h.useSyncExternalStore=function(t,o,l){return b.H.useSyncExternalStore(t,o,l)},h.useTransition=function(){return b.H.useTransition()},h.version="19.2.4",h}var pe={exports:{}};/**
18
- * @license React
19
- * react.development.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */pe.exports;var De;function nt(){return De||(De=1,function(u,r){process.env.NODE_ENV!=="production"&&function(){function c(e,n){Object.defineProperty(a.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1])}})}function w(e){return e===null||typeof e!="object"?null:(e=Ye&&e[Ye]||e["@@iterator"],typeof e=="function"?e:null)}function m(e,n){e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass";var s=e+"."+n;$e[s]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",n,e),$e[s]=!0)}function a(e,n,s){this.props=e,this.context=n,this.refs=Oe,this.updater=s||We}function T(){}function O(e,n,s){this.props=e,this.context=n,this.refs=Oe,this.updater=s||We}function P(){}function M(e){return""+e}function I(e){try{M(e);var n=!1}catch{n=!0}if(n){n=console;var s=n.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),M(e)}}function N(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Pt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case t:return"Fragment";case l:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case D:return"SuspenseList";case Ue:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ce:return"Portal";case y:return e.displayName||"Context";case f:return(e._context.displayName||"Context")+".Consumer";case S:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A:return n=e.displayName||null,n!==null?n:N(e.type)||"Memo";case Q:n=e._payload,e=e._init;try{return N(e(n))}catch{}}return null}function k(e){if(e===t)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===Q)return"<...>";try{var n=N(e);return n?"<"+n+">":"<...>"}catch{return"<...>"}}function x(){var e=E.A;return e===null?null:e.getOwner()}function H(){return Error("react-stack-top-frame")}function G(e){if(ve.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return e.key!==void 0}function Z(e,n){function s(){Ge||(Ge=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function F(){var e=N(this.type);return Be[e]||(Be[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function J(e,n,s,i,d,_){var g=s.ref;return e={$$typeof:X,type:e,key:n,props:s,_owner:i},(g!==void 0?g:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:F}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:d}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function ie(e,n){return n=J(e.type,n,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(n._store.validated=e._store.validated),n}function ee(e){K(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===Q&&(e._payload.status==="fulfilled"?K(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===X}function ae(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(s){return n[s]})}function b(e,n){return typeof e=="object"&&e!==null&&e.key!=null?(I(e.key),ae(""+e.key)):n.toString(36)}function fe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(P,P):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n)},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function U(e,n,s,i,d){var _=typeof e;(_==="undefined"||_==="boolean")&&(e=null);var g=!1;if(e===null)g=!0;else switch(_){case"bigint":case"string":case"number":g=!0;break;case"object":switch(e.$$typeof){case X:case ce:g=!0;break;case Q:return g=e._init,U(g(e._payload),n,s,i,d)}}if(g){g=e,d=d(g);var C=i===""?"."+b(g,0):i;return ze(d)?(s="",C!=null&&(s=C.replace(Xe,"$&/")+"/"),U(d,n,s,"",function(oe){return oe})):d!=null&&(K(d)&&(d.key!=null&&(g&&g.key===d.key||I(d.key)),s=ie(d,s+(d.key==null||g&&g.key===d.key?"":(""+d.key).replace(Xe,"$&/")+"/")+C),i!==""&&g!=null&&K(g)&&g.key==null&&g._store&&!g._store.validated&&(s._store.validated=2),d=s),n.push(d)),1}if(g=0,C=i===""?".":i+":",ze(e))for(var v=0;v<e.length;v++)i=e[v],_=C+b(i,v),g+=U(i,n,s,_,d);else if(v=w(e),typeof v=="function")for(v===e.entries&&(Ve||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ve=!0),e=v.call(e),v=0;!(i=e.next()).done;)i=i.value,_=C+b(i,v++),g+=U(i,n,s,_,d);else if(_==="object"){if(typeof e.then=="function")return U(fe(e),n,s,i,d);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return g}function te(e,n,s){if(e==null)return e;var i=[],d=0;return U(e,i,"","",function(_){return n.call(s,_,d++)}),i}function ue(e){if(e._status===-1){var n=e._ioInfo;n!=null&&(n.start=n.end=performance.now()),n=e._result;var s=n();if(s.then(function(d){if(e._status===0||e._status===-1){e._status=1,e._result=d;var _=e._ioInfo;_!=null&&(_.end=performance.now()),s.status===void 0&&(s.status="fulfilled",s.value=d)}},function(d){if(e._status===0||e._status===-1){e._status=2,e._result=d;var _=e._ioInfo;_!=null&&(_.end=performance.now()),s.status===void 0&&(s.status="rejected",s.reason=d)}}),n=e._ioInfo,n!=null){n.value=s;var i=s.displayName;typeof i=="string"&&(n.name=i)}e._status===-1&&(e._status=0,e._result=s)}if(e._status===1)return n=e._result,n===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.InflowPaySDK={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),r=t(((e,t)=>{process.env.NODE_ENV!==`production`&&(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=G&&e[G]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;K[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),K[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=ae,this.updater=n||re}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=ae,this.updater=n||re}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case L:return`Fragment`;case z:return`Profiler`;case R:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ne:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case I:return`Portal`;case V:return e.displayName||`Context`;case B:return(e._context.displayName||`Context`)+`.Consumer`;case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||``,e=e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case U:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case W:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===L)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===W)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=J.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(Y.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){le||(le=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function _(){var e=d(this.type);return de[e]||(de[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:F,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===W&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===F}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case F:case I:s=!0;break;case W:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return oe(a)?(n=``,c!=null&&(n=c.replace(he,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(he,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,oe(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(me||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),me=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
26
2
 
27
3
  Your code should look like:
28
4
  const MyComponent = lazy(() => import('./MyComponent'))
29
5
 
30
- Did you accidentally put curly braces around the import?`,n),"default"in n||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,t),`default`in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
31
7
 
32
8
  Your code should look like:
33
- const MyComponent = lazy(() => import('./MyComponent'))`,n),n.default;throw e._result}function R(){var e=E.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function O(){var e=J.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
34
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
35
11
  2. You might be breaking the Rules of Hooks
36
12
  3. You might have more than one copy of React in the same app
37
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function ne(){E.asyncTransitions--}function B(e){if(we===null)try{var n=("require"+Math.random()).slice(0,7);we=(u&&u[n]).call(u,"timers").setImmediate}catch{we=function(i){Ze===!1&&(Ze=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var d=new MessageChannel;d.port1.onmessage=i,d.port2.postMessage(void 0)}}return we(e)}function z(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function Y(e,n){n!==Te-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Te=n}function q(e,n,s){var i=E.actQueue;if(i!==null)if(i.length!==0)try{re(i),B(function(){return q(e,n,s)});return}catch(d){E.thrownErrors.push(d)}else E.actQueue=null;0<E.thrownErrors.length?(i=z(E.thrownErrors),E.thrownErrors.length=0,s(i)):n(e)}function re(e){if(!Ae){Ae=!0;var n=0;try{for(;n<e.length;n++){var s=e[n];do{E.didUsePromise=!1;var i=s(!1);if(i!==null){if(E.didUsePromise){e[n]=s,e.splice(0,n);return}s=i}else break}while(!0)}e.length=0}catch(d){e.splice(0,n+1),E.thrownErrors.push(d)}finally{Ae=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var X=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),y=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Ue=Symbol.for("react.activity"),Ye=Symbol.iterator,$e={},We={isMounted:function(){return!1},enqueueForceUpdate:function(e){m(e,"forceUpdate")},enqueueReplaceState:function(e){m(e,"replaceState")},enqueueSetState:function(e){m(e,"setState")}},Ke=Object.assign,Oe={};Object.freeze(Oe),a.prototype.isReactComponent={},a.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var $={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(ge in $)$.hasOwnProperty(ge)&&c(ge,$[ge]);T.prototype=a.prototype,$=O.prototype=new T,$.constructor=O,Ke($,a.prototype),$.isPureReactComponent=!0;var ze=Array.isArray,Pt=Symbol.for("react.client.reference"),E={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ve=Object.prototype.hasOwnProperty,qe=console.createTask?console.createTask:function(){return null};$={react_stack_bottom_frame:function(e){return e()}};var Ge,Fe,Be={},xt=$.react_stack_bottom_frame.bind($,H)(),Lt=qe(k(H)),Ve=!1,Xe=/\/+/g,Qe=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ze=!1,we=null,Te=0,Se=!1,Ae=!1,Je=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:B;$=Object.freeze({__proto__:null,c:function(e){return R().useMemoCache(e)}});var ge={map:te,forEach:function(e,n,s){te(e,function(){n.apply(this,arguments)},s)},count:function(e){var n=0;return te(e,function(){n++}),n},toArray:function(e){return te(e,function(n){return n})||[]},only:function(e){if(!K(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};r.Activity=Ue,r.Children=ge,r.Component=a,r.Fragment=t,r.Profiler=l,r.PureComponent=O,r.StrictMode=o,r.Suspense=p,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,r.__COMPILER_RUNTIME=$,r.act=function(e){var n=E.actQueue,s=Te;Te++;var i=E.actQueue=n!==null?n:[],d=!1;try{var _=e()}catch(v){E.thrownErrors.push(v)}if(0<E.thrownErrors.length)throw Y(n,s),e=z(E.thrownErrors),E.thrownErrors.length=0,e;if(_!==null&&typeof _=="object"&&typeof _.then=="function"){var g=_;return Je(function(){d||Se||(Se=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(v,oe){d=!0,g.then(function(de){if(Y(n,s),s===0){try{re(i),B(function(){return q(de,v,oe)})}catch(jt){E.thrownErrors.push(jt)}if(0<E.thrownErrors.length){var Mt=z(E.thrownErrors);E.thrownErrors.length=0,oe(Mt)}}else v(de)},function(de){Y(n,s),0<E.thrownErrors.length&&(de=z(E.thrownErrors),E.thrownErrors.length=0),oe(de)})}}}var C=_;if(Y(n,s),s===0&&(re(i),i.length!==0&&Je(function(){d||Se||(Se=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),E.actQueue=null),0<E.thrownErrors.length)throw e=z(E.thrownErrors),E.thrownErrors.length=0,e;return{then:function(v,oe){d=!0,s===0?(E.actQueue=i,B(function(){return q(C,v,oe)})):v(C)}}},r.cache=function(e){return function(){return e.apply(null,arguments)}},r.cacheSignal=function(){return null},r.captureOwnerStack=function(){var e=E.getCurrentStack;return e===null?null:e()},r.cloneElement=function(e,n,s){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Ke({},e.props),d=e.key,_=e._owner;if(n!=null){var g;e:{if(ve.call(n,"ref")&&(g=Object.getOwnPropertyDescriptor(n,"ref").get)&&g.isReactWarning){g=!1;break e}g=n.ref!==void 0}g&&(_=x()),G(n)&&(I(n.key),d=""+n.key);for(C in n)!ve.call(n,C)||C==="key"||C==="__self"||C==="__source"||C==="ref"&&n.ref===void 0||(i[C]=n[C])}var C=arguments.length-2;if(C===1)i.children=s;else if(1<C){g=Array(C);for(var v=0;v<C;v++)g[v]=arguments[v+2];i.children=g}for(i=J(e.type,d,i,_,e._debugStack,e._debugTask),d=2;d<arguments.length;d++)ee(arguments[d]);return i},r.createContext=function(e){return e={$$typeof:y,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:f,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},r.createElement=function(e,n,s){for(var i=2;i<arguments.length;i++)ee(arguments[i]);i={};var d=null;if(n!=null)for(v in Fe||!("__self"in n)||"key"in n||(Fe=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),G(n)&&(I(n.key),d=""+n.key),n)ve.call(n,v)&&v!=="key"&&v!=="__self"&&v!=="__source"&&(i[v]=n[v]);var _=arguments.length-2;if(_===1)i.children=s;else if(1<_){for(var g=Array(_),C=0;C<_;C++)g[C]=arguments[C+2];Object.freeze&&Object.freeze(g),i.children=g}if(e&&e.defaultProps)for(v in _=e.defaultProps,_)i[v]===void 0&&(i[v]=_[v]);d&&Z(i,typeof e=="function"?e.displayName||e.name||"Unknown":e);var v=1e4>E.recentlyCreatedOwnerStacks++;return J(e,d,i,x(),v?Error("react-stack-top-frame"):xt,v?qe(k(e)):Lt)},r.createRef=function(){var e={current:null};return Object.seal(e),e},r.forwardRef=function(e){e!=null&&e.$$typeof===A?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var n={$$typeof:S,render:e},s;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return s},set:function(i){s=i,e.name||e.displayName||(Object.defineProperty(e,"name",{value:i}),e.displayName=i)}}),n},r.isValidElement=K,r.lazy=function(e){e={_status:-1,_result:e};var n={$$typeof:Q,_payload:e,_init:ue},s={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return e._ioInfo=s,n._debugInfo=[{awaited:s}],n},r.memo=function(e,n){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),n={$$typeof:A,type:e,compare:n===void 0?null:n};var s;return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return s},set:function(i){s=i,e.name||e.displayName||(Object.defineProperty(e,"name",{value:i}),e.displayName=i)}}),n},r.startTransition=function(e){var n=E.T,s={};s._updatedFibers=new Set,E.T=s;try{var i=e(),d=E.S;d!==null&&d(s,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&(E.asyncTransitions++,i.then(ne,ne),i.then(P,Qe))}catch(_){Qe(_)}finally{n===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),n!==null&&s.types!==null&&(n.types!==null&&n.types!==s.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=s.types),E.T=n}},r.unstable_useCacheRefresh=function(){return R().useCacheRefresh()},r.use=function(e){return R().use(e)},r.useActionState=function(e,n,s){return R().useActionState(e,n,s)},r.useCallback=function(e,n){return R().useCallback(e,n)},r.useContext=function(e){var n=R();return e.$$typeof===f&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),n.useContext(e)},r.useDebugValue=function(e,n){return R().useDebugValue(e,n)},r.useDeferredValue=function(e,n){return R().useDeferredValue(e,n)},r.useEffect=function(e,n){return e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),R().useEffect(e,n)},r.useEffectEvent=function(e){return R().useEffectEvent(e)},r.useId=function(){return R().useId()},r.useImperativeHandle=function(e,n,s){return R().useImperativeHandle(e,n,s)},r.useInsertionEffect=function(e,n){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),R().useInsertionEffect(e,n)},r.useLayoutEffect=function(e,n){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),R().useLayoutEffect(e,n)},r.useMemo=function(e,n){return R().useMemo(e,n)},r.useOptimistic=function(e,n){return R().useOptimistic(e,n)},r.useReducer=function(e,n,s){return R().useReducer(e,n,s)},r.useRef=function(e){return R().useRef(e)},r.useState=function(e){return R().useState(e)},r.useSyncExternalStore=function(e,n,s){return R().useSyncExternalStore(e,n,s)},r.useTransition=function(){return R().useTransition()},r.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(pe,pe.exports)),pe.exports}process.env.NODE_ENV==="production"?be.exports=tt():be.exports=nt();var Ne=be.exports;/**
38
- * @license React
39
- * react-jsx-runtime.development.js
40
- *
41
- * Copyright (c) Meta Platforms, Inc. and affiliates.
42
- *
43
- * This source code is licensed under the MIT license found in the
44
- * LICENSE file in the root directory of this source tree.
45
- */var Pe;function rt(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&function(){function u(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ue?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Z:return"Fragment";case J:return"Profiler";case F:return"StrictMode";case ae:return"Suspense";case b:return"SuspenseList";case te:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case G:return"Portal";case ee:return t.displayName||"Context";case ie:return(t._context.displayName||"Context")+".Consumer";case K:var o=t.render;return t=t.displayName,t||(t=o.displayName||o.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case fe:return o=t.displayName||null,o!==null?o:u(t.type)||"Memo";case U:o=t._payload,t=t._init;try{return u(t(o))}catch{}}return null}function r(t){return""+t}function c(t){try{r(t);var o=!1}catch{o=!0}if(o){o=console;var l=o.error,f=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return l.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",f),r(t)}}function w(t){if(t===Z)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===U)return"<...>";try{var o=u(t);return o?"<"+o+">":"<...>"}catch{return"<...>"}}function m(){var t=R.A;return t===null?null:t.getOwner()}function a(){return Error("react-stack-top-frame")}function T(t){if(ne.call(t,"key")){var o=Object.getOwnPropertyDescriptor(t,"key").get;if(o&&o.isReactWarning)return!1}return t.key!==void 0}function O(t,o){function l(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}l.isReactWarning=!0,Object.defineProperty(t,"key",{get:l,configurable:!0})}function P(){var t=u(this.type);return q[t]||(q[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function M(t,o,l,f,y,S){var p=l.ref;return t={$$typeof:H,type:t,key:o,props:l,_owner:f},(p!==void 0?p:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:P}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function I(t,o,l,f,y,S){var p=o.children;if(p!==void 0)if(f)if(B(p)){for(f=0;f<p.length;f++)N(p[f]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(p);if(ne.call(o,"key")){p=u(t);var D=Object.keys(o).filter(function(Q){return Q!=="key"});f=0<D.length?"{key: someKey, "+D.join(": ..., ")+": ...}":"{key: someKey}",ce[p+f]||(D=0<D.length?"{"+D.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){J.asyncTransitions--}function A(e){if(X===null)try{var n=(`require`+Math.random()).slice(0,7);X=(t&&t[n]).call(t,`timers`).setImmediate}catch{X=function(e){!1===_e&&(_e=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return X(e)}function j(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function M(e,t){t!==Z-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Z=t}function N(e,t,n){var r=J.actQueue;if(r!==null)if(r.length!==0)try{P(r),A(function(){return N(e,t,n)});return}catch(e){J.thrownErrors.push(e)}else J.actQueue=null;0<J.thrownErrors.length?(r=j(J.thrownErrors),J.thrownErrors.length=0,n(r)):t(e)}function P(e){if(!ve){ve=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{J.didUsePromise=!1;var r=n(!1);if(r!==null){if(J.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),J.thrownErrors.push(n)}finally{ve=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F=Symbol.for(`react.transitional.element`),I=Symbol.for(`react.portal`),L=Symbol.for(`react.fragment`),R=Symbol.for(`react.strict_mode`),z=Symbol.for(`react.profiler`),B=Symbol.for(`react.consumer`),V=Symbol.for(`react.context`),H=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),U=Symbol.for(`react.memo`),W=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),G=Symbol.iterator,K={},re={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},ie=Object.assign,ae={};Object.freeze(ae),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var q={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for($ in q)q.hasOwnProperty($)&&n($,q[$]);o.prototype=a.prototype,q=s.prototype=new o,q.constructor=s,ie(q,a.prototype),q.isPureReactComponent=!0;var oe=Array.isArray,se=Symbol.for(`react.client.reference`),J={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Y=Object.prototype.hasOwnProperty,ce=console.createTask?console.createTask:function(){return null};q={react_stack_bottom_frame:function(e){return e()}};var le,ue,de={},fe=q.react_stack_bottom_frame.bind(q,m)(),pe=ce(f(m)),me=!1,he=/\/+/g,ge=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},_e=!1,X=null,Z=0,Q=!1,ve=!1,ye=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:A;q=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var $={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=ne,e.Children=$,e.Component=a,e.Fragment=L,e.Profiler=z,e.PureComponent=s,e.StrictMode=R,e.Suspense=ee,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,e.__COMPILER_RUNTIME=q,e.act=function(e){var t=J.actQueue,n=Z;Z++;var r=J.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){J.thrownErrors.push(e)}if(0<J.thrownErrors.length)throw M(t,n),e=j(J.thrownErrors),J.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return ye(function(){i||Q||(Q=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(M(t,n),n===0){try{P(r),A(function(){return N(i,e,a)})}catch(e){J.thrownErrors.push(e)}if(0<J.thrownErrors.length){var o=j(J.thrownErrors);J.thrownErrors.length=0,a(o)}}else e(i)},function(e){M(t,n),0<J.thrownErrors.length?(e=j(J.thrownErrors),J.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(M(t,n),n===0&&(P(r),r.length!==0&&ye(function(){i||Q||(Q=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),J.actQueue=null),0<J.thrownErrors.length)throw e=j(J.thrownErrors),J.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(J.actQueue=r,A(function(){return N(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=J.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=ie({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(Y.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!Y.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:V,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:B,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in ue||!(`__self`in t)||`key`in t||(ue=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)Y.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>J.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):fe,c?ce(f(e)):pe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===U?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:H,render:e},n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:W,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:U,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,`displayName`,{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,`name`,{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=J.T,n={};n._updatedFibers=new Set,J.T=n;try{var r=e(),i=J.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(J.asyncTransitions++,r.then(k,k),r.then(c,ge))}catch(e){ge(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),J.T=t}},e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===B&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.2.4`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),i=t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=n():t.exports=r()})),a=i(),o=function(e){return e.SUCCESS=`SUCCESS`,e.FAILED=`FAILED`,e}({}),s=function(e){return e.THREE_DS_FAILED=`THREE_DS_FAILED`,e.PAYMENT_PROCESSING_ERROR=`PAYMENT_PROCESSING_ERROR`,e}({}),c=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),l=t((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||``,e=e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case D:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function a(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===D)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function o(){var e=A.A;return e===null?null:e.getOwner()}function s(){return Error(`react-stack-top-frame`)}function c(e){if(j.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function l(e,t){function n(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function u(){var e=t(this.type);return F[e]||(F[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function d(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:u}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,n,i,a,s,u){var f=n.children;if(f!==void 0)if(a)if(M(f)){for(a=0;a<f.length;a++)p(f[a]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(j.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});a=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,R[f+a]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
46
14
  let props = %s;
47
15
  <%s {...props} />
48
16
  React keys must be passed directly to JSX without using spread:
49
17
  let props = %s;
50
- <%s key={someKey} {...props} />`,f,p,D,p),ce[p+f]=!0)}if(p=null,l!==void 0&&(c(l),p=""+l),T(o)&&(c(o.key),p=""+o.key),"key"in o){l={};for(var A in o)A!=="key"&&(l[A]=o[A])}else l=o;return p&&O(l,typeof t=="function"?t.displayName||t.name||"Unknown":t),M(t,p,l,m(),y,S)}function N(t){k(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===U&&(t._payload.status==="fulfilled"?k(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function k(t){return typeof t=="object"&&t!==null&&t.$$typeof===H}var x=Ne,H=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),ie=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),R=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.prototype.hasOwnProperty,B=Array.isArray,z=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(t){return t()}};var Y,q={},re=x.react_stack_bottom_frame.bind(x,a)(),X=z(w(a)),ce={};me.Fragment=Z,me.jsx=function(t,o,l){var f=1e4>R.recentlyCreatedOwnerStacks++;return I(t,o,l,!1,f?Error("react-stack-top-frame"):re,f?z(w(t)):X)},me.jsxs=function(t,o,l){var f=1e4>R.recentlyCreatedOwnerStacks++;return I(t,o,l,!0,f?Error("react-stack-top-frame"):re,f?z(w(t)):X)}}()),me}process.env.NODE_ENV==="production"?et():rt();var ye=(u=>(u.SUCCESS="SUCCESS",u.FAILED="FAILED",u))(ye||{}),xe=(u=>(u.THREE_DS_FAILED="THREE_DS_FAILED",u.PAYMENT_PROCESSING_ERROR="PAYMENT_PROCESSING_ERROR",u))(xe||{});Ne.createContext(null);const Ee={OVERLAY:999999,MODAL:1e6,LOADER:1e3},L={MIN_HEIGHT:196,CONTAINER_MAX_WIDTH:"500px",CONTAINER_WIDTH_PERCENT:"90%",CONTAINER_HEIGHT_PERCENT:"90%",CONTAINER_MAX_HEIGHT:"600px",BUTTON_SIZE:30,DEFAULT_IFRAME_WIDTH:"344px"},ot=["https://dev.api.inflowpay.xyz","https://pre-prod.api.inflowpay.xyz","https://api.inflowpay.xyz"],se={OVERLAY:"inflowpay-sdk-overlay",LOADER:"inflowpay-loader",LOADER_STYLES:"inflowpay-loader-styles",THREE_DS_OVERLAY:"inflowpay-3ds-overlay"},_e={PRODUCTION:"https://iframe.inflowpay.com/iframe/checkout",PREPROD:"https://preprod.iframe.inflowpay.com/iframe/checkout",DEVELOPMENT:"https://dev.iframe.inflowpay.com/iframe/checkout",LOCAL:"http://localhost:3010/iframe/checkout"};function st(u){return{inputBgColor:u?"#2d2d2d":"#F5F5F5",shimmerBase:u?"#3d3d3d":"#E5E5E5",shimmerLight:u?"#4d4d4d":"#F0F0F0"}}function it(u){return`linear-gradient(90deg, ${u.shimmerBase} 25%, ${u.shimmerLight} 50%, ${u.shimmerBase} 75%)`}function at(){return`
18
+ <%s key={someKey} {...props} />`,a,f,m,f),R[f+a]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),c(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&l(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),d(e,f,i,o(),s,u)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===D&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=i(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),A=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,M=Array.isArray,N=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var P,F={},I=h.react_stack_bottom_frame.bind(h,s)(),L=N(a(s)),R={};e.Fragment=v,e.jsx=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return f(e,t,n,!1,r?Error(`react-stack-top-frame`):I,r?N(a(e)):L)},e.jsxs=function(e,t,n){var r=1e4>A.recentlyCreatedOwnerStacks++;return f(e,t,n,!0,r?Error(`react-stack-top-frame`):I,r?N(a(e)):L)}})()}));t(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=c():t.exports=l()}))(),(0,a.createContext)(null);var u={OVERLAY:999999,MODAL:1e6,LOADER:1e3},d={MIN_HEIGHT:196,CONTAINER_MAX_WIDTH:`500px`,CONTAINER_WIDTH_PERCENT:`90%`,CONTAINER_HEIGHT_PERCENT:`90%`,CONTAINER_MAX_HEIGHT:`600px`,BUTTON_SIZE:30,DEFAULT_IFRAME_WIDTH:`344px`},f=[`https://dev.api.inflowpay.xyz`,`https://pre-prod.api.inflowpay.xyz`,`https://api.inflowpay.xyz`],p={OVERLAY:`inflowpay-sdk-overlay`,LOADER:`inflowpay-loader`,LOADER_STYLES:`inflowpay-loader-styles`,THREE_DS_OVERLAY:`inflowpay-3ds-overlay`,THREE_DS_CLOSE:`inflowpay-3ds-close`},m={PRODUCTION:`https://iframe.inflowpay.com/iframe/checkout`,PREPROD:`https://preprod.iframe.inflowpay.com/iframe/checkout`,DEVELOPMENT:`https://dev.iframe.inflowpay.com/iframe/checkout`,LOCAL:`http://localhost:3010/iframe/checkout`};function h(e){return{inputBgColor:e?`#2d2d2d`:`#F5F5F5`,shimmerBase:e?`#3d3d3d`:`#E5E5E5`,shimmerLight:e?`#4d4d4d`:`#F0F0F0`}}function g(e){return`linear-gradient(90deg, ${e.shimmerBase} 25%, ${e.shimmerLight} 50%, ${e.shimmerBase} 75%)`}function _(){return`
51
19
  position: fixed;
52
20
  top: 0;
53
21
  left: 0;
@@ -57,115 +25,115 @@ React keys must be passed directly to JSX without using spread:
57
25
  display: flex;
58
26
  align-items: center;
59
27
  justify-content: center;
60
- z-index: ${Ee.OVERLAY};
61
- `}function ut(){return`
28
+ z-index: ${u.OVERLAY};
29
+ `}function v(){return`
62
30
  position: relative;
63
- width: ${L.CONTAINER_WIDTH_PERCENT};
64
- max-width: ${L.CONTAINER_MAX_WIDTH};
65
- height: ${L.CONTAINER_HEIGHT_PERCENT};
66
- max-height: ${L.CONTAINER_MAX_HEIGHT};
31
+ width: ${d.CONTAINER_WIDTH_PERCENT};
32
+ max-width: ${d.CONTAINER_MAX_WIDTH};
33
+ height: ${d.CONTAINER_HEIGHT_PERCENT};
34
+ max-height: ${d.CONTAINER_MAX_HEIGHT};
67
35
  background: white;
68
36
  border-radius: 8px;
69
37
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
70
- `}function ct(){return`
38
+ `}function y(){return`
71
39
  position: absolute;
72
40
  top: 10px;
73
41
  right: 10px;
74
- width: ${L.BUTTON_SIZE}px;
75
- height: ${L.BUTTON_SIZE}px;
42
+ width: ${d.BUTTON_SIZE}px;
43
+ height: ${d.BUTTON_SIZE}px;
76
44
  border: none;
77
45
  background: transparent;
78
46
  font-size: 24px;
79
47
  cursor: pointer;
80
- z-index: ${Ee.MODAL};
48
+ z-index: ${u.MODAL};
81
49
  color: #333;
82
50
  display: flex;
83
51
  align-items: center;
84
52
  justify-content: center;
85
- `}function lt(){return`
53
+ `}function b(){return`
86
54
  width: 100%;
87
55
  height: 100%;
88
56
  border: none;
89
57
  border-radius: 8px;
90
- `}function ft(u){return`
91
- width: ${u?"100%":L.DEFAULT_IFRAME_WIDTH};
92
- max-width: ${u?"none":"100%"};
93
- height: ${L.MIN_HEIGHT}px;
94
- min-height: ${L.MIN_HEIGHT}px;
58
+ `}function x(e){return`
59
+ width: ${e?`100%`:d.DEFAULT_IFRAME_WIDTH};
60
+ max-width: ${e?`none`:`100%`};
61
+ height: ${d.MIN_HEIGHT}px;
62
+ min-height: ${d.MIN_HEIGHT}px;
95
63
  border: none;
96
64
  display: block;
97
65
  transition: height 0.2s ease;
98
- `}function dt(){return`
66
+ `}function S(){return`
99
67
  position: absolute;
100
68
  top: 0;
101
69
  left: 0;
102
70
  width: 100%;
103
71
  height: 100%;
104
- z-index: ${Ee.LOADER};
72
+ z-index: ${u.LOADER};
105
73
  padding: 20px;
106
74
  box-sizing: border-box;
107
75
  display: flex;
108
76
  flex-direction: column;
109
77
  align-items: center;
110
- `}function mt(u){return`
111
- width: ${u?"100%":L.DEFAULT_IFRAME_WIDTH};
78
+ `}function C(e){return`
79
+ width: ${e?`100%`:d.DEFAULT_IFRAME_WIDTH};
112
80
  max-width: 100%;
113
81
  margin: 0 auto;
114
- `}function pt(u){return`
82
+ `}function w(e){return`
115
83
  display: flex;
116
84
  align-items: center;
117
85
  justify-content: center;
118
86
  gap: 6px;
119
- background-color: ${u};
87
+ background-color: ${e};
120
88
  padding: 8px;
121
89
  border-radius: 8px;
122
90
  margin-bottom: 20px;
123
- `}function le(u){return`
124
- background: ${u};
91
+ `}function T(e){return`
92
+ background: ${e};
125
93
  background-size: 200% 100%;
126
94
  animation: inflowpay-shimmer 1.5s infinite;
127
- `}function ht(u){return`
95
+ `}function E(e){return`
128
96
  flex: 1;
129
97
  min-width: 0;
130
98
  height: 32px;
131
99
  border-radius: 6px;
132
- ${le(u)}
133
- `}function gt(u){return`
100
+ ${T(e)}
101
+ `}function D(e){return`
134
102
  width: 21.5%;
135
103
  flex-shrink: 0;
136
104
  height: 32px;
137
105
  border-radius: 6px;
138
- ${le(u)}
139
- `}function yt(u){return`
106
+ ${T(e)}
107
+ `}function O(e){return`
140
108
  width: 17.5%;
141
109
  flex-shrink: 0;
142
110
  height: 32px;
143
111
  border-radius: 6px;
144
- ${le(u)}
145
- `}function Et(u){return`
112
+ ${T(e)}
113
+ `}function k(e){return`
146
114
  width: 100%;
147
115
  height: 42px;
148
116
  border-radius: 8px;
149
- ${le(u)}
117
+ ${T(e)}
150
118
  margin-bottom: 16px;
151
- `}function _t(){return`
119
+ `}function A(){return`
152
120
  display: flex;
153
121
  flex-direction: column;
154
122
  align-items: center;
155
123
  gap: 4px;
156
124
  width: 100%;
157
125
  margin-top: 16px;
158
- `}function vt(u){return`
126
+ `}function j(e){return`
159
127
  width: 10px;
160
128
  height: 10px;
161
129
  border-radius: 50%;
162
- ${le(u)}
163
- `}function wt(u){return`
130
+ ${T(e)}
131
+ `}function M(e){return`
164
132
  width: 80%;
165
133
  height: 16px;
166
134
  border-radius: 4px;
167
- ${le(u)}
168
- `}const Tt=`
135
+ ${T(e)}
136
+ `}var N=`
169
137
  @keyframes inflowpay-shimmer {
170
138
  0% {
171
139
  background-position: -200% 0;
@@ -174,7 +142,7 @@ React keys must be passed directly to JSX without using spread:
174
142
  background-position: 200% 0;
175
143
  }
176
144
  }
177
- `;function St(){return`
145
+ `;function P(){return`
178
146
  position: fixed;
179
147
  top: 0;
180
148
  left: 0;
@@ -184,35 +152,35 @@ React keys must be passed directly to JSX without using spread:
184
152
  display: flex;
185
153
  align-items: center;
186
154
  justify-content: center;
187
- z-index: ${Ee.OVERLAY};
188
- `}function bt(){return`
155
+ z-index: ${u.OVERLAY};
156
+ `}function F(){return`
189
157
  position: relative;
190
- width: ${L.CONTAINER_WIDTH_PERCENT};
191
- max-width: ${L.CONTAINER_MAX_WIDTH};
192
- height: ${L.CONTAINER_HEIGHT_PERCENT};
193
- max-height: ${L.CONTAINER_MAX_HEIGHT};
158
+ width: ${d.CONTAINER_WIDTH_PERCENT};
159
+ max-width: ${d.CONTAINER_MAX_WIDTH};
160
+ height: ${d.CONTAINER_HEIGHT_PERCENT};
161
+ max-height: ${d.CONTAINER_MAX_HEIGHT};
194
162
  background: white;
195
163
  border-radius: 16px;
196
164
  overflow: hidden;
197
165
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
198
166
  display: flex;
199
167
  flex-direction: column;
200
- `}function Rt(){return`
168
+ `}function I(){return`
201
169
  display: flex;
202
170
  align-items: center;
203
171
  justify-content: space-between;
204
172
  padding: 15px 20px;
205
173
  border-bottom: 1px solid #e5e5e5;
206
- `}function Ct(){return`
174
+ `}function L(){return`
207
175
  flex: 1;
208
176
  position: relative;
209
177
  overflow-y: auto;
210
178
  overflow-x: hidden;
211
- `}function Ot(){return`
179
+ `}function R(){return`
212
180
  width: 100%;
213
181
  height: 100%;
214
182
  border: none;
215
- `}class Le{constructor(r,c={}){this.loaderElement=null,this.container=r,this.config=c}show(r){r&&(r.style.display="none");const c=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,w=st(c),m=it(w),a=document.createElement("div");a.id=se.LOADER,a.style.cssText=dt();const T=document.createElement("div");T.style.cssText=mt(this.config.fillParent||!1);const O=document.createElement("div");O.style.cssText=pt(w.inputBgColor);const P=document.createElement("div");P.className="inflowpay-skeleton",P.style.cssText=ht(m);const M=document.createElement("div");M.className="inflowpay-skeleton",M.style.cssText=gt(m);const I=document.createElement("div");I.className="inflowpay-skeleton",I.style.cssText=yt(m),O.appendChild(P),O.appendChild(M),O.appendChild(I);const N=document.createElement("div");N.className="inflowpay-skeleton",N.style.cssText=Et(m);const k=document.createElement("div");k.style.cssText=_t();const x=document.createElement("div");x.className="inflowpay-skeleton",x.style.cssText=vt(m);const H=document.createElement("div");H.className="inflowpay-skeleton",H.style.cssText=wt(m),k.appendChild(x),k.appendChild(H),T.appendChild(O),T.appendChild(N),T.appendChild(k),a.appendChild(T),this.injectShimmerStyles(),this.container.appendChild(a),this.loaderElement=a}hide(r){const c=document.getElementById(se.LOADER);c&&c.remove(),this.loaderElement=null,r&&(r.style.display="")}injectShimmerStyles(){if(!document.getElementById(se.LOADER_STYLES)){const r=document.createElement("style");r.id=se.LOADER_STYLES,r.textContent=Tt,document.head.appendChild(r)}}}const j=class j{constructor(r){this.config=r}open(r,c,w){return this.config.debug&&(console.log("[SDK] open3DSModal called with URL:",r),console.log("[SDK] Session ID:",c,"Payment ID:",w)),j.activeModal&&(console.warn("[SDK] Closing existing modal before opening new one"),j.activeModal.overlay.remove(),j.activeModal=null),new Promise(m=>{const a=document.createElement("div");a.id=se.THREE_DS_OVERLAY,a.style.cssText=St();const T=document.createElement("div");T.style.cssText=bt();const O=document.createElement("div");O.style.cssText=Rt(),O.innerHTML=`
183
+ `}var z=class{constructor(e,t={}){this.loaderElement=null,this.container=e,this.config=t}show(e){e&&(e.style.display=`none`);let t=h(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches),n=g(t),r=document.createElement(`div`);r.id=p.LOADER,r.style.cssText=S();let i=document.createElement(`div`);i.style.cssText=C(this.config.fillParent||!1);let a=document.createElement(`div`);a.style.cssText=w(t.inputBgColor);let o=document.createElement(`div`);o.className=`inflowpay-skeleton`,o.style.cssText=E(n);let s=document.createElement(`div`);s.className=`inflowpay-skeleton`,s.style.cssText=D(n);let c=document.createElement(`div`);c.className=`inflowpay-skeleton`,c.style.cssText=O(n),a.appendChild(o),a.appendChild(s),a.appendChild(c);let l=document.createElement(`div`);l.className=`inflowpay-skeleton`,l.style.cssText=k(n);let u=document.createElement(`div`);u.style.cssText=A();let d=document.createElement(`div`);d.className=`inflowpay-skeleton`,d.style.cssText=j(n);let f=document.createElement(`div`);f.className=`inflowpay-skeleton`,f.style.cssText=M(n),u.appendChild(d),u.appendChild(f),i.appendChild(a),i.appendChild(l),i.appendChild(u),r.appendChild(i),this.injectShimmerStyles(),this.container.appendChild(r),this.loaderElement=r}hide(e){let t=document.getElementById(p.LOADER);t&&t.remove(),this.loaderElement=null,e&&(e.style.display=``)}injectShimmerStyles(){if(!document.getElementById(p.LOADER_STYLES)){let e=document.createElement(`style`);e.id=p.LOADER_STYLES,e.textContent=N,document.head.appendChild(e)}}},B,V=class e{constructor(e){this.config=e}open(t,n,r){return this.config.debug&&(console.log(`[SDK] open3DSModal called with URL:`,t),console.log(`[SDK] Session ID:`,n,`Payment ID:`,r)),e.activeModal&&(console.warn(`[SDK] Closing existing modal before opening new one`),e.activeModal.overlay.remove(),e.activeModal=null),new Promise(i=>{let a=document.createElement(`div`);a.id=p.THREE_DS_OVERLAY,a.style.cssText=P();let o=document.createElement(`div`);o.style.cssText=F();let s=document.createElement(`div`);s.style.cssText=I(),s.innerHTML=`
216
184
  <h3 style="margin: 0; font-size: 18px; font-weight: 600;">Secure Payment Authentication</h3>
217
- `;const P=document.createElement("div");P.style.cssText=Ct();const M=document.createElement("iframe");M.src=r,M.style.cssText=Ot(),M.setAttribute("allow","payment"),M.setAttribute("sandbox","allow-forms allow-scripts allow-same-origin allow-popups"),P.appendChild(M),T.appendChild(O),T.appendChild(P),a.appendChild(T),document.body.appendChild(a),j.activeModal={overlay:a,sessionId:c,paymentId:w};const I=N=>{if(!N.data)return;if(!this.isAllowedOrigin(N.origin)){this.config.debug&&console.warn("[SDK] Rejected 3DS message from unauthorized origin:",N.origin);return}const k=N.data,x=k.type==="THREE_DS_COMPLETE"||k.type==="3ds-complete",H=k.status==="success",G=k.status==="failed"||k.status==="failure";if(x&&H){a.remove(),window.removeEventListener("message",I),m(!0);return}if(H&&!x){a.remove(),window.removeEventListener("message",I),m(!0);return}if(x&&G||k.type==="3ds-failed"||G){a.remove(),window.removeEventListener("message",I),m(!1);return}};window.addEventListener("message",I)})}static close(r){if(!j.activeModal){console.log("[SDK] No active modal to close");return}if(r&&j.activeModal.sessionId!==r){console.warn(`[SDK] Session ID mismatch: webhook for ${r}, but modal is for ${j.activeModal.sessionId}. Ignoring close request.`);return}console.log("[SDK] Closing modal for session:",r||j.activeModal.sessionId),j.activeModal.overlay.remove(),j.activeModal=null}static isModalOpen(){return j.activeModal!==null}static getCurrentSessionId(){return j.activeModal?.sessionId||null}isAllowedOrigin(r){return!!(ot.includes(r)||(this.config.environment==="sandbox"||this.config.environment==="development")&&(r.includes("localhost")||r.includes("127.0.0.1")))}};j.activeModal=null;let he=j;class Re{static createOverlay(r,c){const w=document.createElement("div");w.id=se.OVERLAY,w.style.cssText=at();const m=document.createElement("div");m.style.cssText=ut();const a=document.createElement("button");a.innerHTML="×",a.style.cssText=ct(),a.onclick=c;const T=document.createElement("iframe");return T.src=r,T.style.cssText=lt(),T.setAttribute("allow","payment"),m.appendChild(a),m.appendChild(T),w.appendChild(m),w.addEventListener("click",O=>{O.target===w&&c()}),{overlay:w,container:m,iframe:T}}static removeOverlay(){const r=document.getElementById(se.OVERLAY);r&&r.remove()}}const At=["en","de","es","fr","it","nl","pl","pt"];function kt(){if(typeof window>"u")return"en";try{const r=(navigator.language||navigator.userLanguage||"").split("-")[0].toLowerCase();if(At.includes(r))return r}catch{}return"en"}function Ce(u){return u.includes("_local_")||u.startsWith("inflow_local_")?"sandbox":u.includes("_prod_")&&!u.includes("_preprod_")?"production":u.includes("_preprod_")||u.startsWith("inflow_preprod_")?"preprod":u.includes("_dev_")?"development":"sandbox"}function Me(u){switch(Ce(u)){case"production":return _e.PRODUCTION;case"preprod":return _e.PREPROD;case"development":return _e.DEVELOPMENT;case"sandbox":default:return _e.LOCAL}}class It{constructor(r){if(this.iframe=null,this.messageListener=null,this.containerElement=null,this.loaderManager=null,this.config=r,this.iframeUrl=r.iframeUrl||Me(r.publicKey||""),this.environment=Ce(r.publicKey||""),this.usePopup=!r.container,r.container)if(typeof r.container=="string"){if(this.containerElement=document.querySelector(r.container),!this.containerElement)throw new Error(`Container not found: ${r.container}`)}else this.containerElement=r.container;this.modalManager=new he({environment:this.environment,debug:this.config.debug})}init(){this.iframe||(this.createIframe(),this.addMessageListener())}createIframe(){const r=new URL(this.iframeUrl);this.config.publicKey&&r.searchParams.set("publicKey",this.config.publicKey),this.config.config?.paymentId&&r.searchParams.set("paymentId",this.config.config.paymentId),this.config.locale&&r.searchParams.set("locale",this.config.locale);const c=r.toString();if(this.usePopup){const{overlay:w,container:m,iframe:a}=Re.createOverlay(c,()=>this.close());this.iframe=a,document.body.appendChild(w),this.loaderManager=new Le(m,{fillParent:this.config.config?.style?.fillParent}),this.loaderManager.show(this.iframe)}else{if(!this.containerElement)throw new Error("Container element is required for inline mode");if(this.containerElement.innerHTML="",this.containerElement instanceof HTMLElement){const w=this.containerElement.getAttribute("style")||"";w.includes("min-height")||(this.containerElement.style.minHeight=`${L.MIN_HEIGHT}px`),w.includes("position")||(this.containerElement.style.position="relative"),w.includes("overflow")||(this.containerElement.style.overflow="hidden")}this.iframe=document.createElement("iframe"),this.iframe.src=c,this.iframe.style.cssText=ft(this.config.config?.style?.fillParent||!1),this.iframe.setAttribute("allow","payment"),this.containerElement.appendChild(this.iframe),this.loaderManager=new Le(this.containerElement,{fillParent:this.config.config?.style?.fillParent}),this.loaderManager.show(this.iframe)}}addMessageListener(){this.messageListener=r=>{const c=new URL(this.iframeUrl).origin;let m=r.origin===c;if(m||((this.environment==="sandbox"||this.environment==="development")&&(m=(r.origin.includes("localhost")||r.origin.includes("127.0.0.1"))&&(c.includes("localhost")||c.includes("127.0.0.1"))),m||(m=r.origin==="https://dev.iframe.inflowpay.com"||r.origin==="https://pre-prod.iframe.inflowpay.xyz"||r.origin==="https://iframe.inflowpay.xyz")),!m){this.config.debug&&console.warn("[SDK] Rejected message from unauthorized origin:",r.origin);return}const a=r.data;if(!(!a||!a.type))switch(a.type){case"iframe-ready":this.loaderManager&&this.loaderManager.hide(this.iframe||void 0),this.sendConfigToIframe();break;case"content-height":if(a.height&&this.iframe){const T=Math.max(a.height,L.MIN_HEIGHT);this.iframe.style.height=`${T}px`,this.containerElement&&(this.containerElement.style.minHeight=`${T}px`)}break;case"close":this.close();break;case"success":this.config.onSuccess&&this.config.onSuccess(a.data);break;case"error":this.config.onError&&this.config.onError(a.data);break;case"3ds-required":if(this.config.debug&&(console.log("[SDK] Received 3DS request:",a.threeDsSessionUrl),console.log("[SDK] Session ID:",a.sessionId)),a.threeDsSessionUrl){const T=a.sessionId,O=a.paymentId||this.config.config?.paymentId||"";a.sessionId||console.warn("[SDK] No session ID provided by iframe"),this.config.debug&&console.log("[SDK] Opening 3DS modal with session ID:",T),this.modalManager.open(a.threeDsSessionUrl,T,O).then(P=>{this.config.debug&&console.log("[SDK] 3DS modal closed, result:",P)})}else this.config.debug&&console.error("[SDK] 3DS required but no threeDsSessionUrl provided");break;case"3ds-success":this.config.debug&&(console.log("[SDK] 3DS completed, closing modal..."),console.log("[SDK] Session ID from webhook:",a.sessionId)),he.close(a.sessionId);break;case"3ds-failed":this.config.debug&&(console.log("[SDK] 3DS failed, closing modal..."),console.log("[SDK] Session ID from webhook:",a.sessionId)),he.close(a.sessionId);break;default:this.config.debug&&console.log("SDK: Received message:",a)}},window.addEventListener("message",this.messageListener)}sendConfigToIframe(){if(!this.iframe||!this.iframe.contentWindow){this.iframe&&(this.iframe.onload=()=>{this.sendConfigToIframe()});return}const r={type:"sdkData",config:{...this.config.config||{},paymentId:this.config.config?.paymentId},data:{publicKey:this.config.publicKey}},c=this.getTargetOrigin();this.iframe.contentWindow.postMessage(r,c)}close(){this.config.onClose&&this.config.onClose(),this.loaderManager&&(this.loaderManager.hide(this.iframe||void 0),this.loaderManager=null),this.messageListener&&(window.removeEventListener("message",this.messageListener),this.messageListener=null),this.usePopup?Re.removeOverlay():this.containerElement&&(this.containerElement.innerHTML=""),this.iframe=null}switchToSuccessState(r){if(this.loaderManager&&(this.loaderManager.hide(this.iframe||void 0),this.loaderManager=null),this.messageListener&&(window.removeEventListener("message",this.messageListener),this.messageListener=null),this.usePopup){Re.removeOverlay(),this.iframe=null;return}const c=this.config.config?.showDefaultSuccessUI??!0;!c&&this.containerElement&&(this.containerElement.innerHTML=""),c||(this.iframe=null)}getTargetOrigin(){return this.environment==="production"||this.environment==="preprod"?new URL(this.iframeUrl).origin:"*"}destroy(){this.close()}}class je{constructor(r,c){this.mounted=!1;let w;if(typeof c.container=="string"){if(w=document.querySelector(c.container),!w)throw new Error(`Container not found: ${c.container}`)}else w=c.container;this.container=w,this.sdk=new It({publicKey:r.publicKey,container:this.container,locale:r.locale??kt(),config:{paymentId:c.paymentId,...c.style&&{style:c.style},...c.buttonText&&{buttonText:c.buttonText},...c.placeholders&&{placeholders:c.placeholders},...c.showDefaultSuccessUI!==void 0&&{showDefaultSuccessUI:c.showDefaultSuccessUI}},onSuccess:m=>{c.onComplete&&c.onComplete({status:ye.SUCCESS,paymentId:c.paymentId}),this.sdk.switchToSuccessState(m)},onError:m=>{c.onError?c.onError(m):c.onComplete&&c.onComplete({status:ye.FAILED,paymentId:c.paymentId,error:m})},onClose:()=>{c.onClose&&c.onClose()}})}mount(){if(this.mounted)throw new Error("CardElement is already mounted");this.sdk.init(),this.mounted=!0}destroy(){this.mounted&&(this.sdk.destroy(),this.mounted=!1)}}class He{constructor(r){if(!r.publicKey||typeof r.publicKey!="string")throw new Error("API key is required");this.config=r,this.timeout=3e4,this.iframeUrl=Me(r.publicKey);const c=Ce(r.publicKey);this.debug=c==="sandbox"||c==="development"}createCardElement(r){return new je({publicKey:this.config.publicKey,iframeUrl:this.iframeUrl,timeout:this.timeout,debug:this.debug,locale:this.config.locale},r)}getIframeUrl(){return this.iframeUrl}getApiKey(){return this.config.publicKey}}class Dt{constructor(r){const c={publicKey:r.config.publicKey,locale:r.config.locale};this.sdk=new He(c)}createCardElement(r){let c;if(r.container)c=r.container;else{const a=document.createElement("div");a.id="inflowpay-card-element-container",document.body.appendChild(a),c=a}const w={container:c,paymentId:r.paymentId,...r.style&&{style:r.style},...r.buttonText&&{buttonText:r.buttonText},...r.placeholders&&{placeholders:r.placeholders},onComplete:a=>{r.onComplete&&r.onComplete(a)},onError:r.onError,onClose:r.onClose},m=this.sdk.createCardElement(w);if(r.onReady){const a=m.mount.bind(m);m.mount=()=>{a(),setTimeout(()=>{r.onReady&&r.onReady()},100)}}return r.onChange&&setTimeout(()=>{r.onChange&&r.onChange({complete:!1})},100),m}getSDK(){return this.sdk}}const Nt="0.8.0";W.CardElement=je,W.InflowPayProvider=Dt,W.PaymentResultErrorCode=xe,W.PaymentResultStatus=ye,W.PaymentSDK=He,W.VERSION=Nt,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
218
- //# sourceMappingURL=sdk.umd.js.map
185
+ `;let c=document.createElement(`div`);c.style.cssText=L();let l=document.createElement(`iframe`);l.src=t,l.style.cssText=R(),l.setAttribute(`allow`,`payment`),l.setAttribute(`sandbox`,`allow-forms allow-scripts allow-same-origin allow-popups`),c.appendChild(l),o.appendChild(s),o.appendChild(c),a.appendChild(o),document.body.appendChild(a),e.activeModal={overlay:a,sessionId:n,paymentId:r};let u=e=>{if(!e.data)return;if(!this.isAllowedOrigin(e.origin)){this.config.debug&&console.warn(`[SDK] Rejected 3DS message from unauthorized origin:`,e.origin);return}let t=e.data,n=t.type===`THREE_DS_COMPLETE`||t.type===`3ds-complete`,r=t.status===`success`,o=t.status===`failed`||t.status===`failure`;if(n&&r){a.remove(),window.removeEventListener(`message`,u),i(!0);return}if(r&&!n){a.remove(),window.removeEventListener(`message`,u),i(!0);return}if(n&&o||t.type===`3ds-failed`||o){a.remove(),window.removeEventListener(`message`,u),i(!1);return}};window.addEventListener(`message`,u)})}static close(t){if(!e.activeModal){console.log(`[SDK] No active modal to close`);return}if(t&&e.activeModal.sessionId!==t){console.warn(`[SDK] Session ID mismatch: webhook for ${t}, but modal is for ${e.activeModal.sessionId}. Ignoring close request.`);return}console.log(`[SDK] Closing modal for session:`,t||e.activeModal.sessionId),e.activeModal.overlay.remove(),e.activeModal=null}static isModalOpen(){return e.activeModal!==null}static getCurrentSessionId(){return e.activeModal?.sessionId||null}isAllowedOrigin(e){return!!(f.includes(e)||(this.config.environment===`sandbox`||this.config.environment===`development`)&&(e.includes(`localhost`)||e.includes(`127.0.0.1`)))}};B=V,B.activeModal=null;var H=class{static createOverlay(e,t){let n=document.createElement(`div`);n.id=p.OVERLAY,n.style.cssText=_();let r=document.createElement(`div`);r.style.cssText=v();let i=document.createElement(`button`);i.innerHTML=`×`,i.style.cssText=y(),i.onclick=t;let a=document.createElement(`iframe`);return a.src=e,a.style.cssText=b(),a.setAttribute(`allow`,`payment`),r.appendChild(i),r.appendChild(a),n.appendChild(r),n.addEventListener(`click`,e=>{e.target===n&&t()}),{overlay:n,container:r,iframe:a}}static removeOverlay(){let e=document.getElementById(p.OVERLAY);e&&e.remove()}},ee=[`en`,`de`,`es`,`fr`,`it`,`nl`,`pl`,`pt`];function te(){if(typeof window>`u`)return`en`;try{let e=(navigator.language||navigator.userLanguage||``).split(`-`)[0].toLowerCase();if(ee.includes(e))return e}catch{}return`en`}function U(e){return e.includes(`_local_`)||e.startsWith(`inflow_local_`)?`sandbox`:e.includes(`_prod_`)&&!e.includes(`_preprod_`)?`production`:e.includes(`_preprod_`)||e.startsWith(`inflow_preprod_`)?`preprod`:e.includes(`_dev_`)?`development`:`sandbox`}function W(e){switch(U(e)){case`production`:return m.PRODUCTION;case`preprod`:return m.PREPROD;case`development`:return m.DEVELOPMENT;default:return m.LOCAL}}var ne=class{constructor(e){if(this.iframe=null,this.messageListener=null,this.containerElement=null,this.loaderManager=null,this.config=e,this.iframeUrl=e.iframeUrl||W(e.publicKey||``),this.environment=U(e.publicKey||``),this.usePopup=!e.container,e.container)if(typeof e.container==`string`){if(this.containerElement=document.querySelector(e.container),!this.containerElement)throw Error(`Container not found: ${e.container}`)}else this.containerElement=e.container;this.modalManager=new V({environment:this.environment,debug:this.config.debug})}init(){this.iframe||(this.createIframe(),this.addMessageListener())}createIframe(){let e=new URL(this.iframeUrl);this.config.publicKey&&e.searchParams.set(`publicKey`,this.config.publicKey),this.config.config?.paymentId&&e.searchParams.set(`paymentId`,this.config.config.paymentId),this.config.config?.setupId&&e.searchParams.set(`setupId`,this.config.config.setupId),this.config.locale&&e.searchParams.set(`locale`,this.config.locale);let t=e.toString();if(this.usePopup){let{overlay:e,container:n,iframe:r}=H.createOverlay(t,()=>this.close());this.iframe=r,document.body.appendChild(e),this.loaderManager=new z(n,{fillParent:this.config.config?.style?.fillParent}),this.loaderManager.show(this.iframe)}else{if(!this.containerElement)throw Error(`Container element is required for inline mode`);if(this.containerElement.innerHTML=``,this.containerElement instanceof HTMLElement){let e=this.containerElement.getAttribute(`style`)||``;e.includes(`min-height`)||(this.containerElement.style.minHeight=`${d.MIN_HEIGHT}px`),e.includes(`position`)||(this.containerElement.style.position=`relative`),e.includes(`overflow`)||(this.containerElement.style.overflow=`hidden`)}this.iframe=document.createElement(`iframe`),this.iframe.src=t,this.iframe.style.cssText=x(this.config.config?.style?.fillParent||!1),this.iframe.setAttribute(`allow`,`payment`),this.containerElement.appendChild(this.iframe),this.loaderManager=new z(this.containerElement,{fillParent:this.config.config?.style?.fillParent}),this.loaderManager.show(this.iframe)}}addMessageListener(){this.messageListener=e=>{let t=new URL(this.iframeUrl).origin,n=e.origin===t;if(n||((this.environment===`sandbox`||this.environment===`development`)&&(n=(e.origin.includes(`localhost`)||e.origin.includes(`127.0.0.1`))&&(t.includes(`localhost`)||t.includes(`127.0.0.1`))),n||(n=e.origin===`https://dev.iframe.inflowpay.com`||e.origin===`https://pre-prod.iframe.inflowpay.xyz`||e.origin===`https://iframe.inflowpay.xyz`)),!n){this.config.debug&&console.warn(`[SDK] Rejected message from unauthorized origin:`,e.origin);return}let r=e.data;if(!(!r||!r.type))switch(r.type){case`iframe-ready`:this.loaderManager&&this.loaderManager.hide(this.iframe||void 0),this.sendConfigToIframe();break;case`content-height`:r.height&&this.iframe&&(this.iframe.style.height=`${r.height}px`,this.containerElement&&(this.containerElement.style.minHeight=`${r.height}px`));break;case`close`:this.close();break;case`success`:this.config.onSuccess&&this.config.onSuccess(r.data);break;case`error`:this.config.onError&&this.config.onError(r.data);break;case`3ds-required`:if(this.config.debug&&(console.log(`[SDK] Received 3DS request:`,r.threeDsSessionUrl),console.log(`[SDK] Session ID:`,r.sessionId)),r.threeDsSessionUrl){let e=r.sessionId,t=r.paymentId||r.setupId||this.config.config?.paymentId||this.config.config?.setupId||``;r.sessionId||console.warn(`[SDK] No session ID provided by iframe`),this.config.debug&&console.log(`[SDK] Opening 3DS modal with session ID:`,e),this.modalManager.open(r.threeDsSessionUrl,e,t).then(e=>{this.config.debug&&console.log(`[SDK] 3DS modal closed, result:`,e)})}else this.config.debug&&console.error(`[SDK] 3DS required but no threeDsSessionUrl provided`);break;case`3ds-success`:this.config.debug&&(console.log(`[SDK] 3DS completed, closing modal...`),console.log(`[SDK] Session ID from webhook:`,r.sessionId)),V.close(r.sessionId);break;case`3ds-failed`:this.config.debug&&(console.log(`[SDK] 3DS failed, closing modal...`),console.log(`[SDK] Session ID from webhook:`,r.sessionId)),V.close(r.sessionId);break;default:this.config.debug&&console.log(`SDK: Received message:`,r)}},window.addEventListener(`message`,this.messageListener)}sendConfigToIframe(){if(!this.iframe||!this.iframe.contentWindow){this.iframe&&(this.iframe.onload=()=>{this.sendConfigToIframe()});return}let e={type:`sdkData`,config:{...this.config.config||{},paymentId:this.config.config?.paymentId,setupId:this.config.config?.setupId},data:{publicKey:this.config.publicKey}},t=this.getTargetOrigin();this.iframe.contentWindow.postMessage(e,t)}close(){this.config.onClose&&this.config.onClose(),this.loaderManager&&(this.loaderManager.hide(this.iframe||void 0),this.loaderManager=null),this.messageListener&&(window.removeEventListener(`message`,this.messageListener),this.messageListener=null),this.usePopup?H.removeOverlay():this.containerElement&&(this.containerElement.innerHTML=``),this.iframe=null}switchToSuccessState(e){if(this.loaderManager&&(this.loaderManager.hide(this.iframe||void 0),this.loaderManager=null),this.usePopup){this.messageListener&&(window.removeEventListener(`message`,this.messageListener),this.messageListener=null),H.removeOverlay(),this.iframe=null;return}!(this.config.config?.showDefaultSuccessUI??!0)&&this.containerElement&&(this.containerElement.innerHTML=``,this.iframe=null)}getTargetOrigin(){return this.environment===`production`||this.environment===`preprod`?new URL(this.iframeUrl).origin:`*`}destroy(){this.close()}},G=class{constructor(e,t){if(this.mounted=!1,!t.paymentId&&!t.setupId)throw Error(`CardElement: paymentId or setupId is required`);if(t.paymentId&&t.setupId)throw Error(`CardElement: paymentId and setupId are mutually exclusive`);let n;if(typeof t.container==`string`){if(n=document.querySelector(t.container),!n)throw Error(`Container not found: ${t.container}`)}else n=t.container;this.container=n;let r=!!t.setupId;this.sdk=new ne({publicKey:e.publicKey,container:this.container,locale:e.locale??te(),config:{...t.paymentId&&{paymentId:t.paymentId},...t.setupId&&{setupId:t.setupId},...t.style&&{style:t.style},...t.buttonText&&{buttonText:t.buttonText},...t.placeholders&&{placeholders:t.placeholders},...t.showDefaultSuccessUI!==void 0&&{showDefaultSuccessUI:t.showDefaultSuccessUI}},onSuccess:e=>{t.onComplete&&(r?t.onComplete({status:o.SUCCESS,setupId:t.setupId}):t.onComplete({status:o.SUCCESS,paymentId:t.paymentId})),this.sdk.switchToSuccessState(e)},onError:e=>{t.onError?t.onError(e):t.onComplete&&(r?t.onComplete({status:o.FAILED,setupId:t.setupId,error:e}):t.onComplete({status:o.FAILED,paymentId:t.paymentId,error:e}))},onClose:()=>{t.onClose&&t.onClose()}})}mount(){if(this.mounted)throw Error(`CardElement is already mounted`);this.sdk.init(),this.mounted=!0}destroy(){this.mounted&&(this.sdk.destroy(),this.mounted=!1)}},K=class{constructor(e){if(!e.publicKey||typeof e.publicKey!=`string`)throw Error(`API key is required`);this.config=e,this.timeout=3e4,this.iframeUrl=W(e.publicKey);let t=U(e.publicKey);this.debug=t===`sandbox`||t===`development`}createCardElement(e){return new G({publicKey:this.config.publicKey,iframeUrl:this.iframeUrl,timeout:this.timeout,debug:this.debug,locale:this.config.locale},e)}getIframeUrl(){return this.iframeUrl}getApiKey(){return this.config.publicKey}},re=class{constructor(e){this.sdk=new K({publicKey:e.config.publicKey,locale:e.config.locale})}createCardElement(e){let t;if(e.container)t=e.container;else{let e=document.createElement(`div`);e.id=`inflowpay-card-element-container`,document.body.appendChild(e),t=e}let n={container:t,paymentId:e.paymentId,...e.style&&{style:e.style},...e.buttonText&&{buttonText:e.buttonText},...e.placeholders&&{placeholders:e.placeholders},onComplete:t=>{e.onComplete&&e.onComplete(t)},onError:e.onError,onClose:e.onClose},r=this.sdk.createCardElement(n);if(e.onReady){let t=r.mount.bind(r);r.mount=()=>{t(),setTimeout(()=>{e.onReady&&e.onReady()},100)}}return e.onChange&&setTimeout(()=>{e.onChange&&e.onChange({complete:!1})},100),r}getSDK(){return this.sdk}};e.CardElement=G,e.InflowPayProvider=re,e.PaymentResultErrorCode=s,e.PaymentResultStatus=o,e.PaymentSDK=K,e.VERSION=`1.1.0`});
186
+ //# sourceMappingURL=sdk.umd.js.map