@perses-dev/histogram-chart-plugin 0.13.0-beta.4 → 0.13.0-beta.5

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.
Files changed (21) hide show
  1. package/__mf/js/{HistogramChart.29f8cf38.js → HistogramChart.ebd6ccb7.js} +7 -7
  2. package/__mf/js/async/{121.c1e1b73b.js → 121.e3ba058b.js} +2 -2
  3. package/__mf/js/async/{392.823813dc.js → 392.fc8c7974.js} +2 -2
  4. package/__mf/js/async/{470.af148601.js → 470.f970d818.js} +2 -2
  5. package/__mf/js/async/{659.cfe6583c.js → 659.dae98125.js} +1 -1
  6. package/__mf/js/async/{670.1c67e3ef.js → 670.7769e17d.js} +14 -14
  7. package/__mf/js/async/{888.52df704f.js → 888.3e633ce9.js} +1 -1
  8. package/__mf/js/async/{941.ed07895a.js → 941.a515e24c.js} +2 -2
  9. package/__mf/js/async/{953.e0843771.js → 953.35d314d8.js} +2 -2
  10. package/__mf/js/async/{963.8a01bb93.js → 963.06d21c6e.js} +1 -1
  11. package/__mf/js/async/{__federation_expose_HistogramChart.49c51a72.js → __federation_expose_HistogramChart.f4768698.js} +1 -1
  12. package/__mf/js/{main.f6818461.js → main.889509ba.js} +2 -2
  13. package/mf-manifest.json +14 -14
  14. package/mf-stats.json +14 -14
  15. package/package.json +3 -3
  16. /package/__mf/js/async/{121.c1e1b73b.js.LICENSE.txt → 121.e3ba058b.js.LICENSE.txt} +0 -0
  17. /package/__mf/js/async/{392.823813dc.js.LICENSE.txt → 392.fc8c7974.js.LICENSE.txt} +0 -0
  18. /package/__mf/js/async/{470.af148601.js.LICENSE.txt → 470.f970d818.js.LICENSE.txt} +0 -0
  19. /package/__mf/js/async/{670.1c67e3ef.js.LICENSE.txt → 670.7769e17d.js.LICENSE.txt} +0 -0
  20. /package/__mf/js/async/{941.ed07895a.js.LICENSE.txt → 941.a515e24c.js.LICENSE.txt} +0 -0
  21. /package/__mf/js/async/{953.e0843771.js.LICENSE.txt → 953.35d314d8.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(self.chunk_HistogramChart_0_13_0_beta_4=self.chunk_HistogramChart_0_13_0_beta_4||[]).push([["659"],{4734(e,t,n){let r,i,o,a,s,l,u,d,c,p;n.r(t),n.d(t,{ONE_WEEK_IN_MS:()=>$,querySpecSchema:()=>iw,annotationDisplaySchema:()=>ih,buildPanelSpecSchema:()=>i$,resolvePanelRef:()=>F,variableDefinitionSchema:()=>iD,variableTextSchema:()=>iI,isTimeSeriesValueTuple:()=>V,otlpresourcev1:()=>v,parseDurationString:()=>P,isValidQueryPluginType:()=>J,ONE_YEAR_IN_MS:()=>O,DURATION_REGEX:()=>x,createPanelRef:()=>U,getSuggestedStepMs:()=>R,otlpcommonv1:()=>g,variableListSpecSchema:()=>ij,variableDisplaySchema:()=>iP,DEFAULT_ALL_VALUE:()=>"$__all",ONE_HOUR_IN_MS:()=>k,convertTimeToDuration:()=>A,ONE_MINUTE_IN_MS:()=>6e4,intervalToDuration:()=>E,getPanelKeyFromRef:()=>C,isDurationString:()=>j,panelSpecSchema:()=>iS,buildVariableDefinitionSchema:()=>iR,otlptracev1:()=>_,annotationSpecSchema:()=>iy,buildDatasourceSpecSchema:()=>i_,panelDisplaySpec:()=>iz,panelDefinitionSchema:()=>iO,buildVariableListSchema:()=>iA,datasourceSpecSchema:()=>iv,buildVariableSpecSchema:()=>iN,isAbsoluteTimeRange:()=>I,ONE_SECOND_IN_MS:()=>1e3,displaySchema:()=>ig,variableListSchema:()=>iE,variableTextSpecSchema:()=>iZ,isValidTraceId:()=>L,roundStepInterval:()=>D,durationValidationSchema:()=>ib,toAbsoluteTimeRange:()=>M,buildVariableListSpecSchema:()=>iT,buildAnnotationSpecSchema:()=>im,buildPanelDefinitionSchema:()=>ix,isRelativeTimeRange:()=>Z,linkSchema:()=>ik,variableSpecSchema:()=>iM,formatDuration:()=>T,ONE_DAY_IN_MS:()=>S,pluginSchema:()=>ip,pluginDefinitionMetadataSchema:()=>ic});var f,h,m,y,g={};n.r(g);var v={};n.r(v);var _={};n.r(_),n.d(_,{StatusCodeError:()=>q,StatusCodeOk:()=>W,StatusCodeUnset:()=>K});var b=n(12015),z=n(65130),w=n(38086);let k=36e5,S=864e5,$=6048e5,O=31536e6,x=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function P(e){let t=x.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function j(e){return""!==e&&x.test(e)}function T(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let n=Math.trunc(e.seconds);n&&t.push(`${n}s`);let r=Math.round((e.seconds-n)*1e3);r&&t.push(`${r}ms`)}return t.join("")}function E(e){return A(e.end.valueOf()-e.start.valueOf())}function A(e){let t=Math.trunc(e/O);t>0&&(e-=t*O);let n=Math.trunc(e/$);n>0&&(e-=n*$);let r=Math.trunc(e/S);r>0&&(e-=r*S);let i=Math.trunc(e/k);i>0&&(e-=i*k);let o=Math.trunc(e/6e4);return o>0&&(e-=6e4*o),{years:t,months:0,weeks:n,days:r,hours:i,minutes:o,seconds:e/1e3}}function Z(e){return void 0!==e.pastDuration}function I(e){return void 0!==e.start&&void 0!==e.end}function M(e){let t=e.end??new Date;return{start:function(e,t){var n,r,i,o,a;let{years:s=0,months:l=0,weeks:u=0,days:d=0,hours:c=0,minutes:p=0,seconds:f=0}=t,h=(n=l+12*s,r=void 0,i=(0,w.P)(e,-n,r),o=d+7*u,a=void 0,(0,z.f)(i,-o,a));return(0,b.w)(e,h-1e3*(f+60*(p+60*c)))}(t,P(e.pastDuration)),end:t}}let N=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function D(e){for(let{maxMs:t,roundedStepMs:n}of N)if(e<t)return n;return 15e3}function R(e,t){return D(Math.floor((e.end.valueOf()-e.start.valueOf())/t))}function F(e,t){let n=C(t),r=e.panels[n];if(void 0===r)throw Error(`Could not resolve panels reference ${t.$ref}`);return r}function C(e){return e.$ref.substring(14)}function U(e){return{$ref:`#/spec/panels/${e}`}}function J(e){return["TimeSeriesQuery","TraceQuery","ProfileQuery","LogQuery","AlertsQuery","SilencesQuery","JsonQuery"].includes(e)}function V(e){return 2===e.length}function L(e){return/^[0-9a-fA-F]+$/.test(e)}let K="STATUS_CODE_UNSET",W="STATUS_CODE_OK",q="STATUS_CODE_ERROR";function B(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function Q(e,t="|"){return e.map(e=>ed(e)).join(t)}function H(e,t){return"bigint"==typeof t?t.toString():t}function G(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function X(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Y(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ee(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}let et="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function en(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let er=G(()=>{if(eT.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function ei(e){if(!1===en(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==en(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function eo(e){return ei(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let ea=new Set(["string","number","symbol"]);function es(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function el(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function eu(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function ed(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function ec(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let o=ee(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(r,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t of Reflect.ownKeys(r))i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return Y(this,"shape",i),i},checks:[]});return el(t,o)}function ep(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ef(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function eh(e){return"string"==typeof e?e:e?.message}function em(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function ey(e,t,n){let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,o=e.message?e.message:eh(e.inst?._zod.def?.error?.(e))??eh(i?.(e))??eh(t?.error?.(e))??eh(n.customError?.(e))??eh(n.localeError?.(e))??"Invalid input",{inst:a,schema:s,continue:l,input:u,...d}=e;return d.path??(d.path=[]),d.message=o,t?.reportInput&&(d.input=u),d}let eg=/[\uD800-\uDBFF]/;function ev(e){let t=e.length;if(!eg.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(64512&e.charCodeAt(r))==55296&&(64512&e.charCodeAt(r+1))==56320&&(n--,r++);return n}function e_(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function eb(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function ez(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}let ew=!1,ek={configurable:!0,get(){ew=!0}};function eS(e,t,n){let i=Object.getPrototypeOf(e._zod);if(t in i&&r!==e._zod){r=void 0;return}r=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,ek);let e=ew;ew=!1;try{let r=n(this);return ew?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),ew=ew||e,r}catch(n){throw delete this[t],ew=ew||e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}let e$={value:void 0,enumerable:!1},eO="captureStackTrace"in Error?Error:null;function ex(e,t,n,r){function i(e){this.def=e,this.constr=u,this.traits=new Set}i.prototype={};let o=n&&new WeakSet;function a(r,a){if(!r._zod){e$.value=new i(a);try{Object.defineProperty(r,"_zod",e$)}finally{e$.value=void 0}}if(r._zod.traits.has(e))return;if(r._zod.traits.add(e),t(r,a),o){let e=Object.getPrototypeOf(r),t=r._zod.constr.prototype,i=e;for(;i&&i!==t;)i=Object.getPrototypeOf(i);let a=i??e;if(!o.has(a)){o.add(a);for(let e in n){let t=Object.getOwnPropertyDescriptor(n,e);t.get?Object.defineProperty(a,e,{...t,enumerable:!1}):function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:ez(this,t,n.bind(this))},set(e){ez(this,t,e)}})}(a,e,t.value)}}}let s=u.prototype;for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(e in r||(r[e]=s[e].bind(r)))}let s=r?.Parent??Object;class l extends s{}function u(e){let t=r?.Parent?function(e){let t=eO;if(t){let n=t.stackTraceLimit;if("number"==typeof n){try{t.stackTraceLimit=0}catch{return eO=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}(l):this;a(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(l,"name",{value:e}),Object.defineProperty(u,"init",{value:a}),Object.defineProperty(u,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class eP extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ej extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(m=globalThis).__zod_globalConfig??(m.__zod_globalConfig={});let eT=globalThis.__zod_globalConfig;function eE(e){return e&&Object.assign(eT,e),eT}class eA extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let eZ="~memo",eI=[];function eM(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let eN=new WeakMap,eD=[],eR={alloc(e,t,n){let r=i;if(!r)return n;i=void 0;let o={value:n,issues:null};return r.set(t.value,o),eD.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{var r,i;let o;if("backward"!==n.direction&&(r=n,i=e.value,void 0!==(o=r[eZ]?.backEdges)&&null!==i&&"object"==typeof i&&o.has(i)))throw new eA;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,a=(s,l)=>{let u;if(void 0===n&&!(n=function e(t,n){let r=eN.get(t);if(void 0!==r)return r;if(n.has(t))return!0;n.add(t);let i=!1,o=t=>{!i&&t?._zod&&e(t,n)&&(i=!0)},a=t._zod.def;switch(a.type){case"object":for(let e of Reflect.ownKeys(a.shape))o(a.shape[e]);o(a.catchall);break;case"array":o(a.element);break;case"tuple":for(let e of a.items)o(e);o(a.rest);break;case"record":case"map":o(a.keyType),o(a.valueType);break;case"set":o(a.valueType);break;case"union":for(let e of a.options)o(e);break;case"intersection":o(a.left),o(a.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(a.innerType);break;case"pipe":o(a.in),o(a.out);break;case"function":o(a.input),o(a.output);break;case"lazy":o(t._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let e in a){let t=Object.getOwnPropertyDescriptor(a,e);if(!t||t.get)continue;let n=t.value;if(n&&"object"==typeof n){if(n._zod)o(n);else if(Array.isArray(n))for(let e of n)o(e)}}}return n.delete(t),eN.set(t,i),i}(e,new Set)))return e._zod.parse=t,e._zod.run===a&&(e._zod.run=t),t(s,l);let d=s.value;if(null===d||"object"!=typeof d)return t(s,l);let c=l[eZ];if(c||(c={buckets:new Map,backEdges:void 0},l[eZ]=c),r===l)u=o;else{var p;let t;(t=(p=c).buckets.get(e))||(t=new Map,p.buckets.set(e,t)),u=t,r=l,o=u}let f=u.get(d);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...eM(f.issues)):(s.memo=!0,c.backEdges??(c.backEdges=new Set),c.backEdges.add(f.value)),s;i=u;let h=eD.length,m=t(s,l);i=void 0;let y=eD.length>h?eD.pop():void 0;return m instanceof Promise?m.then(e=>(y&&(y.issues=e.issues.length?eM(e.issues):eI),e)):(y&&(y.issues=m.issues.length?eM(m.issues):eI),m)};e._zod.parse=a,e._zod.run===t&&(e._zod.run=a)})}},eF=/^[cC][0-9a-z]{6,}$/,eC=/^[0-9a-z]+$/,eU=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,eJ=/^[0-9a-vA-V]{20}$/,eV=/^[A-Za-z0-9]{27}$/,eL=/^[a-zA-Z0-9_-]{21}$/,eK=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,eW=/^([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})$/,eq=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,eB=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eQ=/^(?:(?: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])$/,eH=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,eG=/^((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])$/,eX=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eY=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,e0=/^[A-Za-z0-9_-]*$/,e1=/^https?$/,e4=/^\+[1-9]\d{6,14}$/,e2="(?:(?:\\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])))",e9=RegExp(`^${e2}$`);function e5(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let e6=/^-?\d+$/,e3=/^-?\d+(?:\.\d+)?$/,e7=/^(?:true|false)$/i,e8=/^[^A-Z]*$/,te=/^[^a-z]*$/,tt=ex("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tn=e=>{let t=e.value;return null!=t&&void 0!==t.length},tr=ex("$ZodCheckMaxLength",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>t.maximum?ev(r):i)<=t.maximum)return;let o=e_(r);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ti=ex("$ZodCheckMinLength",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>=t.minimum&&i<2*t.minimum?ev(r):i)>=t.minimum)return;let o=e_(r);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),to=ex("$ZodCheckLengthEquals",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length,o="string"==typeof r&&i>=t.length&&i<=2*t.length?ev(r):i;if(o===t.length)return;let a=e_(r),s=o>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ta=ex("$ZodCheckStringFormat",(e,t)=>{var n,r;tt.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ts=ex("$ZodCheckRegex",(e,t)=>{ta.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})}}),tl=ex("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=e8),ta.init(e,t)}),tu=ex("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=te),ta.init(e,t)}),td=ex("$ZodCheckIncludes",(e,t)=>{tt.init(e,t);let n=es(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),tc=ex("$ZodCheckStartsWith",(e,t)=>{tt.init(e,t);let n=RegExp(`^${es(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),tp=ex("$ZodCheckEndsWith",(e,t)=>{tt.init(e,t);let n=RegExp(`.*${es(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),tf=ex("$ZodCheckOverwrite",(e,t)=>{tt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class th{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
1
+ "use strict";(self.chunk_HistogramChart_0_13_0_beta_5=self.chunk_HistogramChart_0_13_0_beta_5||[]).push([["659"],{4734(e,t,n){let r,i,o,a,s,l,u,d,c,p;n.r(t),n.d(t,{ONE_WEEK_IN_MS:()=>$,querySpecSchema:()=>iw,annotationDisplaySchema:()=>ih,buildPanelSpecSchema:()=>i$,resolvePanelRef:()=>F,variableDefinitionSchema:()=>iD,variableTextSchema:()=>iI,isTimeSeriesValueTuple:()=>V,otlpresourcev1:()=>v,parseDurationString:()=>P,isValidQueryPluginType:()=>J,ONE_YEAR_IN_MS:()=>O,DURATION_REGEX:()=>x,createPanelRef:()=>U,getSuggestedStepMs:()=>R,otlpcommonv1:()=>g,variableListSpecSchema:()=>ij,variableDisplaySchema:()=>iP,DEFAULT_ALL_VALUE:()=>"$__all",ONE_HOUR_IN_MS:()=>k,convertTimeToDuration:()=>A,ONE_MINUTE_IN_MS:()=>6e4,intervalToDuration:()=>E,getPanelKeyFromRef:()=>C,isDurationString:()=>j,panelSpecSchema:()=>iS,buildVariableDefinitionSchema:()=>iR,otlptracev1:()=>_,annotationSpecSchema:()=>iy,buildDatasourceSpecSchema:()=>i_,panelDisplaySpec:()=>iz,panelDefinitionSchema:()=>iO,buildVariableListSchema:()=>iA,datasourceSpecSchema:()=>iv,buildVariableSpecSchema:()=>iN,isAbsoluteTimeRange:()=>I,ONE_SECOND_IN_MS:()=>1e3,displaySchema:()=>ig,variableListSchema:()=>iE,variableTextSpecSchema:()=>iZ,isValidTraceId:()=>L,roundStepInterval:()=>D,durationValidationSchema:()=>ib,toAbsoluteTimeRange:()=>M,buildVariableListSpecSchema:()=>iT,buildAnnotationSpecSchema:()=>im,buildPanelDefinitionSchema:()=>ix,isRelativeTimeRange:()=>Z,linkSchema:()=>ik,variableSpecSchema:()=>iM,formatDuration:()=>T,ONE_DAY_IN_MS:()=>S,pluginSchema:()=>ip,pluginDefinitionMetadataSchema:()=>ic});var f,h,m,y,g={};n.r(g);var v={};n.r(v);var _={};n.r(_),n.d(_,{StatusCodeError:()=>q,StatusCodeOk:()=>W,StatusCodeUnset:()=>K});var b=n(12015),z=n(65130),w=n(38086);let k=36e5,S=864e5,$=6048e5,O=31536e6,x=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function P(e){let t=x.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function j(e){return""!==e&&x.test(e)}function T(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let n=Math.trunc(e.seconds);n&&t.push(`${n}s`);let r=Math.round((e.seconds-n)*1e3);r&&t.push(`${r}ms`)}return t.join("")}function E(e){return A(e.end.valueOf()-e.start.valueOf())}function A(e){let t=Math.trunc(e/O);t>0&&(e-=t*O);let n=Math.trunc(e/$);n>0&&(e-=n*$);let r=Math.trunc(e/S);r>0&&(e-=r*S);let i=Math.trunc(e/k);i>0&&(e-=i*k);let o=Math.trunc(e/6e4);return o>0&&(e-=6e4*o),{years:t,months:0,weeks:n,days:r,hours:i,minutes:o,seconds:e/1e3}}function Z(e){return void 0!==e.pastDuration}function I(e){return void 0!==e.start&&void 0!==e.end}function M(e){let t=e.end??new Date;return{start:function(e,t){var n,r,i,o,a;let{years:s=0,months:l=0,weeks:u=0,days:d=0,hours:c=0,minutes:p=0,seconds:f=0}=t,h=(n=l+12*s,r=void 0,i=(0,w.P)(e,-n,r),o=d+7*u,a=void 0,(0,z.f)(i,-o,a));return(0,b.w)(e,h-1e3*(f+60*(p+60*c)))}(t,P(e.pastDuration)),end:t}}let N=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function D(e){for(let{maxMs:t,roundedStepMs:n}of N)if(e<t)return n;return 15e3}function R(e,t){return D(Math.floor((e.end.valueOf()-e.start.valueOf())/t))}function F(e,t){let n=C(t),r=e.panels[n];if(void 0===r)throw Error(`Could not resolve panels reference ${t.$ref}`);return r}function C(e){return e.$ref.substring(14)}function U(e){return{$ref:`#/spec/panels/${e}`}}function J(e){return["TimeSeriesQuery","TraceQuery","ProfileQuery","LogQuery","AlertsQuery","SilencesQuery","JsonQuery"].includes(e)}function V(e){return 2===e.length}function L(e){return/^[0-9a-fA-F]+$/.test(e)}let K="STATUS_CODE_UNSET",W="STATUS_CODE_OK",q="STATUS_CODE_ERROR";function B(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function Q(e,t="|"){return e.map(e=>ed(e)).join(t)}function H(e,t){return"bigint"==typeof t?t.toString():t}function G(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function X(e){let t=+!!e.startsWith("^"),n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Y(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ee(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}let et="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function en(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let er=G(()=>{if(eT.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function ei(e){if(!1===en(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!1!==en(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function eo(e){return ei(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let ea=new Set(["string","number","symbol"]);function es(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function el(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function eu(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function ed(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function ec(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let o=ee(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(r,t))throw Error(`Unrecognized key: "${String(t)}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(let t of Reflect.ownKeys(r))i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return Y(this,"shape",i),i},checks:[]});return el(t,o)}function ep(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ef(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function eh(e){return"string"==typeof e?e:e?.message}function em(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function ey(e,t,n){let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,o=e.message?e.message:eh(e.inst?._zod.def?.error?.(e))??eh(i?.(e))??eh(t?.error?.(e))??eh(n.customError?.(e))??eh(n.localeError?.(e))??"Invalid input",{inst:a,schema:s,continue:l,input:u,...d}=e;return d.path??(d.path=[]),d.message=o,t?.reportInput&&(d.input=u),d}let eg=/[\uD800-\uDBFF]/;function ev(e){let t=e.length;if(!eg.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(64512&e.charCodeAt(r))==55296&&(64512&e.charCodeAt(r+1))==56320&&(n--,r++);return n}function e_(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function eb(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}function ez(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}let ew=!1,ek={configurable:!0,get(){ew=!0}};function eS(e,t,n){let i=Object.getPrototypeOf(e._zod);if(t in i&&r!==e._zod){r=void 0;return}r=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,ek);let e=ew;ew=!1;try{let r=n(this);return ew?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),ew=ew||e,r}catch(n){throw delete this[t],ew=ew||e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}let e$={value:void 0,enumerable:!1},eO="captureStackTrace"in Error?Error:null;function ex(e,t,n,r){function i(e){this.def=e,this.constr=u,this.traits=new Set}i.prototype={};let o=n&&new WeakSet;function a(r,a){if(!r._zod){e$.value=new i(a);try{Object.defineProperty(r,"_zod",e$)}finally{e$.value=void 0}}if(r._zod.traits.has(e))return;if(r._zod.traits.add(e),t(r,a),o){let e=Object.getPrototypeOf(r),t=r._zod.constr.prototype,i=e;for(;i&&i!==t;)i=Object.getPrototypeOf(i);let a=i??e;if(!o.has(a)){o.add(a);for(let e in n){let t=Object.getOwnPropertyDescriptor(n,e);t.get?Object.defineProperty(a,e,{...t,enumerable:!1}):function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:ez(this,t,n.bind(this))},set(e){ez(this,t,e)}})}(a,e,t.value)}}}let s=u.prototype;for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(e in r||(r[e]=s[e].bind(r)))}let s=r?.Parent??Object;class l extends s{}function u(e){let t=r?.Parent?function(e){let t=eO;if(t){let n=t.stackTraceLimit;if("number"==typeof n){try{t.stackTraceLimit=0}catch{return eO=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}(l):this;a(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(l,"name",{value:e}),Object.defineProperty(u,"init",{value:a}),Object.defineProperty(u,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class eP extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ej extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(m=globalThis).__zod_globalConfig??(m.__zod_globalConfig={});let eT=globalThis.__zod_globalConfig;function eE(e){return e&&Object.assign(eT,e),eT}class eA extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let eZ="~memo",eI=[];function eM(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let eN=new WeakMap,eD=[],eR={alloc(e,t,n){let r=i;if(!r)return n;i=void 0;let o={value:n,issues:null};return r.set(t.value,o),eD.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{var r,i;let o;if("backward"!==n.direction&&(r=n,i=e.value,void 0!==(o=r[eZ]?.backEdges)&&null!==i&&"object"==typeof i&&o.has(i)))throw new eA;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,a=(s,l)=>{let u;if(void 0===n&&!(n=function e(t,n){let r=eN.get(t);if(void 0!==r)return r;if(n.has(t))return!0;n.add(t);let i=!1,o=t=>{!i&&t?._zod&&e(t,n)&&(i=!0)},a=t._zod.def;switch(a.type){case"object":for(let e of Reflect.ownKeys(a.shape))o(a.shape[e]);o(a.catchall);break;case"array":o(a.element);break;case"tuple":for(let e of a.items)o(e);o(a.rest);break;case"record":case"map":o(a.keyType),o(a.valueType);break;case"set":o(a.valueType);break;case"union":for(let e of a.options)o(e);break;case"intersection":o(a.left),o(a.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(a.innerType);break;case"pipe":o(a.in),o(a.out);break;case"function":o(a.input),o(a.output);break;case"lazy":o(t._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let e in a){let t=Object.getOwnPropertyDescriptor(a,e);if(!t||t.get)continue;let n=t.value;if(n&&"object"==typeof n){if(n._zod)o(n);else if(Array.isArray(n))for(let e of n)o(e)}}}return n.delete(t),eN.set(t,i),i}(e,new Set)))return e._zod.parse=t,e._zod.run===a&&(e._zod.run=t),t(s,l);let d=s.value;if(null===d||"object"!=typeof d)return t(s,l);let c=l[eZ];if(c||(c={buckets:new Map,backEdges:void 0},l[eZ]=c),r===l)u=o;else{var p;let t;(t=(p=c).buckets.get(e))||(t=new Map,p.buckets.set(e,t)),u=t,r=l,o=u}let f=u.get(d);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...eM(f.issues)):(s.memo=!0,c.backEdges??(c.backEdges=new Set),c.backEdges.add(f.value)),s;i=u;let h=eD.length,m=t(s,l);i=void 0;let y=eD.length>h?eD.pop():void 0;return m instanceof Promise?m.then(e=>(y&&(y.issues=e.issues.length?eM(e.issues):eI),e)):(y&&(y.issues=m.issues.length?eM(m.issues):eI),m)};e._zod.parse=a,e._zod.run===t&&(e._zod.run=a)})}},eF=/^[cC][0-9a-z]{6,}$/,eC=/^[0-9a-z]+$/,eU=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,eJ=/^[0-9a-vA-V]{20}$/,eV=/^[A-Za-z0-9]{27}$/,eL=/^[a-zA-Z0-9_-]{21}$/,eK=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,eW=/^([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})$/,eq=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,eB=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eQ=/^(?:(?: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])$/,eH=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,eG=/^((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])$/,eX=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,eY=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,e0=/^[A-Za-z0-9_-]*$/,e1=/^https?$/,e4=/^\+[1-9]\d{6,14}$/,e2="(?:(?:\\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])))",e9=RegExp(`^${e2}$`);function e5(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let e6=/^-?\d+$/,e3=/^-?\d+(?:\.\d+)?$/,e7=/^(?:true|false)$/i,e8=/^[^A-Z]*$/,te=/^[^a-z]*$/,tt=ex("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tn=e=>{let t=e.value;return null!=t&&void 0!==t.length},tr=ex("$ZodCheckMaxLength",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>t.maximum?ev(r):i)<=t.maximum)return;let o=e_(r);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ti=ex("$ZodCheckMinLength",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value,i=r.length;if(("string"==typeof r&&i>=t.minimum&&i<2*t.minimum?ev(r):i)>=t.minimum)return;let o=e_(r);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),to=ex("$ZodCheckLengthEquals",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length,o="string"==typeof r&&i>=t.length&&i<=2*t.length?ev(r):i;if(o===t.length)return;let a=e_(r),s=o>t.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ta=ex("$ZodCheckStringFormat",(e,t)=>{var n,r;tt.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??(n.patterns=new Set),n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ts=ex("$ZodCheckRegex",(e,t)=>{ta.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})}}),tl=ex("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=e8),ta.init(e,t)}),tu=ex("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=te),ta.init(e,t)}),td=ex("$ZodCheckIncludes",(e,t)=>{tt.init(e,t);let n=es(t.includes),r=new RegExp("number"==typeof t.position?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),tc=ex("$ZodCheckStartsWith",(e,t)=>{tt.init(e,t);let n=RegExp(`^${es(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),tp=ex("$ZodCheckEndsWith",(e,t)=>{tt.init(e,t);let n=RegExp(`.*${es(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),tf=ex("$ZodCheckOverwrite",(e,t)=>{tt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class th{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
2
2
  ${t.join("\n")}
3
3
  };`)(...Object.values(this.closed))}}let tm={get:function(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,H,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},ty={value:void 0,enumerable:!1},tg={value:void 0,enumerable:!1},tv=new WeakSet([Object.prototype,Error.prototype]),t_=(e,t)=>{e.name="$ZodError",ty.value=e._zod,Object.defineProperty(e,"_zod",ty),tg.value=t,Object.defineProperty(e,"issues",tg),ty.value=void 0,tg.value=void 0,Object.defineProperty(e,"message",tm);let n=Object.getPrototypeOf(e);tv.has(n)||(tv.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},tb=ex("$ZodError",t_),tz=ex("$ZodError",t_,void 0,{Parent:Error});function tw(e,t){return{callee:t?.callee??e,Err:t?.Err}}let tk=e=>{let t=(n,r,i,o)=>{let a=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new eP;if(s.issues.length){let n=new(o?.Err??e)(s.issues.map(e=>ey(e,a,eE())));throw et(n,o?.callee??t),n}return s.value};return t},tS=e=>{let t=async(n,r,i,o)=>{let a=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new(o?.Err??e)(s.issues.map(e=>ey(e,a,eE())));throw et(n,o?.callee??t),n}return s.value};return t},t$=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new eP;return o.issues.length?{success:!1,error:new(e??tb)(o.issues.map(e=>ey(e,i,eE())))}:{success:!0,data:o.value}},tO=t$(tz),tx=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ey(e,i,eE())))}:{success:!0,data:o.value}},tP=tx(tz),tj={major:4,minor:5,patch:4},tT=ex("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tj;let r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(0===i.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{let i;if(t.memo)return t;let o=ep(t);for(let a of n){if(a._zod.def.when){if(function(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}(t)||!a._zod.def.when(t))continue}else if(o)continue;let n=t.issues.length,s=a._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new eP;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(em(t.issues,n,e),o||(o=ep(t,n)))});else{if(t.issues.length===n)continue;em(t.issues,n,e),o||(o=ep(t,n))}}return i?i.then(()=>t):t},n=(n,r,o)=>{if(ep(n))return n.aborted=!0,n;let a=t(r,i,o);if(a instanceof Promise){if(!1===o.async)throw new eP;return a.then(t=>e._zod.parse(t,o))}return e._zod.parse(a,o)};e._zod.run=(r,o)=>{if(o.skipChecks)return e._zod.parse(r,o);if("backward"===o.direction){let t=e._zod.parse({value:r.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,o)):n(t,r,o)}let a=e._zod.parse(r,o);if(a instanceof Promise){if(!1===o.async)throw new eP;return a.then(e=>t(e,i,o))}return t(a,i,o)}}},{get"~standard"(){return ez(this,"~standard",tA(this),!1)},set"~standard"(value){ez(this,"~standard",value)}}),tE=e=>e.success?{value:e.data}:{issues:e.error?.issues};function tA(e){return{validate:t=>{try{return tE(tO(e,t))}catch(n){return tP(e,t).then(tE)}},vendor:"zod",version:1}}let tZ=ex("$ZodString",(e,t)=>{var n;let r;tT.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(r=(n=e._zod.bag)?`[\\s\\S]{${n?.minimum??0},${n?.maximum??""}}`:"[\\s\\S]*",RegExp(`^${r}$`)),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch(e){}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),tI=ex("$ZodStringFormat",(e,t)=>{ta.init(e,t),tZ.init(e,t)}),tM=ex("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=eW),tI.init(e,t)}),tN=ex("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=eq(e))}else t.pattern??(t.pattern=eq());tI.init(e,t)}),tD=ex("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=eB),tI.init(e,t)}),tR=/[\t\n\r]/g,tF=ex("$ZodURL",(e,t)=>{tI.init(e,t),e._zod.check=n=>{try{var r,i;let o=n.value.trim(),a=function(e,t){if(!t.normalize&&t.protocol?.source===e1.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}(o,t);if(1===a)return void n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});if(2===a)return void n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});t.hostname&&((r=t.hostname).lastIndex=0,!r.test(a.hostname))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&((i=t.protocol).lastIndex=0,!i.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol))&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?a.href:o.replace(tR,"");return}catch(r){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),tC=ex("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$","u")),tI.init(e,t)}),tU=ex("$ZodNanoID",(e,t)=>{var n;if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=void 0===t.length?eL:(n=t.length,RegExp(`^[a-zA-Z0-9_-]{${n}}$`))),tI.init(e,t)}),tJ=ex("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=eF),tI.init(e,t)}),tV=ex("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=eC),tI.init(e,t)}),tL=ex("$ZodULID",(e,t)=>{t.pattern??(t.pattern=eU),tI.init(e,t)}),tK=ex("$ZodXID",(e,t)=>{t.pattern??(t.pattern=eJ),tI.init(e,t)}),tW=ex("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=eV),tI.init(e,t)}),tq=ex("$ZodISODateTime",(e,t)=>{let n,r,i;t.pattern??(n=["Z"],t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),r=`${e5({precision:t.precision,seconds:!0})}(?:${n.join("|")})`,i=t.local?`${r}|${e5({precision:t.precision})}`:r,t.pattern=RegExp(`^${e2}T(?:${i})$`)),tI.init(e,t),(t.local||-1===t.precision)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(e=>{e._zod.bag.laxFormat=!0}))}),tB=ex("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=e9),tI.init(e,t)}),tQ=ex("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${e5(t)}$`)),tI.init(e,t)}),tH=ex("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=eK),tI.init(e,t)}),tG=ex("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=eQ),tI.init(e,t),e._zod.bag.format="ipv4"}),tX=/^[0-9a-fA-F:.]+$/;function tY(e){if(!tX.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}let t0=ex("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=eH),tI.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{tY(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),t1=ex("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=eG),tI.init(e,t)}),t4=ex("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=eX),tI.init(e,t),e._zod.check=n=>{!function(e){let t=e.split("/");if(2!==t.length)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`===r&&!(i<0)&&!(i>128)&&tY(n)}(n.value)&&n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function t2(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let t9=ex("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=eY),tI.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{t2(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),t5=ex("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=e0),tI.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{!function(e){if(!e0.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return t2(t.padEnd(4*Math.ceil(t.length/4),"="))}(n.value)&&n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),t6=ex("$ZodE164",(e,t)=>{t.pattern??(t.pattern=e4),tI.init(e,t)}),t3=ex("$ZodJWT",(e,t)=>{tI.init(e,t),e._zod.check=n=>{!function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(n.value,t.alg)&&n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),t7=ex("$ZodBoolean",(e,t)=>{tT.init(e,t),e._zod.pattern=e7,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch(e){}let i=n.value;return"boolean"==typeof i||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),t8=ex("$ZodAny",(e,t)=>{tT.init(e,t),e._zod.parse=e=>e}),ne=ex("$ZodUnknown",(e,t)=>{tT.init(e,t),e._zod.parse=e=>e}),nt=ex("$ZodNever",(e,t)=>{tT.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function nn(e,t,n){e.issues.length&&t.issues.push(...ef(n,e.issues)),t.value[n]=e.value}let nr=ex("$ZodArray",(e,t)=>{tT.init(e,t);let n=eT.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);let a=[];for(let e=0;e<o.length;e++){let n=o[e],s=t.element._zod.run({value:n,issues:[]},i);s instanceof Promise?a.push(s.then(t=>nn(t,r,e))):nn(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function ni(e,t,n,r,i,o){let a=n in r,s="optional"===o;if(a||!s||"optional"!==i){if(e.issues.length){if(void 0!==i&&s&&!a)return;t.issues.push(...ef(n,e.issues))}if(!a&&void 0===i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}void 0===e.value?a&&(t.value[n]=void 0):t.value[n]=e.value}}let no=[];function na(e){var t;let n=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),i=r.length?r:no,o=i.length?[...n,...i]:n;for(let t of o)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=Object.keys(t=e.shape).filter(e=>void 0!==t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,allKeys:o,symbolKeys:i,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(a)}}function ns(e,t,n,r,i,o){let a=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,c=l.optout;for(let i in t){if(s.has(i))continue;if("__proto__"===i){"never"===u&&a.push(i);continue}if("never"===u){a.push(i);continue}let o=l.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then(e=>ni(e,n,i,t,d,c))):ni(o,n,i,t,d,c)}return(a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o,continue:!0}),e.length)?Promise.all(e).then(()=>n):n}let nl=new WeakMap,nu=ex("$ZodObject",(e,t)=>{let n;tT.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){let e=t.shape;nl.set(t,e),Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),nl.set(t,n),n}})}let i=G(()=>na(t));eS(e,"propValues",e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){for(let t of(Object.prototype.hasOwnProperty.call(n,e)||Y(n,e,new Set),r.values))n[e].add(t);void 0!==r.optin&&n[e].add(void 0)}}return n});let o=t.catchall,a=eT.memoizer;a?.attach(e),e._zod.parse=(t,r)=>{n??(n=i.value);let s=t.value;if(!en(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value=a?a.alloc(e,t,{},r):{};let l=[],u=n.shape;for(let e of n.allKeys){if("__proto__"===e)continue;let n=u[e],i=n._zod.optin,o=n._zod.optout,a=n._zod.run({value:s[e],issues:[]},r);a instanceof Promise?l.push(a.then(n=>ni(n,t,e,s,i,o))):ni(a,t,e,s,i,o)}return o?ns(l,s,t,r,i.value,e):l.length?Promise.all(l).then(()=>t):t}}),nd=ex("$ZodObjectJIT",(e,t)=>{let n,r;nu.init(e,t);let i=e._zod.parse,o=G(()=>na(t)),a=eT.memoizer,s=!eT.jitless,l=s&&er.value,u=t.catchall;e._zod.parse=(d,c)=>{r??(r=o.value);let p=d.value;return en(p)?s&&l&&c?.async===!1&&!0!==c.jitless?(n||(n=(t=>{let n=o.value,r=n.symbolKeys,i=new th(["payload","ctx"],{shape:t,inst:e,memo:a,syms:r}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,l=(e,t)=>`
4
4
  for (let i = 0; i < ${e}.issues.length; i++) {