PageSourceSearch

https://www.hellomagazine.com/_next/static/chunks/2553-b13a4e93be8…?dpl=dpl_Cbad2Xhjtnn1Rvhwd64jrSW3Myiz

js hellomagazine.com collected 2026-09-24 08:28:49 UTC 112,437 bytes, 50 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2553],{654:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(9200))},3210:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(67067),a=n(60762);i(n(60762),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=e;return}var t=new a.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},8263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},u=!!(e.type&&s[e.type]);for(var c in e){var d=e[c];if((0,r.isCustomAttribute)(c)){n[c]=d;continue}var p=c.toLowerCase(),f=l(p);if(f){var h=(0,r.getPropertyInfo)(f);switch(o.includes(f)&&a.includes(t)&&!u&&(f=l("default"+p)),n[f]=d,h&&h.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(n[c]=d)}return(0,i.setStyleProp)(e.style,n),n};var r=n(40008),i=n(65817),o=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},9200:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
1\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function f(){var e={line:c,column:d};return function(t){return t.position=new h(e),y(r),t}}function h(e){this.start=e,this.end={line:c,column:d},this.source=l.source}h.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}y(r);var b,w=[];for(v(w);b=function(){var e=f(),n=y(i);if(n){if(_(),!y(o))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(s),l}}();)!1!==b&&(w.push(b),v(w));return w}},17806:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(o,l)).replace(r,s))}},40008:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}let i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{i[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});let o=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode
1-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(o,a);i[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(o,a);i[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(o,a);i[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),i.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});let{CAMELCASE:s,SAME:l,possibleStandardNames:u}=n(81863),c=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(u).reduce((e,t)=>{let n=u[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=c,t.possibleStandardNames=d},49068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=o,t.escapeSpecialCharacters=function(e){return e.replace(i.CARRIAGE_RETURN_REGEX,i.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,n,s){void 0===n&&(n=null);for(var l,u=[],c=0,d=t.length;c<d;c++){var p=t[c];switch(p.nodeType){case 1:var f=function(e){var t,n=(t=e=e.toLowerCase(),i.CASE_SENSITIVE_TAG_NAMES_MAP[t]);return n||e}(p.nodeName);(l=new r.Element(f,o(p.attributes))).children=e("template"===f?p.content.childNodes:p.childNodes,l);break;case 3:l=new r.Text(a(p.nodeValue));break;case 8:l=new r.Comment(p.nodeValue);break;default:continue}var h=u[c-1]||null;h&&(h.next=l),l.parent=n,l.prev=h,l.next=null,u.push(l)}return s&&((l=new r.ProcessingInstruction(s.substring(0,s.indexOf(" ")).toLowerCase(),s)).next=u[0]||null,l.parent=n,u.unshift(l),u[1]&&(u[1].prev=u[0])),u};var r=n(3210),i=n(51233);function o(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function a(e){return e.replace(i.CARRIAGE_RETURN_PLACEHOLDER_REGEX,i.CARRIAGE_RETURN)}},51233:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},56280:(e,t,n)=>{"use strict";var r,i;let o,a;function s(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function l(e,t="|"){return e.map(e=>z(e)).join(t)}function u(e,t){return"bigint"==typeof t?t.toString():t}function c(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function d(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function p(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function f(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}n.d(t,{zM:()=>rg,fc:()=>rO,ai:()=>rp,Ik:()=>rk,Yj:()=>nq});let h="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function m(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let g=c(()=>
1{if(V.jitless||"undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function y(e){if(!1===m(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==m(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function v(e){return y(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let _=new Set(["string","number","symbol"]);function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function k(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function z(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}let x={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function E(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let o=f(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(r,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t of Reflect.ownKeys(r))i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return p(this,"shape",i),i},checks:[]});return w(t,o)}function O(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function S(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function T(e){return"string"==typeof e?e:e?.message}function A(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function $(e,t,n){let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,o=e.message?e.message:T(e.inst?._zod.def?.error?.(e))??T(i?.(e))??T(t?.error?.(e))??T(n.customError?.(e))??T(n.localeError?.(e))??"Invalid input",{inst:a,schema:s,continue:l,input:u,...c}=e;return c.path??(c.path=[]),c.message=o,t?.reportInput&&(c.input=u),c}let P=/[\uD800-\uDBFF]/;function N(e){let t=e.length;if(!P.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(64512&e.charCodeAt(r))==55296&&(64512&e.charCodeAt(r+1))==56320&&(n--,r++);return n}function I(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function j(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function C(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}let R=!1,Z={configurable:!0,get(){R=!0}};function D(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&o!==e._zod){o=void 0;return}o=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Z);let e=R;R=!1;try{let r=n(this);return R?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),R=R||e,r}catch(n){throw delete this[t],R=R||e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}let M={value:void 0,enumerable:!1},F="captureStackTrace"in Error?Error:null;function L(e,t,n,r){function i(e){this.def=e,this.constr=u,this.traits=new Set}i.prototype={};let o=n&&new WeakSet;function a(r,a){if(!r._zod){M.value=new i(a);try{Object.defineProperty(r,"_zod",M)}finally{M.value=void 0}}if(r._zod.traits.has(e))return;if(r._zod.traits.add(e),t(r,a),o){let e=Object.getPrototypeOf(r),t=r._zod.constr.prototype,i=e;for(;i&&i!==t;)i=Object.getPrototypeOf(i);let a=i??e;if(!o.has(a)){o.add(a);for(let e in n){let t=Object.getOwnPropertyDescriptor(n,e);t.get?Object.defineProperty(a,e,{...t,enumerable:!1}):function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:C(this,t,n.bind(this))},set(e){C(this,t,e)}})}(a,e,t.value)}}}let s=u.prototype;for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(e in r||(r[e]=s[e].bind(r)))}
1let s=r?.Parent??Object;class l extends s{}function u(e){let t=r?.Parent?function(e){let t=F;if(t){let n=t.stackTraceLimit;if("number"==typeof n){try{t.stackTraceLimit=0}catch{return F=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}(l):this;a(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(l,"name",{value:e}),Object.defineProperty(u,"init",{value:a}),Object.defineProperty(u,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class U extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class J extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(r=globalThis).__zod_globalConfig??(r.__zod_globalConfig={});let V=globalThis.__zod_globalConfig;function H(e){return e&&Object.assign(V,e),V}class B extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let G="~memo",W=[];function X(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let q=new WeakMap,K=[],Y={alloc(e,t,n){let r=a;if(!r)return n;a=void 0;let i={value:n,issues:null};return r.set(t.value,i),K.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if("backward"!==n.direction&&function(e,t){let n=e[G]?.backEdges;return void 0!==n&&null!==t&&"object"==typeof t&&n.has(t)}(n,e.value))throw new B;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,l)=>{let u;if(void 0===n&&!(n=function e(t,n){let r=q.get(t);if(void 0!==r)return r;if(n.has(t))return!0;n.add(t);let i=!1,o=t=>{!i&&t?._zod&&e(t,n)&&(i=!0)},a=t._zod.def;switch(a.type){case"object":for(let e of Reflect.ownKeys(a.shape))o(a.shape[e]);o(a.catchall);break;case"array":o(a.element);break;case"tuple":for(let e of a.items)o(e);o(a.rest);break;case"record":case"map":o(a.keyType),o(a.valueType);break;case"set":o(a.valueType);break;case"union":for(let e of a.options)o(e);break;case"intersection":o(a.left),o(a.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(a.innerType);break;case"pipe":o(a.in),o(a.out);break;case"function":o(a.input),o(a.output);break;case"lazy":o(t._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let e in a){let t=Object.getOwnPropertyDescriptor(a,e);if(!t||t.get)continue;let n=t.value;if(n&&"object"==typeof n){if(n._zod)o(n);else if(Array.isArray(n))for(let e of n)o(e)}}}return n.delete(t),q.set(t,i),i}(e,new Set)))return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,l);let c=s.value;if(null===c||"object"!=typeof c)return t(s,l);let d=l[G];if(d||(d={buckets:new Map,backEdges:void 0},l[G]=d),r===l)u=i;else{var p;let t;(t=(p=d).buckets.get(e))||(t=new Map,p.buckets.set(e,t)),u=t,r=l,i=u}let f=u.get(c);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...X(f.issues)):(s.memo=!0,d.backEdges??(d.backEdges=new Set),d.backEdges.add(f.value)),s;a=u;let h=K.length,m=t(s,l);a=void 0;let g=K.length>h?K.pop():void 0;return m instanceof Promise?m.then(e=>(g&&(g.issues=e.issues.length?X(e.issues):W),e)):(g&&(g.issues=m.issues.length?X(m.issues):W),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}},Q=/^[cC][0-9a-z]{6,}$/,ee=/^[0-9a-z]+$/,et=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,en=/^[0-9a-vA-V]{20}$/,er=/^[A-Za-z0-9]{27}$/,ei=/^[a-zA-Z0-9_-]{21}$/,eo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ea=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,es=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,el=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eu=/^(?:(?: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])$/,ec=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ed=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,ep=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ef=/^$|^(?:[0-9a-zA-Z+/]{4}
1)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,eh=/^[A-Za-z0-9_-]*$/,em=/^https?$/,eg=/^\+[1-9]\d{6,14}$/,ey="(?:(?:\\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])))",ev=RegExp(`^${ey}$`);function e_(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let eb=/^-?\d+n?$/,ew=/^-?\d+$/,ek=/^-?\d+(?:\.\d+)?$/,ez=/^(?:true|false)$/i,ex=/^[^A-Z]*$/,eE=/^[^a-z]*$/,eO=L("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),eS=e=>{let t=e.value;return null!=t&&void 0!==t.length},eT={number:"number",bigint:"bigint",object:"date"},eA=L("$ZodCheckLessThan",(e,t)=>{eO.init(e,t);let n=eT[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:eT[typeof r.value]??n,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),e$=L("$ZodCheckGreaterThan",(e,t)=>{eO.init(e,t);let n=eT[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:eT[typeof r.value]??n,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),eP=L("$ZodCheckMultipleOf",(e,t)=>{eO.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof n.value?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):0===function(e,t){let n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),eN=L("$ZodCheckNumberFormat",(e,t)=>{eO.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=x[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=o,n&&(r.pattern=ew)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s))return void a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),eI=L("$ZodCheckMaxLength",(e,t)=>{var n;eO.init(e,t),(n=e._zod.def).when??(n.when=eS),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>t.maximum?N(r):i)<=t.maximum)return;let o=I(r);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ej=L("$ZodCheckMinLength",(e,t)=>{var n;eO.init(e,t),(n=e._zod.def).when??(n.when=eS),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>=t.minimum&&i<2*t.minimum?N(r):i)>=t.minimum)return;let o=I(r);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),eC=L("$ZodCheckLengthEquals",(e,t)=>{var n;eO.init(e,t),(n=e._zod.def).when??(n.when=eS),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length,o="string"==typeof r&&i>=t.length&&i<=2*t.length?N(r):i;if(o===t.length)return;let a=I(r),s=o>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),eR=L("$ZodCheckStringFormat",(e,t)=>{var n,r;eO.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),eZ=L("$ZodCheckRegex",(e,t)=>{eR.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),eD=L("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ex),eR.init(e,t)}),eM=L("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=eE),eR.init(e,t)}),eF=L("$ZodCheckIncludes",(e,t)=>{eO.init(e,t);let n=b(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>
1{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),eL=L("$ZodCheckStartsWith",(e,t)=>{eO.init(e,t);let n=RegExp(`^${b(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),eU=L("$ZodCheckEndsWith",(e,t)=>{eO.init(e,t);let n=RegExp(`.*${b(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),eJ=L("$ZodCheckOverwrite",(e,t)=>{eO.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class eV{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
2${t.join("\n")}
3};`)(...Object.values(this.closed))}}let eH={get:function(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,u,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},eB={value:void 0,enumerable:!1},eG={value:void 0,enumerable:!1},eW=new WeakSet([Object.prototype,Error.prototype]),eX=(e,t)=>{e.name="$ZodError",eB.value=e._zod,Object.defineProperty(e,"_zod",eB),eG.value=t,Object.defineProperty(e,"issues",eG),eB.value=void 0,eG.value=void 0,Object.defineProperty(e,"message",eH);let n=Object.getPrototypeOf(e);eW.has(n)||(eW.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},eq=L("$ZodError",eX),eK=L("$ZodError",eX,void 0,{Parent:Error});function eY(e,t){return{callee:t?.callee??e,Err:t?.Err}}let eQ=e=>{let t=(n,r,i,o)=>{let a=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new U;if(s.issues.length){let n=new(o?.Err??e)(s.issues.map(e=>$(e,a,H())));throw h(n,o?.callee??t),n}return s.value};return t},e0=e=>{let t=async(n,r,i,o)=>{let a=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new(o?.Err??e)(s.issues.map(e=>$(e,a,H())));throw h(n,o?.callee??t),n}return s.value};return t},e1=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new U;return o.issues.length?{success:!1,error:new(e??eq)(o.issues.map(e=>$(e,i,H())))}:{success:!0,data:o.value}},e9=e1(eK),e2=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>$(e,i,H())))}:{success:!0,data:o.value}},e4=e2(eK),e6={major:4,minor:5,patch:4},e3=L("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=e6;let r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{let i;if(t.memo)return t;let o=O(t);for(let a of n){if(a._zod.def.when){if(function(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}(t)||!a._zod.def.when(t))continue}else if(o)continue;let n=t.issues.length,s=a._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new U;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(A(t.issues,n,e),o||(o=O(t,n)))});else{if(t.issues.length===n)continue;A(t.issues,n,e),o||(o=O(t,n))}}return i?i.then(()=>t):t},n=(n,r,o)=>{if(O(n))return n.aborted=!0,n;let a=t(r,i,o);if(a instanceof Promise){if(!1===o.async)throw new U;return a.then(t=>e._zod.parse(t,o))}return e._zod.parse(a,o)};e._zod.run=(r,o)=>{if(o.skipChecks)return e._zod.parse(r,o);if("backward"===o.direction){let t=e._zod.parse({value:r.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,o)):n(t,r,o)}let a=e._zod.parse(r,o);if(a instanceof Promise){if(!1===o.async)throw new U;return a.then(e=>t(e,i,o))}return t(a,i,o)}}},{get"~standard"(){return C(this,"~standard",e5(this),!1)},set"~standard"(value){C(this,"~standard",value)}}),e8=e=>e.success?{value:e.data}:{issues:e.error?.issues};function e5(e){return{validate:t=>{try{return e8(e9(e,t))}catch(n){return e4(e,t).then(e8)}},vendor:"zod",version:1}}let e7=L("$ZodString",(e,t)=>{e3.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)})(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),te=L("$ZodStringFormat",(e,t)=>{eR.init(e,t),e7.init(e,t)}
3),tt=L("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ea),te.init(e,t)}),tn=L("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=es(e))}else t.pattern??(t.pattern=es());te.init(e,t)}),tr=L("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=el),te.init(e,t)}),ti=/[\t\n\r]/g,to=L("$ZodURL",(e,t)=>{te.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=function(e,t){if(!t.normalize&&t.protocol?.source===em.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}(r,t);if(1===i)return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});if(2===i)return void n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});t.hostname&&!function(e,t){return t.lastIndex=0,t.test(e.hostname)}(i,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!function(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}(i,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:r.replace(ti,"");return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ta=L("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$","u")),te.init(e,t)}),ts=L("$ZodNanoID",(e,t)=>{var n;if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=void 0===t.length?ei:(n=t.length,RegExp(`^[a-zA-Z0-9_-]{${n}}$`))),te.init(e,t)}),tl=L("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Q),te.init(e,t)}),tu=L("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ee),te.init(e,t)}),tc=L("$ZodULID",(e,t)=>{t.pattern??(t.pattern=et),te.init(e,t)}),td=L("$ZodXID",(e,t)=>{t.pattern??(t.pattern=en),te.init(e,t)}),tp=L("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=er),te.init(e,t)}),tf=L("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e_({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${e_({precision:e.precision})}`:n;return RegExp(`^${ey}T(?:${r})$`)}(t)),te.init(e,t),(t.local||-1===t.precision)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(e=>{e._zod.bag.laxFormat=!0}))}),th=L("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ev),te.init(e,t)}),tm=L("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${e_(t)}$`)),te.init(e,t)}),tg=L("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=eo),te.init(e,t)}),ty=L("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=eu),te.init(e,t),e._zod.bag.format="ipv4"}),tv=/^[0-9a-fA-F:.]+$/;function t_(e){if(!tv.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}let tb=L("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ec),te.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{t_(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),tw=L("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ed),te.init(e,t)}),tk=L("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ep),te.init(e,t),e._zod.check=n=>{!function(e){let t=e.split("/");if(2!==t.length)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`===r&&!(i<0)&&!(i>128)&&t_(n)}(n.value)&&n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function tz(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let tx=L("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ef),te.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{tz(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),tE=L("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=eh),te.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{!function(e){if(!eh.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return tz(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),tO=L("$ZodE164",(e,t)=>{t.pattern??(t.pattern=eg),te.init(e,t)}),tS=L("$ZodJWT",(e,t)=>{te.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));
3if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),tT=L("$ZodNumber",(e,t)=>{e3.init(e,t),e._zod.pattern=e._zod.bag.pattern??ek,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch(e){}let i=n.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),tA=L("$ZodNumberFormat",(e,t)=>{eN.init(e,t),tT.init(e,t)}),t$=L("$ZodBoolean",(e,t)=>{e3.init(e,t),e._zod.pattern=ez,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),tP=((e,t)=>{e3.init(e,t),e._zod.pattern=eb,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(e){}return"bigint"==typeof n.value||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}},L("$ZodUnknown",(e,t)=>{e3.init(e,t),e._zod.parse=e=>e})),tN=L("$ZodNever",(e,t)=>{e3.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function tI(e,t,n){e.issues.length&&t.issues.push(...S(n,e.issues)),t.value[n]=e.value}let tj=L("$ZodArray",(e,t)=>{e3.init(e,t);let n=V.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);let a=[];for(let e=0;e<o.length;e++){let n=o[e],s=t.element._zod.run({value:n,issues:[]},i);s instanceof Promise?a.push(s.then(t=>tI(t,r,e))):tI(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function tC(e,t,n,r,i,o){let a=n in r,s="optional"===o;if(a||!s||"optional"!==i){if(e.issues.length){if(void 0!==i&&s&&!a)return;t.issues.push(...S(n,e.issues))}if(!a&&void 0===i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?a&&(t.value[n]=void 0):t.value[n]=e.value}}let tR=[];function tZ(e){var t;let n=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),i=r.length?r:tR,o=i.length?[...n,...i]:n;for(let t of o)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=Object.keys(t=e.shape).filter(e=>void 0!==t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,allKeys:o,symbolKeys:i,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(a)}}function tD(e,t,n,r,i,o){let a=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,c=l.optin,d=l.optout;for(let i in t){if(s.has(i))continue;if("__proto__"===i){"never"===u&&a.push(i);continue}if("never"===u){a.push(i);continue}let o=l.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then(e=>tC(e,n,i,t,c,d))):tC(o,n,i,t,c,d)}return(a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o,continue:!0}),e.length)?Promise.all(e).then(()=>n):n}let tM=new WeakMap,tF=L("$ZodObject",(e,t)=>{let n;e3.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){let e=t.shape;tM.set(t,e),Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),tM.set(t,n),n}})}let i=c(()=>tZ(t));D(e,"propValues",e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){for(let t of(Object.prototype.hasOwnProperty.call(n,e)||p(n,e,new Set),r.values))n[e].add(t);void 0!==r.optin&&n[e].add(void 0)}}return n});let o=t.catchall,a=V.memoizer;a?.attach(e),e._zod.parse=(t,r)=>{n??(n=i.value);let s=t.value;if(!m(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value=a?a.alloc(e,t,{},r):{};let l=[],u=n.shape;for(let e of n.allKeys){if("__proto__"===e)continue;let n=u[e],i=n._zod.optin,o=n._zod.optout,a=n._zod.run({value:s[e],issues:[]},r);a instanceof Promise?l.push(a.then(n=>tC(n,t,e,s,i,o))):tC(a,t,e,s,i,o)}return o?tD(l,s,t,r,i.value,e):l.length?Promise.all(l).then(()=>t):t}}),tL=L("$ZodObjectJIT",(e,t)=>{let n,r;tF.init(e,t);let i=e._zod.parse,o=c(()=>tZ(t)),a=V.memoizer,s=!V.jitless,l=s&&g.value,u=t.catchall;e._zod.parse=(c,d)=>{r??(r=o.value);let p=c.value;return m(p)?s&&l&&d?.async===!1&&!0!==d.jitless?(n||(n=(t=>{let n=o.value,r=n.symbolKeys,i=new eV(["payload","ctx"],{shape:t,inst:e,memo:a,syms:r}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,l=(e,t)=>
3`
4          for (let i = 0; i < ${e}.issues.length; i++) {
5            const iss = ${e}.issues[i];
6            iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
7            payload.issues.push(iss);
8          }`;i.write("const input = payload.value;");let u=Object.create(null),c=0;for(let e of n.allKeys)u[e]=`key_${c++}`;for(let e of(i.write(a?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};"),n.allKeys)){if("__proto__"===e)continue;let n=u[e],o="symbol"==typeof e?`syms[${r.indexOf(e)}]`:JSON.stringify(e),a=`${o} in input`,c=t[e],d=c?._zod?.optin,p=void 0!==d,f=c?._zod?.optout==="optional";if(i.write(`const ${n} = ${s(o)};`),p&&f){let e="optional"===d?`${n}_present`:`${n}.value !== undefined || ${n}_present`;i.write(`
9        const ${n}_present = ${a};
10        if (!${n}.issues.length || ${n}_present) {
11          if (${n}.issues.length) {${l(n,o)}
12          }
13
14          if (${e}) {
15            newResult[${o}] = ${n}.value;
16          }
17        }
18
19      `)}else p?i.write(`
20        if (${n}.issues.length) {${l(n,o)}
21        }
22        
23        if (${n}.value === undefined) {
24          if (${a}) {
25            newResult[${o}] = undefined;
26          }
27        } else {
28          newResult[${o}] = ${n}.value;
29        }
30
31      `):i.write(`
32        const ${n}_present = ${a};
33        if (${n}.issues.length) {${l(n,o)}
34        }
35        if (!${n}_present && !${n}.issues.length) {
36          payload.issues.push({
37            code: "invalid_type",
38            expected: "nonoptional",
39            input: undefined,
40            path: [${o}]
41          });
42        }
43
44        if (${n}_present) {
45          newResult[${o}] = ${n}.value;
46        }
47
48      `)}return i.write("payload.value = newResult;"),i.write("return payload;"),i.compile()})(t.shape)),c=n(c,d),u)?tD([],p,c,d,r,e):c:i(c,d):(c.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}
48),c)}});function tU(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter(e=>!O(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>$(e,r,H())))}),t)}let tJ=L("$ZodUnion",(e,t)=>{e3.init(e,t),D(e,"optin",e=>e.def.options.some(e=>"defaulted"===e._zod.optin)?"defaulted":e.def.options.some(e=>void 0!==e._zod.optin)?"optional":void 0),D(e,"optout",e=>e.def.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),D(e,"values",e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),D(e,"pattern",e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>d(e.source)).join("|")})$`)}});let n=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)a.push(t),o=!0;else{if(0===t.issues.length)return t;a.push(t)}}return o?Promise.all(a).then(t=>tU(t,r,e,i)):tU(a,r,e,i)}}),tV=L("$ZodIntersection",(e,t)=>{e3.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,n])=>tH(e,t,n)):tH(e,i,o)}});function tH(e,t,n){let r,i=new Map,o=new Map,a=(e,t)=>{let n;if("unrecognized_keys"!==e.code||e.path?.length)if("invalid_key"!==e.code||"record"!==e.origin||e.path?.length!==1)return!1;else{let t=String(e.path[0]);o.has(t)||o.set(t,e),n=[t]}else r??(r=e),n=e.keys;for(let e of n)i.has(e)||i.set(e,{}),i.get(e)[t]=!0;return!0};for(let n of t.issues)a(n,"l")||e.issues.push(n);for(let t of n.issues)a(t,"r")||e.issues.push(t);let s=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=r?s.filter(e=>r.keys.includes(e)):[];for(let n of(t.length&&e.issues.push({...r,keys:t}),s))!t.includes(n)&&o.has(n)&&e.issues.push(o.get(n))}let l=function e(t,n){if(t===n||t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(y(t)&&y(n)){let r=Object.keys(n),i=Object.keys(t).filter(e=>-1!==r.indexOf(e)),o={...t,...n};for(let r of(Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__,i)){if("__proto__"===r)continue;let i=e(t[r],n[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};o[r]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let o=e(t[i],n[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}(t.value,n.value);if(!l.valid){if(O(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}function tB(e,t){for(let n=e.length-1;n>=0;n--)if(!("optin"===t?void 0!==e[n]._zod.optin:"optional"===e[n]._zod.optout))return n+1;return 0}function tG(e,t,n){e.issues.length&&t.issues.push(...S(n,e.issues)),t.value[n]=e.value}function tW(e,t,n,r,i){for(let o=0;o<n.length;o++){let a=e[o],s=o<r.length;if(!s&&o>=i&&"optional"===n[o]._zod.optin){t.value.length=o;break}if(a.issues.length){if(!s&&o>=i){t.value.length=o;break}t.issues.push(...S(o,a.issues))}t.value[o]=a.value}for(let e=t.value.length-1;e>=r.length;e--)if("optional"===n[e]._zod.optout&&void 0===t.value[e])t.value.length=e;else break;return t}(e,t)=>{e3.init(e,t);let n=t.items,r=V.memoizer;r?.attach(e),e._zod.parse=(i,o)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=r?r.alloc(e,i,[],o):[];let s=[],l=tB(n,"optin"),u=tB(n,"optout");if(!t.rest){if(a.length<l)return i.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),i;a.length>n.length&&i.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}let c=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},o);t instanceof Promise?s.push(t.then(t=>{c[e]=t})):c[e]=t}if(t.rest){let e=n.length-1;for(let r of a.slice(n.length)){e++;let n=t.rest._zod.run({value:r,issues:[]},o);n instanceof Promise?s.push(n.then(t=>tG(t,i,e))):tG(n,i,e)}}return s.length?Promise.all(s).then(()=>tW(c,i,n,a,u)):tW(c,i,n,a,u)}};let tX=L("$ZodEnum",(e,t)=>{e3.init(e,t);let n=s(t.entries),r=new Set(n);e._zod.values=r;let i=n.filter(e=>_.has(typeof e));e._zod.pattern=new RegExp(i.length?`^(${i.map(e=>b(e.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(t,i)=>{let o=t.value;return r.has(o)||t.issues.push({code:"invalid_value",values:n,input:o,inst:e}),t}}),tq=L("$ZodTransform",(e,t)=>{e3.init(e,t),e._zod.optin="optional",V.memoizer?.guard(e),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new J(e.constructor.name);
48let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new U;return n.value=i,n}});function tK(e,t){return e.value=t.issues.length?void 0:t.value,e}let tY=L("$ZodOptional",(e,t)=>{e3.init(e,t),D(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),e._zod.optout="optional",D(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),D(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${d(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(void 0===e.value){if("defaulted"!==t.innerType._zod.optin)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>tK(e,t)):tK(e,r)}return t.innerType._zod.run(e,n)}}),tQ=L("$ZodExactOptional",(e,t)=>{tY.init(e,t),D(e,"values",e=>e.def.innerType._zod.values),D(e,"pattern",e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),t0=L("$ZodNullable",(e,t)=>{e3.init(e,t),D(e,"optin",e=>e.def.innerType._zod.optin),D(e,"optout",e=>e.def.innerType._zod.optout),D(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${d(t.source)}|null)$`):void 0}),D(e,"values",e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)}),t1=L("$ZodDefault",(e,t)=>{e3.init(e,t),e._zod.optin="defaulted",D(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>t9(e,t)):t9(r,t)}});function t9(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let t2=L("$ZodPrefault",(e,t)=>{e3.init(e,t),e._zod.optin="defaulted",D(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),t4=L("$ZodNonOptional",(e,t)=>{e3.init(e,t),D(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>void 0!==e)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>t6(t,e)):t6(i,e)}});function t6(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function t3(e,t,n,r){return t.issues.length?e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>$(e,r,H()))},input:e.value}):(e.value=t.value,t.memo&&(e.memo=!0)),e}let t8=L("$ZodCatch",(e,t)=>{e3.init(e,t),D(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),D(e,"optout",e=>e.def.innerType._zod.optout),D(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>t3(e,r,t,n)):t3(e,r,t,n)}}),t5=L("$ZodPipe",(e,t)=>{e3.init(e,t),D(e,"values",e=>e.def.in._zod.values),D(e,"optin",e=>e.def.in._zod.optin),D(e,"optout",e=>e.def.out._zod.optout),D(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>t7(e,t.in,n)):t7(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>t7(e,t.out,n)):t7(r,t.out,n)}});function t7(e,t,n){return e.issues.some(e=>"unrecognized_keys"!==e.code)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}let ne=L("$ZodReadonly",(e,t)=>{e3.init(e,t),D(e,"propValues",e=>e.def.innerType._zod.propValues),D(e,"values",e=>e.def.innerType._zod.values),D(e,"optin",e=>e.def.innerType?._zod?.optin),D(e,"optout",e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(nt):nt(r)}});function nt(e){return e.memo||(e.value=Object.freeze(e.value)),e}let nn=L("$ZodCustom",(e,t)=>{eO.init(e,t),e3.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>nr(t,n,r,e));nr(i,n,r,e)}});function nr(e,t,n,r){if(!e){let e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(j(e))}}class ni{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&"object"==typeof n&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(i=globalThis).__zod_globalRegistry??(i.__zod_globalRegistry=new ni);let no=globalThis.__zod_globalRegistry;function na(e,t){return new eA({check:"less_than",...k(t),value:e,inclusive:!1})}function ns(e,t){return new eA({check:"less_than",...k(t),value:e,inclusive:!0})}function nl(e,t){return new e$({check:"greater_than",...k(t),value:e,inclusive:!1})}function nu(e,t){return new e$({check:"greater_than",...k(t),value:e,inclusive:!0})}function nc(e,t){return new eP({check:"multiple_of",...k(t),value:e})}
48function nd(e,t){return new eI({check:"max_length",...k(t),maximum:e})}function np(e,t){return new ej({check:"min_length",...k(t),minimum:e})}function nf(e,t){return new eC({check:"length_equals",...k(t),length:e})}function nh(e){return new eJ({check:"overwrite",tx:e})}function nm(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&p(e,t,n[t]);return e}function ng(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??no,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function ny(e,t,n,r,i){let o="function"==typeof t.unrepresentable?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if("any"===o)return!1;if(void 0===o||"throw"===o)throw Error(i);return Object.assign(n,o),!0}function nv(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,r);else{let n=a.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,n,r)}let o=e._zod.parent;o&&(a.ref||(a.ref=o),nv(o,t,r),t.seen.get(o).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&nm(a.schema,l),"input"===t.io&&function e(t,n){let r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type||"catch"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,r)||e(i.out,r);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],r))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,r))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,r))return!0;if(i.rest&&e(i.rest,r))return!0}return!1}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&"_prefault"in a.schema&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function n_(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function nb(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let r=t[1],{ref:i,defId:o}=(t=>{let r="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${r}/${n_(o)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:"#"};let o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+n_(o)}})(t);r.def={...r.schema},o&&(r.defId=o);let a=r.schema;for(let e in a)delete a[e];a.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
49
50Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){i(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){i(n);continue}}if(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&"ref"===e.reused){i(n);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}let nw=new Set(["type","properties","required","additionalProperties"]),nk=["oneOf","anyOf"];function nz(e){let t=e.additionalProperties;return void 0===t||!1===t||"object"!=typeof t||null===t?null:Object.keys(t).length?t:null}function nx(e){let t=[];for(let n of e){if("object"!=typeof n||"object"!==n.type)return null;for(let e in n)if(!nw.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??nz(n);null!=t&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}p(n,r,1===e.length?e[0]:nx(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:"object",properties:n};if(r.size&&(i.required=[...r]),t.every(e=>!1===e.additionalProperties))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=nz(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}
501===e.length?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function nE(e,t){let n=e.seen.get(t);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let r=t=>{let n=e.seen.get(t);if(null===n.ref)return;let i=n.def??n.schema,o={...i},a=n.ref;if(n.ref=null,a){r(a);let n=e.seen.get(a),s=n.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):nm(i,s),nm(i,o),t._zod.parent===a)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(s.$ref&&n.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==a){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if("openapi-3.0"!==e.target)for(let t of e.seen.entries())!function e(t){let n=t.anyOf;if(!Array.isArray(n)||0===n.length||void 0!==t.type)return;let r=[];for(let t of n){if(!t||"object"!=typeof t)return;e(t);let n=Object.keys(t);if(1!==n.length||"type"!==n[0])return;let i=t.type;for(let e of Array.isArray(i)?i:[i]){if("string"!=typeof e)return;r.includes(e)||r.push(e)}}delete t.anyOf,t.type=1===r.length?r[0]:r}(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])!function(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of nw)if(t in e)return;let n=t.filter(e=>nk.some(t=>Array.isArray(e[t]))),r=null;if(n.length){let e=n[0],i=nk.find(t=>Array.isArray(e[t]));if(1!==Object.keys(e).length)return;let o=t.filter(t=>t!==e),a=e[i].map(e=>nx([...o,e]));if(a.some(e=>!e))return;r={[i]:a}}else r=nx(t);r&&(delete e.allOf,nm(e,r))}(e)}}let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}nm(i,n.defId?n.schema:n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&i.id===o&&delete i.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,p(a,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:nO(t,"input",e.processors),output:nO(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch(e){throw Error("Error converting schema to JSON.")}}let nO=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r??{},a=ng({...i??{},target:o,io:t,processors:n});return nv(e,a),nb(a,e),nE(a,e)},nS={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""};new WeakMap;let nT=Symbol();function nA(e,t,n,r,i){let o=!1,a=JSON.stringify(e,(e,t)=>"bigint"!=typeof t?t:(o=!0,null));return o?(ny(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),nT):JSON.parse(a)}let n$=(e,t,n,r)=>{let i=e._zod.def;nv(i.innerType,t,r),t.seen.get(e).ref=i.innerType},nP=new WeakSet([Object.prototype,Error.prototype]);function nN(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let nI=L("ZodError",(e,t)=>{eq.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);nP.has(n)||(nP.add(n),nN(n,"format",e=>t=>(function(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>r({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)r({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)r({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)n._errors.push(t(o));else{let r=n,i=0;for(;i<e.length;){let n=e[i],a=i===e.length-1;if("_errors"===n){a&&r._errors.push(t(o)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];a&&s._errors.push(t(o)),r=s,i++}}}};return r(e),n})(e,t)),nN(n,"flatten",e=>t=>(function(e,t=e=>e.message){let n={},r=[];for(let a of e.issues)if(a.path.length>0){var i,o;(i=a.path[0],o=()=>[],!Object.prototype.hasOwnProperty.call(n,i)&&("__proto__"===i?Object.defineProperty(n,i,{value:o(),writable:!0,enumerable:!0,configurable:!0}):n[i]=o()),n[i]).push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}})(e,t)),nN(n,"addIssue",e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,u,2)}),nN(n,"addIssues",e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,u,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},void 0,{Parent:Error}),nj=eQ(nI),nC=e0(nI),nR=e1(nI),nZ=e2(nI),nD=(e=>{let t=eQ(e),n=(e,r,i,o)=>t(e,r,i?{...i,direction:"backward"}:{direction:"backward"},eY(n,o));return n})(nI),nM=(e=>{let t=eQ(e),n=(e,r,i,o)=>t(e,r,i,eY(n,o));return n})(nI),nF=(e=>{let t=e0(e),n=async(e,r,i,o)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(e,r,a,eY(n,o))};return n})(nI),nL=(e=>{let t=e0(e),n=async(e,r,i,o)=>await t(e,r,i,eY(n,o));return n})(nI),nU=(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return e1(nI)(e,t,r)},nJ=(e,t,n)=>e1(nI)(e,t,n),nV=async(e,t,n)=>{let r=n?{...n,direction:"backward"}:{direction:"backward"};return e2(nI)(e,t,r)},nH=async(e,t,n)=>e2(nI)(e,t,n);function nB(){V.memoizer||H({memoizer:Y})}let nG=L("ZodType",(e,t)=>(V.localeError||H({localeError:(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};function r(e,t){return"number"!==e||"number"!=typeof t||Number.isFinite(t)?n[e]??e:String(t)}return n=>
50{switch(n.code){case"invalid_type":{let e=r(n.expected),t=r(function(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}(n.input),n.input);return`Invalid input: expected ${e}, received ${t}`}case"invalid_value":if(1===n.values.length)return`Invalid input: expected ${z(n.values[0])}`;return`Invalid option: expected one of ${l(n.values,"|")}`;case"too_big":{let t=n.exact?"exactly ":n.inclusive?"<=":"<",r=e[n.origin]??null;if(r)return`Too big: expected ${n.origin??"value"} to have ${t}${n.maximum.toString()} ${r.unit??"elements"}`;return`Too big: expected ${n.origin??"value"} to be ${t}${n.maximum.toString()}`}case"too_small":{let t=n.exact?"exactly ":n.inclusive?">=":">",r=e[n.origin]??null;if(r)return`Too small: expected ${n.origin} to have ${t}${n.minimum.toString()} ${r.unit}`;return`Too small: expected ${n.origin} to be ${t}${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Invalid string: must start with "${n.prefix}"`;if("ends_with"===n.format)return`Invalid string: must end with "${n.suffix}"`;if("includes"===n.format)return`Invalid string: must include "${n.includes}"`;if("regex"===n.format)return`Invalid string: must match pattern ${n.pattern}`;return`Invalid ${t[n.format]??n.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${l(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":if(n.options&&Array.isArray(n.options)&&n.options.length>0){let e=n.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}if(!1===n.inclusive)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}})()}),e3.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(f(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return w(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new rF({type:"custom",check:"custom",fn:e,...k(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){let n=function(e,t){let n=new eO({check:"custom",...k(t)});return n._zod.check=e,n}(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(j(e,t.value,n._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=n),e.continue??(e.continue=!n._zod.def.abort),t.issues.push(j(e)))},e(t.value,t)),t);return n}(e,t))},overwrite(e){return this.check(nh(e))},optional(){return rA(this)},exactOptional(){var e;return e=this,new r$({type:"optional",innerType:e})},nullable(){return rN(this)},nullish(){return rA(rN(this))},nonoptional(e){var t;return t=this,new rC({type:"nonoptional",innerType:t,...k(e)})},array(){return function(e,t){return new rb({type:"array",element:e,...k(void 0)})}(this)},or(e){return new rz({type:"union",options:[this,e],...k(void 0)})},and(e){var t;return t=this,new rx({type:"intersection",left:t,right:e})},transform(e){return rD(this,new rS({type:"transform",transform:e}))},default(e){var t,n;return t=this,n=e,new rI({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():v(n)}})},prefault(e){var t,n;return t=this,n=e,new rj({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof n?n():v(n)}})},catch(e){var t,n;return t=this,new rR({type:"catch",innerType:t,catchValue:"function"==typeof(n=e)?n:function(e){let t=()=>e;return t["~constantCatch"]=!0,t}(n)})},pipe(e){return rD(this,e)},readonly(){var e;return e=this,new rM({type:"readonly",innerType:e})},describe(e){let t=this.clone();return no.add(t,{description:e}),t},meta(...e){if(0===e.length)return no.get(this);let t=this.clone();return no.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return C(this,"~standard",{...e5(this),jsonSchema:{input:nO(this,"input"),output:nO(this,"output")}},!1)},set"~standard"(value){C(this,"~standard",value)},parse:function e(t,n){return nj(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await nC(this,t,n,{callee:e})},safeParse(e,t){return nR(this,e,t)},async safeParseAsync(e,t){return nZ(this,e,t)},get spa(){return this?.safeParseAsync},set spa(value){C(this,"spa",value)},encode:function e(t,n){return nD(this,t,n,{callee:e})},decode:function e(t,n){return nM(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await nF(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await nL(this,t,n,{callee:e})},safeEncode(e,t){return nU(this,e,t)},safeDecode(e,t){return nJ(this,e,t)},async safeEncodeAsync(e,t){return nV(this,e,t)},async safeDecodeAsync(e,t){return nH(this,e,t)},toJSONSchema(e){return((e,t={})=>n=>{let r=ng({...n,processors:t});return nv(e,r),nb(r,e),nE(r,e)})(this,{})(e)},get description(){return no.get(this)?.description},get _def(){return this._zod.def}}),nW=L("_ZodString",(e,t)=>{e7.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{n.type="string";let{minimum:i,maximum:o,format:a,patterns:s,contentEncoding:l,laxFormat:u}=e._zod.bag;if("number"==typeof i&&(n.minLength=i),"number"==typeof o&&(n.maxLength=o),a&&(n.format=nS[a]??a,""===n.format&&delete n.format,("time"===a||u)&&delete n.format),l&&(n.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,n,0);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(function(e,t){return new eZ({check:"string_format",format:"regex",...k(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new eF({check:"string_format",format:"includes",...k(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new eL({check:"string_format",format:"starts_with",...k(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new eU({check:"string_format",format:"ends_with",...k(t),suffix:e})}(...e))},min(...e){return this.check(np(...e))},max(...e){return this.check(nd(...e))},length(...e){return this.check(nf(...e))},nonempty(...e){return this.check(np(1,...e))},lowercase(e){return this.check(new eD({check:"string_format",format:"lowercase",...k(e)}))},uppercase(e){return this.check(new eM({check:"string_format",format:"up
50percase",...k(e)}))},trim(){return this.check(nh(e=>e.trim()))},normalize(...e){return this.check(function(e){return nh(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(nh(e=>e.toLowerCase()))},toUpperCase(){return this.check(nh(e=>e.toUpperCase()))},slugify(){return this.check(nh(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}}),nX=L("ZodString",(e,t)=>{e7.init(e,t),nW.init(e,t)},{email(e){return this.check(new n9({type:"string",format:"email",check:"string_format",abort:!1,...k(e)}))},url(e){return this.check(new n6({type:"string",format:"url",check:"string_format",abort:!1,...k(e)}))},jwt(e){return this.check(new rc({type:"string",format:"jwt",check:"string_format",abort:!1,...k(e)}))},emoji(e){return this.check(new n3({type:"string",format:"emoji",check:"string_format",abort:!1,...k(e)}))},guid(e){return this.check(new n2({type:"string",format:"guid",check:"string_format",abort:!1,...k(e)}))},uuid(e){return this.check(new n4({type:"string",format:"uuid",check:"string_format",abort:!1,...k(e)}))},uuidv4(e){return this.check(new n4({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...k(e)}))},uuidv6(e){return this.check(new n4({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...k(e)}))},uuidv7(e){return this.check(new n4({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...k(e)}))},nanoid(e){return this.check(new n8({type:"string",format:"nanoid",check:"string_format",abort:!1,...k(e)}))},cuid(e){return this.check(new n5({type:"string",format:"cuid",check:"string_format",abort:!1,...k(e)}))},cuid2(e){return this.check(new n7({type:"string",format:"cuid2",check:"string_format",abort:!1,...k(e)}))},ulid(e){return this.check(new re({type:"string",format:"ulid",check:"string_format",abort:!1,...k(e)}))},base64(e){return this.check(new rs({type:"string",format:"base64",check:"string_format",abort:!1,...k(e)}))},base64url(e){return this.check(new rl({type:"string",format:"base64url",check:"string_format",abort:!1,...k(e)}))},xid(e){return this.check(new rt({type:"string",format:"xid",check:"string_format",abort:!1,...k(e)}))},ksuid(e){return this.check(new rn({type:"string",format:"ksuid",check:"string_format",abort:!1,...k(e)}))},ipv4(e){return this.check(new rr({type:"string",format:"ipv4",check:"string_format",abort:!1,...k(e)}))},ipv6(e){return this.check(new ri({type:"string",format:"ipv6",check:"string_format",abort:!1,...k(e)}))},cidrv4(e){return this.check(new ro({type:"string",format:"cidrv4",check:"string_format",abort:!1,...k(e)}))},cidrv6(e){return this.check(new ra({type:"string",format:"cidrv6",check:"string_format",abort:!1,...k(e)}))},e164(e){return this.check(new ru({type:"string",format:"e164",check:"string_format",abort:!1,...k(e)}))},datetime(e){return this.check(new nY({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...k(e)}))},date(e){return this.check(new nQ({type:"string",format:"date",check:"string_format",...k(e)}))},time(e){return this.check(new n0({type:"string",format:"time",check:"string_format",precision:null,...k(e)}))},duration(e){return this.check(new n1({type:"string",format:"duration",check:"string_format",...k(e)}))}});function nq(e){return new nX({type:"string",...k(e)})}let nK=L("ZodStringFormat",(e,t)=>{te.init(e,t),nW.init(e,t)}),nY=L("ZodISODateTime",(e,t)=>{tf.init(e,t),nK.init(e,t)}),nQ=L("ZodISODate",(e,t)=>{th.init(e,t),nK.init(e,t)}),n0=L("ZodISOTime",(e,t)=>{tm.init(e,t),nK.init(e,t)}),n1=L("ZodISODuration",(e,t)=>{tg.init(e,t),nK.init(e,t)}),n9=L("ZodEmail",(e,t)=>{tr.init(e,t),nK.init(e,t)}),n2=L("ZodGUID",(e,t)=>{tt.init(e,t),nK.init(e,t)}),n4=L("ZodUUID",(e,t)=>{tn.init(e,t),nK.init(e,t)}),n6=L("ZodURL",(e,t)=>{to.init(e,t),nK.init(e,t)}),n3=L("ZodEmoji",(e,t)=>{ta.init(e,t),nK.init(e,t)}),n8=L("ZodNanoID",(e,t)=>{ts.init(e,t),nK.init(e,t)}),n5=L("ZodCUID",(e,t)=>{tl.init(e,t),nK.init(e,t)}),n7=L("ZodCUID2",(e,t)=>{tu.init(e,t),nK.init(e,t)}),re=L("ZodULID",(e,t)=>{tc.init(e,t),nK.init(e,t)}),rt=L("ZodXID",(e,t)=>{td.init(e,t),nK.init(e,t)}),rn=L("ZodKSUID",(e,t)=>{tp.init(e,t),nK.init(e,t)}),rr=L("ZodIPv4",(e,t)=>{ty.init(e,t),nK.init(e,t)}),ri=L("ZodIPv6",(e,t)=>{tb.init(e,t),nK.init(e,t)}),ro=L("ZodCIDRv4",(e,t)=>{tw.init(e,t),nK.init(e,t)}),ra=L("ZodCIDRv6",(e,t)=>{tk.init(e,t),nK.init(e,t)}),rs=L("ZodBase64",(e,t)=>{tx.init(e,t),nK.init(e,t)}),rl=L("ZodBase64URL",(e,t)=>{tE.init(e,t),nK.init(e,t)}),ru=L("ZodE164",(e,t)=>{tO.init(e,t),nK.init(e,t)}),rc=L("ZodJWT",(e,t)=>{tS.init(e,t),nK.init(e,t)}),rd=L("ZodNumber",(e,t)=>{tT.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let{minimum:i,maximum:o,format:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof a&&a.includes("int")?n.type="integer":n.type="number";let c="number"==typeof u&&u>=(i??-1/0),d="number"==typeof l&&l<=(o??1/0),p="draft-04"===t.target||"openapi-3.0"===t.target;c?p?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:"number"==typeof i&&(n.minimum=i),d?p?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l:"number"==typeof o&&(n.maximum=o),"number"==typeof s&&(Number.isFinite(s)&&0!==s?n.multipleOf=Math.abs(s):ny(e,t,n,r,`A multipleOf divisor of ${s} cannot be represented in JSON Schema`))})(e,t,n,r);let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null},{gt(e,t){return this.check(nl(e,t))},gte(e,t){return this.check(nu(e,t))},min(e,t){return this.check(nu(e,t))},lt(e,t){return this.check(na(e,t))},lte(e,t){return this.check(ns(e,t))},max(e,t){return this.check(ns(e,t))},int(e){return this.check(rh(e))},safe(e){return this.check(rh(e))},positive(e){return this.check(nl(0,e))},nonnegative(e){return this.check(nu(0,e))},negative(e){return this.check(na(0,e))},nonpositive(e){return this.check(ns(0,e))},multipleOf(e,t){return this.check(nc(e,t))},step(e,t){return this.check(nc(e,t))},finite(){return this}});function rp(e){return new rd({type:"number",checks:[],...k(e)})}let rf=L("ZodNumberFormat",(e,t)=>{tA.init(e,t),rd.init(e,t)});function rh(e){return new rf({type:"number",check:"number_format",abort:!1,format:"safeint",...k(e)})}let rm=L("ZodBoolean",(e,t)=>{t$.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.type="boolean"}});function rg(e){return new rm({type:"boolean",...k(e)})}let ry=L("ZodUnknown",(e,t)=>{tP.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function rv(){return new ry({type:"unknown"})}let r_=L("ZodNever",(e,t)=>{tN.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{t.not={}}}),rb=L("ZodArray",(e,t)=>{nB(),tj.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,{minimum:o,maximum:a}=e._zod.bag;"number"==typeof o&&(n.minItems=o),"number"==typeof a&&(n.maxItems=a),n.type="array",n.items=nv(i.element,t,{...r,path:[...r.path,"items"]})})(e,t,n,r),e.element=t.element},{min(e,t){return this.check(np(e,t))},nonempty(e){return this.check(np(1,e))},max(e,t){return this.check(nd(e,t))},length(e,t){return this.check(nf(e,t))},unwrap(){return this.element}}),rw=L("ZodObject",(e,t)=>{nB(),tL.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,o=i.shape;if(Object.getOwnPropertySymbols(o).length&&ny(e,t,n,r,"Symbol keys cannot be represented in JSON Schema"))return;for(let e in n.type="object",n.properties={},o)p(n.properties,e,nv(o[e],t,{...r,path:[...r.path,"properties",e]}));let a=new Set([...new Set(Object.keys(o))].filter(e=>{let n=i.shape[e];return"input"===t.io?void 0===function e(t){let n=t._zod.def;return"pipe"===n.type&&n.in._zod.traits.has("$ZodTransform")?e(n.out):"catch"===n.type?e(n.innerType):t._zod.optin}(n):void 0===n._zod.optout}));a.size>0&&(n.required=Array.from(a)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=nv(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)})(e,t,n,r),function(e,t,n,r){let i=function(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};
50return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}(e,"shape",e=>e._zod.def.shape,!1)},{keyof(){var e;return new rE({type:"enum",entries:Array.isArray(e=Object.keys(this._zod.def.shape))?Object.fromEntries(e.map(e=>[e,e])):e,...k(void 0)})},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:rv()})},loose(){return this.clone({...this._zod.def,catchall:rv()})},strict(){return this.clone({...this._zod.def,catchall:new r_({type:"never",...k(void 0)})})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return function(e,t){if(!y(t))throw Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e of Reflect.ownKeys(t))if(void 0!==Object.getOwnPropertyDescriptor(n,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=f(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return p(this,"shape",n),n}});return w(e,r)}(this,e)},safeExtend(e){var t=this;if(!y(e))throw Error("Invalid input to safeExtend: expected a plain object");let n=f(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return p(this,"shape",n),n}});return w(t,n)},merge(e){var t=this;if(!e?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=f(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return p(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return w(t,n)},pick(e){return function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=f(e._zod.def,{get shape(){let e={};for(let r of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,r))throw Error(`Unrecognized key: "${String(r)}"`);t[r]&&p(e,r,n.shape[r])}return p(this,"shape",e),e},checks:[]});return w(e,i)}(this,e)},omit(e){return function(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=f(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,e))throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&delete r[e]}return p(this,"shape",r),r},checks:[]});return w(e,i)}(this,e)},partial(...e){return E(rT,this,e[0])},exactPartial(...e){return E(r$,this,e[0],"exactPartial")},required(...e){return function(e,t,n){let r=f(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(let t of Reflect.ownKeys(r))i[t]=new e({type:"nonoptional",innerType:r[t]});return p(this,"shape",i),i}});return w(t,r)}(rC,this,e[0])}});function rk(e,t){return new rw({type:"object",shape:e??{},...k(t)})}let rz=L("ZodUnion",(e,t)=>{tJ.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,o=!1===i.inclusive,a=i.options.map((e,n)=>nv(e,t,{...r,path:[...r.path,o?"oneOf":"anyOf",n]}));o?n.oneOf=a:n.anyOf=a})(e,t,n,r),e.options=t.options}),rx=L("ZodIntersection",(e,t)=>{tV.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,o=nv(i.left,t,{...r,path:[...r.path,"allOf",0]}),a=nv(i.right,t,{...r,path:[...r.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length,l=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=l,t.intersections.push(l)})(e,t,n,r)}),rE=L("ZodEnum",(e,t)=>{tX.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=s(e._zod.def.entries);if(0===i.length){n.not={};return}i.every(e=>"number"==typeof e)&&(n.type="number"),i.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=i})(e,0,n,0),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new rE({...t,checks:[],...k(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new rE({...t,checks:[],...k(r),entries:i})}});function rO(e,t){return new rE({type:"enum",entries:e,...k(t)})}let rS=L("ZodTransform",(e,t)=>{nB(),tq.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{ny(e,t,n,r,"Transforms cannot be represented in JSON Schema")},e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new J(e.constructor.name);n.addIssue=r=>{"string"==typeof r?n.issues.push(j(r,n.value,t)):(r.fatal&&(r.continue=!1),r.code??(r.code="custom"),"input"in r||(r.input=n.value),r.inst??(r.inst=e),n.issues.push(j(r)))};
50let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}}),rT=L("ZodOptional",(e,t)=>{tY.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n$(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rA(e){return new rT({type:"optional",innerType:e})}let r$=L("ZodExactOptional",(e,t)=>{tQ.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n$(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),rP=L("ZodNullable",(e,t)=>{t0.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,o=nv(i.innerType,t,r),a=t.seen.get(e);"openapi-3.0"===t.target?(a.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rN(e){return new rP({type:"nullable",innerType:e})}let rI=L("ZodDefault",(e,t)=>{t1.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;nv(i.innerType,t,r),t.seen.get(e).ref=i.innerType;let o=nA(i.defaultValue,e,t,n,r);o!==nT&&(n.default=o)})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),rj=L("ZodPrefault",(e,t)=>{t2.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;if(nv(i.innerType,t,r),t.seen.get(e).ref=i.innerType,"input"!==t.io)return;let o=nA(i.defaultValue,e,t,n,r);o!==nT&&(n._prefault=o)})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),rC=L("ZodNonOptional",(e,t)=>{t4.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;nv(i.innerType,t,r),t.seen.get(e).ref=i.innerType})(e,t,0,r),e.unwrap=()=>e._zod.def.innerType}),rR=L("ZodCatch",(e,t)=>{t8.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i,o=e._zod.def;nv(o.innerType,t,r),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{ny(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=i})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),rZ=L("ZodPipe",(e,t)=>{t5.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),a="input"===t.io?o?i.out:i.in:i.out;nv(a,t,r),t.seen.get(e).ref=a})(e,t,0,r),e.in=t.in,e.out=t.out});function rD(e,t){return new rZ({type:"pipe",in:e,out:t})}let rM=L("ZodReadonly",(e,t)=>{ne.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>((e,t,n,r)=>{let i=e._zod.def;nv(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0})(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),rF=L("ZodCustom",(e,t)=>{nn.init(e,t),nG.init(e,t),e._zod.processJSONSchema=(t,n,r)=>{ny(e,t,n,r,"Custom types cannot be represented in JSON Schema")}})},60762:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(67067),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e}
50,enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),k(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!=(e=this.children[0])?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null==(n=e["x-attribsNamespace"])?void 0:n[t],prefix:null==(r=e["x-attribsPrefix"])?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function _(e){return e.type===a.ElementType.Comment}function b(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function k(e,t){if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(_(e))n=new c(e.data);else if(g(e)){var n,r=t?z(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){var r=t?z(e.children):[],a=new f(r);r.forEach(function(e){return e.parent=a}),n=a}else if(w(e)){var r=t?z(e.children):[],s=new h(r);r.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(b(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function z(e){for(var t=e.map(function(e){return k(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=_,t.isDirective=b,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=k}
50,62588:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i,zd:()=>r.domToReact});var r=n(79693);let i=r.default||r},65817:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):!!(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e){if(!e.trim()){t.style={};return}try{t.style=(0,o.default)(e,s)}catch(e){t.style={}}}};var i=n(53239),o=r(n(99054)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},67067:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},79693:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return e?(0,o.default)((0,i.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]};var i=r(n(99772));t.htmlToDOM=i.default,t.attributesToProps=r(n(8263)).default;var o=r(n(99211));t.domToReact=o.default;var a=n(3210);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var s={lowerCaseAttributeNames:!1}},81863:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRen
50dering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xl
50inkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},90679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,f=(e=(0,i.escapeSpecialCharacters)(e)).match(l),h=f&&f[1]?f[1].toLowerCase():"";switch(h){case o:var m=p(e);if(!u.test(e)){var g=m.querySelector(a);null==(t=null==g?void 0:g.parentNode)||t.removeChild(g)}if(!c.test(e)){var g=m.querySelector(s);null==(n=null==g?void 0:g.parentNode)||n.removeChild(g)}return m.querySelectorAll(o);case a:case s:var y=d(e).querySelectorAll(h);if(c.test(e)&&u.test(e))return y[0].parentNode.childNodes;return y;default:if(r)return r(e);var g=d(e,s).querySelector(s);return g.childNodes}};var r,i=n(49068),o="html",a="head",s="body",l=/<([a-zA-Z]+[0-9]?)/,u=/<head[^]*>/i,c=/<body[^]*>/i,d=function(e,t){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},p=function(e,t){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},f="object"==typeof window&&window.DOMParser;if("function"==typeof f){var h=new f;d=p=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),h.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();d=function(e,t){if(t){var n=m.documentElement.querySelector(t);return n&&(n.innerHTML=e),m}return m.documentElement.innerHTML=e,m}}var g="object"==typeof document&&document.createElement("template");g&&g.content&&(r=function(e){return g.innerHTML=e,g.content.childNodes})},99054:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(654)),i=n(17806);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},99211:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],i="function"==typeof n.replace,l=n.transform||a.returnFirstArg,u=n.library||s,c=u.cloneElement,d=u.createElement,p=u.isValidElement,f=t.length,h=0;h<f;h++){var m,g=t[h];if(i){var y=n.replace(g,h);if(p(y)){f>1&&(y=c(y,{key:y.key||h})),r.push(l(y,g,h));continue}}if("text"===g.type){var v=!g.data.trim().length;if(v&&g.parent&&!(0,a.canTextBeChildOfNode)(g.parent)||n.trim&&v)continue;r.push(l(g.data,g,h));continue}var _={};(m=g,a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===m.type&&(0,a.isCustomComponent)(m.name,m.attribs))?((0,a.setStyleProp)(g.attribs.style,g.attribs),_=g.attribs):g.attribs&&(_=(0,o.default)(g.attribs,g.name));var b=void 0;switch(g.type){case"script":case"style":g.children[0]&&(_.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?_.defaultValue=g.children[0].data:g.children&&g.children.length&&(b=e(g.children,n));break;default:continue}f>1&&(_.key=h),r.push(l(d(g.name,_,b),g,h))}return 1===r.length?r[0]:r};var i=n(53239),o=r(n(8263)),a=n(65817),s={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement}},99772:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,o.formatDOM)((0,i.default)(e),null,n)};var i=r(n(90679)),o=n(49068),a=/<(![a-zA-Z\s]+)>/}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.