@formo/analytics 1.13.4-alpha.12 → 1.13.4-alpha.13

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.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.umd.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("FormoAnalytics",[],t):"object"==typeof exports?exports.FormoAnalytics=t():e.FormoAnalytics=t()}(self,(()=>(()=>{"use strict";var e={20:(e,t,r)=>{var n=r(540),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,a={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:l,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},287:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,m={};function y(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}function g(){}function v(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): 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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var E=v.prototype=new g;E.constructor=v,A(E,y.prototype),E.isPureReactComponent=!0;var b=Array.isArray,S=Object.prototype.hasOwnProperty,w={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)S.call(t,i)&&!C.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];a.children=u}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===a[i]&&(a[i]=c[i]);return{$$typeof:r,type:e,key:o,ref:s,props:a,_owner:w.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var R=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return o=o(c=e),e=""===a?"."+P(c,0):a,b(o)?(i="",null!=e&&(i=e.replace(R,"$&/")+"/"),O(o,t,i,"",(function(e){return e}))):null!=o&&(T(o)&&(o=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||c&&c.key===o.key?"":(""+o.key).replace(R,"$&/")+"/")+e)),t.push(o)),1;if(c=0,a=""===a?".":a+":",b(e))for(var u=0;u<e.length;u++){var l=a+P(s=e[u],u);c+=O(s,t,i,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=O(s=s.value,t,i,l=a+P(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function M(e,t,r){if(null==e)return e;var n=[],i=0;return O(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function U(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},I={transition:null},k={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:I,ReactCurrentOwner:w};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:M,forEach:function(e,t,r){M(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=o,t.PureComponent=v,t.StrictMode=a,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.act=j,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=A({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}return{$$typeof:r,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:U}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,r){return N.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,r){return N.current.useReducer(e,t,r)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return N.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},540:(e,t,r)=>{e.exports=r(287)},848:(e,t,r)=>{e.exports=r(20)},879:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormoAnalytics=void 0;var c=s(r(425)),u=r(228),l=r(450),d=r(574),f=r(568),h=r(450),p=function(){function e(e,t){void 0===t&&(t={}),this.apiKey=e,this.options=t,this._providerListeners={},this.config={apiKey:e,trackLocalhost:t.trackLocalhost},this.session=new A;var r=t.provider||(null===window||void 0===window?void 0:window.ethereum);r&&this.trackProvider(r),this.trackFirstPageHit(),this.trackPageHits()}return e.init=function(t,r){return i(this,void 0,void 0,(function(){var n,i;return a(this,(function(a){switch(a.label){case 0:return[4,(n=new e(t,r)).getProviders()];case 1:return i=a.sent(),[4,n.identifyAll(i)];case 2:return a.sent(),[2,n]}}))}))},e.prototype.page=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.trackPageHit()];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(e){return i(this,arguments,void 0,(function(e){var t=e.chainId,r=e.address;return a(this,(function(e){switch(e.label){case 0:if(!t)throw new Error("FormoAnalytics::connect: chain ID cannot be empty");if(!r)throw new Error("FormoAnalytics::connect: address cannot be empty");return this.currentChainId=t,this.currentConnectedAddress=r,[4,this.trackEvent(l.Event.CONNECT,{chainId:t,address:r})];case 1:return e.sent(),[2]}}))}))},e.prototype.disconnect=function(e){return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return t=(null==e?void 0:e.address)||this.currentConnectedAddress,r=(null==e?void 0:e.chainId)||this.currentChainId,[4,this.handleDisconnect(r,t)];case 1:return n.sent(),[2]}}))}))},e.prototype.chain=function(e){return i(this,arguments,void 0,(function(e){var t=e.chainId,r=e.address;return a(this,(function(e){switch(e.label){case 0:if(!t||0===Number(t))throw new Error("FormoAnalytics::chain: chainId cannot be empty or 0");if(isNaN(Number(t)))throw new Error("FormoAnalytics::chain: chainId must be a valid decimal number");if(!r&&!this.currentConnectedAddress)throw new Error("FormoAnalytics::chain: address was empty and no previous address has been recorded");return this.currentChainId=t,[4,this.trackEvent(l.Event.CHAIN_CHANGED,{chainId:t,address:r||this.currentConnectedAddress})];case 1:return e.sent(),[2]}}))}))},e.prototype.signature=function(e){return i(this,arguments,void 0,(function(e){var t=e.status,r=e.chainId,i=e.address,o=e.message,s=e.signatureHash;return a(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(l.Event.SIGNATURE,n({status:t,chainId:r,address:i,message:o},s&&{signatureHash:s}))];case 1:return e.sent(),[2]}}))}))},e.prototype.transaction=function(e){return i(this,arguments,void 0,(function(e){var t=e.status,r=e.chainId,i=e.address,o=e.data,s=e.to,c=e.value,u=e.transactionHash;return a(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(l.Event.TRANSACTION,n({status:t,chainId:r,address:i,data:o,to:s,value:c},u&&{transactionHash:u}))];case 1:return e.sent(),[2]}}))}))},e.prototype.identify=function(e){return i(this,arguments,void 0,(function(e){var t=e.address,r=e.providerName,n=e.rdns;return a(this,(function(e){switch(e.label){case 0:return this.session.isIdentified()?[2,console.warn("FormoAnalytics::identify: Wallet already identified in this session")]:(this.session.identify(),[4,this.trackEvent(l.Event.IDENTIFY,{address:t,providerName:r,rdns:n})]);case 1:return e.sent(),[2]}}))}))},e.prototype.track=function(e,t){return i(this,void 0,void 0,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.trackEvent(e,t)];case 1:return r.sent(),[2]}}))}))},e.prototype.trackProvider=function(e){if(e!==this._provider){if(this.currentChainId=void 0,this.currentConnectedAddress=void 0,this._provider)for(var t=0,r=Object.keys(this._providerListeners);t<r.length;t++){var n=r[t];this._provider.removeListener(n,this._providerListeners[n]),delete this._providerListeners[n]}this._provider=e,this.registerAddressChangedListener(),this.registerChainChangedListener(),this.registerSignatureListener(),this.registerTransactionListener()}else console.warn("FormoAnalytics::trackProvider: Provider already tracked.")},e.prototype.registerAddressChangedListener=function(){var e,t,r=this,n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.onAddressChanged(e[0])};null===(e=this._provider)||void 0===e||e.on("accountsChanged",n),this._providerListeners.accountsChanged=n;var i=this.onAddressDisconnected.bind(this);null===(t=this._provider)||void 0===t||t.on("disconnect",i),this._providerListeners.disconnect=i},e.prototype.registerChainChangedListener=function(){var e,t=this,r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.onChainChanged(e[0])};null===(e=this.provider)||void 0===e||e.on("chainChanged",r),this._providerListeners.chainChanged=r},e.prototype.registerSignatureListener=function(){var e,t=this;if(this.provider)if(!1!==(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable)){var r=this.provider.request.bind(this.provider);this.provider.request=function(e){return i(t,[e],void 0,(function(e){var t,i,o,s=e.method,c=e.params;return a(this,(function(e){switch(e.label){case 0:if(!Array.isArray(c)||!["eth_signTypedData_v4","personal_sign"].includes(s))return[3,4];this.signature(n({status:d.SignatureStatus.REQUESTED},this.buildSignatureEventPayload(s,c))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r({method:s,params:c})];case 2:return(t=e.sent())&&this.signature(n({status:d.SignatureStatus.CONFIRMED},this.buildSignatureEventPayload(s,c,t))),[2,t];case 3:throw i=e.sent(),(o=i)&&4001===(null==o?void 0:o.code)&&this.signature(n({status:d.SignatureStatus.REJECTED},this.buildSignatureEventPayload(s,c))),i;case 4:return[2,r({method:s,params:c})]}}))}))}}else console.warn("_trackSigning: provider.request is not writable");else console.error("_trackSigning: provider not found")},e.prototype.registerTransactionListener=function(){var e,t=this;if(this.provider)if(!1!==(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable)){var r=this.provider.request.bind(this.provider);this.provider.request=function(e){return i(t,[e],void 0,(function(e){var t,i,o,s,c=e.method,u=e.params;return a(this,(function(e){switch(e.label){case 0:return Array.isArray(u)&&"eth_sendTransaction"===c&&u[0]?[4,this.buildTransactionEventPayload(u)]:[3,5];case 1:t=e.sent(),this.transaction(n({status:d.TransactionStatus.STARTED},t)),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,r({method:c,params:u})];case 3:return i=e.sent(),this.transaction(n(n({status:d.TransactionStatus.BROADCASTED},t),{transactionHash:i})),[2];case 4:throw o=e.sent(),console.log("transaction listener catch"),console.log(o),(s=o)&&4001===(null==s?void 0:s.code)&&this.transaction(n({status:d.TransactionStatus.REJECTED},t)),o;case 5:return[2,r({method:c,params:u})]}}))}))}}else console.warn("_trackTransactions: provider.request is not writable");else console.error("_trackTransactions: provider not found")},e.prototype.onAddressChanged=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){return e.length>0?this.onAddressConnected(e[0]):this.onAddressDisconnected(),[2]}))}))},e.prototype.onAddressConnected=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return e===this.currentConnectedAddress?[2]:(this.currentConnectedAddress=e,t=this,[4,this.getCurrentChainId()]);case 1:return t.currentChainId=r.sent(),this.connect({chainId:this.currentChainId,address:e}),[2]}}))}))},e.prototype.handleDisconnect=function(e,t){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return r={chain_id:e||this.currentChainId,address:t||this.currentConnectedAddress},this.currentChainId=void 0,this.currentConnectedAddress=void 0,[4,this.trackEvent(l.Event.DISCONNECT,r)];case 1:return n.sent(),[2]}}))}))},e.prototype.onAddressDisconnected=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.handleDisconnect(this.currentChainId,this.currentConnectedAddress)];case 1:return e.sent(),[2]}}))}))},e.prototype.onChainChanged=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return this.currentChainId=parseInt(e),this.currentConnectedAddress?[3,2]:this.provider?[4,this.getAddress()]:(console.log("FormoAnalytics::onChainChanged: provider not found. CHAIN_CHANGED not reported"),[2,Promise.resolve()]);case 1:if(!(t=r.sent()))return console.log("FormoAnalytics::onChainChanged: Unable to fetch or store connected address"),[2,Promise.resolve()];this.currentConnectedAddress=t,r.label=2;case 2:return this.currentConnectedAddress?[2,this.chain({chainId:this.currentChainId,address:this.currentConnectedAddress})]:(console.log("FormoAnalytics::onChainChanged: currentConnectedAddress is null despite fetch attempt"),[2])}}))}))},e.prototype.trackFirstPageHit=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return null===f.session.get(l.CURRENT_URL_KEY)&&f.session.set(l.CURRENT_URL_KEY,window.location.href),[2,this.trackPageHit()]}))}))},e.prototype.trackPageHits=function(){return i(this,void 0,void 0,(function(){var e,t,r=this;return a(this,(function(n){return e=history.pushState,history.pushState=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,t);return window.dispatchEvent(new window.Event("locationchange")),n},t=history.replaceState,history.replaceState=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e);return window.dispatchEvent(new window.Event("locationchange")),n},window.addEventListener("popstate",(function(){return r.onLocationChange()})),window.addEventListener("locationchange",(function(){return r.onLocationChange()})),[2]}))}))},e.prototype.onLocationChange=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return f.session.get(l.CURRENT_URL_KEY)!==window.location.href&&(f.session.set(l.CURRENT_URL_KEY,window.location.href),this.trackPageHit()),[2]}))}))},e.prototype.trackPageHit=function(){var e=this,t=window.location.pathname,r=window.location.href,n=window.location.hash;if(!this.config.trackLocalhost&&(0,f.isLocalhost)())return console.warn("FormoAnalytics::trackPageHit: Ignoring event because website is running locally");setTimeout((function(){return i(e,void 0,void 0,(function(){return a(this,(function(e){return this.trackEvent(l.Event.PAGE,{pathname:t,href:r,hash:n}),[2]}))}))}),300)},e.prototype.trackEvent=function(e,t){return i(this,void 0,void 0,(function(){var r,n,i,o,s;return a(this,(function(a){switch(a.label){case 0:return[4,this.getAddress()];case 1:return r=a.sent(),s={address:r,timestamp:(new Date).toISOString(),action:e,version:"1"},[4,this.buildEventPayload((0,f.toSnakeCase)(t))];case 2:s.payload=a.sent(),n=s,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,c.default.post(l.EVENTS_API_URL,JSON.stringify(n),{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(this.config.apiKey)}})];case 4:if(!((i=a.sent()).status>=200&&i.status<300))throw new Error("Failed with status: ".concat(i.status));return console.log("Event sent successfully: ".concat(this.getActionDescriptor(e,t))),[3,6];case 5:return o=a.sent(),console.error('Event "'.concat(e,'" failed. Error: ').concat(o)),[3,6];case 6:return[2]}}))}))},e.prototype.getProviders=function(){return i(this,void 0,void 0,(function(){var e,t;return a(this,(function(r){return e=(0,u.createStore)(),0===(t=o([],e.getProviders(),!0)).length?[2,[null===window||void 0===window?void 0:window.ethereum]]:[2,t]}))}))},e.prototype.identifyAll=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i,o,s,c,u,l,d;return a(this,(function(a){switch(a.label){case 0:t=0,r=e,a.label=1;case 1:if(!(t<r.length))return[3,13];n=r[t],i=n.provider,o=n.info,a.label=2;case 2:return a.trys.push([2,11,,12]),[4,this.getAccounts(i)];case 3:if(!((s=a.sent())&&s.length>0))return[3,8];c=0,u=s,a.label=4;case 4:return c<u.length?(l=u[c],[4,this.identify({address:l,providerName:o.name,rdns:o.rdns})]):[3,7];case 5:a.sent(),a.label=6;case 6:return c++,[3,4];case 7:return[3,10];case 8:return[4,this.identify({address:null,providerName:o.name,rdns:o.rdns})];case 9:a.sent(),a.label=10;case 10:return[3,12];case 11:return d=a.sent(),console.log("identifying all => err",d),[3,12];case 12:return t++,[3,1];case 13:return[2]}}))}))},Object.defineProperty(e.prototype,"provider",{get:function(){return this._provider},enumerable:!1,configurable:!0}),e.prototype.getAddress=function(){return i(this,void 0,void 0,(function(){var e,t;return a(this,(function(r){switch(r.label){case 0:if(this.currentConnectedAddress)return[2,this.currentConnectedAddress];if(!this.provider)return console.log("FormoAnalytics::getAddress: the provider is not set"),[2,null];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.getAccounts()];case 2:return(e=r.sent())&&e.length>0?[2,(0,f.isAddress)(e[0])?e[0]:null]:[3,4];case 3:return t=r.sent(),console.log("Failed to fetch accounts from provider:",t),[2,null];case 4:return[2,null]}}))}))},e.prototype.getAccounts=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return a(this,(function(i){switch(i.label){case 0:t=e||this.provider,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,null==t?void 0:t.request({method:"eth_accounts"})];case 2:return(r=i.sent())&&0!==r.length?[2,r.filter(f.isAddress)]:[2,null];case 3:return 4001!==(n=i.sent()).code&&console.log("FormoAnalytics::getAccounts: eth_accounts threw an error",n),[2,null];case 4:return[2]}}))}))},e.prototype.getCurrentChainId=function(){return i(this,void 0,void 0,(function(){var e,t,r;return a(this,(function(n){switch(n.label){case 0:this.provider||console.error("FormoAnalytics::getCurrentChainId: provider not set"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,null===(r=this.provider)||void 0===r?void 0:r.request({method:"eth_chainId"})];case 2:return(e=n.sent())?[2,parseInt(e,16)]:(console.log("FormoAnalytics::fetchChainId: chain id not found"),[2,0]);case 3:return t=n.sent(),console.log("FormoAnalytics::fetchChainId: eth_chainId threw an error",t),[2,0];case 4:return[2]}}))}))},e.prototype.getLocation=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;return e in l.COUNTRY_LIST?l.COUNTRY_LIST[e]:e}catch(e){return console.error("Error resolving timezone:",e),""}},e.prototype.getLanguage=function(){try{return(navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language)||"en"}catch(e){return console.error("Error resolving language:",e),"en"}},e.prototype.buildEventPayload=function(){return i(this,arguments,void 0,(function(e){var t,r,i,o;return void 0===e&&(e={}),a(this,(function(a){return t=new URL(window.location.href),r=new URLSearchParams(t.search),i=this.getLocation(),o=this.getLanguage(),[2,n({"user-agent":window.navigator.userAgent,origin:t.origin,locale:o,location:i,referrer:document.referrer,utm_source:r.get("utm_source"),utm_medium:r.get("utm_medium"),utm_campaign:r.get("utm_campaign"),ref:r.get("ref")},e)]}))}))},e.prototype.buildSignatureEventPayload=function(e,t,r){var i={chainId:this.currentChainId,address:"personal_sign"===e?t[1]:t[0]};if("personal_sign"===e){var a=Buffer.from(t[0].slice(2),"hex").toString("utf8");return n(n(n({},i),{message:a}),r?{signatureHash:r}:{})}return n(n(n({},i),{message:t[1]}),r?{signatureHash:r}:{})},e.prototype.buildTransactionEventPayload=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i,o,s,c;return a(this,(function(a){switch(a.label){case 0:return t=e[0],r=t.data,n=t.from,i=t.to,o=t.value,c={},(s=this.currentChainId)?[3,2]:[4,this.getCurrentChainId()];case 1:s=a.sent(),a.label=2;case 2:return[2,(c.chainId=s,c.data=r,c.address=n,c.to=i,c.value=o,c)]}}))}))},e.prototype.getActionDescriptor=function(e,t){return"".concat(e).concat(t.status?" ".concat(t.status):"")},e}();t.FormoAnalytics=p;var A=function(){function e(){}return e.prototype.isIdentified=function(){return!0===f.session.get(h.SESSION_IDENTIFIED_KEY)},e.prototype.identify=function(){f.session.set(h.SESSION_IDENTIFIED_KEY,!0)},e}()},190:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFormoAnalytics=t.FormoAnalyticsProvider=t.FormoAnalyticsContext=void 0;var o=r(848),s=r(540),c=r(879);t.FormoAnalyticsContext=(0,s.createContext)(void 0),t.FormoAnalyticsProvider=function(e){var t=e.apiKey,r=e.disabled,i=e.children;return t?r?(console.warn("FormoAnalytics is disabled"),i):(0,o.jsx)(u,n({},e)):(console.error("FormoAnalyticsProvider: No API key provided"),i)};var u=function(e){var r=e.apiKey,n=e.options,u=e.children,l=(0,s.useState)(),d=l[0],f=l[1],h=(0,s.useState)(!1),p=h[0],A=h[1],m=(0,s.useRef)(!1),y=function(e,t){return i(void 0,void 0,void 0,(function(){var r,n;return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),[4,c.FormoAnalytics.init(e,t)];case 1:return r=i.sent(),f(r),console.log("FormoAnalytics SDK initialized successfully"),[3,4];case 2:return n=i.sent(),console.error("Failed to initialize FormoAnalytics SDK",n),[3,4];case 3:return A(!0),[7];case 4:return[2]}}))}))};return(0,s.useEffect)((function(){i(void 0,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return m.current?[2]:(m.current=!0,[4,y(r,n)]);case 1:return e.sent(),[2]}}))}))}),[r,n]),p?(0,o.jsx)(t.FormoAnalyticsContext.Provider,{value:d,children:u}):(0,o.jsx)("div",{children:"Loading analytics..."})};t.useFormoAnalytics=function(){var e=(0,s.useContext)(t.FormoAnalyticsContext);return e||console.warn("useFormoAnalytics called without a valid context"),e}},921:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SESSION_IDENTIFIED_KEY=t.SESSION_PREFIX=void 0,t.SESSION_PREFIX="f0-",t.SESSION_IDENTIFIED_KEY=t.SESSION_PREFIX+"session_identified"},358:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COUNTRY_LIST=t.CURRENT_URL_KEY=t.EVENTS_API_URL=void 0,t.EVENTS_API_URL="https://events.formo.so/events",t.CURRENT_URL_KEY="formo-analytics-current-url",t.COUNTRY_LIST={"Africa/Abidjan":"CI","Africa/Accra":"GH","Africa/Addis_Ababa":"ET","Africa/Algiers":"DZ","Africa/Asmara":"ER","Africa/Asmera":"ER","Africa/Bamako":"ML","Africa/Bangui":"CF","Africa/Banjul":"GM","Africa/Bissau":"GW","Africa/Blantyre":"MW","Africa/Brazzaville":"CG","Africa/Bujumbura":"BI","Africa/Cairo":"EG","Africa/Casablanca":"MA","Africa/Ceuta":"ES","Africa/Conakry":"GN","Africa/Dakar":"SN","Africa/Dar_es_Salaam":"TZ","Africa/Djibouti":"DJ","Africa/Douala":"CM","Africa/El_Aaiun":"EH","Africa/Freetown":"SL","Africa/Gaborone":"BW","Africa/Harare":"ZW","Africa/Johannesburg":"ZA","Africa/Juba":"SS","Africa/Kampala":"UG","Africa/Khartoum":"SD","Africa/Kigali":"RW","Africa/Kinshasa":"CD","Africa/Lagos":"NG","Africa/Libreville":"GA","Africa/Lome":"TG","Africa/Luanda":"AO","Africa/Lubumbashi":"CD","Africa/Lusaka":"ZM","Africa/Malabo":"GQ","Africa/Maputo":"MZ","Africa/Maseru":"LS","Africa/Mbabane":"SZ","Africa/Mogadishu":"SO","Africa/Monrovia":"LR","Africa/Nairobi":"KE","Africa/Ndjamena":"TD","Africa/Niamey":"NE","Africa/Nouakchott":"MR","Africa/Ouagadougou":"BF","Africa/Porto-Novo":"BJ","Africa/Sao_Tome":"ST","Africa/Timbuktu":"ML","Africa/Tripoli":"LY","Africa/Tunis":"TN","Africa/Windhoek":"NA","America/Adak":"US","America/Anchorage":"US","America/Anguilla":"AI","America/Antigua":"AG","America/Araguaina":"BR","America/Argentina/Buenos_Aires":"AR","America/Argentina/Catamarca":"AR","America/Argentina/ComodRivadavia":"AR","America/Argentina/Cordoba":"AR","America/Argentina/Jujuy":"AR","America/Argentina/La_Rioja":"AR","America/Argentina/Mendoza":"AR","America/Argentina/Rio_Gallegos":"AR","America/Argentina/Salta":"AR","America/Argentina/San_Juan":"AR","America/Argentina/San_Luis":"AR","America/Argentina/Tucuman":"AR","America/Argentina/Ushuaia":"AR","America/Aruba":"AW","America/Asuncion":"PY","America/Atikokan":"CA","America/Atka":"US","America/Bahia":"BR","America/Bahia_Banderas":"MX","America/Barbados":"BB","America/Belem":"BR","America/Belize":"BZ","America/Blanc-Sablon":"CA","America/Boa_Vista":"BR","America/Bogota":"CO","America/Boise":"US","America/Buenos_Aires":"AR","America/Cambridge_Bay":"CA","America/Campo_Grande":"BR","America/Cancun":"MX","America/Caracas":"VE","America/Catamarca":"AR","America/Cayenne":"GF","America/Cayman":"KY","America/Chicago":"US","America/Chihuahua":"MX","America/Ciudad_Juarez":"MX","America/Coral_Harbour":"CA","America/Cordoba":"AR","America/Costa_Rica":"CR","America/Creston":"CA","America/Cuiaba":"BR","America/Curacao":"CW","America/Danmarkshavn":"GL","America/Dawson":"CA","America/Dawson_Creek":"CA","America/Denver":"US","America/Detroit":"US","America/Dominica":"DM","America/Edmonton":"CA","America/Eirunepe":"BR","America/El_Salvador":"SV","America/Ensenada":"MX","America/Fort_Nelson":"CA","America/Fort_Wayne":"US","America/Fortaleza":"BR","America/Glace_Bay":"CA","America/Godthab":"GL","America/Goose_Bay":"CA","America/Grand_Turk":"TC","America/Grenada":"GD","America/Guadeloupe":"GP","America/Guatemala":"GT","America/Guayaquil":"EC","America/Guyana":"GY","America/Halifax":"CA","America/Havana":"CU","America/Hermosillo":"MX","America/Indiana/Indianapoli":"US","America/Indiana/Knox":"US","America/Indiana/Marengo":"US","America/Indiana/Petersburg":"US","America/Indiana/Tell_City":"US","America/Indiana/Vevay":"US","America/Indiana/Vincennes":"US","America/Indiana/Winamac":"US","America/Indianapoli":"US","America/Inuvik":"CA","America/Iqaluit":"CA","America/Jamaica":"JM","America/Jujuy":"AR","America/Juneau":"US","America/Kentucky/Louisville":"US","America/Kentucky/Monticello":"US","America/Knox_IN":"US","America/Kralendijk":"BQ","America/La_Paz":"BO","America/Lima":"PE","America/Los_Angeles":"US","America/Louisville":"US","America/Lower_Princes":"SX","America/Maceio":"BR","America/Managua":"NI","America/Manaus":"BR","America/Marigot":"MF","America/Martinique":"MQ","America/Matamoros":"MX","America/Mazatlan":"MX","America/Mendoza":"AR","America/Menominee":"US","America/Merida":"MX","America/Metlakatla":"US","America/Mexico_City":"MX","America/Miquelon":"PM","America/Moncton":"CA","America/Monterrey":"MX","America/Montevideo":"UY","America/Montreal":"CA","America/Montserrat":"MS","America/Nassau":"BS","America/New_York":"US","America/Nipigon":"CA","America/Nome":"US","America/Noronha":"BR","America/North_Dakota/Beulah":"US","America/North_Dakota/Center":"US","America/North_Dakota/New_Salem":"US","America/Nuuk":"GL","America/Ojinaga":"MX","America/Panama":"PA","America/Pangnirtung":"CA","America/Paramaribo":"SR","America/Phoenix":"US,CA","America/Port-au-Prince":"HT","America/Port_of_Spain":"TT","America/Porto_Acre":"BR","America/Porto_Velho":"BR","America/Puerto_Rico":"PR","America/Punta_Arenas":"CL","America/Rainy_River":"CA","America/Rankin_Inlet":"CA","America/Recife":"BR","America/Regina":"CA","America/Resolute":"CA","America/Rio_Branco":"BR","America/Rosario":"AR","America/Santa_Isabel":"MX","America/Santarem":"BR","America/Santiago":"CL","America/Santo_Domingo":"DO","America/Sao_Paulo":"BR","America/Scoresbysund":"GL","America/Shiprock":"US","America/Sitka":"US","America/St_Barthelemy":"BL","America/St_Johns":"CA","America/St_Kitts":"KN","America/St_Lucia":"LC","America/St_Thomas":"VI","America/St_Vincent":"VC","America/Swift_Current":"CA","America/Tegucigalpa":"HN","America/Thule":"GL","America/Thunder_Bay":"CA","America/Tijuana":"MX","America/Toronto":"CA","America/Tortola":"VG","America/Vancouver":"CA","America/Virgin":"VI","America/Whitehorse":"CA","America/Winnipeg":"CA","America/Yakutat":"US","America/Yellowknife":"CA","Antarctica/Casey":"AQ","Antarctica/Davis":"AQ","Antarctica/DumontDUrville":"AQ","Antarctica/Macquarie":"AU","Antarctica/Mawson":"AQ","Antarctica/McMurdo":"AQ","Antarctica/Palmer":"AQ","Antarctica/Rothera":"AQ","Antarctica/South_Pole":"AQ","Antarctica/Syowa":"AQ","Antarctica/Troll":"AQ","Antarctica/Vostok":"AQ","Arctic/Longyearbyen":"SJ","Asia/Aden":"YE","Asia/Almaty":"KZ","Asia/Amman":"JO","Asia/Anadyr":"RU","Asia/Aqtau":"KZ","Asia/Aqtobe":"KZ","Asia/Ashgabat":"TM","Asia/Ashkhabad":"TM","Asia/Atyrau":"KZ","Asia/Baghdad":"IQ","Asia/Bahrain":"BH","Asia/Baku":"AZ","Asia/Bangkok":"TH","Asia/Barnaul":"RU","Asia/Beirut":"LB","Asia/Bishkek":"KG","Asia/Brunei":"BN","Asia/Calcutta":"IN","Asia/Chita":"RU","Asia/Choibalsan":"MN","Asia/Chongqing":"CN","Asia/Chungking":"CN","Asia/Colombo":"LK","Asia/Dacca":"BD","Asia/Damascus":"SY","Asia/Dhaka":"BD","Asia/Dili":"TL","Asia/Dubai":"AE","Asia/Dushanbe":"TJ","Asia/Famagusta":"CY","Asia/Gaza":"PS","Asia/Harbin":"CN","Asia/Hebron":"PS","Asia/Ho_Chi_Minh":"VN","Asia/Hong_Kong":"HK","Asia/Hovd":"MN","Asia/Irkutsk":"RU","Asia/Istanbul":"TR","Asia/Jakarta":"ID","Asia/Jayapura":"ID","Asia/Jerusalem":"IL","Asia/Kabul":"AF","Asia/Kamchatka":"RU","Asia/Karachi":"PK","Asia/Kashgar":"CN","Asia/Kathmandu":"NP","Asia/Katmandu":"NP","Asia/Khandyga":"RU","Asia/Kolkata":"IN","Asia/Krasnoyarsk":"RU","Asia/Kuala_Lumpur":"MY","Asia/Kuching":"MY","Asia/Kuwait":"KW","Asia/Macao":"MO","Asia/Macau":"MO","Asia/Magadan":"RU","Asia/Makassar":"ID","Asia/Manila":"PH","Asia/Muscat":"OM","Asia/Nicosia":"CY","Asia/Novokuznetsk":"RU","Asia/Novosibirsk":"RU","Asia/Omsk":"RU","Asia/Oral":"KZ","Asia/Phnom_Penh":"KH","Asia/Pontianak":"ID","Asia/Pyongyang":"KP","Asia/Qatar":"QA","Asia/Qostanay":"KZ","Asia/Qyzylorda":"KZ","Asia/Rangoon":"MM","Asia/Riyadh":"SA","Asia/Saigon":"VN","Asia/Sakhalin":"RU","Asia/Samarkand":"UZ","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Srednekolymsk":"RU","Asia/Taipei":"TW","Asia/Tashkent":"UZ","Asia/Tbilisi":"GE","Asia/Tehran":"IR","Asia/Tel_Aviv":"IL","Asia/Thimbu":"BT","Asia/Thimphu":"BT","Asia/Tokyo":"JP","Asia/Tomsk":"RU","Asia/Ujung_Pandang":"ID","Asia/Ulaanbaatar":"MN","Asia/Ulan_Bator":"MN","Asia/Urumqi":"CN","Asia/Ust-Nera":"RU","Asia/Vientiane":"LA","Asia/Vladivostok":"RU","Asia/Yakutsk":"RU","Asia/Yangon":"MM","Asia/Yekaterinburg":"RU","Asia/Yerevan":"AM","Atlantic/Azores":"PT","Atlantic/Bermuda":"BM","Atlantic/Canary":"ES","Atlantic/Cape_Verde":"CV","Atlantic/Faeroe":"FO","Atlantic/Faroe":"FO","Atlantic/Jan_Mayen":"SJ","Atlantic/Madeira":"PT","Atlantic/Reykjavik":"IS","Atlantic/South_Georgia":"GS","Atlantic/St_Helena":"SH","Atlantic/Stanley":"FK","Australia/ACT":"AU","Australia/Adelaide":"AU","Australia/Brisbane":"AU","Australia/Broken_Hill":"AU","Australia/Canberra":"AU","Australia/Currie":"AU","Australia/Darwin":"AU","Australia/Eucla":"AU","Australia/Hobart":"AU","Australia/LHI":"AU","Australia/Lindeman":"AU","Australia/Lord_Howe":"AU","Australia/Melbourne":"AU","Australia/North":"AU","Australia/NSW":"AU","Australia/Perth":"AU","Australia/Queensland":"AU","Australia/South":"AU","Australia/Sydney":"AU","Australia/Tasmania":"AU","Australia/Victoria":"AU","Australia/West":"AU","Australia/Yancowinna":"AU","Brazil/Acre":"BR","Brazil/DeNoronha":"BR","Brazil/East":"BR","Brazil/West":"BR","Canada/Atlantic":"CA","Canada/Central":"CA","Canada/Eastern":"CA","Canada/Mountain":"CA","Canada/Newfoundland":"CA","Canada/Pacific":"CA","Canada/Saskatchewan":"CA","Canada/Yukon":"CA",CET:"CET","Chile/Continental":"CL","Chile/EasterIsland":"CL",CST6CDT:"CST6CDT",Cuba:"CU",EET:"EET",Egypt:"EG",Eire:"IE",EST:"EST",EST5EDT:"EST5EDT","Etc/GMT":"Etc/GMT","Etc/GMT+0":"Etc/GMT+0","Etc/GMT+1":"Etc/GMT+1","Etc/GMT+10":"Etc/GMT+10","Etc/GMT+11":"Etc/GMT+11","Etc/GMT+12":"Etc/GMT+12","Etc/GMT+2":"Etc/GMT+2","Etc/GMT+3":"Etc/GMT+3","Etc/GMT+4":"Etc/GMT+4","Etc/GMT+5":"Etc/GMT+5","Etc/GMT+6":"Etc/GMT+6","Etc/GMT+7":"Etc/GMT+7","Etc/GMT+8":"Etc/GMT+8","Etc/GMT+9":"Etc/GMT+9","Etc/GMT-0":"Etc/GMT-0","Etc/GMT-1":"Etc/GMT-1","Etc/GMT-10":"Etc/GMT-10","Etc/GMT-11":"Etc/GMT-11","Etc/GMT-12":"Etc/GMT-12","Etc/GMT-13":"Etc/GMT-13","Etc/GMT-14":"Etc/GMT-14","Etc/GMT-2":"Etc/GMT-2","Etc/GMT-3":"Etc/GMT-3","Etc/GMT-4":"Etc/GMT-4","Etc/GMT-5":"Etc/GMT-5","Etc/GMT-6":"Etc/GMT-6","Etc/GMT-7":"Etc/GMT-7","Etc/GMT-8":"Etc/GMT-8","Etc/GMT-9":"Etc/GMT-9","Etc/GMT0":"Etc/GMT0","Etc/Greenwich":"Etc/Greenwich","Etc/UCT":"Etc/UCT","Etc/UTC":"Etc/UTC","Etc/Universal":"Etc/Universal","Etc/Zulu":"Etc/Zulu","Europe/Amsterdam":"NL","Europe/Andorra":"AD","Europe/Astrakhan":"RU","Europe/Athens":"GR","Europe/Belfast":"GB","Europe/Belgrade":"RS","Europe/Berlin":"DE","Europe/Bratislava":"SK","Europe/Brussels":"BE","Europe/Bucharest":"RO","Europe/Budapest":"HU","Europe/Busingen":"DE","Europe/Chisinau":"MD","Europe/Copenhagen":"DK","Europe/Dublin":"IE","Europe/Gibraltar":"GI","Europe/Guernsey":"GG","Europe/Helsinki":"FI","Europe/Isle_of_Man":"IM","Europe/Istanbul":"TR","Europe/Jersey":"JE","Europe/Kaliningrad":"RU","Europe/Kiev":"UA","Europe/Kirov":"RU","Europe/Kyiv":"UA","Europe/Lisbon":"PT","Europe/Ljubljana":"SI","Europe/London":"GB","Europe/Luxembourg":"LU","Europe/Madrid":"ES","Europe/Malta":"MT","Europe/Mariehamn":"AX","Europe/Minsk":"BY","Europe/Monaco":"MC","Europe/Moscow":"RU","Europe/Nicosia":"CY","Europe/Oslo":"NO","Europe/Paris":"FR","Europe/Podgorica":"ME","Europe/Prague":"CZ","Europe/Riga":"LV","Europe/Rome":"IT","Europe/Samara":"RU","Europe/San_Marino":"SM","Europe/Sarajevo":"BA","Europe/Saratov":"RU","Europe/Simferopol":"RU","Europe/Skopje":"MK","Europe/Sofia":"BG","Europe/Stockholm":"SE","Europe/Tallinn":"EE","Europe/Tirane":"AL","Europe/Tiraspol":"MD","Europe/Ulyanovsk":"RU","Europe/Uzhgorod":"UA","Europe/Vaduz":"LI","Europe/Vatican":"VA","Europe/Vienna":"AT","Europe/Vilnius":"LT","Europe/Volgograd":"RU","Europe/Warsaw":"PL","Europe/Zagreb":"HR","Europe/Zaporozhye":"UA","Europe/Zurich":"CH",Factory:"Factory",GB:"GB","GB-Eire":"GB",GMT:"GMT","GMT+0":"GMT+0","GMT-0":"GMT-0",GMT0:"GMT0",Greenwich:"Greenwich",Hongkong:"HK",HST:"HST",Iceland:"IS","Indian/Antananarivo":"MG","Indian/Chagos":"IO","Indian/Christmas":"CX","Indian/Cocos":"CC","Indian/Comoro":"KM","Indian/Kerguelen":"TF","Indian/Mahe":"SC","Indian/Maldives":"MV","Indian/Mauritius":"MU","Indian/Mayotte":"YT","Indian/Reunion":"RE",Iran:"IR",Israel:"IL",Jamaica:"JM",Japan:"JP",Kwajalein:"MH",Libya:"LY",MET:"MET","Mexico/BajaNorte":"MX","Mexico/BajaSur":"MX","Mexico/General":"MX",MST:"MST",MST7MDT:"MST7MDT",Navajo:"US",NZ:"NZ","NZ-CHAT":"NZ","Pacific/Apia":"WS","Pacific/Auckland":"NZ","Pacific/Bougainville":"PG","Pacific/Chatham":"NZ","Pacific/Chuuk":"FM","Pacific/Easter":"CL","Pacific/Efate":"VU","Pacific/Enderbury":"KI","Pacific/Fakaofo":"TK","Pacific/Fiji":"FJ","Pacific/Funafuti":"TV","Pacific/Galapagos":"EC","Pacific/Gambier":"PF","Pacific/Guadalcanal":"SB","Pacific/Guam":"GU,MP","Pacific/Honolulu":"US","Pacific/Johnston":"UM","Pacific/Kanton":"KI","Pacific/Kiritimati":"KI","Pacific/Kosrae":"FM","Pacific/Kwajalein":"MH","Pacific/Majuro":"MH","Pacific/Marquesas":"PF","Pacific/Midway":"UM","Pacific/Nauru":"NR","Pacific/Niue":"NU","Pacific/Norfolk":"NF","Pacific/Noumea":"NC","Pacific/Pago_Pago":"AS","Pacific/Palau":"PW","Pacific/Pitcairn":"PN","Pacific/Pohnpei":"FM","Pacific/Ponape":"FM","Pacific/Port_Moresby":"PG","Pacific/Rarotonga":"CK","Pacific/Saipan":"MP","Pacific/Samoa":"AS","Pacific/Tahiti":"PF","Pacific/Tarawa":"KI","Pacific/Tongatapu":"TO","Pacific/Truk":"FM","Pacific/Wake":"UM","Pacific/Wallis":"WF","Pacific/Yap":"FM",Poland:"PL",Portugal:"PT",PRC:"CN",PST8PDT:"PST8PDT",ROC:"TW",ROK:"KR",Singapore:"SG",Turkey:"TR",UCT:"UCT",Universal:"Universal","US/Alaska":"US","US/Aleutian":"US","US/Arizona":"US","US/Central":"US","US/East-Indiana":"US","US/Eastern":"US","US/Hawaii":"US","US/Indiana-Starke":"US","US/Michigan":"US","US/Mountain":"US","US/Pacific":"US","US/Samoa":"AS",UTC:"UTC","W-SU":"RU",WET:"WET",Zulu:"Zulu"}},309:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,function(e){e.PAGE="page_hit",e.IDENTIFY="identify",e.CONNECT="connect",e.DISCONNECT="disconnect",e.CHAIN_CHANGED="chain_changed",e.SIGNATURE="signature",e.TRANSACTION="transaction"}(r||(t.Event=r={}))},450:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(921),t),i(r(358),t),i(r(309),t),i(r(417),t)},417:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX=void 0,t.REGEX={addressRegex:/^0x[a-fA-F0-9]{40}$/}},156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(190),t),i(r(879),t),i(r(574),t)},568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.session=void 0;var o=r(504);Object.defineProperty(t,"session",{enumerable:!0,get:function(){return a(o).default}}),i(r(973),t)},504:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStorage=void 0;var r=function(){function e(){this.json_prefix="__json="}return e.prototype.set=function(e,t){"boolean"==typeof t&&(t=!0===t?"true":"false"),"object"==typeof t&&(t=this.json_prefix+JSON.stringify(t)),sessionStorage.setItem(e,t)},e.prototype.get=function(e){var t=sessionStorage.getItem(e);if(!t||"string"!=typeof t)return null;if(["null","undefined"].some((function(e){return e==t})))return null;if(t.startsWith(this.json_prefix))try{return JSON.parse(t.slice(7))}catch(e){return console.error("[FORMO_ERROR] SessionStorage failed to parse JSON",e),null}return["true","false"].some((function(e){return e==t}))?JSON.parse(t):t},e.prototype.removeMatch=function(e){for(var t in sessionStorage)e.test(t)&&this.remove(t)},e.prototype.remove=function(e){sessionStorage.removeItem(e)},e.prototype.clear=function(){sessionStorage.clear()},e}();t.SessionStorage=r,t.default=new r},973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=t.isLocalhost=void 0,t.toSnakeCase=function(e,t){void 0===t&&(t=[]);var r=function(e){return Array.isArray(e)?e.map(r):null!==e&&"object"==typeof e?Object.keys(e).reduce((function(n,a){return n[t.includes(a)?a:i(a)]=t.includes(a)?e[a]:r(e[a]),n}),{}):e};return r(e)};var n=r(450),i=function(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase()};t.isLocalhost=function(){return/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(window.location.hostname)||"file:"===window.location.protocol},t.isAddress=function(e){return n.REGEX.addressRegex.test(e)}},989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},465:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=t.SignatureStatus=void 0,function(e){e.REQUESTED="requested",e.REJECTED="rejected",e.CONFIRMED="confirmed"}(r||(t.SignatureStatus=r={})),function(e){e.STARTED="started",e.REJECTED="rejected",e.BROADCASTED="broadcasted"}(n||(t.TransactionStatus=n={}))},574:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(989),t),i(r(465),t),i(r(521),t)},521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},425:(e,t,r)=>{function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,o=(s=Object.create(null),e=>{const t=i.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,d=u("undefined"),f=c("ArrayBuffer"),h=u("string"),p=u("function"),A=u("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==o(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},g=c("Date"),v=c("File"),E=c("Blob"),b=c("FileList"),S=c("URLSearchParams"),[w,C,_,T]=["ReadableStream","Request","Response","Headers"].map(c);function R(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),l(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}function P(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,M=e=>!d(e)&&e!==O,U=(N="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>N&&e instanceof N);var N;const I=c("HTMLFormElement"),k=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),j=c("RegExp"),L=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};R(r,((r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)})),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",D="0123456789",F={DIGIT:D,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+D},x=c("AsyncFunction"),G=(K="function"==typeof setImmediate,H=p(O.postMessage),K?setImmediate:H?(q=`axios@${Math.random()}`,z=[],O.addEventListener("message",(({source:e,data:t})=>{e===O&&t===q&&z.length&&z.shift()()}),!1),e=>{z.push(e),O.postMessage(q,"*")}):e=>setTimeout(e));var K,H,q,z;const J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(O):"undefined"!=typeof process&&process.nextTick||G;var V={isArray:l,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=o(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:h,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isReadableStream:w,isRequest:C,isResponse:_,isHeaders:T,isUndefined:d,isDate:g,isFile:v,isBlob:E,isRegExp:j,isFunction:p,isStream:e=>m(e)&&p(e.pipe),isURLSearchParams:S,isTypedArray:U,isFileList:b,forEach:R,merge:function e(){const{caseless:t}=M(this)&&this||{},r={},n=(n,i)=>{const a=t&&P(r,i)||i;y(r[a])&&y(n)?r[a]=e(r[a],n):y(n)?r[a]=e({},n):l(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:i}={})=>(R(t,((t,i)=>{r&&p(t)?e[i]=n(t,r):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],n&&!n(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!A(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:I,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];p(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return l(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:O,isContextDefined:M,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=l(e)?[]:{};return R(e,((e,t)=>{const a=r(e,n+1);!d(a)&&(i[t]=a)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:x,isThenable:e=>e&&(m(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:G,asap:J};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}V.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Y=W.prototype,$={};function Z(e){return V.isPlainObject(e)||V.isArray(e)}function X(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$[e]={value:e}})),Object.defineProperties(W,$),Object.defineProperty(Y,"isAxiosError",{value:!0}),W.from=(e,t,r,n,i,a)=>{const o=Object.create(Y);return V.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const ee=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,i=r.visitor||u,a=r.dots,o=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,i){let s=e;if(e&&!i&&"object"==typeof e)if(V.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Z)}(e)||(V.isFileList(e)||V.endsWith(r,"[]"))&&(s=V.toArray(e)))return r=X(r),s.forEach((function(e,n){!V.isUndefined(e)&&null!==e&&t.append(!0===o?Q([r],n,a):null===o?r:r+"[]",c(e))})),!1;return!!Z(e)||(t.append(Q(i,r,a),c(e)),!1)}const l=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Z});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!V.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),V.forEach(r,(function(r,a){!0===(!(V.isUndefined(r)||null===r)&&i.call(t,r,V.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])})),l.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const ie=ne.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ae,i=r&&r.serialize;let a;if(a=i?i(t,r):V.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,fe=le&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pe=le&&window.location.href||"http://localhost";var Ae={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:fe,navigator:de,origin:pe}),...ue};function me(e){function t(e,r,n,i){let a=e[i++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=i>=e.length;return a=!a&&V.isArray(n)?n.length:a,s?(V.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!o):(n[a]&&V.isObject(n[a])||(n[a]=[]),t(e,r,n[a],i)&&V.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}(n[a])),!o)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,((e,n)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=V.isObject(e);if(i&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return n?JSON.stringify(me(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new Ae.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Ae.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=V.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e){if(V.isString(e))try{return(0,JSON.parse)(e),V.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ae.classes.FormData,Blob:Ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var ge=ye;const ve=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ee=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function Se(e){return!1===e||null==e?e:V.isArray(e)?e.map(Se):String(e)}function we(e,t,r,n,i){return V.isFunction(n)?n.call(this,t,r):(i&&(t=r),V.isString(t)?V.isString(n)?-1!==t.indexOf(n):V.isRegExp(n)?n.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=be(t);if(!i)throw new Error("header name must be a non-empty string");const a=V.findKey(n,i);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=Se(e))}const a=(e,t)=>V.forEach(e,((e,r)=>i(e,r,t)));if(V.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(V.isHeaders(e))for(const[t,n]of e.entries())i(n,t,r);else null!=e&&i(t,e,r);return this}get(e,t){if(e=be(e)){const r=V.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(V.isFunction(t))return t.call(this,e,r);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const r=V.findKey(this,e);return!(!r||void 0===this[r]||t&&!we(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=be(e)){const i=V.findKey(r,e);!i||t&&!we(0,r[i],i,t)||(delete r[i],n=!0)}}return V.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!we(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return V.forEach(this,((n,i)=>{const a=V.findKey(r,i);if(a)return t[a]=Se(n),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();o!==i&&delete t[i],t[o]=Se(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&V.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=be(e);t[n]||(function(e,t){const r=V.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return V.isArray(e)?e.forEach(n):n(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Ce.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),V.freezeMethods(Ce);var _e=Ce;function Te(e,t){const r=this||ge,n=t||r,i=_e.from(n.headers);let a=n.data;return V.forEach(e,(function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function Re(e){return!(!e||!e.__CANCEL__)}function Pe(e,t,r){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,r),this.name="CanceledError"}function Oe(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}V.inherits(Pe,W,{__CANCEL__:!0});const Me=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[o];i||(i=c),r[a]=s,n[a]=c;let l=o,d=0;for(;l!==a;)d+=r[l++],l%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-i<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,i=0,a=1e3/t;const o=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=a?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),a-s)))},()=>r&&o(r)]}((r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,c=i(s);n=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&a<=o?(o-a)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),r)},Ue=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ne=e=>(...t)=>V.asap((()=>e(...t)));var Ie=Ae.hasStandardBrowserEnv?function(){const e=Ae.navigator&&/(msie|trident)/i.test(Ae.navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=V.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},ke=Ae.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),V.isString(n)&&o.push("path="+n),V.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function je(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof _e?{...e}:e;function Be(e,t){t=t||{};const r={};function n(e,t,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function i(e,t,r){return V.isUndefined(t)?V.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!V.isUndefined(t))return n(void 0,t)}function o(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t)=>i(Le(e),Le(t),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=c[n]||i,o=a(e[n],t[n],n);V.isUndefined(o)&&a!==s||(r[n]=o)})),r}var De=e=>{const t=Be({},e);let r,{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:c}=t;if(t.headers=s=_e.from(s),t.url=oe(je(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),V.isFormData(n))if(Ae.hasStandardBrowserEnv||Ae.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ae.hasStandardBrowserEnv&&(i&&V.isFunction(i)&&(i=i(t)),i||!1!==i&&Ie(t.url))){const e=a&&o&&ke.read(o);e&&s.set(a,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=De(e);let i=n.data;const a=_e.from(n.headers).normalize();let o,s,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=n;function p(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let A=new XMLHttpRequest;function m(){if(!A)return;const n=_e.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders());Oe((function(e){t(e),p()}),(function(e){r(e),p()}),{data:d&&"text"!==d&&"json"!==d?A.response:A.responseText,status:A.status,statusText:A.statusText,headers:n,config:e,request:A}),A=null}A.open(n.method.toUpperCase(),n.url,!0),A.timeout=n.timeout,"onloadend"in A?A.onloadend=m:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(m)},A.onabort=function(){A&&(r(new W("Request aborted",W.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new W(t,i.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,A)),A=null},void 0===i&&a.setContentType(null),"setRequestHeader"in A&&V.forEach(a.toJSON(),(function(e,t){A.setRequestHeader(t,e)})),V.isUndefined(n.withCredentials)||(A.withCredentials=!!n.withCredentials),d&&"json"!==d&&(A.responseType=n.responseType),h&&([c,l]=Me(h,!0),A.addEventListener("progress",c)),f&&A.upload&&([s,u]=Me(f),A.upload.addEventListener("progress",s),A.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{A&&(r(!t||t.type?new Pe(null,e,A):t),A.abort(),A=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);y&&-1===Ae.protocols.indexOf(y)?r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e)):A.send(i||null)}))},xe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof W?t:new Pe(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))}),t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=n;return s.unsubscribe=()=>V.asap(o),s}};const Ge=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},Ke=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Ge(r,t)}(e,t);let a,o=0,s=e=>{a||(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return s(),void e.close();let a=n.byteLength;if(r){let e=o+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qe=He&&"function"==typeof ReadableStream,ze=He&&("function"==typeof TextEncoder?(Je=new TextEncoder,e=>Je.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Je;const Ve=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},We=qe&&Ve((()=>{let e=!1;const t=new Request(Ae.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ye=qe&&Ve((()=>V.isReadableStream(new Response("").body))),$e={stream:Ye&&(e=>e.body)};var Ze;He&&(Ze=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$e[e]&&($e[e]=V.isFunction(Ze[e])?t=>t[e]():(t,r)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=De(e);u=u?(u+"").toLowerCase():"text";let h,p=xe([i,a&&a.toAbortSignal()],o);const A=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&We&&"get"!==r&&"head"!==r&&0!==(m=await(async(e,t)=>{const r=V.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(Ae.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await ze(e)).byteLength:void 0)})(t):r})(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(V.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=Ue(m,Me(Ne(c)));n=Ke(r.body,65536,e,t)}}V.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:i?d:void 0});let a=await fetch(h);const o=Ye&&("stream"===u||"response"===u);if(Ye&&(s||o&&A)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=V.toFiniteNumber(a.headers.get("content-length")),[r,n]=s&&Ue(t,Me(Ne(s),!0))||[];a=new Response(Ke(a.body,65536,r,(()=>{n&&n(),A&&A()})),e)}u=u||"text";let y=await $e[V.findKey($e,u)||"text"](a,e);return!o&&A&&A(),await new Promise(((t,r)=>{Oe(t,r,{data:y,headers:_e.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:h})}))}catch(t){if(A&&A(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,h),{cause:t.cause||t});throw W.from(t,t&&t.code,e,h)}})};V.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qe=e=>`- ${e}`,et=e=>V.isFunction(e)||null===e||!1===e;var tt=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a<t;a++){let t;if(r=e[a],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new W(`Unknown adapter '${t}'`);if(n)break;i[t||"#"+a]=n}if(!n){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new W("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function nt(e){return rt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ge.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t}),(function(t){return Re(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)}))}const it={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{it[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const at={};it.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new W(n(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!at[i]&&(at[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new W("option "+a+" must be "+r,W.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new W("Unknown option "+a,W.ERR_BAD_OPTION)}},validators:it};const st=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=n&&(V.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:st.function,serialize:st.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=_e.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[nt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=o.length;let f=t;for(d=0;d<l;){const e=o[d++],t=o[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return oe(je((e=Be(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(Be(r||{},{method:e,url:t,data:(r||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(Be(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new Pe(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}var dt=lt;const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ft).forEach((([e,t])=>{ft[t]=e}));var ht=ft;const pt=function e(t){const r=new ut(t),i=n(ut.prototype.request,r);return V.extend(i,ut.prototype,r,{allOwnKeys:!0}),V.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(Be(t,r))},i}(ge);pt.Axios=ut,pt.CanceledError=Pe,pt.CancelToken=dt,pt.isCancel=Re,pt.VERSION="1.7.7",pt.toFormData=te,pt.AxiosError=W,pt.Cancel=pt.CanceledError,pt.all=function(e){return Promise.all(e)},pt.spread=function(e){return function(t){return e.apply(null,t)}},pt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},pt.mergeConfig=Be,pt.AxiosHeaders=_e,pt.formToJSON=e=>me(V.isHTMLForm(e)?new FormData(e):e),pt.getAdapter=tt,pt.HttpStatusCode=ht,pt.default=pt,e.exports=pt},228:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=t.createStore=void 0;var n=r(349);Object.defineProperty(t,"createStore",{enumerable:!0,get:function(){return n.createStore}});var i=r(317);Object.defineProperty(t,"announceProvider",{enumerable:!0,get:function(){return i.announceProvider}}),Object.defineProperty(t,"requestProviders",{enumerable:!0,get:function(){return i.requestProviders}})},349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;const n=r(317);t.createStore=function(){const e=new Set;let t=[];const r=()=>(0,n.requestProviders)((r=>{t.some((({info:e})=>e.uuid===r.info.uuid))||(t=[...t,r],e.forEach((e=>e(t,{added:[r]}))))}));let i=r();return{_listeners:()=>e,clear(){e.forEach((e=>e([],{removed:[...t]}))),t=[]},destroy(){this.clear(),e.clear(),i?.()},findProvider:({rdns:e})=>t.find((t=>t.info.rdns===e)),getProviders:()=>t,reset(){this.clear(),i?.(),i=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}},317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=void 0,t.announceProvider=function(e){const t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t);const r=()=>window.dispatchEvent(t);return window.addEventListener("eip6963:requestProvider",r),()=>window.removeEventListener("eip6963:requestProvider",r)},t.requestProviders=function(e){if("undefined"==typeof window)return;const t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var n=r(156);return n.FormoAnalytics})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("FormoAnalytics",[],t):"object"==typeof exports?exports.FormoAnalytics=t():e.FormoAnalytics=t()}(self,(()=>(()=>{"use strict";var e={20:(e,t,r)=>{var n=r(540),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,a={},u=null,l=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:i,type:e,key:u,ref:l,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},287:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,m={};function y(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}function g(){}function v(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): 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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var E=v.prototype=new g;E.constructor=v,A(E,y.prototype),E.isPureReactComponent=!0;var b=Array.isArray,S=Object.prototype.hasOwnProperty,w={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)S.call(t,i)&&!_.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var u=Array(c),l=0;l<c;l++)u[l]=arguments[l+2];a.children=u}if(e&&e.defaultProps)for(i in c=e.defaultProps)void 0===a[i]&&(a[i]=c[i]);return{$$typeof:r,type:e,key:o,ref:s,props:a,_owner:w.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var R=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case r:case n:c=!0}}if(c)return o=o(c=e),e=""===a?"."+P(c,0):a,b(o)?(i="",null!=e&&(i=e.replace(R,"$&/")+"/"),O(o,t,i,"",(function(e){return e}))):null!=o&&(T(o)&&(o=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||c&&c.key===o.key?"":(""+o.key).replace(R,"$&/")+"/")+e)),t.push(o)),1;if(c=0,a=""===a?".":a+":",b(e))for(var u=0;u<e.length;u++){var l=a+P(s=e[u],u);c+=O(s,t,i,l,o)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),u=0;!(s=e.next()).done;)c+=O(s=s.value,t,i,l=a+P(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function M(e,t,r){if(null==e)return e;var n=[],i=0;return O(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function U(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},I={transition:null},k={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:I,ReactCurrentOwner:w};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:M,forEach:function(e,t,r){M(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=o,t.PureComponent=v,t.StrictMode=a,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.act=j,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=A({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!_.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}return{$$typeof:r,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:U}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,r){return N.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,r){return N.current.useReducer(e,t,r)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return N.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},540:(e,t,r)=>{e.exports=r(287)},848:(e,t,r)=>{e.exports=r(20)},879:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormoAnalytics=void 0;var c=s(r(425)),u=r(228),l=r(450),d=r(574),f=r(568),h=r(450),p=function(){function e(e,t){void 0===t&&(t={}),this.apiKey=e,this.options=t,this._providerListeners={},this.config={apiKey:e,trackLocalhost:t.trackLocalhost},this.session=new A;var r=t.provider||(null===window||void 0===window?void 0:window.ethereum);r&&this.trackProvider(r),this.trackFirstPageHit(),this.trackPageHits()}return e.init=function(t,r){return i(this,void 0,void 0,(function(){var n,i;return a(this,(function(a){switch(a.label){case 0:return[4,(n=new e(t,r)).getProviders()];case 1:return i=a.sent(),[4,n.identifyAll(i)];case 2:return a.sent(),[2,n]}}))}))},e.prototype.page=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.trackPageHit()];case 1:return e.sent(),[2]}}))}))},e.prototype.connect=function(e){return i(this,arguments,void 0,(function(e){var t=e.chainId,r=e.address;return a(this,(function(e){switch(e.label){case 0:if(!t)throw new Error("FormoAnalytics::connect: chain ID cannot be empty");if(!r)throw new Error("FormoAnalytics::connect: address cannot be empty");return this.currentChainId=t,this.currentConnectedAddress=r,[4,this.trackEvent(l.Event.CONNECT,{chainId:t,address:r})];case 1:return e.sent(),[2]}}))}))},e.prototype.disconnect=function(e){return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return t=(null==e?void 0:e.address)||this.currentConnectedAddress,r=(null==e?void 0:e.chainId)||this.currentChainId,[4,this.handleDisconnect(r,t)];case 1:return n.sent(),[2]}}))}))},e.prototype.chain=function(e){return i(this,arguments,void 0,(function(e){var t=e.chainId,r=e.address;return a(this,(function(e){switch(e.label){case 0:if(!t||0===Number(t))throw new Error("FormoAnalytics::chain: chainId cannot be empty or 0");if(isNaN(Number(t)))throw new Error("FormoAnalytics::chain: chainId must be a valid decimal number");if(!r&&!this.currentConnectedAddress)throw new Error("FormoAnalytics::chain: address was empty and no previous address has been recorded");return this.currentChainId=t,[4,this.trackEvent(l.Event.CHAIN_CHANGED,{chainId:t,address:r||this.currentConnectedAddress})];case 1:return e.sent(),[2]}}))}))},e.prototype.signature=function(e){return i(this,arguments,void 0,(function(e){var t=e.status,r=e.chainId,i=e.address,o=e.message,s=e.signatureHash;return a(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(l.Event.SIGNATURE,n({status:t,chainId:r,address:i,message:o},s&&{signatureHash:s}))];case 1:return e.sent(),[2]}}))}))},e.prototype.transaction=function(e){return i(this,arguments,void 0,(function(e){var t=e.status,r=e.chainId,i=e.address,o=e.data,s=e.to,c=e.value,u=e.transactionHash;return a(this,(function(e){switch(e.label){case 0:return[4,this.trackEvent(l.Event.TRANSACTION,n({status:t,chainId:r,address:i,data:o,to:s,value:c},u&&{transactionHash:u}))];case 1:return e.sent(),[2]}}))}))},e.prototype.identify=function(e){return i(this,arguments,void 0,(function(e){var t=e.address,r=e.providerName,n=e.rdns;return a(this,(function(e){switch(e.label){case 0:return this.session.isIdentified()?[2,console.warn("FormoAnalytics::identify: Wallet already identified in this session")]:(this.session.identify(),[4,this.trackEvent(l.Event.IDENTIFY,{address:t,providerName:r,rdns:n})]);case 1:return e.sent(),[2]}}))}))},e.prototype.track=function(e,t){return i(this,void 0,void 0,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.trackEvent(e,t)];case 1:return r.sent(),[2]}}))}))},e.prototype.trackProvider=function(e){if(e!==this._provider){if(this.currentChainId=void 0,this.currentConnectedAddress=void 0,this._provider)for(var t=0,r=Object.keys(this._providerListeners);t<r.length;t++){var n=r[t];this._provider.removeListener(n,this._providerListeners[n]),delete this._providerListeners[n]}this._provider=e,this.registerAddressChangedListener(),this.registerChainChangedListener(),this.registerSignatureListener(),this.registerTransactionListener()}else console.warn("FormoAnalytics::trackProvider: Provider already tracked.")},e.prototype.registerAddressChangedListener=function(){var e,t,r=this,n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.onAddressChanged(e[0])};null===(e=this._provider)||void 0===e||e.on("accountsChanged",n),this._providerListeners.accountsChanged=n;var i=this.onAddressDisconnected.bind(this);null===(t=this._provider)||void 0===t||t.on("disconnect",i),this._providerListeners.disconnect=i},e.prototype.registerChainChangedListener=function(){var e,t=this,r=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.onChainChanged(e[0])};null===(e=this.provider)||void 0===e||e.on("chainChanged",r),this._providerListeners.chainChanged=r},e.prototype.registerSignatureListener=function(){var e,t=this;if(this.provider)if(!1!==(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable)){var r=this.provider.request.bind(this.provider);this.provider.request=function(e){return i(t,[e],void 0,(function(e){var t,i,o,s=e.method,c=e.params;return a(this,(function(e){switch(e.label){case 0:if(!Array.isArray(c)||!["eth_signTypedData_v4","personal_sign"].includes(s))return[3,4];this.signature(n({status:d.SignatureStatus.REQUESTED},this.buildSignatureEventPayload(s,c))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r({method:s,params:c})];case 2:return(t=e.sent())&&this.signature(n({status:d.SignatureStatus.CONFIRMED},this.buildSignatureEventPayload(s,c,t))),[2,t];case 3:throw i=e.sent(),(o=i)&&4001===(null==o?void 0:o.code)&&this.signature(n({status:d.SignatureStatus.REJECTED},this.buildSignatureEventPayload(s,c))),i;case 4:return[2,r({method:s,params:c})]}}))}))}}else console.warn("_trackSigning: provider.request is not writable");else console.error("_trackSigning: provider not found")},e.prototype.registerTransactionListener=function(){var e,t=this;if(this.provider)if(!1!==(null===(e=Object.getOwnPropertyDescriptor(this.provider,"request"))||void 0===e?void 0:e.writable)){var r=this.provider.request.bind(this.provider);this.provider.request=function(e){return i(t,[e],void 0,(function(e){var t,i,o,s,c=e.method,u=e.params;return a(this,(function(e){switch(e.label){case 0:return Array.isArray(u)&&"eth_sendTransaction"===c&&u[0]?[4,this.buildTransactionEventPayload(u)]:[3,5];case 1:t=e.sent(),this.transaction(n({status:d.TransactionStatus.STARTED},t)),e.label=2;case 2:return e.trys.push([2,4,,5]),[4,r({method:c,params:u})];case 3:return i=e.sent(),this.transaction(n(n({status:d.TransactionStatus.BROADCASTED},t),{transactionHash:i})),[2];case 4:throw o=e.sent(),console.log("transaction listener catch"),console.log(o),(s=o)&&4001===(null==s?void 0:s.code)&&this.transaction(n({status:d.TransactionStatus.REJECTED},t)),o;case 5:return[2,r({method:c,params:u})]}}))}))}}else console.warn("_trackTransactions: provider.request is not writable");else console.error("_trackTransactions: provider not found")},e.prototype.onAddressChanged=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){return e.length>0?this.onAddressConnected(e[0]):this.onAddressDisconnected(),[2]}))}))},e.prototype.onAddressConnected=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return e===this.currentConnectedAddress?[2]:(this.currentConnectedAddress=e,t=this,[4,this.getCurrentChainId()]);case 1:return t.currentChainId=r.sent(),this.connect({chainId:this.currentChainId,address:e}),[2]}}))}))},e.prototype.handleDisconnect=function(e,t){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return r={chain_id:e||this.currentChainId,address:t||this.currentConnectedAddress},this.currentChainId=void 0,this.currentConnectedAddress=void 0,[4,this.trackEvent(l.Event.DISCONNECT,r)];case 1:return n.sent(),[2]}}))}))},e.prototype.onAddressDisconnected=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.handleDisconnect(this.currentChainId,this.currentConnectedAddress)];case 1:return e.sent(),[2]}}))}))},e.prototype.onChainChanged=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return this.currentChainId=parseInt(e),this.currentConnectedAddress?[3,2]:this.provider?[4,this.getAddress()]:(console.log("FormoAnalytics::onChainChanged: provider not found. CHAIN_CHANGED not reported"),[2,Promise.resolve()]);case 1:if(!(t=r.sent()))return console.log("FormoAnalytics::onChainChanged: Unable to fetch or store connected address"),[2,Promise.resolve()];this.currentConnectedAddress=t,r.label=2;case 2:return this.currentConnectedAddress?[2,this.chain({chainId:this.currentChainId,address:this.currentConnectedAddress})]:(console.log("FormoAnalytics::onChainChanged: currentConnectedAddress is null despite fetch attempt"),[2])}}))}))},e.prototype.trackFirstPageHit=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return null===f.session.get(l.CURRENT_URL_KEY)&&f.session.set(l.CURRENT_URL_KEY,window.location.href),[2,this.trackPageHit()]}))}))},e.prototype.trackPageHits=function(){return i(this,void 0,void 0,(function(){var e,t,r=this;return a(this,(function(n){return e=history.pushState,history.pushState=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=e.apply(this,t);return window.dispatchEvent(new window.Event("locationchange")),n},t=history.replaceState,history.replaceState=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,e);return window.dispatchEvent(new window.Event("locationchange")),n},window.addEventListener("popstate",(function(){return r.onLocationChange()})),window.addEventListener("locationchange",(function(){return r.onLocationChange()})),[2]}))}))},e.prototype.onLocationChange=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return f.session.get(l.CURRENT_URL_KEY)!==window.location.href&&(f.session.set(l.CURRENT_URL_KEY,window.location.href),this.trackPageHit()),[2]}))}))},e.prototype.trackPageHit=function(){var e=this,t=window.location.pathname,r=window.location.hash;if(!this.config.trackLocalhost&&(0,f.isLocalhost)())return console.warn("FormoAnalytics::trackPageHit: Ignoring event because website is running locally");setTimeout((function(){return i(e,void 0,void 0,(function(){return a(this,(function(e){return this.trackEvent(l.Event.PAGE,{pathname:t,hash:r}),[2]}))}))}),300)},e.prototype.trackEvent=function(e,t){return i(this,void 0,void 0,(function(){var r,n,i,o,s;return a(this,(function(a){switch(a.label){case 0:return[4,this.getAddress()];case 1:return r=a.sent(),s={address:r,timestamp:(new Date).toISOString(),action:e,version:"1"},[4,this.buildEventPayload((0,f.toSnakeCase)(t))];case 2:s.payload=a.sent(),n=s,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,c.default.post(l.EVENTS_API_URL,JSON.stringify(n),{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(this.config.apiKey)}})];case 4:if(!((i=a.sent()).status>=200&&i.status<300))throw new Error("Failed with status: ".concat(i.status));return console.log("Event sent successfully: ".concat(this.getActionDescriptor(e,t))),[3,6];case 5:return o=a.sent(),console.error('Event "'.concat(e,'" failed. Error: ').concat(o)),[3,6];case 6:return[2]}}))}))},e.prototype.getProviders=function(){return i(this,void 0,void 0,(function(){var e,t;return a(this,(function(r){return e=(0,u.createStore)(),0===(t=o([],e.getProviders(),!0)).length?[2,[null===window||void 0===window?void 0:window.ethereum]]:[2,t]}))}))},e.prototype.identifyAll=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i,o,s,c,u,l,d;return a(this,(function(a){switch(a.label){case 0:t=0,r=e,a.label=1;case 1:if(!(t<r.length))return[3,13];n=r[t],i=n.provider,o=n.info,a.label=2;case 2:return a.trys.push([2,11,,12]),[4,this.getAccounts(i)];case 3:if(!((s=a.sent())&&s.length>0))return[3,8];c=0,u=s,a.label=4;case 4:return c<u.length?(l=u[c],[4,this.identify({address:l,providerName:o.name,rdns:o.rdns})]):[3,7];case 5:a.sent(),a.label=6;case 6:return c++,[3,4];case 7:return[3,10];case 8:return[4,this.identify({address:null,providerName:o.name,rdns:o.rdns})];case 9:a.sent(),a.label=10;case 10:return[3,12];case 11:return d=a.sent(),console.log("identifying all => err",d),[3,12];case 12:return t++,[3,1];case 13:return[2]}}))}))},Object.defineProperty(e.prototype,"provider",{get:function(){return this._provider},enumerable:!1,configurable:!0}),e.prototype.getAddress=function(){return i(this,void 0,void 0,(function(){var e,t;return a(this,(function(r){switch(r.label){case 0:if(this.currentConnectedAddress)return[2,this.currentConnectedAddress];if(!this.provider)return console.log("FormoAnalytics::getAddress: the provider is not set"),[2,null];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.getAccounts()];case 2:return(e=r.sent())&&e.length>0?[2,(0,f.isAddress)(e[0])?e[0]:null]:[3,4];case 3:return t=r.sent(),console.log("Failed to fetch accounts from provider:",t),[2,null];case 4:return[2,null]}}))}))},e.prototype.getAccounts=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return a(this,(function(i){switch(i.label){case 0:t=e||this.provider,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,null==t?void 0:t.request({method:"eth_accounts"})];case 2:return(r=i.sent())&&0!==r.length?[2,r.filter(f.isAddress)]:[2,null];case 3:return 4001!==(n=i.sent()).code&&console.log("FormoAnalytics::getAccounts: eth_accounts threw an error",n),[2,null];case 4:return[2]}}))}))},e.prototype.getCurrentChainId=function(){return i(this,void 0,void 0,(function(){var e,t,r;return a(this,(function(n){switch(n.label){case 0:this.provider||console.error("FormoAnalytics::getCurrentChainId: provider not set"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,null===(r=this.provider)||void 0===r?void 0:r.request({method:"eth_chainId"})];case 2:return(e=n.sent())?[2,parseInt(e,16)]:(console.log("FormoAnalytics::fetchChainId: chain id not found"),[2,0]);case 3:return t=n.sent(),console.log("FormoAnalytics::fetchChainId: eth_chainId threw an error",t),[2,0];case 4:return[2]}}))}))},e.prototype.getLocation=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;return e in l.COUNTRY_LIST?l.COUNTRY_LIST[e]:e}catch(e){return console.error("Error resolving timezone:",e),""}},e.prototype.getLanguage=function(){try{return(navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language)||"en"}catch(e){return console.error("Error resolving language:",e),"en"}},e.prototype.buildEventPayload=function(){return i(this,arguments,void 0,(function(e){var t,r,i,o;return void 0===e&&(e={}),a(this,(function(a){return t=new URL(window.location.href),r=new URLSearchParams(t.search),i=this.getLocation(),o=this.getLanguage(),[2,n({"user-agent":window.navigator.userAgent,href:t.href,locale:o,location:i,referrer:document.referrer,utm_source:r.get("utm_source"),utm_medium:r.get("utm_medium"),utm_campaign:r.get("utm_campaign"),utm_content:r.get("utm_content"),utm_term:r.get("utm_term"),ref:r.get("ref")},e)]}))}))},e.prototype.buildSignatureEventPayload=function(e,t,r){var i={chainId:this.currentChainId,address:"personal_sign"===e?t[1]:t[0]};if("personal_sign"===e){var a=Buffer.from(t[0].slice(2),"hex").toString("utf8");return n(n(n({},i),{message:a}),r?{signatureHash:r}:{})}return n(n(n({},i),{message:t[1]}),r?{signatureHash:r}:{})},e.prototype.buildTransactionEventPayload=function(e){return i(this,void 0,void 0,(function(){var t,r,n,i,o,s,c;return a(this,(function(a){switch(a.label){case 0:return t=e[0],r=t.data,n=t.from,i=t.to,o=t.value,c={},(s=this.currentChainId)?[3,2]:[4,this.getCurrentChainId()];case 1:s=a.sent(),a.label=2;case 2:return[2,(c.chainId=s,c.data=r,c.address=n,c.to=i,c.value=o,c)]}}))}))},e.prototype.getActionDescriptor=function(e,t){return"".concat(e).concat(t.status?" ".concat(t.status):"")},e}();t.FormoAnalytics=p;var A=function(){function e(){}return e.prototype.isIdentified=function(){return!0===f.session.get(h.SESSION_IDENTIFIED_KEY)},e.prototype.identify=function(){f.session.set(h.SESSION_IDENTIFIED_KEY,!0)},e}()},190:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFormoAnalytics=t.FormoAnalyticsProvider=t.FormoAnalyticsContext=void 0;var o=r(848),s=r(540),c=r(879);t.FormoAnalyticsContext=(0,s.createContext)(void 0),t.FormoAnalyticsProvider=function(e){var t=e.apiKey,r=e.disabled,i=e.children;return t?r?(console.warn("FormoAnalytics is disabled"),i):(0,o.jsx)(u,n({},e)):(console.error("FormoAnalyticsProvider: No API key provided"),i)};var u=function(e){var r=e.apiKey,n=e.options,u=e.children,l=(0,s.useState)(),d=l[0],f=l[1],h=(0,s.useState)(!1),p=h[0],A=h[1],m=(0,s.useRef)(!1),y=function(e,t){return i(void 0,void 0,void 0,(function(){var r,n;return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),[4,c.FormoAnalytics.init(e,t)];case 1:return r=i.sent(),f(r),console.log("FormoAnalytics SDK initialized successfully"),[3,4];case 2:return n=i.sent(),console.error("Failed to initialize FormoAnalytics SDK",n),[3,4];case 3:return A(!0),[7];case 4:return[2]}}))}))};return(0,s.useEffect)((function(){i(void 0,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return m.current?[2]:(m.current=!0,[4,y(r,n)]);case 1:return e.sent(),[2]}}))}))}),[r,n]),p?(0,o.jsx)(t.FormoAnalyticsContext.Provider,{value:d,children:u}):(0,o.jsx)("div",{children:"Loading analytics..."})};t.useFormoAnalytics=function(){var e=(0,s.useContext)(t.FormoAnalyticsContext);return e||console.warn("useFormoAnalytics called without a valid context"),e}},921:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SESSION_IDENTIFIED_KEY=t.SESSION_PREFIX=void 0,t.SESSION_PREFIX="f0-",t.SESSION_IDENTIFIED_KEY=t.SESSION_PREFIX+"session_identified"},358:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COUNTRY_LIST=t.CURRENT_URL_KEY=t.EVENTS_API_URL=void 0,t.EVENTS_API_URL="https://events.formo.so/events",t.CURRENT_URL_KEY="formo-analytics-current-url",t.COUNTRY_LIST={"Africa/Abidjan":"CI","Africa/Accra":"GH","Africa/Addis_Ababa":"ET","Africa/Algiers":"DZ","Africa/Asmara":"ER","Africa/Asmera":"ER","Africa/Bamako":"ML","Africa/Bangui":"CF","Africa/Banjul":"GM","Africa/Bissau":"GW","Africa/Blantyre":"MW","Africa/Brazzaville":"CG","Africa/Bujumbura":"BI","Africa/Cairo":"EG","Africa/Casablanca":"MA","Africa/Ceuta":"ES","Africa/Conakry":"GN","Africa/Dakar":"SN","Africa/Dar_es_Salaam":"TZ","Africa/Djibouti":"DJ","Africa/Douala":"CM","Africa/El_Aaiun":"EH","Africa/Freetown":"SL","Africa/Gaborone":"BW","Africa/Harare":"ZW","Africa/Johannesburg":"ZA","Africa/Juba":"SS","Africa/Kampala":"UG","Africa/Khartoum":"SD","Africa/Kigali":"RW","Africa/Kinshasa":"CD","Africa/Lagos":"NG","Africa/Libreville":"GA","Africa/Lome":"TG","Africa/Luanda":"AO","Africa/Lubumbashi":"CD","Africa/Lusaka":"ZM","Africa/Malabo":"GQ","Africa/Maputo":"MZ","Africa/Maseru":"LS","Africa/Mbabane":"SZ","Africa/Mogadishu":"SO","Africa/Monrovia":"LR","Africa/Nairobi":"KE","Africa/Ndjamena":"TD","Africa/Niamey":"NE","Africa/Nouakchott":"MR","Africa/Ouagadougou":"BF","Africa/Porto-Novo":"BJ","Africa/Sao_Tome":"ST","Africa/Timbuktu":"ML","Africa/Tripoli":"LY","Africa/Tunis":"TN","Africa/Windhoek":"NA","America/Adak":"US","America/Anchorage":"US","America/Anguilla":"AI","America/Antigua":"AG","America/Araguaina":"BR","America/Argentina/Buenos_Aires":"AR","America/Argentina/Catamarca":"AR","America/Argentina/ComodRivadavia":"AR","America/Argentina/Cordoba":"AR","America/Argentina/Jujuy":"AR","America/Argentina/La_Rioja":"AR","America/Argentina/Mendoza":"AR","America/Argentina/Rio_Gallegos":"AR","America/Argentina/Salta":"AR","America/Argentina/San_Juan":"AR","America/Argentina/San_Luis":"AR","America/Argentina/Tucuman":"AR","America/Argentina/Ushuaia":"AR","America/Aruba":"AW","America/Asuncion":"PY","America/Atikokan":"CA","America/Atka":"US","America/Bahia":"BR","America/Bahia_Banderas":"MX","America/Barbados":"BB","America/Belem":"BR","America/Belize":"BZ","America/Blanc-Sablon":"CA","America/Boa_Vista":"BR","America/Bogota":"CO","America/Boise":"US","America/Buenos_Aires":"AR","America/Cambridge_Bay":"CA","America/Campo_Grande":"BR","America/Cancun":"MX","America/Caracas":"VE","America/Catamarca":"AR","America/Cayenne":"GF","America/Cayman":"KY","America/Chicago":"US","America/Chihuahua":"MX","America/Ciudad_Juarez":"MX","America/Coral_Harbour":"CA","America/Cordoba":"AR","America/Costa_Rica":"CR","America/Creston":"CA","America/Cuiaba":"BR","America/Curacao":"CW","America/Danmarkshavn":"GL","America/Dawson":"CA","America/Dawson_Creek":"CA","America/Denver":"US","America/Detroit":"US","America/Dominica":"DM","America/Edmonton":"CA","America/Eirunepe":"BR","America/El_Salvador":"SV","America/Ensenada":"MX","America/Fort_Nelson":"CA","America/Fort_Wayne":"US","America/Fortaleza":"BR","America/Glace_Bay":"CA","America/Godthab":"GL","America/Goose_Bay":"CA","America/Grand_Turk":"TC","America/Grenada":"GD","America/Guadeloupe":"GP","America/Guatemala":"GT","America/Guayaquil":"EC","America/Guyana":"GY","America/Halifax":"CA","America/Havana":"CU","America/Hermosillo":"MX","America/Indiana/Indianapoli":"US","America/Indiana/Knox":"US","America/Indiana/Marengo":"US","America/Indiana/Petersburg":"US","America/Indiana/Tell_City":"US","America/Indiana/Vevay":"US","America/Indiana/Vincennes":"US","America/Indiana/Winamac":"US","America/Indianapoli":"US","America/Inuvik":"CA","America/Iqaluit":"CA","America/Jamaica":"JM","America/Jujuy":"AR","America/Juneau":"US","America/Kentucky/Louisville":"US","America/Kentucky/Monticello":"US","America/Knox_IN":"US","America/Kralendijk":"BQ","America/La_Paz":"BO","America/Lima":"PE","America/Los_Angeles":"US","America/Louisville":"US","America/Lower_Princes":"SX","America/Maceio":"BR","America/Managua":"NI","America/Manaus":"BR","America/Marigot":"MF","America/Martinique":"MQ","America/Matamoros":"MX","America/Mazatlan":"MX","America/Mendoza":"AR","America/Menominee":"US","America/Merida":"MX","America/Metlakatla":"US","America/Mexico_City":"MX","America/Miquelon":"PM","America/Moncton":"CA","America/Monterrey":"MX","America/Montevideo":"UY","America/Montreal":"CA","America/Montserrat":"MS","America/Nassau":"BS","America/New_York":"US","America/Nipigon":"CA","America/Nome":"US","America/Noronha":"BR","America/North_Dakota/Beulah":"US","America/North_Dakota/Center":"US","America/North_Dakota/New_Salem":"US","America/Nuuk":"GL","America/Ojinaga":"MX","America/Panama":"PA","America/Pangnirtung":"CA","America/Paramaribo":"SR","America/Phoenix":"US,CA","America/Port-au-Prince":"HT","America/Port_of_Spain":"TT","America/Porto_Acre":"BR","America/Porto_Velho":"BR","America/Puerto_Rico":"PR","America/Punta_Arenas":"CL","America/Rainy_River":"CA","America/Rankin_Inlet":"CA","America/Recife":"BR","America/Regina":"CA","America/Resolute":"CA","America/Rio_Branco":"BR","America/Rosario":"AR","America/Santa_Isabel":"MX","America/Santarem":"BR","America/Santiago":"CL","America/Santo_Domingo":"DO","America/Sao_Paulo":"BR","America/Scoresbysund":"GL","America/Shiprock":"US","America/Sitka":"US","America/St_Barthelemy":"BL","America/St_Johns":"CA","America/St_Kitts":"KN","America/St_Lucia":"LC","America/St_Thomas":"VI","America/St_Vincent":"VC","America/Swift_Current":"CA","America/Tegucigalpa":"HN","America/Thule":"GL","America/Thunder_Bay":"CA","America/Tijuana":"MX","America/Toronto":"CA","America/Tortola":"VG","America/Vancouver":"CA","America/Virgin":"VI","America/Whitehorse":"CA","America/Winnipeg":"CA","America/Yakutat":"US","America/Yellowknife":"CA","Antarctica/Casey":"AQ","Antarctica/Davis":"AQ","Antarctica/DumontDUrville":"AQ","Antarctica/Macquarie":"AU","Antarctica/Mawson":"AQ","Antarctica/McMurdo":"AQ","Antarctica/Palmer":"AQ","Antarctica/Rothera":"AQ","Antarctica/South_Pole":"AQ","Antarctica/Syowa":"AQ","Antarctica/Troll":"AQ","Antarctica/Vostok":"AQ","Arctic/Longyearbyen":"SJ","Asia/Aden":"YE","Asia/Almaty":"KZ","Asia/Amman":"JO","Asia/Anadyr":"RU","Asia/Aqtau":"KZ","Asia/Aqtobe":"KZ","Asia/Ashgabat":"TM","Asia/Ashkhabad":"TM","Asia/Atyrau":"KZ","Asia/Baghdad":"IQ","Asia/Bahrain":"BH","Asia/Baku":"AZ","Asia/Bangkok":"TH","Asia/Barnaul":"RU","Asia/Beirut":"LB","Asia/Bishkek":"KG","Asia/Brunei":"BN","Asia/Calcutta":"IN","Asia/Chita":"RU","Asia/Choibalsan":"MN","Asia/Chongqing":"CN","Asia/Chungking":"CN","Asia/Colombo":"LK","Asia/Dacca":"BD","Asia/Damascus":"SY","Asia/Dhaka":"BD","Asia/Dili":"TL","Asia/Dubai":"AE","Asia/Dushanbe":"TJ","Asia/Famagusta":"CY","Asia/Gaza":"PS","Asia/Harbin":"CN","Asia/Hebron":"PS","Asia/Ho_Chi_Minh":"VN","Asia/Hong_Kong":"HK","Asia/Hovd":"MN","Asia/Irkutsk":"RU","Asia/Istanbul":"TR","Asia/Jakarta":"ID","Asia/Jayapura":"ID","Asia/Jerusalem":"IL","Asia/Kabul":"AF","Asia/Kamchatka":"RU","Asia/Karachi":"PK","Asia/Kashgar":"CN","Asia/Kathmandu":"NP","Asia/Katmandu":"NP","Asia/Khandyga":"RU","Asia/Kolkata":"IN","Asia/Krasnoyarsk":"RU","Asia/Kuala_Lumpur":"MY","Asia/Kuching":"MY","Asia/Kuwait":"KW","Asia/Macao":"MO","Asia/Macau":"MO","Asia/Magadan":"RU","Asia/Makassar":"ID","Asia/Manila":"PH","Asia/Muscat":"OM","Asia/Nicosia":"CY","Asia/Novokuznetsk":"RU","Asia/Novosibirsk":"RU","Asia/Omsk":"RU","Asia/Oral":"KZ","Asia/Phnom_Penh":"KH","Asia/Pontianak":"ID","Asia/Pyongyang":"KP","Asia/Qatar":"QA","Asia/Qostanay":"KZ","Asia/Qyzylorda":"KZ","Asia/Rangoon":"MM","Asia/Riyadh":"SA","Asia/Saigon":"VN","Asia/Sakhalin":"RU","Asia/Samarkand":"UZ","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Srednekolymsk":"RU","Asia/Taipei":"TW","Asia/Tashkent":"UZ","Asia/Tbilisi":"GE","Asia/Tehran":"IR","Asia/Tel_Aviv":"IL","Asia/Thimbu":"BT","Asia/Thimphu":"BT","Asia/Tokyo":"JP","Asia/Tomsk":"RU","Asia/Ujung_Pandang":"ID","Asia/Ulaanbaatar":"MN","Asia/Ulan_Bator":"MN","Asia/Urumqi":"CN","Asia/Ust-Nera":"RU","Asia/Vientiane":"LA","Asia/Vladivostok":"RU","Asia/Yakutsk":"RU","Asia/Yangon":"MM","Asia/Yekaterinburg":"RU","Asia/Yerevan":"AM","Atlantic/Azores":"PT","Atlantic/Bermuda":"BM","Atlantic/Canary":"ES","Atlantic/Cape_Verde":"CV","Atlantic/Faeroe":"FO","Atlantic/Faroe":"FO","Atlantic/Jan_Mayen":"SJ","Atlantic/Madeira":"PT","Atlantic/Reykjavik":"IS","Atlantic/South_Georgia":"GS","Atlantic/St_Helena":"SH","Atlantic/Stanley":"FK","Australia/ACT":"AU","Australia/Adelaide":"AU","Australia/Brisbane":"AU","Australia/Broken_Hill":"AU","Australia/Canberra":"AU","Australia/Currie":"AU","Australia/Darwin":"AU","Australia/Eucla":"AU","Australia/Hobart":"AU","Australia/LHI":"AU","Australia/Lindeman":"AU","Australia/Lord_Howe":"AU","Australia/Melbourne":"AU","Australia/North":"AU","Australia/NSW":"AU","Australia/Perth":"AU","Australia/Queensland":"AU","Australia/South":"AU","Australia/Sydney":"AU","Australia/Tasmania":"AU","Australia/Victoria":"AU","Australia/West":"AU","Australia/Yancowinna":"AU","Brazil/Acre":"BR","Brazil/DeNoronha":"BR","Brazil/East":"BR","Brazil/West":"BR","Canada/Atlantic":"CA","Canada/Central":"CA","Canada/Eastern":"CA","Canada/Mountain":"CA","Canada/Newfoundland":"CA","Canada/Pacific":"CA","Canada/Saskatchewan":"CA","Canada/Yukon":"CA",CET:"CET","Chile/Continental":"CL","Chile/EasterIsland":"CL",CST6CDT:"CST6CDT",Cuba:"CU",EET:"EET",Egypt:"EG",Eire:"IE",EST:"EST",EST5EDT:"EST5EDT","Etc/GMT":"Etc/GMT","Etc/GMT+0":"Etc/GMT+0","Etc/GMT+1":"Etc/GMT+1","Etc/GMT+10":"Etc/GMT+10","Etc/GMT+11":"Etc/GMT+11","Etc/GMT+12":"Etc/GMT+12","Etc/GMT+2":"Etc/GMT+2","Etc/GMT+3":"Etc/GMT+3","Etc/GMT+4":"Etc/GMT+4","Etc/GMT+5":"Etc/GMT+5","Etc/GMT+6":"Etc/GMT+6","Etc/GMT+7":"Etc/GMT+7","Etc/GMT+8":"Etc/GMT+8","Etc/GMT+9":"Etc/GMT+9","Etc/GMT-0":"Etc/GMT-0","Etc/GMT-1":"Etc/GMT-1","Etc/GMT-10":"Etc/GMT-10","Etc/GMT-11":"Etc/GMT-11","Etc/GMT-12":"Etc/GMT-12","Etc/GMT-13":"Etc/GMT-13","Etc/GMT-14":"Etc/GMT-14","Etc/GMT-2":"Etc/GMT-2","Etc/GMT-3":"Etc/GMT-3","Etc/GMT-4":"Etc/GMT-4","Etc/GMT-5":"Etc/GMT-5","Etc/GMT-6":"Etc/GMT-6","Etc/GMT-7":"Etc/GMT-7","Etc/GMT-8":"Etc/GMT-8","Etc/GMT-9":"Etc/GMT-9","Etc/GMT0":"Etc/GMT0","Etc/Greenwich":"Etc/Greenwich","Etc/UCT":"Etc/UCT","Etc/UTC":"Etc/UTC","Etc/Universal":"Etc/Universal","Etc/Zulu":"Etc/Zulu","Europe/Amsterdam":"NL","Europe/Andorra":"AD","Europe/Astrakhan":"RU","Europe/Athens":"GR","Europe/Belfast":"GB","Europe/Belgrade":"RS","Europe/Berlin":"DE","Europe/Bratislava":"SK","Europe/Brussels":"BE","Europe/Bucharest":"RO","Europe/Budapest":"HU","Europe/Busingen":"DE","Europe/Chisinau":"MD","Europe/Copenhagen":"DK","Europe/Dublin":"IE","Europe/Gibraltar":"GI","Europe/Guernsey":"GG","Europe/Helsinki":"FI","Europe/Isle_of_Man":"IM","Europe/Istanbul":"TR","Europe/Jersey":"JE","Europe/Kaliningrad":"RU","Europe/Kiev":"UA","Europe/Kirov":"RU","Europe/Kyiv":"UA","Europe/Lisbon":"PT","Europe/Ljubljana":"SI","Europe/London":"GB","Europe/Luxembourg":"LU","Europe/Madrid":"ES","Europe/Malta":"MT","Europe/Mariehamn":"AX","Europe/Minsk":"BY","Europe/Monaco":"MC","Europe/Moscow":"RU","Europe/Nicosia":"CY","Europe/Oslo":"NO","Europe/Paris":"FR","Europe/Podgorica":"ME","Europe/Prague":"CZ","Europe/Riga":"LV","Europe/Rome":"IT","Europe/Samara":"RU","Europe/San_Marino":"SM","Europe/Sarajevo":"BA","Europe/Saratov":"RU","Europe/Simferopol":"RU","Europe/Skopje":"MK","Europe/Sofia":"BG","Europe/Stockholm":"SE","Europe/Tallinn":"EE","Europe/Tirane":"AL","Europe/Tiraspol":"MD","Europe/Ulyanovsk":"RU","Europe/Uzhgorod":"UA","Europe/Vaduz":"LI","Europe/Vatican":"VA","Europe/Vienna":"AT","Europe/Vilnius":"LT","Europe/Volgograd":"RU","Europe/Warsaw":"PL","Europe/Zagreb":"HR","Europe/Zaporozhye":"UA","Europe/Zurich":"CH",Factory:"Factory",GB:"GB","GB-Eire":"GB",GMT:"GMT","GMT+0":"GMT+0","GMT-0":"GMT-0",GMT0:"GMT0",Greenwich:"Greenwich",Hongkong:"HK",HST:"HST",Iceland:"IS","Indian/Antananarivo":"MG","Indian/Chagos":"IO","Indian/Christmas":"CX","Indian/Cocos":"CC","Indian/Comoro":"KM","Indian/Kerguelen":"TF","Indian/Mahe":"SC","Indian/Maldives":"MV","Indian/Mauritius":"MU","Indian/Mayotte":"YT","Indian/Reunion":"RE",Iran:"IR",Israel:"IL",Jamaica:"JM",Japan:"JP",Kwajalein:"MH",Libya:"LY",MET:"MET","Mexico/BajaNorte":"MX","Mexico/BajaSur":"MX","Mexico/General":"MX",MST:"MST",MST7MDT:"MST7MDT",Navajo:"US",NZ:"NZ","NZ-CHAT":"NZ","Pacific/Apia":"WS","Pacific/Auckland":"NZ","Pacific/Bougainville":"PG","Pacific/Chatham":"NZ","Pacific/Chuuk":"FM","Pacific/Easter":"CL","Pacific/Efate":"VU","Pacific/Enderbury":"KI","Pacific/Fakaofo":"TK","Pacific/Fiji":"FJ","Pacific/Funafuti":"TV","Pacific/Galapagos":"EC","Pacific/Gambier":"PF","Pacific/Guadalcanal":"SB","Pacific/Guam":"GU,MP","Pacific/Honolulu":"US","Pacific/Johnston":"UM","Pacific/Kanton":"KI","Pacific/Kiritimati":"KI","Pacific/Kosrae":"FM","Pacific/Kwajalein":"MH","Pacific/Majuro":"MH","Pacific/Marquesas":"PF","Pacific/Midway":"UM","Pacific/Nauru":"NR","Pacific/Niue":"NU","Pacific/Norfolk":"NF","Pacific/Noumea":"NC","Pacific/Pago_Pago":"AS","Pacific/Palau":"PW","Pacific/Pitcairn":"PN","Pacific/Pohnpei":"FM","Pacific/Ponape":"FM","Pacific/Port_Moresby":"PG","Pacific/Rarotonga":"CK","Pacific/Saipan":"MP","Pacific/Samoa":"AS","Pacific/Tahiti":"PF","Pacific/Tarawa":"KI","Pacific/Tongatapu":"TO","Pacific/Truk":"FM","Pacific/Wake":"UM","Pacific/Wallis":"WF","Pacific/Yap":"FM",Poland:"PL",Portugal:"PT",PRC:"CN",PST8PDT:"PST8PDT",ROC:"TW",ROK:"KR",Singapore:"SG",Turkey:"TR",UCT:"UCT",Universal:"Universal","US/Alaska":"US","US/Aleutian":"US","US/Arizona":"US","US/Central":"US","US/East-Indiana":"US","US/Eastern":"US","US/Hawaii":"US","US/Indiana-Starke":"US","US/Michigan":"US","US/Mountain":"US","US/Pacific":"US","US/Samoa":"AS",UTC:"UTC","W-SU":"RU",WET:"WET",Zulu:"Zulu"}},309:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,function(e){e.PAGE="page_hit",e.IDENTIFY="identify",e.CONNECT="connect",e.DISCONNECT="disconnect",e.CHAIN_CHANGED="chain_changed",e.SIGNATURE="signature",e.TRANSACTION="transaction"}(r||(t.Event=r={}))},450:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(921),t),i(r(358),t),i(r(309),t),i(r(417),t)},417:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REGEX=void 0,t.REGEX={addressRegex:/^0x[a-fA-F0-9]{40}$/}},156:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(190),t),i(r(879),t),i(r(574),t)},568:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.session=void 0;var o=r(504);Object.defineProperty(t,"session",{enumerable:!0,get:function(){return a(o).default}}),i(r(973),t)},504:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStorage=void 0;var r=function(){function e(){this.json_prefix="__json="}return e.prototype.set=function(e,t){"boolean"==typeof t&&(t=!0===t?"true":"false"),"object"==typeof t&&(t=this.json_prefix+JSON.stringify(t)),sessionStorage.setItem(e,t)},e.prototype.get=function(e){var t=sessionStorage.getItem(e);if(!t||"string"!=typeof t)return null;if(["null","undefined"].some((function(e){return e==t})))return null;if(t.startsWith(this.json_prefix))try{return JSON.parse(t.slice(7))}catch(e){return console.error("[FORMO_ERROR] SessionStorage failed to parse JSON",e),null}return["true","false"].some((function(e){return e==t}))?JSON.parse(t):t},e.prototype.removeMatch=function(e){for(var t in sessionStorage)e.test(t)&&this.remove(t)},e.prototype.remove=function(e){sessionStorage.removeItem(e)},e.prototype.clear=function(){sessionStorage.clear()},e}();t.SessionStorage=r,t.default=new r},973:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAddress=t.isLocalhost=void 0,t.toSnakeCase=function(e,t){void 0===t&&(t=[]);var r=function(e){return Array.isArray(e)?e.map(r):null!==e&&"object"==typeof e?Object.keys(e).reduce((function(n,a){return n[t.includes(a)?a:i(a)]=t.includes(a)?e[a]:r(e[a]),n}),{}):e};return r(e)};var n=r(450),i=function(e){return e.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase()};t.isLocalhost=function(){return/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(window.location.hostname)||"file:"===window.location.protocol},t.isAddress=function(e){return n.REGEX.addressRegex.test(e)}},989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},465:(e,t)=>{var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=t.SignatureStatus=void 0,function(e){e.REQUESTED="requested",e.REJECTED="rejected",e.CONFIRMED="confirmed"}(r||(t.SignatureStatus=r={})),function(e){e.STARTED="started",e.REJECTED="rejected",e.BROADCASTED="broadcasted"}(n||(t.TransactionStatus=n={}))},574:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(989),t),i(r(465),t),i(r(521),t)},521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},425:(e,t,r)=>{function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,o=(s=Object.create(null),e=>{const t=i.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,d=u("undefined"),f=c("ArrayBuffer"),h=u("string"),p=u("function"),A=u("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==o(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},g=c("Date"),v=c("File"),E=c("Blob"),b=c("FileList"),S=c("URLSearchParams"),[w,_,C,T]=["ReadableStream","Request","Response","Headers"].map(c);function R(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),l(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}function P(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,M=e=>!d(e)&&e!==O,U=(N="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>N&&e instanceof N);var N;const I=c("HTMLFormElement"),k=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),j=c("RegExp"),L=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};R(r,((r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)})),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",D="0123456789",F={DIGIT:D,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+D},x=c("AsyncFunction"),G=(K="function"==typeof setImmediate,H=p(O.postMessage),K?setImmediate:H?(q=`axios@${Math.random()}`,z=[],O.addEventListener("message",(({source:e,data:t})=>{e===O&&t===q&&z.length&&z.shift()()}),!1),e=>{z.push(e),O.postMessage(q,"*")}):e=>setTimeout(e));var K,H,q,z;const J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(O):"undefined"!=typeof process&&process.nextTick||G;var V={isArray:l,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=o(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:h,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isReadableStream:w,isRequest:_,isResponse:C,isHeaders:T,isUndefined:d,isDate:g,isFile:v,isBlob:E,isRegExp:j,isFunction:p,isStream:e=>m(e)&&p(e.pipe),isURLSearchParams:S,isTypedArray:U,isFileList:b,forEach:R,merge:function e(){const{caseless:t}=M(this)&&this||{},r={},n=(n,i)=>{const a=t&&P(r,i)||i;y(r[a])&&y(n)?r[a]=e(r[a],n):y(n)?r[a]=e({},n):l(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:i}={})=>(R(t,((t,i)=>{r&&p(t)?e[i]=n(t,r):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],n&&!n(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!A(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:I,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:L,freezeMethods:e=>{L(e,((t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];p(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return l(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:O,isContextDefined:M,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=l(e)?[]:{};return R(e,((e,t)=>{const a=r(e,n+1);!d(a)&&(i[t]=a)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:x,isThenable:e=>e&&(m(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:G,asap:J};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}V.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Y=W.prototype,$={};function Z(e){return V.isPlainObject(e)||V.isArray(e)}function X(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{$[e]={value:e}})),Object.defineProperties(W,$),Object.defineProperty(Y,"isAxiosError",{value:!0}),W.from=(e,t,r,n,i,a)=>{const o=Object.create(Y);return V.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const ee=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,i=r.visitor||u,a=r.dots,o=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,i){let s=e;if(e&&!i&&"object"==typeof e)if(V.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Z)}(e)||(V.isFileList(e)||V.endsWith(r,"[]"))&&(s=V.toArray(e)))return r=X(r),s.forEach((function(e,n){!V.isUndefined(e)&&null!==e&&t.append(!0===o?Q([r],n,a):null===o?r:r+"[]",c(e))})),!1;return!!Z(e)||(t.append(Q(i,r,a),c(e)),!1)}const l=[],d=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Z});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!V.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),V.forEach(r,(function(r,a){!0===(!(V.isUndefined(r)||null===r)&&i.call(t,r,V.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])})),l.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const ie=ne.prototype;function ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ae,i=r&&r.serialize;let a;if(a=i?i(t,r):V.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var se=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,fe=le&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pe=le&&window.location.href||"http://localhost";var Ae={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:fe,navigator:de,origin:pe}),...ue};function me(e){function t(e,r,n,i){let a=e[i++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=i>=e.length;return a=!a&&V.isArray(n)?n.length:a,s?(V.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!o):(n[a]&&V.isObject(n[a])||(n[a]=[]),t(e,r,n[a],i)&&V.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}(n[a])),!o)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,((e,n)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ye={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=V.isObject(e);if(i&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return n?JSON.stringify(me(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new Ae.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Ae.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=V.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e){if(V.isString(e))try{return(0,JSON.parse)(e),V.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ae.classes.FormData,Blob:Ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{ye.headers[e]={}}));var ge=ye;const ve=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ee=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function Se(e){return!1===e||null==e?e:V.isArray(e)?e.map(Se):String(e)}function we(e,t,r,n,i){return V.isFunction(n)?n.call(this,t,r):(i&&(t=r),V.isString(t)?V.isString(n)?-1!==t.indexOf(n):V.isRegExp(n)?n.test(t):void 0:void 0)}class _e{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=be(t);if(!i)throw new Error("header name must be a non-empty string");const a=V.findKey(n,i);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=Se(e))}const a=(e,t)=>V.forEach(e,((e,r)=>i(e,r,t)));if(V.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&ve[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(V.isHeaders(e))for(const[t,n]of e.entries())i(n,t,r);else null!=e&&i(t,e,r);return this}get(e,t){if(e=be(e)){const r=V.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(V.isFunction(t))return t.call(this,e,r);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const r=V.findKey(this,e);return!(!r||void 0===this[r]||t&&!we(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=be(e)){const i=V.findKey(r,e);!i||t&&!we(0,r[i],i,t)||(delete r[i],n=!0)}}return V.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!we(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return V.forEach(this,((n,i)=>{const a=V.findKey(r,i);if(a)return t[a]=Se(n),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();o!==i&&delete t[i],t[o]=Se(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&V.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=be(e);t[n]||(function(e,t){const r=V.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return V.isArray(e)?e.forEach(n):n(e),this}}_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(_e.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),V.freezeMethods(_e);var Ce=_e;function Te(e,t){const r=this||ge,n=t||r,i=Ce.from(n.headers);let a=n.data;return V.forEach(e,(function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function Re(e){return!(!e||!e.__CANCEL__)}function Pe(e,t,r){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,r),this.name="CanceledError"}function Oe(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}V.inherits(Pe,W,{__CANCEL__:!0});const Me=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=n[o];i||(i=c),r[a]=s,n[a]=c;let l=o,d=0;for(;l!==a;)d+=r[l++],l%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-i<t)return;const f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let r,n,i=0,a=1e3/t;const o=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=a?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),a-s)))},()=>r&&o(r)]}((r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,c=i(s);n=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&a<=o?(o-a)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),r)},Ue=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ne=e=>(...t)=>V.asap((()=>e(...t)));var Ie=Ae.hasStandardBrowserEnv?function(){const e=Ae.navigator&&/(msie|trident)/i.test(Ae.navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=V.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},ke=Ae.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),V.isString(n)&&o.push("path="+n),V.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function je(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Le=e=>e instanceof Ce?{...e}:e;function Be(e,t){t=t||{};const r={};function n(e,t,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function i(e,t,r){return V.isUndefined(t)?V.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!V.isUndefined(t))return n(void 0,t)}function o(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t)=>i(Le(e),Le(t),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=c[n]||i,o=a(e[n],t[n],n);V.isUndefined(o)&&a!==s||(r[n]=o)})),r}var De=e=>{const t=Be({},e);let r,{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:c}=t;if(t.headers=s=Ce.from(s),t.url=oe(je(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),V.isFormData(n))if(Ae.hasStandardBrowserEnv||Ae.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ae.hasStandardBrowserEnv&&(i&&V.isFunction(i)&&(i=i(t)),i||!1!==i&&Ie(t.url))){const e=a&&o&&ke.read(o);e&&s.set(a,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=De(e);let i=n.data;const a=Ce.from(n.headers).normalize();let o,s,c,u,l,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=n;function p(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let A=new XMLHttpRequest;function m(){if(!A)return;const n=Ce.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders());Oe((function(e){t(e),p()}),(function(e){r(e),p()}),{data:d&&"text"!==d&&"json"!==d?A.response:A.responseText,status:A.status,statusText:A.statusText,headers:n,config:e,request:A}),A=null}A.open(n.method.toUpperCase(),n.url,!0),A.timeout=n.timeout,"onloadend"in A?A.onloadend=m:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(m)},A.onabort=function(){A&&(r(new W("Request aborted",W.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new W(t,i.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,A)),A=null},void 0===i&&a.setContentType(null),"setRequestHeader"in A&&V.forEach(a.toJSON(),(function(e,t){A.setRequestHeader(t,e)})),V.isUndefined(n.withCredentials)||(A.withCredentials=!!n.withCredentials),d&&"json"!==d&&(A.responseType=n.responseType),h&&([c,l]=Me(h,!0),A.addEventListener("progress",c)),f&&A.upload&&([s,u]=Me(f),A.upload.addEventListener("progress",s),A.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{A&&(r(!t||t.type?new Pe(null,e,A):t),A.abort(),A=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);y&&-1===Ae.protocols.indexOf(y)?r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e)):A.send(i||null)}))},xe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof W?t:new Pe(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))}),t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=n;return s.unsubscribe=()=>V.asap(o),s}};const Ge=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},Ke=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Ge(r,t)}(e,t);let a,o=0,s=e=>{a||(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return s(),void e.close();let a=n.byteLength;if(r){let e=o+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,qe=He&&"function"==typeof ReadableStream,ze=He&&("function"==typeof TextEncoder?(Je=new TextEncoder,e=>Je.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Je;const Ve=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},We=qe&&Ve((()=>{let e=!1;const t=new Request(Ae.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ye=qe&&Ve((()=>V.isReadableStream(new Response("").body))),$e={stream:Ye&&(e=>e.body)};var Ze;He&&(Ze=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!$e[e]&&($e[e]=V.isFunction(Ze[e])?t=>t[e]():(t,r)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:c,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:f}=De(e);u=u?(u+"").toLowerCase():"text";let h,p=xe([i,a&&a.toAbortSignal()],o);const A=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(c&&We&&"get"!==r&&"head"!==r&&0!==(m=await(async(e,t)=>{const r=V.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(Ae.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await ze(e)).byteLength:void 0)})(t):r})(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(V.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=Ue(m,Me(Ne(c)));n=Ke(r.body,65536,e,t)}}V.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:i?d:void 0});let a=await fetch(h);const o=Ye&&("stream"===u||"response"===u);if(Ye&&(s||o&&A)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=V.toFiniteNumber(a.headers.get("content-length")),[r,n]=s&&Ue(t,Me(Ne(s),!0))||[];a=new Response(Ke(a.body,65536,r,(()=>{n&&n(),A&&A()})),e)}u=u||"text";let y=await $e[V.findKey($e,u)||"text"](a,e);return!o&&A&&A(),await new Promise(((t,r)=>{Oe(t,r,{data:y,headers:Ce.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:h})}))}catch(t){if(A&&A(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,h),{cause:t.cause||t});throw W.from(t,t&&t.code,e,h)}})};V.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qe=e=>`- ${e}`,et=e=>V.isFunction(e)||null===e||!1===e;var tt=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a<t;a++){let t;if(r=e[a],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new W(`Unknown adapter '${t}'`);if(n)break;i[t||"#"+a]=n}if(!n){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new W("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qe).join("\n"):" "+Qe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function nt(e){return rt(e),e.headers=Ce.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ge.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=Ce.from(t.headers),t}),(function(t){return Re(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=Ce.from(t.response.headers))),Promise.reject(t)}))}const it={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{it[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const at={};it.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new W(n(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!at[i]&&(at[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new W("option "+a+" must be "+r,W.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new W("Unknown option "+a,W.ERR_BAD_OPTION)}},validators:it};const st=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new se,response:new se}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),null!=n&&(V.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:st.function,serialize:st.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Ce.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[nt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=o.length;let f=t;for(d=0;d<l;){const e=o[d++],t=o[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=nt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return oe(je((e=Be(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(Be(r||{},{method:e,url:t,data:(r||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(Be(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new Pe(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}var dt=lt;const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ft).forEach((([e,t])=>{ft[t]=e}));var ht=ft;const pt=function e(t){const r=new ut(t),i=n(ut.prototype.request,r);return V.extend(i,ut.prototype,r,{allOwnKeys:!0}),V.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(Be(t,r))},i}(ge);pt.Axios=ut,pt.CanceledError=Pe,pt.CancelToken=dt,pt.isCancel=Re,pt.VERSION="1.7.7",pt.toFormData=te,pt.AxiosError=W,pt.Cancel=pt.CanceledError,pt.all=function(e){return Promise.all(e)},pt.spread=function(e){return function(t){return e.apply(null,t)}},pt.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},pt.mergeConfig=Be,pt.AxiosHeaders=Ce,pt.formToJSON=e=>me(V.isHTMLForm(e)?new FormData(e):e),pt.getAdapter=tt,pt.HttpStatusCode=ht,pt.default=pt,e.exports=pt},228:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=t.createStore=void 0;var n=r(349);Object.defineProperty(t,"createStore",{enumerable:!0,get:function(){return n.createStore}});var i=r(317);Object.defineProperty(t,"announceProvider",{enumerable:!0,get:function(){return i.announceProvider}}),Object.defineProperty(t,"requestProviders",{enumerable:!0,get:function(){return i.requestProviders}})},349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;const n=r(317);t.createStore=function(){const e=new Set;let t=[];const r=()=>(0,n.requestProviders)((r=>{t.some((({info:e})=>e.uuid===r.info.uuid))||(t=[...t,r],e.forEach((e=>e(t,{added:[r]}))))}));let i=r();return{_listeners:()=>e,clear(){e.forEach((e=>e([],{removed:[...t]}))),t=[]},destroy(){this.clear(),e.clear(),i?.()},findProvider:({rdns:e})=>t.find((t=>t.info.rdns===e)),getProviders:()=>t,reset(){this.clear(),i?.(),i=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}},317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.requestProviders=t.announceProvider=void 0,t.announceProvider=function(e){const t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t);const r=()=>window.dispatchEvent(t);return window.addEventListener("eip6963:requestProvider",r),()=>window.removeEventListener("eip6963:requestProvider",r)},t.requestProviders=function(e){if("undefined"==typeof window)return;const t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var n=r(156);return n.FormoAnalytics})()));
3
3
  //# sourceMappingURL=index.umd.min.js.map