@noxickon/onyx 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{Button-CLMaoxRW.js → Button-BV4_pmoH.js} +513 -513
- package/dist/chunks/{Button-CZYAHivj.js → Button-CU-zvMVL.js} +1 -1
- package/dist/chunks/{Input-BQQT5eZ0.js → Input-BraK4lDE.js} +2 -2
- package/dist/chunks/{Input-DJZcvJdP.js → Input-C5dK8VSu.js} +1 -1
- package/dist/chunks/{index-XTQUUzZ1.js → index-DGjVEo0G.js} +1 -1
- package/dist/chunks/{index-1-zQ3RaM.js → index-Dgwp7JKP.js} +9 -9
- package/dist/chunks/{index-BgUMV1hv.js → index-DnVdNmco.js} +1 -1
- package/dist/chunks/{index-CjVXr8mh.js → index-rUH_mzKt.js} +1 -1
- package/dist/chunks/{jsx-runtime-C5mzlN2N.js → jsx-runtime--oOP9f8K.js} +15 -15
- package/dist/chunks/{jsx-runtime-DUiatUiq.js → jsx-runtime-CITbqOLs.js} +2 -2
- package/dist/chunks/{useAuth-CfKOZqhG.js → useAuth-BwjRd05B.js} +1 -1
- package/dist/chunks/{useAuth-C-TIgBfr.js → useAuth-CR3bAGqp.js} +3 -3
- package/dist/chunks/{useForm-BIKRbGHj.js → useForm-BAbY8X4X.js} +1 -1
- package/dist/chunks/{useForm-BZEaiRaa.js → useForm-cxgyAiOs.js} +1 -1
- package/dist/chunks/{useQuery-B_ce5e8f.js → useQuery--6GP2-dN.js} +1 -1
- package/dist/chunks/{useQuery-CJdYhuQu.js → useQuery-mFRa2XuW.js} +1 -1
- package/dist/context/context.cjs.js +1 -1
- package/dist/context/context.es.js +1 -1
- package/dist/hooks/hooks.cjs.js +1 -1
- package/dist/hooks/hooks.es.js +4 -4
- package/dist/index.d.ts +6 -10
- package/dist/layout/layout.cjs.js +1 -1
- package/dist/layout/layout.es.js +2 -2
- package/dist/onyx.cjs.js +1 -12
- package/dist/onyx.es.js +762 -2057
- package/dist/pages/pages.cjs.js +1 -1
- package/dist/pages/pages.es.js +5 -5
- package/package.json +1 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime
|
|
1
|
+
import { j as e } from "./jsx-runtime--oOP9f8K.js";
|
|
2
2
|
import { useId as S, useState as q, useEffect as C } from "react";
|
|
3
|
-
import { t as x, a as p } from "./Button-
|
|
3
|
+
import { t as x, a as p } from "./Button-BV4_pmoH.js";
|
|
4
4
|
import { i as G } from "./isObject-vmP43YLW.js";
|
|
5
5
|
const H = ({
|
|
6
6
|
children: r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-CITbqOLs.js"),f=require("react"),x=require("./Button-CU-zvMVL.js"),S=require("./isObject-BDHKUJKN.js"),I=({children:l,className:r,disabled:s=!1,htmlFor:t,required:n=!1})=>e.jsxRuntimeExports.jsxs("label",{id:`${t}-label`,className:x.twMerge("block text-sm font-medium text-neutral-300",s&&"cursor-not-allowed text-neutral-500",r),htmlFor:t,children:[l,n&&e.jsxRuntimeExports.jsx("span",{className:"ml-1 text-rose-400",children:"*"})]}),y=({children:l,className:r,disabled:s=!1,id:t})=>e.jsxRuntimeExports.jsx("p",{id:t,className:x.twMerge("text-xs text-neutral-400",s&&"text-neutral-500",r),children:l}),j=({children:l,className:r,icon:s="mdiAlertCircleOutline",id:t})=>l?e.jsxRuntimeExports.jsxs("div",{id:t,className:x.twMerge("flex max-w-full items-center gap-1 text-xs text-rose-400",r),role:"alert",children:[s?e.jsxRuntimeExports.jsx(x.OxIcon,{className:"flex-shrink-0",icon:s,size:.8}):null,e.jsxRuntimeExports.jsx("p",{className:"min-w-0 break-words",children:l})]}):null,C=({children:l,className:r,fullWidth:s=!1,noValidate:t=!0,...n})=>e.jsxRuntimeExports.jsx("form",{className:x.twMerge(s&&"w-full",r),noValidate:t,...n,children:l}),G=({className:l,description:r,disabled:s=!1,error:t=!1,errorMessage:n,icon:a="",iconPosition:c="left",id:L,label:h,name:v,onChange:m,placeholder:$="Input placeholder...",readOnly:M=!1,required:E=!1,showMaxLength:k=!1,type:q="text",value:i,...g})=>{const z=f.useId(),[A,R]=f.useState(typeof i=="string"?i.length:0),d=L||z,w=`${d}-input`,O=`${d}-description`,p=`${d}-error`,b=g.maxLength,N=t&&typeof n=="string",B=t&&S.isObject(n);f.useEffect(()=>{typeof i=="string"&&R(i.length)},[i]);const D=u=>{const o=u.target.value.length;R(o),m==null||m(u)},F=e.jsxRuntimeExports.jsxs("div",{className:"relative flex w-full items-center",children:[a!==""&&c==="left"?e.jsxRuntimeExports.jsx("div",{className:"absolute left-3 flex items-center",children:e.jsxRuntimeExports.jsx(x.OxIcon,{icon:a,size:.8})}):null,e.jsxRuntimeExports.jsx("input",{id:w,"aria-describedby":[r?O:"",N?p:""].filter(Boolean).join(" ")||void 0,"aria-invalid":t,"aria-required":E,className:x.twMerge("flex h-10 w-full rounded-lg bg-transparent px-2 py-2 text-sm text-white","default-outset-focus","placeholder:text-muted-foreground placeholder:text-neutral-500","default-disabled",a&&(c==="left"?"pl-10":"pr-10"),t?"default-error-border":"default-border",l),disabled:s,name:v,placeholder:$,readOnly:M,type:q,value:i,onChange:D,...g}),a!==""&&c==="right"?e.jsxRuntimeExports.jsx("div",{className:"absolute right-3 flex items-center",children:e.jsxRuntimeExports.jsx(x.OxIcon,{icon:a,size:.8})}):null]});return e.jsxRuntimeExports.jsxs("div",{className:"flex w-full flex-col gap-1",children:[h?e.jsxRuntimeExports.jsx(I,{disabled:s,htmlFor:w,required:E,children:h}):null,F,k&&typeof b=="number"?e.jsxRuntimeExports.jsxs("div",{className:"pointer-events-none mt-1 text-right text-xs text-neutral-400",children:[A,"/",b]}):null,r?e.jsxRuntimeExports.jsx(y,{id:O,disabled:s,children:r}):null,N?e.jsxRuntimeExports.jsx(j,{id:p,children:n}):null,B&&Array.isArray(n)?e.jsxRuntimeExports.jsx("div",{className:"mt-1 space-y-1",children:n.map((u,o)=>e.jsxRuntimeExports.jsx(j,{id:`${p}-${o}`,children:u},o))}):null]})};exports.OxDescription=y;exports.OxErrorMessage=j;exports.OxForm=C;exports.OxInput=G;exports.OxLabel=I;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const U=require("./index-
|
|
1
|
+
"use strict";const U=require("./index-rUH_mzKt.js");function L(e,t){if(!!!e)throw new Error(t)}function ee(e){return typeof e=="object"&&e!==null}function te(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const ne=/\r\n|[\n\r]/g;function F(e,t){let n=0,s=1;for(const i of e.body.matchAll(ne)){if(typeof i.index=="number"||te(!1),i.index>=t)break;n=i.index+i[0].length,s+=1}return{line:s,column:t+1-n}}function ie(e){return G(e.source,F(e.source,e.start))}function G(e,t){const n=e.locationOffset.column-1,s="".padStart(n)+e.body,i=t.line-1,r=e.locationOffset.line-1,a=t.line+r,u=t.line===1?n:0,l=t.column+u,E=`${e.name}:${a}:${l}
|
|
2
2
|
`,p=s.split(/\r\n|[\n\r]/g),N=p[i];if(N.length>120){const m=Math.floor(l/80),b=l%80,f=[];for(let I=0;I<N.length;I+=80)f.push(N.slice(I,I+80));return E+V([[`${a} |`,f[0]],...f.slice(1,m+1).map(I=>["|",I]),["|","^".padStart(b)],["|",f[m+1]]])}return E+V([[`${a-1} |`,p[i-1]],[`${a} |`,N],["|","^".padStart(l)],[`${a+1} |`,p[i+1]]])}function V(e){const t=e.filter(([s,i])=>i!==void 0),n=Math.max(...t.map(([s])=>s.length));return t.map(([s,i])=>s.padStart(n)+(i?" "+i:"")).join(`
|
|
3
3
|
`)}function se(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class M extends Error{constructor(t,...n){var s,i,r;const{nodes:a,source:u,positions:l,path:E,originalError:p,extensions:N}=se(n);super(t),this.name="GraphQLError",this.path=E??void 0,this.originalError=p??void 0,this.nodes=B(Array.isArray(a)?a:a?[a]:void 0);const m=B((s=this.nodes)===null||s===void 0?void 0:s.map(f=>f.loc).filter(f=>f!=null));this.source=u??(m==null||(i=m[0])===null||i===void 0?void 0:i.source),this.positions=l??(m==null?void 0:m.map(f=>f.start)),this.locations=l&&u?l.map(f=>F(u,f)):m==null?void 0:m.map(f=>F(f.source,f.start));const b=ee(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(r=N??b)!==null&&r!==void 0?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,M):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ var N = function(t, e) {
|
|
|
23
23
|
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
24
24
|
}, N(t, e);
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function $(t, e) {
|
|
27
27
|
if (typeof e != "function" && e !== null)
|
|
28
28
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
29
29
|
N(t, e);
|
|
@@ -56,10 +56,10 @@ function v(t, e, r) {
|
|
|
56
56
|
}
|
|
57
57
|
var S = "Invariant Violation", T = Object.setPrototypeOf, oe = T === void 0 ? function(t, e) {
|
|
58
58
|
return t.__proto__ = e, t;
|
|
59
|
-
} : T,
|
|
59
|
+
} : T, B = (
|
|
60
60
|
/** @class */
|
|
61
61
|
function(t) {
|
|
62
|
-
|
|
62
|
+
$(e, t);
|
|
63
63
|
function e(r) {
|
|
64
64
|
r === void 0 && (r = S);
|
|
65
65
|
var n = t.call(this, typeof r == "number" ? S + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
@@ -70,12 +70,12 @@ var S = "Invariant Violation", T = Object.setPrototypeOf, oe = T === void 0 ? fu
|
|
|
70
70
|
);
|
|
71
71
|
function p(t, e) {
|
|
72
72
|
if (!t)
|
|
73
|
-
throw new
|
|
73
|
+
throw new B(e);
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var J = ["debug", "log", "warn", "error", "silent"], ie = J.indexOf("log");
|
|
76
76
|
function E(t) {
|
|
77
77
|
return function() {
|
|
78
|
-
if (
|
|
78
|
+
if (J.indexOf(t) >= ie) {
|
|
79
79
|
var e = console[t] || console.log;
|
|
80
80
|
return e.apply(console, arguments);
|
|
81
81
|
}
|
|
@@ -143,7 +143,7 @@ var d = Object.assign(function(e, r) {
|
|
|
143
143
|
function Le(t) {
|
|
144
144
|
for (var e = [], r = 1; r < arguments.length; r++)
|
|
145
145
|
e[r - 1] = arguments[r];
|
|
146
|
-
return new
|
|
146
|
+
return new B(C(t, e) || M(t, e));
|
|
147
147
|
}
|
|
148
148
|
var P = Symbol.for("ApolloErrorMessageHandler_" + Y);
|
|
149
149
|
function X(t) {
|
|
@@ -345,7 +345,7 @@ var Se = function(t) {
|
|
|
345
345
|
}, We = (
|
|
346
346
|
/** @class */
|
|
347
347
|
function(t) {
|
|
348
|
-
|
|
348
|
+
$(e, t);
|
|
349
349
|
function e(r) {
|
|
350
350
|
var n = r.graphQLErrors, o = r.protocolErrors, i = r.clientErrors, s = r.networkError, a = r.errorMessage, u = r.extraInfo, l = t.call(this, a) || this;
|
|
351
351
|
return l.name = "ApolloError", l.graphQLErrors = n || [], l.protocolErrors = o || [], l.clientErrors = i || [], l.networkError = s || null, l.message = a || Se(l), l.extraInfo = u, l.cause = v(v(v([
|
|
@@ -584,7 +584,7 @@ export {
|
|
|
584
584
|
Ee as c,
|
|
585
585
|
Te as d,
|
|
586
586
|
qe as e,
|
|
587
|
-
|
|
587
|
+
$ as f,
|
|
588
588
|
F as g,
|
|
589
589
|
Fe as h,
|
|
590
590
|
d as i,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const se=require("./_commonjsHelpers-DwGv2jUC.js"),ae=require("react");function le(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var N=function(t,e){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},N(t,e)};function z(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");N(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}exports.__assign=function(){return exports.__assign=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},exports.__assign.apply(this,arguments)};function ce(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function y(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var E="Invariant Violation",D=Object.setPrototypeOf,ue=D===void 0?function(t,e){return t.__proto__=e,t}:D,V=function(t){z(e,t);function e(r){r===void 0&&(r=E);var n=t.call(this,typeof r=="number"?E+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=E,ue(n,e.prototype),n}return e}(Error);function p(t,e){if(!t)throw new V(e)}var
|
|
1
|
+
"use strict";const se=require("./_commonjsHelpers-DwGv2jUC.js"),ae=require("react");function le(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var N=function(t,e){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},N(t,e)};function z(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");N(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}exports.__assign=function(){return exports.__assign=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},exports.__assign.apply(this,arguments)};function ce(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function y(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var E="Invariant Violation",D=Object.setPrototypeOf,ue=D===void 0?function(t,e){return t.__proto__=e,t}:D,V=function(t){z(e,t);function e(r){r===void 0&&(r=E);var n=t.call(this,typeof r=="number"?E+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=E,ue(n,e.prototype),n}return e}(Error);function p(t,e){if(!t)throw new V(e)}var $=["debug","log","warn","error","silent"],fe=$.indexOf("log");function _(t){return function(){if($.indexOf(t)>=fe){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=_("debug"),t.log=_("log"),t.warn=_("warn"),t.error=_("error")})(p||(p={}));var B="3.13.8";function u(t){try{return t()}catch{}}const j=u(function(){return globalThis})||u(function(){return window})||u(function(){return self})||u(function(){return global})||u(function(){return u.constructor("return this")()});var I=new Map;function he(t){var e=I.get(t)||1;return I.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function pe(t,e){var r=he("stringifyForDisplay");return JSON.stringify(t,function(n,o){return o===void 0?r:o},e).split(JSON.stringify(r)).join("<undefined>")}function b(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof e=="number"){var o=e;e=R(o),e||(e=M(o,r),r=[])}t.apply(void 0,[e].concat(r))}}var f=Object.assign(function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e||p(e,R(r,n)||M(r,n))},{debug:b(p.debug),log:b(p.log),warn:b(p.warn),error:b(p.error)});function de(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new V(R(t,e)||M(t,e))}var L=Symbol.for("ApolloErrorMessageHandler_"+B);function J(t){if(typeof t=="string")return t;try{return pe(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function R(t,e){if(e===void 0&&(e=[]),!!t)return j[L]&&j[L](t,e.map(J))}function M(t,e){if(e===void 0&&(e=[]),!!t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:B,message:t,args:e.map(J)})))}var ge=u(function(){return navigator.product})=="ReactNative",Y=typeof Symbol=="function"&&typeof Symbol.for=="function",X=typeof u(function(){return window.document.createElement})=="function",ye=u(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,ve=(X||ge)&&!ye;function Z(t){return t!==null&&typeof t=="object"}function we(){}class U{constructor(e=1/0,r=we){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function k(){}const _e=k,be=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},me=typeof WeakMap<"u"?WeakMap:Map,Ee=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:k,unregister:k}},Oe=10024;class P{constructor(e=1/0,r=_e){this.max=e,this.dispose=r,this.map=new me,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let o=0;o<Oe;o++){const i=n.next().value;if(!i)break;this.unfinalizedNodes.delete(i);const s=i.key;delete i.key,i.keyRef=new be(s),this.registry.register(s,i,i)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Ee(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var O=new WeakSet;function ee(t){t.size<=(t.max||-1)||O.has(t)||(O.add(t),setTimeout(function(){t.clean(),O.delete(t)},100))}var Se=function(t,e){var r=new P(t,e);return r.set=function(n,o){var i=P.prototype.set.call(this,n,o);return ee(this),i},r},Ne=function(t,e){var r=new U(t,e);return r.set=function(n,o){var i=U.prototype.set.call(this,n,o);return ee(this),i},r},je=Symbol.for("apollo.cacheSize"),te=exports.__assign({},j[je]),ke={};function re(t,e){ke[t]=e}function A(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach(function(n){n&&Object.keys(n).forEach(function(o){var i=n[o];i!==void 0&&(r[o]=i)})}),r}function Ae(t,e){return A(t,e,e.variables&&{variables:A(exports.__assign(exports.__assign({},t&&t.variables),e.variables))})}function Ce(t){return t.hasOwnProperty("graphQLErrors")}var xe=function(t){var e=y(y(y([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(r){return Z(r)&&r.message||"Error message not found."}).join(`
|
|
2
2
|
`)},ze=function(t){z(e,t);function e(r){var n=r.graphQLErrors,o=r.protocolErrors,i=r.clientErrors,s=r.networkError,a=r.errorMessage,c=r.extraInfo,l=t.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=o||[],l.clientErrors=i||[],l.networkError=s||null,l.message=a||xe(l),l.extraInfo=c,l.cause=y(y(y([s],n||[],!0),o||[],!0),i||[],!0).find(function(v){return!!v})||null,l.__proto__=e.prototype,l}return e}(Error);const{toString:F,hasOwnProperty:Re}=Object.prototype,q=Function.prototype.toString,C=new Map;function Me(t,e){try{return x(t,e)}finally{C.clear()}}function x(t,e){if(t===e)return!0;const r=F.call(t),n=F.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Q(t,e))return!0;const o=W(t),i=W(e),s=o.length;if(s!==i.length)return!1;for(let a=0;a<s;++a)if(!Re.call(e,o[a]))return!1;for(let a=0;a<s;++a){const c=o[a];if(!x(t[c],e[c]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Q(t,e))return!0;const o=t.entries(),i=r==="[object Map]";for(;;){const s=o.next();if(s.done)break;const[a,c]=s.value;if(!e.has(a)||i&&!x(c,e.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let o=t.byteLength;if(o===e.byteLength)for(;o--&&t[o]===e[o];);return o===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const o=q.call(t);return o!==q.call(e)?!1:!Ie(o,De)}}return!1}function W(t){return Object.keys(t).filter(Te,t)}function Te(t){return this[t]!==void 0}const De="{ [native code] }";function Ie(t,e){const r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r}function Q(t,e){let r=C.get(t);if(r){if(r.has(e))return!0}else C.set(t,r=new Set);return r.add(e),!1}var S={exports:{}},G;function Le(){return G||(G=1,function(t){t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(t.exports,ae)}(S)),S.exports}var g=Le();const Ue=se.getDefaultExportFromCjs(g),ne=le({__proto__:null,default:Ue},[g]);var H=Y?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function oe(){f("createContext"in ne,54);var t=g.createContext[H];return t||(Object.defineProperty(g.createContext,H,{value:t=g.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}function Pe(t){var e=g.useContext(oe()),r=t||e.client;return f(!!r,58),r}exports.DocumentType=void 0;(function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation",t[t.Subscription=2]="Subscription"})(exports.DocumentType||(exports.DocumentType={}));var d;function K(t){var e;switch(t){case exports.DocumentType.Query:e="Query";break;case exports.DocumentType.Mutation:e="Mutation";break;case exports.DocumentType.Subscription:e="Subscription";break}return e}function ie(t){d||(d=new Se(te.parser||1e3));var e=d.get(t);if(e)return e;var r,n,o;f(!!t&&!!t.kind,70,t);for(var i=[],s=[],a=[],c=[],l=0,v=t.definitions;l<v.length;l++){var h=v[l];if(h.kind==="FragmentDefinition"){i.push(h);continue}if(h.kind==="OperationDefinition")switch(h.operation){case"query":s.push(h);break;case"mutation":a.push(h);break;case"subscription":c.push(h);break}}f(!i.length||s.length||a.length||c.length,71),f(s.length+a.length+c.length<=1,72,t,s.length,c.length,a.length),n=s.length?exports.DocumentType.Query:exports.DocumentType.Mutation,!s.length&&!a.length&&(n=exports.DocumentType.Subscription);var m=s.length?s:a.length?a:c;f(m.length===1,73,t,m.length);var w=m[0];r=w.variableDefinitions||[],w.name&&w.name.kind==="Name"?o=w.name.value:o="data";var T={name:o,type:n,variables:r};return d.set(t,T),T}ie.resetCache=function(){d=void 0};globalThis.__DEV__!==!1&&re("parser",function(){return d?d.size:0});function Fe(t,e){var r=ie(t),n=K(e),o=K(r.type);f(r.type===e,74,n,n,o)}exports.ApolloError=ze;exports.AutoCleanedStrongCache=Ne;exports.React=ne;exports.__extends=z;exports.__rest=ce;exports.cacheSizes=te;exports.canUseDOM=X;exports.canUseLayoutEffect=ve;exports.canUseSymbol=Y;exports.compact=A;exports.equal=Me;exports.getApolloContext=oe;exports.invariant=f;exports.isApolloError=Ce;exports.isNonNullObject=Z;exports.mergeOptions=Ae;exports.newInvariantError=de;exports.registerGlobalCache=re;exports.rehacktExports=g;exports.useApolloClient=Pe;exports.verifyDocumentType=Fe;
|
|
@@ -14,17 +14,17 @@ function re() {
|
|
|
14
14
|
if (F) return R;
|
|
15
15
|
F = 1;
|
|
16
16
|
var l = Symbol.for("react.transitional.element"), _ = Symbol.for("react.fragment");
|
|
17
|
-
function f(
|
|
18
|
-
var
|
|
19
|
-
if (s !== void 0 && (
|
|
17
|
+
function f(m, a, s) {
|
|
18
|
+
var d = null;
|
|
19
|
+
if (s !== void 0 && (d = "" + s), a.key !== void 0 && (d = "" + a.key), "key" in a) {
|
|
20
20
|
s = {};
|
|
21
21
|
for (var E in a)
|
|
22
22
|
E !== "key" && (s[E] = a[E]);
|
|
23
23
|
} else s = a;
|
|
24
24
|
return a = s.ref, {
|
|
25
25
|
$$typeof: l,
|
|
26
|
-
type:
|
|
27
|
-
key:
|
|
26
|
+
type: m,
|
|
27
|
+
key: d,
|
|
28
28
|
ref: a !== void 0 ? a : null,
|
|
29
29
|
props: s
|
|
30
30
|
};
|
|
@@ -41,9 +41,9 @@ var b = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
44
|
+
var $;
|
|
45
45
|
function te() {
|
|
46
|
-
return
|
|
46
|
+
return $ || ($ = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
47
|
function l(e) {
|
|
48
48
|
if (e == null) return null;
|
|
49
49
|
if (typeof e == "function")
|
|
@@ -107,7 +107,7 @@ function te() {
|
|
|
107
107
|
), _(e);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function m(e) {
|
|
111
111
|
if (e === p) return "<>";
|
|
112
112
|
if (typeof e == "object" && e !== null && e.$$typeof === g)
|
|
113
113
|
return "<...>";
|
|
@@ -125,7 +125,7 @@ function te() {
|
|
|
125
125
|
function s() {
|
|
126
126
|
return Error("react-stack-top-frame");
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function d(e) {
|
|
129
129
|
if (h.call(e, "key")) {
|
|
130
130
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
131
|
if (r && r.isReactWarning) return !1;
|
|
@@ -213,7 +213,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
o
|
|
214
214
|
), I[o + n] = !0);
|
|
215
215
|
}
|
|
216
|
-
if (o = null, t !== void 0 && (f(t), o = "" + t),
|
|
216
|
+
if (o = null, t !== void 0 && (f(t), o = "" + t), d(r) && (f(r.key), o = "" + r.key), "key" in r) {
|
|
217
217
|
t = {};
|
|
218
218
|
for (var P in r)
|
|
219
219
|
P !== "key" && (t[P] = r[P]);
|
|
@@ -246,7 +246,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
var y, N = {}, C = v["react-stack-bottom-frame"].bind(
|
|
247
247
|
v,
|
|
248
248
|
s
|
|
249
|
-
)(), Y = O(
|
|
249
|
+
)(), Y = O(m(s)), I = {};
|
|
250
250
|
b.Fragment = p, b.jsx = function(e, r, t, n, c) {
|
|
251
251
|
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
252
252
|
return j(
|
|
@@ -257,7 +257,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
257
257
|
n,
|
|
258
258
|
c,
|
|
259
259
|
u ? Error("react-stack-top-frame") : C,
|
|
260
|
-
u ? O(
|
|
260
|
+
u ? O(m(e)) : Y
|
|
261
261
|
);
|
|
262
262
|
}, b.jsxs = function(e, r, t, n, c) {
|
|
263
263
|
var u = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
@@ -269,14 +269,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
269
269
|
n,
|
|
270
270
|
c,
|
|
271
271
|
u ? Error("react-stack-top-frame") : C,
|
|
272
|
-
u ? O(
|
|
272
|
+
u ? O(m(e)) : Y
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
275
|
}()), b;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var D;
|
|
278
278
|
function ne() {
|
|
279
|
-
return
|
|
279
|
+
return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
|
|
280
280
|
}
|
|
281
281
|
var ae = ne();
|
|
282
282
|
export {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var $;function te(){return $||($=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case G:return"Suspense";case X:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case W:return"Portal";case z:return(e.displayName||"Context")+".Provider";case J:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function _(e){return""+e}function f(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function d(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function m(e){if(h.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){y||(y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function L(){var e=l(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function M(e,r,t,n,c,u,A,S){return t=u.ref,e={$$typeof:x,type:e,key:r,props:u,_owner:c},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:L}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function j(e,r,t,n,c,u,A,S){var o=r.children;if(o!==void 0)if(n)if(Q(o)){for(n=0;n<o.length;n++)w(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(o);if(h.call(r,"key")){o=l(e);var i=Object.keys(r).filter(function(K){return K!=="key"});n=0<i.length?"{key: someKey, "+i.join(": ..., ")+": ...}":"{key: someKey}",I[o+n]||(i=0<i.length?"{"+i.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,n,o,i,o),I[o+n]=!0)}if(o=null,t!==void 0&&(f(t),o=""+t),m(r)&&(f(r.key),o=""+r.key),"key"in r){t={};for(var P in r)P!=="key"&&(t[P]=r[P])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),M(e,o,u,c,a(),t,A,S)}function w(e){typeof e=="object"&&e!==null&&e.$$typeof===x&&e._store&&(e._store.validated=1)}var v=ee,x=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Object.prototype.hasOwnProperty,Q=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(e){return e()}};var y,N={},C=v["react-stack-bottom-frame"].bind(v,s)(),Y=O(d(s)),I={};b.Fragment=p,b.jsx=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!1,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)},b.jsxs=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!0,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)}}()),b}var
|
|
22
|
+
<%s key={someKey} {...props} />`,n,o,i,o),I[o+n]=!0)}if(o=null,t!==void 0&&(f(t),o=""+t),m(r)&&(f(r.key),o=""+r.key),"key"in r){t={};for(var P in r)P!=="key"&&(t[P]=r[P])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),M(e,o,u,c,a(),t,A,S)}function w(e){typeof e=="object"&&e!==null&&e.$$typeof===x&&e._store&&(e._store.validated=1)}var v=ee,x=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Object.prototype.hasOwnProperty,Q=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(e){return e()}};var y,N={},C=v["react-stack-bottom-frame"].bind(v,s)(),Y=O(d(s)),I={};b.Fragment=p,b.jsx=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!1,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)},b.jsxs=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!0,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)}}()),b}var D;function ne(){return D||(D=1,process.env.NODE_ENV==="production"?T.exports=re():T.exports=te()),T.exports}var oe=ne();exports.jsxRuntimeExports=oe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const f=require("./jsx-runtime-
|
|
1
|
+
"use strict";const f=require("./jsx-runtime-CITbqOLs.js"),m=require("./index-DGjVEo0G.js"),A=require("./useQuery--6GP2-dN.js"),s=require("react"),n=s.createContext({user:null,loading:!1,error:null,isLoggedIn:!1,isAdmin:!1,refreshUser:async()=>Promise.resolve()}),g=m.gql`
|
|
2
2
|
query getCurrentUser {
|
|
3
3
|
me {
|
|
4
4
|
id
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as h } from "./jsx-runtime
|
|
2
|
-
import { g as x } from "./index-
|
|
3
|
-
import { u as d } from "./useQuery-
|
|
1
|
+
import { j as h } from "./jsx-runtime--oOP9f8K.js";
|
|
2
|
+
import { g as x } from "./index-DnVdNmco.js";
|
|
3
|
+
import { u as d } from "./useQuery-mFRa2XuW.js";
|
|
4
4
|
import { createContext as g, useContext as A } from "react";
|
|
5
5
|
const t = g({
|
|
6
6
|
user: null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as Ee, useMemo as Ae, useCallback as P, useRef as fn } from "react";
|
|
2
2
|
import { i as Oe } from "./isObject-vmP43YLW.js";
|
|
3
|
-
import { k as N, p as ln, u as dn, v as hn, D as pn, _ as pe, o as mn, j as gn, e as Se } from "./index-
|
|
3
|
+
import { k as N, p as ln, u as dn, v as hn, D as pn, _ as pe, o as mn, j as gn, e as Se } from "./index-Dgwp7JKP.js";
|
|
4
4
|
function _n(e) {
|
|
5
5
|
return Number.isSafeInteger(e) && e >= 0;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const S=require("react"),Ee=require("./isObject-BDHKUJKN.js"),A=require("./index-CjVXr8mh.js");function an(e){return Number.isSafeInteger(e)&&e>=0}function fn(e){return e!=null&&typeof e!="function"&&an(e.length)}function ce(e){return e==="__proto__"}function Qe(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function et(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function ye(e){const t=[],n=e.length;if(n===0)return t;let r=0,o="",i="",s=!1;for(e.charCodeAt(0)===46&&(t.push(""),r++);r<n;){const c=e[r];i?c==="\\"&&r+1<n?(r++,o+=e[r]):c===i?i="":o+=c:s?c==='"'||c==="'"?i=c:c==="]"?(s=!1,t.push(o),o=""):o+=c:c==="["?(s=!0,o&&(t.push(o),o="")):c==="."?o&&(t.push(o),o=""):o+=c,r++}return o&&t.push(o),t}function tt(e,t,n){if(e==null)return n;switch(typeof t){case"string":{if(ce(t))return n;const r=e[t];return r===void 0?Qe(t)?tt(e,ye(t),n):n:r}case"number":case"symbol":{typeof t=="number"&&(t=et(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return ln(e,t,n);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),ce(t))return n;const r=e[t];return r===void 0?n:r}}}function ln(e,t,n){if(t.length===0)return n;let r=e;for(let o=0;o<t.length;o++){if(r==null||ce(t[o]))return n;r=r[t[o]]}return r===void 0?n:r}function hn(e){return e==null||typeof e!="object"&&typeof e!="function"}function nt(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function pe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function ue(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const rt="[object RegExp]",ot="[object String]",it="[object Number]",st="[object Boolean]",me="[object Arguments]",ct="[object Symbol]",ut="[object Date]",at="[object Map]",ft="[object Set]",lt="[object Array]",dn="[object Function]",ht="[object ArrayBuffer]",oe="[object Object]",pn="[object Error]",dt="[object DataView]",pt="[object Uint8Array]",mt="[object Uint8ClampedArray]",gt="[object Uint16Array]",_t="[object Uint32Array]",mn="[object BigUint64Array]",bt="[object Int8Array]",vt="[object Int16Array]",yt="[object Int32Array]",gn="[object BigInt64Array]",zt="[object Float32Array]",wt="[object Float64Array]";function $t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function L(e,t,n,r=new Map,o=void 0){const i=o==null?void 0:o(e,t,n,r);if(i!=null)return i;if(hn(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const s=new Array(e.length);r.set(e,s);for(let c=0;c<e.length;c++)s[c]=L(e[c],c,n,r,o);return Object.hasOwn(e,"index")&&(s.index=e.index),Object.hasOwn(e,"input")&&(s.input=e.input),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const s=new RegExp(e.source,e.flags);return s.lastIndex=e.lastIndex,s}if(e instanceof Map){const s=new Map;r.set(e,s);for(const[c,a]of e)s.set(c,L(a,c,n,r,o));return s}if(e instanceof Set){const s=new Set;r.set(e,s);for(const c of e)s.add(L(c,void 0,n,r,o));return s}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if($t(e)){const s=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,s);for(let c=0;c<e.length;c++)s[c]=L(e[c],c,n,r,o);return s}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const s=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,s),C(s,e,n,r,o),s}if(typeof File<"u"&&e instanceof File){const s=new File([e],e.name,{type:e.type});return r.set(e,s),C(s,e,n,r,o),s}if(e instanceof Blob){const s=new Blob([e],{type:e.type});return r.set(e,s),C(s,e,n,r,o),s}if(e instanceof Error){const s=new e.constructor;return r.set(e,s),s.message=e.message,s.name=e.name,s.stack=e.stack,s.cause=e.cause,C(s,e,n,r,o),s}if(typeof e=="object"&&_n(e)){const s=Object.create(Object.getPrototypeOf(e));return r.set(e,s),C(s,e,n,r,o),s}return e}function C(e,t,n=e,r,o){const i=[...Object.keys(t),...pe(t)];for(let s=0;s<i.length;s++){const c=i[s],a=Object.getOwnPropertyDescriptor(e,c);(a==null||a.writable)&&(e[c]=L(t[c],c,n,r,o))}}function _n(e){switch(ue(e)){case me:case lt:case ht:case dt:case st:case ut:case zt:case wt:case bt:case vt:case yt:case at:case it:case oe:case rt:case ft:case ot:case ct:case pt:case mt:case gt:case _t:return!0;default:return!1}}function bn(e){return L(e,void 0,e,new Map,void 0)}const vn=/^(?:0|[1-9]\d*)$/;function Zt(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return vn.test(e)}}function kt(e){return e!==null&&typeof e=="object"&&ue(e)==="[object Arguments]"}function Q(e,t){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&Qe(t)&&(e==null?void 0:e[t])==null?n=ye(t):n=[t],n.length===0)return!1;let r=e;for(let o=0;o<n.length;o++){const i=n[o];if((r==null||!Object.hasOwn(r,i))&&!((Array.isArray(r)||kt(r))&&Zt(i)&&i<r.length))return!1;r=r[i]}return!0}function yn(e){return typeof e=="symbol"||e instanceof Symbol}const zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/;function $n(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||yn(e)?!0:typeof e=="string"&&(wn.test(e)||!zn.test(e))||t!=null&&Object.hasOwn(t,e)}const Zn=(e,t,n)=>{const r=e[t];(!(Object.hasOwn(e,t)&&nt(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function kn(e,t,n,r){if(e==null&&!Ee.isObject(e))return e;const o=$n(t,e)?[t]:Array.isArray(t)?t:typeof t=="string"?ye(t):[t];let i=e;for(let s=0;s<o.length&&i!=null;s++){const c=et(o[s]);if(ce(c))continue;let a;if(s===o.length-1)a=n(i[c]);else{const f=i[c],g=r==null?void 0:r(f,c,e);a=g!==void 0?g:Ee.isObject(f)?f:Zt(o[s+1])?[]:{}}Zn(i,c,a),i=i[c]}return e}function In(e,t,n){return kn(e,t,()=>n,()=>{})}function Ae(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function En(e,t,n){return G(e,t,void 0,void 0,void 0,void 0,n)}function G(e,t,n,r,o,i,s){const c=s(e,t,n,r,o,i);if(c!==void 0)return c;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return K(e,t,i,s)}return K(e,t,i,s)}function K(e,t,n,r){if(Object.is(e,t))return!0;let o=ue(e),i=ue(t);if(o===me&&(o=oe),i===me&&(i=oe),o!==i)return!1;switch(o){case ot:return e.toString()===t.toString();case it:{const a=e.valueOf(),f=t.valueOf();return nt(a,f)}case st:case ut:case ct:return Object.is(e.valueOf(),t.valueOf());case rt:return e.source===t.source&&e.flags===t.flags;case dn:return e===t}n=n??new Map;const s=n.get(e),c=n.get(t);if(s!=null&&c!=null)return s===t;n.set(e,t),n.set(t,e);try{switch(o){case at:{if(e.size!==t.size)return!1;for(const[a,f]of e.entries())if(!t.has(a)||!G(f,t.get(a),a,e,t,n,r))return!1;return!0}case ft:{if(e.size!==t.size)return!1;const a=Array.from(e.values()),f=Array.from(t.values());for(let g=0;g<a.length;g++){const h=a[g],d=f.findIndex(m=>G(h,m,void 0,e,t,n,r));if(d===-1)return!1;f.splice(d,1)}return!0}case lt:case pt:case mt:case gt:case _t:case mn:case bt:case vt:case yt:case gn:case zt:case wt:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(!G(e[a],t[a],a,e,t,n,r))return!1;return!0}case ht:return e.byteLength!==t.byteLength?!1:K(new Uint8Array(e),new Uint8Array(t),n,r);case dt:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:K(new Uint8Array(e),new Uint8Array(t),n,r);case pn:return e.name===t.name&&e.message===t.message;case oe:{if(!(K(e.constructor,t.constructor,n,r)||Ae(e)&&Ae(t)))return!1;const f=[...Object.keys(e),...pe(e)],g=[...Object.keys(t),...pe(t)];if(f.length!==g.length)return!1;for(let h=0;h<f.length;h++){const d=f[h],m=e[d];if(!Object.hasOwn(t,d))return!1;const v=t[d];if(!G(m,v,d,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function An(){}function On(e,t){return En(e,t,An)}function Sn(e){const t=e==null?void 0:e.constructor,n=typeof t=="function"?t.prototype:Object.prototype;return e===n}function xn(e){return $t(e)}function Pn(e,t){const n={},r=Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o],s=e[i];n[i]=t(s,i,e)}return n}function ze(e){if(e==null)return!0;if(fn(e))return typeof e.splice!="function"&&typeof e!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(e))&&!xn(e)&&!kt(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return Sn(e)?t.filter(n=>n!=="constructor").length===0:t.length===0}return!0}var It=A.canUseDOM?A.rehacktExports.useLayoutEffect:A.rehacktExports.useEffect;function jn(e,t){var n=A.useApolloClient(t==null?void 0:t.client);A.verifyDocumentType(e,A.DocumentType.Mutation);var r=A.rehacktExports.useState({called:!1,loading:!1,client:n}),o=r[0],i=r[1],s=A.rehacktExports.useRef({result:o,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});It(function(){Object.assign(s.current,{client:n,options:t,mutation:e})});var c=A.rehacktExports.useCallback(function(f){f===void 0&&(f={});var g=s.current,h=g.options,d=g.mutation,m=A.__assign(A.__assign({},h),{mutation:d}),v=f.client||s.current.client;!s.current.result.loading&&!m.ignoreResults&&s.current.isMounted&&i(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:v});var p=++s.current.mutationId,E=A.mergeOptions(m,f);return v.mutate(E).then(function(z){var _,b,y=z.data,P=z.errors,j=P&&P.length>0?new A.ApolloError({graphQLErrors:P}):void 0,B=f.onError||((_=s.current.options)===null||_===void 0?void 0:_.onError);if(j&&B&&B(j,E),p===s.current.mutationId&&!E.ignoreResults){var W={called:!0,loading:!1,data:y,error:j,client:v};s.current.isMounted&&!A.equal(s.current.result,W)&&i(s.current.result=W)}var de=f.onCompleted||((b=s.current.options)===null||b===void 0?void 0:b.onCompleted);return j||de==null||de(z.data,E),z},function(z){var _;if(p===s.current.mutationId&&s.current.isMounted){var b={loading:!1,error:z,data:void 0,called:!0,client:v};A.equal(s.current.result,b)||i(s.current.result=b)}var y=f.onError||((_=s.current.options)===null||_===void 0?void 0:_.onError);if(y)return y(z,E),{data:void 0,errors:z};throw z})},[]),a=A.rehacktExports.useCallback(function(){if(s.current.isMounted){var f={called:!1,loading:!1,client:s.current.client};Object.assign(s.current,{mutationId:0,result:f}),i(f)}},[]);return A.rehacktExports.useEffect(function(){var f=s.current;return f.isMounted=!0,function(){f.isMounted=!1}},[]),[c,A.__assign({reset:a},o)]}function Nn(e,t){const n=[],r=[];for(let o=0;o<e.length;o++){const i=e[o];t(i)?n.push(i):r.push(i)}return[n,r]}function Rn(e,t){const n={...e};for(let r=0;r<t.length;r++){const o=t[r];delete n[o]}return n}function Mn(e){return typeof e=="string"}function u(e,t,n){function r(c,a){var f;Object.defineProperty(c,"_zod",{value:c._zod??{},enumerable:!1}),(f=c._zod).traits??(f.traits=new Set),c._zod.traits.add(e),t(c,a);for(const g in s.prototype)g in c||Object.defineProperty(c,g,{value:s.prototype[g].bind(c)});c._zod.constr=s,c._zod.def=a}const o=(n==null?void 0:n.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(c){var a;const f=n!=null&&n.Parent?new i:this;r(f,c),(a=f._zod).deferred??(a.deferred=[]);for(const g of f._zod.deferred)g();return f}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:c=>{var a,f;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(f=(a=c==null?void 0:c._zod)==null?void 0:a.traits)==null?void 0:f.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}class J extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Et={};function U(e){return Et}function Dn(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Un(e,t){return typeof t=="bigint"?t.toString():t}function At(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function X(e){return e==null}function we(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Fn(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}function $(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function $e(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function V(e){return JSON.stringify(e)}const Ot=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function ge(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Tn=At(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function _e(e){if(ge(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(ge(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const Ln=new Set(["string","number","symbol"]);function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function T(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function l(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Bn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Wn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Cn(e,t){const n={},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(n[o]=r.shape[o])}return T(e,{...e._zod.def,shape:n,checks:[]})}function Vn(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete n[o]}return T(e,{...e._zod.def,shape:n,checks:[]})}function Gn(e,t){if(!_e(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return $e(this,"shape",r),r},checks:[]};return T(e,n)}function Kn(e,t){return T(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return $e(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function qn(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const i in n){if(!(i in r))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=e?new e({type:"optional",innerType:r[i]}):r[i])}else for(const i in r)o[i]=e?new e({type:"optional",innerType:r[i]}):r[i];return T(t,{...t._zod.def,shape:o,checks:[]})}function Jn(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=new e({type:"nonoptional",innerType:r[i]}))}else for(const i in r)o[i]=new e({type:"nonoptional",innerType:r[i]});return T(t,{...t._zod.def,shape:o,checks:[]})}function q(e,t=0){var n;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Ze(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ee(e){return typeof e=="string"?e:e==null?void 0:e.message}function F(e,t,n){var o,i,s,c,a,f;const r={...e,path:e.path??[]};if(!e.message){const g=ee((s=(i=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:i.error)==null?void 0:s.call(i,e))??ee((c=t==null?void 0:t.error)==null?void 0:c.call(t,e))??ee((a=n.customError)==null?void 0:a.call(n,e))??ee((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input";r.message=g}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function St(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ke(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Y(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const xt=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Un,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pt=u("$ZodError",xt),jt=u("$ZodError",xt,{Parent:Error});function Yn(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Xn(e,t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c}));else if(s.code==="invalid_key")o({issues:s.issues});else if(s.code==="invalid_element")o({issues:s.issues});else if(s.path.length===0)r._errors.push(n(s));else{let c=r,a=0;for(;a<s.path.length;){const f=s.path[a];a===s.path.length-1?(c[f]=c[f]||{_errors:[]},c[f]._errors.push(n(s))):c[f]=c[f]||{_errors:[]},c=c[f],a++}}};return o(e),r}const Hn=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new J;if(s.issues.length){const c=new((o==null?void 0:o.Err)??e)(s.issues.map(a=>F(a,i,U())));throw Ot(c,o==null?void 0:o.callee),c}return s.value},Qn=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const c=new((o==null?void 0:o.Err)??e)(s.issues.map(a=>F(a,i,U())));throw Ot(c,o==null?void 0:o.callee),c}return s.value},Nt=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new J;return i.issues.length?{success:!1,error:new(e??Pt)(i.issues.map(s=>F(s,o,U())))}:{success:!0,data:i.value}},er=Nt(jt),Rt=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>F(s,o,U())))}:{success:!0,data:i.value}},tr=Rt(jt),nr=/^[cC][^\s-]{8,}$/,rr=/^[0-9a-z]+$/,or=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ir=/^[0-9a-vA-V]{20}$/,sr=/^[A-Za-z0-9]{27}$/,cr=/^[a-zA-Z0-9_-]{21}$/,ur=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ar=/^([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})$/,Oe=e=>e?new 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)$/,fr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lr="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hr(){return new RegExp(lr,"u")}const dr=/^(?:(?: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])$/,pr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,mr=/^((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])$/,gr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_r=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Mt=/^[A-Za-z0-9_-]*$/,br=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,vr=/^\+(?:[0-9]){6,14}[0-9]$/,Dt="(?:(?:\\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])))",yr=new RegExp(`^${Dt}$`);function Ut(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function zr(e){return new RegExp(`^${Ut(e)}$`)}function wr(e){const t=Ut({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Dt}T(?:${r})$`)}const $r=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Zr=/^\d+$/,kr=/^-?\d+(?:\.\d+)?/i,Ir=/true|false/i,Er=/^[^A-Z]*$/,Ar=/^[^a-z]*$/,O=u("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ft={number:"number",bigint:"bigint",object:"date"},Tt=u("$ZodCheckLessThan",(e,t)=>{O.init(e,t);const n=Ft[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Lt=u("$ZodCheckGreaterThan",(e,t)=>{O.init(e,t);const n=Ft[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Or=u("$ZodCheckMultipleOf",(e,t)=>{O.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Fn(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Sr=u("$ZodCheckNumberFormat",(e,t)=>{var s;O.init(e,t),t.format=t.format||"float64";const n=(s=t.format)==null?void 0:s.includes("int"),r=n?"int":"number",[o,i]=Wn[t.format];e._zod.onattach.push(c=>{const a=c._zod.bag;a.format=t.format,a.minimum=o,a.maximum=i,n&&(a.pattern=Zr)}),e._zod.check=c=>{const a=c.value;if(n){if(!Number.isInteger(a)){c.issues.push({expected:r,format:t.format,code:"invalid_type",input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?c.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):c.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}a<o&&c.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&c.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inst:e})}}),xr=u("$ZodCheckMaxSize",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;o.size<=t.maximum||r.issues.push({origin:St(o),code:"too_big",maximum:t.maximum,input:o,inst:e,continue:!t.abort})}}),Pr=u("$ZodCheckMinSize",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;o.size>=t.minimum||r.issues.push({origin:St(o),code:"too_small",minimum:t.minimum,input:o,inst:e,continue:!t.abort})}}),jr=u("$ZodCheckMaxLength",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const s=ke(o);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Nr=u("$ZodCheckMinLength",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const s=ke(o);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Rr=u("$ZodCheckLengthEquals",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const s=ke(o),c=i>t.length;r.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),le=u("$ZodCheckStringFormat",(e,t)=>{var n,r;O.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Mr=u("$ZodCheckRegex",(e,t)=>{le.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})}}),Dr=u("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Er),le.init(e,t)}),Ur=u("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ar),le.init(e,t)}),Fr=u("$ZodCheckIncludes",(e,t)=>{O.init(e,t);const n=fe(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Tr=u("$ZodCheckStartsWith",(e,t)=>{O.init(e,t);const n=new RegExp(`^${fe(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Lr=u("$ZodCheckEndsWith",(e,t)=>{O.init(e,t);const n=new RegExp(`.*${fe(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Br=u("$ZodCheckMimeType",(e,t)=>{O.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e})}}),Wr=u("$ZodCheckOverwrite",(e,t)=>{O.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Cr{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
1
|
+
"use strict";const S=require("react"),Ee=require("./isObject-BDHKUJKN.js"),A=require("./index-rUH_mzKt.js");function an(e){return Number.isSafeInteger(e)&&e>=0}function fn(e){return e!=null&&typeof e!="function"&&an(e.length)}function ce(e){return e==="__proto__"}function Qe(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function et(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function ye(e){const t=[],n=e.length;if(n===0)return t;let r=0,o="",i="",s=!1;for(e.charCodeAt(0)===46&&(t.push(""),r++);r<n;){const c=e[r];i?c==="\\"&&r+1<n?(r++,o+=e[r]):c===i?i="":o+=c:s?c==='"'||c==="'"?i=c:c==="]"?(s=!1,t.push(o),o=""):o+=c:c==="["?(s=!0,o&&(t.push(o),o="")):c==="."?o&&(t.push(o),o=""):o+=c,r++}return o&&t.push(o),t}function tt(e,t,n){if(e==null)return n;switch(typeof t){case"string":{if(ce(t))return n;const r=e[t];return r===void 0?Qe(t)?tt(e,ye(t),n):n:r}case"number":case"symbol":{typeof t=="number"&&(t=et(t));const r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return ln(e,t,n);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),ce(t))return n;const r=e[t];return r===void 0?n:r}}}function ln(e,t,n){if(t.length===0)return n;let r=e;for(let o=0;o<t.length;o++){if(r==null||ce(t[o]))return n;r=r[t[o]]}return r===void 0?n:r}function hn(e){return e==null||typeof e!="object"&&typeof e!="function"}function nt(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function pe(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function ue(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const rt="[object RegExp]",ot="[object String]",it="[object Number]",st="[object Boolean]",me="[object Arguments]",ct="[object Symbol]",ut="[object Date]",at="[object Map]",ft="[object Set]",lt="[object Array]",dn="[object Function]",ht="[object ArrayBuffer]",oe="[object Object]",pn="[object Error]",dt="[object DataView]",pt="[object Uint8Array]",mt="[object Uint8ClampedArray]",gt="[object Uint16Array]",_t="[object Uint32Array]",mn="[object BigUint64Array]",bt="[object Int8Array]",vt="[object Int16Array]",yt="[object Int32Array]",gn="[object BigInt64Array]",zt="[object Float32Array]",wt="[object Float64Array]";function $t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function L(e,t,n,r=new Map,o=void 0){const i=o==null?void 0:o(e,t,n,r);if(i!=null)return i;if(hn(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const s=new Array(e.length);r.set(e,s);for(let c=0;c<e.length;c++)s[c]=L(e[c],c,n,r,o);return Object.hasOwn(e,"index")&&(s.index=e.index),Object.hasOwn(e,"input")&&(s.input=e.input),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const s=new RegExp(e.source,e.flags);return s.lastIndex=e.lastIndex,s}if(e instanceof Map){const s=new Map;r.set(e,s);for(const[c,a]of e)s.set(c,L(a,c,n,r,o));return s}if(e instanceof Set){const s=new Set;r.set(e,s);for(const c of e)s.add(L(c,void 0,n,r,o));return s}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if($t(e)){const s=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,s);for(let c=0;c<e.length;c++)s[c]=L(e[c],c,n,r,o);return s}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const s=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,s),C(s,e,n,r,o),s}if(typeof File<"u"&&e instanceof File){const s=new File([e],e.name,{type:e.type});return r.set(e,s),C(s,e,n,r,o),s}if(e instanceof Blob){const s=new Blob([e],{type:e.type});return r.set(e,s),C(s,e,n,r,o),s}if(e instanceof Error){const s=new e.constructor;return r.set(e,s),s.message=e.message,s.name=e.name,s.stack=e.stack,s.cause=e.cause,C(s,e,n,r,o),s}if(typeof e=="object"&&_n(e)){const s=Object.create(Object.getPrototypeOf(e));return r.set(e,s),C(s,e,n,r,o),s}return e}function C(e,t,n=e,r,o){const i=[...Object.keys(t),...pe(t)];for(let s=0;s<i.length;s++){const c=i[s],a=Object.getOwnPropertyDescriptor(e,c);(a==null||a.writable)&&(e[c]=L(t[c],c,n,r,o))}}function _n(e){switch(ue(e)){case me:case lt:case ht:case dt:case st:case ut:case zt:case wt:case bt:case vt:case yt:case at:case it:case oe:case rt:case ft:case ot:case ct:case pt:case mt:case gt:case _t:return!0;default:return!1}}function bn(e){return L(e,void 0,e,new Map,void 0)}const vn=/^(?:0|[1-9]\d*)$/;function Zt(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return vn.test(e)}}function kt(e){return e!==null&&typeof e=="object"&&ue(e)==="[object Arguments]"}function Q(e,t){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&Qe(t)&&(e==null?void 0:e[t])==null?n=ye(t):n=[t],n.length===0)return!1;let r=e;for(let o=0;o<n.length;o++){const i=n[o];if((r==null||!Object.hasOwn(r,i))&&!((Array.isArray(r)||kt(r))&&Zt(i)&&i<r.length))return!1;r=r[i]}return!0}function yn(e){return typeof e=="symbol"||e instanceof Symbol}const zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/;function $n(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||yn(e)?!0:typeof e=="string"&&(wn.test(e)||!zn.test(e))||t!=null&&Object.hasOwn(t,e)}const Zn=(e,t,n)=>{const r=e[t];(!(Object.hasOwn(e,t)&&nt(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function kn(e,t,n,r){if(e==null&&!Ee.isObject(e))return e;const o=$n(t,e)?[t]:Array.isArray(t)?t:typeof t=="string"?ye(t):[t];let i=e;for(let s=0;s<o.length&&i!=null;s++){const c=et(o[s]);if(ce(c))continue;let a;if(s===o.length-1)a=n(i[c]);else{const f=i[c],g=r==null?void 0:r(f,c,e);a=g!==void 0?g:Ee.isObject(f)?f:Zt(o[s+1])?[]:{}}Zn(i,c,a),i=i[c]}return e}function In(e,t,n){return kn(e,t,()=>n,()=>{})}function Ae(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function En(e,t,n){return G(e,t,void 0,void 0,void 0,void 0,n)}function G(e,t,n,r,o,i,s){const c=s(e,t,n,r,o,i);if(c!==void 0)return c;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return K(e,t,i,s)}return K(e,t,i,s)}function K(e,t,n,r){if(Object.is(e,t))return!0;let o=ue(e),i=ue(t);if(o===me&&(o=oe),i===me&&(i=oe),o!==i)return!1;switch(o){case ot:return e.toString()===t.toString();case it:{const a=e.valueOf(),f=t.valueOf();return nt(a,f)}case st:case ut:case ct:return Object.is(e.valueOf(),t.valueOf());case rt:return e.source===t.source&&e.flags===t.flags;case dn:return e===t}n=n??new Map;const s=n.get(e),c=n.get(t);if(s!=null&&c!=null)return s===t;n.set(e,t),n.set(t,e);try{switch(o){case at:{if(e.size!==t.size)return!1;for(const[a,f]of e.entries())if(!t.has(a)||!G(f,t.get(a),a,e,t,n,r))return!1;return!0}case ft:{if(e.size!==t.size)return!1;const a=Array.from(e.values()),f=Array.from(t.values());for(let g=0;g<a.length;g++){const h=a[g],d=f.findIndex(m=>G(h,m,void 0,e,t,n,r));if(d===-1)return!1;f.splice(d,1)}return!0}case lt:case pt:case mt:case gt:case _t:case mn:case bt:case vt:case yt:case gn:case zt:case wt:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(!G(e[a],t[a],a,e,t,n,r))return!1;return!0}case ht:return e.byteLength!==t.byteLength?!1:K(new Uint8Array(e),new Uint8Array(t),n,r);case dt:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:K(new Uint8Array(e),new Uint8Array(t),n,r);case pn:return e.name===t.name&&e.message===t.message;case oe:{if(!(K(e.constructor,t.constructor,n,r)||Ae(e)&&Ae(t)))return!1;const f=[...Object.keys(e),...pe(e)],g=[...Object.keys(t),...pe(t)];if(f.length!==g.length)return!1;for(let h=0;h<f.length;h++){const d=f[h],m=e[d];if(!Object.hasOwn(t,d))return!1;const v=t[d];if(!G(m,v,d,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function An(){}function On(e,t){return En(e,t,An)}function Sn(e){const t=e==null?void 0:e.constructor,n=typeof t=="function"?t.prototype:Object.prototype;return e===n}function xn(e){return $t(e)}function Pn(e,t){const n={},r=Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o],s=e[i];n[i]=t(s,i,e)}return n}function ze(e){if(e==null)return!0;if(fn(e))return typeof e.splice!="function"&&typeof e!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(e))&&!xn(e)&&!kt(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return Sn(e)?t.filter(n=>n!=="constructor").length===0:t.length===0}return!0}var It=A.canUseDOM?A.rehacktExports.useLayoutEffect:A.rehacktExports.useEffect;function jn(e,t){var n=A.useApolloClient(t==null?void 0:t.client);A.verifyDocumentType(e,A.DocumentType.Mutation);var r=A.rehacktExports.useState({called:!1,loading:!1,client:n}),o=r[0],i=r[1],s=A.rehacktExports.useRef({result:o,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});It(function(){Object.assign(s.current,{client:n,options:t,mutation:e})});var c=A.rehacktExports.useCallback(function(f){f===void 0&&(f={});var g=s.current,h=g.options,d=g.mutation,m=A.__assign(A.__assign({},h),{mutation:d}),v=f.client||s.current.client;!s.current.result.loading&&!m.ignoreResults&&s.current.isMounted&&i(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:v});var p=++s.current.mutationId,E=A.mergeOptions(m,f);return v.mutate(E).then(function(z){var _,b,y=z.data,P=z.errors,j=P&&P.length>0?new A.ApolloError({graphQLErrors:P}):void 0,B=f.onError||((_=s.current.options)===null||_===void 0?void 0:_.onError);if(j&&B&&B(j,E),p===s.current.mutationId&&!E.ignoreResults){var W={called:!0,loading:!1,data:y,error:j,client:v};s.current.isMounted&&!A.equal(s.current.result,W)&&i(s.current.result=W)}var de=f.onCompleted||((b=s.current.options)===null||b===void 0?void 0:b.onCompleted);return j||de==null||de(z.data,E),z},function(z){var _;if(p===s.current.mutationId&&s.current.isMounted){var b={loading:!1,error:z,data:void 0,called:!0,client:v};A.equal(s.current.result,b)||i(s.current.result=b)}var y=f.onError||((_=s.current.options)===null||_===void 0?void 0:_.onError);if(y)return y(z,E),{data:void 0,errors:z};throw z})},[]),a=A.rehacktExports.useCallback(function(){if(s.current.isMounted){var f={called:!1,loading:!1,client:s.current.client};Object.assign(s.current,{mutationId:0,result:f}),i(f)}},[]);return A.rehacktExports.useEffect(function(){var f=s.current;return f.isMounted=!0,function(){f.isMounted=!1}},[]),[c,A.__assign({reset:a},o)]}function Nn(e,t){const n=[],r=[];for(let o=0;o<e.length;o++){const i=e[o];t(i)?n.push(i):r.push(i)}return[n,r]}function Rn(e,t){const n={...e};for(let r=0;r<t.length;r++){const o=t[r];delete n[o]}return n}function Mn(e){return typeof e=="string"}function u(e,t,n){function r(c,a){var f;Object.defineProperty(c,"_zod",{value:c._zod??{},enumerable:!1}),(f=c._zod).traits??(f.traits=new Set),c._zod.traits.add(e),t(c,a);for(const g in s.prototype)g in c||Object.defineProperty(c,g,{value:s.prototype[g].bind(c)});c._zod.constr=s,c._zod.def=a}const o=(n==null?void 0:n.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(c){var a;const f=n!=null&&n.Parent?new i:this;r(f,c),(a=f._zod).deferred??(a.deferred=[]);for(const g of f._zod.deferred)g();return f}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:c=>{var a,f;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(f=(a=c==null?void 0:c._zod)==null?void 0:a.traits)==null?void 0:f.has(e)}}),Object.defineProperty(s,"name",{value:e}),s}class J extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Et={};function U(e){return Et}function Dn(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Un(e,t){return typeof t=="bigint"?t.toString():t}function At(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function X(e){return e==null}function we(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Fn(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}function $(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function $e(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function V(e){return JSON.stringify(e)}const Ot=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function ge(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Tn=At(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function _e(e){if(ge(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(ge(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const Ln=new Set(["string","number","symbol"]);function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function T(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function l(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Bn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Wn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Cn(e,t){const n={},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(n[o]=r.shape[o])}return T(e,{...e._zod.def,shape:n,checks:[]})}function Vn(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete n[o]}return T(e,{...e._zod.def,shape:n,checks:[]})}function Gn(e,t){if(!_e(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return $e(this,"shape",r),r},checks:[]};return T(e,n)}function Kn(e,t){return T(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return $e(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function qn(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const i in n){if(!(i in r))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=e?new e({type:"optional",innerType:r[i]}):r[i])}else for(const i in r)o[i]=e?new e({type:"optional",innerType:r[i]}):r[i];return T(t,{...t._zod.def,shape:o,checks:[]})}function Jn(e,t,n){const r=t._zod.def.shape,o={...r};if(n)for(const i in n){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=new e({type:"nonoptional",innerType:r[i]}))}else for(const i in r)o[i]=new e({type:"nonoptional",innerType:r[i]});return T(t,{...t._zod.def,shape:o,checks:[]})}function q(e,t=0){var n;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Ze(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ee(e){return typeof e=="string"?e:e==null?void 0:e.message}function F(e,t,n){var o,i,s,c,a,f;const r={...e,path:e.path??[]};if(!e.message){const g=ee((s=(i=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:i.error)==null?void 0:s.call(i,e))??ee((c=t==null?void 0:t.error)==null?void 0:c.call(t,e))??ee((a=n.customError)==null?void 0:a.call(n,e))??ee((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input";r.message=g}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function St(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ke(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Y(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const xt=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,Un,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pt=u("$ZodError",xt),jt=u("$ZodError",xt,{Parent:Error});function Yn(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Xn(e,t){const n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c}));else if(s.code==="invalid_key")o({issues:s.issues});else if(s.code==="invalid_element")o({issues:s.issues});else if(s.path.length===0)r._errors.push(n(s));else{let c=r,a=0;for(;a<s.path.length;){const f=s.path[a];a===s.path.length-1?(c[f]=c[f]||{_errors:[]},c[f]._errors.push(n(s))):c[f]=c[f]||{_errors:[]},c=c[f],a++}}};return o(e),r}const Hn=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new J;if(s.issues.length){const c=new((o==null?void 0:o.Err)??e)(s.issues.map(a=>F(a,i,U())));throw Ot(c,o==null?void 0:o.callee),c}return s.value},Qn=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const c=new((o==null?void 0:o.Err)??e)(s.issues.map(a=>F(a,i,U())));throw Ot(c,o==null?void 0:o.callee),c}return s.value},Nt=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new J;return i.issues.length?{success:!1,error:new(e??Pt)(i.issues.map(s=>F(s,o,U())))}:{success:!0,data:i.value}},er=Nt(jt),Rt=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>F(s,o,U())))}:{success:!0,data:i.value}},tr=Rt(jt),nr=/^[cC][^\s-]{8,}$/,rr=/^[0-9a-z]+$/,or=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ir=/^[0-9a-vA-V]{20}$/,sr=/^[A-Za-z0-9]{27}$/,cr=/^[a-zA-Z0-9_-]{21}$/,ur=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ar=/^([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})$/,Oe=e=>e?new 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)$/,fr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lr="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hr(){return new RegExp(lr,"u")}const dr=/^(?:(?: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])$/,pr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,mr=/^((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])$/,gr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_r=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Mt=/^[A-Za-z0-9_-]*$/,br=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,vr=/^\+(?:[0-9]){6,14}[0-9]$/,Dt="(?:(?:\\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])))",yr=new RegExp(`^${Dt}$`);function Ut(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function zr(e){return new RegExp(`^${Ut(e)}$`)}function wr(e){const t=Ut({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Dt}T(?:${r})$`)}const $r=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Zr=/^\d+$/,kr=/^-?\d+(?:\.\d+)?/i,Ir=/true|false/i,Er=/^[^A-Z]*$/,Ar=/^[^a-z]*$/,O=u("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ft={number:"number",bigint:"bigint",object:"date"},Tt=u("$ZodCheckLessThan",(e,t)=>{O.init(e,t);const n=Ft[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Lt=u("$ZodCheckGreaterThan",(e,t)=>{O.init(e,t);const n=Ft[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Or=u("$ZodCheckMultipleOf",(e,t)=>{O.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Fn(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Sr=u("$ZodCheckNumberFormat",(e,t)=>{var s;O.init(e,t),t.format=t.format||"float64";const n=(s=t.format)==null?void 0:s.includes("int"),r=n?"int":"number",[o,i]=Wn[t.format];e._zod.onattach.push(c=>{const a=c._zod.bag;a.format=t.format,a.minimum=o,a.maximum=i,n&&(a.pattern=Zr)}),e._zod.check=c=>{const a=c.value;if(n){if(!Number.isInteger(a)){c.issues.push({expected:r,format:t.format,code:"invalid_type",input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?c.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):c.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}a<o&&c.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&c.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inst:e})}}),xr=u("$ZodCheckMaxSize",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;o.size<=t.maximum||r.issues.push({origin:St(o),code:"too_big",maximum:t.maximum,input:o,inst:e,continue:!t.abort})}}),Pr=u("$ZodCheckMinSize",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.size!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;o.size>=t.minimum||r.issues.push({origin:St(o),code:"too_small",minimum:t.minimum,input:o,inst:e,continue:!t.abort})}}),jr=u("$ZodCheckMaxLength",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const s=ke(o);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Nr=u("$ZodCheckMinLength",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const s=ke(o);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Rr=u("$ZodCheckLengthEquals",(e,t)=>{var n;O.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!X(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const s=ke(o),c=i>t.length;r.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),le=u("$ZodCheckStringFormat",(e,t)=>{var n,r;O.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Mr=u("$ZodCheckRegex",(e,t)=>{le.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})}}),Dr=u("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Er),le.init(e,t)}),Ur=u("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ar),le.init(e,t)}),Fr=u("$ZodCheckIncludes",(e,t)=>{O.init(e,t);const n=fe(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Tr=u("$ZodCheckStartsWith",(e,t)=>{O.init(e,t);const n=new RegExp(`^${fe(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Lr=u("$ZodCheckEndsWith",(e,t)=>{O.init(e,t);const n=new RegExp(`.*${fe(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Br=u("$ZodCheckMimeType",(e,t)=>{O.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e})}}),Wr=u("$ZodCheckOverwrite",(e,t)=>{O.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Cr{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
2
2
|
`).filter(s=>s),o=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,o.join(`
|
|
3
3
|
`))}}const Vr={major:4,minor:0,patch:0},w=u("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Vr;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const s of i._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const i=(s,c,a)=>{let f=q(s),g;for(const h of c){if(h._zod.def.when){if(!h._zod.def.when(s))continue}else if(f)continue;const d=s.issues.length,m=h._zod.check(s);if(m instanceof Promise&&(a==null?void 0:a.async)===!1)throw new J;if(g||m instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await m,s.issues.length!==d&&(f||(f=q(s,d)))});else{if(s.issues.length===d)continue;f||(f=q(s,d))}}return g?g.then(()=>s):s};e._zod.run=(s,c)=>{const a=e._zod.parse(s,c);if(a instanceof Promise){if(c.async===!1)throw new J;return a.then(f=>i(f,r,c))}return i(a,r,c)}}e["~standard"]={validate:i=>{var s;try{const c=er(e,i);return c.success?{value:c.data}:{issues:(s=c.error)==null?void 0:s.issues}}catch{return tr(e,i).then(a=>{var f;return a.success?{value:a.data}:{issues:(f=a.error)==null?void 0:f.issues}})}},vendor:"zod",version:1}}),Ie=u("$ZodString",(e,t)=>{var n;w.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??$r(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Z=u("$ZodStringFormat",(e,t)=>{le.init(e,t),Ie.init(e,t)}),Gr=u("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ar),Z.init(e,t)}),Kr=u("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Oe(r))}else t.pattern??(t.pattern=Oe());Z.init(e,t)}),qr=u("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fr),Z.init(e,t)}),Jr=u("$ZodURL",(e,t)=>{Z.init(e,t),e._zod.check=n=>{try{const r=n.value,o=new URL(r),i=o.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:br.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&i.endsWith("/")?n.value=i.slice(0,-1):n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Yr=u("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=hr()),Z.init(e,t)}),Xr=u("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=cr),Z.init(e,t)}),Hr=u("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nr),Z.init(e,t)}),Qr=u("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=rr),Z.init(e,t)}),eo=u("$ZodULID",(e,t)=>{t.pattern??(t.pattern=or),Z.init(e,t)}),to=u("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ir),Z.init(e,t)}),no=u("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=sr),Z.init(e,t)}),ro=u("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=wr(t)),Z.init(e,t)}),oo=u("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=yr),Z.init(e,t)}),io=u("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=zr(t)),Z.init(e,t)}),so=u("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ur),Z.init(e,t)}),co=u("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=dr),Z.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),uo=u("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=pr),Z.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),ao=u("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=mr),Z.init(e,t)}),fo=u("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gr),Z.init(e,t),e._zod.check=n=>{const[r,o]=n.value.split("/");try{if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Bt(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const lo=u("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=_r),Z.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Bt(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function ho(e){if(!Mt.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Bt(n)}const po=u("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Mt),Z.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{ho(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),mo=u("$ZodE164",(e,t)=>{t.pattern??(t.pattern=vr),Z.init(e,t)});function go(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const _o=u("$ZodJWT",(e,t)=>{Z.init(e,t),e._zod.check=n=>{go(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Wt=u("$ZodNumber",(e,t)=>{w.init(e,t),e._zod.pattern=e._zod.bag.pattern??kr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),bo=u("$ZodNumber",(e,t)=>{Sr.init(e,t),Wt.init(e,t)}),vo=u("$ZodBoolean",(e,t)=>{w.init(e,t),e._zod.pattern=Ir,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),yo=u("$ZodAny",(e,t)=>{w.init(e,t),e._zod.parse=n=>n}),zo=u("$ZodUnknown",(e,t)=>{w.init(e,t),e._zod.parse=n=>n}),wo=u("$ZodNever",(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),$o=u("$ZodDate",(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function Se(e,t,n){e.issues.length&&t.issues.push(...Ze(n,e.issues)),t.value[n]=e.value}const Zo=u("$ZodArray",(e,t)=>{w.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const c=o[s],a=t.element._zod.run({value:c,issues:[]},r);a instanceof Promise?i.push(a.then(f=>Se(f,n,s))):Se(a,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function te(e,t,n){e.issues.length&&t.issues.push(...Ze(n,e.issues)),t.value[n]=e.value}function xe(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...Ze(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const ko=u("$ZodObject",(e,t)=>{w.init(e,t);const n=At(()=>{const h=Object.keys(t.shape);for(const m of h)if(!(t.shape[m]instanceof w))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);const d=Bn(t.shape);return{shape:t.shape,keys:h,keySet:new Set(h),numKeys:h.length,optionalKeys:new Set(d)}});$(e._zod,"propValues",()=>{const h=t.shape,d={};for(const m in h){const v=h[m]._zod;if(v.values){d[m]??(d[m]=new Set);for(const p of v.values)d[m].add(p)}}return d});const r=h=>{const d=new Cr(["shape","payload","ctx"]),m=n.value,v=_=>{const b=V(_);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};d.write("const input = payload.value;");const p=Object.create(null);let E=0;for(const _ of m.keys)p[_]=`key_${E++}`;d.write("const newResult = {}");for(const _ of m.keys)if(m.optionalKeys.has(_)){const b=p[_];d.write(`const ${b} = ${v(_)};`);const y=V(_);d.write(`
|
|
4
4
|
if (${b}.issues.length) {
|