@goodhood-web/nebenan-core 1.1.0-development.47 → 1.1.0-development.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -11
- package/index.mjs +691 -689
- package/package.json +1 -1
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),$=require("@goodhood-web/ui");var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),$=require("@goodhood-web/ui");var Se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn={exports:{}},Vt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Mn;function
|
|
9
|
+
*/var Mn;function Mi(){if(Mn)return Vt;Mn=1;var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(u,f,c){var _,S={},E=null,k=null;c!==void 0&&(E=""+c),f.key!==void 0&&(E=""+f.key),f.ref!==void 0&&(k=f.ref);for(_ in f)n.call(f,_)&&!i.hasOwnProperty(_)&&(S[_]=f[_]);if(u&&u.defaultProps)for(_ in f=u.defaultProps,f)S[_]===void 0&&(S[_]=f[_]);return{$$typeof:t,type:u,key:E,ref:k,props:S,_owner:a.current}}return Vt.Fragment=r,Vt.jsx=s,Vt.jsxs=s,Vt}var Ut={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,34 +14,34 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var $n;function
|
|
17
|
+
*/var $n;function $i(){return $n||($n=1,process.env.NODE_ENV!=="production"&&function(){var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),R=Symbol.iterator,ee="@@iterator";function te(o){if(o===null||typeof o!="object")return null;var y=R&&o[R]||o[ee];return typeof y=="function"?y:null}var m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(o){{for(var y=arguments.length,I=new Array(y>1?y-1:0),V=1;V<y;V++)I[V-1]=arguments[V];B("error",o,I)}}function B(o,y,I){{var V=m.ReactDebugCurrentFrame,re=V.getStackAddendum();re!==""&&(y+="%s",I=I.concat([re]));var se=I.map(function(J){return String(J)});se.unshift("Warning: "+y),Function.prototype.apply.call(console[o],console,se)}}var P=!1,g=!1,H=!1,O=!1,ie=!1,Ie;Ie=Symbol.for("react.module.reference");function Oe(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===i||ie||o===a||o===c||o===_||O||o===k||P||g||H||typeof o=="object"&&o!==null&&(o.$$typeof===E||o.$$typeof===S||o.$$typeof===s||o.$$typeof===u||o.$$typeof===f||o.$$typeof===Ie||o.getModuleId!==void 0))}function je(o,y,I){var V=o.displayName;if(V)return V;var re=y.displayName||y.name||"";return re!==""?I+"("+re+")":I}function we(o){return o.displayName||"Context"}function j(o){if(o==null)return null;if(typeof o.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case _:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case u:var y=o;return we(y)+".Consumer";case s:var I=o;return we(I._context)+".Provider";case f:return je(o,o.render,"ForwardRef");case S:var V=o.displayName||null;return V!==null?V:j(o.type)||"Memo";case E:{var re=o,se=re._payload,J=re._init;try{return j(J(se))}catch{return null}}}return null}var Q=Object.assign,ge=0,$e,Ge,Ke,Xe,l,b,G;function p(){}p.__reactDisabledLog=!0;function fe(){{if(ge===0){$e=console.log,Ge=console.info,Ke=console.warn,Xe=console.error,l=console.group,b=console.groupCollapsed,G=console.groupEnd;var o={configurable:!0,enumerable:!0,value:p,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}ge++}}function ce(){{if(ge--,ge===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},o,{value:$e}),info:Q({},o,{value:Ge}),warn:Q({},o,{value:Ke}),error:Q({},o,{value:Xe}),group:Q({},o,{value:l}),groupCollapsed:Q({},o,{value:b}),groupEnd:Q({},o,{value:G})})}ge<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=m.ReactCurrentDispatcher,pe;function Te(o,y,I){{if(pe===void 0)try{throw Error()}catch(re){var V=re.stack.trim().match(/\n( *(at )?)/);pe=V&&V[1]||""}return`
|
|
18
18
|
`+pe+o}}var _e=!1,me;{var z=typeof WeakMap=="function"?WeakMap:Map;me=new z}function C(o,y){if(!o||_e)return"";{var I=me.get(o);if(I!==void 0)return I}var V;_e=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=Ee.current,Ee.current=null,fe();try{if(y){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Ne){V=Ne}Reflect.construct(o,[],J)}else{try{J.call()}catch(Ne){V=Ne}o.call(J.prototype)}}else{try{throw Error()}catch(Ne){V=Ne}o()}}catch(Ne){if(Ne&&V&&typeof Ne.stack=="string"){for(var q=Ne.stack.split(`
|
|
19
19
|
`),Le=V.stack.split(`
|
|
20
20
|
`),he=q.length-1,ve=Le.length-1;he>=1&&ve>=0&&q[he]!==Le[ve];)ve--;for(;he>=1&&ve>=0;he--,ve--)if(q[he]!==Le[ve]){if(he!==1||ve!==1)do if(he--,ve--,ve<0||q[he]!==Le[ve]){var Be=`
|
|
21
|
-
`+q[he].replace(" at new "," at ");return o.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",o.displayName)),typeof o=="function"&&me.set(o,Be),Be}while(he>=1&&ve>=0);break}}}finally{_e=!1,Ee.current=se,ce(),Error.prepareStackTrace=re}var Nt=o?o.displayName||o.name:"",_t=Nt?Te(Nt):"";return typeof o=="function"&&me.set(o,_t),_t}function le(o,y,I){return C(o,!1)}function Ce(o){var y=o.prototype;return!!(y&&y.isReactComponent)}function
|
|
21
|
+
`+q[he].replace(" at new "," at ");return o.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",o.displayName)),typeof o=="function"&&me.set(o,Be),Be}while(he>=1&&ve>=0);break}}}finally{_e=!1,Ee.current=se,ce(),Error.prepareStackTrace=re}var Nt=o?o.displayName||o.name:"",_t=Nt?Te(Nt):"";return typeof o=="function"&&me.set(o,_t),_t}function le(o,y,I){return C(o,!1)}function Ce(o){var y=o.prototype;return!!(y&&y.isReactComponent)}function xe(o,y,I){if(o==null)return"";if(typeof o=="function")return C(o,Ce(o));if(typeof o=="string")return Te(o);switch(o){case c:return Te("Suspense");case _:return Te("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case f:return le(o.render);case S:return xe(o.type,y,I);case E:{var V=o,re=V._payload,se=V._init;try{return xe(se(re),y,I)}catch{}}}return""}var ht=Object.prototype.hasOwnProperty,vr={},gr=m.ReactDebugCurrentFrame;function nt(o){if(o){var y=o._owner,I=xe(o.type,o._source,y?y.type:null);gr.setExtraStackFrame(I)}else gr.setExtraStackFrame(null)}function $r(o,y,I,V,re){{var se=Function.call.bind(ht);for(var J in o)if(se(o,J)){var q=void 0;try{if(typeof o[J]!="function"){var Le=Error((V||"React class")+": "+I+" type `"+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[J]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}q=o[J](y,J,V,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){q=he}q&&!(q instanceof Error)&&(nt(re),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",V||"React class",I,J,typeof q),nt(null)),q instanceof Error&&!(q.message in vr)&&(vr[q.message]=!0,nt(re),T("Failed %s type: %s",I,q.message),nt(null))}}}var Kr=Array.isArray;function d(o){return Kr(o)}function A(o){{var y=typeof Symbol=="function"&&Symbol.toStringTag,I=y&&o[Symbol.toStringTag]||o.constructor.name||"Object";return I}}function w(o){try{return M(o),!1}catch{return!0}}function M(o){return""+o}function Z(o){if(w(o))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",A(o)),M(o)}var W=m.ReactCurrentOwner,ye={key:!0,ref:!0,__self:!0,__source:!0},De,Rt,pt;pt={};function Fr(o){if(ht.call(o,"ref")){var y=Object.getOwnPropertyDescriptor(o,"ref").get;if(y&&y.isReactWarning)return!1}return o.ref!==void 0}function Hr(o){if(ht.call(o,"key")){var y=Object.getOwnPropertyDescriptor(o,"key").get;if(y&&y.isReactWarning)return!1}return o.key!==void 0}function Er(o,y){if(typeof o.ref=="string"&&W.current&&y&&W.current.stateNode!==y){var I=j(W.current.type);pt[I]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j(W.current.type),o.ref),pt[I]=!0)}}function Vr(o,y){{var I=function(){De||(De=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",y))};I.isReactWarning=!0,Object.defineProperty(o,"key",{get:I,configurable:!0})}}function Oi(o,y){{var I=function(){Rt||(Rt=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",y))};I.isReactWarning=!0,Object.defineProperty(o,"ref",{get:I,configurable:!0})}}var Ci=function(o,y,I,V,re,se,J){var q={$$typeof:t,type:o,key:y,ref:I,props:J,_owner:se};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function xi(o,y,I,V,re){{var se,J={},q=null,Le=null;I!==void 0&&(Z(I),q=""+I),Hr(y)&&(Z(y.key),q=""+y.key),Fr(y)&&(Le=y.ref,Er(y,re));for(se in y)ht.call(y,se)&&!ye.hasOwnProperty(se)&&(J[se]=y[se]);if(o&&o.defaultProps){var he=o.defaultProps;for(se in he)J[se]===void 0&&(J[se]=he[se])}if(q||Le){var ve=typeof o=="function"?o.displayName||o.name||"Unknown":o;q&&Vr(J,ve),Le&&Oi(J,ve)}return Ci(o,q,Le,re,V,W.current,J)}}var Ur=m.ReactCurrentOwner,wn=m.ReactDebugCurrentFrame;function wt(o){if(o){var y=o._owner,I=xe(o.type,o._source,y?y.type:null);wn.setExtraStackFrame(I)}else wn.setExtraStackFrame(null)}var Zr;Zr=!1;function Gr(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function Nn(){{if(Ur.current){var o=j(Ur.current.type);if(o)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+o+"`."}return""}}function Ai(o){return""}var
|
|
23
|
+
Check the render method of \``+o+"`."}return""}}function Ai(o){return""}var jn={};function Ii(o){{var y=Nn();if(!y){var I=typeof o=="string"?o:o.displayName||o.name;I&&(y=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+I+">.")}return y}}function
|
|
25
|
+
Check the top-level render call using <`+I+">.")}return y}}function Dn(o,y){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var I=Ii(y);if(jn[I])return;jn[I]=!0;var V="";o&&o._owner&&o._owner!==Ur.current&&(V=" It was passed a child from "+j(o._owner.type)+"."),wt(o),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,V),wt(null)}}function Pn(o,y){{if(typeof o!="object")return;if(d(o))for(var I=0;I<o.length;I++){var V=o[I];Gr(V)&&Dn(V,y)}else if(Gr(o))o._store&&(o._store.validated=!0);else if(o){var re=te(o);if(typeof re=="function"&&re!==o.entries)for(var se=re.call(o),J;!(J=se.next()).done;)Gr(J.value)&&Dn(J.value,y)}}}function Li(o){{var y=o.type;if(y==null||typeof y=="string")return;var I;if(typeof y=="function")I=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===f||y.$$typeof===S))I=y.propTypes;else return;if(I){var V=j(y);$r(I,o.props,"prop",V,o)}else if(y.PropTypes!==void 0&&!Zr){Zr=!0;var re=j(y);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(o){{for(var y=Object.keys(o.props),I=0;I<y.length;I++){var V=y[I];if(V!=="children"&&V!=="key"){wt(o),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",V),wt(null);break}}o.ref!==null&&(wt(o),T("Invalid attribute `ref` supplied to `React.Fragment`."),wt(null))}}var kn={};function Bn(o,y,I,V,re,se){{var J=Oe(o);if(!J){var q="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Le=Ai();Le?q+=Le:q+=Nn();var he;o===null?he="null":d(o)?he="array":o!==void 0&&o.$$typeof===t?(he="<"+(j(o.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof o,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,q)}var ve=xi(o,y,I,re,se);if(ve==null)return ve;if(J){var Be=y.children;if(Be!==void 0)if(V)if(d(Be)){for(var Nt=0;Nt<Be.length;Nt++)Pn(Be[Nt],o);Object.freeze&&Object.freeze(Be)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pn(Be,o)}if(ht.call(y,"key")){var _t=j(o),Ne=Object.keys(y).filter(function(ki){return ki!=="key"}),Yr=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!kn[_t+Yr]){var Pi=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Yr,_t,
|
|
31
|
-
`),Te=[];pe.forEach(function(me,z){Te.push(me),z!==pe.length-1&&Te.push(t.createElement("br",null))}),Ee=Te}return l.marks.reduce(function(me,z){return p[z.type]?p[z.type](me):me},Ee)}else{var _e=De(l.content,S);return!l.nodeType||!G[l.nodeType]?t.createElement(t.Fragment,null,_e):G[l.nodeType](l,_e)}}var D,Q,ge=(D={},D[a.BLOCKS.DOCUMENT]=function(l,S){return S},D[a.BLOCKS.PARAGRAPH]=function(l,S){return t.createElement("p",null,S)},D[a.BLOCKS.HEADING_1]=function(l,S){return t.createElement("h1",null,S)},D[a.BLOCKS.HEADING_2]=function(l,S){return t.createElement("h2",null,S)},D[a.BLOCKS.HEADING_3]=function(l,S){return t.createElement("h3",null,S)},D[a.BLOCKS.HEADING_4]=function(l,S){return t.createElement("h4",null,S)},D[a.BLOCKS.HEADING_5]=function(l,S){return t.createElement("h5",null,S)},D[a.BLOCKS.HEADING_6]=function(l,S){return t.createElement("h6",null,S)},D[a.BLOCKS.EMBEDDED_ENTRY]=function(l,S){return t.createElement("div",null,S)},D[a.BLOCKS.EMBEDDED_RESOURCE]=function(l,S){return t.createElement("div",null,S)},D[a.BLOCKS.UL_LIST]=function(l,S){return t.createElement("ul",null,S)},D[a.BLOCKS.OL_LIST]=function(l,S){return t.createElement("ol",null,S)},D[a.BLOCKS.LIST_ITEM]=function(l,S){return t.createElement("li",null,S)},D[a.BLOCKS.QUOTE]=function(l,S){return t.createElement("blockquote",null,S)},D[a.BLOCKS.HR]=function(){return t.createElement("hr",null)},D[a.BLOCKS.TABLE]=function(l,S){return t.createElement("table",null,t.createElement("tbody",null,S))},D[a.BLOCKS.TABLE_ROW]=function(l,S){return t.createElement("tr",null,S)},D[a.BLOCKS.TABLE_HEADER_CELL]=function(l,S){return t.createElement("th",null,S)},D[a.BLOCKS.TABLE_CELL]=function(l,S){return t.createElement("td",null,S)},D[a.INLINES.ASSET_HYPERLINK]=function(l){return Ge(a.INLINES.ASSET_HYPERLINK,l)},D[a.INLINES.ENTRY_HYPERLINK]=function(l){return Ge(a.INLINES.ENTRY_HYPERLINK,l)},D[a.INLINES.RESOURCE_HYPERLINK]=function(l){return Ke(a.INLINES.RESOURCE_HYPERLINK,l)},D[a.INLINES.EMBEDDED_ENTRY]=function(l){return Ge(a.INLINES.EMBEDDED_ENTRY,l)},D[a.INLINES.EMBEDDED_RESOURCE]=function(l,S){return Ke(a.INLINES.EMBEDDED_RESOURCE,l)},D[a.INLINES.HYPERLINK]=function(l,S){return t.createElement("a",{href:l.data.uri},S)},D),$e=(Q={},Q[a.MARKS.BOLD]=function(l){return t.createElement("b",null,l)},Q[a.MARKS.ITALIC]=function(l){return t.createElement("i",null,l)},Q[a.MARKS.UNDERLINE]=function(l){return t.createElement("u",null,l)},Q[a.MARKS.CODE]=function(l){return t.createElement("code",null,l)},Q[a.MARKS.SUPERSCRIPT]=function(l){return t.createElement("sup",null,l)},Q[a.MARKS.SUBSCRIPT]=function(l){return t.createElement("sub",null,l)},Q[a.MARKS.STRIKETHROUGH]=function(l){return t.createElement("s",null,l)},Q);function Ge(l,S){return t.createElement("span",{key:S.data.target.sys.id},"type: ",S.nodeType," id: ",S.data.target.sys.id)}function Ke(l,S){return t.createElement("span",{key:S.data.target.sys.urn},"type: ",S.nodeType," urn: ",S.data.target.sys.urn)}function Xe(l,S){return S===void 0&&(S={}),l?we(l,{renderNode:r(r({},ge),S.renderNode),renderMark:r(r({},$e),S.renderMark),renderText:S.renderText,preserveWhitespace:S.preserveWhitespace}):null}e.documentToReactComponents=Xe})(gn);var He={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.BLOCKS=void 0;var Kn;(function(e){e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell"})(Kn||(Ct.BLOCKS=Kn={}));var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.INLINES=void 0;var Fn;(function(e){e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink"})(Fn||(Ft.INLINES=Fn={}));var hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.MARKS=void 0;var Hn;(function(e){e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough"})(Hn||(hr.MARKS=Hn={}));var Aa={};(function(e){var t=be&&be.__spreadArray||function(s,u,f){if(f||arguments.length===2)for(var c=0,_=u.length,b;c<_;c++)(b||!(c in u))&&(b||(b=Array.prototype.slice.call(u,0,c)),b[c]=u[c]);return s.concat(b||Array.prototype.slice.call(u))},r;Object.defineProperty(e,"__esModule",{value:!0}),e.V1_MARKS=e.V1_NODE_TYPES=e.TEXT_CONTAINERS=e.HEADINGS=e.CONTAINERS=e.VOID_BLOCKS=e.TABLE_BLOCKS=e.LIST_ITEM_BLOCKS=e.TOP_LEVEL_BLOCKS=void 0;var n=Ct,a=Ft,i=hr;e.TOP_LEVEL_BLOCKS=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE,n.BLOCKS.TABLE],e.LIST_ITEM_BLOCKS=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],e.TABLE_BLOCKS=[n.BLOCKS.TABLE,n.BLOCKS.TABLE_ROW,n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL],e.VOID_BLOCKS=[n.BLOCKS.HR,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],e.CONTAINERS=(r={},r[n.BLOCKS.OL_LIST]=[n.BLOCKS.LIST_ITEM],r[n.BLOCKS.UL_LIST]=[n.BLOCKS.LIST_ITEM],r[n.BLOCKS.LIST_ITEM]=e.LIST_ITEM_BLOCKS,r[n.BLOCKS.QUOTE]=[n.BLOCKS.PARAGRAPH],r[n.BLOCKS.TABLE]=[n.BLOCKS.TABLE_ROW],r[n.BLOCKS.TABLE_ROW]=[n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL],r[n.BLOCKS.TABLE_CELL]=[n.BLOCKS.PARAGRAPH,n.BLOCKS.UL_LIST,n.BLOCKS.OL_LIST],r[n.BLOCKS.TABLE_HEADER_CELL]=[n.BLOCKS.PARAGRAPH],r),e.HEADINGS=[n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6],e.TEXT_CONTAINERS=t([n.BLOCKS.PARAGRAPH],e.HEADINGS,!0),e.V1_NODE_TYPES=[n.BLOCKS.DOCUMENT,n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.LIST_ITEM,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,a.INLINES.HYPERLINK,a.INLINES.ENTRY_HYPERLINK,a.INLINES.ASSET_HYPERLINK,a.INLINES.EMBEDDED_ENTRY,"text"],e.V1_MARKS=[i.MARKS.BOLD,i.MARKS.CODE,i.MARKS.ITALIC,i.MARKS.UNDERLINE]})(Aa);var xa={};Object.defineProperty(xa,"__esModule",{value:!0});var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.EMPTY_DOCUMENT=void 0;var Vn=Ct;Nr.EMPTY_DOCUMENT={nodeType:Vn.BLOCKS.DOCUMENT,data:{},content:[{nodeType:Vn.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};var pr={};Object.defineProperty(pr,"__esModule",{value:!0});pr.isInline=ts;pr.isBlock=rs;pr.isText=ns;var Qi=Ct,es=Ft;function La(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var a=n[r];if(t===e[a])return!0}return!1}function ts(e){return La(es.INLINES,e.nodeType)}function rs(e){return La(Qi.BLOCKS,e.nodeType)}function ns(e){return e.nodeType==="text"}function as(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var En={};Object.defineProperty(En,"__esModule",{value:!0});En.getSchemaWithNodeType=is;function is(e){try{return as("./generated/".concat(e,".json"))}catch{throw new Error('Schema for nodeType "'.concat(e,'" was not found.'))}}(function(e){var t=be&&be.__createBinding||(Object.create?function(b,E,k,R){R===void 0&&(R=k);var ee=Object.getOwnPropertyDescriptor(E,k);(!ee||("get"in ee?!E.__esModule:ee.writable||ee.configurable))&&(ee={enumerable:!0,get:function(){return E[k]}}),Object.defineProperty(b,R,ee)}:function(b,E,k,R){R===void 0&&(R=k),b[R]=E[k]}),r=be&&be.__setModuleDefault||(Object.create?function(b,E){Object.defineProperty(b,"default",{enumerable:!0,value:E})}:function(b,E){b.default=E}),n=be&&be.__exportStar||function(b,E){for(var k in b)k!=="default"&&!Object.prototype.hasOwnProperty.call(E,k)&&t(E,b,k)},a=be&&be.__importStar||function(b){if(b&&b.__esModule)return b;var E={};if(b!=null)for(var k in b)k!=="default"&&Object.prototype.hasOwnProperty.call(b,k)&&t(E,b,k);return r(E,b),E};Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaWithNodeType=e.helpers=e.EMPTY_DOCUMENT=e.MARKS=e.INLINES=e.BLOCKS=void 0;var i=Ct;Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return i.BLOCKS}});var s=Ft;Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return s.INLINES}});var u=hr;Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return u.MARKS}}),n(Aa,e),n(xa,e),n(Ia,e);var f=Nr;Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return f.EMPTY_DOCUMENT}});var c=a(pr);e.helpers=c;var _=En;Object.defineProperty(e,"getSchemaWithNodeType",{enumerable:!0,get:function(){return _.getSchemaWithNodeType}})})(He);const ss="_persuasionText_tz1xc_106",os={persuasionText:ss},us=({children:e})=>h.jsx("div",{className:os.persuasionText,children:e}),cs=({block:e})=>{const t={preserveWhitespace:!0,renderMark:{[He.MARKS.BOLD]:n=>h.jsx($.Typography,{type:"body-semibold",children:n})},renderNode:{[He.BLOCKS.PARAGRAPH]:(n,a)=>h.jsx($.Typography,{type:"body-regular",children:a}),[He.BLOCKS.HEADING_1]:(n,a)=>h.jsx($.Typography,{type:"h1",children:a}),[He.BLOCKS.HEADING_3]:(n,a)=>h.jsx($.Typography,{type:"h3",children:a}),[He.BLOCKS.HEADING_4]:(n,a)=>h.jsx($.Typography,{type:"h4",children:a}),[He.BLOCKS.HEADING_2]:(n,a)=>h.jsx($.Typography,{type:"h2",children:a}),[He.BLOCKS.HEADING_5]:(n,a)=>h.jsx($.Typography,{type:"h5",children:a}),[He.BLOCKS.HEADING_6]:(n,a)=>h.jsx($.Typography,{type:"h6",children:a})}},r=()=>{const n=e.fields.text;if(n!==void 0)return gn.documentToReactComponents(n,t)};return h.jsx(us,{children:r()})},ls=({block:e})=>{const t=()=>{var r;return(r=e.fields.content)==null?void 0:r.map(n=>{switch(n==null?void 0:n.sys.contentType.sys.id){case"componentPersuasionImage":{const a=n;return h.jsx(Ui,{block:a})}case"componentPersuasionText":{const a=n;return h.jsx(cs,{block:a})}case"componentPersuasionList":{const a=n;return h.jsx(Xi,{block:a})}}})};return h.jsx(Ki,{alignment:e.fields.alignment,background:e.fields.background,children:t()})},ds="_persuasionImageSet_1pwtv_106",fs="_persuasionImageSet__images_1pwtv_110",hs="_persuasionImageSet__image_1pwtv_110",ps="_persuasionImageSet__text_1pwtv_125",_s="_persuasionImageSet__body_1pwtv_158",at={persuasionImageSet:ds,persuasionImageSet__images:fs,persuasionImageSet__image:hs,persuasionImageSet__text:ps,"persuasionImageSet--surface":"_persuasionImageSet--surface_1pwtv_133","persuasionImageSet--surfaceContainer":"_persuasionImageSet--surfaceContainer_1pwtv_137","persuasionImageSet--surfaceDim":"_persuasionImageSet--surfaceDim_1pwtv_141","persuasionImageSet--vanilla":"_persuasionImageSet--vanilla_1pwtv_145","persuasionImageSet--primary":"_persuasionImageSet--primary_1pwtv_149",persuasionImageSet__body:_s},ms=({backdrop:e,body:t,headline:r,imageLeft:n,imageRight:a})=>h.jsxs("div",{className:at.persuasionImageSet,children:[h.jsxs("div",{className:st(at.persuasionImageSet__images,at[`persuasionImageSet--${e}`]),children:[h.jsx("img",{className:at.persuasionImageSet__image,src:n.src,alt:n.alt}),h.jsx("img",{className:at.persuasionImageSet__image,src:a.src,alt:a.alt})]}),!!(r||t)&&h.jsxs("div",{className:st(at.persuasionImageSet__text,at[`persuasionImageSet--${e}`]),children:[r&&h.jsx($.Typography,{type:"h2",children:r}),t&&h.jsx($.Typography,{type:"body-large",className:at.persuasionImageSet__body,children:t})]})]}),ys=({block:e})=>{const t=r=>{var n,a;return{alt:(r==null?void 0:r.fields.description)??"",src:(n=r==null?void 0:r.fields.file)!=null&&n.url?`https:${(a=r.fields.file)==null?void 0:a.url}`:""}};return h.jsx(ms,{backdrop:e.fields.backdrop,imageLeft:t(e.fields.imageLeft),imageRight:t(e.fields.imageRight),body:e.fields.body,headline:e.fields.headline})},vs=({dynamicContent:e,onSubmit:t})=>h.jsx(h.Fragment,{children:e&&e.map(r=>{switch(r==null?void 0:r.sys.contentType.sys.id){case"blockSponsorCard":return h.jsx(N.Fragment,{children:h.jsx(bi,{block:r,onSubmit:t})},r==null?void 0:r.sys.id);case"blockPersuasionImageSet":return h.jsx(ys,{block:r});case"blockPersuasionContent":return h.jsx(ls,{block:r});default:return h.jsx(h.Fragment,{children:"No Block"})}})});var gs=function(t){return Es(t)&&!Ss(t)};function Es(e){return!!e&&typeof e=="object"}function Ss(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Os(e)}var bs=typeof Symbol=="function"&&Symbol.for,Ts=bs?Symbol.for("react.element"):60103;function Os(e){return e.$$typeof===Ts}function Cs(e){return Array.isArray(e)?[]:{}}function Or(e,t){return t.clone!==!1&&t.isMergeableObject(e)?qt(Cs(e),e,t):e}function As(e,t,r){return e.concat(t).map(function(n){return Or(n,r)})}function xs(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Or(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Or(t[a],r):n[a]=qt(e[a],t[a],r)}),n}function qt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||As,r.isMergeableObject=r.isMergeableObject||gs;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):xs(e,t,r):Or(t,r)}qt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return qt(n,a,r)},{})};var on=qt,Ra=typeof global=="object"&&global&&global.Object===Object&&global,Is=typeof self=="object"&&self&&self.Object===Object&&self,Je=Ra||Is||Function("return this")(),ot=Je.Symbol,wa=Object.prototype,Ls=wa.hasOwnProperty,Rs=wa.toString,Zt=ot?ot.toStringTag:void 0;function ws(e){var t=Ls.call(e,Zt),r=e[Zt];try{e[Zt]=void 0;var n=!0}catch{}var a=Rs.call(e);return n&&(t?e[Zt]=r:delete e[Zt]),a}var Ns=Object.prototype,Ds=Ns.toString;function js(e){return Ds.call(e)}var Ps="[object Null]",ks="[object Undefined]",Un=ot?ot.toStringTag:void 0;function At(e){return e==null?e===void 0?ks:Ps:Un&&Un in Object(e)?ws(e):js(e)}function Na(e,t){return function(r){return e(t(r))}}var Sn=Na(Object.getPrototypeOf,Object);function xt(e){return e!=null&&typeof e=="object"}var Bs="[object Object]",Ms=Function.prototype,$s=Object.prototype,Da=Ms.toString,Ks=$s.hasOwnProperty,Fs=Da.call(Object);function Zn(e){if(!xt(e)||At(e)!=Bs)return!1;var t=Sn(e);if(t===null)return!0;var r=Ks.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Da.call(r)==Fs}function Hs(){this.__data__=[],this.size=0}function ja(e,t){return e===t||e!==e&&t!==t}function Dr(e,t){for(var r=e.length;r--;)if(ja(e[r][0],t))return r;return-1}var Vs=Array.prototype,Us=Vs.splice;function Zs(e){var t=this.__data__,r=Dr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Us.call(t,r,1),--this.size,!0}function Gs(e){var t=this.__data__,r=Dr(t,e);return r<0?void 0:t[r][1]}function Ys(e){return Dr(this.__data__,e)>-1}function zs(e,t){var r=this.__data__,n=Dr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rt.prototype.clear=Hs;rt.prototype.delete=Zs;rt.prototype.get=Gs;rt.prototype.has=Ys;rt.prototype.set=zs;function Ws(){this.__data__=new rt,this.size=0}function qs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Js(e){return this.__data__.get(e)}function Xs(e){return this.__data__.has(e)}function _r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qs="[object AsyncFunction]",eo="[object Function]",to="[object GeneratorFunction]",ro="[object Proxy]";function Pa(e){if(!_r(e))return!1;var t=At(e);return t==eo||t==to||t==Qs||t==ro}var Wr=Je["__core-js_shared__"],Gn=function(){var e=/[^.]+$/.exec(Wr&&Wr.keys&&Wr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function no(e){return!!Gn&&Gn in e}var ao=Function.prototype,io=ao.toString;function It(e){if(e!=null){try{return io.call(e)}catch{}try{return e+""}catch{}}return""}var so=/[\\^$.*+?()[\]{}|]/g,oo=/^\[object .+?Constructor\]$/,uo=Function.prototype,co=Object.prototype,lo=uo.toString,fo=co.hasOwnProperty,ho=RegExp("^"+lo.call(fo).replace(so,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function po(e){if(!_r(e)||no(e))return!1;var t=Pa(e)?ho:oo;return t.test(It(e))}function _o(e,t){return e==null?void 0:e[t]}function Lt(e,t){var r=_o(e,t);return po(r)?r:void 0}var Jt=Lt(Je,"Map"),Xt=Lt(Object,"create");function mo(){this.__data__=Xt?Xt(null):{},this.size=0}function yo(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vo="__lodash_hash_undefined__",go=Object.prototype,Eo=go.hasOwnProperty;function So(e){var t=this.__data__;if(Xt){var r=t[e];return r===vo?void 0:r}return Eo.call(t,e)?t[e]:void 0}var bo=Object.prototype,To=bo.hasOwnProperty;function Oo(e){var t=this.__data__;return Xt?t[e]!==void 0:To.call(t,e)}var Co="__lodash_hash_undefined__";function Ao(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xt&&t===void 0?Co:t,this}function bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}bt.prototype.clear=mo;bt.prototype.delete=yo;bt.prototype.get=So;bt.prototype.has=Oo;bt.prototype.set=Ao;function xo(){this.size=0,this.__data__={hash:new bt,map:new(Jt||rt),string:new bt}}function Io(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function jr(e,t){var r=e.__data__;return Io(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Lo(e){var t=jr(this,e).delete(e);return this.size-=t?1:0,t}function Ro(e){return jr(this,e).get(e)}function wo(e){return jr(this,e).has(e)}function No(e,t){var r=jr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ft.prototype.clear=xo;ft.prototype.delete=Lo;ft.prototype.get=Ro;ft.prototype.has=wo;ft.prototype.set=No;var Do=200;function jo(e,t){var r=this.__data__;if(r instanceof rt){var n=r.__data__;if(!Jt||n.length<Do-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ft(n)}return r.set(e,t),this.size=r.size,this}function Ht(e){var t=this.__data__=new rt(e);this.size=t.size}Ht.prototype.clear=Ws;Ht.prototype.delete=qs;Ht.prototype.get=Js;Ht.prototype.has=Xs;Ht.prototype.set=jo;function Po(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Yn=function(){try{var e=Lt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function ka(e,t,r){t=="__proto__"&&Yn?Yn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ko=Object.prototype,Bo=ko.hasOwnProperty;function Ba(e,t,r){var n=e[t];(!(Bo.call(e,t)&&ja(n,r))||r===void 0&&!(t in e))&&ka(e,t,r)}function Pr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],f=void 0;f===void 0&&(f=e[u]),a?ka(r,u,f):Ba(r,u,f)}return r}function Mo(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var $o="[object Arguments]";function zn(e){return xt(e)&&At(e)==$o}var Ma=Object.prototype,Ko=Ma.hasOwnProperty,Fo=Ma.propertyIsEnumerable,Ho=zn(function(){return arguments}())?zn:function(e){return xt(e)&&Ko.call(e,"callee")&&!Fo.call(e,"callee")},mr=Array.isArray;function Vo(){return!1}var $a=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wn=$a&&typeof module=="object"&&module&&!module.nodeType&&module,Uo=Wn&&Wn.exports===$a,qn=Uo?Je.Buffer:void 0,Zo=qn?qn.isBuffer:void 0,Ka=Zo||Vo,Go=9007199254740991,Yo=/^(?:0|[1-9]\d*)$/;function zo(e,t){var r=typeof e;return t=t??Go,!!t&&(r=="number"||r!="symbol"&&Yo.test(e))&&e>-1&&e%1==0&&e<t}var Wo=9007199254740991;function Fa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wo}var qo="[object Arguments]",Jo="[object Array]",Xo="[object Boolean]",Qo="[object Date]",eu="[object Error]",tu="[object Function]",ru="[object Map]",nu="[object Number]",au="[object Object]",iu="[object RegExp]",su="[object Set]",ou="[object String]",uu="[object WeakMap]",cu="[object ArrayBuffer]",lu="[object DataView]",du="[object Float32Array]",fu="[object Float64Array]",hu="[object Int8Array]",pu="[object Int16Array]",_u="[object Int32Array]",mu="[object Uint8Array]",yu="[object Uint8ClampedArray]",vu="[object Uint16Array]",gu="[object Uint32Array]",ue={};ue[du]=ue[fu]=ue[hu]=ue[pu]=ue[_u]=ue[mu]=ue[yu]=ue[vu]=ue[gu]=!0;ue[qo]=ue[Jo]=ue[cu]=ue[Xo]=ue[lu]=ue[Qo]=ue[eu]=ue[tu]=ue[ru]=ue[nu]=ue[au]=ue[iu]=ue[su]=ue[ou]=ue[uu]=!1;function Eu(e){return xt(e)&&Fa(e.length)&&!!ue[At(e)]}function bn(e){return function(t){return e(t)}}var Ha=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zt=Ha&&typeof module=="object"&&module&&!module.nodeType&&module,Su=zt&&zt.exports===Ha,qr=Su&&Ra.process,Bt=function(){try{var e=zt&&zt.require&&zt.require("util").types;return e||qr&&qr.binding&&qr.binding("util")}catch{}}(),Jn=Bt&&Bt.isTypedArray,bu=Jn?bn(Jn):Eu,Tu=Object.prototype,Ou=Tu.hasOwnProperty;function Va(e,t){var r=mr(e),n=!r&&Ho(e),a=!r&&!n&&Ka(e),i=!r&&!n&&!a&&bu(e),s=r||n||a||i,u=s?Mo(e.length,String):[],f=u.length;for(var c in e)(t||Ou.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||zo(c,f)))&&u.push(c);return u}var Cu=Object.prototype;function Tn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Cu;return e===r}var Au=Na(Object.keys,Object),xu=Object.prototype,Iu=xu.hasOwnProperty;function Lu(e){if(!Tn(e))return Au(e);var t=[];for(var r in Object(e))Iu.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ua(e){return e!=null&&Fa(e.length)&&!Pa(e)}function On(e){return Ua(e)?Va(e):Lu(e)}function Ru(e,t){return e&&Pr(t,On(t),e)}function wu(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Nu=Object.prototype,Du=Nu.hasOwnProperty;function ju(e){if(!_r(e))return wu(e);var t=Tn(e),r=[];for(var n in e)n=="constructor"&&(t||!Du.call(e,n))||r.push(n);return r}function Cn(e){return Ua(e)?Va(e,!0):ju(e)}function Pu(e,t){return e&&Pr(t,Cn(t),e)}var Za=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xn=Za&&typeof module=="object"&&module&&!module.nodeType&&module,ku=Xn&&Xn.exports===Za,Qn=ku?Je.Buffer:void 0,ea=Qn?Qn.allocUnsafe:void 0;function Bu(e,t){if(t)return e.slice();var r=e.length,n=ea?ea(r):new e.constructor(r);return e.copy(n),n}function Ga(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Mu(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}function Ya(){return[]}var $u=Object.prototype,Ku=$u.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,An=ta?function(e){return e==null?[]:(e=Object(e),Mu(ta(e),function(t){return Ku.call(e,t)}))}:Ya;function Fu(e,t){return Pr(e,An(e),t)}function za(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Hu=Object.getOwnPropertySymbols,Wa=Hu?function(e){for(var t=[];e;)za(t,An(e)),e=Sn(e);return t}:Ya;function Vu(e,t){return Pr(e,Wa(e),t)}function qa(e,t,r){var n=t(e);return mr(e)?n:za(n,r(e))}function Uu(e){return qa(e,On,An)}function Zu(e){return qa(e,Cn,Wa)}var un=Lt(Je,"DataView"),cn=Lt(Je,"Promise"),ln=Lt(Je,"Set"),dn=Lt(Je,"WeakMap"),ra="[object Map]",Gu="[object Object]",na="[object Promise]",aa="[object Set]",ia="[object WeakMap]",sa="[object DataView]",Yu=It(un),zu=It(Jt),Wu=It(cn),qu=It(ln),Ju=It(dn),et=At;(un&&et(new un(new ArrayBuffer(1)))!=sa||Jt&&et(new Jt)!=ra||cn&&et(cn.resolve())!=na||ln&&et(new ln)!=aa||dn&&et(new dn)!=ia)&&(et=function(e){var t=At(e),r=t==Gu?e.constructor:void 0,n=r?It(r):"";if(n)switch(n){case Yu:return sa;case zu:return ra;case Wu:return na;case qu:return aa;case Ju:return ia}return t});var Xu=Object.prototype,Qu=Xu.hasOwnProperty;function ec(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Qu.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var oa=Je.Uint8Array;function xn(e){var t=new e.constructor(e.byteLength);return new oa(t).set(new oa(e)),t}function tc(e,t){var r=t?xn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var rc=/\w*$/;function nc(e){var t=new e.constructor(e.source,rc.exec(e));return t.lastIndex=e.lastIndex,t}var ua=ot?ot.prototype:void 0,ca=ua?ua.valueOf:void 0;function ac(e){return ca?Object(ca.call(e)):{}}function ic(e,t){var r=t?xn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var sc="[object Boolean]",oc="[object Date]",uc="[object Map]",cc="[object Number]",lc="[object RegExp]",dc="[object Set]",fc="[object String]",hc="[object Symbol]",pc="[object ArrayBuffer]",_c="[object DataView]",mc="[object Float32Array]",yc="[object Float64Array]",vc="[object Int8Array]",gc="[object Int16Array]",Ec="[object Int32Array]",Sc="[object Uint8Array]",bc="[object Uint8ClampedArray]",Tc="[object Uint16Array]",Oc="[object Uint32Array]";function Cc(e,t,r){var n=e.constructor;switch(t){case pc:return xn(e);case sc:case oc:return new n(+e);case _c:return tc(e,r);case mc:case yc:case vc:case gc:case Ec:case Sc:case bc:case Tc:case Oc:return ic(e,r);case uc:return new n;case cc:case fc:return new n(e);case lc:return nc(e);case dc:return new n;case hc:return ac(e)}}var la=Object.create,Ac=function(){function e(){}return function(t){if(!_r(t))return{};if(la)return la(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function xc(e){return typeof e.constructor=="function"&&!Tn(e)?Ac(Sn(e)):{}}var Ic="[object Map]";function Lc(e){return xt(e)&&et(e)==Ic}var da=Bt&&Bt.isMap,Rc=da?bn(da):Lc,wc="[object Set]";function Nc(e){return xt(e)&&et(e)==wc}var fa=Bt&&Bt.isSet,Dc=fa?bn(fa):Nc,jc=1,Pc=2,kc=4,Ja="[object Arguments]",Bc="[object Array]",Mc="[object Boolean]",$c="[object Date]",Kc="[object Error]",Xa="[object Function]",Fc="[object GeneratorFunction]",Hc="[object Map]",Vc="[object Number]",Qa="[object Object]",Uc="[object RegExp]",Zc="[object Set]",Gc="[object String]",Yc="[object Symbol]",zc="[object WeakMap]",Wc="[object ArrayBuffer]",qc="[object DataView]",Jc="[object Float32Array]",Xc="[object Float64Array]",Qc="[object Int8Array]",el="[object Int16Array]",tl="[object Int32Array]",rl="[object Uint8Array]",nl="[object Uint8ClampedArray]",al="[object Uint16Array]",il="[object Uint32Array]",oe={};oe[Ja]=oe[Bc]=oe[Wc]=oe[qc]=oe[Mc]=oe[$c]=oe[Jc]=oe[Xc]=oe[Qc]=oe[el]=oe[tl]=oe[Hc]=oe[Vc]=oe[Qa]=oe[Uc]=oe[Zc]=oe[Gc]=oe[Yc]=oe[rl]=oe[nl]=oe[al]=oe[il]=!0;oe[Kc]=oe[Xa]=oe[zc]=!1;function Wt(e,t,r,n,a,i){var s,u=t&jc,f=t&Pc,c=t&kc;if(s!==void 0)return s;if(!_r(e))return e;var _=mr(e);if(_){if(s=ec(e),!u)return Ga(e,s)}else{var b=et(e),E=b==Xa||b==Fc;if(Ka(e))return Bu(e,u);if(b==Qa||b==Ja||E&&!a){if(s=f||E?{}:xc(e),!u)return f?Vu(e,Pu(s,e)):Fu(e,Ru(s,e))}else{if(!oe[b])return a?e:{};s=Cc(e,b,u)}}i||(i=new Ht);var k=i.get(e);if(k)return k;i.set(e,s),Dc(e)?e.forEach(function(te){s.add(Wt(te,t,r,te,e,i))}):Rc(e)&&e.forEach(function(te,m){s.set(m,Wt(te,t,r,m,e,i))});var R=c?f?Zu:Uu:f?Cn:On,ee=_?void 0:R(e);return Po(ee||e,function(te,m){ee&&(m=te,te=e[m]),Ba(s,m,Wt(te,t,r,m,e,i))}),s}var sl=1,ol=4;function br(e){return Wt(e,sl|ol)}var ha=Array.isArray,pa=Object.keys,ul=Object.prototype.hasOwnProperty,cl=typeof Element<"u";function fn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=ha(e),n=ha(t),a,i,s;if(r&&n){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!fn(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var u=e instanceof Date,f=t instanceof Date;if(u!=f)return!1;if(u&&f)return e.getTime()==t.getTime();var c=e instanceof RegExp,_=t instanceof RegExp;if(c!=_)return!1;if(c&&_)return e.toString()==t.toString();var b=pa(e);if(i=b.length,i!==pa(t).length)return!1;for(a=i;a--!==0;)if(!ul.call(t,b[a]))return!1;if(cl&&e instanceof Element&&t instanceof Element)return e===t;for(a=i;a--!==0;)if(s=b[a],!(s==="_owner"&&e.$$typeof)&&!fn(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}var ll=function(t,r){try{return fn(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const vt=ki(ll);var dl=process.env.NODE_ENV==="production";function jt(e,t){if(!dl){var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var fl=4;function _a(e){return Wt(e,fl)}function ei(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var hl="[object Symbol]";function In(e){return typeof e=="symbol"||xt(e)&&At(e)==hl}var pl="Expected a function";function Ln(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pl);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var s=e.apply(this,n);return r.cache=i.set(a,s)||i,s};return r.cache=new(Ln.Cache||ft),r}Ln.Cache=ft;var _l=500;function ml(e){var t=Ln(e,function(n){return r.size===_l&&r.clear(),n}),r=t.cache;return t}var yl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vl=/\\(\\)?/g,gl=ml(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yl,function(r,n,a,i){t.push(a?i.replace(vl,"$1"):n||r)}),t}),El=1/0;function Sl(e){if(typeof e=="string"||In(e))return e;var t=e+"";return t=="0"&&1/e==-El?"-0":t}var bl=1/0,ma=ot?ot.prototype:void 0,ya=ma?ma.toString:void 0;function ti(e){if(typeof e=="string")return e;if(mr(e))return ei(e,ti)+"";if(In(e))return ya?ya.call(e):"";var t=e+"";return t=="0"&&1/e==-bl?"-0":t}function Tl(e){return e==null?"":ti(e)}function ri(e){return mr(e)?ei(e,Sl):In(e)?[e]:Ga(gl(Tl(e)))}var hn={exports:{}},ne={};/** @license React v16.13.1
|
|
30
|
+
<%s key={someKey} {...props} />`,Yr,_t,Pi,_t),kn[_t+Yr]=!0}}return o===n?Ri(ve):Li(ve),ve}}function wi(o,y,I){return Bn(o,y,I,!0)}function Ni(o,y,I){return Bn(o,y,I,!1)}var ji=Ni,Di=wi;Ut.Fragment=n,Ut.jsx=ji,Ut.jsxs=Di}()),Ut}process.env.NODE_ENV==="production"?sn.exports=Mi():sn.exports=$i();var h=sn.exports;function xa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=xa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function st(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=xa(e))&&(n&&(n+=" "),n+=t);return n}const Ki="_persuasionContent_10etw_106",zr={persuasionContent:Ki,"persuasionContent--center":"_persuasionContent--center_10etw_110","persuasionContent--left":"_persuasionContent--left_10etw_115","persuasionContent--surfaceContainer":"_persuasionContent--surfaceContainer_10etw_120","persuasionContent--vanilla":"_persuasionContent--vanilla_10etw_123"},Fi=({alignment:e,background:t,children:r})=>{const n=st(zr.persuasionContent,zr[`persuasionContent--${e}`],zr[`persuasionContent--${t}`]);return h.jsx("div",{className:n,children:r})},Hi="_persuationImage_sbo87_106",Vi={persuationImage:Hi},Ui=({data:e})=>h.jsx("div",{className:Vi.persuationImage,children:e.map(t=>h.jsx("img",{src:t.src,alt:t.alt},t.src))}),Zi=({block:e})=>{const t=()=>{var n;const r=[];return(n=e.fields.images)==null||n.map(a=>{var i,s;r.push({alt:(a==null?void 0:a.fields.description)??"",src:(i=a==null?void 0:a.fields.file)!=null&&i.url?`https:${(s=a.fields.file)==null?void 0:s.url}`:""})}),r};return h.jsx(Ui,{data:t()})},Gi="_persuasionList_1k5y9_106",Yi={persuasionList:Gi,"persuasionList--hasIcon":"_persuasionList--hasIcon_1k5y9_111"},zi="_persuasionListItem_zwvgx_106",Wi="_persuasionListItem__text_zwvgx_113",qi="_persuasionListItem__ellipse_zwvgx_118",br={persuasionListItem:zi,persuasionListItem__text:Wi,persuasionListItem__ellipse:qi,"persuasionListItem--hasIcon":"_persuasionListItem--hasIcon_zwvgx_124"},Ji=({body:e,headline:t,icon:r})=>{const n=st(br.persuasionListItem,{[br["persuasionListItem--hasIcon"]]:r});return h.jsxs("li",{className:n,children:[r!==void 0?h.jsx($.Sticker,{color:"green",icon:r,size:"small"}):h.jsx("div",{className:br.persuasionListItem__ellipse}),h.jsxs("div",{className:br.persuasionListItem__text,children:[t&&h.jsx($.Typography,{type:"h5",children:t}),e&&h.jsx($.Typography,{type:"body-regular",children:e})]})]})},Xi=({list:e})=>h.jsx("ul",{className:Yi.persuasionList,children:e.map(t=>N.createElement(Ji,{...t,key:t.headline}))}),Qi=({block:e})=>{const t=()=>{var n;const r=[];return(n=e.fields.items)==null||n.map(a=>r.push({body:a==null?void 0:a.fields.body,headline:a==null?void 0:a.fields.headline,icon:a==null?void 0:a.fields.icon})),r};return h.jsx(Xi,{list:t()})};var gn={};(function(e){var t=N,r=function(){return r=Object.assign||function(b){for(var G,p=1,fe=arguments.length;p<fe;p++){G=arguments[p];for(var ce in G)Object.prototype.hasOwnProperty.call(G,ce)&&(b[ce]=G[ce])}return b},r.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Se<"u"?Se:typeof self<"u"?self:{},a={},i={};Object.defineProperty(i,"__esModule",{value:!0}),i.BLOCKS=void 0;var s;(function(l){l.DOCUMENT="document",l.PARAGRAPH="paragraph",l.HEADING_1="heading-1",l.HEADING_2="heading-2",l.HEADING_3="heading-3",l.HEADING_4="heading-4",l.HEADING_5="heading-5",l.HEADING_6="heading-6",l.OL_LIST="ordered-list",l.UL_LIST="unordered-list",l.LIST_ITEM="list-item",l.HR="hr",l.QUOTE="blockquote",l.EMBEDDED_ENTRY="embedded-entry-block",l.EMBEDDED_ASSET="embedded-asset-block",l.EMBEDDED_RESOURCE="embedded-resource-block",l.TABLE="table",l.TABLE_ROW="table-row",l.TABLE_CELL="table-cell",l.TABLE_HEADER_CELL="table-header-cell"})(s||(i.BLOCKS=s={}));var u={};Object.defineProperty(u,"__esModule",{value:!0}),u.INLINES=void 0;var f;(function(l){l.ASSET_HYPERLINK="asset-hyperlink",l.EMBEDDED_ENTRY="embedded-entry-inline",l.EMBEDDED_RESOURCE="embedded-resource-inline",l.ENTRY_HYPERLINK="entry-hyperlink",l.HYPERLINK="hyperlink",l.RESOURCE_HYPERLINK="resource-hyperlink"})(f||(u.INLINES=f={}));var c={};Object.defineProperty(c,"__esModule",{value:!0}),c.MARKS=void 0;var _;(function(l){l.BOLD="bold",l.ITALIC="italic",l.UNDERLINE="underline",l.CODE="code",l.SUPERSCRIPT="superscript",l.SUBSCRIPT="subscript",l.STRIKETHROUGH="strikethrough"})(_||(c.MARKS=_={}));var S={};(function(l){var b=n&&n.__spreadArray||function(Ee,pe,Te){if(Te||arguments.length===2)for(var _e=0,me=pe.length,z;_e<me;_e++)(z||!(_e in pe))&&(z||(z=Array.prototype.slice.call(pe,0,_e)),z[_e]=pe[_e]);return Ee.concat(z||Array.prototype.slice.call(pe))},G;Object.defineProperty(l,"__esModule",{value:!0}),l.V1_MARKS=l.V1_NODE_TYPES=l.TEXT_CONTAINERS=l.HEADINGS=l.CONTAINERS=l.VOID_BLOCKS=l.TABLE_BLOCKS=l.LIST_ITEM_BLOCKS=l.TOP_LEVEL_BLOCKS=void 0;var p=i,fe=u,ce=c;l.TOP_LEVEL_BLOCKS=[p.BLOCKS.PARAGRAPH,p.BLOCKS.HEADING_1,p.BLOCKS.HEADING_2,p.BLOCKS.HEADING_3,p.BLOCKS.HEADING_4,p.BLOCKS.HEADING_5,p.BLOCKS.HEADING_6,p.BLOCKS.OL_LIST,p.BLOCKS.UL_LIST,p.BLOCKS.HR,p.BLOCKS.QUOTE,p.BLOCKS.EMBEDDED_ENTRY,p.BLOCKS.EMBEDDED_ASSET,p.BLOCKS.EMBEDDED_RESOURCE,p.BLOCKS.TABLE],l.LIST_ITEM_BLOCKS=[p.BLOCKS.PARAGRAPH,p.BLOCKS.HEADING_1,p.BLOCKS.HEADING_2,p.BLOCKS.HEADING_3,p.BLOCKS.HEADING_4,p.BLOCKS.HEADING_5,p.BLOCKS.HEADING_6,p.BLOCKS.OL_LIST,p.BLOCKS.UL_LIST,p.BLOCKS.HR,p.BLOCKS.QUOTE,p.BLOCKS.EMBEDDED_ENTRY,p.BLOCKS.EMBEDDED_ASSET,p.BLOCKS.EMBEDDED_RESOURCE],l.TABLE_BLOCKS=[p.BLOCKS.TABLE,p.BLOCKS.TABLE_ROW,p.BLOCKS.TABLE_CELL,p.BLOCKS.TABLE_HEADER_CELL],l.VOID_BLOCKS=[p.BLOCKS.HR,p.BLOCKS.EMBEDDED_ENTRY,p.BLOCKS.EMBEDDED_ASSET,p.BLOCKS.EMBEDDED_RESOURCE],l.CONTAINERS=(G={},G[p.BLOCKS.OL_LIST]=[p.BLOCKS.LIST_ITEM],G[p.BLOCKS.UL_LIST]=[p.BLOCKS.LIST_ITEM],G[p.BLOCKS.LIST_ITEM]=l.LIST_ITEM_BLOCKS,G[p.BLOCKS.QUOTE]=[p.BLOCKS.PARAGRAPH],G[p.BLOCKS.TABLE]=[p.BLOCKS.TABLE_ROW],G[p.BLOCKS.TABLE_ROW]=[p.BLOCKS.TABLE_CELL,p.BLOCKS.TABLE_HEADER_CELL],G[p.BLOCKS.TABLE_CELL]=[p.BLOCKS.PARAGRAPH,p.BLOCKS.UL_LIST,p.BLOCKS.OL_LIST],G[p.BLOCKS.TABLE_HEADER_CELL]=[p.BLOCKS.PARAGRAPH],G),l.HEADINGS=[p.BLOCKS.HEADING_1,p.BLOCKS.HEADING_2,p.BLOCKS.HEADING_3,p.BLOCKS.HEADING_4,p.BLOCKS.HEADING_5,p.BLOCKS.HEADING_6],l.TEXT_CONTAINERS=b([p.BLOCKS.PARAGRAPH],l.HEADINGS,!0),l.V1_NODE_TYPES=[p.BLOCKS.DOCUMENT,p.BLOCKS.PARAGRAPH,p.BLOCKS.HEADING_1,p.BLOCKS.HEADING_2,p.BLOCKS.HEADING_3,p.BLOCKS.HEADING_4,p.BLOCKS.HEADING_5,p.BLOCKS.HEADING_6,p.BLOCKS.OL_LIST,p.BLOCKS.UL_LIST,p.BLOCKS.LIST_ITEM,p.BLOCKS.HR,p.BLOCKS.QUOTE,p.BLOCKS.EMBEDDED_ENTRY,p.BLOCKS.EMBEDDED_ASSET,fe.INLINES.HYPERLINK,fe.INLINES.ENTRY_HYPERLINK,fe.INLINES.ASSET_HYPERLINK,fe.INLINES.EMBEDDED_ENTRY,"text"],l.V1_MARKS=[ce.MARKS.BOLD,ce.MARKS.CODE,ce.MARKS.ITALIC,ce.MARKS.UNDERLINE]})(S);var E={};Object.defineProperty(E,"__esModule",{value:!0});var k={};Object.defineProperty(k,"__esModule",{value:!0});var R={};Object.defineProperty(R,"__esModule",{value:!0}),R.EMPTY_DOCUMENT=void 0;var ee=i;R.EMPTY_DOCUMENT={nodeType:ee.BLOCKS.DOCUMENT,data:{},content:[{nodeType:ee.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};var te={};Object.defineProperty(te,"__esModule",{value:!0}),te.isInline=P,te.isBlock=g,te.isText=H;var m=i,T=u;function B(l,b){for(var G=0,p=Object.keys(l);G<p.length;G++){var fe=p[G];if(b===l[fe])return!0}return!1}function P(l){return B(T.INLINES,l.nodeType)}function g(l){return B(m.BLOCKS,l.nodeType)}function H(l){return l.nodeType==="text"}function O(l){throw new Error('Could not dynamically require "'+l+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ie={};Object.defineProperty(ie,"__esModule",{value:!0}),ie.getSchemaWithNodeType=Ie;function Ie(l){try{return O("./generated/".concat(l,".json"))}catch{throw new Error('Schema for nodeType "'.concat(l,'" was not found.'))}}(function(l){var b=n&&n.__createBinding||(Object.create?function(z,C,le,Ce){Ce===void 0&&(Ce=le);var xe=Object.getOwnPropertyDescriptor(C,le);(!xe||("get"in xe?!C.__esModule:xe.writable||xe.configurable))&&(xe={enumerable:!0,get:function(){return C[le]}}),Object.defineProperty(z,Ce,xe)}:function(z,C,le,Ce){Ce===void 0&&(Ce=le),z[Ce]=C[le]}),G=n&&n.__setModuleDefault||(Object.create?function(z,C){Object.defineProperty(z,"default",{enumerable:!0,value:C})}:function(z,C){z.default=C}),p=n&&n.__exportStar||function(z,C){for(var le in z)le!=="default"&&!Object.prototype.hasOwnProperty.call(C,le)&&b(C,z,le)},fe=n&&n.__importStar||function(z){if(z&&z.__esModule)return z;var C={};if(z!=null)for(var le in z)le!=="default"&&Object.prototype.hasOwnProperty.call(z,le)&&b(C,z,le);return G(C,z),C};Object.defineProperty(l,"__esModule",{value:!0}),l.getSchemaWithNodeType=l.helpers=l.EMPTY_DOCUMENT=l.MARKS=l.INLINES=l.BLOCKS=void 0;var ce=i;Object.defineProperty(l,"BLOCKS",{enumerable:!0,get:function(){return ce.BLOCKS}});var Ee=u;Object.defineProperty(l,"INLINES",{enumerable:!0,get:function(){return Ee.INLINES}});var pe=c;Object.defineProperty(l,"MARKS",{enumerable:!0,get:function(){return pe.MARKS}}),p(S,l),p(E,l),p(k,l);var Te=R;Object.defineProperty(l,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return Te.EMPTY_DOCUMENT}});var _e=fe(te);l.helpers=_e;var me=ie;Object.defineProperty(l,"getSchemaWithNodeType",{enumerable:!0,get:function(){return me.getSchemaWithNodeType}})})(a);function Oe(l,b){return t.isValidElement(l)&&l.key===null?t.cloneElement(l,{key:b}):l}function je(l,b){return l.map(function(G,p){return Oe(we(G,b),p)})}function we(l,b){var G=b.renderNode,p=b.renderMark,fe=b.renderText,ce=b.preserveWhitespace;if(a.helpers.isText(l)){var Ee=fe?fe(l.value):l.value;if(ce&&!fe){Ee=Ee.replace(/ {2,}/g,function(me){return" ".repeat(me.length)});var pe=Ee.split(`
|
|
31
|
+
`),Te=[];pe.forEach(function(me,z){Te.push(me),z!==pe.length-1&&Te.push(t.createElement("br",null))}),Ee=Te}return l.marks.reduce(function(me,z){return p[z.type]?p[z.type](me):me},Ee)}else{var _e=je(l.content,b);return!l.nodeType||!G[l.nodeType]?t.createElement(t.Fragment,null,_e):G[l.nodeType](l,_e)}}var j,Q,ge=(j={},j[a.BLOCKS.DOCUMENT]=function(l,b){return b},j[a.BLOCKS.PARAGRAPH]=function(l,b){return t.createElement("p",null,b)},j[a.BLOCKS.HEADING_1]=function(l,b){return t.createElement("h1",null,b)},j[a.BLOCKS.HEADING_2]=function(l,b){return t.createElement("h2",null,b)},j[a.BLOCKS.HEADING_3]=function(l,b){return t.createElement("h3",null,b)},j[a.BLOCKS.HEADING_4]=function(l,b){return t.createElement("h4",null,b)},j[a.BLOCKS.HEADING_5]=function(l,b){return t.createElement("h5",null,b)},j[a.BLOCKS.HEADING_6]=function(l,b){return t.createElement("h6",null,b)},j[a.BLOCKS.EMBEDDED_ENTRY]=function(l,b){return t.createElement("div",null,b)},j[a.BLOCKS.EMBEDDED_RESOURCE]=function(l,b){return t.createElement("div",null,b)},j[a.BLOCKS.UL_LIST]=function(l,b){return t.createElement("ul",null,b)},j[a.BLOCKS.OL_LIST]=function(l,b){return t.createElement("ol",null,b)},j[a.BLOCKS.LIST_ITEM]=function(l,b){return t.createElement("li",null,b)},j[a.BLOCKS.QUOTE]=function(l,b){return t.createElement("blockquote",null,b)},j[a.BLOCKS.HR]=function(){return t.createElement("hr",null)},j[a.BLOCKS.TABLE]=function(l,b){return t.createElement("table",null,t.createElement("tbody",null,b))},j[a.BLOCKS.TABLE_ROW]=function(l,b){return t.createElement("tr",null,b)},j[a.BLOCKS.TABLE_HEADER_CELL]=function(l,b){return t.createElement("th",null,b)},j[a.BLOCKS.TABLE_CELL]=function(l,b){return t.createElement("td",null,b)},j[a.INLINES.ASSET_HYPERLINK]=function(l){return Ge(a.INLINES.ASSET_HYPERLINK,l)},j[a.INLINES.ENTRY_HYPERLINK]=function(l){return Ge(a.INLINES.ENTRY_HYPERLINK,l)},j[a.INLINES.RESOURCE_HYPERLINK]=function(l){return Ke(a.INLINES.RESOURCE_HYPERLINK,l)},j[a.INLINES.EMBEDDED_ENTRY]=function(l){return Ge(a.INLINES.EMBEDDED_ENTRY,l)},j[a.INLINES.EMBEDDED_RESOURCE]=function(l,b){return Ke(a.INLINES.EMBEDDED_RESOURCE,l)},j[a.INLINES.HYPERLINK]=function(l,b){return t.createElement("a",{href:l.data.uri},b)},j),$e=(Q={},Q[a.MARKS.BOLD]=function(l){return t.createElement("b",null,l)},Q[a.MARKS.ITALIC]=function(l){return t.createElement("i",null,l)},Q[a.MARKS.UNDERLINE]=function(l){return t.createElement("u",null,l)},Q[a.MARKS.CODE]=function(l){return t.createElement("code",null,l)},Q[a.MARKS.SUPERSCRIPT]=function(l){return t.createElement("sup",null,l)},Q[a.MARKS.SUBSCRIPT]=function(l){return t.createElement("sub",null,l)},Q[a.MARKS.STRIKETHROUGH]=function(l){return t.createElement("s",null,l)},Q);function Ge(l,b){return t.createElement("span",{key:b.data.target.sys.id},"type: ",b.nodeType," id: ",b.data.target.sys.id)}function Ke(l,b){return t.createElement("span",{key:b.data.target.sys.urn},"type: ",b.nodeType," urn: ",b.data.target.sys.urn)}function Xe(l,b){return b===void 0&&(b={}),l?we(l,{renderNode:r(r({},ge),b.renderNode),renderMark:r(r({},$e),b.renderMark),renderText:b.renderText,preserveWhitespace:b.preserveWhitespace}):null}e.documentToReactComponents=Xe})(gn);var He={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.BLOCKS=void 0;var Kn;(function(e){e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell"})(Kn||(Ct.BLOCKS=Kn={}));var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.INLINES=void 0;var Fn;(function(e){e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink"})(Fn||(Ft.INLINES=Fn={}));var hr={};Object.defineProperty(hr,"__esModule",{value:!0});hr.MARKS=void 0;var Hn;(function(e){e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough"})(Hn||(hr.MARKS=Hn={}));var Aa={};(function(e){var t=Se&&Se.__spreadArray||function(s,u,f){if(f||arguments.length===2)for(var c=0,_=u.length,S;c<_;c++)(S||!(c in u))&&(S||(S=Array.prototype.slice.call(u,0,c)),S[c]=u[c]);return s.concat(S||Array.prototype.slice.call(u))},r;Object.defineProperty(e,"__esModule",{value:!0}),e.V1_MARKS=e.V1_NODE_TYPES=e.TEXT_CONTAINERS=e.HEADINGS=e.CONTAINERS=e.VOID_BLOCKS=e.TABLE_BLOCKS=e.LIST_ITEM_BLOCKS=e.TOP_LEVEL_BLOCKS=void 0;var n=Ct,a=Ft,i=hr;e.TOP_LEVEL_BLOCKS=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE,n.BLOCKS.TABLE],e.LIST_ITEM_BLOCKS=[n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],e.TABLE_BLOCKS=[n.BLOCKS.TABLE,n.BLOCKS.TABLE_ROW,n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL],e.VOID_BLOCKS=[n.BLOCKS.HR,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,n.BLOCKS.EMBEDDED_RESOURCE],e.CONTAINERS=(r={},r[n.BLOCKS.OL_LIST]=[n.BLOCKS.LIST_ITEM],r[n.BLOCKS.UL_LIST]=[n.BLOCKS.LIST_ITEM],r[n.BLOCKS.LIST_ITEM]=e.LIST_ITEM_BLOCKS,r[n.BLOCKS.QUOTE]=[n.BLOCKS.PARAGRAPH],r[n.BLOCKS.TABLE]=[n.BLOCKS.TABLE_ROW],r[n.BLOCKS.TABLE_ROW]=[n.BLOCKS.TABLE_CELL,n.BLOCKS.TABLE_HEADER_CELL],r[n.BLOCKS.TABLE_CELL]=[n.BLOCKS.PARAGRAPH,n.BLOCKS.UL_LIST,n.BLOCKS.OL_LIST],r[n.BLOCKS.TABLE_HEADER_CELL]=[n.BLOCKS.PARAGRAPH],r),e.HEADINGS=[n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6],e.TEXT_CONTAINERS=t([n.BLOCKS.PARAGRAPH],e.HEADINGS,!0),e.V1_NODE_TYPES=[n.BLOCKS.DOCUMENT,n.BLOCKS.PARAGRAPH,n.BLOCKS.HEADING_1,n.BLOCKS.HEADING_2,n.BLOCKS.HEADING_3,n.BLOCKS.HEADING_4,n.BLOCKS.HEADING_5,n.BLOCKS.HEADING_6,n.BLOCKS.OL_LIST,n.BLOCKS.UL_LIST,n.BLOCKS.LIST_ITEM,n.BLOCKS.HR,n.BLOCKS.QUOTE,n.BLOCKS.EMBEDDED_ENTRY,n.BLOCKS.EMBEDDED_ASSET,a.INLINES.HYPERLINK,a.INLINES.ENTRY_HYPERLINK,a.INLINES.ASSET_HYPERLINK,a.INLINES.EMBEDDED_ENTRY,"text"],e.V1_MARKS=[i.MARKS.BOLD,i.MARKS.CODE,i.MARKS.ITALIC,i.MARKS.UNDERLINE]})(Aa);var Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});var La={};Object.defineProperty(La,"__esModule",{value:!0});var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.EMPTY_DOCUMENT=void 0;var Vn=Ct;Nr.EMPTY_DOCUMENT={nodeType:Vn.BLOCKS.DOCUMENT,data:{},content:[{nodeType:Vn.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};var pr={};Object.defineProperty(pr,"__esModule",{value:!0});pr.isInline=rs;pr.isBlock=ns;pr.isText=as;var es=Ct,ts=Ft;function Ra(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var a=n[r];if(t===e[a])return!0}return!1}function rs(e){return Ra(ts.INLINES,e.nodeType)}function ns(e){return Ra(es.BLOCKS,e.nodeType)}function as(e){return e.nodeType==="text"}function is(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var En={};Object.defineProperty(En,"__esModule",{value:!0});En.getSchemaWithNodeType=ss;function ss(e){try{return is("./generated/".concat(e,".json"))}catch{throw new Error('Schema for nodeType "'.concat(e,'" was not found.'))}}(function(e){var t=Se&&Se.__createBinding||(Object.create?function(S,E,k,R){R===void 0&&(R=k);var ee=Object.getOwnPropertyDescriptor(E,k);(!ee||("get"in ee?!E.__esModule:ee.writable||ee.configurable))&&(ee={enumerable:!0,get:function(){return E[k]}}),Object.defineProperty(S,R,ee)}:function(S,E,k,R){R===void 0&&(R=k),S[R]=E[k]}),r=Se&&Se.__setModuleDefault||(Object.create?function(S,E){Object.defineProperty(S,"default",{enumerable:!0,value:E})}:function(S,E){S.default=E}),n=Se&&Se.__exportStar||function(S,E){for(var k in S)k!=="default"&&!Object.prototype.hasOwnProperty.call(E,k)&&t(E,S,k)},a=Se&&Se.__importStar||function(S){if(S&&S.__esModule)return S;var E={};if(S!=null)for(var k in S)k!=="default"&&Object.prototype.hasOwnProperty.call(S,k)&&t(E,S,k);return r(E,S),E};Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaWithNodeType=e.helpers=e.EMPTY_DOCUMENT=e.MARKS=e.INLINES=e.BLOCKS=void 0;var i=Ct;Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return i.BLOCKS}});var s=Ft;Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return s.INLINES}});var u=hr;Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return u.MARKS}}),n(Aa,e),n(Ia,e),n(La,e);var f=Nr;Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return f.EMPTY_DOCUMENT}});var c=a(pr);e.helpers=c;var _=En;Object.defineProperty(e,"getSchemaWithNodeType",{enumerable:!0,get:function(){return _.getSchemaWithNodeType}})})(He);const os="_persuasionText_tz1xc_106",us={persuasionText:os},cs=({children:e})=>h.jsx("div",{className:us.persuasionText,children:e}),ls=({block:e})=>{const t={preserveWhitespace:!0,renderMark:{[He.MARKS.BOLD]:n=>h.jsx($.Typography,{type:"body-semibold",children:n})},renderNode:{[He.BLOCKS.PARAGRAPH]:(n,a)=>h.jsx($.Typography,{type:"body-regular",children:a}),[He.BLOCKS.HEADING_1]:(n,a)=>h.jsx($.Typography,{type:"h1",children:a}),[He.BLOCKS.HEADING_3]:(n,a)=>h.jsx($.Typography,{type:"h3",children:a}),[He.BLOCKS.HEADING_4]:(n,a)=>h.jsx($.Typography,{type:"h4",children:a}),[He.BLOCKS.HEADING_2]:(n,a)=>h.jsx($.Typography,{type:"h2",children:a}),[He.BLOCKS.HEADING_5]:(n,a)=>h.jsx($.Typography,{type:"h5",children:a}),[He.BLOCKS.HEADING_6]:(n,a)=>h.jsx($.Typography,{type:"h6",children:a})}},r=()=>{const n=e.fields.text;if(n!==void 0)return gn.documentToReactComponents(n,t)};return h.jsx(cs,{children:r()})},ds=({block:e})=>{const t=()=>{var r;return(r=e.fields.content)==null?void 0:r.map(n=>{switch(n==null?void 0:n.sys.contentType.sys.id){case"componentPersuasionImage":{const a=n;return h.jsx(Zi,{block:a})}case"componentPersuasionText":{const a=n;return h.jsx(ls,{block:a})}case"componentPersuasionList":{const a=n;return h.jsx(Qi,{block:a})}}})};return h.jsx(Fi,{alignment:e.fields.alignment,background:e.fields.background,children:t()})},fs="_persuasionImageSet_1pwtv_106",hs="_persuasionImageSet__images_1pwtv_110",ps="_persuasionImageSet__image_1pwtv_110",_s="_persuasionImageSet__text_1pwtv_125",ms="_persuasionImageSet__body_1pwtv_158",at={persuasionImageSet:fs,persuasionImageSet__images:hs,persuasionImageSet__image:ps,persuasionImageSet__text:_s,"persuasionImageSet--surface":"_persuasionImageSet--surface_1pwtv_133","persuasionImageSet--surfaceContainer":"_persuasionImageSet--surfaceContainer_1pwtv_137","persuasionImageSet--surfaceDim":"_persuasionImageSet--surfaceDim_1pwtv_141","persuasionImageSet--vanilla":"_persuasionImageSet--vanilla_1pwtv_145","persuasionImageSet--primary":"_persuasionImageSet--primary_1pwtv_149",persuasionImageSet__body:ms},ys=({backdrop:e,body:t,headline:r,imageLeft:n,imageRight:a})=>h.jsxs("div",{className:at.persuasionImageSet,children:[h.jsxs("div",{className:st(at.persuasionImageSet__images,at[`persuasionImageSet--${e}`]),children:[h.jsx("img",{className:at.persuasionImageSet__image,src:n.src,alt:n.alt}),h.jsx("img",{className:at.persuasionImageSet__image,src:a.src,alt:a.alt})]}),!!(r||t)&&h.jsxs("div",{className:st(at.persuasionImageSet__text,at[`persuasionImageSet--${e}`]),children:[r&&h.jsx($.Typography,{type:"h2",children:r}),t&&h.jsx($.Typography,{type:"body-large",className:at.persuasionImageSet__body,children:t})]})]}),vs=({block:e})=>{const t=r=>{var n,a;return{alt:(r==null?void 0:r.fields.description)??"",src:(n=r==null?void 0:r.fields.file)!=null&&n.url?`https:${(a=r.fields.file)==null?void 0:a.url}`:""}};return h.jsx(ys,{backdrop:e.fields.backdrop,imageLeft:t(e.fields.imageLeft),imageRight:t(e.fields.imageRight),body:e.fields.body,headline:e.fields.headline})},gs=({dynamicContent:e,onSubmit:t})=>h.jsx(h.Fragment,{children:e&&e.map(r=>{switch(r==null?void 0:r.sys.contentType.sys.id){case"blockSponsorCard":return h.jsx(N.Fragment,{children:h.jsx(Ti,{block:r,onSubmit:t})},r==null?void 0:r.sys.id);case"blockPersuasionImageSet":return h.jsx(vs,{block:r});case"blockPersuasionContent":return h.jsx(ds,{block:r});default:return h.jsx(h.Fragment,{children:"No Block"})}})});var Es=function(t){return bs(t)&&!Ss(t)};function bs(e){return!!e&&typeof e=="object"}function Ss(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Cs(e)}var Ts=typeof Symbol=="function"&&Symbol.for,Os=Ts?Symbol.for("react.element"):60103;function Cs(e){return e.$$typeof===Os}function xs(e){return Array.isArray(e)?[]:{}}function Or(e,t){return t.clone!==!1&&t.isMergeableObject(e)?qt(xs(e),e,t):e}function As(e,t,r){return e.concat(t).map(function(n){return Or(n,r)})}function Is(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=Or(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=Or(t[a],r):n[a]=qt(e[a],t[a],r)}),n}function qt(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||As,r.isMergeableObject=r.isMergeableObject||Es;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Is(e,t,r):Or(t,r)}qt.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return qt(n,a,r)},{})};var on=qt,wa=typeof global=="object"&&global&&global.Object===Object&&global,Ls=typeof self=="object"&&self&&self.Object===Object&&self,Je=wa||Ls||Function("return this")(),ot=Je.Symbol,Na=Object.prototype,Rs=Na.hasOwnProperty,ws=Na.toString,Zt=ot?ot.toStringTag:void 0;function Ns(e){var t=Rs.call(e,Zt),r=e[Zt];try{e[Zt]=void 0;var n=!0}catch{}var a=ws.call(e);return n&&(t?e[Zt]=r:delete e[Zt]),a}var js=Object.prototype,Ds=js.toString;function Ps(e){return Ds.call(e)}var ks="[object Null]",Bs="[object Undefined]",Un=ot?ot.toStringTag:void 0;function xt(e){return e==null?e===void 0?Bs:ks:Un&&Un in Object(e)?Ns(e):Ps(e)}function ja(e,t){return function(r){return e(t(r))}}var bn=ja(Object.getPrototypeOf,Object);function At(e){return e!=null&&typeof e=="object"}var Ms="[object Object]",$s=Function.prototype,Ks=Object.prototype,Da=$s.toString,Fs=Ks.hasOwnProperty,Hs=Da.call(Object);function Zn(e){if(!At(e)||xt(e)!=Ms)return!1;var t=bn(e);if(t===null)return!0;var r=Fs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Da.call(r)==Hs}function Vs(){this.__data__=[],this.size=0}function Pa(e,t){return e===t||e!==e&&t!==t}function jr(e,t){for(var r=e.length;r--;)if(Pa(e[r][0],t))return r;return-1}var Us=Array.prototype,Zs=Us.splice;function Gs(e){var t=this.__data__,r=jr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Zs.call(t,r,1),--this.size,!0}function Ys(e){var t=this.__data__,r=jr(t,e);return r<0?void 0:t[r][1]}function zs(e){return jr(this.__data__,e)>-1}function Ws(e,t){var r=this.__data__,n=jr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rt.prototype.clear=Vs;rt.prototype.delete=Gs;rt.prototype.get=Ys;rt.prototype.has=zs;rt.prototype.set=Ws;function qs(){this.__data__=new rt,this.size=0}function Js(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Xs(e){return this.__data__.get(e)}function Qs(e){return this.__data__.has(e)}function _r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var eo="[object AsyncFunction]",to="[object Function]",ro="[object GeneratorFunction]",no="[object Proxy]";function ka(e){if(!_r(e))return!1;var t=xt(e);return t==to||t==ro||t==eo||t==no}var Wr=Je["__core-js_shared__"],Gn=function(){var e=/[^.]+$/.exec(Wr&&Wr.keys&&Wr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ao(e){return!!Gn&&Gn in e}var io=Function.prototype,so=io.toString;function It(e){if(e!=null){try{return so.call(e)}catch{}try{return e+""}catch{}}return""}var oo=/[\\^$.*+?()[\]{}|]/g,uo=/^\[object .+?Constructor\]$/,co=Function.prototype,lo=Object.prototype,fo=co.toString,ho=lo.hasOwnProperty,po=RegExp("^"+fo.call(ho).replace(oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _o(e){if(!_r(e)||ao(e))return!1;var t=ka(e)?po:uo;return t.test(It(e))}function mo(e,t){return e==null?void 0:e[t]}function Lt(e,t){var r=mo(e,t);return _o(r)?r:void 0}var Jt=Lt(Je,"Map"),Xt=Lt(Object,"create");function yo(){this.__data__=Xt?Xt(null):{},this.size=0}function vo(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var go="__lodash_hash_undefined__",Eo=Object.prototype,bo=Eo.hasOwnProperty;function So(e){var t=this.__data__;if(Xt){var r=t[e];return r===go?void 0:r}return bo.call(t,e)?t[e]:void 0}var To=Object.prototype,Oo=To.hasOwnProperty;function Co(e){var t=this.__data__;return Xt?t[e]!==void 0:Oo.call(t,e)}var xo="__lodash_hash_undefined__";function Ao(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xt&&t===void 0?xo:t,this}function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}St.prototype.clear=yo;St.prototype.delete=vo;St.prototype.get=So;St.prototype.has=Co;St.prototype.set=Ao;function Io(){this.size=0,this.__data__={hash:new St,map:new(Jt||rt),string:new St}}function Lo(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dr(e,t){var r=e.__data__;return Lo(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ro(e){var t=Dr(this,e).delete(e);return this.size-=t?1:0,t}function wo(e){return Dr(this,e).get(e)}function No(e){return Dr(this,e).has(e)}function jo(e,t){var r=Dr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ft(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ft.prototype.clear=Io;ft.prototype.delete=Ro;ft.prototype.get=wo;ft.prototype.has=No;ft.prototype.set=jo;var Do=200;function Po(e,t){var r=this.__data__;if(r instanceof rt){var n=r.__data__;if(!Jt||n.length<Do-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ft(n)}return r.set(e,t),this.size=r.size,this}function Ht(e){var t=this.__data__=new rt(e);this.size=t.size}Ht.prototype.clear=qs;Ht.prototype.delete=Js;Ht.prototype.get=Xs;Ht.prototype.has=Qs;Ht.prototype.set=Po;function ko(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Yn=function(){try{var e=Lt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ba(e,t,r){t=="__proto__"&&Yn?Yn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Bo=Object.prototype,Mo=Bo.hasOwnProperty;function Ma(e,t,r){var n=e[t];(!(Mo.call(e,t)&&Pa(n,r))||r===void 0&&!(t in e))&&Ba(e,t,r)}function Pr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],f=void 0;f===void 0&&(f=e[u]),a?Ba(r,u,f):Ma(r,u,f)}return r}function $o(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Ko="[object Arguments]";function zn(e){return At(e)&&xt(e)==Ko}var $a=Object.prototype,Fo=$a.hasOwnProperty,Ho=$a.propertyIsEnumerable,Vo=zn(function(){return arguments}())?zn:function(e){return At(e)&&Fo.call(e,"callee")&&!Ho.call(e,"callee")},mr=Array.isArray;function Uo(){return!1}var Ka=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wn=Ka&&typeof module=="object"&&module&&!module.nodeType&&module,Zo=Wn&&Wn.exports===Ka,qn=Zo?Je.Buffer:void 0,Go=qn?qn.isBuffer:void 0,Fa=Go||Uo,Yo=9007199254740991,zo=/^(?:0|[1-9]\d*)$/;function Wo(e,t){var r=typeof e;return t=t??Yo,!!t&&(r=="number"||r!="symbol"&&zo.test(e))&&e>-1&&e%1==0&&e<t}var qo=9007199254740991;function Ha(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qo}var Jo="[object Arguments]",Xo="[object Array]",Qo="[object Boolean]",eu="[object Date]",tu="[object Error]",ru="[object Function]",nu="[object Map]",au="[object Number]",iu="[object Object]",su="[object RegExp]",ou="[object Set]",uu="[object String]",cu="[object WeakMap]",lu="[object ArrayBuffer]",du="[object DataView]",fu="[object Float32Array]",hu="[object Float64Array]",pu="[object Int8Array]",_u="[object Int16Array]",mu="[object Int32Array]",yu="[object Uint8Array]",vu="[object Uint8ClampedArray]",gu="[object Uint16Array]",Eu="[object Uint32Array]",ue={};ue[fu]=ue[hu]=ue[pu]=ue[_u]=ue[mu]=ue[yu]=ue[vu]=ue[gu]=ue[Eu]=!0;ue[Jo]=ue[Xo]=ue[lu]=ue[Qo]=ue[du]=ue[eu]=ue[tu]=ue[ru]=ue[nu]=ue[au]=ue[iu]=ue[su]=ue[ou]=ue[uu]=ue[cu]=!1;function bu(e){return At(e)&&Ha(e.length)&&!!ue[xt(e)]}function Sn(e){return function(t){return e(t)}}var Va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zt=Va&&typeof module=="object"&&module&&!module.nodeType&&module,Su=zt&&zt.exports===Va,qr=Su&&wa.process,Bt=function(){try{var e=zt&&zt.require&&zt.require("util").types;return e||qr&&qr.binding&&qr.binding("util")}catch{}}(),Jn=Bt&&Bt.isTypedArray,Tu=Jn?Sn(Jn):bu,Ou=Object.prototype,Cu=Ou.hasOwnProperty;function Ua(e,t){var r=mr(e),n=!r&&Vo(e),a=!r&&!n&&Fa(e),i=!r&&!n&&!a&&Tu(e),s=r||n||a||i,u=s?$o(e.length,String):[],f=u.length;for(var c in e)(t||Cu.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wo(c,f)))&&u.push(c);return u}var xu=Object.prototype;function Tn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||xu;return e===r}var Au=ja(Object.keys,Object),Iu=Object.prototype,Lu=Iu.hasOwnProperty;function Ru(e){if(!Tn(e))return Au(e);var t=[];for(var r in Object(e))Lu.call(e,r)&&r!="constructor"&&t.push(r);return t}function Za(e){return e!=null&&Ha(e.length)&&!ka(e)}function On(e){return Za(e)?Ua(e):Ru(e)}function wu(e,t){return e&&Pr(t,On(t),e)}function Nu(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ju=Object.prototype,Du=ju.hasOwnProperty;function Pu(e){if(!_r(e))return Nu(e);var t=Tn(e),r=[];for(var n in e)n=="constructor"&&(t||!Du.call(e,n))||r.push(n);return r}function Cn(e){return Za(e)?Ua(e,!0):Pu(e)}function ku(e,t){return e&&Pr(t,Cn(t),e)}var Ga=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xn=Ga&&typeof module=="object"&&module&&!module.nodeType&&module,Bu=Xn&&Xn.exports===Ga,Qn=Bu?Je.Buffer:void 0,ea=Qn?Qn.allocUnsafe:void 0;function Mu(e,t){if(t)return e.slice();var r=e.length,n=ea?ea(r):new e.constructor(r);return e.copy(n),n}function Ya(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function $u(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}function za(){return[]}var Ku=Object.prototype,Fu=Ku.propertyIsEnumerable,ta=Object.getOwnPropertySymbols,xn=ta?function(e){return e==null?[]:(e=Object(e),$u(ta(e),function(t){return Fu.call(e,t)}))}:za;function Hu(e,t){return Pr(e,xn(e),t)}function Wa(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Vu=Object.getOwnPropertySymbols,qa=Vu?function(e){for(var t=[];e;)Wa(t,xn(e)),e=bn(e);return t}:za;function Uu(e,t){return Pr(e,qa(e),t)}function Ja(e,t,r){var n=t(e);return mr(e)?n:Wa(n,r(e))}function Zu(e){return Ja(e,On,xn)}function Gu(e){return Ja(e,Cn,qa)}var un=Lt(Je,"DataView"),cn=Lt(Je,"Promise"),ln=Lt(Je,"Set"),dn=Lt(Je,"WeakMap"),ra="[object Map]",Yu="[object Object]",na="[object Promise]",aa="[object Set]",ia="[object WeakMap]",sa="[object DataView]",zu=It(un),Wu=It(Jt),qu=It(cn),Ju=It(ln),Xu=It(dn),et=xt;(un&&et(new un(new ArrayBuffer(1)))!=sa||Jt&&et(new Jt)!=ra||cn&&et(cn.resolve())!=na||ln&&et(new ln)!=aa||dn&&et(new dn)!=ia)&&(et=function(e){var t=xt(e),r=t==Yu?e.constructor:void 0,n=r?It(r):"";if(n)switch(n){case zu:return sa;case Wu:return ra;case qu:return na;case Ju:return aa;case Xu:return ia}return t});var Qu=Object.prototype,ec=Qu.hasOwnProperty;function tc(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ec.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var oa=Je.Uint8Array;function An(e){var t=new e.constructor(e.byteLength);return new oa(t).set(new oa(e)),t}function rc(e,t){var r=t?An(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var nc=/\w*$/;function ac(e){var t=new e.constructor(e.source,nc.exec(e));return t.lastIndex=e.lastIndex,t}var ua=ot?ot.prototype:void 0,ca=ua?ua.valueOf:void 0;function ic(e){return ca?Object(ca.call(e)):{}}function sc(e,t){var r=t?An(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var oc="[object Boolean]",uc="[object Date]",cc="[object Map]",lc="[object Number]",dc="[object RegExp]",fc="[object Set]",hc="[object String]",pc="[object Symbol]",_c="[object ArrayBuffer]",mc="[object DataView]",yc="[object Float32Array]",vc="[object Float64Array]",gc="[object Int8Array]",Ec="[object Int16Array]",bc="[object Int32Array]",Sc="[object Uint8Array]",Tc="[object Uint8ClampedArray]",Oc="[object Uint16Array]",Cc="[object Uint32Array]";function xc(e,t,r){var n=e.constructor;switch(t){case _c:return An(e);case oc:case uc:return new n(+e);case mc:return rc(e,r);case yc:case vc:case gc:case Ec:case bc:case Sc:case Tc:case Oc:case Cc:return sc(e,r);case cc:return new n;case lc:case hc:return new n(e);case dc:return ac(e);case fc:return new n;case pc:return ic(e)}}var la=Object.create,Ac=function(){function e(){}return function(t){if(!_r(t))return{};if(la)return la(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Ic(e){return typeof e.constructor=="function"&&!Tn(e)?Ac(bn(e)):{}}var Lc="[object Map]";function Rc(e){return At(e)&&et(e)==Lc}var da=Bt&&Bt.isMap,wc=da?Sn(da):Rc,Nc="[object Set]";function jc(e){return At(e)&&et(e)==Nc}var fa=Bt&&Bt.isSet,Dc=fa?Sn(fa):jc,Pc=1,kc=2,Bc=4,Xa="[object Arguments]",Mc="[object Array]",$c="[object Boolean]",Kc="[object Date]",Fc="[object Error]",Qa="[object Function]",Hc="[object GeneratorFunction]",Vc="[object Map]",Uc="[object Number]",ei="[object Object]",Zc="[object RegExp]",Gc="[object Set]",Yc="[object String]",zc="[object Symbol]",Wc="[object WeakMap]",qc="[object ArrayBuffer]",Jc="[object DataView]",Xc="[object Float32Array]",Qc="[object Float64Array]",el="[object Int8Array]",tl="[object Int16Array]",rl="[object Int32Array]",nl="[object Uint8Array]",al="[object Uint8ClampedArray]",il="[object Uint16Array]",sl="[object Uint32Array]",oe={};oe[Xa]=oe[Mc]=oe[qc]=oe[Jc]=oe[$c]=oe[Kc]=oe[Xc]=oe[Qc]=oe[el]=oe[tl]=oe[rl]=oe[Vc]=oe[Uc]=oe[ei]=oe[Zc]=oe[Gc]=oe[Yc]=oe[zc]=oe[nl]=oe[al]=oe[il]=oe[sl]=!0;oe[Fc]=oe[Qa]=oe[Wc]=!1;function Wt(e,t,r,n,a,i){var s,u=t&Pc,f=t&kc,c=t&Bc;if(s!==void 0)return s;if(!_r(e))return e;var _=mr(e);if(_){if(s=tc(e),!u)return Ya(e,s)}else{var S=et(e),E=S==Qa||S==Hc;if(Fa(e))return Mu(e,u);if(S==ei||S==Xa||E&&!a){if(s=f||E?{}:Ic(e),!u)return f?Uu(e,ku(s,e)):Hu(e,wu(s,e))}else{if(!oe[S])return a?e:{};s=xc(e,S,u)}}i||(i=new Ht);var k=i.get(e);if(k)return k;i.set(e,s),Dc(e)?e.forEach(function(te){s.add(Wt(te,t,r,te,e,i))}):wc(e)&&e.forEach(function(te,m){s.set(m,Wt(te,t,r,m,e,i))});var R=c?f?Gu:Zu:f?Cn:On,ee=_?void 0:R(e);return ko(ee||e,function(te,m){ee&&(m=te,te=e[m]),Ma(s,m,Wt(te,t,r,m,e,i))}),s}var ol=1,ul=4;function Sr(e){return Wt(e,ol|ul)}var ha=Array.isArray,pa=Object.keys,cl=Object.prototype.hasOwnProperty,ll=typeof Element<"u";function fn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=ha(e),n=ha(t),a,i,s;if(r&&n){if(i=e.length,i!=t.length)return!1;for(a=i;a--!==0;)if(!fn(e[a],t[a]))return!1;return!0}if(r!=n)return!1;var u=e instanceof Date,f=t instanceof Date;if(u!=f)return!1;if(u&&f)return e.getTime()==t.getTime();var c=e instanceof RegExp,_=t instanceof RegExp;if(c!=_)return!1;if(c&&_)return e.toString()==t.toString();var S=pa(e);if(i=S.length,i!==pa(t).length)return!1;for(a=i;a--!==0;)if(!cl.call(t,S[a]))return!1;if(ll&&e instanceof Element&&t instanceof Element)return e===t;for(a=i;a--!==0;)if(s=S[a],!(s==="_owner"&&e.$$typeof)&&!fn(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}var dl=function(t,r){try{return fn(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}};const vt=Bi(dl);var fl=process.env.NODE_ENV==="production";function Dt(e,t){if(!fl){var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var hl=4;function _a(e){return Wt(e,hl)}function ti(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var pl="[object Symbol]";function In(e){return typeof e=="symbol"||At(e)&&xt(e)==pl}var _l="Expected a function";function Ln(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(_l);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var s=e.apply(this,n);return r.cache=i.set(a,s)||i,s};return r.cache=new(Ln.Cache||ft),r}Ln.Cache=ft;var ml=500;function yl(e){var t=Ln(e,function(n){return r.size===ml&&r.clear(),n}),r=t.cache;return t}var vl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gl=/\\(\\)?/g,El=yl(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vl,function(r,n,a,i){t.push(a?i.replace(gl,"$1"):n||r)}),t}),bl=1/0;function Sl(e){if(typeof e=="string"||In(e))return e;var t=e+"";return t=="0"&&1/e==-bl?"-0":t}var Tl=1/0,ma=ot?ot.prototype:void 0,ya=ma?ma.toString:void 0;function ri(e){if(typeof e=="string")return e;if(mr(e))return ti(e,ri)+"";if(In(e))return ya?ya.call(e):"";var t=e+"";return t=="0"&&1/e==-Tl?"-0":t}function Ol(e){return e==null?"":ri(e)}function ni(e){return mr(e)?ti(e,Sl):In(e)?[e]:Ya(El(Ol(e)))}var hn={exports:{}},ne={};/** @license React v16.13.1
|
|
32
32
|
* react-is.production.min.js
|
|
33
33
|
*
|
|
34
34
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var va;function
|
|
38
|
+
*/var va;function Cl(){if(va)return ne;va=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,_=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,ee=e?Symbol.for("react.block"):60121,te=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function B(g){if(typeof g=="object"&&g!==null){var H=g.$$typeof;switch(H){case t:switch(g=g.type,g){case f:case c:case n:case i:case a:case S:return g;default:switch(g=g&&g.$$typeof,g){case u:case _:case R:case k:case s:return g;default:return H}}case r:return H}}}function P(g){return B(g)===c}return ne.AsyncMode=f,ne.ConcurrentMode=c,ne.ContextConsumer=u,ne.ContextProvider=s,ne.Element=t,ne.ForwardRef=_,ne.Fragment=n,ne.Lazy=R,ne.Memo=k,ne.Portal=r,ne.Profiler=i,ne.StrictMode=a,ne.Suspense=S,ne.isAsyncMode=function(g){return P(g)||B(g)===f},ne.isConcurrentMode=P,ne.isContextConsumer=function(g){return B(g)===u},ne.isContextProvider=function(g){return B(g)===s},ne.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},ne.isForwardRef=function(g){return B(g)===_},ne.isFragment=function(g){return B(g)===n},ne.isLazy=function(g){return B(g)===R},ne.isMemo=function(g){return B(g)===k},ne.isPortal=function(g){return B(g)===r},ne.isProfiler=function(g){return B(g)===i},ne.isStrictMode=function(g){return B(g)===a},ne.isSuspense=function(g){return B(g)===S},ne.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===c||g===i||g===a||g===S||g===E||typeof g=="object"&&g!==null&&(g.$$typeof===R||g.$$typeof===k||g.$$typeof===s||g.$$typeof===u||g.$$typeof===_||g.$$typeof===te||g.$$typeof===m||g.$$typeof===T||g.$$typeof===ee)},ne.typeOf=B,ne}var ae={};/** @license React v16.13.1
|
|
39
39
|
* react-is.development.js
|
|
40
40
|
*
|
|
41
41
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var ga;function Cl(){return ga||(ga=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,_=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,ee=e?Symbol.for("react.block"):60121,te=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function B(C){return typeof C=="string"||typeof C=="function"||C===n||C===c||C===i||C===a||C===b||C===E||typeof C=="object"&&C!==null&&(C.$$typeof===R||C.$$typeof===k||C.$$typeof===s||C.$$typeof===u||C.$$typeof===_||C.$$typeof===te||C.$$typeof===m||C.$$typeof===T||C.$$typeof===ee)}function P(C){if(typeof C=="object"&&C!==null){var le=C.$$typeof;switch(le){case t:var Ce=C.type;switch(Ce){case f:case c:case n:case i:case a:case b:return Ce;default:var Ae=Ce&&Ce.$$typeof;switch(Ae){case u:case _:case R:case k:case s:return Ae;default:return le}}case r:return le}}}var g=f,H=c,O=u,ie=s,Ie=t,Oe=_,De=n,we=R,D=k,Q=r,ge=i,$e=a,Ge=b,Ke=!1;function Xe(C){return Ke||(Ke=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),l(C)||P(C)===f}function l(C){return P(C)===c}function S(C){return P(C)===u}function G(C){return P(C)===s}function p(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function fe(C){return P(C)===_}function ce(C){return P(C)===n}function Ee(C){return P(C)===R}function pe(C){return P(C)===k}function Te(C){return P(C)===r}function _e(C){return P(C)===i}function me(C){return P(C)===a}function z(C){return P(C)===b}ae.AsyncMode=g,ae.ConcurrentMode=H,ae.ContextConsumer=O,ae.ContextProvider=ie,ae.Element=Ie,ae.ForwardRef=Oe,ae.Fragment=De,ae.Lazy=we,ae.Memo=D,ae.Portal=Q,ae.Profiler=ge,ae.StrictMode=$e,ae.Suspense=Ge,ae.isAsyncMode=Xe,ae.isConcurrentMode=l,ae.isContextConsumer=S,ae.isContextProvider=G,ae.isElement=p,ae.isForwardRef=fe,ae.isFragment=ce,ae.isLazy=Ee,ae.isMemo=pe,ae.isPortal=Te,ae.isProfiler=_e,ae.isStrictMode=me,ae.isSuspense=z,ae.isValidElementType=B,ae.typeOf=P}()),ae}process.env.NODE_ENV==="production"?hn.exports=Ol():hn.exports=Cl();var Al=hn.exports,ni=Al,xl={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Il={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ai={};ai[ni.ForwardRef]=xl;ai[ni.Memo]=Il;function Se(){return Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(this,arguments)}function ii(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var kr=N.createContext(void 0);kr.displayName="FormikContext";kr.Provider;kr.Consumer;function Ll(){var e=N.useContext(kr);return e||(process.env.NODE_ENV!=="production"?jt(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):jt()),e}var Fe=function(t){return typeof t=="function"},Br=function(t){return t!==null&&typeof t=="object"},Rl=function(t){return String(Math.floor(Number(t)))===t},Jr=function(t){return Object.prototype.toString.call(t)==="[object String]"},Xr=function(t){return Br(t)&&Fe(t.then)};function wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pe(e,t,r,n){n===void 0&&(n=0);for(var a=ri(t);e&&n<a.length;)e=e[a[n++]];return n!==a.length&&!e||e===void 0?r:e}function gt(e,t,r){for(var n=_a(e),a=n,i=0,s=ri(t);i<s.length-1;i++){var u=s[i],f=Pe(e,s.slice(0,i+1));if(f&&(Br(f)||Array.isArray(f)))a=a[u]=_a(f);else{var c=s[i+1];a=a[u]=Rl(c)&&Number(c)>=0?[]:{}}}return(i===0?e:a)[s[i]]===r?e:(r===void 0?delete a[s[i]]:a[s[i]]=r,i===0&&r===void 0&&delete n[s[i]],n)}function si(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,i=Object.keys(e);a<i.length;a++){var s=i[a],u=e[s];Br(u)?r.get(u)||(r.set(u,!0),n[s]=Array.isArray(u)?[]:{},si(u,t,r,n[s])):n[s]=t}return n}function Nl(e,t){switch(t.type){case"SET_VALUES":return Se({},e,{values:t.payload});case"SET_TOUCHED":return Se({},e,{touched:t.payload});case"SET_ERRORS":return vt(e.errors,t.payload)?e:Se({},e,{errors:t.payload});case"SET_STATUS":return Se({},e,{status:t.payload});case"SET_ISSUBMITTING":return Se({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Se({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Se({},e,{values:gt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Se({},e,{touched:gt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Se({},e,{errors:gt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Se({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Se({},e,{touched:si(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Se({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Se({},e,{isSubmitting:!1});default:return e}}var mt={},Tr={};function Dl(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,i=e.validateOnMount,s=i===void 0?!1:i,u=e.isInitialValid,f=e.enableReinitialize,c=f===void 0?!1:f,_=e.onSubmit,b=ii(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),E=Se({validateOnChange:r,validateOnBlur:a,validateOnMount:s,onSubmit:_},b),k=N.useRef(E.initialValues),R=N.useRef(E.initialErrors||mt),ee=N.useRef(E.initialTouched||Tr),te=N.useRef(E.initialStatus),m=N.useRef(!1),T=N.useRef({});process.env.NODE_ENV!=="production"&&N.useEffect(function(){typeof u>"u"||(process.env.NODE_ENV!=="production"?jt(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):jt())},[]),N.useEffect(function(){return m.current=!0,function(){m.current=!1}},[]);var B=N.useState(0),P=B[1],g=N.useRef({values:br(E.initialValues),errors:br(E.initialErrors)||mt,touched:br(E.initialTouched)||Tr,status:br(E.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),H=g.current,O=N.useCallback(function(d){var x=g.current;g.current=Nl(x,d),x!==g.current&&P(function(w){return w+1})},[]),ie=N.useCallback(function(d,x){return new Promise(function(w,M){var Z=E.validate(d,x);Z==null?w(mt):Xr(Z)?Z.then(function(W){w(W||mt)},function(W){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),M(W)}):w(Z)})},[E.validate]),Ie=N.useCallback(function(d,x){var w=E.validationSchema,M=Fe(w)?w(x):w,Z=x&&M.validateAt?M.validateAt(x,d):Pl(d,M);return new Promise(function(W,ye){Z.then(function(){W(mt)},function(je){je.name==="ValidationError"?W(jl(je)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",je),ye(je))})})},[E.validationSchema]),Oe=N.useCallback(function(d,x){return new Promise(function(w){return w(T.current[d].validate(x))})},[]),De=N.useCallback(function(d){var x=Object.keys(T.current).filter(function(M){return Fe(T.current[M].validate)}),w=x.length>0?x.map(function(M){return Oe(M,Pe(d,M))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(w).then(function(M){return M.reduce(function(Z,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(Z=gt(Z,x[ye],W)),Z},{})})},[Oe]),we=N.useCallback(function(d){return Promise.all([De(d),E.validationSchema?Ie(d):{},E.validate?ie(d):{}]).then(function(x){var w=x[0],M=x[1],Z=x[2],W=on.all([w,M,Z],{arrayMerge:kl});return W})},[E.validate,E.validationSchema,De,ie,Ie]),D=Me(function(d){return d===void 0&&(d=H.values),O({type:"SET_ISVALIDATING",payload:!0}),we(d).then(function(x){return m.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:x})),x})});N.useEffect(function(){s&&m.current===!0&&vt(k.current,E.initialValues)&&D(k.current)},[s,D]);var Q=N.useCallback(function(d){var x=d&&d.values?d.values:k.current,w=d&&d.errors?d.errors:R.current?R.current:E.initialErrors||{},M=d&&d.touched?d.touched:ee.current?ee.current:E.initialTouched||{},Z=d&&d.status?d.status:te.current?te.current:E.initialStatus;k.current=x,R.current=w,ee.current=M,te.current=Z;var W=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!d&&!!d.isSubmitting,errors:w,touched:M,status:Z,values:x,isValidating:!!d&&!!d.isValidating,submitCount:d&&d.submitCount&&typeof d.submitCount=="number"?d.submitCount:0}})};if(E.onReset){var ye=E.onReset(H.values,le);Xr(ye)?ye.then(W):W()}else W()},[E.initialErrors,E.initialStatus,E.initialTouched,E.onReset]);N.useEffect(function(){m.current===!0&&!vt(k.current,E.initialValues)&&c&&(k.current=E.initialValues,Q(),s&&D(k.current))},[c,E.initialValues,Q,s,D]),N.useEffect(function(){c&&m.current===!0&&!vt(R.current,E.initialErrors)&&(R.current=E.initialErrors||mt,O({type:"SET_ERRORS",payload:E.initialErrors||mt}))},[c,E.initialErrors]),N.useEffect(function(){c&&m.current===!0&&!vt(ee.current,E.initialTouched)&&(ee.current=E.initialTouched||Tr,O({type:"SET_TOUCHED",payload:E.initialTouched||Tr}))},[c,E.initialTouched]),N.useEffect(function(){c&&m.current===!0&&!vt(te.current,E.initialStatus)&&(te.current=E.initialStatus,O({type:"SET_STATUS",payload:E.initialStatus}))},[c,E.initialStatus,E.initialTouched]);var ge=Me(function(d){if(T.current[d]&&Fe(T.current[d].validate)){var x=Pe(H.values,d),w=T.current[d].validate(x);return Xr(w)?(O({type:"SET_ISVALIDATING",payload:!0}),w.then(function(M){return M}).then(function(M){O({type:"SET_FIELD_ERROR",payload:{field:d,value:M}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:d,value:w}}),Promise.resolve(w))}else if(E.validationSchema)return O({type:"SET_ISVALIDATING",payload:!0}),Ie(H.values,d).then(function(M){return M}).then(function(M){O({type:"SET_FIELD_ERROR",payload:{field:d,value:Pe(M,d)}}),O({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),$e=N.useCallback(function(d,x){var w=x.validate;T.current[d]={validate:w}},[]),Ge=N.useCallback(function(d){delete T.current[d]},[]),Ke=Me(function(d,x){O({type:"SET_TOUCHED",payload:d});var w=x===void 0?a:x;return w?D(H.values):Promise.resolve()}),Xe=N.useCallback(function(d){O({type:"SET_ERRORS",payload:d})},[]),l=Me(function(d,x){var w=Fe(d)?d(H.values):d;O({type:"SET_VALUES",payload:w});var M=x===void 0?r:x;return M?D(w):Promise.resolve()}),S=N.useCallback(function(d,x){O({type:"SET_FIELD_ERROR",payload:{field:d,value:x}})},[]),G=Me(function(d,x,w){O({type:"SET_FIELD_VALUE",payload:{field:d,value:x}});var M=w===void 0?r:w;return M?D(gt(H.values,d,x)):Promise.resolve()}),p=N.useCallback(function(d,x){var w=x,M=d,Z;if(!Jr(d)){d.persist&&d.persist();var W=d.target?d.target:d.currentTarget,ye=W.type,je=W.name,Rt=W.id,pt=W.value,Fr=W.checked,Hr=W.outerHTML,Er=W.options,Vr=W.multiple;w=x||je||Rt,!w&&process.env.NODE_ENV!=="production"&&Ea({htmlContent:Hr,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),M=/number|range/.test(ye)?(Z=parseFloat(pt),isNaN(Z)?"":Z):/checkbox/.test(ye)?Ml(Pe(H.values,w),Fr,pt):Er&&Vr?Bl(Er):pt}w&&G(w,M)},[G,H.values]),fe=Me(function(d){if(Jr(d))return function(x){return p(x,d)};p(d)}),ce=Me(function(d,x,w){x===void 0&&(x=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:d,value:x}});var M=w===void 0?a:w;return M?D(H.values):Promise.resolve()}),Ee=N.useCallback(function(d,x){d.persist&&d.persist();var w=d.target,M=w.name,Z=w.id,W=w.outerHTML,ye=x||M||Z;!ye&&process.env.NODE_ENV!=="production"&&Ea({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),ce(ye,!0)},[ce]),pe=Me(function(d){if(Jr(d))return function(x){return Ee(x,d)};Ee(d)}),Te=N.useCallback(function(d){Fe(d)?O({type:"SET_FORMIK_STATE",payload:d}):O({type:"SET_FORMIK_STATE",payload:function(){return d}})},[]),_e=N.useCallback(function(d){O({type:"SET_STATUS",payload:d})},[]),me=N.useCallback(function(d){O({type:"SET_ISSUBMITTING",payload:d})},[]),z=Me(function(){return O({type:"SUBMIT_ATTEMPT"}),D().then(function(d){var x=d instanceof Error,w=!x&&Object.keys(d).length===0;if(w){var M;try{if(M=Ce(),M===void 0)return}catch(Z){throw Z}return Promise.resolve(M).then(function(Z){return m.current&&O({type:"SUBMIT_SUCCESS"}),Z}).catch(function(Z){if(m.current)throw O({type:"SUBMIT_FAILURE"}),Z})}else if(m.current&&(O({type:"SUBMIT_FAILURE"}),x))throw d})}),C=Me(function(d){if(d&&d.preventDefault&&Fe(d.preventDefault)&&d.preventDefault(),d&&d.stopPropagation&&Fe(d.stopPropagation)&&d.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var x=wl();x!==null&&x instanceof HTMLButtonElement&&(x.attributes&&x.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?jt(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):jt()))}z().catch(function(w){console.warn("Warning: An unhandled error was caught from submitForm()",w)})}),le={resetForm:Q,validateForm:D,validateField:ge,setErrors:Xe,setFieldError:S,setFieldTouched:ce,setFieldValue:G,setStatus:_e,setSubmitting:me,setTouched:Ke,setValues:l,setFormikState:Te,submitForm:z},Ce=Me(function(){return _(H.values,le)}),Ae=Me(function(d){d&&d.preventDefault&&Fe(d.preventDefault)&&d.preventDefault(),d&&d.stopPropagation&&Fe(d.stopPropagation)&&d.stopPropagation(),Q()}),ht=N.useCallback(function(d){return{value:Pe(H.values,d),error:Pe(H.errors,d),touched:!!Pe(H.touched,d),initialValue:Pe(k.current,d),initialTouched:!!Pe(ee.current,d),initialError:Pe(R.current,d)}},[H.errors,H.touched,H.values]),vr=N.useCallback(function(d){return{setValue:function(w,M){return G(d,w,M)},setTouched:function(w,M){return ce(d,w,M)},setError:function(w){return S(d,w)}}},[G,ce,S]),gr=N.useCallback(function(d){var x=Br(d),w=x?d.name:d,M=Pe(H.values,w),Z={name:w,value:M,onChange:fe,onBlur:pe};if(x){var W=d.type,ye=d.value,je=d.as,Rt=d.multiple;W==="checkbox"?ye===void 0?Z.checked=!!M:(Z.checked=!!(Array.isArray(M)&&~M.indexOf(ye)),Z.value=ye):W==="radio"?(Z.checked=M===ye,Z.value=ye):je==="select"&&Rt&&(Z.value=Z.value||[],Z.multiple=!0)}return Z},[pe,fe,H.values]),nt=N.useMemo(function(){return!vt(k.current,H.values)},[k.current,H.values]),$r=N.useMemo(function(){return typeof u<"u"?nt?H.errors&&Object.keys(H.errors).length===0:u!==!1&&Fe(u)?u(E):u:H.errors&&Object.keys(H.errors).length===0},[u,nt,H.errors,E]),Kr=Se({},H,{initialValues:k.current,initialErrors:R.current,initialTouched:ee.current,initialStatus:te.current,handleBlur:pe,handleChange:fe,handleReset:Ae,handleSubmit:C,resetForm:Q,setErrors:Xe,setFormikState:Te,setFieldTouched:ce,setFieldValue:G,setFieldError:S,setStatus:_e,setSubmitting:me,setTouched:Ke,setValues:l,submitForm:z,validateForm:D,validateField:ge,isValid:$r,dirty:nt,unregisterField:Ge,registerField:$e,getFieldProps:gr,getFieldMeta:ht,getFieldHelpers:vr,validateOnBlur:a,validateOnChange:r,validateOnMount:s});return Kr}function Ea(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
|
|
45
|
+
*/var ga;function xl(){return ga||(ga=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,_=e?Symbol.for("react.forward_ref"):60112,S=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,ee=e?Symbol.for("react.block"):60121,te=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function B(C){return typeof C=="string"||typeof C=="function"||C===n||C===c||C===i||C===a||C===S||C===E||typeof C=="object"&&C!==null&&(C.$$typeof===R||C.$$typeof===k||C.$$typeof===s||C.$$typeof===u||C.$$typeof===_||C.$$typeof===te||C.$$typeof===m||C.$$typeof===T||C.$$typeof===ee)}function P(C){if(typeof C=="object"&&C!==null){var le=C.$$typeof;switch(le){case t:var Ce=C.type;switch(Ce){case f:case c:case n:case i:case a:case S:return Ce;default:var xe=Ce&&Ce.$$typeof;switch(xe){case u:case _:case R:case k:case s:return xe;default:return le}}case r:return le}}}var g=f,H=c,O=u,ie=s,Ie=t,Oe=_,je=n,we=R,j=k,Q=r,ge=i,$e=a,Ge=S,Ke=!1;function Xe(C){return Ke||(Ke=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),l(C)||P(C)===f}function l(C){return P(C)===c}function b(C){return P(C)===u}function G(C){return P(C)===s}function p(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function fe(C){return P(C)===_}function ce(C){return P(C)===n}function Ee(C){return P(C)===R}function pe(C){return P(C)===k}function Te(C){return P(C)===r}function _e(C){return P(C)===i}function me(C){return P(C)===a}function z(C){return P(C)===S}ae.AsyncMode=g,ae.ConcurrentMode=H,ae.ContextConsumer=O,ae.ContextProvider=ie,ae.Element=Ie,ae.ForwardRef=Oe,ae.Fragment=je,ae.Lazy=we,ae.Memo=j,ae.Portal=Q,ae.Profiler=ge,ae.StrictMode=$e,ae.Suspense=Ge,ae.isAsyncMode=Xe,ae.isConcurrentMode=l,ae.isContextConsumer=b,ae.isContextProvider=G,ae.isElement=p,ae.isForwardRef=fe,ae.isFragment=ce,ae.isLazy=Ee,ae.isMemo=pe,ae.isPortal=Te,ae.isProfiler=_e,ae.isStrictMode=me,ae.isSuspense=z,ae.isValidElementType=B,ae.typeOf=P}()),ae}process.env.NODE_ENV==="production"?hn.exports=Cl():hn.exports=xl();var Al=hn.exports,ai=Al,Il={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ll={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ii={};ii[ai.ForwardRef]=Il;ii[ai.Memo]=Ll;function be(){return be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},be.apply(this,arguments)}function si(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var kr=N.createContext(void 0);kr.displayName="FormikContext";kr.Provider;kr.Consumer;function Rl(){var e=N.useContext(kr);return e||(process.env.NODE_ENV!=="production"?Dt(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Dt()),e}var Fe=function(t){return typeof t=="function"},Br=function(t){return t!==null&&typeof t=="object"},wl=function(t){return String(Math.floor(Number(t)))===t},Jr=function(t){return Object.prototype.toString.call(t)==="[object String]"},Xr=function(t){return Br(t)&&Fe(t.then)};function Nl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pe(e,t,r,n){n===void 0&&(n=0);for(var a=ni(t);e&&n<a.length;)e=e[a[n++]];return n!==a.length&&!e||e===void 0?r:e}function gt(e,t,r){for(var n=_a(e),a=n,i=0,s=ni(t);i<s.length-1;i++){var u=s[i],f=Pe(e,s.slice(0,i+1));if(f&&(Br(f)||Array.isArray(f)))a=a[u]=_a(f);else{var c=s[i+1];a=a[u]=wl(c)&&Number(c)>=0?[]:{}}}return(i===0?e:a)[s[i]]===r?e:(r===void 0?delete a[s[i]]:a[s[i]]=r,i===0&&r===void 0&&delete n[s[i]],n)}function oi(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,i=Object.keys(e);a<i.length;a++){var s=i[a],u=e[s];Br(u)?r.get(u)||(r.set(u,!0),n[s]=Array.isArray(u)?[]:{},oi(u,t,r,n[s])):n[s]=t}return n}function jl(e,t){switch(t.type){case"SET_VALUES":return be({},e,{values:t.payload});case"SET_TOUCHED":return be({},e,{touched:t.payload});case"SET_ERRORS":return vt(e.errors,t.payload)?e:be({},e,{errors:t.payload});case"SET_STATUS":return be({},e,{status:t.payload});case"SET_ISSUBMITTING":return be({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return be({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return be({},e,{values:gt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return be({},e,{touched:gt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return be({},e,{errors:gt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return be({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return be({},e,{touched:oi(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return be({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return be({},e,{isSubmitting:!1});default:return e}}var mt={},Tr={};function Dl(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,a=n===void 0?!0:n,i=e.validateOnMount,s=i===void 0?!1:i,u=e.isInitialValid,f=e.enableReinitialize,c=f===void 0?!1:f,_=e.onSubmit,S=si(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),E=be({validateOnChange:r,validateOnBlur:a,validateOnMount:s,onSubmit:_},S),k=N.useRef(E.initialValues),R=N.useRef(E.initialErrors||mt),ee=N.useRef(E.initialTouched||Tr),te=N.useRef(E.initialStatus),m=N.useRef(!1),T=N.useRef({});process.env.NODE_ENV!=="production"&&N.useEffect(function(){typeof u>"u"||(process.env.NODE_ENV!=="production"?Dt(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Dt())},[]),N.useEffect(function(){return m.current=!0,function(){m.current=!1}},[]);var B=N.useState(0),P=B[1],g=N.useRef({values:Sr(E.initialValues),errors:Sr(E.initialErrors)||mt,touched:Sr(E.initialTouched)||Tr,status:Sr(E.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),H=g.current,O=N.useCallback(function(d){var A=g.current;g.current=jl(A,d),A!==g.current&&P(function(w){return w+1})},[]),ie=N.useCallback(function(d,A){return new Promise(function(w,M){var Z=E.validate(d,A);Z==null?w(mt):Xr(Z)?Z.then(function(W){w(W||mt)},function(W){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),M(W)}):w(Z)})},[E.validate]),Ie=N.useCallback(function(d,A){var w=E.validationSchema,M=Fe(w)?w(A):w,Z=A&&M.validateAt?M.validateAt(A,d):kl(d,M);return new Promise(function(W,ye){Z.then(function(){W(mt)},function(De){De.name==="ValidationError"?W(Pl(De)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",De),ye(De))})})},[E.validationSchema]),Oe=N.useCallback(function(d,A){return new Promise(function(w){return w(T.current[d].validate(A))})},[]),je=N.useCallback(function(d){var A=Object.keys(T.current).filter(function(M){return Fe(T.current[M].validate)}),w=A.length>0?A.map(function(M){return Oe(M,Pe(d,M))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(w).then(function(M){return M.reduce(function(Z,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(Z=gt(Z,A[ye],W)),Z},{})})},[Oe]),we=N.useCallback(function(d){return Promise.all([je(d),E.validationSchema?Ie(d):{},E.validate?ie(d):{}]).then(function(A){var w=A[0],M=A[1],Z=A[2],W=on.all([w,M,Z],{arrayMerge:Bl});return W})},[E.validate,E.validationSchema,je,ie,Ie]),j=Me(function(d){return d===void 0&&(d=H.values),O({type:"SET_ISVALIDATING",payload:!0}),we(d).then(function(A){return m.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:A})),A})});N.useEffect(function(){s&&m.current===!0&&vt(k.current,E.initialValues)&&j(k.current)},[s,j]);var Q=N.useCallback(function(d){var A=d&&d.values?d.values:k.current,w=d&&d.errors?d.errors:R.current?R.current:E.initialErrors||{},M=d&&d.touched?d.touched:ee.current?ee.current:E.initialTouched||{},Z=d&&d.status?d.status:te.current?te.current:E.initialStatus;k.current=A,R.current=w,ee.current=M,te.current=Z;var W=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!d&&!!d.isSubmitting,errors:w,touched:M,status:Z,values:A,isValidating:!!d&&!!d.isValidating,submitCount:d&&d.submitCount&&typeof d.submitCount=="number"?d.submitCount:0}})};if(E.onReset){var ye=E.onReset(H.values,le);Xr(ye)?ye.then(W):W()}else W()},[E.initialErrors,E.initialStatus,E.initialTouched,E.onReset]);N.useEffect(function(){m.current===!0&&!vt(k.current,E.initialValues)&&c&&(k.current=E.initialValues,Q(),s&&j(k.current))},[c,E.initialValues,Q,s,j]),N.useEffect(function(){c&&m.current===!0&&!vt(R.current,E.initialErrors)&&(R.current=E.initialErrors||mt,O({type:"SET_ERRORS",payload:E.initialErrors||mt}))},[c,E.initialErrors]),N.useEffect(function(){c&&m.current===!0&&!vt(ee.current,E.initialTouched)&&(ee.current=E.initialTouched||Tr,O({type:"SET_TOUCHED",payload:E.initialTouched||Tr}))},[c,E.initialTouched]),N.useEffect(function(){c&&m.current===!0&&!vt(te.current,E.initialStatus)&&(te.current=E.initialStatus,O({type:"SET_STATUS",payload:E.initialStatus}))},[c,E.initialStatus,E.initialTouched]);var ge=Me(function(d){if(T.current[d]&&Fe(T.current[d].validate)){var A=Pe(H.values,d),w=T.current[d].validate(A);return Xr(w)?(O({type:"SET_ISVALIDATING",payload:!0}),w.then(function(M){return M}).then(function(M){O({type:"SET_FIELD_ERROR",payload:{field:d,value:M}}),O({type:"SET_ISVALIDATING",payload:!1})})):(O({type:"SET_FIELD_ERROR",payload:{field:d,value:w}}),Promise.resolve(w))}else if(E.validationSchema)return O({type:"SET_ISVALIDATING",payload:!0}),Ie(H.values,d).then(function(M){return M}).then(function(M){O({type:"SET_FIELD_ERROR",payload:{field:d,value:Pe(M,d)}}),O({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),$e=N.useCallback(function(d,A){var w=A.validate;T.current[d]={validate:w}},[]),Ge=N.useCallback(function(d){delete T.current[d]},[]),Ke=Me(function(d,A){O({type:"SET_TOUCHED",payload:d});var w=A===void 0?a:A;return w?j(H.values):Promise.resolve()}),Xe=N.useCallback(function(d){O({type:"SET_ERRORS",payload:d})},[]),l=Me(function(d,A){var w=Fe(d)?d(H.values):d;O({type:"SET_VALUES",payload:w});var M=A===void 0?r:A;return M?j(w):Promise.resolve()}),b=N.useCallback(function(d,A){O({type:"SET_FIELD_ERROR",payload:{field:d,value:A}})},[]),G=Me(function(d,A,w){O({type:"SET_FIELD_VALUE",payload:{field:d,value:A}});var M=w===void 0?r:w;return M?j(gt(H.values,d,A)):Promise.resolve()}),p=N.useCallback(function(d,A){var w=A,M=d,Z;if(!Jr(d)){d.persist&&d.persist();var W=d.target?d.target:d.currentTarget,ye=W.type,De=W.name,Rt=W.id,pt=W.value,Fr=W.checked,Hr=W.outerHTML,Er=W.options,Vr=W.multiple;w=A||De||Rt,!w&&process.env.NODE_ENV!=="production"&&Ea({htmlContent:Hr,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),M=/number|range/.test(ye)?(Z=parseFloat(pt),isNaN(Z)?"":Z):/checkbox/.test(ye)?$l(Pe(H.values,w),Fr,pt):Er&&Vr?Ml(Er):pt}w&&G(w,M)},[G,H.values]),fe=Me(function(d){if(Jr(d))return function(A){return p(A,d)};p(d)}),ce=Me(function(d,A,w){A===void 0&&(A=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:d,value:A}});var M=w===void 0?a:w;return M?j(H.values):Promise.resolve()}),Ee=N.useCallback(function(d,A){d.persist&&d.persist();var w=d.target,M=w.name,Z=w.id,W=w.outerHTML,ye=A||M||Z;!ye&&process.env.NODE_ENV!=="production"&&Ea({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),ce(ye,!0)},[ce]),pe=Me(function(d){if(Jr(d))return function(A){return Ee(A,d)};Ee(d)}),Te=N.useCallback(function(d){Fe(d)?O({type:"SET_FORMIK_STATE",payload:d}):O({type:"SET_FORMIK_STATE",payload:function(){return d}})},[]),_e=N.useCallback(function(d){O({type:"SET_STATUS",payload:d})},[]),me=N.useCallback(function(d){O({type:"SET_ISSUBMITTING",payload:d})},[]),z=Me(function(){return O({type:"SUBMIT_ATTEMPT"}),j().then(function(d){var A=d instanceof Error,w=!A&&Object.keys(d).length===0;if(w){var M;try{if(M=Ce(),M===void 0)return}catch(Z){throw Z}return Promise.resolve(M).then(function(Z){return m.current&&O({type:"SUBMIT_SUCCESS"}),Z}).catch(function(Z){if(m.current)throw O({type:"SUBMIT_FAILURE"}),Z})}else if(m.current&&(O({type:"SUBMIT_FAILURE"}),A))throw d})}),C=Me(function(d){if(d&&d.preventDefault&&Fe(d.preventDefault)&&d.preventDefault(),d&&d.stopPropagation&&Fe(d.stopPropagation)&&d.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var A=Nl();A!==null&&A instanceof HTMLButtonElement&&(A.attributes&&A.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?Dt(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Dt()))}z().catch(function(w){console.warn("Warning: An unhandled error was caught from submitForm()",w)})}),le={resetForm:Q,validateForm:j,validateField:ge,setErrors:Xe,setFieldError:b,setFieldTouched:ce,setFieldValue:G,setStatus:_e,setSubmitting:me,setTouched:Ke,setValues:l,setFormikState:Te,submitForm:z},Ce=Me(function(){return _(H.values,le)}),xe=Me(function(d){d&&d.preventDefault&&Fe(d.preventDefault)&&d.preventDefault(),d&&d.stopPropagation&&Fe(d.stopPropagation)&&d.stopPropagation(),Q()}),ht=N.useCallback(function(d){return{value:Pe(H.values,d),error:Pe(H.errors,d),touched:!!Pe(H.touched,d),initialValue:Pe(k.current,d),initialTouched:!!Pe(ee.current,d),initialError:Pe(R.current,d)}},[H.errors,H.touched,H.values]),vr=N.useCallback(function(d){return{setValue:function(w,M){return G(d,w,M)},setTouched:function(w,M){return ce(d,w,M)},setError:function(w){return b(d,w)}}},[G,ce,b]),gr=N.useCallback(function(d){var A=Br(d),w=A?d.name:d,M=Pe(H.values,w),Z={name:w,value:M,onChange:fe,onBlur:pe};if(A){var W=d.type,ye=d.value,De=d.as,Rt=d.multiple;W==="checkbox"?ye===void 0?Z.checked=!!M:(Z.checked=!!(Array.isArray(M)&&~M.indexOf(ye)),Z.value=ye):W==="radio"?(Z.checked=M===ye,Z.value=ye):De==="select"&&Rt&&(Z.value=Z.value||[],Z.multiple=!0)}return Z},[pe,fe,H.values]),nt=N.useMemo(function(){return!vt(k.current,H.values)},[k.current,H.values]),$r=N.useMemo(function(){return typeof u<"u"?nt?H.errors&&Object.keys(H.errors).length===0:u!==!1&&Fe(u)?u(E):u:H.errors&&Object.keys(H.errors).length===0},[u,nt,H.errors,E]),Kr=be({},H,{initialValues:k.current,initialErrors:R.current,initialTouched:ee.current,initialStatus:te.current,handleBlur:pe,handleChange:fe,handleReset:xe,handleSubmit:C,resetForm:Q,setErrors:Xe,setFormikState:Te,setFieldTouched:ce,setFieldValue:G,setFieldError:b,setStatus:_e,setSubmitting:me,setTouched:Ke,setValues:l,submitForm:z,validateForm:j,validateField:ge,isValid:$r,dirty:nt,unregisterField:Ge,registerField:$e,getFieldProps:gr,getFieldMeta:ht,getFieldHelpers:vr,validateOnBlur:a,validateOnChange:r,validateOnMount:s});return Kr}function Ea(e){var t=e.htmlContent,r=e.documentationAnchorLink,n=e.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
|
|
46
46
|
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+r+`
|
|
47
|
-
`)}function jl(e){var t={};if(e.inner){if(e.inner.length===0)return gt(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var i;if(r){if(n>=a.length)break;i=a[n++]}else{if(n=a.next(),n.done)break;i=n.value}var s=i;Pe(t,s.path)||(t=gt(t,s.path,s.message))}}return t}function Pl(e,t,r,n){r===void 0&&(r=!1);var a=pn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function pn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||Zn(a)?pn(a):a!==""?a:void 0}):Zn(e[n])?t[n]=pn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function kl(e,t,r){var n=e.slice();return t.forEach(function(i,s){if(typeof n[s]>"u"){var u=r.clone!==!1,f=u&&r.isMergeableObject(i);n[s]=f?on(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[s]=on(e[s],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function Bl(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Ml(e,t,r){if(typeof e=="boolean")return!!t;var n=[],a=!1,i=-1;if(Array.isArray(e))n=e,i=e.indexOf(r),a=i>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,i).concat(n.slice(i+1)):n}var $l=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?N.useLayoutEffect:N.useEffect;function Me(e){var t=N.useRef(e);return $l(function(){t.current=e}),N.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current.apply(void 0,n)},[])}var Kl=N.forwardRef(function(e,t){var r=e.action,n=ii(e,["action"]),a=r??"#",i=Ll(),s=i.handleReset,u=i.handleSubmit;return N.createElement("form",Se({onSubmit:u,ref:t,onReset:s,action:a},n))});Kl.displayName="Form";var X;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const i={};for(const s of a)i[s]=s;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),s={};for(const u of i)s[u]=a[u];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},e.find=(a,i)=>{for(const s of a)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(X||(X={}));var _n;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(_n||(_n={}));const L=X.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),it=e=>{switch(typeof e){case"undefined":return L.undefined;case"string":return L.string;case"number":return isNaN(e)?L.nan:L.number;case"boolean":return L.boolean;case"function":return L.function;case"bigint":return L.bigint;case"symbol":return L.symbol;case"object":return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?L.promise:typeof Map<"u"&&e instanceof Map?L.map:typeof Set<"u"&&e instanceof Set?L.set:typeof Date<"u"&&e instanceof Date?L.date:L.object;default:return L.unknown}},v=X.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Fl=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ke extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},n={_errors:[]},a=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(r(s));else{let u=n,f=0;for(;f<s.path.length;){const c=s.path[f];f===s.path.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(r(s))):u[c]=u[c]||{_errors:[]},u=u[c],f++}}};return a(this),n}static assert(t){if(!(t instanceof ke))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,X.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}ke.create=e=>new ke(e);const Mt=(e,t)=>{let r;switch(e.code){case v.invalid_type:e.received===L.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case v.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,X.jsonStringifyReplacer)}`;break;case v.unrecognized_keys:r=`Unrecognized key(s) in object: ${X.joinValues(e.keys,", ")}`;break;case v.invalid_union:r="Invalid input";break;case v.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${X.joinValues(e.options)}`;break;case v.invalid_enum_value:r=`Invalid enum value. Expected ${X.joinValues(e.options)}, received '${e.received}'`;break;case v.invalid_arguments:r="Invalid function arguments";break;case v.invalid_return_type:r="Invalid function return type";break;case v.invalid_date:r="Invalid date";break;case v.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:X.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case v.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case v.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case v.custom:r="Invalid input";break;case v.invalid_intersection_types:r="Intersection results could not be merged";break;case v.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case v.not_finite:r="Number must be finite";break;default:r=t.defaultError,X.assertNever(e)}return{message:r}};let oi=Mt;function Hl(e){oi=e}function Cr(){return oi}const Ar=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,i=[...r,...a.path||[]],s={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let u="";const f=n.filter(c=>!!c).slice().reverse();for(const c of f)u=c(s,{data:t,defaultError:u}).message;return{...a,path:i,message:u}},Vl=[];function A(e,t){const r=Cr(),n=Ar({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Mt?void 0:Mt].filter(a=>!!a)});e.common.issues.push(n)}class xe{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const a of r){if(a.status==="aborted")return F;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const a of r){const i=await a.key,s=await a.value;n.push({key:i,value:s})}return xe.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const a of r){const{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return F;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:t.value,value:n}}}const F=Object.freeze({status:"aborted"}),Pt=e=>({status:"dirty",value:e}),Re=e=>({status:"valid",value:e}),mn=e=>e.status==="aborted",yn=e=>e.status==="dirty",Qt=e=>e.status==="valid",er=e=>typeof Promise<"u"&&e instanceof Promise;function xr(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function ui(e,t,r,n,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var j;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(j||(j={}));var Gt,Yt;class We{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Sa=(e,t)=>{if(Qt(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ke(e.common.issues);return this._error=r,this._error}}};function U(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,u)=>{var f,c;const{message:_}=e;return s.code==="invalid_enum_value"?{message:_??u.defaultError}:typeof u.data>"u"?{message:(f=_??n)!==null&&f!==void 0?f:u.defaultError}:s.code!=="invalid_type"?{message:u.defaultError}:{message:(c=_??r)!==null&&c!==void 0?c:u.defaultError}},description:a}}class Y{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return it(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:it(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new xe,ctx:{common:t.parent.common,data:t.data,parsedType:it(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(er(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const a={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:it(t)},i=this._parseSync({data:t,path:a.path,parent:a});return Sa(a,i)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:it(t)},a=this._parse({data:t,path:n.path,parent:n}),i=await(er(a)?a:Promise.resolve(a));return Sa(n,i)}refine(t,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,i)=>{const s=t(a),u=()=>i.addIssue({code:v.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(f=>f?!0:(u(),!1)):s?!0:(u(),!1)})}refinement(t,r){return this._refinement((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new Ze({schema:this,typeName:K.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return ze.create(this,this._def)}nullable(){return dt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ue.create(this,this._def)}promise(){return Kt.create(this,this._def)}or(t){return ar.create([this,t],this._def)}and(t){return ir.create(this,t,this._def)}transform(t){return new Ze({...U(this._def),schema:this,typeName:K.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new lr({...U(this._def),innerType:this,defaultValue:r,typeName:K.ZodDefault})}brand(){return new Rn({typeName:K.ZodBranded,type:this,...U(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new dr({...U(this._def),innerType:this,catchValue:r,typeName:K.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return yr.create(this,t)}readonly(){return fr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ul=/^c[^\s-]{8,}$/i,Zl=/^[0-9a-z]+$/,Gl=/^[0-9A-HJKMNP-TV-Z]{26}$/,Yl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,zl=/^[a-z0-9_-]{21}$/i,Wl=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ql=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Jl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Qr;const Xl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ql=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ed=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ci="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",td=new RegExp(`^${ci}$`);function li(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function rd(e){return new RegExp(`^${li(e)}$`)}function di(e){let t=`${ci}T${li(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function nd(e,t){return!!((t==="v4"||!t)&&Xl.test(e)||(t==="v6"||!t)&&Ql.test(e))}class Ve extends Y{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==L.string){const i=this._getOrReturnCtx(t);return A(i,{code:v.invalid_type,expected:L.string,received:i.parsedType}),F}const n=new xe;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),A(a,{code:v.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),A(a,{code:v.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const s=t.data.length>i.value,u=t.data.length<i.value;(s||u)&&(a=this._getOrReturnCtx(t,a),s?A(a,{code:v.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&A(a,{code:v.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")ql.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"email",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")Qr||(Qr=new RegExp(Jl,"u")),Qr.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"emoji",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")Yl.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"uuid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")zl.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"nanoid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")Ul.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"cuid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")Zl.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"cuid2",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")Gl.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"ulid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),A(a,{validation:"url",code:v.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"regex",code:v.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),A(a,{code:v.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),A(a,{code:v.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),A(a,{code:v.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?di(i).test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{code:v.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?td.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{code:v.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?rd(i).test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{code:v.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?Wl.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"duration",code:v.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?nd(t.data,i.version)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"ip",code:v.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?ed.test(t.data)||(a=this._getOrReturnCtx(t,a),A(a,{validation:"base64",code:v.invalid_string,message:i.message}),n.dirty()):X.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:v.invalid_string,...j.errToObj(n)})}_addCheck(t){return new Ve({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...j.errToObj(t)})}url(t){return this._addCheck({kind:"url",...j.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...j.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...j.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...j.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...j.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...j.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...j.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...j.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...j.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...j.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...j.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...j.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...j.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...j.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...j.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...j.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...j.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...j.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...j.errToObj(r)})}nonempty(t){return this.min(1,j.errToObj(t))}trim(){return new Ve({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ve({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ve({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Ve.create=e=>{var t;return new Ve({checks:[],typeName:K.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...U(e)})};function ad(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,i=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}class ut extends Y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==L.number){const i=this._getOrReturnCtx(t);return A(i,{code:v.invalid_type,expected:L.number,received:i.parsedType}),F}let n;const a=new xe;for(const i of this._def.checks)i.kind==="int"?X.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),A(n,{code:v.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),A(n,{code:v.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),A(n,{code:v.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?ad(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),A(n,{code:v.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),A(n,{code:v.not_finite,message:i.message}),a.dirty()):X.assertNever(i);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,j.toString(r))}gt(t,r){return this.setLimit("min",t,!1,j.toString(r))}lte(t,r){return this.setLimit("max",t,!0,j.toString(r))}lt(t,r){return this.setLimit("max",t,!1,j.toString(r))}setLimit(t,r,n,a){return new ut({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:j.toString(a)}]})}_addCheck(t){return new ut({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:j.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:j.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:j.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:j.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:j.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:j.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:j.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:j.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:j.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&X.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}ut.create=e=>new ut({checks:[],typeName:K.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...U(e)});class ct extends Y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==L.bigint){const i=this._getOrReturnCtx(t);return A(i,{code:v.invalid_type,expected:L.bigint,received:i.parsedType}),F}let n;const a=new xe;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),A(n,{code:v.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),A(n,{code:v.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),A(n,{code:v.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):X.assertNever(i);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,j.toString(r))}gt(t,r){return this.setLimit("min",t,!1,j.toString(r))}lte(t,r){return this.setLimit("max",t,!0,j.toString(r))}lt(t,r){return this.setLimit("max",t,!1,j.toString(r))}setLimit(t,r,n,a){return new ct({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:j.toString(a)}]})}_addCheck(t){return new ct({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:j.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:j.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:j.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:j.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:j.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}ct.create=e=>{var t;return new ct({checks:[],typeName:K.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...U(e)})};class tr extends Y{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==L.boolean){const n=this._getOrReturnCtx(t);return A(n,{code:v.invalid_type,expected:L.boolean,received:n.parsedType}),F}return Re(t.data)}}tr.create=e=>new tr({typeName:K.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...U(e)});class Tt extends Y{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==L.date){const i=this._getOrReturnCtx(t);return A(i,{code:v.invalid_type,expected:L.date,received:i.parsedType}),F}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return A(i,{code:v.invalid_date}),F}const n=new xe;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),A(a,{code:v.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),A(a,{code:v.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):X.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Tt({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:j.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:j.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Tt.create=e=>new Tt({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:K.ZodDate,...U(e)});class Ir extends Y{_parse(t){if(this._getType(t)!==L.symbol){const n=this._getOrReturnCtx(t);return A(n,{code:v.invalid_type,expected:L.symbol,received:n.parsedType}),F}return Re(t.data)}}Ir.create=e=>new Ir({typeName:K.ZodSymbol,...U(e)});class rr extends Y{_parse(t){if(this._getType(t)!==L.undefined){const n=this._getOrReturnCtx(t);return A(n,{code:v.invalid_type,expected:L.undefined,received:n.parsedType}),F}return Re(t.data)}}rr.create=e=>new rr({typeName:K.ZodUndefined,...U(e)});class nr extends Y{_parse(t){if(this._getType(t)!==L.null){const n=this._getOrReturnCtx(t);return A(n,{code:v.invalid_type,expected:L.null,received:n.parsedType}),F}return Re(t.data)}}nr.create=e=>new nr({typeName:K.ZodNull,...U(e)});class $t extends Y{constructor(){super(...arguments),this._any=!0}_parse(t){return Re(t.data)}}$t.create=e=>new $t({typeName:K.ZodAny,...U(e)});class Et extends Y{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Re(t.data)}}Et.create=e=>new Et({typeName:K.ZodUnknown,...U(e)});class tt extends Y{_parse(t){const r=this._getOrReturnCtx(t);return A(r,{code:v.invalid_type,expected:L.never,received:r.parsedType}),F}}tt.create=e=>new tt({typeName:K.ZodNever,...U(e)});class Lr extends Y{_parse(t){if(this._getType(t)!==L.undefined){const n=this._getOrReturnCtx(t);return A(n,{code:v.invalid_type,expected:L.void,received:n.parsedType}),F}return Re(t.data)}}Lr.create=e=>new Lr({typeName:K.ZodVoid,...U(e)});class Ue extends Y{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==L.array)return A(r,{code:v.invalid_type,expected:L.array,received:r.parsedType}),F;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,u=r.data.length<a.exactLength.value;(s||u)&&(A(r,{code:s?v.too_big:v.too_small,minimum:u?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(A(r,{code:v.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(A(r,{code:v.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,u)=>a.type._parseAsync(new We(r,s,r.path,u)))).then(s=>xe.mergeArray(n,s));const i=[...r.data].map((s,u)=>a.type._parseSync(new We(r,s,r.path,u)));return xe.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new Ue({...this._def,minLength:{value:t,message:j.toString(r)}})}max(t,r){return new Ue({...this._def,maxLength:{value:t,message:j.toString(r)}})}length(t,r){return new Ue({...this._def,exactLength:{value:t,message:j.toString(r)}})}nonempty(t){return this.min(1,t)}}Ue.create=(e,t)=>new Ue({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...U(t)});function Dt(e){if(e instanceof de){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=ze.create(Dt(n))}return new de({...e._def,shape:()=>t})}else return e instanceof Ue?new Ue({...e._def,type:Dt(e.element)}):e instanceof ze?ze.create(Dt(e.unwrap())):e instanceof dt?dt.create(Dt(e.unwrap())):e instanceof qe?qe.create(e.items.map(t=>Dt(t))):e}class de extends Y{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=X.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==L.object){const c=this._getOrReturnCtx(t);return A(c,{code:v.invalid_type,expected:L.object,received:c.parsedType}),F}const{status:n,ctx:a}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),u=[];if(!(this._def.catchall instanceof tt&&this._def.unknownKeys==="strip"))for(const c in a.data)s.includes(c)||u.push(c);const f=[];for(const c of s){const _=i[c],b=a.data[c];f.push({key:{status:"valid",value:c},value:_._parse(new We(a,b,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof tt){const c=this._def.unknownKeys;if(c==="passthrough")for(const _ of u)f.push({key:{status:"valid",value:_},value:{status:"valid",value:a.data[_]}});else if(c==="strict")u.length>0&&(A(a,{code:v.unrecognized_keys,keys:u}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const _ of u){const b=a.data[_];f.push({key:{status:"valid",value:_},value:c._parse(new We(a,b,a.path,_)),alwaysSet:_ in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const _ of f){const b=await _.key,E=await _.value;c.push({key:b,value:E,alwaysSet:_.alwaysSet})}return c}).then(c=>xe.mergeObjectSync(n,c)):xe.mergeObjectSync(n,f)}get shape(){return this._def.shape()}strict(t){return j.errToObj,new de({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,i,s,u;const f=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,r,n).message)!==null&&s!==void 0?s:n.defaultError;return r.code==="unrecognized_keys"?{message:(u=j.errToObj(t).message)!==null&&u!==void 0?u:f}:{message:f}}}:{}})}strip(){return new de({...this._def,unknownKeys:"strip"})}passthrough(){return new de({...this._def,unknownKeys:"passthrough"})}extend(t){return new de({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new de({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new de({...this._def,catchall:t})}pick(t){const r={};return X.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new de({...this._def,shape:()=>r})}omit(t){const r={};return X.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new de({...this._def,shape:()=>r})}deepPartial(){return Dt(this)}partial(t){const r={};return X.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}),new de({...this._def,shape:()=>r})}required(t){const r={};return X.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof ze;)i=i._def.innerType;r[n]=i}}),new de({...this._def,shape:()=>r})}keyof(){return fi(X.objectKeys(this.shape))}}de.create=(e,t)=>new de({shape:()=>e,unknownKeys:"strip",catchall:tt.create(),typeName:K.ZodObject,...U(t)});de.strictCreate=(e,t)=>new de({shape:()=>e,unknownKeys:"strict",catchall:tt.create(),typeName:K.ZodObject,...U(t)});de.lazycreate=(e,t)=>new de({shape:e,unknownKeys:"strip",catchall:tt.create(),typeName:K.ZodObject,...U(t)});class ar extends Y{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function a(i){for(const u of i)if(u.result.status==="valid")return u.result;for(const u of i)if(u.result.status==="dirty")return r.common.issues.push(...u.ctx.common.issues),u.result;const s=i.map(u=>new ke(u.ctx.common.issues));return A(r,{code:v.invalid_union,unionErrors:s}),F}if(r.common.async)return Promise.all(n.map(async i=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(a);{let i;const s=[];for(const f of n){const c={...r,common:{...r.common,issues:[]},parent:null},_=f._parseSync({data:r.data,path:r.path,parent:c});if(_.status==="valid")return _;_.status==="dirty"&&!i&&(i={result:_,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const u=s.map(f=>new ke(f));return A(r,{code:v.invalid_union,unionErrors:u}),F}}get options(){return this._def.options}}ar.create=(e,t)=>new ar({options:e,typeName:K.ZodUnion,...U(t)});const Qe=e=>e instanceof or?Qe(e.schema):e instanceof Ze?Qe(e.innerType()):e instanceof ur?[e.value]:e instanceof lt?e.options:e instanceof cr?X.objectValues(e.enum):e instanceof lr?Qe(e._def.innerType):e instanceof rr?[void 0]:e instanceof nr?[null]:e instanceof ze?[void 0,...Qe(e.unwrap())]:e instanceof dt?[null,...Qe(e.unwrap())]:e instanceof Rn||e instanceof fr?Qe(e.unwrap()):e instanceof dr?Qe(e._def.innerType):[];class Mr extends Y{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==L.object)return A(r,{code:v.invalid_type,expected:L.object,received:r.parsedType}),F;const n=this.discriminator,a=r.data[n],i=this.optionsMap.get(a);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(A(r,{code:v.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),F)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const a=new Map;for(const i of r){const s=Qe(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const u of s){if(a.has(u))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(u)}`);a.set(u,i)}}return new Mr({typeName:K.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...U(n)})}}function vn(e,t){const r=it(e),n=it(t);if(e===t)return{valid:!0,data:e};if(r===L.object&&n===L.object){const a=X.objectKeys(t),i=X.objectKeys(e).filter(u=>a.indexOf(u)!==-1),s={...e,...t};for(const u of i){const f=vn(e[u],t[u]);if(!f.valid)return{valid:!1};s[u]=f.data}return{valid:!0,data:s}}else if(r===L.array&&n===L.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const s=e[i],u=t[i],f=vn(s,u);if(!f.valid)return{valid:!1};a.push(f.data)}return{valid:!0,data:a}}else return r===L.date&&n===L.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ir extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=(i,s)=>{if(mn(i)||mn(s))return F;const u=vn(i.value,s.value);return u.valid?((yn(i)||yn(s))&&r.dirty(),{status:r.value,value:u.data}):(A(n,{code:v.invalid_intersection_types}),F)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ir.create=(e,t,r)=>new ir({left:e,right:t,typeName:K.ZodIntersection,...U(r)});class qe extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.array)return A(n,{code:v.invalid_type,expected:L.array,received:n.parsedType}),F;if(n.data.length<this._def.items.length)return A(n,{code:v.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),F;!this._def.rest&&n.data.length>this._def.items.length&&(A(n,{code:v.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((s,u)=>{const f=this._def.items[u]||this._def.rest;return f?f._parse(new We(n,s,n.path,u)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>xe.mergeArray(r,s)):xe.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new qe({...this._def,rest:t})}}qe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qe({items:e,typeName:K.ZodTuple,rest:null,...U(t)})};class sr extends Y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.object)return A(n,{code:v.invalid_type,expected:L.object,received:n.parsedType}),F;const a=[],i=this._def.keyType,s=this._def.valueType;for(const u in n.data)a.push({key:i._parse(new We(n,u,n.path,u)),value:s._parse(new We(n,n.data[u],n.path,u)),alwaysSet:u in n.data});return n.common.async?xe.mergeObjectAsync(r,a):xe.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Y?new sr({keyType:t,valueType:r,typeName:K.ZodRecord,...U(n)}):new sr({keyType:Ve.create(),valueType:t,typeName:K.ZodRecord,...U(r)})}}class Rr extends Y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.map)return A(n,{code:v.invalid_type,expected:L.map,received:n.parsedType}),F;const a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([u,f],c)=>({key:a._parse(new We(n,u,n.path,[c,"key"])),value:i._parse(new We(n,f,n.path,[c,"value"]))}));if(n.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const f of s){const c=await f.key,_=await f.value;if(c.status==="aborted"||_.status==="aborted")return F;(c.status==="dirty"||_.status==="dirty")&&r.dirty(),u.set(c.value,_.value)}return{status:r.value,value:u}})}else{const u=new Map;for(const f of s){const c=f.key,_=f.value;if(c.status==="aborted"||_.status==="aborted")return F;(c.status==="dirty"||_.status==="dirty")&&r.dirty(),u.set(c.value,_.value)}return{status:r.value,value:u}}}}Rr.create=(e,t,r)=>new Rr({valueType:t,keyType:e,typeName:K.ZodMap,...U(r)});class Ot extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.set)return A(n,{code:v.invalid_type,expected:L.set,received:n.parsedType}),F;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(A(n,{code:v.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(A(n,{code:v.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const i=this._def.valueType;function s(f){const c=new Set;for(const _ of f){if(_.status==="aborted")return F;_.status==="dirty"&&r.dirty(),c.add(_.value)}return{status:r.value,value:c}}const u=[...n.data.values()].map((f,c)=>i._parse(new We(n,f,n.path,c)));return n.common.async?Promise.all(u).then(f=>s(f)):s(u)}min(t,r){return new Ot({...this._def,minSize:{value:t,message:j.toString(r)}})}max(t,r){return new Ot({...this._def,maxSize:{value:t,message:j.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Ot.create=(e,t)=>new Ot({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...U(t)});class kt extends Y{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==L.function)return A(r,{code:v.invalid_type,expected:L.function,received:r.parsedType}),F;function n(u,f){return Ar({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Cr(),Mt].filter(c=>!!c),issueData:{code:v.invalid_arguments,argumentsError:f}})}function a(u,f){return Ar({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Cr(),Mt].filter(c=>!!c),issueData:{code:v.invalid_return_type,returnTypeError:f}})}const i={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof Kt){const u=this;return Re(async function(...f){const c=new ke([]),_=await u._def.args.parseAsync(f,i).catch(k=>{throw c.addIssue(n(f,k)),c}),b=await Reflect.apply(s,this,_);return await u._def.returns._def.type.parseAsync(b,i).catch(k=>{throw c.addIssue(a(b,k)),c})})}else{const u=this;return Re(function(...f){const c=u._def.args.safeParse(f,i);if(!c.success)throw new ke([n(f,c.error)]);const _=Reflect.apply(s,this,c.data),b=u._def.returns.safeParse(_,i);if(!b.success)throw new ke([a(_,b.error)]);return b.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new kt({...this._def,args:qe.create(t).rest(Et.create())})}returns(t){return new kt({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new kt({args:t||qe.create([]).rest(Et.create()),returns:r||Et.create(),typeName:K.ZodFunction,...U(n)})}}class or extends Y{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}or.create=(e,t)=>new or({getter:e,typeName:K.ZodLazy,...U(t)});class ur extends Y{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return A(r,{received:r.data,code:v.invalid_literal,expected:this._def.value}),F}return{status:"valid",value:t.data}}get value(){return this._def.value}}ur.create=(e,t)=>new ur({value:e,typeName:K.ZodLiteral,...U(t)});function fi(e,t){return new lt({values:e,typeName:K.ZodEnum,...U(t)})}class lt extends Y{constructor(){super(...arguments),Gt.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return A(r,{expected:X.joinValues(n),received:r.parsedType,code:v.invalid_type}),F}if(xr(this,Gt)||ui(this,Gt,new Set(this._def.values)),!xr(this,Gt).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return A(r,{received:r.data,code:v.invalid_enum_value,options:n}),F}return Re(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return lt.create(t,{...this._def,...r})}exclude(t,r=this._def){return lt.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Gt=new WeakMap;lt.create=fi;class cr extends Y{constructor(){super(...arguments),Yt.set(this,void 0)}_parse(t){const r=X.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==L.string&&n.parsedType!==L.number){const a=X.objectValues(r);return A(n,{expected:X.joinValues(a),received:n.parsedType,code:v.invalid_type}),F}if(xr(this,Yt)||ui(this,Yt,new Set(X.getValidEnumValues(this._def.values))),!xr(this,Yt).has(t.data)){const a=X.objectValues(r);return A(n,{received:n.data,code:v.invalid_enum_value,options:a}),F}return Re(t.data)}get enum(){return this._def.values}}Yt=new WeakMap;cr.create=(e,t)=>new cr({values:e,typeName:K.ZodNativeEnum,...U(t)});class Kt extends Y{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==L.promise&&r.common.async===!1)return A(r,{code:v.invalid_type,expected:L.promise,received:r.parsedType}),F;const n=r.parsedType===L.promise?r.data:Promise.resolve(r.data);return Re(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Kt.create=(e,t)=>new Kt({type:e,typeName:K.ZodPromise,...U(t)});class Ze extends Y{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:s=>{A(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const s=a.transform(n.data,i);if(n.common.async)return Promise.resolve(s).then(async u=>{if(r.value==="aborted")return F;const f=await this._def.schema._parseAsync({data:u,path:n.path,parent:n});return f.status==="aborted"?F:f.status==="dirty"||r.value==="dirty"?Pt(f.value):f});{if(r.value==="aborted")return F;const u=this._def.schema._parseSync({data:s,path:n.path,parent:n});return u.status==="aborted"?F:u.status==="dirty"||r.value==="dirty"?Pt(u.value):u}}if(a.type==="refinement"){const s=u=>{const f=a.refinement(u,i);if(n.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(n.common.async===!1){const u=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return u.status==="aborted"?F:(u.status==="dirty"&&r.dirty(),s(u.value),{status:r.value,value:u.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(u=>u.status==="aborted"?F:(u.status==="dirty"&&r.dirty(),s(u.value).then(()=>({status:r.value,value:u.value}))))}if(a.type==="transform")if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Qt(s))return s;const u=a.transform(s.value,i);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:u}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>Qt(s)?Promise.resolve(a.transform(s.value,i)).then(u=>({status:r.value,value:u})):s);X.assertNever(a)}}Ze.create=(e,t,r)=>new Ze({schema:e,typeName:K.ZodEffects,effect:t,...U(r)});Ze.createWithPreprocess=(e,t,r)=>new Ze({schema:t,effect:{type:"preprocess",transform:e},typeName:K.ZodEffects,...U(r)});class ze extends Y{_parse(t){return this._getType(t)===L.undefined?Re(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ze.create=(e,t)=>new ze({innerType:e,typeName:K.ZodOptional,...U(t)});class dt extends Y{_parse(t){return this._getType(t)===L.null?Re(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}dt.create=(e,t)=>new dt({innerType:e,typeName:K.ZodNullable,...U(t)});class lr extends Y{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===L.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}lr.create=(e,t)=>new lr({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...U(t)});class dr extends Y{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return er(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ke(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ke(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}dr.create=(e,t)=>new dr({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...U(t)});class wr extends Y{_parse(t){if(this._getType(t)!==L.nan){const n=this._getOrReturnCtx(t);return A(n,{code:v.invalid_type,expected:L.nan,received:n.parsedType}),F}return{status:"valid",value:t.data}}}wr.create=e=>new wr({typeName:K.ZodNaN,...U(e)});const id=Symbol("zod_brand");class Rn extends Y{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class yr extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?F:i.status==="dirty"?(r.dirty(),Pt(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?F:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new yr({in:t,out:r,typeName:K.ZodPipeline})}}class fr extends Y{_parse(t){const r=this._def.innerType._parse(t),n=a=>(Qt(a)&&(a.value=Object.freeze(a.value)),a);return er(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}fr.create=(e,t)=>new fr({innerType:e,typeName:K.ZodReadonly,...U(t)});function hi(e,t={},r){return e?$t.create().superRefine((n,a)=>{var i,s;if(!e(n)){const u=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,f=(s=(i=u.fatal)!==null&&i!==void 0?i:r)!==null&&s!==void 0?s:!0,c=typeof u=="string"?{message:u}:u;a.addIssue({code:"custom",...c,fatal:f})}}):$t.create()}const sd={object:de.lazycreate};var K;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(K||(K={}));const od=(e,t={message:`Input not instance of ${e.name}`})=>hi(r=>r instanceof e,t),pi=Ve.create,_i=ut.create,ud=wr.create,cd=ct.create,mi=tr.create,ld=Tt.create,dd=Ir.create,fd=rr.create,hd=nr.create,pd=$t.create,_d=Et.create,md=tt.create,yd=Lr.create,vd=Ue.create,gd=de.create,Ed=de.strictCreate,Sd=ar.create,bd=Mr.create,Td=ir.create,Od=qe.create,Cd=sr.create,Ad=Rr.create,xd=Ot.create,Id=kt.create,Ld=or.create,Rd=ur.create,wd=lt.create,Nd=cr.create,Dd=Kt.create,ba=Ze.create,jd=ze.create,Pd=dt.create,kd=Ze.createWithPreprocess,Bd=yr.create,Md=()=>pi().optional(),$d=()=>_i().optional(),Kd=()=>mi().optional(),Fd={string:e=>Ve.create({...e,coerce:!0}),number:e=>ut.create({...e,coerce:!0}),boolean:e=>tr.create({...e,coerce:!0}),bigint:e=>ct.create({...e,coerce:!0}),date:e=>Tt.create({...e,coerce:!0})},Hd=F;var en=Object.freeze({__proto__:null,defaultErrorMap:Mt,setErrorMap:Hl,getErrorMap:Cr,makeIssue:Ar,EMPTY_PATH:Vl,addIssueToContext:A,ParseStatus:xe,INVALID:F,DIRTY:Pt,OK:Re,isAborted:mn,isDirty:yn,isValid:Qt,isAsync:er,get util(){return X},get objectUtil(){return _n},ZodParsedType:L,getParsedType:it,ZodType:Y,datetimeRegex:di,ZodString:Ve,ZodNumber:ut,ZodBigInt:ct,ZodBoolean:tr,ZodDate:Tt,ZodSymbol:Ir,ZodUndefined:rr,ZodNull:nr,ZodAny:$t,ZodUnknown:Et,ZodNever:tt,ZodVoid:Lr,ZodArray:Ue,ZodObject:de,ZodUnion:ar,ZodDiscriminatedUnion:Mr,ZodIntersection:ir,ZodTuple:qe,ZodRecord:sr,ZodMap:Rr,ZodSet:Ot,ZodFunction:kt,ZodLazy:or,ZodLiteral:ur,ZodEnum:lt,ZodNativeEnum:cr,ZodPromise:Kt,ZodEffects:Ze,ZodTransformer:Ze,ZodOptional:ze,ZodNullable:dt,ZodDefault:lr,ZodCatch:dr,ZodNaN:wr,BRAND:id,ZodBranded:Rn,ZodPipeline:yr,ZodReadonly:fr,custom:hi,Schema:Y,ZodSchema:Y,late:sd,get ZodFirstPartyTypeKind(){return K},coerce:Fd,any:pd,array:vd,bigint:cd,boolean:mi,date:ld,discriminatedUnion:bd,effect:ba,enum:wd,function:Id,instanceof:od,intersection:Td,lazy:Ld,literal:Rd,map:Ad,nan:ud,nativeEnum:Nd,never:md,null:hd,nullable:Pd,number:_i,object:gd,oboolean:Kd,onumber:$d,optional:jd,ostring:Md,pipeline:Bd,preprocess:kd,promise:Dd,record:Cd,set:xd,strictObject:Ed,string:pi,symbol:dd,transformer:ba,tuple:Od,undefined:fd,union:Sd,unknown:_d,void:yd,NEVER:Hd,ZodIssueCode:v,quotelessJson:Fl,ZodError:ke}),St={},Vd=be&&be.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),yi=be&&be.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(_){try{c(n.next(_))}catch(b){s(b)}}function f(_){try{c(n.throw(_))}catch(b){s(b)}}function c(_){_.done?i(_.value):a(_.value).then(u,f)}c((n=n.apply(e,t||[])).next())})},vi=be&&be.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(_){return f([c,_])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(_){c=[6,_],a=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(St,"__esModule",{value:!0});St.toFormikValidate=Ei=St.toFormikValidationSchema=St.ValidationError=void 0;var gi=function(e){Vd(t,e);function t(r){var n=e.call(this,r)||this;return n.name="ValidationError",n.inner=[],n}return t}(Error);St.ValidationError=gi;function Ud(e){var t=new gi(e.message);return t.inner=e.errors.map(function(r){return{message:r.message,path:r.path.join(".")}}),t}function Zd(e,t){return{validate:function(r){return yi(this,void 0,void 0,function(){var n;return vi(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.parseAsync(r,t)];case 1:return a.sent(),[3,3];case 2:throw n=a.sent(),Ud(n);case 3:return[2]}})})}}}var Ei=St.toFormikValidationSchema=Zd;function Gd(e){for(var t={},r=0,n=e.errors;r<n.length;r++){var a=n[r];t[a.path.filter(Boolean).join(".")]=a.message}return t}function Yd(e,t){var r=this;return function(n){return yi(r,void 0,void 0,function(){var a;return vi(this,function(i){switch(i.label){case 0:return[4,e.safeParseAsync(n,t)];case 1:return a=i.sent(),a.success?[2]:[2,Gd(a.error)]}})})}}St.toFormikValidate=Yd;const zd="_root_hqa63_106",Wd="_root__body_hqa63_111",qd="_root__form_hqa63_114",tn={root:zd,root__body:Wd,root__form:qd},Ye={amountPicker:"amountPicker",cta:"cta",headline:"headline",legalCheckbox:"legalCheckbox",paymentMethods:"paymentMethods",priceDescription:"priceDescription",selectablePills:"selectablePills",submitButton:"submitButton",switcherToggle:"switcherToggle"},Jd="_root_djxhx_106",Xd={root:Jd},Qd=({errorMessage:e,id:t,onChange:r,value:n})=>h.jsx($.Fieldset,{className:Xd.root,name:t,children:h.jsx($.InputFieldSpecial,{id:t,onChange:r,value:n,errorMessage:e})}),ef="_root_1eoke_106",tf={root:ef},rf=({data:{label:e,url:t}})=>h.jsx($.Fieldset,{className:tf.root,children:h.jsx($.TextButton,{href:t,size:"link",text:e,color:"deepPurple",target:"_blank"})}),nf="_root_11cj3_106",af="_root__blockHeader_11cj3_111",sf="_root__block_11cj3_111",rn={root:nf,root__blockHeader:af,root__block:sf},of=({data:{buttonText:e,content:t,date:r,headline:n,version:a},onClose:i,open:s})=>{const u=()=>{i&&i(!s)};return h.jsx($.Modal,{headerTitle:n,onClose:u,open:s,closeButtonText:e,modalBody:h.jsx($.Card,{children:h.jsx($.CardBody,{className:rn.root,children:h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:rn.root__blockHeader,children:[h.jsx($.Typography,{type:"body-regular",children:a}),h.jsx($.Typography,{type:"body-regular",children:r})]}),h.jsx($.Divider,{}),t.map((f,c)=>h.jsxs(N.Fragment,{children:[h.jsx("div",{className:rn.root__block,children:f}),c!==t.length-1&&h.jsx($.Divider,{})]},`rich_text_el_${c}`))]})})})})},uf="_headline_drix0_106",cf={headline:uf},lf=({data:{headline:e,subheadline:t}})=>h.jsxs($.Fieldset,{className:cf.headline,children:[h.jsx($.Typography,{type:"h1",children:e}),h.jsx($.Typography,{type:"body-regular",children:t})]}),df="_root_1h3u8_106",ff="_root__img_1h3u8_113",Ta={root:df,root__img:ff},Oa=({data:{alt:e,src:t}})=>h.jsx("div",{className:Ta.root,"data-testid":"hero-block",children:h.jsx("img",{className:Ta.root__img,alt:e,src:t})}),hf="_root_17dyb_106",pf="_root__checkbox_17dyb_114",_f="_root__text_17dyb_120",mf="_root__error_17dyb_125",yf="_root__link_17dyb_135",yt={root:hf,root__checkbox:pf,root__text:_f,root__error:mf,"root--error":"_root--error_17dyb_132",root__link:yf},vf=({data:{buttonLabel:e,label:t,layout:r},error:n,onChange:a,onClick:i})=>{const s=()=>{i&&i(!0)};return h.jsxs($.Fieldset,{className:yt.root,children:[r?h.jsx($.CheckboxInput,{onChange:a,id:"legal_checkbox",className:st(yt.root__checkbox,{[yt["root--error"]]:n}),children:h.jsxs($.Typography,{type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",h.jsx($.TextButton,{className:yt.root__link,onClick:s,size:"small",text:e,color:"deepPurple"})]})}):h.jsxs($.Typography,{className:yt.root__text,type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",h.jsx($.TextButton,{className:yt.root__link,onClick:s,size:"small",text:e,color:"deepPurple"})]}),n&&h.jsx($.Typography,{className:yt.root__error,type:"detail-bold",as:"p",children:n})]})},gf="_root_v48kl_106",Ef="_root__item_v48kl_112",Sf="_root__img_v48kl_117",nn={root:gf,root__item:Ef,root__img:Sf},bf=({methods:e})=>h.jsx($.Fieldset,{children:h.jsx("ul",{className:nn.root,children:e.map(({alt:t,id:r,src:n},a)=>h.jsx("li",{className:nn.root__item,children:h.jsx("img",{className:nn.root__img,src:n,alt:t})},`payments_${r}_${a}`))})}),Tf="_root_1u00k_106",Of={root:Tf},Cf=({label:e})=>h.jsx($.Fieldset,{className:Of.root,children:h.jsx($.Typography,{type:"detail-medium",children:e})}),Af="_root_1b4kl_106",xf={root:Af},If=({onChange:e,selectablePills:t,selectedPills:r})=>h.jsx($.Fieldset,{children:h.jsx($.SelectablePillGroup,{className:xf.root,selectedItems:r,items:t,multiselect:!1,onChange:e})}),Lf="_root_ced01_106",Rf="_root__button_ced01_112",wf="_root__security_ced01_115",an={root:Lf,root__button:Rf,root__security:wf},Nf=({data:{label:e,securityText:t},onSubmit:r})=>h.jsxs($.Fieldset,{className:an.root,children:[h.jsx($.ButtonPrimary,{className:an.root__button,fullWidth:!0,size:"large",text:e,onClick:r}),h.jsxs($.Typography,{type:"detail-medium",as:"p",className:st(an.root__security),children:[h.jsx($.Icon,{name:"privacy_lock_closed"}),t]})]}),Df="_root_1okuw_106",jf={root:Df},Pf=({onChange:e,switcherToggle:t,value:r})=>h.jsx($.SwitcherToggle,{className:jf.root,items:t,onChange:e,value:r}),kf=({error:e,errorLegal:t,minValue:r})=>en.object({amount:en.number().min(r,{message:e}).int(),legalCheckbox:en.boolean().refine(n=>n===!0,{message:t})}),Si=({blocks:e,defaultSelectedToggle:t,fieldDescription:r,fieldErrors:n,guidelinesModalData:a,hero:i,layout:s,onSubmit:u})=>{const[f,c]=N.useState(n[t]),_=kf(f),b=()=>{const O=e.selectablePills[t].find(ie=>ie.isSelected);return O?[{id:O.id,value:O.value}]:[]},E=()=>{const O=b()[0];return O?r[O.id]:e.priceDescription.label},R=Dl({initialValues:{amount:(()=>{const O=b()[0];return O?Number(O.value):0})(),fieldDescription:E(),legalCheckbox:!e.legalCheckbox.layout,legalModalOpen:!1,selectedPills:b(),toggle:t},onSubmit:O=>u(O),validateOnBlur:!0,validateOnChange:!0,validationSchema:Ei(_)}),ee=async(O,ie,Ie)=>{const Oe=O||e.selectablePills[ie].filter(D=>D.value===Ie)[0],De=Oe?r[Oe.id]:e.priceDescription.label,we=Oe?[{id:Oe.id,value:Oe.value}]:[];await R.setValues({...R.values,amount:Number(Ie),fieldDescription:De,selectedPills:we},!0)},te=O=>O[R.values.toggle],m=O=>{(async()=>await ee(O[0],R.values.toggle,O[0].value))()},T=(O,ie)=>{(async()=>(await ee(null,R.values.toggle,`${ie}`),await R.setTouched({amount:!0},!0)))()},B=O=>{(async()=>(c(n[O]),await ee(null,O,`${R.values.amount}`),await R.setFieldValue("toggle",O,!0)))()},P=O=>{(async()=>await R.setFieldValue("legalModalOpen",O))()},g=O=>{(async()=>(!R.touched.legalCheckbox&&await R.setFieldTouched("legalCheckbox"),await R.setFieldValue("legalCheckbox",O.target.checked,!0)))()},H=()=>{(async()=>await R.submitForm())()};return h.jsxs($.Card,{borderRadius:!0,className:st(tn.root),allowedElement:Oa,children:[h.jsx(Oa,{data:i}),h.jsxs($.CardBody,{className:tn.root__body,children:[h.jsx($.Form,{className:st(tn.root__form),children:s.map(O=>{const ie=e[O];switch(O){case Ye.headline:return h.jsx(N.Fragment,{children:h.jsx(lf,{data:ie})},O);case Ye.switcherToggle:return h.jsx(N.Fragment,{children:h.jsx(Pf,{switcherToggle:ie,onChange:B,value:R.values.toggle})},O);case Ye.selectablePills:return h.jsx(N.Fragment,{children:h.jsx(If,{onChange:m,selectablePills:te(ie),selectedPills:R.values.selectedPills})},O);case Ye.priceDescription:return h.jsx(N.Fragment,{children:h.jsx(Cf,{label:R.values.fieldDescription})},O);case Ye.amountPicker:return h.jsx(N.Fragment,{children:h.jsx(Qd,{id:"amount",onChange:T,value:R.values.amount,errorMessage:R.touched.amount&&R.errors.amount||""})},O);case Ye.legalCheckbox:return h.jsx(N.Fragment,{children:h.jsx(vf,{data:ie,error:R.touched.legalCheckbox?R.errors.legalCheckbox:"",onClick:P,onChange:g})},O);case Ye.submitButton:return h.jsx(N.Fragment,{children:h.jsx(Nf,{data:ie,onSubmit:H})},O);case Ye.paymentMethods:return h.jsx(N.Fragment,{children:h.jsx(bf,{methods:ie})},O);case Ye.cta:return h.jsx(N.Fragment,{children:h.jsx(rf,{data:ie})},O);default:return null}})}),R.values.legalModalOpen&&h.jsx(of,{data:a,onClose:P,open:R.values.legalModalOpen})]})]})},bi=({block:e,onSubmit:t})=>{const r=()=>{var T;let m=[];return(T=e==null?void 0:e.fields)==null||T.layout.map(B=>m=[...m,B]),m},n=()=>{var m,T,B,P,g,H,O,ie;return{alt:((T=(m=e==null?void 0:e.fields)==null?void 0:m.heroImage)==null?void 0:T.fields.title)||"",src:(g=(P=(B=e==null?void 0:e.fields)==null?void 0:B.heroImage)==null?void 0:P.fields.file)!=null&&g.url?`https:${(ie=(O=(H=e==null?void 0:e.fields)==null?void 0:H.heroImage)==null?void 0:O.fields.file)==null?void 0:ie.url}`:""}},a=()=>{var m,T;return{headline:((m=e.fields.headline)==null?void 0:m.fields.headline)||"",subheadline:((T=e.fields.headline)==null?void 0:T.fields.subheadline)||""}},i=()=>{var m,T;return{label:((m=e.fields.cta)==null?void 0:m.fields.label)||"",url:((T=e.fields.cta)==null?void 0:T.fields.url)||""}},s=()=>{var m,T,B,P;return(T=(m=e==null?void 0:e.fields)==null?void 0:m.paymentMethods)!=null&&T.fields.paymentMethods?(P=(B=e==null?void 0:e.fields)==null?void 0:B.paymentMethods)==null?void 0:P.fields.paymentMethods.map(g=>{var H;return{alt:(g==null?void 0:g.fields.title)||"",id:(g==null?void 0:g.sys.id)||"",src:`https:${(H=g==null?void 0:g.fields.file)==null?void 0:H.url}`}}):[]},u=()=>{var m,T;return{label:((m=e.fields.submitButton)==null?void 0:m.fields.label)||"",securityText:((T=e.fields.submitButton)==null?void 0:T.fields.securityText)||""}},f=()=>{var m,T,B;return{buttonLabel:((m=e.fields.legalCheckbox)==null?void 0:m.fields.legalButtonLabel)||"",label:((T=e.fields.legalCheckbox)==null?void 0:T.fields.label)||"",layout:(B=e.fields.legalCheckbox)==null?void 0:B.fields.layout}},c=()=>{var m;return{label:((m=e.fields.priceDescription)==null?void 0:m.fields.label)||""}},_=()=>{const m={};return e.fields.switcherToggle.map(T=>{var P;const B=`${T==null?void 0:T.fields.id}`;B in m||(m[B]={error:(T==null?void 0:T.fields.errorText)||"",errorLegal:((P=e.fields.legalCheckbox)==null?void 0:P.fields.errorText)||"",minValue:Number(T==null?void 0:T.fields.minValue)||0})}),m},b=()=>e.fields.switcherToggle.map(m=>({id:(m==null?void 0:m.fields.id)||"",label:(m==null?void 0:m.fields.label)||""})),E=()=>{var T;const m=e.fields.switcherToggle.find(B=>B==null?void 0:B.fields.defaultSelected);return m?m.fields.id:((T=e.fields.switcherToggle[0])==null?void 0:T.fields.id)||""},k=()=>{const m={};return e.fields.switcherToggle.map(T=>{T==null||T.fields.selectablePills.map(B=>{const P=`${B==null?void 0:B.fields.chargebeeId}`;P in m||(m[P]=(B==null?void 0:B.fields.description)||"")})}),m},R=()=>{const m={};return e.fields.switcherToggle.map(T=>{const B=`${T==null?void 0:T.fields.id}`;B in m||(m[B]=((T==null?void 0:T.fields.selectablePills)||[]).map(P=>({id:P==null?void 0:P.fields.chargebeeId,isSelected:P==null?void 0:P.fields.defaultSelected,label:(P==null?void 0:P.fields.label)||"",popular:(P==null?void 0:P.fields.popular)||"",style:"filled",value:(P==null?void 0:P.fields.value)||"",variant:"large"})))}),m},ee=()=>{var De,we;const m=(De=e==null?void 0:e.fields.legalCheckbox)==null?void 0:De.fields.guidelinesModal,T=(we=m==null?void 0:m.fields)==null?void 0:we.text;if(!T)return{buttonText:"",content:[[]],date:"",headline:"",version:""};const B={renderNode:{[He.BLOCKS.PARAGRAPH]:(D,Q)=>h.jsx($.Typography,{as:"p",type:"body-regular",children:Q}),[He.BLOCKS.HEADING_2]:(D,Q)=>h.jsx($.Typography,{type:"h2",children:Q})}},P=D=>{const Q=[];let ge=[];return Array.isArray(D)&&D.forEach($e=>{$e.type==="hr"?(ge.length>0&&Q.push(ge),ge=[]):ge.push($e)}),ge.length>0&&Q.push(ge),Q},g=gn.documentToReactComponents(T,B),H=g?P(g):[],O=(m==null?void 0:m.fields.closeModalButtonText)||"",ie=(m==null?void 0:m.fields.headline)||"",Ie=(m==null?void 0:m.fields.data)||"",Oe=(m==null?void 0:m.fields.version)||"";return{buttonText:O,content:H,date:Ie,headline:ie,version:Oe}},te=()=>({cta:i(),headline:a(),legalCheckbox:f(),paymentMethods:s(),priceDescription:c(),selectablePills:R(),submitButton:u(),switcherToggle:b()});return h.jsx(Si,{onSubmit:t,layout:r(),hero:n(),defaultSelectedToggle:E(),blocks:te(),fieldDescription:k(),fieldErrors:_(),guidelinesModalData:ee()})};exports.ContentfulSponsorCardForm=bi;exports.DynamicRenderer=vs;exports.LAYOUT_BLOCK=Ye;exports.SponsorCardForm=Si;
|
|
47
|
+
`)}function Pl(e){var t={};if(e.inner){if(e.inner.length===0)return gt(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var i;if(r){if(n>=a.length)break;i=a[n++]}else{if(n=a.next(),n.done)break;i=n.value}var s=i;Pe(t,s.path)||(t=gt(t,s.path,s.message))}}return t}function kl(e,t,r,n){r===void 0&&(r=!1);var a=pn(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function pn(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||Zn(a)?pn(a):a!==""?a:void 0}):Zn(e[n])?t[n]=pn(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function Bl(e,t,r){var n=e.slice();return t.forEach(function(i,s){if(typeof n[s]>"u"){var u=r.clone!==!1,f=u&&r.isMergeableObject(i);n[s]=f?on(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[s]=on(e[s],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function Ml(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function $l(e,t,r){if(typeof e=="boolean")return!!t;var n=[],a=!1,i=-1;if(Array.isArray(e))n=e,i=e.indexOf(r),a=i>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,i).concat(n.slice(i+1)):n}var Kl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?N.useLayoutEffect:N.useEffect;function Me(e){var t=N.useRef(e);return Kl(function(){t.current=e}),N.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current.apply(void 0,n)},[])}var Fl=N.forwardRef(function(e,t){var r=e.action,n=si(e,["action"]),a=r??"#",i=Rl(),s=i.handleReset,u=i.handleSubmit;return N.createElement("form",be({onSubmit:u,ref:t,onReset:s,action:a},n))});Fl.displayName="Form";var X;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{const i={};for(const s of a)i[s]=s;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),s={};for(const u of i)s[u]=a[u];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},e.find=(a,i)=>{for(const s of a)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=n,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(X||(X={}));var _n;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(_n||(_n={}));const L=X.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),it=e=>{switch(typeof e){case"undefined":return L.undefined;case"string":return L.string;case"number":return isNaN(e)?L.nan:L.number;case"boolean":return L.boolean;case"function":return L.function;case"bigint":return L.bigint;case"symbol":return L.symbol;case"object":return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?L.promise:typeof Map<"u"&&e instanceof Map?L.map:typeof Set<"u"&&e instanceof Set?L.set:typeof Date<"u"&&e instanceof Date?L.date:L.object;default:return L.unknown}},v=X.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Hl=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ke extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},n={_errors:[]},a=i=>{for(const s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(r(s));else{let u=n,f=0;for(;f<s.path.length;){const c=s.path[f];f===s.path.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(r(s))):u[c]=u[c]||{_errors:[]},u=u[c],f++}}};return a(this),n}static assert(t){if(!(t instanceof ke))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,X.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const a of this.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}ke.create=e=>new ke(e);const Mt=(e,t)=>{let r;switch(e.code){case v.invalid_type:e.received===L.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case v.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,X.jsonStringifyReplacer)}`;break;case v.unrecognized_keys:r=`Unrecognized key(s) in object: ${X.joinValues(e.keys,", ")}`;break;case v.invalid_union:r="Invalid input";break;case v.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${X.joinValues(e.options)}`;break;case v.invalid_enum_value:r=`Invalid enum value. Expected ${X.joinValues(e.options)}, received '${e.received}'`;break;case v.invalid_arguments:r="Invalid function arguments";break;case v.invalid_return_type:r="Invalid function return type";break;case v.invalid_date:r="Invalid date";break;case v.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:X.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case v.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case v.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case v.custom:r="Invalid input";break;case v.invalid_intersection_types:r="Intersection results could not be merged";break;case v.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case v.not_finite:r="Number must be finite";break;default:r=t.defaultError,X.assertNever(e)}return{message:r}};let ui=Mt;function Vl(e){ui=e}function Cr(){return ui}const xr=e=>{const{data:t,path:r,errorMaps:n,issueData:a}=e,i=[...r,...a.path||[]],s={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let u="";const f=n.filter(c=>!!c).slice().reverse();for(const c of f)u=c(s,{data:t,defaultError:u}).message;return{...a,path:i,message:u}},Ul=[];function x(e,t){const r=Cr(),n=xr({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Mt?void 0:Mt].filter(a=>!!a)});e.common.issues.push(n)}class Ae{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const a of r){if(a.status==="aborted")return F;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const a of r){const i=await a.key,s=await a.value;n.push({key:i,value:s})}return Ae.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const a of r){const{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return F;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:t.value,value:n}}}const F=Object.freeze({status:"aborted"}),Pt=e=>({status:"dirty",value:e}),Re=e=>({status:"valid",value:e}),mn=e=>e.status==="aborted",yn=e=>e.status==="dirty",Qt=e=>e.status==="valid",er=e=>typeof Promise<"u"&&e instanceof Promise;function Ar(e,t,r,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function ci(e,t,r,n,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var D;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(D||(D={}));var Gt,Yt;class We{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ba=(e,t)=>{if(Qt(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ke(e.common.issues);return this._error=r,this._error}}};function U(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,u)=>{var f,c;const{message:_}=e;return s.code==="invalid_enum_value"?{message:_??u.defaultError}:typeof u.data>"u"?{message:(f=_??n)!==null&&f!==void 0?f:u.defaultError}:s.code!=="invalid_type"?{message:u.defaultError}:{message:(c=_??r)!==null&&c!==void 0?c:u.defaultError}},description:a}}class Y{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return it(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:it(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ae,ctx:{common:t.parent.common,data:t.data,parsedType:it(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(er(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;const a={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:it(t)},i=this._parseSync({data:t,path:a.path,parent:a});return ba(a,i)}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:it(t)},a=this._parse({data:t,path:n.path,parent:n}),i=await(er(a)?a:Promise.resolve(a));return ba(n,i)}refine(t,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,i)=>{const s=t(a),u=()=>i.addIssue({code:v.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(f=>f?!0:(u(),!1)):s?!0:(u(),!1)})}refinement(t,r){return this._refinement((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new Ze({schema:this,typeName:K.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return ze.create(this,this._def)}nullable(){return dt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ue.create(this,this._def)}promise(){return Kt.create(this,this._def)}or(t){return ar.create([this,t],this._def)}and(t){return ir.create(this,t,this._def)}transform(t){return new Ze({...U(this._def),schema:this,typeName:K.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new lr({...U(this._def),innerType:this,defaultValue:r,typeName:K.ZodDefault})}brand(){return new Rn({typeName:K.ZodBranded,type:this,...U(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new dr({...U(this._def),innerType:this,catchValue:r,typeName:K.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return yr.create(this,t)}readonly(){return fr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zl=/^c[^\s-]{8,}$/i,Gl=/^[0-9a-z]+$/,Yl=/^[0-9A-HJKMNP-TV-Z]{26}$/,zl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Wl=/^[a-z0-9_-]{21}$/i,ql=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Jl=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Qr;const Ql=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ed=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,td=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,li="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rd=new RegExp(`^${li}$`);function di(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function nd(e){return new RegExp(`^${di(e)}$`)}function fi(e){let t=`${li}T${di(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function ad(e,t){return!!((t==="v4"||!t)&&Ql.test(e)||(t==="v6"||!t)&&ed.test(e))}class Ve extends Y{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==L.string){const i=this._getOrReturnCtx(t);return x(i,{code:v.invalid_type,expected:L.string,received:i.parsedType}),F}const n=new Ae;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),x(a,{code:v.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),x(a,{code:v.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const s=t.data.length>i.value,u=t.data.length<i.value;(s||u)&&(a=this._getOrReturnCtx(t,a),s?x(a,{code:v.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&x(a,{code:v.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")Jl.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"email",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")Qr||(Qr=new RegExp(Xl,"u")),Qr.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"emoji",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")zl.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"uuid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")Wl.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"nanoid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")Zl.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"cuid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")Gl.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"cuid2",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")Yl.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"ulid",code:v.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),x(a,{validation:"url",code:v.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"regex",code:v.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),x(a,{code:v.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),x(a,{code:v.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),x(a,{code:v.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?fi(i).test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{code:v.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?rd.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{code:v.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?nd(i).test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{code:v.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?ql.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"duration",code:v.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?ad(t.data,i.version)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"ip",code:v.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?td.test(t.data)||(a=this._getOrReturnCtx(t,a),x(a,{validation:"base64",code:v.invalid_string,message:i.message}),n.dirty()):X.assertNever(i);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:v.invalid_string,...D.errToObj(n)})}_addCheck(t){return new Ve({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...D.errToObj(t)})}url(t){return this._addCheck({kind:"url",...D.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...D.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...D.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...D.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...D.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...D.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...D.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...D.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...D.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...D.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...D.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...D.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...D.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...D.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...D.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...D.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...D.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...D.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...D.errToObj(r)})}nonempty(t){return this.min(1,D.errToObj(t))}trim(){return new Ve({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ve({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ve({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Ve.create=e=>{var t;return new Ve({checks:[],typeName:K.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...U(e)})};function id(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,i=parseInt(e.toFixed(a).replace(".","")),s=parseInt(t.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}class ut extends Y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==L.number){const i=this._getOrReturnCtx(t);return x(i,{code:v.invalid_type,expected:L.number,received:i.parsedType}),F}let n;const a=new Ae;for(const i of this._def.checks)i.kind==="int"?X.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),x(n,{code:v.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),x(n,{code:v.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),x(n,{code:v.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?id(t.data,i.value)!==0&&(n=this._getOrReturnCtx(t,n),x(n,{code:v.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),x(n,{code:v.not_finite,message:i.message}),a.dirty()):X.assertNever(i);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,D.toString(r))}gt(t,r){return this.setLimit("min",t,!1,D.toString(r))}lte(t,r){return this.setLimit("max",t,!0,D.toString(r))}lt(t,r){return this.setLimit("max",t,!1,D.toString(r))}setLimit(t,r,n,a){return new ut({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:D.toString(a)}]})}_addCheck(t){return new ut({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:D.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:D.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:D.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:D.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:D.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:D.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:D.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:D.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:D.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&X.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}}ut.create=e=>new ut({checks:[],typeName:K.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...U(e)});class ct extends Y{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==L.bigint){const i=this._getOrReturnCtx(t);return x(i,{code:v.invalid_type,expected:L.bigint,received:i.parsedType}),F}let n;const a=new Ae;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(n=this._getOrReturnCtx(t,n),x(n,{code:v.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(n=this._getOrReturnCtx(t,n),x(n,{code:v.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),x(n,{code:v.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):X.assertNever(i);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,D.toString(r))}gt(t,r){return this.setLimit("min",t,!1,D.toString(r))}lte(t,r){return this.setLimit("max",t,!0,D.toString(r))}lt(t,r){return this.setLimit("max",t,!1,D.toString(r))}setLimit(t,r,n,a){return new ct({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:D.toString(a)}]})}_addCheck(t){return new ct({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:D.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:D.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:D.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:D.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:D.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}ct.create=e=>{var t;return new ct({checks:[],typeName:K.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...U(e)})};class tr extends Y{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==L.boolean){const n=this._getOrReturnCtx(t);return x(n,{code:v.invalid_type,expected:L.boolean,received:n.parsedType}),F}return Re(t.data)}}tr.create=e=>new tr({typeName:K.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...U(e)});class Tt extends Y{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==L.date){const i=this._getOrReturnCtx(t);return x(i,{code:v.invalid_type,expected:L.date,received:i.parsedType}),F}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return x(i,{code:v.invalid_date}),F}const n=new Ae;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),x(a,{code:v.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),x(a,{code:v.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):X.assertNever(i);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Tt({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:D.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:D.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Tt.create=e=>new Tt({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:K.ZodDate,...U(e)});class Ir extends Y{_parse(t){if(this._getType(t)!==L.symbol){const n=this._getOrReturnCtx(t);return x(n,{code:v.invalid_type,expected:L.symbol,received:n.parsedType}),F}return Re(t.data)}}Ir.create=e=>new Ir({typeName:K.ZodSymbol,...U(e)});class rr extends Y{_parse(t){if(this._getType(t)!==L.undefined){const n=this._getOrReturnCtx(t);return x(n,{code:v.invalid_type,expected:L.undefined,received:n.parsedType}),F}return Re(t.data)}}rr.create=e=>new rr({typeName:K.ZodUndefined,...U(e)});class nr extends Y{_parse(t){if(this._getType(t)!==L.null){const n=this._getOrReturnCtx(t);return x(n,{code:v.invalid_type,expected:L.null,received:n.parsedType}),F}return Re(t.data)}}nr.create=e=>new nr({typeName:K.ZodNull,...U(e)});class $t extends Y{constructor(){super(...arguments),this._any=!0}_parse(t){return Re(t.data)}}$t.create=e=>new $t({typeName:K.ZodAny,...U(e)});class Et extends Y{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Re(t.data)}}Et.create=e=>new Et({typeName:K.ZodUnknown,...U(e)});class tt extends Y{_parse(t){const r=this._getOrReturnCtx(t);return x(r,{code:v.invalid_type,expected:L.never,received:r.parsedType}),F}}tt.create=e=>new tt({typeName:K.ZodNever,...U(e)});class Lr extends Y{_parse(t){if(this._getType(t)!==L.undefined){const n=this._getOrReturnCtx(t);return x(n,{code:v.invalid_type,expected:L.void,received:n.parsedType}),F}return Re(t.data)}}Lr.create=e=>new Lr({typeName:K.ZodVoid,...U(e)});class Ue extends Y{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==L.array)return x(r,{code:v.invalid_type,expected:L.array,received:r.parsedType}),F;if(a.exactLength!==null){const s=r.data.length>a.exactLength.value,u=r.data.length<a.exactLength.value;(s||u)&&(x(r,{code:s?v.too_big:v.too_small,minimum:u?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(x(r,{code:v.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(x(r,{code:v.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((s,u)=>a.type._parseAsync(new We(r,s,r.path,u)))).then(s=>Ae.mergeArray(n,s));const i=[...r.data].map((s,u)=>a.type._parseSync(new We(r,s,r.path,u)));return Ae.mergeArray(n,i)}get element(){return this._def.type}min(t,r){return new Ue({...this._def,minLength:{value:t,message:D.toString(r)}})}max(t,r){return new Ue({...this._def,maxLength:{value:t,message:D.toString(r)}})}length(t,r){return new Ue({...this._def,exactLength:{value:t,message:D.toString(r)}})}nonempty(t){return this.min(1,t)}}Ue.create=(e,t)=>new Ue({type:e,minLength:null,maxLength:null,exactLength:null,typeName:K.ZodArray,...U(t)});function jt(e){if(e instanceof de){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=ze.create(jt(n))}return new de({...e._def,shape:()=>t})}else return e instanceof Ue?new Ue({...e._def,type:jt(e.element)}):e instanceof ze?ze.create(jt(e.unwrap())):e instanceof dt?dt.create(jt(e.unwrap())):e instanceof qe?qe.create(e.items.map(t=>jt(t))):e}class de extends Y{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=X.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==L.object){const c=this._getOrReturnCtx(t);return x(c,{code:v.invalid_type,expected:L.object,received:c.parsedType}),F}const{status:n,ctx:a}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),u=[];if(!(this._def.catchall instanceof tt&&this._def.unknownKeys==="strip"))for(const c in a.data)s.includes(c)||u.push(c);const f=[];for(const c of s){const _=i[c],S=a.data[c];f.push({key:{status:"valid",value:c},value:_._parse(new We(a,S,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof tt){const c=this._def.unknownKeys;if(c==="passthrough")for(const _ of u)f.push({key:{status:"valid",value:_},value:{status:"valid",value:a.data[_]}});else if(c==="strict")u.length>0&&(x(a,{code:v.unrecognized_keys,keys:u}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const _ of u){const S=a.data[_];f.push({key:{status:"valid",value:_},value:c._parse(new We(a,S,a.path,_)),alwaysSet:_ in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const _ of f){const S=await _.key,E=await _.value;c.push({key:S,value:E,alwaysSet:_.alwaysSet})}return c}).then(c=>Ae.mergeObjectSync(n,c)):Ae.mergeObjectSync(n,f)}get shape(){return this._def.shape()}strict(t){return D.errToObj,new de({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,i,s,u;const f=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,r,n).message)!==null&&s!==void 0?s:n.defaultError;return r.code==="unrecognized_keys"?{message:(u=D.errToObj(t).message)!==null&&u!==void 0?u:f}:{message:f}}}:{}})}strip(){return new de({...this._def,unknownKeys:"strip"})}passthrough(){return new de({...this._def,unknownKeys:"passthrough"})}extend(t){return new de({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new de({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:K.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new de({...this._def,catchall:t})}pick(t){const r={};return X.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new de({...this._def,shape:()=>r})}omit(t){const r={};return X.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n])}),new de({...this._def,shape:()=>r})}deepPartial(){return jt(this)}partial(t){const r={};return X.objectKeys(this.shape).forEach(n=>{const a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}),new de({...this._def,shape:()=>r})}required(t){const r={};return X.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof ze;)i=i._def.innerType;r[n]=i}}),new de({...this._def,shape:()=>r})}keyof(){return hi(X.objectKeys(this.shape))}}de.create=(e,t)=>new de({shape:()=>e,unknownKeys:"strip",catchall:tt.create(),typeName:K.ZodObject,...U(t)});de.strictCreate=(e,t)=>new de({shape:()=>e,unknownKeys:"strict",catchall:tt.create(),typeName:K.ZodObject,...U(t)});de.lazycreate=(e,t)=>new de({shape:e,unknownKeys:"strip",catchall:tt.create(),typeName:K.ZodObject,...U(t)});class ar extends Y{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function a(i){for(const u of i)if(u.result.status==="valid")return u.result;for(const u of i)if(u.result.status==="dirty")return r.common.issues.push(...u.ctx.common.issues),u.result;const s=i.map(u=>new ke(u.ctx.common.issues));return x(r,{code:v.invalid_union,unionErrors:s}),F}if(r.common.async)return Promise.all(n.map(async i=>{const s={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:s}),ctx:s}})).then(a);{let i;const s=[];for(const f of n){const c={...r,common:{...r.common,issues:[]},parent:null},_=f._parseSync({data:r.data,path:r.path,parent:c});if(_.status==="valid")return _;_.status==="dirty"&&!i&&(i={result:_,ctx:c}),c.common.issues.length&&s.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const u=s.map(f=>new ke(f));return x(r,{code:v.invalid_union,unionErrors:u}),F}}get options(){return this._def.options}}ar.create=(e,t)=>new ar({options:e,typeName:K.ZodUnion,...U(t)});const Qe=e=>e instanceof or?Qe(e.schema):e instanceof Ze?Qe(e.innerType()):e instanceof ur?[e.value]:e instanceof lt?e.options:e instanceof cr?X.objectValues(e.enum):e instanceof lr?Qe(e._def.innerType):e instanceof rr?[void 0]:e instanceof nr?[null]:e instanceof ze?[void 0,...Qe(e.unwrap())]:e instanceof dt?[null,...Qe(e.unwrap())]:e instanceof Rn||e instanceof fr?Qe(e.unwrap()):e instanceof dr?Qe(e._def.innerType):[];class Mr extends Y{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==L.object)return x(r,{code:v.invalid_type,expected:L.object,received:r.parsedType}),F;const n=this.discriminator,a=r.data[n],i=this.optionsMap.get(a);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(x(r,{code:v.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),F)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){const a=new Map;for(const i of r){const s=Qe(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const u of s){if(a.has(u))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(u)}`);a.set(u,i)}}return new Mr({typeName:K.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,...U(n)})}}function vn(e,t){const r=it(e),n=it(t);if(e===t)return{valid:!0,data:e};if(r===L.object&&n===L.object){const a=X.objectKeys(t),i=X.objectKeys(e).filter(u=>a.indexOf(u)!==-1),s={...e,...t};for(const u of i){const f=vn(e[u],t[u]);if(!f.valid)return{valid:!1};s[u]=f.data}return{valid:!0,data:s}}else if(r===L.array&&n===L.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const s=e[i],u=t[i],f=vn(s,u);if(!f.valid)return{valid:!1};a.push(f.data)}return{valid:!0,data:a}}else return r===L.date&&n===L.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ir extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=(i,s)=>{if(mn(i)||mn(s))return F;const u=vn(i.value,s.value);return u.valid?((yn(i)||yn(s))&&r.dirty(),{status:r.value,value:u.data}):(x(n,{code:v.invalid_intersection_types}),F)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ir.create=(e,t,r)=>new ir({left:e,right:t,typeName:K.ZodIntersection,...U(r)});class qe extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.array)return x(n,{code:v.invalid_type,expected:L.array,received:n.parsedType}),F;if(n.data.length<this._def.items.length)return x(n,{code:v.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),F;!this._def.rest&&n.data.length>this._def.items.length&&(x(n,{code:v.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((s,u)=>{const f=this._def.items[u]||this._def.rest;return f?f._parse(new We(n,s,n.path,u)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>Ae.mergeArray(r,s)):Ae.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new qe({...this._def,rest:t})}}qe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qe({items:e,typeName:K.ZodTuple,rest:null,...U(t)})};class sr extends Y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.object)return x(n,{code:v.invalid_type,expected:L.object,received:n.parsedType}),F;const a=[],i=this._def.keyType,s=this._def.valueType;for(const u in n.data)a.push({key:i._parse(new We(n,u,n.path,u)),value:s._parse(new We(n,n.data[u],n.path,u)),alwaysSet:u in n.data});return n.common.async?Ae.mergeObjectAsync(r,a):Ae.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof Y?new sr({keyType:t,valueType:r,typeName:K.ZodRecord,...U(n)}):new sr({keyType:Ve.create(),valueType:t,typeName:K.ZodRecord,...U(r)})}}class Rr extends Y{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.map)return x(n,{code:v.invalid_type,expected:L.map,received:n.parsedType}),F;const a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([u,f],c)=>({key:a._parse(new We(n,u,n.path,[c,"key"])),value:i._parse(new We(n,f,n.path,[c,"value"]))}));if(n.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const f of s){const c=await f.key,_=await f.value;if(c.status==="aborted"||_.status==="aborted")return F;(c.status==="dirty"||_.status==="dirty")&&r.dirty(),u.set(c.value,_.value)}return{status:r.value,value:u}})}else{const u=new Map;for(const f of s){const c=f.key,_=f.value;if(c.status==="aborted"||_.status==="aborted")return F;(c.status==="dirty"||_.status==="dirty")&&r.dirty(),u.set(c.value,_.value)}return{status:r.value,value:u}}}}Rr.create=(e,t,r)=>new Rr({valueType:t,keyType:e,typeName:K.ZodMap,...U(r)});class Ot extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==L.set)return x(n,{code:v.invalid_type,expected:L.set,received:n.parsedType}),F;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(x(n,{code:v.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(x(n,{code:v.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const i=this._def.valueType;function s(f){const c=new Set;for(const _ of f){if(_.status==="aborted")return F;_.status==="dirty"&&r.dirty(),c.add(_.value)}return{status:r.value,value:c}}const u=[...n.data.values()].map((f,c)=>i._parse(new We(n,f,n.path,c)));return n.common.async?Promise.all(u).then(f=>s(f)):s(u)}min(t,r){return new Ot({...this._def,minSize:{value:t,message:D.toString(r)}})}max(t,r){return new Ot({...this._def,maxSize:{value:t,message:D.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Ot.create=(e,t)=>new Ot({valueType:e,minSize:null,maxSize:null,typeName:K.ZodSet,...U(t)});class kt extends Y{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==L.function)return x(r,{code:v.invalid_type,expected:L.function,received:r.parsedType}),F;function n(u,f){return xr({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Cr(),Mt].filter(c=>!!c),issueData:{code:v.invalid_arguments,argumentsError:f}})}function a(u,f){return xr({data:u,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Cr(),Mt].filter(c=>!!c),issueData:{code:v.invalid_return_type,returnTypeError:f}})}const i={errorMap:r.common.contextualErrorMap},s=r.data;if(this._def.returns instanceof Kt){const u=this;return Re(async function(...f){const c=new ke([]),_=await u._def.args.parseAsync(f,i).catch(k=>{throw c.addIssue(n(f,k)),c}),S=await Reflect.apply(s,this,_);return await u._def.returns._def.type.parseAsync(S,i).catch(k=>{throw c.addIssue(a(S,k)),c})})}else{const u=this;return Re(function(...f){const c=u._def.args.safeParse(f,i);if(!c.success)throw new ke([n(f,c.error)]);const _=Reflect.apply(s,this,c.data),S=u._def.returns.safeParse(_,i);if(!S.success)throw new ke([a(_,S.error)]);return S.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new kt({...this._def,args:qe.create(t).rest(Et.create())})}returns(t){return new kt({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new kt({args:t||qe.create([]).rest(Et.create()),returns:r||Et.create(),typeName:K.ZodFunction,...U(n)})}}class or extends Y{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}or.create=(e,t)=>new or({getter:e,typeName:K.ZodLazy,...U(t)});class ur extends Y{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return x(r,{received:r.data,code:v.invalid_literal,expected:this._def.value}),F}return{status:"valid",value:t.data}}get value(){return this._def.value}}ur.create=(e,t)=>new ur({value:e,typeName:K.ZodLiteral,...U(t)});function hi(e,t){return new lt({values:e,typeName:K.ZodEnum,...U(t)})}class lt extends Y{constructor(){super(...arguments),Gt.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return x(r,{expected:X.joinValues(n),received:r.parsedType,code:v.invalid_type}),F}if(Ar(this,Gt)||ci(this,Gt,new Set(this._def.values)),!Ar(this,Gt).has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return x(r,{received:r.data,code:v.invalid_enum_value,options:n}),F}return Re(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return lt.create(t,{...this._def,...r})}exclude(t,r=this._def){return lt.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Gt=new WeakMap;lt.create=hi;class cr extends Y{constructor(){super(...arguments),Yt.set(this,void 0)}_parse(t){const r=X.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==L.string&&n.parsedType!==L.number){const a=X.objectValues(r);return x(n,{expected:X.joinValues(a),received:n.parsedType,code:v.invalid_type}),F}if(Ar(this,Yt)||ci(this,Yt,new Set(X.getValidEnumValues(this._def.values))),!Ar(this,Yt).has(t.data)){const a=X.objectValues(r);return x(n,{received:n.data,code:v.invalid_enum_value,options:a}),F}return Re(t.data)}get enum(){return this._def.values}}Yt=new WeakMap;cr.create=(e,t)=>new cr({values:e,typeName:K.ZodNativeEnum,...U(t)});class Kt extends Y{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==L.promise&&r.common.async===!1)return x(r,{code:v.invalid_type,expected:L.promise,received:r.parsedType}),F;const n=r.parsedType===L.promise?r.data:Promise.resolve(r.data);return Re(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Kt.create=(e,t)=>new Kt({type:e,typeName:K.ZodPromise,...U(t)});class Ze extends Y{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===K.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:s=>{x(n,s),s.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const s=a.transform(n.data,i);if(n.common.async)return Promise.resolve(s).then(async u=>{if(r.value==="aborted")return F;const f=await this._def.schema._parseAsync({data:u,path:n.path,parent:n});return f.status==="aborted"?F:f.status==="dirty"||r.value==="dirty"?Pt(f.value):f});{if(r.value==="aborted")return F;const u=this._def.schema._parseSync({data:s,path:n.path,parent:n});return u.status==="aborted"?F:u.status==="dirty"||r.value==="dirty"?Pt(u.value):u}}if(a.type==="refinement"){const s=u=>{const f=a.refinement(u,i);if(n.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(n.common.async===!1){const u=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return u.status==="aborted"?F:(u.status==="dirty"&&r.dirty(),s(u.value),{status:r.value,value:u.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(u=>u.status==="aborted"?F:(u.status==="dirty"&&r.dirty(),s(u.value).then(()=>({status:r.value,value:u.value}))))}if(a.type==="transform")if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Qt(s))return s;const u=a.transform(s.value,i);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:u}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>Qt(s)?Promise.resolve(a.transform(s.value,i)).then(u=>({status:r.value,value:u})):s);X.assertNever(a)}}Ze.create=(e,t,r)=>new Ze({schema:e,typeName:K.ZodEffects,effect:t,...U(r)});Ze.createWithPreprocess=(e,t,r)=>new Ze({schema:t,effect:{type:"preprocess",transform:e},typeName:K.ZodEffects,...U(r)});class ze extends Y{_parse(t){return this._getType(t)===L.undefined?Re(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ze.create=(e,t)=>new ze({innerType:e,typeName:K.ZodOptional,...U(t)});class dt extends Y{_parse(t){return this._getType(t)===L.null?Re(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}dt.create=(e,t)=>new dt({innerType:e,typeName:K.ZodNullable,...U(t)});class lr extends Y{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===L.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}lr.create=(e,t)=>new lr({innerType:e,typeName:K.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...U(t)});class dr extends Y{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return er(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ke(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ke(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}dr.create=(e,t)=>new dr({innerType:e,typeName:K.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...U(t)});class wr extends Y{_parse(t){if(this._getType(t)!==L.nan){const n=this._getOrReturnCtx(t);return x(n,{code:v.invalid_type,expected:L.nan,received:n.parsedType}),F}return{status:"valid",value:t.data}}}wr.create=e=>new wr({typeName:K.ZodNaN,...U(e)});const sd=Symbol("zod_brand");class Rn extends Y{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class yr extends Y{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?F:i.status==="dirty"?(r.dirty(),Pt(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?F:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new yr({in:t,out:r,typeName:K.ZodPipeline})}}class fr extends Y{_parse(t){const r=this._def.innerType._parse(t),n=a=>(Qt(a)&&(a.value=Object.freeze(a.value)),a);return er(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}fr.create=(e,t)=>new fr({innerType:e,typeName:K.ZodReadonly,...U(t)});function pi(e,t={},r){return e?$t.create().superRefine((n,a)=>{var i,s;if(!e(n)){const u=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,f=(s=(i=u.fatal)!==null&&i!==void 0?i:r)!==null&&s!==void 0?s:!0,c=typeof u=="string"?{message:u}:u;a.addIssue({code:"custom",...c,fatal:f})}}):$t.create()}const od={object:de.lazycreate};var K;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(K||(K={}));const ud=(e,t={message:`Input not instance of ${e.name}`})=>pi(r=>r instanceof e,t),_i=Ve.create,mi=ut.create,cd=wr.create,ld=ct.create,yi=tr.create,dd=Tt.create,fd=Ir.create,hd=rr.create,pd=nr.create,_d=$t.create,md=Et.create,yd=tt.create,vd=Lr.create,gd=Ue.create,Ed=de.create,bd=de.strictCreate,Sd=ar.create,Td=Mr.create,Od=ir.create,Cd=qe.create,xd=sr.create,Ad=Rr.create,Id=Ot.create,Ld=kt.create,Rd=or.create,wd=ur.create,Nd=lt.create,jd=cr.create,Dd=Kt.create,Sa=Ze.create,Pd=ze.create,kd=dt.create,Bd=Ze.createWithPreprocess,Md=yr.create,$d=()=>_i().optional(),Kd=()=>mi().optional(),Fd=()=>yi().optional(),Hd={string:e=>Ve.create({...e,coerce:!0}),number:e=>ut.create({...e,coerce:!0}),boolean:e=>tr.create({...e,coerce:!0}),bigint:e=>ct.create({...e,coerce:!0}),date:e=>Tt.create({...e,coerce:!0})},Vd=F;var en=Object.freeze({__proto__:null,defaultErrorMap:Mt,setErrorMap:Vl,getErrorMap:Cr,makeIssue:xr,EMPTY_PATH:Ul,addIssueToContext:x,ParseStatus:Ae,INVALID:F,DIRTY:Pt,OK:Re,isAborted:mn,isDirty:yn,isValid:Qt,isAsync:er,get util(){return X},get objectUtil(){return _n},ZodParsedType:L,getParsedType:it,ZodType:Y,datetimeRegex:fi,ZodString:Ve,ZodNumber:ut,ZodBigInt:ct,ZodBoolean:tr,ZodDate:Tt,ZodSymbol:Ir,ZodUndefined:rr,ZodNull:nr,ZodAny:$t,ZodUnknown:Et,ZodNever:tt,ZodVoid:Lr,ZodArray:Ue,ZodObject:de,ZodUnion:ar,ZodDiscriminatedUnion:Mr,ZodIntersection:ir,ZodTuple:qe,ZodRecord:sr,ZodMap:Rr,ZodSet:Ot,ZodFunction:kt,ZodLazy:or,ZodLiteral:ur,ZodEnum:lt,ZodNativeEnum:cr,ZodPromise:Kt,ZodEffects:Ze,ZodTransformer:Ze,ZodOptional:ze,ZodNullable:dt,ZodDefault:lr,ZodCatch:dr,ZodNaN:wr,BRAND:sd,ZodBranded:Rn,ZodPipeline:yr,ZodReadonly:fr,custom:pi,Schema:Y,ZodSchema:Y,late:od,get ZodFirstPartyTypeKind(){return K},coerce:Hd,any:_d,array:gd,bigint:ld,boolean:yi,date:dd,discriminatedUnion:Td,effect:Sa,enum:Nd,function:Ld,instanceof:ud,intersection:Od,lazy:Rd,literal:wd,map:Ad,nan:cd,nativeEnum:jd,never:yd,null:pd,nullable:kd,number:mi,object:Ed,oboolean:Fd,onumber:Kd,optional:Pd,ostring:$d,pipeline:Md,preprocess:Bd,promise:Dd,record:xd,set:Id,strictObject:bd,string:_i,symbol:fd,transformer:Sa,tuple:Cd,undefined:hd,union:Sd,unknown:md,void:vd,NEVER:Vd,ZodIssueCode:v,quotelessJson:Hl,ZodError:ke}),bt={},Ud=Se&&Se.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vi=Se&&Se.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(_){try{c(n.next(_))}catch(S){s(S)}}function f(_){try{c(n.throw(_))}catch(S){s(S)}}function c(_){_.done?i(_.value):a(_.value).then(u,f)}c((n=n.apply(e,t||[])).next())})},gi=Se&&Se.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(c){return function(_){return f([c,_])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(_){c=[6,_],a=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(bt,"__esModule",{value:!0});bt.toFormikValidate=bi=bt.toFormikValidationSchema=bt.ValidationError=void 0;var Ei=function(e){Ud(t,e);function t(r){var n=e.call(this,r)||this;return n.name="ValidationError",n.inner=[],n}return t}(Error);bt.ValidationError=Ei;function Zd(e){var t=new Ei(e.message);return t.inner=e.errors.map(function(r){return{message:r.message,path:r.path.join(".")}}),t}function Gd(e,t){return{validate:function(r){return vi(this,void 0,void 0,function(){var n;return gi(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e.parseAsync(r,t)];case 1:return a.sent(),[3,3];case 2:throw n=a.sent(),Zd(n);case 3:return[2]}})})}}}var bi=bt.toFormikValidationSchema=Gd;function Yd(e){for(var t={},r=0,n=e.errors;r<n.length;r++){var a=n[r];t[a.path.filter(Boolean).join(".")]=a.message}return t}function zd(e,t){var r=this;return function(n){return vi(r,void 0,void 0,function(){var a;return gi(this,function(i){switch(i.label){case 0:return[4,e.safeParseAsync(n,t)];case 1:return a=i.sent(),a.success?[2]:[2,Yd(a.error)]}})})}}bt.toFormikValidate=zd;const Wd="_root_hqa63_106",qd="_root__body_hqa63_111",Jd="_root__form_hqa63_114",tn={root:Wd,root__body:qd,root__form:Jd},Ye={amountPicker:"amountPicker",cta:"cta",headline:"headline",legalCheckbox:"legalCheckbox",paymentMethods:"paymentMethods",priceDescription:"priceDescription",selectablePills:"selectablePills",submitButton:"submitButton",switcherToggle:"switcherToggle"},Xd="_root_djxhx_106",Qd={root:Xd},ef=({errorMessage:e,id:t,onChange:r,value:n})=>h.jsx($.Fieldset,{className:Qd.root,name:t,children:h.jsx($.InputFieldSpecial,{id:t,onChange:r,value:n,errorMessage:e})}),tf="_root_1v0xj_106",rf="_root__button_1v0xj_112",Ta={root:tf,root__button:rf},nf=({data:{label:e,url:t}})=>h.jsx($.Fieldset,{className:Ta.root,children:h.jsx($.TextButton,{className:Ta.root__button,href:t,size:"link",text:e,color:"deepPurple",target:"_blank"})}),af="_root_11cj3_106",sf="_root__blockHeader_11cj3_111",of="_root__block_11cj3_111",rn={root:af,root__blockHeader:sf,root__block:of},uf=({data:{buttonText:e,content:t,date:r,headline:n,version:a},onClose:i,open:s})=>{const u=()=>{i&&i(!s)};return h.jsx($.Modal,{headerTitle:n,onClose:u,open:s,closeButtonText:e,modalBody:h.jsx($.Card,{children:h.jsx($.CardBody,{className:rn.root,children:h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:rn.root__blockHeader,children:[h.jsx($.Typography,{type:"body-regular",children:a}),h.jsx($.Typography,{type:"body-regular",children:r})]}),h.jsx($.Divider,{}),t.map((f,c)=>h.jsxs(N.Fragment,{children:[h.jsx("div",{className:rn.root__block,children:f}),c!==t.length-1&&h.jsx($.Divider,{})]},`rich_text_el_${c}`))]})})})})},cf="_headline_14hr1_106",lf={headline:cf},df=({data:{headline:e,subheadline:t}})=>h.jsxs($.Fieldset,{className:lf.headline,children:[h.jsx($.Typography,{type:"h1",children:e}),h.jsx($.Typography,{type:"body-regular",children:t})]}),ff="_root_1h3u8_106",hf="_root__img_1h3u8_113",Oa={root:ff,root__img:hf},Ca=({data:{alt:e,src:t}})=>h.jsx("div",{className:Oa.root,"data-testid":"hero-block",children:h.jsx("img",{className:Oa.root__img,alt:e,src:t})}),pf="_root_ybxl6_106",_f="_root__checkbox_ybxl6_114",mf="_root__text_ybxl6_120",yf="_root__error_ybxl6_126",vf="_root__link_ybxl6_136",yt={root:pf,root__checkbox:_f,root__text:mf,root__error:yf,"root--error":"_root--error_ybxl6_133",root__link:vf},gf=({data:{buttonLabel:e,label:t,layout:r},error:n,onChange:a,onClick:i})=>{const s=()=>{i&&i(!0)};return h.jsxs($.Fieldset,{className:yt.root,children:[r?h.jsx($.CheckboxInput,{onChange:a,id:"legal_checkbox",className:st(yt.root__checkbox,{[yt["root--error"]]:n}),children:h.jsxs($.Typography,{type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",h.jsx($.TextButton,{className:yt.root__link,onClick:s,size:"small",text:e,color:"deepPurple"})]})}):h.jsxs($.Typography,{className:yt.root__text,type:n?"detail-regular":"detail-medium",as:"p",children:[t," ",h.jsx($.TextButton,{className:yt.root__link,onClick:s,size:"small",text:e,color:"deepPurple"})]}),n&&h.jsx($.Typography,{className:yt.root__error,type:"detail-bold",as:"p",children:n})]})},Ef="_root_v48kl_106",bf="_root__item_v48kl_112",Sf="_root__img_v48kl_117",nn={root:Ef,root__item:bf,root__img:Sf},Tf=({methods:e})=>h.jsx($.Fieldset,{children:h.jsx("ul",{className:nn.root,children:e.map(({alt:t,id:r,src:n},a)=>h.jsx("li",{className:nn.root__item,children:h.jsx("img",{className:nn.root__img,src:n,alt:t})},`payments_${r}_${a}`))})}),Of="_root_1u00k_106",Cf={root:Of},xf=({label:e})=>h.jsx($.Fieldset,{className:Cf.root,children:h.jsx($.Typography,{type:"detail-medium",children:e})}),Af="_root_1w7nd_106",If={root:Af},Lf=({onChange:e,selectablePills:t,selectedPills:r})=>h.jsx($.Fieldset,{children:h.jsx($.SelectablePillGroup,{className:If.root,selectedItems:r,items:t,multiselect:!1,onChange:e})}),Rf="_root_ced01_106",wf="_root__button_ced01_112",Nf="_root__security_ced01_115",an={root:Rf,root__button:wf,root__security:Nf},jf=({data:{label:e,securityText:t},onSubmit:r})=>h.jsxs($.Fieldset,{className:an.root,children:[h.jsx($.ButtonPrimary,{className:an.root__button,fullWidth:!0,size:"large",text:e,onClick:r}),h.jsxs($.Typography,{type:"detail-medium",as:"p",className:st(an.root__security),children:[h.jsx($.Icon,{name:"privacy_lock_closed"}),t]})]}),Df="_root_2bgbl_106",Pf={root:Df},kf=({onChange:e,switcherToggle:t,value:r})=>h.jsx($.SwitcherToggle,{className:Pf.root,items:t,onChange:e,value:r}),Bf=({error:e,errorLegal:t,minValue:r})=>en.object({amount:en.number().min(r,{message:e}).int(),legalCheckbox:en.boolean().refine(n=>n===!0,{message:t})}),Si=({blocks:e,defaultSelectedToggle:t,fieldDescription:r,fieldErrors:n,guidelinesModalData:a,hero:i,layout:s,onSubmit:u})=>{const[f,c]=N.useState(n[t]),_=Bf(f),S=()=>{const O=e.selectablePills[t].find(ie=>ie.isSelected);return O?[{id:O.id,value:O.value}]:[]},E=()=>{const O=S()[0];return O?r[O.id]:e.priceDescription.label},R=Dl({initialValues:{amount:(()=>{const O=S()[0];return O?Number(O.value):0})(),fieldDescription:E(),legalCheckbox:!e.legalCheckbox.layout,legalModalOpen:!1,selectedPills:S(),toggle:t},onSubmit:O=>u(O),validateOnBlur:!0,validateOnChange:!0,validationSchema:bi(_)}),ee=async(O,ie,Ie)=>{const Oe=O||e.selectablePills[ie].filter(j=>j.value===Ie)[0],je=Oe?r[Oe.id]:e.priceDescription.label,we=Oe?[{id:Oe.id,value:Oe.value}]:[];await R.setValues({...R.values,amount:Number(Ie),fieldDescription:je,selectedPills:we},!0)},te=O=>O[R.values.toggle],m=O=>{(async()=>await ee(O[0],R.values.toggle,O[0].value))()},T=(O,ie)=>{(async()=>(await ee(null,R.values.toggle,`${ie}`),await R.setTouched({amount:!0},!0)))()},B=O=>{(async()=>(c(n[O]),await ee(null,O,`${R.values.amount}`),await R.setFieldValue("toggle",O,!0)))()},P=O=>{(async()=>await R.setFieldValue("legalModalOpen",O))()},g=O=>{(async()=>(!R.touched.legalCheckbox&&await R.setFieldTouched("legalCheckbox"),await R.setFieldValue("legalCheckbox",O.target.checked,!0)))()},H=()=>{(async()=>await R.submitForm())()};return h.jsxs($.Card,{borderRadius:!0,className:st(tn.root),allowedElement:Ca,children:[h.jsx(Ca,{data:i}),h.jsxs($.CardBody,{className:tn.root__body,children:[h.jsx($.Form,{className:st(tn.root__form),children:s.map(O=>{const ie=e[O];switch(O){case Ye.headline:return h.jsx(N.Fragment,{children:h.jsx(df,{data:ie})},O);case Ye.switcherToggle:return h.jsx(N.Fragment,{children:h.jsx(kf,{switcherToggle:ie,onChange:B,value:R.values.toggle})},O);case Ye.selectablePills:return h.jsx(N.Fragment,{children:h.jsx(Lf,{onChange:m,selectablePills:te(ie),selectedPills:R.values.selectedPills})},O);case Ye.priceDescription:return h.jsx(N.Fragment,{children:h.jsx(xf,{label:R.values.fieldDescription})},O);case Ye.amountPicker:return h.jsx(N.Fragment,{children:h.jsx(ef,{id:"amount",onChange:T,value:R.values.amount,errorMessage:R.touched.amount&&R.errors.amount||""})},O);case Ye.legalCheckbox:return h.jsx(N.Fragment,{children:h.jsx(gf,{data:ie,error:R.touched.legalCheckbox?R.errors.legalCheckbox:"",onClick:P,onChange:g})},O);case Ye.submitButton:return h.jsx(N.Fragment,{children:h.jsx(jf,{data:ie,onSubmit:H})},O);case Ye.paymentMethods:return h.jsx(N.Fragment,{children:h.jsx(Tf,{methods:ie})},O);case Ye.cta:return h.jsx(N.Fragment,{children:h.jsx(nf,{data:ie})},O);default:return null}})}),R.values.legalModalOpen&&h.jsx(uf,{data:a,onClose:P,open:R.values.legalModalOpen})]})]})},Ti=({block:e,onSubmit:t})=>{const r=()=>{var T;let m=[];return(T=e==null?void 0:e.fields)==null||T.layout.map(B=>m=[...m,B]),m},n=()=>{var m,T,B,P,g,H,O,ie;return{alt:((T=(m=e==null?void 0:e.fields)==null?void 0:m.heroImage)==null?void 0:T.fields.title)||"",src:(g=(P=(B=e==null?void 0:e.fields)==null?void 0:B.heroImage)==null?void 0:P.fields.file)!=null&&g.url?`https:${(ie=(O=(H=e==null?void 0:e.fields)==null?void 0:H.heroImage)==null?void 0:O.fields.file)==null?void 0:ie.url}`:""}},a=()=>{var m,T;return{headline:((m=e.fields.headline)==null?void 0:m.fields.headline)||"",subheadline:((T=e.fields.headline)==null?void 0:T.fields.subheadline)||""}},i=()=>{var m,T;return{label:((m=e.fields.cta)==null?void 0:m.fields.label)||"",url:((T=e.fields.cta)==null?void 0:T.fields.url)||""}},s=()=>{var m,T,B,P;return(T=(m=e==null?void 0:e.fields)==null?void 0:m.paymentMethods)!=null&&T.fields.paymentMethods?(P=(B=e==null?void 0:e.fields)==null?void 0:B.paymentMethods)==null?void 0:P.fields.paymentMethods.map(g=>{var H;return{alt:(g==null?void 0:g.fields.title)||"",id:(g==null?void 0:g.sys.id)||"",src:`https:${(H=g==null?void 0:g.fields.file)==null?void 0:H.url}`}}):[]},u=()=>{var m,T;return{label:((m=e.fields.submitButton)==null?void 0:m.fields.label)||"",securityText:((T=e.fields.submitButton)==null?void 0:T.fields.securityText)||""}},f=()=>{var m,T,B;return{buttonLabel:((m=e.fields.legalCheckbox)==null?void 0:m.fields.legalButtonLabel)||"",label:((T=e.fields.legalCheckbox)==null?void 0:T.fields.label)||"",layout:(B=e.fields.legalCheckbox)==null?void 0:B.fields.layout}},c=()=>{var m;return{label:((m=e.fields.priceDescription)==null?void 0:m.fields.label)||""}},_=()=>{const m={};return e.fields.switcherToggle.map(T=>{var P;const B=`${T==null?void 0:T.fields.id}`;B in m||(m[B]={error:(T==null?void 0:T.fields.errorText)||"",errorLegal:((P=e.fields.legalCheckbox)==null?void 0:P.fields.errorText)||"",minValue:Number(T==null?void 0:T.fields.minValue)||0})}),m},S=()=>e.fields.switcherToggle.map(m=>({id:(m==null?void 0:m.fields.id)||"",label:(m==null?void 0:m.fields.label)||""})),E=()=>{var T;const m=e.fields.switcherToggle.find(B=>B==null?void 0:B.fields.defaultSelected);return m?m.fields.id:((T=e.fields.switcherToggle[0])==null?void 0:T.fields.id)||""},k=()=>{const m={};return e.fields.switcherToggle.map(T=>{T==null||T.fields.selectablePills.map(B=>{const P=`${B==null?void 0:B.fields.chargebeeId}`;P in m||(m[P]=(B==null?void 0:B.fields.description)||"")})}),m},R=()=>{const m={};return e.fields.switcherToggle.map(T=>{const B=`${T==null?void 0:T.fields.id}`;B in m||(m[B]=((T==null?void 0:T.fields.selectablePills)||[]).map(P=>({id:P==null?void 0:P.fields.chargebeeId,isSelected:P==null?void 0:P.fields.defaultSelected,label:(P==null?void 0:P.fields.label)||"",popular:(P==null?void 0:P.fields.popular)||"",style:"filled",value:(P==null?void 0:P.fields.value)||"",variant:"large"})))}),m},ee=()=>{var je,we;const m=(je=e==null?void 0:e.fields.legalCheckbox)==null?void 0:je.fields.guidelinesModal,T=(we=m==null?void 0:m.fields)==null?void 0:we.text;if(!T)return{buttonText:"",content:[[]],date:"",headline:"",version:""};const B={renderNode:{[He.BLOCKS.PARAGRAPH]:(j,Q)=>h.jsx($.Typography,{as:"p",type:"body-regular",children:Q}),[He.BLOCKS.HEADING_2]:(j,Q)=>h.jsx($.Typography,{type:"h2",children:Q})}},P=j=>{const Q=[];let ge=[];return Array.isArray(j)&&j.forEach($e=>{$e.type==="hr"?(ge.length>0&&Q.push(ge),ge=[]):ge.push($e)}),ge.length>0&&Q.push(ge),Q},g=gn.documentToReactComponents(T,B),H=g?P(g):[],O=(m==null?void 0:m.fields.closeModalButtonText)||"",ie=(m==null?void 0:m.fields.headline)||"",Ie=(m==null?void 0:m.fields.data)||"",Oe=(m==null?void 0:m.fields.version)||"";return{buttonText:O,content:H,date:Ie,headline:ie,version:Oe}},te=()=>({cta:i(),headline:a(),legalCheckbox:f(),paymentMethods:s(),priceDescription:c(),selectablePills:R(),submitButton:u(),switcherToggle:S()});return h.jsx(Si,{onSubmit:t,layout:r(),hero:n(),defaultSelectedToggle:E(),blocks:te(),fieldDescription:k(),fieldErrors:_(),guidelinesModalData:ee()})};exports.ContentfulSponsorCardForm=Ti;exports.DynamicRenderer=gs;exports.LAYOUT_BLOCK=Ye;exports.SponsorCardForm=Si;
|