Free javascript Hosting


checkout-button-qore-component.js

Uploaded on Apr 06 2022 18:56 by arrizalamin

function e(e,r,t,n){return new(t||(t=Promise))((function(a,o){function i(e){try{s(n.next(e))}catch(e){o(e)}}function c(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){var r;e.done?a(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(i,c)}s((n=n.apply(e,r||[])).next())}))}!function(){const e={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",i="[object Function]",c="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[o]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d[i]=d["[object Map]"]=d["[object Number]"]=d[c]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1;var u="object"==typeof r&&r&&r.Object===Object&&r,p="object"==typeof self&&self&&self.Object===Object&&self,f=u||p||Function("return this")(),g=t&&!t.nodeType&&t,h=g&&e&&!e.nodeType&&e,m=h&&h.exports===g,v=m&&u.process,b=function(){try{var e=h&&h.require&&h.require("util").types;return e||v&&v.binding&&v.binding("util")}catch(e){}}(),y=b&&b.isTypedArray;function k(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var S,x=Array.prototype,_=Function.prototype,R=Object.prototype,w=f["__core-js_shared__"],E=_.toString,j=R.hasOwnProperty,T=(S=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",C=R.toString,O=E.call(Object),B=RegExp("^"+E.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=m?f.Buffer:void 0,N=f.Symbol,W=f.Uint8Array,z=I?I.allocUnsafe:void 0,A=function(e,r){return function(t){return e(r(t))}}(Object.getPrototypeOf,Object),L=Object.create,P=R.propertyIsEnumerable,X=x.splice,M=N?N.toStringTag:void 0,D=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=I?I.isBuffer:void 0,J=Math.max,G=Date.now,H=fe(f,"Map"),Y=fe(Object,"create"),V=function(){function e(){}return function(r){if(!Te(r))return{};if(L)return L(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}();function $(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function U(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function q(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}function K(e){var r=this.__data__=new U(e);this.size=r.size}function Q(e,r){var t=_e(e),n=!t&&xe(e),a=!t&&!n&&we(e),o=!t&&!n&&!a&&Oe(e),i=t||n||a||o,c=i?function(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}(e.length,String):[],s=c.length;for(var l in e)!r&&!j.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ge(l,s))||c.push(l);return c}function Z(e,r,t){(void 0!==t&&!Se(e[r],t)||void 0===t&&!(r in e))&&te(e,r,t)}function ee(e,r,t){var n=e[r];j.call(e,r)&&Se(n,t)&&(void 0!==t||r in e)||te(e,r,t)}function re(e,r){for(var t=e.length;t--;)if(Se(e[t][0],r))return t;return-1}function te(e,r,t){"__proto__"==r&&D?D(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}$.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},$.prototype.delete=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r},$.prototype.get=function(e){var r=this.__data__;if(Y){var t=r[e];return t===n?void 0:t}return j.call(r,e)?r[e]:void 0},$.prototype.has=function(e){var r=this.__data__;return Y?void 0!==r[e]:j.call(r,e)},$.prototype.set=function(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Y&&void 0===r?n:r,this},U.prototype.clear=function(){this.__data__=[],this.size=0},U.prototype.delete=function(e){var r=this.__data__,t=re(r,e);return!(t<0)&&(t==r.length-1?r.pop():X.call(r,t,1),--this.size,!0)},U.prototype.get=function(e){var r=this.__data__,t=re(r,e);return t<0?void 0:r[t][1]},U.prototype.has=function(e){return re(this.__data__,e)>-1},U.prototype.set=function(e,r){var t=this.__data__,n=re(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this},q.prototype.clear=function(){this.size=0,this.__data__={hash:new $,map:new(H||U),string:new $}},q.prototype.delete=function(e){var r=pe(this,e).delete(e);return this.size-=r?1:0,r},q.prototype.get=function(e){return pe(this,e).get(e)},q.prototype.has=function(e){return pe(this,e).has(e)},q.prototype.set=function(e,r){var t=pe(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new U,this.size=0},K.prototype.delete=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t},K.prototype.get=function(e){return this.__data__.get(e)},K.prototype.has=function(e){return this.__data__.has(e)},K.prototype.set=function(e,r){var t=this.__data__;if(t instanceof U){var n=t.__data__;if(!H||n.length<199)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new q(n)}return t.set(e,r),this.size=t.size,this};var ne,ae=function(e,r,t){for(var n=-1,a=Object(e),o=t(e),i=o.length;i--;){var c=o[ne?i:++n];if(!1===r(a[c],c,a))break}return e};function oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?function(e){var r=j.call(e,M),t=e[M];try{e[M]=void 0;var n=!0}catch(e){}var a=C.call(e);n&&(r?e[M]=t:delete e[M]);return a}(e):function(e){return C.call(e)}(e)}function ie(e){return Ce(e)&&oe(e)==o}function ce(e){return!(!Te(e)||(r=e,T&&T in r))&&(Ee(e)?B:s).test(function(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var r}function se(e){if(!Te(e))return function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}(e);var r=he(e),t=[];for(var n in e)("constructor"!=n||!r&&j.call(e,n))&&t.push(n);return t}function le(e,r,t,n,a){e!==r&&ae(r,(function(o,i){if(a||(a=new K),Te(o))!function(e,r,t,n,a,o,i){var s=me(e,t),l=me(r,t),d=i.get(l);if(d)return void Z(e,t,d);var u=o?o(s,l,t+"",e,r,i):void 0,p=void 0===u;if(p){var f=_e(l),g=!f&&we(l),h=!f&&!g&&Oe(l);u=l,f||g||h?_e(s)?u=s:Ce(k=s)&&Re(k)?u=function(e,r){var t=-1,n=e.length;r||(r=Array(n));for(;++t<n;)r[t]=e[t];return r}(s):g?(p=!1,u=function(e,r){if(r)return e.slice();var t=e.length,n=z?z(t):new e.constructor(t);return e.copy(n),n}(l,!0)):h?(p=!1,m=l,v=!0?(b=m.buffer,y=new b.constructor(b.byteLength),new W(y).set(new W(b)),y):m.buffer,u=new m.constructor(v,m.byteOffset,m.length)):u=[]:function(e){if(!Ce(e)||oe(e)!=c)return!1;var r=A(e);if(null===r)return!0;var t=j.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&E.call(t)==O}(l)||xe(l)?(u=s,xe(s)?u=function(e){return function(e,r,t,n){var a=!t;t||(t={});var o=-1,i=r.length;for(;++o<i;){var c=r[o],s=n?n(t[c],e[c],c,t,e):void 0;void 0===s&&(s=e[c]),a?te(t,c,s):ee(t,c,s)}return t}(e,Be(e))}(s):Te(s)&&!Ee(s)||(u=function(e){return"function"!=typeof e.constructor||he(e)?{}:V(A(e))}(l))):p=!1}var m,v,b,y;var k;p&&(i.set(l,u),a(u,l,n,o,i),i.delete(l));Z(e,t,u)}(e,r,i,t,le,n,a);else{var s=n?n(me(e,i),o,i+"",e,r,a):void 0;void 0===s&&(s=o),Z(e,i,s)}}),Be)}function de(e,r){return ke(function(e,r,t){return r=J(void 0===r?e.length-1:r,0),function(){for(var n=arguments,a=-1,o=J(n.length-r,0),i=Array(o);++a<o;)i[a]=n[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=n[a];return c[r]=t(i),k(e,this,c)}}(e,r,We),e+"")}var ue=D?function(e,r){return D(e,"toString",{configurable:!0,enumerable:!1,value:(t=r,function(){return t}),writable:!0});var t}:We;function pe(e,r){var t,n,a=e.__data__;return("string"==(n=typeof(t=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?a["string"==typeof r?"string":"hash"]:a.map}function fe(e,r){var t=function(e,r){return null==e?void 0:e[r]}(e,r);return ce(t)?t:void 0}function ge(e,r){var t=typeof e;return!!(r=null==r?a:r)&&("number"==t||"symbol"!=t&&l.test(e))&&e>-1&&e%1==0&&e<r}function he(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||R)}function me(e,r){if(("constructor"!==r||"function"!=typeof e[r])&&"__proto__"!=r)return e[r]}var ve,be,ye,ke=(ve=ue,be=0,ye=0,function(){var e=G(),r=16-(e-ye);if(ye=e,r>0){if(++be>=800)return arguments[0]}else be=0;return ve.apply(void 0,arguments)});function Se(e,r){return e===r||e!=e&&r!=r}var xe=ie(function(){return arguments}())?ie:function(e){return Ce(e)&&j.call(e,"callee")&&!P.call(e,"callee")},_e=Array.isArray;function Re(e){return null!=e&&je(e.length)&&!Ee(e)}var we=F||function(){return!1};function Ee(e){if(!Te(e))return!1;var r=oe(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Te(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function Ce(e){return null!=e&&"object"==typeof e}var Oe=y?function(e){return function(r){return e(r)}}(y):function(e){return Ce(e)&&je(e.length)&&!!d[oe(e)]};function Be(e){return Re(e)?Q(e,!0):se(e)}var Ie,Ne=(Ie=function(e,r,t,n){le(e,r,t,n)},de((function(e,r){var t=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=Ie.length>3&&"function"==typeof a?(n--,a):void 0,o&&function(e,r,t){if(!Te(t))return!1;var n=typeof r;return!!("number"==n?Re(t)&&ge(r,t.length):"string"==n&&r in t)&&Se(t[r],e)}(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++t<n;){var i=r[t];i&&Ie(e,i,t,a)}return e})));function We(e){return e}e.exports=Ne}(t,t.exports);var n=t.exports;function a(e){return"number"==typeof e}function o(e){return Array.isArray(e)}function i(e){return"function"==typeof e}function c(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!o(e)}function s(e){return null==e}function l(e){return"[object String]"===Object.prototype.toString.call(e)}function d(e){return/^var\(--.+\)$/.test(e)}var u="production"!==process.env.NODE_ENV;function p(e,r){var t={};return Object.keys(e).forEach((function(n){r.includes(n)||(t[n]=e[n])})),t}process.env.NODE_ENV;var f,g,h=(f=function(e,r,t,n){var a="string"==typeof r?r.split("."):[r];for(n=0;n<a.length&&e;n+=1)e=e[a[n]];return void 0===e?t:e},g=new WeakMap,function(e,r,t,n){if(void 0===e)return f(e,r,t);g.has(e)||g.set(e,new Map);var a=g.get(e);if(a.has(r))return a.get(r);var o=f(e,r,t,n);return a.set(r,o),o});function m(e,r){var t={};return Object.keys(e).forEach((function(n){var a=e[n];r(a,n,e)&&(t[n]=a)})),t}var v=function(e){return m(e,(function(e){return null!=e}))},b=function(e){return Object.keys(e)};var y=!("undefined"==typeof window||!window.document||!window.document.createElement),k=function(e){return e?"":void 0},S=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter(Boolean).join(" ")};function x(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return i(e)?e.apply(void 0,t):e}function _(e,r){return o(e)?e.map((function(e){return null===e?null:r(e)})):c(e)?b(e).reduce((function(t,n){return t[n]=r(e[n]),t}),{}):null!=e?r(e):null}function R(e){void 0===e&&(e={});var r=e,t=r.strict,n=void 0===t||t,a=r.errorMessage,o=void 0===a?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":a,i=r.name,c=React.createContext(void 0);return c.displayName=i,[c.Provider,function e(){var r=React.useContext(c);if(!r&&n){var t=new Error(o);throw t.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(t,e),t}return r},c]}function w(e){return React.Children.toArray(e).filter((function(e){return React.isValidElement(e)}))}Object.freeze(["base","sm","md","lg","xl","2xl"]);var E=y?React.useLayoutEffect:React.useEffect;function j(e,r){if(null!=e)if("function"!=typeof e)try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}else e(r)}function T(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return React.useMemo((function(){return r.every((function(e){return null==e}))?null:function(e){r.forEach((function(r){r&&j(r,e)}))}}),r)}var C=React.createContext({});u&&(C.displayName="ColorModeContext");var O=function(){var e=React.useContext(C);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function B(){return B=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},B.apply(this,arguments)}var I=function(e,r){return function(t){var n=String(r),a=e?e+"."+n:n;return c(t.__cssMap)&&a in t.__cssMap?t.__cssMap[a].varRef:r}};function N(e){var r=e.scale,t=e.transform,n=e.compose;return function(e,a){var o,i=I(r,e)(a),c=null!=(o=null==t?void 0:t(i,a))?o:i;return n&&(c=n(c,a)),c}}function W(e,r){return function(t){var n={property:t,scale:e};return n.transform=N({scale:e,transform:r}),n}}var z,A;var L=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var P={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},X={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var M={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},D=((z={})["& > :not(style) ~ :not(style)"]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},z),F=((A={})["& > :not(style) ~ :not(style)"]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},A);function J(e,r){return J=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},J(e,r)}function G(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&J(e,r)}function H(){H=function(e,r){return new t(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function t(e,n,a){var o=new RegExp(e,n);return r.set(o,a||r.get(e)),J(o,t.prototype)}function n(e,t){var n=r.get(t);return Object.keys(n).reduce((function(r,t){return r[t]=e[n[t]],r}),Object.create(null))}return G(t,RegExp),t.prototype.exec=function(r){var t=e.exec.call(this,r);return t&&(t.groups=n(t,this)),t},t.prototype[Symbol.replace]=function(t,a){if("string"==typeof a){var o=r.get(this);return e[Symbol.replace].call(this,t,a.replace(/\$<([^>]+)>/g,(function(e,r){return"$"+o[r]})))}if("function"==typeof a){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)}))}return e[Symbol.replace].call(this,t,a)},H.apply(this,arguments)}var Y={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},V=new Set(Object.values(Y)),$=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),U=function(e){return e.trim()};var q=function(e){return l(e)&&e.includes("(")&&e.includes(")")},K=function(e){return function(r){return e+"("+r+")"}},Q={filter:function(e){return"auto"!==e?e:P},backdropFilter:function(e){return"auto"!==e?e:X},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(Q.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(L).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(L).join(" "):e},px:function(e){if(null==e)return e;var r=function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e);return r.unitless||a(e)?e+"px":e},fraction:function(e){return!a(e)||e>1?e:100*e+"%"},float:function(e,r){return"rtl"===r.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if(d(e)||null==e)return e;var r=l(e)&&!e.endsWith("deg");return a(e)||r?e+"deg":e},gradient:function(e,r){return function(e,r){var t,n;if(null==e||$.has(e))return e;var a=null!=(t=null==(n=H(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?t:{},o=a.type,i=a.values;if(!o||!i)return e;var c=o.includes("-gradient")?o:o+"-gradient",s=i.split(",").map(U).filter(Boolean),l=s[0],d=s.slice(1);if(0===(null==d?void 0:d.length))return e;var u=l in Y?Y[l]:l;d.unshift(u);var p=d.map((function(e){if(V.has(e))return e;var t=e.indexOf(" "),n=-1!==t?[e.substr(0,t),e.substr(t+1)]:[e],a=n[0],o=n[1],i=q(o)?o:o&&o.split(" "),c="colors."+a,s=c in r.__cssMap?r.__cssMap[c].varRef:a;return i?[s].concat(Array.isArray(i)?i:[i]).join(" "):s}));return c+"("+p.join(", ")+")"}(e,null!=r?r:{})},blur:K("blur"),opacity:K("opacity"),brightness:K("brightness"),contrast:K("contrast"),dropShadow:K("drop-shadow"),grayscale:K("grayscale"),hueRotate:K("hue-rotate"),invert:K("invert"),saturate:K("saturate"),sepia:K("sepia"),bgImage:function(e){return null==e||q(e)||$.has(e)?e:"url("+e+")"},outline:function(e){var r="0"===String(e)||"none"===String(e);return null!==e&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var r,t=null!=(r=M[e])?r:{},n=t.space,a=t.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},Z={borderWidths:W("borderWidths"),borderStyles:W("borderStyles"),colors:W("colors"),borders:W("borders"),radii:W("radii",Q.px),space:W("space",Q.px),spaceT:W("space",Q.px),degreeT:function(e){return{property:e,transform:Q.degree}},prop:function(e,r,t){return B({property:e,scale:r},r&&{transform:N({scale:r,transform:t})})},propT:function(e,r){return{property:e,transform:r}},sizes:W("sizes",Q.px),sizesT:W("sizes",Q.fraction),shadows:W("shadows"),logical:function(e){var r,t,n,a=e.property,o=e.scale,i=e.transform;return{scale:o,property:(r=a,t=r.rtl,n=r.ltr,function(e){return"rtl"===e.direction?t:n}),transform:o?N({scale:o,compose:i}):i}},blur:W("blur",Q.blur)},ee={background:Z.colors("background"),backgroundColor:Z.colors("backgroundColor"),backgroundImage:Z.propT("backgroundImage",Q.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Q.bgClip},bgSize:Z.prop("backgroundSize"),bgPosition:Z.prop("backgroundPosition"),bg:Z.colors("background"),bgColor:Z.colors("backgroundColor"),bgPos:Z.prop("backgroundPosition"),bgRepeat:Z.prop("backgroundRepeat"),bgAttachment:Z.prop("backgroundAttachment"),bgGradient:Z.propT("backgroundImage",Q.gradient),bgClip:{transform:Q.bgClip}};Object.assign(ee,{bgImage:ee.backgroundImage,bgImg:ee.backgroundImage});var re={border:Z.borders("border"),borderWidth:Z.borderWidths("borderWidth"),borderStyle:Z.borderStyles("borderStyle"),borderColor:Z.colors("borderColor"),borderRadius:Z.radii("borderRadius"),borderTop:Z.borders("borderTop"),borderBlockStart:Z.borders("borderBlockStart"),borderTopLeftRadius:Z.radii("borderTopLeftRadius"),borderStartStartRadius:Z.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Z.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Z.radii("borderTopRightRadius"),borderStartEndRadius:Z.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Z.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Z.borders("borderRight"),borderInlineEnd:Z.borders("borderInlineEnd"),borderBottom:Z.borders("borderBottom"),borderBlockEnd:Z.borders("borderBlockEnd"),borderBottomLeftRadius:Z.radii("borderBottomLeftRadius"),borderBottomRightRadius:Z.radii("borderBottomRightRadius"),borderLeft:Z.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Z.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Z.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Z.borders(["borderLeft","borderRight"]),borderInline:Z.borders("borderInline"),borderY:Z.borders(["borderTop","borderBottom"]),borderBlock:Z.borders("borderBlock"),borderTopWidth:Z.borderWidths("borderTopWidth"),borderBlockStartWidth:Z.borderWidths("borderBlockStartWidth"),borderTopColor:Z.colors("borderTopColor"),borderBlockStartColor:Z.colors("borderBlockStartColor"),borderTopStyle:Z.borderStyles("borderTopStyle"),borderBlockStartStyle:Z.borderStyles("borderBlockStartStyle"),borderBottomWidth:Z.borderWidths("borderBottomWidth"),borderBlockEndWidth:Z.borderWidths("borderBlockEndWidth"),borderBottomColor:Z.colors("borderBottomColor"),borderBlockEndColor:Z.colors("borderBlockEndColor"),borderBottomStyle:Z.borderStyles("borderBottomStyle"),borderBlockEndStyle:Z.borderStyles("borderBlockEndStyle"),borderLeftWidth:Z.borderWidths("borderLeftWidth"),borderInlineStartWidth:Z.borderWidths("borderInlineStartWidth"),borderLeftColor:Z.colors("borderLeftColor"),borderInlineStartColor:Z.colors("borderInlineStartColor"),borderLeftStyle:Z.borderStyles("borderLeftStyle"),borderInlineStartStyle:Z.borderStyles("borderInlineStartStyle"),borderRightWidth:Z.borderWidths("borderRightWidth"),borderInlineEndWidth:Z.borderWidths("borderInlineEndWidth"),borderRightColor:Z.colors("borderRightColor"),borderInlineEndColor:Z.colors("borderInlineEndColor"),borderRightStyle:Z.borderStyles("borderRightStyle"),borderInlineEndStyle:Z.borderStyles("borderInlineEndStyle"),borderTopRadius:Z.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Z.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Z.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Z.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(re,{rounded:re.borderRadius,roundedTop:re.borderTopRadius,roundedTopLeft:re.borderTopLeftRadius,roundedTopRight:re.borderTopRightRadius,roundedTopStart:re.borderStartStartRadius,roundedTopEnd:re.borderStartEndRadius,roundedBottom:re.borderBottomRadius,roundedBottomLeft:re.borderBottomLeftRadius,roundedBottomRight:re.borderBottomRightRadius,roundedBottomStart:re.borderEndStartRadius,roundedBottomEnd:re.borderEndEndRadius,roundedLeft:re.borderLeftRadius,roundedRight:re.borderRightRadius,roundedStart:re.borderInlineStartRadius,roundedEnd:re.borderInlineEndRadius,borderStart:re.borderInlineStart,borderEnd:re.borderInlineEnd,borderTopStartRadius:re.borderStartStartRadius,borderTopEndRadius:re.borderStartEndRadius,borderBottomStartRadius:re.borderEndStartRadius,borderBottomEndRadius:re.borderEndEndRadius,borderStartRadius:re.borderInlineStartRadius,borderEndRadius:re.borderInlineEndRadius,borderStartWidth:re.borderInlineStartWidth,borderEndWidth:re.borderInlineEndWidth,borderStartColor:re.borderInlineStartColor,borderEndColor:re.borderInlineEndColor,borderStartStyle:re.borderInlineStartStyle,borderEndStyle:re.borderInlineEndStyle});var te={color:Z.colors("color"),textColor:Z.colors("color"),fill:Z.colors("fill"),stroke:Z.colors("stroke")},ne={boxShadow:Z.shadows("boxShadow"),mixBlendMode:!0,blendMode:Z.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:Z.prop("backgroundBlendMode"),opacity:!0};Object.assign(ne,{shadow:ne.boxShadow});var ae={filter:{transform:Q.filter},blur:Z.blur("--chakra-blur"),brightness:Z.propT("--chakra-brightness",Q.brightness),contrast:Z.propT("--chakra-contrast",Q.contrast),hueRotate:Z.degreeT("--chakra-hue-rotate"),invert:Z.propT("--chakra-invert",Q.invert),saturate:Z.propT("--chakra-saturate",Q.saturate),dropShadow:Z.propT("--chakra-drop-shadow",Q.dropShadow),backdropFilter:{transform:Q.backdropFilter},backdropBlur:Z.blur("--chakra-backdrop-blur"),backdropBrightness:Z.propT("--chakra-backdrop-brightness",Q.brightness),backdropContrast:Z.propT("--chakra-backdrop-contrast",Q.contrast),backdropHueRotate:Z.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:Z.propT("--chakra-backdrop-invert",Q.invert),backdropSaturate:Z.propT("--chakra-backdrop-saturate",Q.saturate)},oe={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Q.flexDirection},experimental_spaceX:{static:D,transform:N({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:F,transform:N({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:Z.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:Z.space("gap"),rowGap:Z.space("rowGap"),columnGap:Z.space("columnGap")};Object.assign(oe,{flexDir:oe.flexDirection});var ie={gridGap:Z.space("gridGap"),gridColumnGap:Z.space("gridColumnGap"),gridRowGap:Z.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},ce={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Q.outline},outlineOffset:!0,outlineColor:Z.colors("outlineColor")},se={width:Z.sizesT("width"),inlineSize:Z.sizesT("inlineSize"),height:Z.sizes("height"),blockSize:Z.sizes("blockSize"),boxSize:Z.sizes(["width","height"]),minWidth:Z.sizes("minWidth"),minInlineSize:Z.sizes("minInlineSize"),minHeight:Z.sizes("minHeight"),minBlockSize:Z.sizes("minBlockSize"),maxWidth:Z.sizes("maxWidth"),maxInlineSize:Z.sizes("maxInlineSize"),maxHeight:Z.sizes("maxHeight"),maxBlockSize:Z.sizes("maxBlockSize"),d:Z.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:Z.propT("float",Q.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(se,{w:se.width,h:se.height,minW:se.minWidth,maxW:se.maxWidth,minH:se.minHeight,maxH:se.maxHeight,overscroll:se.overscrollBehavior,overscrollX:se.overscrollBehaviorX,overscrollY:se.overscrollBehaviorY});var le={listStyleType:!0,listStylePosition:!0,listStylePos:Z.prop("listStylePosition"),listStyleImage:!0,listStyleImg:Z.prop("listStyleImage")},de={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ue={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},pe=function(e,r,t){var n={},a=h(e,r,{});for(var o in a){o in t&&null!=t[o]||(n[o]=a[o])}return n},fe={srOnly:{transform:function(e){return!0===e?de:"focusable"===e?ue:{}}},layerStyle:{processResult:!0,transform:function(e,r,t){return pe(r,"layerStyles."+e,t)}},textStyle:{processResult:!0,transform:function(e,r,t){return pe(r,"textStyles."+e,t)}},apply:{processResult:!0,transform:function(e,r,t){return pe(r,e,t)}}},ge={position:!0,pos:Z.prop("position"),zIndex:Z.prop("zIndex","zIndices"),inset:Z.spaceT("inset"),insetX:Z.spaceT(["left","right"]),insetInline:Z.spaceT("insetInline"),insetY:Z.spaceT(["top","bottom"]),insetBlock:Z.spaceT("insetBlock"),top:Z.spaceT("top"),insetBlockStart:Z.spaceT("insetBlockStart"),bottom:Z.spaceT("bottom"),insetBlockEnd:Z.spaceT("insetBlockEnd"),left:Z.spaceT("left"),insetInlineStart:Z.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:Z.spaceT("right"),insetInlineEnd:Z.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ge,{insetStart:ge.insetInlineStart,insetEnd:ge.insetInlineEnd});var he={ring:{transform:Q.ring},ringColor:Z.colors("--chakra-ring-color"),ringOffset:Z.prop("--chakra-ring-offset-width"),ringOffsetColor:Z.colors("--chakra-ring-offset-color"),ringInset:Z.prop("--chakra-ring-inset")},me={margin:Z.spaceT("margin"),marginTop:Z.spaceT("marginTop"),marginBlockStart:Z.spaceT("marginBlockStart"),marginRight:Z.spaceT("marginRight"),marginInlineEnd:Z.spaceT("marginInlineEnd"),marginBottom:Z.spaceT("marginBottom"),marginBlockEnd:Z.spaceT("marginBlockEnd"),marginLeft:Z.spaceT("marginLeft"),marginInlineStart:Z.spaceT("marginInlineStart"),marginX:Z.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:Z.spaceT("marginInline"),marginY:Z.spaceT(["marginTop","marginBottom"]),marginBlock:Z.spaceT("marginBlock"),padding:Z.space("padding"),paddingTop:Z.space("paddingTop"),paddingBlockStart:Z.space("paddingBlockStart"),paddingRight:Z.space("paddingRight"),paddingBottom:Z.space("paddingBottom"),paddingBlockEnd:Z.space("paddingBlockEnd"),paddingLeft:Z.space("paddingLeft"),paddingInlineStart:Z.space("paddingInlineStart"),paddingInlineEnd:Z.space("paddingInlineEnd"),paddingX:Z.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:Z.space("paddingInline"),paddingY:Z.space(["paddingTop","paddingBottom"]),paddingBlock:Z.space("paddingBlock")};Object.assign(me,{m:me.margin,mt:me.marginTop,mr:me.marginRight,me:me.marginInlineEnd,marginEnd:me.marginInlineEnd,mb:me.marginBottom,ml:me.marginLeft,ms:me.marginInlineStart,marginStart:me.marginInlineStart,mx:me.marginX,my:me.marginY,p:me.padding,pt:me.paddingTop,py:me.paddingY,px:me.paddingX,pb:me.paddingBottom,pl:me.paddingLeft,ps:me.paddingInlineStart,paddingStart:me.paddingInlineStart,pr:me.paddingRight,pe:me.paddingInlineEnd,paddingEnd:me.paddingInlineEnd});var ve={textDecorationColor:Z.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:Z.shadows("textShadow")},be={clipPath:!0,transform:Z.propT("transform",Q.transform),transformOrigin:!0,translateX:Z.spaceT("--chakra-translate-x"),translateY:Z.spaceT("--chakra-translate-y"),skewX:Z.degreeT("--chakra-skew-x"),skewY:Z.degreeT("--chakra-skew-y"),scaleX:Z.prop("--chakra-scale-x"),scaleY:Z.prop("--chakra-scale-y"),scale:Z.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:Z.degreeT("--chakra-rotate")},ye={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:Z.prop("transitionDuration","transition.duration"),transitionProperty:Z.prop("transitionProperty","transition.property"),transitionTimingFunction:Z.prop("transitionTimingFunction","transition.easing")},ke={fontFamily:Z.prop("fontFamily","fonts"),fontSize:Z.prop("fontSize","fontSizes",Q.px),fontWeight:Z.prop("fontWeight","fontWeights"),lineHeight:Z.prop("lineHeight","lineHeights"),letterSpacing:Z.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},Se={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:Z.spaceT("scrollMargin"),scrollMarginTop:Z.spaceT("scrollMarginTop"),scrollMarginBottom:Z.spaceT("scrollMarginBottom"),scrollMarginLeft:Z.spaceT("scrollMarginLeft"),scrollMarginRight:Z.spaceT("scrollMarginRight"),scrollMarginX:Z.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:Z.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:Z.spaceT("scrollPadding"),scrollPaddingTop:Z.spaceT("scrollPaddingTop"),scrollPaddingBottom:Z.spaceT("scrollPaddingBottom"),scrollPaddingLeft:Z.spaceT("scrollPaddingLeft"),scrollPaddingRight:Z.spaceT("scrollPaddingRight"),scrollPaddingX:Z.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:Z.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function xe(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _e(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return xe(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xe(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Re=function(e,r){return e+":hover "+r+", "+e+"[data-hover] "+r},we=function(e,r){return e+":focus "+r+", "+e+"[data-focus] "+r},Ee=function(e,r){return e+":focus-visible "+r},je=function(e,r){return e+":focus-within "+r},Te=function(e,r){return e+":active "+r+", "+e+"[data-active] "+r},Ce=function(e,r){return e+":disabled "+r+", "+e+"[data-disabled] "+r},Oe=function(e,r){return e+":invalid "+r+", "+e+"[data-invalid] "+r},Be=function(e,r){return e+":checked "+r+", "+e+"[data-checked] "+r},Ie=function(e,r){return e+":placeholder-shown "+r},Ne=function(e){return ze((function(r){return e(r,"&")}),"[role=group]","[data-group]",".group")},We=function(e){return ze((function(r){return e(r,"~ &")}),"[data-peer]",".peer")},ze=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.map(e).join(", ")},Ae={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ne(Re),_peerHover:We(Re),_groupFocus:Ne(we),_peerFocus:We(we),_groupFocusVisible:Ne(Ee),_peerFocusVisible:We(Ee),_groupActive:Ne(Te),_peerActive:We(Te),_groupDisabled:Ne(Ce),_peerDisabled:We(Ce),_groupInvalid:Ne(Oe),_peerInvalid:We(Oe),_groupChecked:Ne(Be),_peerChecked:We(Be),_groupFocusWithin:Ne(je),_peerFocusWithin:We(je),_peerPlaceholderShown:We(Ie),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},Le=b(Ae),Pe=n({},ee,re,te,oe,se,ae,he,ce,ie,fe,ge,ne,me,Se,ke,ve,be,le,ye);Object.assign({},me,se,oe,ie,ge);var Xe=[].concat(b(Pe),Le),Me=B({},Pe,Ae),De=function(e){return e in Me},Fe=function(e,r){return e.startsWith("--")&&l(r)&&!d(r)},Je=function(e,r){var t,n;if(null==r)return r;var a=function(r){var t,n;return null==(t=e.__cssMap)||null==(n=t[r])?void 0:n.varRef},o=function(e){var r;return null!=(r=a(e))?r:e},i=r.split(",").map((function(e){return e.trim()})),c=i[0],s=i[1];return r=null!=(t=null!=(n=a(c))?n:o(s))?t:o(r)};function Ge(e){var r=e.configs,t=void 0===r?{}:r,a=e.pseudos,o=void 0===a?{}:a,i=e.theme;return function e(r,a){void 0===a&&(a=!1);var s=x(r,i),l=function(e){return function(r){if(!r.__breakpoints)return e;var t=r.__breakpoints,n=t.isResponsive,a=t.toArrayValue,o=t.media,i={};for(var s in e){var l=x(e[s],r);if(null!=l)if(l=c(l)&&n(l)?a(l):l,Array.isArray(l))for(var d=l.slice(0,o.length).length,u=0;u<d;u+=1){var p=null==o?void 0:o[u];p?(i[p]=i[p]||{},null!=l[u]&&(i[p][s]=l[u])):i[s]=l[u]}else i[s]=l}return i}}(s)(i),d={};for(var u in l){var p,f,g,h,m,v=x(l[u],i);u in o&&(u=o[u]),Fe(u,v)&&(v=Je(i,v));var b=t[u];if(!0===b&&(b={property:u}),c(v)){var y;d[u]=null!=(y=d[u])?y:{},d[u]=n({},d[u],e(v,!0))}else{var k=null!=(p=null==(f=b)||null==f.transform?void 0:f.transform(v,i,s))?p:v;k=null!=(g=b)&&g.processResult?e(k,!0):k;var S=x(null==(h=b)?void 0:h.property,i);if(!a&&null!=(m=b)&&m.static){var _=x(b.static,i);d=n({},d,_)}if(S&&Array.isArray(S))for(var R,w=_e(S);!(R=w()).done;){d[R.value]=k}else S?"&"===S&&c(k)?d=n({},d,k):d[S]=k:c(k)?d=n({},d,k):d[u]=k}}return d}}function He(e){return c(e)&&e.reference?e.reference:String(e)}var Ye=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return t.map(He).join(" "+e+" ").replace(/calc/g,"")},Ve=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ye.apply(void 0,["+"].concat(r))+")"},$e=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ye.apply(void 0,["-"].concat(r))+")"},Ue=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ye.apply(void 0,["*"].concat(r))+")"},qe=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return"calc("+Ye.apply(void 0,["/"].concat(r))+")"},Ke=function(e){var r=He(e);return null==r||Number.isNaN(parseFloat(r))?Ue(r,-1):String(r).startsWith("-")?String(r).slice(1):"-"+r},Qe=Object.assign((function(e){return{add:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Qe(Ve.apply(void 0,[e].concat(t)))},subtract:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Qe($e.apply(void 0,[e].concat(t)))},multiply:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Qe(Ue.apply(void 0,[e].concat(t)))},divide:function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Qe(qe.apply(void 0,[e].concat(t)))},negate:function(){return Qe(Ke(e))},toString:function(){return e.toString()}}}),{add:Ve,subtract:$e,multiply:Ue,divide:qe,negate:Ke}),Ze="undefined"!=typeof Element,er="function"==typeof Map,rr="function"==typeof Set,tr="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function nr(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var t,n,a,o;if(Array.isArray(e)){if((t=e.length)!=r.length)return!1;for(n=t;0!=n--;)if(!nr(e[n],r[n]))return!1;return!0}if(er&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!nr(n.value[1],r.get(n.value[0])))return!1;return!0}if(rr&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!r.has(n.value[0]))return!1;return!0}if(tr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if((t=e.length)!=r.length)return!1;for(n=t;0!=n--;)if(e[n]!==r[n])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((t=(a=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(n=t;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;if(Ze&&e instanceof Element)return!1;for(n=t;0!=n--;)if(("_owner"!==a[n]&&"__v"!==a[n]&&"__o"!==a[n]||!e.$$typeof)&&!nr(e[a[n]],r[a[n]]))return!1;return!0}return e!=e&&r!=r}var ar=function(e,r){try{return nr(e,r)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};const or=Emotion.keyframes;function ir(){return ir=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ir.apply(this,arguments)}function cr(e){return p(e,["styleConfig","size","variant","colorScheme"])}function sr(){return ir({},O(),{theme:function(){var e=React.useContext(Emotion.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}()})}function lr(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}R({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});var dr=new Set([].concat(Xe,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),ur=new Set(["htmlWidth","htmlHeight","htmlSize"]),pr=function(e){return ur.has(e)||!dr.has(e)},fr=["theme","css","__css","sx"],gr=["baseStyle"],hr=function(e){var r=e.baseStyle;return function(e){e.theme;var t,n=e.css,a=e.__css,o=e.sx,i=m(lr(e,fr),(function(e,r){return De(r)})),c=x(r,e),s=Object.assign({},a,c,v(i),o),l=(t=s,function(e){return Ge({theme:e,pseudos:Ae,configs:Pe})(t)})(e.theme);return n?[l,n]:l}};function mr(e,r){var t=null!=r?r:{},n=t.baseStyle,a=lr(t,gr);a.shouldForwardProp||(a.shouldForwardProp=pr);var o=hr({baseStyle:n});return styled(e,a)(o)}function vr(e){return React.forwardRef(e)}var br=["styleConfig"];function yr(e,r,t){var a;void 0===r&&(r={}),void 0===t&&(t={});var o=r,i=o.styleConfig,c=lr(o,br),s=sr(),l=s.theme,d=s.colorMode,u=h(l,"components."+e),f=i||u,g=n({theme:l,colorMode:d},null!=(a=null==f?void 0:f.defaultProps)?a:{},v(p(c,["children"]))),m=React.useRef({});if(f){var b,y,k,S,_,R,w=x(null!=(b=f.baseStyle)?b:{},g),E=x(null!=(y=null==(k=f.variants)?void 0:k[g.variant])?y:{},g),j=x(null!=(S=null==(_=f.sizes)?void 0:_[g.size])?S:{},g),T=n({},w,j,E);null!=(R=t)&&R.isMultiPart&&f.parts&&f.parts.forEach((function(e){var r;T[e]=null!=(r=T[e])?r:{}})),ar(m.current,T)||(m.current=T)}return m.current}var kr=function(){var e=new Map;return new Proxy(mr,{apply:function(e,r,t){return mr.apply(void 0,t)},get:function(r,t){return e.has(t)||e.set(t,mr(t)),e.get(t)}})}();function Sr(){return Sr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Sr.apply(this,arguments)}var xr=["as","viewBox","color","focusable","children","className","__css"],_r={path:React.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},React.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),React.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),React.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},Rr=vr((function(e,r){var t=e.as,n=e.viewBox,a=e.color,o=void 0===a?"currentColor":a,i=e.focusable,c=void 0!==i&&i,s=e.children,l=e.className,d=e.__css,u=function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,xr),p={ref:r,focusable:c,className:S("chakra-icon",l),__css:Sr({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o},d)},f=null!=n?n:_r.viewBox;if(t&&"string"!=typeof t)return React.createElement(kr.svg,Sr({as:t},p,u));var g=null!=s?s:_r.path;return React.createElement(kr.svg,Sr({verticalAlign:"middle",viewBox:f},p,u),g)}));function wr(){return wr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wr.apply(this,arguments)}function Er(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}u&&(Rr.displayName="Icon");var jr=["htmlWidth","htmlHeight","alt"],Tr=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],Cr=React.forwardRef((function(e,r){var t=e.htmlWidth,n=e.htmlHeight,a=e.alt,o=Er(e,jr);return React.createElement("img",wr({width:t,height:n,ref:r,alt:a},o))})),Or=vr((function(e,r){var t=e.fallbackSrc,n=e.fallback,a=e.src,o=e.srcSet,i=e.align,c=e.fit,s=e.loading,l=e.ignoreFallback,d=e.crossOrigin,u=Er(e,Tr),f=null!=s||l||void 0===t&&void 0===n,g=function(e){var r=e.loading,t=e.src,n=e.srcSet,a=e.onLoad,o=e.onError,i=e.crossOrigin,c=e.sizes,s=e.ignoreFallback,l=React.useState("pending"),d=l[0],u=l[1];React.useEffect((function(){u(t?"loading":"pending")}),[t]);var p=React.useRef(),f=React.useCallback((function(){if(t){g();var e=new Image;e.src=t,i&&(e.crossOrigin=i),n&&(e.srcset=n),c&&(e.sizes=c),r&&(e.loading=r),e.onload=function(e){g(),u("loaded"),null==a||a(e)},e.onerror=function(e){g(),u("failed"),null==o||o(e)},p.current=e}}),[t,i,n,c,a,o,r]),g=function(){p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return E((function(){if(!s)return"loading"===d&&f(),function(){g()}}),[d,f,s]),s?"loaded":d}(wr({},e,{ignoreFallback:f})),h=wr({ref:r,objectFit:c,objectPosition:i},f?u:p(u,["onError","onLoad"]));return"loaded"!==g?n||React.createElement(kr.img,wr({as:Cr,className:"chakra-image__placeholder",src:t},h)):React.createElement(kr.img,wr({as:Cr,src:a,srcSet:o,crossOrigin:d,loading:s,className:"chakra-image"},h))}));u&&(Or.displayName="Image");var Br={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Ir=kr("span",{baseStyle:Br});u&&(Ir.displayName="VisuallyHidden");var Nr=kr("input",{baseStyle:Br});function Wr(){return Wr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Wr.apply(this,arguments)}u&&(Nr.displayName="VisuallyHiddenInput");var zr=["label","thickness","speed","emptyColor","className"],Ar=or({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Lr=vr((function(e,r){var t=yr("Spinner",e),n=cr(e),a=n.label,o=void 0===a?"Loading...":a,i=n.thickness,c=void 0===i?"2px":i,s=n.speed,l=void 0===s?"0.45s":s,d=n.emptyColor,u=void 0===d?"transparent":d,p=n.className,f=function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(n,zr),g=S("chakra-spinner",p),h=Wr({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:c,borderBottomColor:u,borderLeftColor:u,animation:Ar+" "+l+" linear infinite"},t);return React.createElement(kr.div,Wr({ref:r,__css:h,className:g},f),o&&React.createElement(Ir,null,o))}));function Pr(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}function Xr(){return Xr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Xr.apply(this,arguments)}u&&(Lr.displayName="Spinner");var Mr=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],Dr=R({strict:!1,name:"ButtonGroupContext"}),Fr=Dr[0],Jr=Dr[1];u&&(vr((function(e,r){var t=e.size,n=e.colorScheme,a=e.variant,o=e.className,i=e.spacing,c=void 0===i?"0.5rem":i,s=e.isAttached,l=e.isDisabled,d=Pr(e,Mr),u=S("chakra-button__group",o),p=React.useMemo((function(){return{size:t,colorScheme:n,variant:a,isDisabled:l}}),[t,n,a,l]),f={display:"inline-flex"};return f=Xr({},f,s?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:c}}),React.createElement(Fr,{value:p},React.createElement(kr.div,Xr({ref:r,role:"group",__css:f,className:u},d)))})).displayName="ButtonGroup");var Gr=["label","placement","spacing","children","className","__css"],Hr=function(e){var r=e.label,t=e.placement,n=e.spacing,a=void 0===n?"0.5rem":n,o=e.children,i=void 0===o?React.createElement(Lr,{color:"currentColor",width:"1em",height:"1em"}):o,c=e.className,s=e.__css,l=Pr(e,Gr),d=S("chakra-button__spinner",c),u="start"===t?"marginEnd":"marginStart",p=React.useMemo((function(){var e;return Xr(((e={display:"flex",alignItems:"center",position:r?"relative":"absolute"})[u]=r?a:0,e.fontSize="1em",e.lineHeight="normal",e),s)}),[s,r,u,a]);return React.createElement(kr.div,Xr({className:d},l,{__css:p}),i)};u&&(Hr.displayName="ButtonSpinner");var Yr=["children","className"],Vr=function(e){var r=e.children,t=e.className,n=Pr(e,Yr),a=React.isValidElement(r)?React.cloneElement(r,{"aria-hidden":!0,focusable:!1}):r,o=S("chakra-button__icon",t);return React.createElement(kr.span,Xr({display:"inline-flex",alignSelf:"center",flexShrink:0},n,{className:o}),a)};u&&(Vr.displayName="ButtonIcon");var $r=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],Ur=vr((function(e,r){var t,a,o,i,c=Jr(),s=yr("Button",Xr({},c,e)),l=cr(e),d=l.isDisabled,u=void 0===d?null==c?void 0:c.isDisabled:d,p=l.isLoading,f=l.isActive,g=l.isFullWidth,h=l.children,m=l.leftIcon,v=l.rightIcon,b=l.loadingText,y=l.iconSpacing,x=void 0===y?"0.5rem":y,_=l.type,R=l.spinner,w=l.spinnerPlacement,E=void 0===w?"start":w,j=l.className,C=l.as,O=Pr(l,$r),B=React.useMemo((function(){var e,r=n({},null!=(e=null==s?void 0:s._focus)?e:{},{zIndex:1});return Xr({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:g?"100%":"auto"},s,!!c&&{_focus:r})}),[s,c,g]),I=(t=C,a=React.useState(!t),o=a[0],i=a[1],{ref:React.useCallback((function(e){e&&i("BUTTON"===e.tagName)}),[]),type:o?"button":void 0}),N=I.ref,W=I.type,z={rightIcon:v,leftIcon:m,iconSpacing:x,children:h};return React.createElement(kr.button,Xr({disabled:u||p,ref:T(r,N),as:C,type:null!=_?_:W,"data-active":k(f),"data-loading":k(p),__css:B,className:S("chakra-button",j)},O),p&&"start"===E&&React.createElement(Hr,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:x},R),p?b||React.createElement(kr.span,{opacity:0},React.createElement(qr,z)):React.createElement(qr,z),p&&"end"===E&&React.createElement(Hr,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:x},R))}));function qr(e){var r=e.leftIcon,t=e.rightIcon,n=e.children,a=e.iconSpacing;return React.createElement(React.Fragment,null,r&&React.createElement(Vr,{marginEnd:a},r),n,t&&React.createElement(Vr,{marginStart:a},t))}u&&(Ur.displayName="Button");var Kr=["icon","children","isRound","aria-label"],Qr=vr((function(e,r){var t=e.icon,n=e.children,a=e.isRound,o=e["aria-label"],i=Pr(e,Kr),c=t||n,s=React.isValidElement(c)?React.cloneElement(c,{"aria-hidden":!0,focusable:!1}):null;return React.createElement(Ur,Xr({padding:"0",borderRadius:a?"full":void 0,ref:r,"aria-label":o},i),s)}));function Zr(){return Zr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Zr.apply(this,arguments)}function et(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}u&&(Qr.displayName="IconButton");var rt=["ratio","children","className"],tt=vr((function(e,r){var t=e.ratio,n=void 0===t?4/3:t,a=e.children,o=e.className,i=et(e,rt),c=React.Children.only(a),s=S("chakra-aspect-ratio",o);return React.createElement(kr.div,Zr({ref:r,position:"relative",className:s,_before:{height:0,content:'""',display:"block",paddingBottom:_(n,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},i),c)}));u&&(tt.displayName="AspectRatio");var nt=["className"];u&&(vr((function(e,r){var t=yr("Badge",e),n=cr(e);n.className;var a=et(n,nt);return React.createElement(kr.span,Zr({ref:r,className:S("chakra-badge",e.className)},a,{__css:Zr({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},t)}))})).displayName="Badge");var at=["size","centerContent"],ot=["size"],it=kr("div");u&&(it.displayName="Box");var ct=vr((function(e,r){var t=e.size,n=e.centerContent,a=void 0===n||n,o=et(e,at),i=a?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return React.createElement(it,Zr({ref:r,boxSize:t,__css:Zr({},i,{flexShrink:0,flexGrow:0})},o))}));u&&(ct.displayName="Square"),u&&(vr((function(e,r){var t=e.size,n=et(e,ot);return React.createElement(ct,Zr({size:t,ref:r,borderRadius:"9999px"},n))})).displayName="Circle");var st=kr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});u&&(st.displayName="Center");var lt=["className"];u&&(vr((function(e,r){var t=yr("Code",e),n=cr(e);n.className;var a=et(n,lt);return React.createElement(kr.code,Zr({ref:r,className:S("chakra-code",e.className)},a,{__css:Zr({display:"inline-block"},t)}))})).displayName="Code");var dt=["className","centerContent"];u&&(vr((function(e,r){var t=cr(e),n=t.className,a=t.centerContent,o=et(t,dt),i=yr("Container",e);return React.createElement(kr.div,Zr({ref:r,className:S("chakra-container",n)},o,{__css:Zr({},i,a&&{display:"flex",flexDirection:"column",alignItems:"center"})}))})).displayName="Container");var ut=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],pt=["className","orientation","__css"];u&&(vr((function(e,r){var t=yr("Divider",e),n=t.borderLeftWidth,a=t.borderBottomWidth,o=t.borderTopWidth,i=t.borderRightWidth,c=t.borderWidth,s=t.borderStyle,l=t.borderColor,d=et(t,ut),u=cr(e),p=u.className,f=u.orientation,g=void 0===f?"horizontal":f,h=u.__css,m=et(u,pt),v={vertical:{borderLeftWidth:n||i||c||"1px",height:"100%"},horizontal:{borderBottomWidth:a||o||c||"1px",width:"100%"}};return React.createElement(kr.hr,Zr({ref:r,"aria-orientation":g},m,{__css:Zr({},d,{border:"0",borderColor:l,borderStyle:s},v[g],h),className:S("chakra-divider",p)}))})).displayName="Divider");var ft=["direction","align","justify","wrap","basis","grow","shrink"],gt=vr((function(e,r){var t=e.direction,n=e.align,a=e.justify,o=e.wrap,i=e.basis,c=e.grow,s=e.shrink,l=et(e,ft),d={display:"flex",flexDirection:t,alignItems:n,justifyContent:a,flexWrap:o,flexBasis:i,flexGrow:c,flexShrink:s};return React.createElement(kr.div,Zr({ref:r,__css:d},l))}));u&&(gt.displayName="Flex");var ht=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],mt=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],vt=vr((function(e,r){var t=e.area,n=e.templateAreas,a=e.gap,o=e.rowGap,i=e.columnGap,c=e.column,s=e.row,l=e.autoFlow,d=e.autoRows,u=e.templateRows,p=e.autoColumns,f=e.templateColumns,g=et(e,ht),h={display:"grid",gridArea:t,gridTemplateAreas:n,gridGap:a,gridRowGap:o,gridColumnGap:i,gridAutoColumns:p,gridColumn:c,gridRow:s,gridAutoFlow:l,gridAutoRows:d,gridTemplateRows:u,gridTemplateColumns:f};return React.createElement(kr.div,Zr({ref:r,__css:h},g))}));function bt(e){return _(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}u&&(vt.displayName="Grid");var yt=vr((function(e,r){var t=e.area,n=e.colSpan,a=e.colStart,o=e.colEnd,i=e.rowEnd,c=e.rowSpan,s=e.rowStart,l=et(e,mt),d=v({gridArea:t,gridColumn:bt(n),gridRow:bt(c),gridColumnStart:a,gridColumnEnd:o,gridRowStart:s,gridRowEnd:i});return React.createElement(kr.div,Zr({ref:r,__css:d},l))})),kt=["className"];u&&(vr((function(e,r){var t=yr("Heading",e),n=cr(e);n.className;var a=et(n,kt);return React.createElement(kr.h2,Zr({ref:r,className:S("chakra-heading",e.className)},a,{__css:t}))})).displayName="Heading");var St=["className"];u&&(vr((function(e,r){var t=yr("Kbd",e),n=cr(e),a=n.className,o=et(n,St);return React.createElement(kr.kbd,Zr({ref:r,className:S("chakra-kbd",a)},o,{__css:Zr({fontFamily:"mono"},t)}))})).displayName="Kbd");var xt=["className","isExternal"];u&&(vr((function(e,r){var t=yr("Link",e),n=cr(e),a=n.className,o=n.isExternal,i=et(n,xt);return React.createElement(kr.a,Zr({target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,ref:r,className:S("chakra-link",a)},i,{__css:t}))})).displayName="Link");var _t=["children","styleType","stylePosition","spacing"],Rt=["as"],wt=["as"],Et=R({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),jt=Et[0],Tt=Et[1],Ct=vr((function(e,r){var t,n=function(e,r){return yr(e,r,{isMultiPart:!0})}("List",e),a=cr(e),o=a.children,i=a.styleType,c=void 0===i?"none":i,s=a.stylePosition,l=a.spacing,d=et(a,_t),u=w(o),p=l?((t={})["& > *:not(style) ~ *:not(style)"]={mt:l},t):{};return React.createElement(jt,{value:n},React.createElement(kr.ul,Zr({ref:r,listStyleType:c,listStylePosition:s,role:"list",__css:Zr({},n.container,p)},d),u))}));u&&(Ct.displayName="List"),u&&(vr((function(e,r){e.as;var t=et(e,Rt);return React.createElement(Ct,Zr({ref:r,as:"ol",styleType:"decimal",marginStart:"1em"},t))})).displayName="OrderedList"),u&&(vr((function(e,r){e.as;var t=et(e,wt);return React.createElement(Ct,Zr({ref:r,as:"ul",styleType:"initial",marginStart:"1em"},t))})).displayName="UnorderedList");var Ot=vr((function(e,r){var t=Tt();return React.createElement(kr.li,Zr({ref:r},e,{__css:t.item}))}));u&&(Ot.displayName="ListItem"),u&&(vr((function(e,r){var t=Tt();return React.createElement(Rr,Zr({ref:r,role:"presentation"},e,{__css:t.icon}))})).displayName="ListIcon");var Bt=["columns","spacingX","spacingY","spacing","minChildWidth"];u&&(vr((function(e,r){var t=e.columns,n=e.spacingX,o=e.spacingY,i=e.spacing,c=e.minChildWidth,l=et(e,Bt),d=c?_(c,(function(e){return s(e)?null:"repeat(auto-fit, minmax("+(a(r=e)?r+"px":r)+", 1fr))";var r})):_(t,(function(e){return s(e)?null:"repeat("+e+", minmax(0, 1fr))"}));return React.createElement(vt,Zr({ref:r,gap:i,columnGap:n,rowGap:o,templateColumns:d},l))})).displayName="SimpleGrid");var It=kr("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});u&&(It.displayName="Spacer");var Nt="& > *:not(style) ~ *:not(style)";var Wt=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],zt=function(e){return React.createElement(kr.div,Zr({className:"chakra-stack__item"},e,{__css:Zr({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},At=vr((function(e,r){var t,n=e.isInline,a=e.direction,o=e.align,i=e.justify,c=e.spacing,s=void 0===c?"0.5rem":c,l=e.wrap,d=e.children,u=e.divider,p=e.className,f=e.shouldWrapChildren,g=et(e,Wt),h=n?"row":null!=a?a:"column",m=React.useMemo((function(){return function(e){var r,t=e.spacing,n=e.direction,a={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return(r={flexDirection:n})[Nt]=_(n,(function(e){return a[e]})),r}({direction:h,spacing:s})}),[h,s]),v=React.useMemo((function(){return function(e){var r=e.spacing,t=e.direction,n={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":_(t,(function(e){return n[e]}))}}({spacing:s,direction:h})}),[s,h]),b=!!u,y=!f&&!b,k=w(d),x=y?k:k.map((function(e,r){var t=void 0!==e.key?e.key:r,n=r+1===k.length,a=f?React.createElement(zt,{key:t},e):e;if(!b)return a;var o=n?null:React.cloneElement(u,{__css:v});return React.createElement(React.Fragment,{key:t},a,o)})),R=S("chakra-stack",p);return React.createElement(kr.div,Zr({ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:m.flexDirection,flexWrap:l,className:R,__css:b?{}:(t={},t[Nt]=m[Nt],t)},g),x)}));u&&(At.displayName="Stack");var Lt=vr((function(e,r){return React.createElement(At,Zr({align:"center"},e,{direction:"row",ref:r}))}));u&&(Lt.displayName="HStack"),u&&(vr((function(e,r){return React.createElement(At,Zr({align:"center"},e,{direction:"column",ref:r}))})).displayName="VStack");var Pt=["className","align","decoration","casing"],Xt=vr((function(e,r){var t=yr("Text",e),n=cr(e);n.className,n.align,n.decoration,n.casing;var a=et(n,Pt),o=v({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return React.createElement(kr.p,Zr({ref:r,className:S("chakra-text",e.className)},o,a,{__css:t}))}));u&&(Xt.displayName="Text");var Mt=["spacing","children","justify","direction","align","className","shouldWrapChildren"],Dt=["className"];u&&(vr((function(e,r){var t=e.spacing,n=void 0===t?"0.5rem":t,a=e.children,o=e.justify,i=e.direction,c=e.align,s=e.className,l=e.shouldWrapChildren,d=et(e,Mt),u=React.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return _(n,(function(r){return I("space",r)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:o,alignItems:c,flexDirection:i,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[n,o,c,i]),p=l?React.Children.map(a,(function(e,r){return React.createElement(Ft,{key:r},e)})):a;return React.createElement(kr.div,Zr({ref:r,className:S("chakra-wrap",s)},d),React.createElement(kr.ul,{className:"chakra-wrap__list",__css:u},p))})).displayName="Wrap");var Ft=vr((function(e,r){var t=e.className,n=et(e,Dt);return React.createElement(kr.li,Zr({ref:r,__css:{display:"flex",alignItems:"flex-start"},className:S("chakra-wrap__listitem",t)},n))}));function Jt(){return Jt=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Jt.apply(this,arguments)}u&&(Ft.displayName="WrapItem");var Gt=["startColor","endColor","isLoaded","fadeDuration","speed","className"],Ht=kr("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Yt=or({from:{opacity:0},to:{opacity:1}}),Vt=vr((function(e,r){var t=yr("Skeleton",e),n=function(){var e=React.useRef(!0);return React.useEffect((function(){e.current=!1}),[]),e.current}(),a=cr(e);a.startColor,a.endColor;var o=a.isLoaded,i=a.fadeDuration;a.speed;var c=a.className,s=function(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(a,Gt),l=function(e){var r=React.useRef();return React.useEffect((function(){r.current=e}),[e]),r.current}(o),d=S("chakra-skeleton",c);if(o){var u=n||l?"none":Yt+" "+i+"s";return React.createElement(kr.div,Jt({ref:r,className:d,__css:{animation:u}},s))}return React.createElement(Ht,Jt({ref:r,className:d},s,{__css:t}))}));Vt.defaultProps={fadeDuration:.4,speed:.8},u&&(Vt.displayName="Skeleton");const $t=r=>{const{item:t}=r,n=r.hooks.useTemplate(t.id||r.source.itemId),{colorMode:a}=O(),o=(i="gray.200",c="gray.600","dark"===O().colorMode?c:i);var i,c;const s=r.hooks.useTemplate(r.properties.name),l=r.hooks.useTemplate(r.properties.source),d=parseInt(r.hooks.useTemplate(r.properties.quantity))||0,u=r.hooks.useTemplate(r.properties.price),p=r.hooks.useActionTrigger(r.properties.action,t,{target:r.source.target,rowId:n,type:"record",params:{},defaultRow:{type:"first-row"}}),f=React.useCallback((()=>e(void 0,void 0,void 0,(function*(){yield r.hooks.sourceHooks.component.store({id:t.id,quantity:d+1}),r.data.component.revalidate()}))),[t,d]),g=React.useCallback((()=>e(void 0,void 0,void 0,(function*(){yield r.hooks.sourceHooks.component.store({id:t.id,quantity:Math.max(0,d-1)}),r.data.component.revalidate()}))),[t,d]);return EmotionJSX.jsx(Ot,Object.assign({fontSize:"larger",p:4,bg:"#FFFFFF",borderRadius:"4px",borderColor:{base:o,md:"none"},cursor:"pointer",onClick:p.handleClick},{children:EmotionJSX.jsxs(Lt,Object.assign({spacing:3},{children:[l&&EmotionJSX.jsx(tt,Object.assign({ratio:1,width:"64px"},{children:EmotionJSX.jsx(Or,{alt:s,src:l,bg:"gray.200"},void 0)}),void 0),EmotionJSX.jsxs(it,Object.assign({flex:1,flexDirection:"row",noOfLines:4},{children:[EmotionJSX.jsx(Xt,Object.assign({fontSize:"sm",noOfLines:2,fontWeight:"semibold"},{children:s}),void 0),EmotionJSX.jsxs(Xt,Object.assign({fontSize:"sm",color:"light"===a?"gray.500":"gray.400",noOfLines:2},{children:["Quantity: ",d]}),void 0),EmotionJSX.jsxs(gt,Object.assign({alignItems:"center",justifyContent:"space-around"},{children:[EmotionJSX.jsx(it,Object.assign({flex:1},{children:EmotionJSX.jsx(Xt,Object.assign({fontSize:"sm",color:"light"===a?"gray.400":"gray.300",noOfLines:[0,1]},{children:u}),void 0)}),void 0),EmotionJSX.jsxs(gt,Object.assign({alignItems:"center"},{children:[EmotionJSX.jsx(Qr,{size:"2xs","aria-label":"Decrement",rounded:"2xs",as:r.components.iconsList.Minus,onClick:g},void 0),EmotionJSX.jsx(Xt,Object.assign({fontSize:"lg",px:2},{children:d}),void 0),EmotionJSX.jsx(Qr,{size:"2xs","aria-label":"Increment",rounded:"2xs",as:r.components.iconsList.Plus,onClick:f},void 0)]}),void 0)]}),void 0)]}),void 0)]}),void 0)}),void 0)},Ut=()=>EmotionJSX.jsxs(vt,Object.assign({templateColumns:"repeat(12, 1fr)",gap:4},{children:[EmotionJSX.jsx(yt,Object.assign({colSpan:3},{children:EmotionJSX.jsx(st,Object.assign({w:"100%",h:"100%"},{children:EmotionJSX.jsx(Vt,{boxSize:"64px",borderRadius:"lg"},void 0)}),void 0)}),void 0),EmotionJSX.jsxs(yt,Object.assign({colSpan:9},{children:[EmotionJSX.jsx(Vt,{height:"16px",width:"100%",borderRadius:"lg",mb:1},void 0),EmotionJSX.jsxs(At,Object.assign({spacing:"4px"},{children:[EmotionJSX.jsx(Vt,{height:"16px",width:"50%",borderRadius:"lg"},void 0),EmotionJSX.jsx(Vt,{height:"16px",borderRadius:"lg"},void 0),EmotionJSX.jsx(Vt,{height:"16px",borderRadius:"lg"},void 0),EmotionJSX.jsx(Vt,{height:"16px",borderRadius:"lg"},void 0)]}),void 0)]}),void 0)]}),void 0),qt=qoreApps.registerComponent("Checkout Button",{type:"list",icon:"IconText",group:"data",defaultProps:{header:"List",name:"Name",quantity:"Description",price:"Price",source:"https://via.placeholder.com/150",shipping:1e4,action:{type:"none"}},propDefinition:{header:{group:"Design",type:"string",options:{format:"text"}},name:{group:"Design",type:"string",options:{format:"text"}},quantity:{group:"Design",type:"string",options:{format:"text"}},price:{group:"Design",type:"string",options:{format:"text"}},source:{group:"Thumbnail",type:"string",options:{format:"text"}},shipping:{group:"Design",type:"number",options:{}},action:{group:"Action",type:"action",label:"Item Action",options:{type:"none"}}},Component:r=>{var t,n;const{id:a}=r.data.page.row,{rows:o,loading:i}=r.data.component,{user:c}=r.data.user,[s,l]=React.useState(!1),d=React.useMemo((()=>o.reduce(((e,r)=>e+r.quantity*r.price),0)),[o]),{sourceHooks:u}=r.hooks,p=r.hooks.useClient(),f=r.properties?null===(t=r.properties)||void 0===t?void 0:t.header:null,g=React.useCallback((()=>e(void 0,void 0,void 0,(function*(){var e;l(!0);try{const{results:t}=yield p.table(r.pageSource.target).insertRow({status:"PENDING",code:`TRX${Math.random()}`,checkout_date:(new Date).toISOString(),customer_transactions:c.id,date:(new Date).toISOString()}),n=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e[0],a=(yield Promise.all(o.map((e=>u.component.store({id:e.id,transaction_cart:n.id})))),yield p.project.axios.post(`/v1/action/${r.pageSource.target}/transact/${n.id}`));window.location.replace(a.data.result.invoice_url)}catch(e){l(!1)}}))),[c,o,a,p,r.pageSource.target,p]);return EmotionJSX.jsxs(it,Object.assign({px:4},{children:[EmotionJSX.jsx(it,Object.assign({mb:10},{children:0===o.length&&i?EmotionJSX.jsx(At,Object.assign({spacing:"7",p:4},{children:Array(2).fill(null).map((()=>EmotionJSX.jsx(Ut,{},void 0)))}),void 0):EmotionJSX.jsxs(it,{children:[f&&EmotionJSX.jsx(it,Object.assign({h:"auto",minHeight:f?"10px":"0px",display:"flex",justifyContent:"space-between",alignItems:"center",padding:f?"5px 5px":"0px",marginBottom:f?"2px":"0px"},{children:EmotionJSX.jsx(Xt,Object.assign({fontWeight:"bold",fontSize:"md"},{children:f}),void 0)}),void 0),EmotionJSX.jsx(Ct,{children:EmotionJSX.jsx(vt,Object.assign({templateColumns:{base:"none",md:"repeat(3, 1fr)"},gap:{base:"12px",md:"16px",lg:"24px"}},{children:null===(n=r.data.component.rows)||void 0===n?void 0:n.map((e=>EmotionJSX.jsx(r.components.ListItemVariables,Object.assign({variables:e},{children:EmotionJSX.jsx($t,Object.assign({item:e},r),e.id)}),e.id)))}),void 0)},void 0)]},void 0)}),void 0),EmotionJSX.jsxs(gt,Object.assign({cursor:"pointer",justifyContent:"space-between",mb:2},{children:[EmotionJSX.jsx(Xt,{children:"Subtotal"},void 0),EmotionJSX.jsxs(Xt,{children:["Rp ",d]},void 0)]}),void 0),EmotionJSX.jsxs(gt,Object.assign({cursor:"pointer",justifyContent:"space-between",mb:2},{children:[EmotionJSX.jsx(Xt,{children:"Shipping"},void 0),EmotionJSX.jsxs(Xt,{children:["Rp ",r.properties.shipping]},void 0)]}),void 0),EmotionJSX.jsxs(gt,Object.assign({cursor:"pointer",justifyContent:"space-between",mb:2},{children:[EmotionJSX.jsx(Xt,{children:"Total"},void 0),EmotionJSX.jsxs(Xt,{children:["Rp ",d+r.properties.shipping]},void 0)]}),void 0),EmotionJSX.jsxs(Ur,Object.assign({width:"full",onClick:g,disabled:s},{children:["checkout - Rp ",d+r.properties.shipping]}),void 0)]}),void 0)}});export{qt as default};

Back to list