@kong-ui-public/analytics-utilities 10.1.6-pr.2346.5bc4acfaa.0 → 10.1.6-pr.2346.d45305afb.0

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.
@@ -72,6 +72,63 @@ export declare const zSingleValueSchema: z.ZodObject<{
72
72
  chart_title: z.ZodOptional<z.ZodString>;
73
73
  }, z.core.$strict>;
74
74
  export type SingleValueOptions = z.infer<typeof zSingleValueSchema>;
75
+ declare const zChartOptions: z.ZodUnion<readonly [z.ZodObject<{
76
+ type: z.ZodEnum<{
77
+ horizontal_bar: "horizontal_bar";
78
+ vertical_bar: "vertical_bar";
79
+ }>;
80
+ stacked: z.ZodOptional<z.ZodBoolean>;
81
+ chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
82
+ synthetics_data_key: z.ZodOptional<z.ZodString>;
83
+ chart_title: z.ZodOptional<z.ZodString>;
84
+ allow_csv_export: z.ZodOptional<z.ZodBoolean>;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ type: z.ZodLiteral<"gauge">;
87
+ metric_display: z.ZodOptional<z.ZodEnum<{
88
+ hidden: "hidden";
89
+ single: "single";
90
+ full: "full";
91
+ }>>;
92
+ reverse_dataset: z.ZodOptional<z.ZodBoolean>;
93
+ numerator: z.ZodOptional<z.ZodNumber>;
94
+ synthetics_data_key: z.ZodOptional<z.ZodString>;
95
+ chart_title: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ type: z.ZodLiteral<"donut">;
98
+ synthetics_data_key: z.ZodOptional<z.ZodString>;
99
+ chart_title: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ type: z.ZodEnum<{
102
+ timeseries_line: "timeseries_line";
103
+ timeseries_bar: "timeseries_bar";
104
+ }>;
105
+ stacked: z.ZodOptional<z.ZodBoolean>;
106
+ threshold: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
107
+ chart_dataset_colors: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodString>]>>;
108
+ synthetics_data_key: z.ZodOptional<z.ZodString>;
109
+ chart_title: z.ZodOptional<z.ZodString>;
110
+ allow_csv_export: z.ZodOptional<z.ZodBoolean>;
111
+ }, z.core.$strict>, z.ZodObject<{
112
+ type: z.ZodLiteral<"golden_signals">;
113
+ chart_title: z.ZodOptional<z.ZodString>;
114
+ long_card_titles: z.ZodOptional<z.ZodBoolean>;
115
+ description: z.ZodOptional<z.ZodString>;
116
+ percentile_latency: z.ZodOptional<z.ZodBoolean>;
117
+ }, z.core.$strict>, z.ZodObject<{
118
+ type: z.ZodLiteral<"top_n">;
119
+ chart_title: z.ZodOptional<z.ZodString>;
120
+ synthetics_data_key: z.ZodOptional<z.ZodString>;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ entity_link: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ type: z.ZodLiteral<"slottable">;
125
+ id: z.ZodString;
126
+ }, z.core.$strict>, z.ZodObject<{
127
+ type: z.ZodLiteral<"single_value">;
128
+ decimal_points: z.ZodOptional<z.ZodNumber>;
129
+ chart_title: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strict>]>;
131
+ export type ChartOptions = z.infer<typeof zChartOptions>;
75
132
  export declare const zApiUsageQuery: z.ZodObject<{
76
133
  granularity: z.ZodOptional<z.ZodEnum<{
77
134
  secondly: "secondly";
@@ -1959,4 +2016,5 @@ export declare const parseDashboardConfig: (input: unknown) => {
1959
2016
  })[] | undefined;
1960
2017
  template_id?: string | null | undefined;
1961
2018
  };
2019
+ export {};
1962
2020
  //# sourceMappingURL=dashboardSchemaZod.v2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardSchemaZod.v2.d.ts","sourceRoot":"","sources":["../../src/dashboardSchemaZod.v2.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"dashboardSchemaZod.v2.d.ts","sourceRoot":"","sources":["../../src/dashboardSchemaZod.v2.ts"],"names":[],"mappings":"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"}
@@ -15,5 +15,5 @@
15
15
  } else {
16
16
  newResult[${I}] = ${b}.value;
17
17
  }
18
- `)}p.write("payload.value = newResult;"),p.write("return payload;");const W=p.compile();return(z,b)=>W(m,z,b)};let o;const i=Ft,s=!eo.jitless,l=s&&Ba.value,h=t.catchall;let y;e._zod.parse=(m,p)=>{y??(y=n.value);const v=m.value;if(!i(v))return m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m;const D=[];if(s&&l&&(p==null?void 0:p.async)===!1&&p.jitless!==!0)o||(o=r(t.shape)),m=o(m,p);else{m.value={};const b=y.shape;for(const I of y.keys){const J=b[I]._zod.run({value:v[I],issues:[]},p);J instanceof Promise?D.push(J.then(qe=>et(qe,m,I,v))):et(J,m,I,v)}}if(!h)return D.length?Promise.all(D).then(()=>m):m;const Z=[],Y=y.keySet,W=h._zod,z=W.def.type;for(const b of Object.keys(v)){if(Y.has(b))continue;if(z==="never"){Z.push(b);continue}const I=W.run({value:v[b],issues:[]},p);I instanceof Promise?D.push(I.then(Me=>et(Me,m,b,v))):et(I,m,b,v)}return Z.length&&m.issues.push({code:"unrecognized_keys",keys:Z,input:v,inst:e}),D.length?Promise.all(D).then(()=>m):m}});function Hn(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!Pe(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>re(s,r,ne())))}),t)}const Iu=d("$ZodUnion",(e,t)=>{S.init(e,t),O(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),O(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),O(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),O(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>en(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let s=!1;const c=[];for(const l of t.options){const h=l._zod.run({value:o.value,issues:[]},i);if(h instanceof Promise)c.push(h),s=!0;else{if(h.issues.length===0)return h;c.push(h)}}return s?Promise.all(c).then(l=>Hn(l,o,e,i)):Hn(c,o,e,i)}}),Zu=d("$ZodIntersection",(e,t)=>{S.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,h])=>Vn(n,l,h)):Vn(n,i,s)}});function Ut(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ce(e)&&Ce(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const s=Ut(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],s=Ut(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Vn(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Pe(e))return e;const r=Ut(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const $u=d("$ZodRecord",(e,t)=>{S.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Ce(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const i=[];if(t.keyType._zod.values){const s=t.keyType._zod.values;n.value={};for(const l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const h=t.valueType._zod.run({value:o[l],issues:[]},r);h instanceof Promise?i.push(h.then(y=>{y.issues.length&&n.issues.push(...De(l,y.issues)),n.value[l]=y.value})):(h.issues.length&&n.issues.push(...De(l,h.issues)),n.value[l]=h.value)}let c;for(const l in o)s.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{n.value={};for(const s of Reflect.ownKeys(o)){if(s==="__proto__")continue;const c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>re(h,r,ne())),input:s,path:[s],inst:e}),n.value[c.value]=c.value;continue}const l=t.valueType._zod.run({value:o[s],issues:[]},r);l instanceof Promise?i.push(l.then(h=>{h.issues.length&&n.issues.push(...De(s,h.issues)),n.value[c.value]=h.value})):(l.issues.length&&n.issues.push(...De(s,l.issues)),n.value[c.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Pu=d("$ZodEnum",(e,t)=>{S.init(e,t);const n=qa(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Xa.has(typeof o)).map(o=>typeof o=="string"?Oe(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),Nu=d("$ZodLiteral",(e,t)=>{if(S.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Oe(n):n?Oe(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const o=n.value;return e._zod.values.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),Cu=d("$ZodTransform",(e,t)=>{S.init(e,t),e._zod.parse=(n,r)=>{const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new Ne;return n.value=o,n}});function Bn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ru=d("$ZodOptional",(e,t)=>{S.init(e,t),e._zod.optin="optional",e._zod.optout="optional",O(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),O(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${en(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Bn(i,n.value)):Bn(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Au=d("$ZodNullable",(e,t)=>{S.init(e,t),O(e._zod,"optin",()=>t.innerType._zod.optin),O(e._zod,"optout",()=>t.innerType._zod.optout),O(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${en(n.source)}|null)$`):void 0}),O(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ju=d("$ZodDefault",(e,t)=>{S.init(e,t),e._zod.optin="optional",O(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Xn(i,t)):Xn(o,t)}});function Xn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Fu=d("$ZodPrefault",(e,t)=>{S.init(e,t),e._zod.optin="optional",O(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Uu=d("$ZodNonOptional",(e,t)=>{S.init(e,t),O(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Qn(i,e)):Qn(o,e)}});function Qn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Yu=d("$ZodCatch",(e,t)=>{S.init(e,t),O(e._zod,"optin",()=>t.innerType._zod.optin),O(e._zod,"optout",()=>t.innerType._zod.optout),O(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(s=>re(s,r,ne()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>re(i,r,ne()))},input:n.value}),n.issues=[]),n)}}),Lu=d("$ZodPipe",(e,t)=>{S.init(e,t),O(e._zod,"values",()=>t.in._zod.values),O(e._zod,"optin",()=>t.in._zod.optin),O(e._zod,"optout",()=>t.out._zod.optout),O(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>Kn(i,t,r)):Kn(o,t,r)}});function Kn(e,t,n){return e.issues.length?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const Gu=d("$ZodReadonly",(e,t)=>{S.init(e,t),O(e._zod,"propValues",()=>t.innerType._zod.propValues),O(e._zod,"values",()=>t.innerType._zod.values),O(e._zod,"optin",()=>t.innerType._zod.optin),O(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Jn):Jn(o)}});function Jn(e){return e.value=Object.freeze(e.value),e}const Wu=d("$ZodCustom",(e,t)=>{U.init(e,t),S.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>er(i,n,r,e));er(o,n,r,e)}});function er(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Re(o))}}class qu{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Hu(){return new qu}const tt=Hu();function Vu(e,t){return new e({type:"string",..._(t)})}function Bu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._(t)})}function tr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._(t)})}function Xu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._(t)})}function Qu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._(t)})}function Ku(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._(t)})}function Ju(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._(t)})}function ec(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._(t)})}function tc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._(t)})}function nc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._(t)})}function rc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._(t)})}function oc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._(t)})}function ic(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._(t)})}function ac(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._(t)})}function sc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._(t)})}function uc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._(t)})}function cc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._(t)})}function lc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._(t)})}function dc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._(t)})}function fc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._(t)})}function hc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._(t)})}function mc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._(t)})}function pc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._(t)})}function gc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._(t)})}function _c(e,t){return new e({type:"string",format:"date",check:"string_format",..._(t)})}function yc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,..._(t)})}function wc(e,t){return new e({type:"string",format:"duration",check:"string_format",..._(t)})}function vc(e,t){return new e({type:"number",checks:[],..._(t)})}function bc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",..._(t)})}function Tc(e,t){return new e({type:"boolean",..._(t)})}function zc(e,t){return new e({type:"null",..._(t)})}function Dc(e){return new e({type:"unknown"})}function kc(e,t){return new e({type:"never",..._(t)})}function nr(e,t){return new mo({check:"less_than",..._(t),value:e,inclusive:!1})}function It(e,t){return new mo({check:"less_than",..._(t),value:e,inclusive:!0})}function rr(e,t){return new po({check:"greater_than",..._(t),value:e,inclusive:!1})}function Zt(e,t){return new po({check:"greater_than",..._(t),value:e,inclusive:!0})}function or(e,t){return new js({check:"multiple_of",..._(t),value:e})}function yo(e,t){return new Us({check:"max_length",..._(t),maximum:e})}function ot(e,t){return new Ys({check:"min_length",..._(t),minimum:e})}function wo(e,t){return new Ls({check:"length_equals",..._(t),length:e})}function Oc(e,t){return new Gs({check:"string_format",format:"regex",..._(t),pattern:e})}function Sc(e){return new Ws({check:"string_format",format:"lowercase",..._(e)})}function Ec(e){return new qs({check:"string_format",format:"uppercase",..._(e)})}function Mc(e,t){return new Hs({check:"string_format",format:"includes",..._(t),includes:e})}function xc(e,t){return new Vs({check:"string_format",format:"starts_with",..._(t),prefix:e})}function Ic(e,t){return new Bs({check:"string_format",format:"ends_with",..._(t),suffix:e})}function Ye(e){return new Xs({check:"overwrite",tx:e})}function Zc(e){return Ye(t=>t.normalize(e))}function $c(){return Ye(e=>e.trim())}function Pc(){return Ye(e=>e.toLowerCase())}function Nc(){return Ye(e=>e.toUpperCase())}function Cc(e,t,n){return new e({type:"array",element:t,..._(n)})}function Rc(e,t,n){return new e({type:"custom",check:"custom",fn:t,..._(n)})}function Ac(e){const t=jc(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Re(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Re(o))}},e(n.value,n)));return t}function jc(e,t){const n=new U({check:"custom",..._(t)});return n._zod.check=e,n}const Fc=d("ZodISODateTime",(e,t)=>{lu.init(e,t),x.init(e,t)});function Uc(e){return gc(Fc,e)}const Yc=d("ZodISODate",(e,t)=>{du.init(e,t),x.init(e,t)});function Lc(e){return _c(Yc,e)}const Gc=d("ZodISOTime",(e,t)=>{fu.init(e,t),x.init(e,t)});function Wc(e){return yc(Gc,e)}const qc=d("ZodISODuration",(e,t)=>{hu.init(e,t),x.init(e,t)});function Hc(e){return wc(qc,e)}const Vc=(e,t)=>{io.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>as(e,n)},flatten:{value:n=>is(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,jt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,jt,2)}},isEmpty:{get(){return e.issues.length===0}}})},gt=d("ZodError",Vc,{Parent:Error}),Bc=ss(gt),Xc=us(gt),Qc=so(gt),Kc=uo(gt),M=d("ZodType",(e,t)=>(S.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>ge(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>Bc(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Qc(e,n,r),e.parseAsync=async(n,r)=>Xc(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Kc(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(Wl(n,r)),e.superRefine=n=>e.check(ql(n)),e.overwrite=n=>e.check(Ye(n)),e.optional=()=>ur(e),e.nullable=()=>cr(e),e.nullish=()=>ur(cr(e)),e.nonoptional=n=>Al(e,n),e.array=()=>ce(e),e.or=n=>le([e,n]),e.and=n=>El(e,n),e.transform=n=>lr(e,Zl(n)),e.default=n=>Nl(e,n),e.prefault=n=>Rl(e,n),e.catch=n=>Fl(e,n),e.pipe=n=>lr(e,n),e.readonly=()=>Ll(e),e.describe=n=>{const r=e.clone();return tt.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=tt.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return tt.get(e);const r=e.clone();return tt.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),vo=d("_ZodString",(e,t)=>{nn.init(e,t),M.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Oc(...r)),e.includes=(...r)=>e.check(Mc(...r)),e.startsWith=(...r)=>e.check(xc(...r)),e.endsWith=(...r)=>e.check(Ic(...r)),e.min=(...r)=>e.check(ot(...r)),e.max=(...r)=>e.check(yo(...r)),e.length=(...r)=>e.check(wo(...r)),e.nonempty=(...r)=>e.check(ot(1,...r)),e.lowercase=r=>e.check(Sc(r)),e.uppercase=r=>e.check(Ec(r)),e.trim=()=>e.check($c()),e.normalize=(...r)=>e.check(Zc(...r)),e.toLowerCase=()=>e.check(Pc()),e.toUpperCase=()=>e.check(Nc())}),Jc=d("ZodString",(e,t)=>{nn.init(e,t),vo.init(e,t),e.email=n=>e.check(Bu(el,n)),e.url=n=>e.check(ec(tl,n)),e.jwt=n=>e.check(pc(gl,n)),e.emoji=n=>e.check(tc(nl,n)),e.guid=n=>e.check(tr(ir,n)),e.uuid=n=>e.check(Xu(nt,n)),e.uuidv4=n=>e.check(Qu(nt,n)),e.uuidv6=n=>e.check(Ku(nt,n)),e.uuidv7=n=>e.check(Ju(nt,n)),e.nanoid=n=>e.check(nc(rl,n)),e.guid=n=>e.check(tr(ir,n)),e.cuid=n=>e.check(rc(ol,n)),e.cuid2=n=>e.check(oc(il,n)),e.ulid=n=>e.check(ic(al,n)),e.base64=n=>e.check(fc(hl,n)),e.base64url=n=>e.check(hc(ml,n)),e.xid=n=>e.check(ac(sl,n)),e.ksuid=n=>e.check(sc(ul,n)),e.ipv4=n=>e.check(uc(cl,n)),e.ipv6=n=>e.check(cc(ll,n)),e.cidrv4=n=>e.check(lc(dl,n)),e.cidrv6=n=>e.check(dc(fl,n)),e.e164=n=>e.check(mc(pl,n)),e.datetime=n=>e.check(Uc(n)),e.date=n=>e.check(Lc(n)),e.time=n=>e.check(Wc(n)),e.duration=n=>e.check(Hc(n))});function C(e){return Vu(Jc,e)}const x=d("ZodStringFormat",(e,t)=>{E.init(e,t),vo.init(e,t)}),el=d("ZodEmail",(e,t)=>{tu.init(e,t),x.init(e,t)}),ir=d("ZodGUID",(e,t)=>{Js.init(e,t),x.init(e,t)}),nt=d("ZodUUID",(e,t)=>{eu.init(e,t),x.init(e,t)}),tl=d("ZodURL",(e,t)=>{nu.init(e,t),x.init(e,t)}),nl=d("ZodEmoji",(e,t)=>{ru.init(e,t),x.init(e,t)}),rl=d("ZodNanoID",(e,t)=>{ou.init(e,t),x.init(e,t)}),ol=d("ZodCUID",(e,t)=>{iu.init(e,t),x.init(e,t)}),il=d("ZodCUID2",(e,t)=>{au.init(e,t),x.init(e,t)}),al=d("ZodULID",(e,t)=>{su.init(e,t),x.init(e,t)}),sl=d("ZodXID",(e,t)=>{uu.init(e,t),x.init(e,t)}),ul=d("ZodKSUID",(e,t)=>{cu.init(e,t),x.init(e,t)}),cl=d("ZodIPv4",(e,t)=>{mu.init(e,t),x.init(e,t)}),ll=d("ZodIPv6",(e,t)=>{pu.init(e,t),x.init(e,t)}),dl=d("ZodCIDRv4",(e,t)=>{gu.init(e,t),x.init(e,t)}),fl=d("ZodCIDRv6",(e,t)=>{_u.init(e,t),x.init(e,t)}),hl=d("ZodBase64",(e,t)=>{yu.init(e,t),x.init(e,t)}),ml=d("ZodBase64URL",(e,t)=>{vu.init(e,t),x.init(e,t)}),pl=d("ZodE164",(e,t)=>{bu.init(e,t),x.init(e,t)}),gl=d("ZodJWT",(e,t)=>{zu.init(e,t),x.init(e,t)}),bo=d("ZodNumber",(e,t)=>{_o.init(e,t),M.init(e,t),e.gt=(r,o)=>e.check(rr(r,o)),e.gte=(r,o)=>e.check(Zt(r,o)),e.min=(r,o)=>e.check(Zt(r,o)),e.lt=(r,o)=>e.check(nr(r,o)),e.lte=(r,o)=>e.check(It(r,o)),e.max=(r,o)=>e.check(It(r,o)),e.int=r=>e.check(ar(r)),e.safe=r=>e.check(ar(r)),e.positive=r=>e.check(rr(0,r)),e.nonnegative=r=>e.check(Zt(0,r)),e.negative=r=>e.check(nr(0,r)),e.nonpositive=r=>e.check(It(0,r)),e.multipleOf=(r,o)=>e.check(or(r,o)),e.step=(r,o)=>e.check(or(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function V(e){return vc(bo,e)}const _l=d("ZodNumberFormat",(e,t)=>{Du.init(e,t),bo.init(e,t)});function ar(e){return bc(_l,e)}const yl=d("ZodBoolean",(e,t)=>{ku.init(e,t),M.init(e,t)});function ue(e){return Tc(yl,e)}const wl=d("ZodNull",(e,t)=>{Ou.init(e,t),M.init(e,t)});function vl(e){return zc(wl,e)}const bl=d("ZodUnknown",(e,t)=>{Su.init(e,t),M.init(e,t)});function sr(){return Dc(bl)}const Tl=d("ZodNever",(e,t)=>{Eu.init(e,t),M.init(e,t)});function zl(e){return kc(Tl,e)}const Dl=d("ZodArray",(e,t)=>{Mu.init(e,t),M.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(ot(n,r)),e.nonempty=n=>e.check(ot(1,n)),e.max=(n,r)=>e.check(yo(n,r)),e.length=(n,r)=>e.check(wo(n,r)),e.unwrap=()=>e.element});function ce(e,t){return Cc(Dl,e,t)}const kl=d("ZodObject",(e,t)=>{xu.init(e,t),M.init(e,t),O(e,"shape",()=>t.shape),e.keyof=()=>G(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sr()}),e.loose=()=>e.clone({...e._zod.def,catchall:sr()}),e.strict=()=>e.clone({...e._zod.def,catchall:zl()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>ts(e,n),e.merge=n=>ns(e,n),e.pick=n=>Ja(e,n),e.omit=n=>es(e,n),e.partial=(...n)=>rs(zo,e,n[0]),e.required=(...n)=>os(Do,e,n[0])});function $(e,t){const n={type:"object",get shape(){return pe(this,"shape",e?Va(e):{}),this.shape},..._(t)};return new kl(n)}const Ol=d("ZodUnion",(e,t)=>{Iu.init(e,t),M.init(e,t),e.options=t.options});function le(e,t){return new Ol({type:"union",options:e,..._(t)})}const Sl=d("ZodIntersection",(e,t)=>{Zu.init(e,t),M.init(e,t)});function El(e,t){return new Sl({type:"intersection",left:e,right:t})}const Ml=d("ZodRecord",(e,t)=>{$u.init(e,t),M.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function To(e,t,n){return new Ml({type:"record",keyType:e,valueType:t,..._(n)})}const Yt=d("ZodEnum",(e,t)=>{Pu.init(e,t),M.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Yt({...t,checks:[],..._(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Yt({...t,checks:[],..._(o),entries:i})}});function G(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Yt({type:"enum",entries:n,..._(t)})}const xl=d("ZodLiteral",(e,t)=>{Nu.init(e,t),M.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function H(e,t){return new xl({type:"literal",values:Array.isArray(e)?e:[e],..._(t)})}const Il=d("ZodTransform",(e,t)=>{Cu.init(e,t),M.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=i=>{if(typeof i=="string")n.issues.push(Re(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Re(s))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Zl(e){return new Il({type:"transform",transform:e})}const zo=d("ZodOptional",(e,t)=>{Ru.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ur(e){return new zo({type:"optional",innerType:e})}const $l=d("ZodNullable",(e,t)=>{Au.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function cr(e){return new $l({type:"nullable",innerType:e})}const Pl=d("ZodDefault",(e,t)=>{ju.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nl(e,t){return new Pl({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ro(t)}})}const Cl=d("ZodPrefault",(e,t)=>{Fu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Rl(e,t){return new Cl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ro(t)}})}const Do=d("ZodNonOptional",(e,t)=>{Uu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Al(e,t){return new Do({type:"nonoptional",innerType:e,..._(t)})}const jl=d("ZodCatch",(e,t)=>{Yu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Fl(e,t){return new jl({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Ul=d("ZodPipe",(e,t)=>{Lu.init(e,t),M.init(e,t),e.in=t.in,e.out=t.out});function lr(e,t){return new Ul({type:"pipe",in:e,out:t})}const Yl=d("ZodReadonly",(e,t)=>{Gu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ll(e){return new Yl({type:"readonly",innerType:e})}const Gl=d("ZodCustom",(e,t)=>{Wu.init(e,t),M.init(e,t)});function Wl(e,t={}){return Rc(Gl,e,t)}function ql(e){return Ac(e)}const Hl=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value"],Le=C(),_e=C(),ko=ue(),Oo=le([ce(C()),To(C(),C())]),So=$({type:H("slottable"),id:C()}).strict(),Eo=$({type:G(["horizontal_bar","vertical_bar"]),stacked:ue().optional(),chart_dataset_colors:Oo.optional(),synthetics_data_key:Le.optional(),chart_title:_e.optional(),allow_csv_export:ko.optional()}).strict(),Mo=$({type:G(["timeseries_line","timeseries_bar"]),stacked:ue().optional(),threshold:To(C(),V()).optional(),chart_dataset_colors:Oo.optional(),synthetics_data_key:Le.optional(),chart_title:_e.optional(),allow_csv_export:ko.optional()}).strict(),xo=$({type:H("gauge"),metric_display:G(["hidden","single","full"]).optional(),reverse_dataset:ue().optional(),numerator:V().optional(),synthetics_data_key:Le.optional(),chart_title:_e.optional()}).strict(),Io=$({type:H("donut"),synthetics_data_key:Le.optional(),chart_title:_e.optional()}).strict(),Zo=$({type:H("top_n"),chart_title:_e.optional(),synthetics_data_key:Le.optional(),description:C().optional(),entity_link:C().optional()}).strict(),$o=$({type:H("golden_signals"),chart_title:_e.optional(),long_card_titles:ue().optional(),description:C().optional(),percentile_latency:ue().optional()}).strict(),Po=$({type:H("single_value"),decimal_points:V().optional(),chart_title:_e.optional()}).strict(),Vl=$({tz:C().optional().default("Etc/UTC"),type:H("relative"),time_range:G(Ht).optional().default("1h")}).strict(),Bl=$({tz:C().optional(),type:H("absolute"),start:C(),end:C()}).strict(),Xl=le([Vl,Bl]).optional().default({tz:Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",type:"relative",time_range:"1h"}),rn=$({granularity:G(lt).optional(),time_range:Xl.optional(),limit:V().optional(),meta:$().optional()}),on=e=>ce(G(e)).optional(),an=e=>ce(G(e)).max(2).optional(),_t=e=>{const t=$({field:G(e),operator:G(Wt),value:ce(le([C(),V(),vl()]))}).strict(),n=$({field:G(e),operator:G(qt)}).strict();return ce(le([t,n])).optional()},No=rn.extend({datasource:H("api_usage"),metrics:on(Vt).optional(),dimensions:an(ft).optional(),filters:_t(fe).optional()}).strict(),Co=rn.extend({datasource:H("basic"),metrics:on(dt).optional(),dimensions:an(Fe).optional(),filters:_t(de).optional()}).strict(),Ro=rn.extend({datasource:H("llm_usage"),metrics:on(Bt).optional(),dimensions:an(ht).optional(),filters:_t(he).optional()}).strict(),Ao=le([No,Co,Ro]),jo=$({query:Ao,chart:le([Eo,xo,Io,Mo,$o,Zo,So,Po])}).strict(),Fo=$({position:$({col:V(),row:V()}).strict(),size:$({cols:V(),rows:V(),fit_to_content:ue().optional()}).strict()}).strict(),Uo=$({type:G(["chart"]),definition:jo,layout:Fo,id:C().optional()}).strict(),Yo=$({tiles:ce(Uo),tile_height:V().optional(),preset_filters:_t([...fe,...de,...he]),template_id:C().nullable().optional()}).strict(),Ql=e=>Yo.parse(e),Kl=e=>{const t=[];return de.includes(e)&&t.push("basic"),fe.includes(e)&&t.push("api_usage"),he.includes(e)&&t.push("llm_usage"),(Zr.includes(e)||Nr.includes(e))&&t.push("requests"),t},Lo=6048e5,Jl=864e5,ed=60,td=3600,dr=Symbol.for("constructDateFrom");function q(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&dr in e?e[dr](t):e instanceof Date?new e.constructor(t):new Date(t)}function R(e,t){return q(t||e,e)}function fr(e,t,n){const r=R(e,n==null?void 0:n.in);return isNaN(t)?q(e,NaN):(r.setDate(r.getDate()+t),r)}function nd(e,t,n){const r=R(e,n==null?void 0:n.in);if(isNaN(t))return q(e,NaN);const o=r.getDate(),i=q(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let rd={};function Ge(){return rd}function K(e,t){var c,l,h,y;const n=Ge(),r=(t==null?void 0:t.weekStartsOn)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((y=(h=n.locale)==null?void 0:h.options)==null?void 0:y.weekStartsOn)??0,o=R(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function it(e,t){return K(e,{...t,weekStartsOn:1})}function Go(e,t){const n=R(e,t==null?void 0:t.in),r=n.getFullYear(),o=q(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=it(o),s=q(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=it(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function hr(e){const t=R(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function od(e,...t){const n=q.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function at(e,t){const n=R(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function id(e,t,n){const[r,o]=od(n==null?void 0:n.in,e,t),i=at(r),s=at(o),c=+i-hr(i),l=+s-hr(s);return Math.round((c-l)/Jl)}function ad(e,t){const n=Go(e,t),r=q(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),it(r)}function sd(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ud(e){return!(!sd(e)&&typeof e!="number"||isNaN(+R(e)))}function ke(e,t){const n=R(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function cd(e,t){const n=R(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ld={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},dd=(e,t,n)=>{let r;const o=ld[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $t(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},md={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pd={date:$t({formats:fd,defaultWidth:"full"}),time:$t({formats:hd,defaultWidth:"full"}),dateTime:$t({formats:md,defaultWidth:"full"})},gd={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_d=(e,t,n,r)=>gd[e];function Ze(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;o=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const yd={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wd={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vd={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bd={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Td={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zd={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Dd=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},kd={ordinalNumber:Dd,era:Ze({values:yd,defaultWidth:"wide"}),quarter:Ze({values:wd,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ze({values:vd,defaultWidth:"wide"}),day:Ze({values:bd,defaultWidth:"wide"}),dayPeriod:Ze({values:Td,defaultWidth:"wide",formattingValues:zd,defaultFormattingWidth:"wide"})};function $e(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?Sd(c,m=>m.test(s)):Od(c,m=>m.test(s));let h;h=e.valueCallback?e.valueCallback(l):l,h=n.valueCallback?n.valueCallback(h):h;const y=t.slice(s.length);return{value:h,rest:y}}}function Od(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Sd(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Ed(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(o.length);return{value:s,rest:c}}}const Md=/^(\d+)(th|st|nd|rd)?/i,xd=/\d+/i,Id={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zd={any:[/^b/i,/^(a|c)/i]},$d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pd={any:[/1/i,/2/i,/3/i,/4/i]},Nd={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Cd={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Rd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ad={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},jd={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ud={ordinalNumber:Ed({matchPattern:Md,parsePattern:xd,valueCallback:e=>parseInt(e,10)}),era:$e({matchPatterns:Id,defaultMatchWidth:"wide",parsePatterns:Zd,defaultParseWidth:"any"}),quarter:$e({matchPatterns:$d,defaultMatchWidth:"wide",parsePatterns:Pd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$e({matchPatterns:Nd,defaultMatchWidth:"wide",parsePatterns:Cd,defaultParseWidth:"any"}),day:$e({matchPatterns:Rd,defaultMatchWidth:"wide",parsePatterns:Ad,defaultParseWidth:"any"}),dayPeriod:$e({matchPatterns:jd,defaultMatchWidth:"any",parsePatterns:Fd,defaultParseWidth:"any"})},Yd={code:"en-US",formatDistance:dd,formatLong:pd,formatRelative:_d,localize:kd,match:Ud,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ld(e,t){const n=R(e,t==null?void 0:t.in);return id(n,cd(n))+1}function Gd(e,t){const n=R(e,t==null?void 0:t.in),r=+it(n)-+ad(n);return Math.round(r/Lo)+1}function Wo(e,t){var y,m,p,v;const n=R(e,t==null?void 0:t.in),r=n.getFullYear(),o=Ge(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(p=o.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,s=q((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const c=K(s,t),l=q((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const h=K(l,t);return+n>=+c?r+1:+n>=+h?r:r-1}function Wd(e,t){var c,l,h,y;const n=Ge(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((y=(h=n.locale)==null?void 0:h.options)==null?void 0:y.firstWeekContainsDate)??1,o=Wo(e,t),i=q((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),K(i,t)}function qd(e,t){const n=R(e,t==null?void 0:t.in),r=+K(n,t)-+Wd(n,t);return Math.round(r/Lo)+1}function T(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const te={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return T(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):T(n+1,2)},d(e,t){return T(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return T(e.getHours()%12||12,t.length)},H(e,t){return T(e.getHours(),t.length)},m(e,t){return T(e.getMinutes(),t.length)},s(e,t){return T(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return T(o,t.length)}},Te={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mr={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return te.y(e,t)},Y:function(e,t,n,r){const o=Wo(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return T(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):T(i,t.length)},R:function(e,t){const n=Go(e);return T(n,t.length)},u:function(e,t){const n=e.getFullYear();return T(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return T(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return T(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return te.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return T(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=qd(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):T(o,t.length)},I:function(e,t,n){const r=Gd(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):T(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):te.d(e,t)},D:function(e,t,n){const r=Ld(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):T(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return T(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return T(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return T(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Te.noon:r===0?o=Te.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Te.evening:r>=12?o=Te.afternoon:r>=4?o=Te.morning:o=Te.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return te.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):te.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):T(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):T(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):te.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):te.s(e,t)},S:function(e,t){return te.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gr(r);case"XXXX":case"XX":return se(r);case"XXXXX":case"XXX":default:return se(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gr(r);case"xxxx":case"xx":return se(r);case"xxxxx":case"xxx":default:return se(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pr(r,":");case"OOOO":default:return"GMT"+se(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pr(r,":");case"zzzz":default:return"GMT"+se(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return T(r,t.length)},T:function(e,t,n){return T(+e,t.length)}};function pr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+T(i,2)}function gr(e,t){return e%60===0?(e>0?"-":"+")+T(Math.abs(e)/60,2):se(e,t)}function se(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=T(Math.trunc(r/60),2),i=T(r%60,2);return n+o+t+i}const _r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},qo=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hd=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return _r(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",_r(r,t)).replace("{{time}}",qo(o,t))},Vd={p:qo,P:Hd},Bd=/^D+$/,Xd=/^Y+$/,Qd=["D","DD","YY","YYYY"];function Kd(e){return Bd.test(e)}function Jd(e){return Xd.test(e)}function ef(e,t,n){const r=tf(e,t,n);if(console.warn(r),Qd.includes(e))throw new RangeError(r)}function tf(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const nf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,of=/^'([^]*?)'?$/,af=/''/g,sf=/[a-zA-Z]/;function Ho(e,t,n){var y,m,p,v,D,Z,Y,W;const r=Ge(),o=(n==null?void 0:n.locale)??r.locale??Yd,i=(n==null?void 0:n.firstWeekContainsDate)??((m=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((Z=(D=n==null?void 0:n.locale)==null?void 0:D.options)==null?void 0:Z.weekStartsOn)??r.weekStartsOn??((W=(Y=r.locale)==null?void 0:Y.options)==null?void 0:W.weekStartsOn)??0,c=R(e,n==null?void 0:n.in);if(!ud(c))throw new RangeError("Invalid time value");let l=t.match(rf).map(z=>{const b=z[0];if(b==="p"||b==="P"){const I=Vd[b];return I(z,o.formatLong)}return z}).join("").match(nf).map(z=>{if(z==="''")return{isToken:!1,value:"'"};const b=z[0];if(b==="'")return{isToken:!1,value:uf(z)};if(mr[b])return{isToken:!0,value:z};if(b.match(sf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:z}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));const h={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(z=>{if(!z.isToken)return z.value;const b=z.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Jd(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Kd(b))&&ef(b,t,String(e));const I=mr[b[0]];return I(c,b,o.localize,h)}).join("")}function uf(e){const t=e.match(of);return t?t[1].replace(af,"'"):e}function cf(e,t){const n=R(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),i=q(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function lf(){return Object.assign({},Ge())}function yr(e){return+R(e)}function wr(e){return Math.trunc(+R(e)/1e3)}function df(e){return Math.trunc(e*td)}function ff(e){const t=e/ed;return Math.trunc(t)}function Vo(e,t,n){return nd(e,-1,n)}function vr(e,t,n){const r=lf(),o=pf(e,n.timeZone,n.locale??r.locale);return"formatToParts"in o?hf(o,t):mf(o,t)}function hf(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function mf(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function pf(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function gf(e,t){const n=bf(t);return"formatToParts"in n?yf(n,e):wf(n,e)}const _f={year:0,month:1,day:2,hour:3,minute:4,second:5};function yf(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const i=_f[n[o].type];i!==void 0&&(r[i]=parseInt(n[o].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function wf(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Pt={},br=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),vf=br==="06/25/2014, 00:00:00"||br==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function bf(e){return Pt[e]||(Pt[e]=vf?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Pt[e]}function sn(e,t,n,r,o,i,s){const c=new Date(0);return c.setUTCFullYear(e,t,n),c.setUTCHours(r,o,i,s),c}const Tr=36e5,Tf=6e4,Nt={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function We(e,t,n){if(!e)return 0;let r=Nt.timezoneZ.exec(e);if(r)return 0;let o,i;if(r=Nt.timezoneHH.exec(e),r)return o=parseInt(r[1],10),zr(o)?-(o*Tr):NaN;if(r=Nt.timezoneHHMM.exec(e),r){o=parseInt(r[2],10);const s=parseInt(r[3],10);return zr(o,s)?(i=Math.abs(o)*Tr+s*Tf,r[1]==="+"?-i:i):NaN}if(kf(e)){t=new Date(t||Date.now());const s=n?t:zf(t),c=Lt(s,e);return-(n?c:Df(t,c,e))}return NaN}function zf(e){return sn(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Lt(e,t){const n=gf(e,t),r=sn(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let o=e.getTime();const i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function Df(e,t,n){let o=e.getTime()-t;const i=Lt(new Date(o),n);if(t===i)return t;o-=i-t;const s=Lt(new Date(o),n);return i===s?i:Math.max(i,s)}function zr(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const Dr={};function kf(e){if(Dr[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Dr[e]=!0,!0}catch{return!1}}const Of=60*1e3,Sf={X:function(e,t,n){const r=Ct(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return kr(r);case"XXXX":case"XX":return ze(r);case"XXXXX":case"XXX":default:return ze(r,":")}},x:function(e,t,n){const r=Ct(n.timeZone,e);switch(t){case"x":return kr(r);case"xxxx":case"xx":return ze(r);case"xxxxx":case"xxx":default:return ze(r,":")}},O:function(e,t,n){const r=Ct(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Ef(r,":");case"OOOO":default:return"GMT"+ze(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return vr("short",e,n);case"zzzz":default:return vr("long",e,n)}}};function Ct(e,t){const n=e?We(e,t,!0)/Of:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function st(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function ze(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=st(Math.floor(r/60),2),i=st(Math.floor(r%60),2);return n+o+t+i}function kr(e,t){return e%60===0?(e>0?"-":"+")+st(Math.abs(e)/60,2):ze(e,t)}function Ef(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+st(i,2)}function Or(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const Bo=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Rt=36e5,Sr=6e4,Mf=2,A={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Bo};function ut(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?Mf:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=xf(e),{year:o,restDateString:i}=If(r.date,n),s=Zf(i,o);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const c=s.getTime();let l=0,h;if(r.time&&(l=$f(r.time),l===null||isNaN(l)))return new Date(NaN);if(r.timeZone||t.timeZone){if(h=We(r.timeZone||t.timeZone,new Date(c+l)),isNaN(h))return new Date(NaN)}else h=Or(new Date(c+l)),h=Or(new Date(c+l+h));return new Date(c+l+h)}else return new Date(NaN)}function xf(e){const t={};let n=A.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=A.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=A.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function If(e,t){if(e){const n=A.YYY[t],r=A.YYYYY[t];let o=A.YYYY.exec(e)||r.exec(e);if(o){const i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=A.YY.exec(e)||n.exec(e),o){const i=o[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function Zf(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=A.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,Mr(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=A.DDD.exec(e),i){n=new Date(0);const s=parseInt(i[1],10);return Cf(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(i=A.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const s=parseInt(i[2],10);return Mr(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(i=A.Www.exec(e),i)return o=parseInt(i[1],10)-1,xr(o)?Er(t,o):new Date(NaN);if(i=A.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const s=parseInt(i[2],10)-1;return xr(o,s)?Er(t,o,s):new Date(NaN)}return null}function $f(e){let t,n,r=A.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),At(t)?t%24*Rt:NaN;if(r=A.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),At(t,n)?t%24*Rt+n*Sr:NaN;if(r=A.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return At(t,n,o)?t%24*Rt+n*Sr+o*1e3:NaN}return null}function Er(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Pf=[31,28,31,30,31,30,31,31,30,31,30,31],Nf=[31,29,31,30,31,30,31,31,30,31,30,31];function Xo(e){return e%400===0||e%4===0&&e%100!==0}function Mr(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=Xo(e);if(r&&n>Nf[t]||!r&&n>Pf[t])return!1}return!0}function Cf(e,t){if(t<1)return!1;const n=Xo(e);return!(n&&t>366||!n&&t>365)}function xr(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function At(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Rf=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Af(e,t,n={}){t=String(t);const r=t.match(Rf);if(r){const o=ut(n.originalDate||e,n);t=r.reduce(function(i,s){if(s[0]==="'")return i;const c=i.indexOf(s),l=i[c-1]==="'",h=i.replace(s,"'"+Sf[s[0]](o,s,n)+"'");return l?h.substring(0,c-1)+h.substring(c+1):h},t)}return Ho(e,t,n)}function Qo(e,t,n){e=ut(e,n);const r=We(t,e,!0),o=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}function jf(e,t,n,r){return r={...r,timeZone:t,originalDate:e},Af(Qo(e,t,{timeZone:r.timeZone}),n,r)}function Ff(e,t,n){if(typeof e=="string"&&!e.match(Bo))return ut(e,{...n,timeZone:t});e=ut(e,n);const r=sn(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),o=We(t,new Date(r));return new Date(r+o)}function Ko(e,t){return-We(e,t)}function Uf(e){return Ho(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function Gt(e,t={}){if(!e)return e;const n=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let r="MMM dd, yyy hh:mm a";t.short&&(r="MMM dd, yyy"),t.includeTZ&&(r+=" (z)");const o=new Date(e);return jf(o,n,r)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function Yf(e,t){return`${Gt(e.getTime())} - ${Gt(t.getTime(),{includeTZ:!0})}`}const Ae={secondly:1e3,tenSecondly:10*1e3,thirtySecondly:30*1e3,minutely:60*1e3,fiveMinutely:5*60*1e3,tenMinutely:10*60*1e3,thirtyMinutely:30*60*1e3,hourly:60*60*1e3,twoHourly:2*60*60*1e3,twelveHourly:12*60*60*1e3,daily:60*60*24*1e3,weekly:60*60*24*7*1e3,trend:0};function Lf(e,t){return e.map(n=>({value:n,label:t.t(`configuration.vitals.reports.granularity.${n}`)}))}function Jo(e,t){return{duration:e,type:"duration",origin:t}}function Gf(e){return e&&lt.find(n=>e<=Ae[n])||null}function ei(e,t,n,r){const o=Ae[n];let i=0;return o>=Ae.daily&&(r?i=-Ko(r,t):i=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-i)/o)*o+i)}function ti(e,t,n){return ei(Math.floor,e,t,n)}function un(e,t,n){return ei(Math.ceil,e,t,n)}class yt{constructor(t,n,r){P(this,"timeframe");P(this,"tz");P(this,"dataGranularity");if(this.constructor===yt)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=n,this.dataGranularity=r??t.dataGranularity}calculateStartDate(t,n,r=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*r);{const o=this.endDate(),i=this.timeframe.rawStart(this.tz),s=ti(i,n,this.tz),l=(o.getTime()-s.getTime())*(r-1);return new Date(s.getTime()-l)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return Jo(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return wr(this.startDate())}endSeconds(){return wr(this.endDate())}startMs(){return yr(this.startDate())}endMs(){return yr(this.endDate())}}class Wf extends yt{constructor(n,r,o,i,s){super(n,o,i);P(this,"granularity");r&&n.allowedGranularities(s).has(r)?this.granularity=r:s?this.granularity=n.fineGrainedDefaultGranularity??n.defaultResponseGranularity:this.granularity=n.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return un(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return Ae[this.granularity]}}class ni extends yt{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return un(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class qf extends ni{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={exports:{}};ct.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",h="[object Error]",y="[object Function]",m="[object GeneratorFunction]",p="[object Map]",v="[object Number]",D="[object Object]",Z="[object Promise]",Y="[object RegExp]",W="[object Set]",z="[object String]",b="[object Symbol]",I="[object WeakMap]",Me="[object ArrayBuffer]",J="[object DataView]",qe="[object Float32Array]",ln="[object Float64Array]",dn="[object Int8Array]",fn="[object Int16Array]",hn="[object Int32Array]",mn="[object Uint8Array]",pn="[object Uint8ClampedArray]",gn="[object Uint16Array]",_n="[object Uint32Array]",ii=/[\\^$.*+?()[\]{}|]/g,ai=/\w*$/,si=/^\[object .+?Constructor\]$/,ui=/^(?:0|[1-9]\d*)$/,k={};k[i]=k[s]=k[Me]=k[J]=k[c]=k[l]=k[qe]=k[ln]=k[dn]=k[fn]=k[hn]=k[p]=k[v]=k[D]=k[Y]=k[W]=k[z]=k[b]=k[mn]=k[pn]=k[gn]=k[_n]=!0,k[h]=k[y]=k[I]=!1;var ci=typeof rt=="object"&&rt&&rt.Object===Object&&rt,li=typeof self=="object"&&self&&self.Object===Object&&self,B=ci||li||Function("return this")(),yn=t&&!t.nodeType&&t,wn=yn&&!0&&e&&!e.nodeType&&e,di=wn&&wn.exports===yn;function fi(a,u){return a.set(u[0],u[1]),a}function hi(a,u){return a.add(u),a}function mi(a,u){for(var f=-1,g=a?a.length:0;++f<g&&u(a[f],f,a)!==!1;);return a}function pi(a,u){for(var f=-1,g=u.length,N=a.length;++f<g;)a[N+f]=u[f];return a}function vn(a,u,f,g){for(var N=-1,j=a?a.length:0;++N<j;)f=u(f,a[N],N,a);return f}function gi(a,u){for(var f=-1,g=Array(a);++f<a;)g[f]=u(f);return g}function _i(a,u){return a==null?void 0:a[u]}function bn(a){var u=!1;if(a!=null&&typeof a.toString!="function")try{u=!!(a+"")}catch{}return u}function Tn(a){var u=-1,f=Array(a.size);return a.forEach(function(g,N){f[++u]=[N,g]}),f}function vt(a,u){return function(f){return a(u(f))}}function zn(a){var u=-1,f=Array(a.size);return a.forEach(function(g){f[++u]=g}),f}var yi=Array.prototype,wi=Function.prototype,He=Object.prototype,bt=B["__core-js_shared__"],Dn=function(){var a=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),kn=wi.toString,ee=He.hasOwnProperty,Ve=He.toString,vi=RegExp("^"+kn.call(ee).replace(ii,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),On=di?B.Buffer:void 0,Sn=B.Symbol,En=B.Uint8Array,bi=vt(Object.getPrototypeOf,Object),Ti=Object.create,zi=He.propertyIsEnumerable,Di=yi.splice,Mn=Object.getOwnPropertySymbols,ki=On?On.isBuffer:void 0,Oi=vt(Object.keys,Object),Tt=ve(B,"DataView"),xe=ve(B,"Map"),zt=ve(B,"Promise"),Dt=ve(B,"Set"),kt=ve(B,"WeakMap"),Ie=ve(Object,"create"),Si=ae(Tt),Ei=ae(xe),Mi=ae(zt),xi=ae(Dt),Ii=ae(kt),xn=Sn?Sn.prototype:void 0,In=xn?xn.valueOf:void 0;function oe(a){var u=-1,f=a?a.length:0;for(this.clear();++u<f;){var g=a[u];this.set(g[0],g[1])}}function Zi(){this.__data__=Ie?Ie(null):{}}function $i(a){return this.has(a)&&delete this.__data__[a]}function Pi(a){var u=this.__data__;if(Ie){var f=u[a];return f===r?void 0:f}return ee.call(u,a)?u[a]:void 0}function Ni(a){var u=this.__data__;return Ie?u[a]!==void 0:ee.call(u,a)}function Ci(a,u){var f=this.__data__;return f[a]=Ie&&u===void 0?r:u,this}oe.prototype.clear=Zi,oe.prototype.delete=$i,oe.prototype.get=Pi,oe.prototype.has=Ni,oe.prototype.set=Ci;function X(a){var u=-1,f=a?a.length:0;for(this.clear();++u<f;){var g=a[u];this.set(g[0],g[1])}}function Ri(){this.__data__=[]}function Ai(a){var u=this.__data__,f=Be(u,a);if(f<0)return!1;var g=u.length-1;return f==g?u.pop():Di.call(u,f,1),!0}function ji(a){var u=this.__data__,f=Be(u,a);return f<0?void 0:u[f][1]}function Fi(a){return Be(this.__data__,a)>-1}function Ui(a,u){var f=this.__data__,g=Be(f,a);return g<0?f.push([a,u]):f[g][1]=u,this}X.prototype.clear=Ri,X.prototype.delete=Ai,X.prototype.get=ji,X.prototype.has=Fi,X.prototype.set=Ui;function ye(a){var u=-1,f=a?a.length:0;for(this.clear();++u<f;){var g=a[u];this.set(g[0],g[1])}}function Yi(){this.__data__={hash:new oe,map:new(xe||X),string:new oe}}function Li(a){return Xe(this,a).delete(a)}function Gi(a){return Xe(this,a).get(a)}function Wi(a){return Xe(this,a).has(a)}function qi(a,u){return Xe(this,a).set(a,u),this}ye.prototype.clear=Yi,ye.prototype.delete=Li,ye.prototype.get=Gi,ye.prototype.has=Wi,ye.prototype.set=qi;function we(a){this.__data__=new X(a)}function Hi(){this.__data__=new X}function Vi(a){return this.__data__.delete(a)}function Bi(a){return this.__data__.get(a)}function Xi(a){return this.__data__.has(a)}function Qi(a,u){var f=this.__data__;if(f instanceof X){var g=f.__data__;if(!xe||g.length<n-1)return g.push([a,u]),this;f=this.__data__=new ye(g)}return f.set(a,u),this}we.prototype.clear=Hi,we.prototype.delete=Vi,we.prototype.get=Bi,we.prototype.has=Xi,we.prototype.set=Qi;function Ki(a,u){var f=Et(a)||Ta(a)?gi(a.length,String):[],g=f.length,N=!!g;for(var j in a)ee.call(a,j)&&!(N&&(j=="length"||ya(j,g)))&&f.push(j);return f}function Zn(a,u,f){var g=a[u];(!(ee.call(a,u)&&Cn(g,f))||f===void 0&&!(u in a))&&(a[u]=f)}function Be(a,u){for(var f=a.length;f--;)if(Cn(a[f][0],u))return f;return-1}function Ji(a,u){return a&&$n(u,Mt(u),a)}function Ot(a,u,f,g,N,j,Q){var F;if(g&&(F=j?g(a,N,j,Q):g(a)),F!==void 0)return F;if(!Qe(a))return a;var jn=Et(a);if(jn){if(F=pa(a),!u)return fa(a,F)}else{var be=ie(a),Fn=be==y||be==m;if(Da(a))return ia(a,u);if(be==D||be==i||Fn&&!j){if(bn(a))return j?a:{};if(F=ga(Fn?{}:a),!u)return ha(a,Ji(F,a))}else{if(!k[be])return j?a:{};F=_a(a,be,Ot,u)}}Q||(Q=new we);var Un=Q.get(a);if(Un)return Un;if(Q.set(a,F),!jn)var Yn=f?ma(a):Mt(a);return mi(Yn||a,function(xt,Ke){Yn&&(Ke=xt,xt=a[Ke]),Zn(F,Ke,Ot(xt,u,f,g,Ke,a,Q))}),F}function ea(a){return Qe(a)?Ti(a):{}}function ta(a,u,f){var g=u(a);return Et(a)?g:pi(g,f(a))}function na(a){return Ve.call(a)}function ra(a){if(!Qe(a)||va(a))return!1;var u=An(a)||bn(a)?vi:si;return u.test(ae(a))}function oa(a){if(!Nn(a))return Oi(a);var u=[];for(var f in Object(a))ee.call(a,f)&&f!="constructor"&&u.push(f);return u}function ia(a,u){if(u)return a.slice();var f=new a.constructor(a.length);return a.copy(f),f}function St(a){var u=new a.constructor(a.byteLength);return new En(u).set(new En(a)),u}function aa(a,u){var f=u?St(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function sa(a,u,f){var g=u?f(Tn(a),!0):Tn(a);return vn(g,fi,new a.constructor)}function ua(a){var u=new a.constructor(a.source,ai.exec(a));return u.lastIndex=a.lastIndex,u}function ca(a,u,f){var g=u?f(zn(a),!0):zn(a);return vn(g,hi,new a.constructor)}function la(a){return In?Object(In.call(a)):{}}function da(a,u){var f=u?St(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function fa(a,u){var f=-1,g=a.length;for(u||(u=Array(g));++f<g;)u[f]=a[f];return u}function $n(a,u,f,g){f||(f={});for(var N=-1,j=u.length;++N<j;){var Q=u[N],F=void 0;Zn(f,Q,F===void 0?a[Q]:F)}return f}function ha(a,u){return $n(a,Pn(a),u)}function ma(a){return ta(a,Mt,Pn)}function Xe(a,u){var f=a.__data__;return wa(u)?f[typeof u=="string"?"string":"hash"]:f.map}function ve(a,u){var f=_i(a,u);return ra(f)?f:void 0}var Pn=Mn?vt(Mn,Object):Sa,ie=na;(Tt&&ie(new Tt(new ArrayBuffer(1)))!=J||xe&&ie(new xe)!=p||zt&&ie(zt.resolve())!=Z||Dt&&ie(new Dt)!=W||kt&&ie(new kt)!=I)&&(ie=function(a){var u=Ve.call(a),f=u==D?a.constructor:void 0,g=f?ae(f):void 0;if(g)switch(g){case Si:return J;case Ei:return p;case Mi:return Z;case xi:return W;case Ii:return I}return u});function pa(a){var u=a.length,f=a.constructor(u);return u&&typeof a[0]=="string"&&ee.call(a,"index")&&(f.index=a.index,f.input=a.input),f}function ga(a){return typeof a.constructor=="function"&&!Nn(a)?ea(bi(a)):{}}function _a(a,u,f,g){var N=a.constructor;switch(u){case Me:return St(a);case c:case l:return new N(+a);case J:return aa(a,g);case qe:case ln:case dn:case fn:case hn:case mn:case pn:case gn:case _n:return da(a,g);case p:return sa(a,g,f);case v:case z:return new N(a);case Y:return ua(a);case W:return ca(a,g,f);case b:return la(a)}}function ya(a,u){return u=u??o,!!u&&(typeof a=="number"||ui.test(a))&&a>-1&&a%1==0&&a<u}function wa(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function va(a){return!!Dn&&Dn in a}function Nn(a){var u=a&&a.constructor,f=typeof u=="function"&&u.prototype||He;return a===f}function ae(a){if(a!=null){try{return kn.call(a)}catch{}try{return a+""}catch{}}return""}function ba(a){return Ot(a,!0,!0)}function Cn(a,u){return a===u||a!==a&&u!==u}function Ta(a){return za(a)&&ee.call(a,"callee")&&(!zi.call(a,"callee")||Ve.call(a)==i)}var Et=Array.isArray;function Rn(a){return a!=null&&ka(a.length)&&!An(a)}function za(a){return Oa(a)&&Rn(a)}var Da=ki||Ea;function An(a){var u=Qe(a)?Ve.call(a):"";return u==y||u==m}function ka(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}function Qe(a){var u=typeof a;return!!a&&(u=="object"||u=="function")}function Oa(a){return!!a&&typeof a=="object"}function Mt(a){return Rn(a)?Ki(a):oa(a)}function Sa(){return[]}function Ea(){return!1}e.exports=ba})(ct,ct.exports);var Vf=ct.exports;const Bf=Hf(Vf),Se=(e,t)=>new Date(e.getTime()-Ko(t,e));class L{constructor(t){P(this,"timeframeText");P(this,"key");P(this,"display");P(this,"timeframeLength");P(this,"allowedTiers");P(this,"defaultResponseGranularity");P(this,"dataGranularity");P(this,"isRelative");P(this,"fineGrainedDefaultGranularity");P(this,"_startCustom");P(this,"_endCustom");P(this,"_allowedGranularitiesOverride");this.display=t.display,this.timeframeText=t.timeframeText,this.key=t.key,this.timeframeLength=t.timeframeLength,this.allowedTiers=t.allowedTiers,this.defaultResponseGranularity=t.defaultResponseGranularity,this.dataGranularity=t.dataGranularity,this.isRelative=t.isRelative,this._startCustom=t.startCustom,this._endCustom=t.endCustom,this._allowedGranularitiesOverride=t.allowedGranularitiesOverride,this.fineGrainedDefaultGranularity=t.fineGrainedDefaultGranularity}rawEnd(t){return this._endCustom||new Date}rawStart(t){return this._startCustom||new Date(this.rawEnd().getTime()-this.timeframeLengthMs())}timeframeLengthMs(){return this.timeframeLength()*1e3}maximumTimeframeLength(){return this.timeframeLength()}allowedGranularities(t){if(this._allowedGranularitiesOverride&&t)return new Set(this._allowedGranularitiesOverride);const n=new Set,r=this.maximumTimeframeLength()/3600;return r<=6&&n.add("minutely"),r>=2&&r<=7*24&&n.add("hourly"),r>=2*24&&n.add("daily"),r>=2*24*14&&n.add("weekly"),n}cacheKey(){return this.key!=="custom"?this.key:`${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`}v4Query(t){return this.key==="custom"?{type:"absolute",start:this.rawStart(),end:this.rawEnd(),tz:t}:{type:"relative",time_range:this.key,tz:t}}tzAdjustedDate(t){if(!t)return new Date;const n=Ff(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return Qo(n,t)}}class Xf extends L{rawStart(t){let n=K(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=Se(n,t)),n}maximumTimeframeLength(){return 60*60*24*7}}class Qf extends L{rawStart(t){let n=ke(this.tzAdjustedDate(t));return t&&(n=Se(n,t)),n}maximumTimeframeLength(){return 60*60*24*31}}class Kf extends L{rawEnd(t){let n=K(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=Se(n,t)),n}rawStart(t){const n=this.tzAdjustedDate(t);let r=K(n.setDate(n.getDate()-7),{weekStartsOn:1});return t&&(r=Se(r,t)),r}}class Jf extends L{rawEnd(t){let n=ke(this.tzAdjustedDate(t));return t&&(n=Se(n,t)),n}rawStart(t){let n=ke(Vo(this.tzAdjustedDate(t)));return t&&(n=Se(n,t)),n}}const ri=new Map([[w.FIFTEEN_MIN,new L({key:w.FIFTEEN_MIN,display:"Last 15 minutes",timeframeText:"15 minutes",timeframeLength:()=>60*15,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"thirtySecondly",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely"]})],[w.ONE_HOUR,new L({key:w.ONE_HOUR,display:"Last hour",timeframeText:"One hour",timeframeLength:()=>60*60*1,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"minutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely"]})],[w.SIX_HOUR,new L({key:w.SIX_HOUR,display:"Last 6 hours",timeframeText:"6 hours",timeframeLength:()=>60*60*6,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"fiveMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[w.TWELVE_HOUR,new L({key:w.TWELVE_HOUR,display:"Last 12 hours",timeframeText:"12 hours",timeframeLength:()=>60*60*12,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"tenMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[w.ONE_DAY,new L({key:w.ONE_DAY,display:"Last 24 hours",timeframeText:"24 hours",timeframeLength:()=>60*60*24,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"thirtyMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[w.SEVEN_DAY,new L({key:w.SEVEN_DAY,display:"Last 7 days",timeframeText:"7 days",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[w.THIRTY_DAY,new L({key:w.THIRTY_DAY,display:"Last 30 days",timeframeText:"30 days",timeframeLength:()=>60*60*24*30,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twelveHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[w.CURRENT_WEEK,new Xf({key:w.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=K(new Date,{weekStartsOn:1});return(at(fr(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[w.CURRENT_MONTH,new Qf({key:w.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=ke(new Date);return(at(fr(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[w.PREVIOUS_WEEK,new Kf({key:w.PREVIOUS_WEEK,display:"Previous week",timeframeText:"Week",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[w.PREVIOUS_MONTH,new Jf({key:w.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=ke(new Date),n=ke(Vo(new Date));return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(e=oi(t,n)),60*60*24*cf(new Date().setMonth(new Date().getMonth()-1))+df(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function eh(e){const t=new Date(e.start),n=new Date(e.end),r=(n.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&Bf(ri.get(e.timePeriodsKey))||new L({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:n,timeframeLength:()=>r,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function th(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function nh(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function oi(e,t){return ff(e.getTimezoneOffset()-t.getTimezoneOffset())}const rh={"15M":w.FIFTEEN_MIN,"1H":w.ONE_HOUR,"6H":w.SIX_HOUR,"12H":w.TWELVE_HOUR,"24H":w.ONE_DAY,"7D":w.SEVEN_DAY,"15m":w.FIFTEEN_MIN,"1h":w.ONE_HOUR,"6h":w.SIX_HOUR,"12h":w.TWELVE_HOUR,"24h":w.ONE_DAY,"7d":w.SEVEN_DAY,"30d":w.THIRTY_DAY,current_week:w.CURRENT_WEEK,current_month:w.CURRENT_MONTH,previous_week:w.PREVIOUS_WEEK,previous_month:w.PREVIOUS_MONTH};class wt{constructor(t){P(this,"_seed");this._seed=t}next(t,n){const r=Math.sin(this._seed++)*1e4,o=r-Math.floor(r);return Math.floor(o*(n-t+1))+t}}const oh=(e,t,n)=>{const r=cn(10,1e4),o=new wt(r),i=Date.now()-6*60*60*1e3,s=Date.now(),c=[];let l=0;for(let m=i;m<=s;m+=60*60*1e3)if(t)for(const p in t)t[p].forEach(v=>{l+=o.next(50,500);const D={[p]:v,[e.name]:l},Z={version:"1.0",timestamp:new Date(m).toISOString(),event:D};c.push(Z)});else{l+=o.next(50,500);const p={version:"1.0",timestamp:new Date(m).toISOString(),event:{[e.name]:l}};c.push(p)}const h={};if(t)for(const m in t)h[m]={},t[m].forEach(p=>{h[m][p]={name:p,deleted:!1}});const y={start_ms:i,end_ms:s,start:new Date(i).toISOString(),end:new Date(s).toISOString(),query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:h,...n??{}};return{data:c,meta:y}},ih=(e,t)=>{const n=cn(10,1e4),r=new wt(n),o=Date.now()-6*60*60*1e3,i=Date.now(),s=[],c={};e.forEach(h=>{c[h.name]=0});for(let h=o;h<=i;h+=60*60*1e3){const y={};e.forEach(p=>{c[p.name]+=r.next(50,500),y[p.name]=c[p.name]});const m={version:"1.0",timestamp:new Date(h).toISOString(),event:y};s.push(m)}const l={start_ms:o,end_ms:i,start:new Date(o).toISOString(),end:new Date(i).toISOString(),query_id:"12345",metric_names:e.map(h=>h.name),metric_units:e.reduce((h,y)=>(h[y.name]=y.unit,h),{}),granularity_ms:60*60*1e3,display:{},...t??{}};return{data:s,meta:l}},ah=(e,t,n)=>{const r=Math.floor(Math.random()*9991)+10,o=new wt(r),i=Date.now()-6*60*60*1e3,s=Date.now(),c=new Date((i+s)/2).toISOString(),l=[];if(t){const m=Object.keys(t),p=Object.values(t),v=(D,Z)=>{if(Z===m.length){e.forEach(Y=>{D[Y.name]=o.next(1e3,5e7)}),l.push({version:"1.0",timestamp:new Date().toISOString(),event:{...D}});return}p[Z].forEach(Y=>{v({...D,[m[Z]]:Y},Z+1)})};v({},0)}else{const m={};e.forEach(p=>{m[p.name]=o.next(50,500)}),l.push({version:"1.0",timestamp:c,event:m})}const h={};if(t)for(const m in t)h[m]={},t[m].forEach(p=>{h[m][p]={name:p,deleted:!1}});const y={start_ms:i,end_ms:s,start:new Date(i).toISOString(),end:new Date(s).toISOString(),query_id:"12345",metric_names:e.map(m=>m.name),metric_units:e.reduce((m,p)=>(m[p.name]=p.unit,m),{}),truncated:!1,limit:50,display:h,granularity_ms:s-i,...n??{}};return{data:l,meta:y}};function cn(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}exports.DeltaQueryTime=qf;exports.Granularities=Ae;exports.REFRESH_INTERVAL_MS=Ia;exports.SeededRandom=wt;exports.TIMEFRAME_LOOKUP=rh;exports.TimePeriods=ri;exports.Timeframe=L;exports.TimeframeKeys=w;exports.TimeseriesQueryTime=Wf;exports.UnaryQueryTime=ni;exports.aiExploreAggregations=Bt;exports.basicExploreAggregations=dt;exports.ceilToNearestTimeGrain=un;exports.dashboardTileTypes=Hl;exports.dashboardsSchemaV1=Wa;exports.datasourceToFilterableDimensions=Cr;exports.datePickerSelectionToTimeframe=eh;exports.dstOffsetHours=oi;exports.exploreAggregations=Vt;exports.exploreFilterTypesV2=Wt;exports.filterableAiExploreDimensions=he;exports.filterableBasicExploreDimensions=de;exports.filterableExploreDimensions=fe;exports.filterableRequestDimensions=Zr;exports.filterableRequestMetrics=Nr;exports.filterableRequestWildcardDimensions=Ra;exports.floorToNearestTimeGrain=ti;exports.formatISOTimeWithTZ=Uf;exports.formatTime=Gt;exports.formatTimeRange=Yf;exports.generateCrossSectionalData=ah;exports.generateMultipleMetricTimeSeriesData=ih;exports.generateSingleMetricTimeSeriesData=oh;exports.getFieldDataSources=Kl;exports.granularitiesToOptions=Lf;exports.granularityMsToQuery=Jo;exports.granularityValues=lt;exports.msToGranularity=Gf;exports.parseDashboardConfig=Ql;exports.queryDatasources=ja;exports.queryableAiExploreDimensions=ht;exports.queryableBasicExploreDimensions=Fe;exports.queryableExploreDimensions=ft;exports.queryableRequestDimensions=Ir;exports.queryableRequestMetrics=Pr;exports.queryableRequestWildcardDimensions=$r;exports.rand=cn;exports.relativeTimeRangeValuesRequestV2=Aa;exports.relativeTimeRangeValuesV4=Ht;exports.reportChartTypes=Za;exports.requestFilterTypeEmptyV2=qt;exports.requestFilterTypeEqualsV2=$a;exports.requestFilterTypeMetricV2=Pa;exports.requestFilterTypeWildcardV2=Na;exports.stripUnknownFilters=Fa;exports.timeRangeTypeV2=Ca;exports.timeframeToDatepickerSelection=th;exports.timeframeToDatepickerTimeperiod=nh;exports.zApiUsageQuery=No;exports.zBarChartSchema=Eo;exports.zBasicQuery=Co;exports.zDashboardConfig=Yo;exports.zDonutChartSchema=Io;exports.zGaugeChartSchema=xo;exports.zLlmUsageQuery=Ro;exports.zMetricCardSchema=$o;exports.zSingleValueSchema=Po;exports.zSlottableSchema=So;exports.zTileConfig=Uo;exports.zTileDefinition=jo;exports.zTileLayout=Fo;exports.zTimeseriesChartSchema=Mo;exports.zTopNTableSchema=Zo;exports.zValidDashboardQuery=Ao;
18
+ `)}p.write("payload.value = newResult;"),p.write("return payload;");const W=p.compile();return(z,b)=>W(m,z,b)};let o;const i=Ft,s=!eo.jitless,l=s&&Ba.value,h=t.catchall;let y;e._zod.parse=(m,p)=>{y??(y=n.value);const v=m.value;if(!i(v))return m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m;const D=[];if(s&&l&&(p==null?void 0:p.async)===!1&&p.jitless!==!0)o||(o=r(t.shape)),m=o(m,p);else{m.value={};const b=y.shape;for(const I of y.keys){const J=b[I]._zod.run({value:v[I],issues:[]},p);J instanceof Promise?D.push(J.then(qe=>et(qe,m,I,v))):et(J,m,I,v)}}if(!h)return D.length?Promise.all(D).then(()=>m):m;const Z=[],Y=y.keySet,W=h._zod,z=W.def.type;for(const b of Object.keys(v)){if(Y.has(b))continue;if(z==="never"){Z.push(b);continue}const I=W.run({value:v[b],issues:[]},p);I instanceof Promise?D.push(I.then(Me=>et(Me,m,b,v))):et(I,m,b,v)}return Z.length&&m.issues.push({code:"unrecognized_keys",keys:Z,input:v,inst:e}),D.length?Promise.all(D).then(()=>m):m}});function Hn(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!Pe(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>re(s,r,ne())))}),t)}const Iu=d("$ZodUnion",(e,t)=>{S.init(e,t),O(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),O(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),O(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),O(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>en(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let s=!1;const c=[];for(const l of t.options){const h=l._zod.run({value:o.value,issues:[]},i);if(h instanceof Promise)c.push(h),s=!0;else{if(h.issues.length===0)return h;c.push(h)}}return s?Promise.all(c).then(l=>Hn(l,o,e,i)):Hn(c,o,e,i)}}),Zu=d("$ZodIntersection",(e,t)=>{S.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,h])=>Vn(n,l,h)):Vn(n,i,s)}});function Ut(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ce(e)&&Ce(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const s=Ut(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],s=Ut(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Vn(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Pe(e))return e;const r=Ut(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const $u=d("$ZodRecord",(e,t)=>{S.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Ce(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const i=[];if(t.keyType._zod.values){const s=t.keyType._zod.values;n.value={};for(const l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const h=t.valueType._zod.run({value:o[l],issues:[]},r);h instanceof Promise?i.push(h.then(y=>{y.issues.length&&n.issues.push(...De(l,y.issues)),n.value[l]=y.value})):(h.issues.length&&n.issues.push(...De(l,h.issues)),n.value[l]=h.value)}let c;for(const l in o)s.has(l)||(c=c??[],c.push(l));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{n.value={};for(const s of Reflect.ownKeys(o)){if(s==="__proto__")continue;const c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>re(h,r,ne())),input:s,path:[s],inst:e}),n.value[c.value]=c.value;continue}const l=t.valueType._zod.run({value:o[s],issues:[]},r);l instanceof Promise?i.push(l.then(h=>{h.issues.length&&n.issues.push(...De(s,h.issues)),n.value[c.value]=h.value})):(l.issues.length&&n.issues.push(...De(s,l.issues)),n.value[c.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Pu=d("$ZodEnum",(e,t)=>{S.init(e,t);const n=qa(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Xa.has(typeof o)).map(o=>typeof o=="string"?Oe(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),Nu=d("$ZodLiteral",(e,t)=>{if(S.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Oe(n):n?Oe(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const o=n.value;return e._zod.values.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),Cu=d("$ZodTransform",(e,t)=>{S.init(e,t),e._zod.parse=(n,r)=>{const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new Ne;return n.value=o,n}});function Bn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ru=d("$ZodOptional",(e,t)=>{S.init(e,t),e._zod.optin="optional",e._zod.optout="optional",O(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),O(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${en(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Bn(i,n.value)):Bn(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Au=d("$ZodNullable",(e,t)=>{S.init(e,t),O(e._zod,"optin",()=>t.innerType._zod.optin),O(e._zod,"optout",()=>t.innerType._zod.optout),O(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${en(n.source)}|null)$`):void 0}),O(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ju=d("$ZodDefault",(e,t)=>{S.init(e,t),e._zod.optin="optional",O(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Xn(i,t)):Xn(o,t)}});function Xn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Fu=d("$ZodPrefault",(e,t)=>{S.init(e,t),e._zod.optin="optional",O(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Uu=d("$ZodNonOptional",(e,t)=>{S.init(e,t),O(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Qn(i,e)):Qn(o,e)}});function Qn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Yu=d("$ZodCatch",(e,t)=>{S.init(e,t),O(e._zod,"optin",()=>t.innerType._zod.optin),O(e._zod,"optout",()=>t.innerType._zod.optout),O(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(s=>re(s,r,ne()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>re(i,r,ne()))},input:n.value}),n.issues=[]),n)}}),Lu=d("$ZodPipe",(e,t)=>{S.init(e,t),O(e._zod,"values",()=>t.in._zod.values),O(e._zod,"optin",()=>t.in._zod.optin),O(e._zod,"optout",()=>t.out._zod.optout),O(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>Kn(i,t,r)):Kn(o,t,r)}});function Kn(e,t,n){return e.issues.length?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const Gu=d("$ZodReadonly",(e,t)=>{S.init(e,t),O(e._zod,"propValues",()=>t.innerType._zod.propValues),O(e._zod,"values",()=>t.innerType._zod.values),O(e._zod,"optin",()=>t.innerType._zod.optin),O(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Jn):Jn(o)}});function Jn(e){return e.value=Object.freeze(e.value),e}const Wu=d("$ZodCustom",(e,t)=>{U.init(e,t),S.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>er(i,n,r,e));er(o,n,r,e)}});function er(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Re(o))}}class qu{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Hu(){return new qu}const tt=Hu();function Vu(e,t){return new e({type:"string",..._(t)})}function Bu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._(t)})}function tr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._(t)})}function Xu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._(t)})}function Qu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._(t)})}function Ku(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._(t)})}function Ju(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._(t)})}function ec(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._(t)})}function tc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._(t)})}function nc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._(t)})}function rc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._(t)})}function oc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._(t)})}function ic(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._(t)})}function ac(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._(t)})}function sc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._(t)})}function uc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._(t)})}function cc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._(t)})}function lc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._(t)})}function dc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._(t)})}function fc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._(t)})}function hc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._(t)})}function mc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._(t)})}function pc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._(t)})}function gc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._(t)})}function _c(e,t){return new e({type:"string",format:"date",check:"string_format",..._(t)})}function yc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,..._(t)})}function wc(e,t){return new e({type:"string",format:"duration",check:"string_format",..._(t)})}function vc(e,t){return new e({type:"number",checks:[],..._(t)})}function bc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",..._(t)})}function Tc(e,t){return new e({type:"boolean",..._(t)})}function zc(e,t){return new e({type:"null",..._(t)})}function Dc(e){return new e({type:"unknown"})}function kc(e,t){return new e({type:"never",..._(t)})}function nr(e,t){return new mo({check:"less_than",..._(t),value:e,inclusive:!1})}function It(e,t){return new mo({check:"less_than",..._(t),value:e,inclusive:!0})}function rr(e,t){return new po({check:"greater_than",..._(t),value:e,inclusive:!1})}function Zt(e,t){return new po({check:"greater_than",..._(t),value:e,inclusive:!0})}function or(e,t){return new js({check:"multiple_of",..._(t),value:e})}function yo(e,t){return new Us({check:"max_length",..._(t),maximum:e})}function ot(e,t){return new Ys({check:"min_length",..._(t),minimum:e})}function wo(e,t){return new Ls({check:"length_equals",..._(t),length:e})}function Oc(e,t){return new Gs({check:"string_format",format:"regex",..._(t),pattern:e})}function Sc(e){return new Ws({check:"string_format",format:"lowercase",..._(e)})}function Ec(e){return new qs({check:"string_format",format:"uppercase",..._(e)})}function Mc(e,t){return new Hs({check:"string_format",format:"includes",..._(t),includes:e})}function xc(e,t){return new Vs({check:"string_format",format:"starts_with",..._(t),prefix:e})}function Ic(e,t){return new Bs({check:"string_format",format:"ends_with",..._(t),suffix:e})}function Ye(e){return new Xs({check:"overwrite",tx:e})}function Zc(e){return Ye(t=>t.normalize(e))}function $c(){return Ye(e=>e.trim())}function Pc(){return Ye(e=>e.toLowerCase())}function Nc(){return Ye(e=>e.toUpperCase())}function Cc(e,t,n){return new e({type:"array",element:t,..._(n)})}function Rc(e,t,n){return new e({type:"custom",check:"custom",fn:t,..._(n)})}function Ac(e){const t=jc(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Re(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Re(o))}},e(n.value,n)));return t}function jc(e,t){const n=new U({check:"custom",..._(t)});return n._zod.check=e,n}const Fc=d("ZodISODateTime",(e,t)=>{lu.init(e,t),x.init(e,t)});function Uc(e){return gc(Fc,e)}const Yc=d("ZodISODate",(e,t)=>{du.init(e,t),x.init(e,t)});function Lc(e){return _c(Yc,e)}const Gc=d("ZodISOTime",(e,t)=>{fu.init(e,t),x.init(e,t)});function Wc(e){return yc(Gc,e)}const qc=d("ZodISODuration",(e,t)=>{hu.init(e,t),x.init(e,t)});function Hc(e){return wc(qc,e)}const Vc=(e,t)=>{io.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>as(e,n)},flatten:{value:n=>is(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,jt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,jt,2)}},isEmpty:{get(){return e.issues.length===0}}})},gt=d("ZodError",Vc,{Parent:Error}),Bc=ss(gt),Xc=us(gt),Qc=so(gt),Kc=uo(gt),M=d("ZodType",(e,t)=>(S.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>ge(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>Bc(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Qc(e,n,r),e.parseAsync=async(n,r)=>Xc(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Kc(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(Wl(n,r)),e.superRefine=n=>e.check(ql(n)),e.overwrite=n=>e.check(Ye(n)),e.optional=()=>ur(e),e.nullable=()=>cr(e),e.nullish=()=>ur(cr(e)),e.nonoptional=n=>Al(e,n),e.array=()=>ce(e),e.or=n=>le([e,n]),e.and=n=>El(e,n),e.transform=n=>lr(e,Zl(n)),e.default=n=>Nl(e,n),e.prefault=n=>Rl(e,n),e.catch=n=>Fl(e,n),e.pipe=n=>lr(e,n),e.readonly=()=>Ll(e),e.describe=n=>{const r=e.clone();return tt.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=tt.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return tt.get(e);const r=e.clone();return tt.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),vo=d("_ZodString",(e,t)=>{nn.init(e,t),M.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Oc(...r)),e.includes=(...r)=>e.check(Mc(...r)),e.startsWith=(...r)=>e.check(xc(...r)),e.endsWith=(...r)=>e.check(Ic(...r)),e.min=(...r)=>e.check(ot(...r)),e.max=(...r)=>e.check(yo(...r)),e.length=(...r)=>e.check(wo(...r)),e.nonempty=(...r)=>e.check(ot(1,...r)),e.lowercase=r=>e.check(Sc(r)),e.uppercase=r=>e.check(Ec(r)),e.trim=()=>e.check($c()),e.normalize=(...r)=>e.check(Zc(...r)),e.toLowerCase=()=>e.check(Pc()),e.toUpperCase=()=>e.check(Nc())}),Jc=d("ZodString",(e,t)=>{nn.init(e,t),vo.init(e,t),e.email=n=>e.check(Bu(el,n)),e.url=n=>e.check(ec(tl,n)),e.jwt=n=>e.check(pc(gl,n)),e.emoji=n=>e.check(tc(nl,n)),e.guid=n=>e.check(tr(ir,n)),e.uuid=n=>e.check(Xu(nt,n)),e.uuidv4=n=>e.check(Qu(nt,n)),e.uuidv6=n=>e.check(Ku(nt,n)),e.uuidv7=n=>e.check(Ju(nt,n)),e.nanoid=n=>e.check(nc(rl,n)),e.guid=n=>e.check(tr(ir,n)),e.cuid=n=>e.check(rc(ol,n)),e.cuid2=n=>e.check(oc(il,n)),e.ulid=n=>e.check(ic(al,n)),e.base64=n=>e.check(fc(hl,n)),e.base64url=n=>e.check(hc(ml,n)),e.xid=n=>e.check(ac(sl,n)),e.ksuid=n=>e.check(sc(ul,n)),e.ipv4=n=>e.check(uc(cl,n)),e.ipv6=n=>e.check(cc(ll,n)),e.cidrv4=n=>e.check(lc(dl,n)),e.cidrv6=n=>e.check(dc(fl,n)),e.e164=n=>e.check(mc(pl,n)),e.datetime=n=>e.check(Uc(n)),e.date=n=>e.check(Lc(n)),e.time=n=>e.check(Wc(n)),e.duration=n=>e.check(Hc(n))});function C(e){return Vu(Jc,e)}const x=d("ZodStringFormat",(e,t)=>{E.init(e,t),vo.init(e,t)}),el=d("ZodEmail",(e,t)=>{tu.init(e,t),x.init(e,t)}),ir=d("ZodGUID",(e,t)=>{Js.init(e,t),x.init(e,t)}),nt=d("ZodUUID",(e,t)=>{eu.init(e,t),x.init(e,t)}),tl=d("ZodURL",(e,t)=>{nu.init(e,t),x.init(e,t)}),nl=d("ZodEmoji",(e,t)=>{ru.init(e,t),x.init(e,t)}),rl=d("ZodNanoID",(e,t)=>{ou.init(e,t),x.init(e,t)}),ol=d("ZodCUID",(e,t)=>{iu.init(e,t),x.init(e,t)}),il=d("ZodCUID2",(e,t)=>{au.init(e,t),x.init(e,t)}),al=d("ZodULID",(e,t)=>{su.init(e,t),x.init(e,t)}),sl=d("ZodXID",(e,t)=>{uu.init(e,t),x.init(e,t)}),ul=d("ZodKSUID",(e,t)=>{cu.init(e,t),x.init(e,t)}),cl=d("ZodIPv4",(e,t)=>{mu.init(e,t),x.init(e,t)}),ll=d("ZodIPv6",(e,t)=>{pu.init(e,t),x.init(e,t)}),dl=d("ZodCIDRv4",(e,t)=>{gu.init(e,t),x.init(e,t)}),fl=d("ZodCIDRv6",(e,t)=>{_u.init(e,t),x.init(e,t)}),hl=d("ZodBase64",(e,t)=>{yu.init(e,t),x.init(e,t)}),ml=d("ZodBase64URL",(e,t)=>{vu.init(e,t),x.init(e,t)}),pl=d("ZodE164",(e,t)=>{bu.init(e,t),x.init(e,t)}),gl=d("ZodJWT",(e,t)=>{zu.init(e,t),x.init(e,t)}),bo=d("ZodNumber",(e,t)=>{_o.init(e,t),M.init(e,t),e.gt=(r,o)=>e.check(rr(r,o)),e.gte=(r,o)=>e.check(Zt(r,o)),e.min=(r,o)=>e.check(Zt(r,o)),e.lt=(r,o)=>e.check(nr(r,o)),e.lte=(r,o)=>e.check(It(r,o)),e.max=(r,o)=>e.check(It(r,o)),e.int=r=>e.check(ar(r)),e.safe=r=>e.check(ar(r)),e.positive=r=>e.check(rr(0,r)),e.nonnegative=r=>e.check(Zt(0,r)),e.negative=r=>e.check(nr(0,r)),e.nonpositive=r=>e.check(It(0,r)),e.multipleOf=(r,o)=>e.check(or(r,o)),e.step=(r,o)=>e.check(or(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function V(e){return vc(bo,e)}const _l=d("ZodNumberFormat",(e,t)=>{Du.init(e,t),bo.init(e,t)});function ar(e){return bc(_l,e)}const yl=d("ZodBoolean",(e,t)=>{ku.init(e,t),M.init(e,t)});function ue(e){return Tc(yl,e)}const wl=d("ZodNull",(e,t)=>{Ou.init(e,t),M.init(e,t)});function vl(e){return zc(wl,e)}const bl=d("ZodUnknown",(e,t)=>{Su.init(e,t),M.init(e,t)});function sr(){return Dc(bl)}const Tl=d("ZodNever",(e,t)=>{Eu.init(e,t),M.init(e,t)});function zl(e){return kc(Tl,e)}const Dl=d("ZodArray",(e,t)=>{Mu.init(e,t),M.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(ot(n,r)),e.nonempty=n=>e.check(ot(1,n)),e.max=(n,r)=>e.check(yo(n,r)),e.length=(n,r)=>e.check(wo(n,r)),e.unwrap=()=>e.element});function ce(e,t){return Cc(Dl,e,t)}const kl=d("ZodObject",(e,t)=>{xu.init(e,t),M.init(e,t),O(e,"shape",()=>t.shape),e.keyof=()=>G(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:sr()}),e.loose=()=>e.clone({...e._zod.def,catchall:sr()}),e.strict=()=>e.clone({...e._zod.def,catchall:zl()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>ts(e,n),e.merge=n=>ns(e,n),e.pick=n=>Ja(e,n),e.omit=n=>es(e,n),e.partial=(...n)=>rs(zo,e,n[0]),e.required=(...n)=>os(Do,e,n[0])});function $(e,t){const n={type:"object",get shape(){return pe(this,"shape",e?Va(e):{}),this.shape},..._(t)};return new kl(n)}const Ol=d("ZodUnion",(e,t)=>{Iu.init(e,t),M.init(e,t),e.options=t.options});function le(e,t){return new Ol({type:"union",options:e,..._(t)})}const Sl=d("ZodIntersection",(e,t)=>{Zu.init(e,t),M.init(e,t)});function El(e,t){return new Sl({type:"intersection",left:e,right:t})}const Ml=d("ZodRecord",(e,t)=>{$u.init(e,t),M.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function To(e,t,n){return new Ml({type:"record",keyType:e,valueType:t,..._(n)})}const Yt=d("ZodEnum",(e,t)=>{Pu.init(e,t),M.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Yt({...t,checks:[],..._(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Yt({...t,checks:[],..._(o),entries:i})}});function G(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Yt({type:"enum",entries:n,..._(t)})}const xl=d("ZodLiteral",(e,t)=>{Nu.init(e,t),M.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function H(e,t){return new xl({type:"literal",values:Array.isArray(e)?e:[e],..._(t)})}const Il=d("ZodTransform",(e,t)=>{Cu.init(e,t),M.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=i=>{if(typeof i=="string")n.issues.push(Re(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Re(s))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Zl(e){return new Il({type:"transform",transform:e})}const zo=d("ZodOptional",(e,t)=>{Ru.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ur(e){return new zo({type:"optional",innerType:e})}const $l=d("ZodNullable",(e,t)=>{Au.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function cr(e){return new $l({type:"nullable",innerType:e})}const Pl=d("ZodDefault",(e,t)=>{ju.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nl(e,t){return new Pl({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ro(t)}})}const Cl=d("ZodPrefault",(e,t)=>{Fu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Rl(e,t){return new Cl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ro(t)}})}const Do=d("ZodNonOptional",(e,t)=>{Uu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Al(e,t){return new Do({type:"nonoptional",innerType:e,..._(t)})}const jl=d("ZodCatch",(e,t)=>{Yu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Fl(e,t){return new jl({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Ul=d("ZodPipe",(e,t)=>{Lu.init(e,t),M.init(e,t),e.in=t.in,e.out=t.out});function lr(e,t){return new Ul({type:"pipe",in:e,out:t})}const Yl=d("ZodReadonly",(e,t)=>{Gu.init(e,t),M.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ll(e){return new Yl({type:"readonly",innerType:e})}const Gl=d("ZodCustom",(e,t)=>{Wu.init(e,t),M.init(e,t)});function Wl(e,t={}){return Rc(Gl,e,t)}function ql(e){return Ac(e)}const Hl=["horizontal_bar","vertical_bar","gauge","donut","timeseries_line","timeseries_bar","golden_signals","top_n","slottable","single_value"],Le=C(),_e=C(),ko=ue(),Oo=le([ce(C()),To(C(),C())]),So=$({type:H("slottable"),id:C()}).strict(),Eo=$({type:G(["horizontal_bar","vertical_bar"]),stacked:ue().optional(),chart_dataset_colors:Oo.optional(),synthetics_data_key:Le.optional(),chart_title:_e.optional(),allow_csv_export:ko.optional()}).strict(),Mo=$({type:G(["timeseries_line","timeseries_bar"]),stacked:ue().optional(),threshold:To(C(),V()).optional(),chart_dataset_colors:Oo.optional(),synthetics_data_key:Le.optional(),chart_title:_e.optional(),allow_csv_export:ko.optional()}).strict(),xo=$({type:H("gauge"),metric_display:G(["hidden","single","full"]).optional(),reverse_dataset:ue().optional(),numerator:V().optional(),synthetics_data_key:Le.optional(),chart_title:_e.optional()}).strict(),Io=$({type:H("donut"),synthetics_data_key:Le.optional(),chart_title:_e.optional()}).strict(),Zo=$({type:H("top_n"),chart_title:_e.optional(),synthetics_data_key:Le.optional(),description:C().optional(),entity_link:C().optional()}).strict(),$o=$({type:H("golden_signals"),chart_title:_e.optional(),long_card_titles:ue().optional(),description:C().optional(),percentile_latency:ue().optional()}).strict(),Po=$({type:H("single_value"),decimal_points:V().optional(),chart_title:_e.optional()}).strict(),Vl=le([Eo,xo,Io,Mo,$o,Zo,So,Po]),Bl=$({tz:C().optional().default("Etc/UTC"),type:H("relative"),time_range:G(Ht).optional().default("1h")}).strict(),Xl=$({tz:C().optional(),type:H("absolute"),start:C(),end:C()}).strict(),Ql=le([Bl,Xl]).optional().default({tz:Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",type:"relative",time_range:"1h"}),rn=$({granularity:G(lt).optional(),time_range:Ql.optional(),limit:V().optional(),meta:$().optional()}),on=e=>ce(G(e)).optional(),an=e=>ce(G(e)).max(2).optional(),_t=e=>{const t=$({field:G(e),operator:G(Wt),value:ce(le([C(),V(),vl()]))}).strict(),n=$({field:G(e),operator:G(qt)}).strict();return ce(le([t,n])).optional()},No=rn.extend({datasource:H("api_usage"),metrics:on(Vt).optional(),dimensions:an(ft).optional(),filters:_t(fe).optional()}).strict(),Co=rn.extend({datasource:H("basic"),metrics:on(dt).optional(),dimensions:an(Fe).optional(),filters:_t(de).optional()}).strict(),Ro=rn.extend({datasource:H("llm_usage"),metrics:on(Bt).optional(),dimensions:an(ht).optional(),filters:_t(he).optional()}).strict(),Ao=le([No,Co,Ro]),jo=$({query:Ao,chart:Vl}).strict(),Fo=$({position:$({col:V(),row:V()}).strict(),size:$({cols:V(),rows:V(),fit_to_content:ue().optional()}).strict()}).strict(),Uo=$({type:G(["chart"]),definition:jo,layout:Fo,id:C().optional()}).strict(),Yo=$({tiles:ce(Uo),tile_height:V().optional(),preset_filters:_t([...fe,...de,...he]),template_id:C().nullable().optional()}).strict(),Kl=e=>Yo.parse(e),Jl=e=>{const t=[];return de.includes(e)&&t.push("basic"),fe.includes(e)&&t.push("api_usage"),he.includes(e)&&t.push("llm_usage"),(Zr.includes(e)||Nr.includes(e))&&t.push("requests"),t},Lo=6048e5,ed=864e5,td=60,nd=3600,dr=Symbol.for("constructDateFrom");function q(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&dr in e?e[dr](t):e instanceof Date?new e.constructor(t):new Date(t)}function R(e,t){return q(t||e,e)}function fr(e,t,n){const r=R(e,n==null?void 0:n.in);return isNaN(t)?q(e,NaN):(r.setDate(r.getDate()+t),r)}function rd(e,t,n){const r=R(e,n==null?void 0:n.in);if(isNaN(t))return q(e,NaN);const o=r.getDate(),i=q(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const s=i.getDate();return o>=s?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let od={};function Ge(){return od}function K(e,t){var c,l,h,y;const n=Ge(),r=(t==null?void 0:t.weekStartsOn)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((y=(h=n.locale)==null?void 0:h.options)==null?void 0:y.weekStartsOn)??0,o=R(e,t==null?void 0:t.in),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function it(e,t){return K(e,{...t,weekStartsOn:1})}function Go(e,t){const n=R(e,t==null?void 0:t.in),r=n.getFullYear(),o=q(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=it(o),s=q(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=it(s);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function hr(e){const t=R(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function id(e,...t){const n=q.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function at(e,t){const n=R(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function ad(e,t,n){const[r,o]=id(n==null?void 0:n.in,e,t),i=at(r),s=at(o),c=+i-hr(i),l=+s-hr(s);return Math.round((c-l)/ed)}function sd(e,t){const n=Go(e,t),r=q(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),it(r)}function ud(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function cd(e){return!(!ud(e)&&typeof e!="number"||isNaN(+R(e)))}function ke(e,t){const n=R(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function ld(e,t){const n=R(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const dd={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fd=(e,t,n)=>{let r;const o=dd[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $t(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const hd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},md={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pd={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gd={date:$t({formats:hd,defaultWidth:"full"}),time:$t({formats:md,defaultWidth:"full"}),dateTime:$t({formats:pd,defaultWidth:"full"})},_d={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yd=(e,t,n,r)=>_d[e];function Ze(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;o=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const wd={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vd={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bd={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Td={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},zd={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Dd={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},kd=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Od={ordinalNumber:kd,era:Ze({values:wd,defaultWidth:"wide"}),quarter:Ze({values:vd,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ze({values:bd,defaultWidth:"wide"}),day:Ze({values:Td,defaultWidth:"wide"}),dayPeriod:Ze({values:zd,defaultWidth:"wide",formattingValues:Dd,defaultFormattingWidth:"wide"})};function $e(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?Ed(c,m=>m.test(s)):Sd(c,m=>m.test(s));let h;h=e.valueCallback?e.valueCallback(l):l,h=n.valueCallback?n.valueCallback(h):h;const y=t.slice(s.length);return{value:h,rest:y}}}function Sd(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Ed(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Md(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(o.length);return{value:s,rest:c}}}const xd=/^(\d+)(th|st|nd|rd)?/i,Id=/\d+/i,Zd={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$d={any:[/^b/i,/^(a|c)/i]},Pd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Nd={any:[/1/i,/2/i,/3/i,/4/i]},Cd={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rd={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ad={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Fd={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ud={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Yd={ordinalNumber:Md({matchPattern:xd,parsePattern:Id,valueCallback:e=>parseInt(e,10)}),era:$e({matchPatterns:Zd,defaultMatchWidth:"wide",parsePatterns:$d,defaultParseWidth:"any"}),quarter:$e({matchPatterns:Pd,defaultMatchWidth:"wide",parsePatterns:Nd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$e({matchPatterns:Cd,defaultMatchWidth:"wide",parsePatterns:Rd,defaultParseWidth:"any"}),day:$e({matchPatterns:Ad,defaultMatchWidth:"wide",parsePatterns:jd,defaultParseWidth:"any"}),dayPeriod:$e({matchPatterns:Fd,defaultMatchWidth:"any",parsePatterns:Ud,defaultParseWidth:"any"})},Ld={code:"en-US",formatDistance:fd,formatLong:gd,formatRelative:yd,localize:Od,match:Yd,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Gd(e,t){const n=R(e,t==null?void 0:t.in);return ad(n,ld(n))+1}function Wd(e,t){const n=R(e,t==null?void 0:t.in),r=+it(n)-+sd(n);return Math.round(r/Lo)+1}function Wo(e,t){var y,m,p,v;const n=R(e,t==null?void 0:t.in),r=n.getFullYear(),o=Ge(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(p=o.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,s=q((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,i),s.setHours(0,0,0,0);const c=K(s,t),l=q((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const h=K(l,t);return+n>=+c?r+1:+n>=+h?r:r-1}function qd(e,t){var c,l,h,y;const n=Ge(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((y=(h=n.locale)==null?void 0:h.options)==null?void 0:y.firstWeekContainsDate)??1,o=Wo(e,t),i=q((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),K(i,t)}function Hd(e,t){const n=R(e,t==null?void 0:t.in),r=+K(n,t)-+qd(n,t);return Math.round(r/Lo)+1}function T(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const te={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return T(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):T(n+1,2)},d(e,t){return T(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return T(e.getHours()%12||12,t.length)},H(e,t){return T(e.getHours(),t.length)},m(e,t){return T(e.getMinutes(),t.length)},s(e,t){return T(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return T(o,t.length)}},Te={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mr={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return te.y(e,t)},Y:function(e,t,n,r){const o=Wo(e,r),i=o>0?o:1-o;if(t==="YY"){const s=i%100;return T(s,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):T(i,t.length)},R:function(e,t){const n=Go(e);return T(n,t.length)},u:function(e,t){const n=e.getFullYear();return T(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return T(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return T(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return te.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return T(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Hd(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):T(o,t.length)},I:function(e,t,n){const r=Wd(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):T(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):te.d(e,t)},D:function(e,t,n){const r=Gd(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):T(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return T(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return T(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return T(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Te.noon:r===0?o=Te.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Te.evening:r>=12?o=Te.afternoon:r>=4?o=Te.morning:o=Te.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return te.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):te.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):T(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):T(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):te.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):te.s(e,t)},S:function(e,t){return te.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return gr(r);case"XXXX":case"XX":return se(r);case"XXXXX":case"XXX":default:return se(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return gr(r);case"xxxx":case"xx":return se(r);case"xxxxx":case"xxx":default:return se(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pr(r,":");case"OOOO":default:return"GMT"+se(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pr(r,":");case"zzzz":default:return"GMT"+se(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return T(r,t.length)},T:function(e,t,n){return T(+e,t.length)}};function pr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+T(i,2)}function gr(e,t){return e%60===0?(e>0?"-":"+")+T(Math.abs(e)/60,2):se(e,t)}function se(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=T(Math.trunc(r/60),2),i=T(r%60,2);return n+o+t+i}const _r=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},qo=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Vd=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return _r(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",_r(r,t)).replace("{{time}}",qo(o,t))},Bd={p:qo,P:Vd},Xd=/^D+$/,Qd=/^Y+$/,Kd=["D","DD","YY","YYYY"];function Jd(e){return Xd.test(e)}function ef(e){return Qd.test(e)}function tf(e,t,n){const r=nf(e,t,n);if(console.warn(r),Kd.includes(e))throw new RangeError(r)}function nf(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const rf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,of=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,af=/^'([^]*?)'?$/,sf=/''/g,uf=/[a-zA-Z]/;function Ho(e,t,n){var y,m,p,v,D,Z,Y,W;const r=Ge(),o=(n==null?void 0:n.locale)??r.locale??Ld,i=(n==null?void 0:n.firstWeekContainsDate)??((m=(y=n==null?void 0:n.locale)==null?void 0:y.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((Z=(D=n==null?void 0:n.locale)==null?void 0:D.options)==null?void 0:Z.weekStartsOn)??r.weekStartsOn??((W=(Y=r.locale)==null?void 0:Y.options)==null?void 0:W.weekStartsOn)??0,c=R(e,n==null?void 0:n.in);if(!cd(c))throw new RangeError("Invalid time value");let l=t.match(of).map(z=>{const b=z[0];if(b==="p"||b==="P"){const I=Bd[b];return I(z,o.formatLong)}return z}).join("").match(rf).map(z=>{if(z==="''")return{isToken:!1,value:"'"};const b=z[0];if(b==="'")return{isToken:!1,value:cf(z)};if(mr[b])return{isToken:!0,value:z};if(b.match(uf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:z}});o.localize.preprocessor&&(l=o.localize.preprocessor(c,l));const h={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(z=>{if(!z.isToken)return z.value;const b=z.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&ef(b)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Jd(b))&&tf(b,t,String(e));const I=mr[b[0]];return I(c,b,o.localize,h)}).join("")}function cf(e){const t=e.match(af);return t?t[1].replace(sf,"'"):e}function lf(e,t){const n=R(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),i=q(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function df(){return Object.assign({},Ge())}function yr(e){return+R(e)}function wr(e){return Math.trunc(+R(e)/1e3)}function ff(e){return Math.trunc(e*nd)}function hf(e){const t=e/td;return Math.trunc(t)}function Vo(e,t,n){return rd(e,-1,n)}function vr(e,t,n){const r=df(),o=gf(e,n.timeZone,n.locale??r.locale);return"formatToParts"in o?mf(o,t):pf(o,t)}function mf(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function pf(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function gf(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function _f(e,t){const n=Tf(t);return"formatToParts"in n?wf(n,e):vf(n,e)}const yf={year:0,month:1,day:2,hour:3,minute:4,second:5};function wf(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o<n.length;o++){const i=yf[n[o].type];i!==void 0&&(r[i]=parseInt(n[o].value,10))}return r}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function vf(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Pt={},br=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),bf=br==="06/25/2014, 00:00:00"||br==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Tf(e){return Pt[e]||(Pt[e]=bf?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Pt[e]}function sn(e,t,n,r,o,i,s){const c=new Date(0);return c.setUTCFullYear(e,t,n),c.setUTCHours(r,o,i,s),c}const Tr=36e5,zf=6e4,Nt={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function We(e,t,n){if(!e)return 0;let r=Nt.timezoneZ.exec(e);if(r)return 0;let o,i;if(r=Nt.timezoneHH.exec(e),r)return o=parseInt(r[1],10),zr(o)?-(o*Tr):NaN;if(r=Nt.timezoneHHMM.exec(e),r){o=parseInt(r[2],10);const s=parseInt(r[3],10);return zr(o,s)?(i=Math.abs(o)*Tr+s*zf,r[1]==="+"?-i:i):NaN}if(Of(e)){t=new Date(t||Date.now());const s=n?t:Df(t),c=Lt(s,e);return-(n?c:kf(t,c,e))}return NaN}function Df(e){return sn(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Lt(e,t){const n=_f(e,t),r=sn(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let o=e.getTime();const i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function kf(e,t,n){let o=e.getTime()-t;const i=Lt(new Date(o),n);if(t===i)return t;o-=i-t;const s=Lt(new Date(o),n);return i===s?i:Math.max(i,s)}function zr(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const Dr={};function Of(e){if(Dr[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Dr[e]=!0,!0}catch{return!1}}const Sf=60*1e3,Ef={X:function(e,t,n){const r=Ct(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return kr(r);case"XXXX":case"XX":return ze(r);case"XXXXX":case"XXX":default:return ze(r,":")}},x:function(e,t,n){const r=Ct(n.timeZone,e);switch(t){case"x":return kr(r);case"xxxx":case"xx":return ze(r);case"xxxxx":case"xxx":default:return ze(r,":")}},O:function(e,t,n){const r=Ct(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+Mf(r,":");case"OOOO":default:return"GMT"+ze(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return vr("short",e,n);case"zzzz":default:return vr("long",e,n)}}};function Ct(e,t){const n=e?We(e,t,!0)/Sf:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function st(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function ze(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=st(Math.floor(r/60),2),i=st(Math.floor(r%60),2);return n+o+t+i}function kr(e,t){return e%60===0?(e>0?"-":"+")+st(Math.abs(e)/60,2):ze(e,t)}function Mf(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+st(i,2)}function Or(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const Bo=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Rt=36e5,Sr=6e4,xf=2,A={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Bo};function ut(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?xf:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=If(e),{year:o,restDateString:i}=Zf(r.date,n),s=$f(i,o);if(s===null||isNaN(s.getTime()))return new Date(NaN);if(s){const c=s.getTime();let l=0,h;if(r.time&&(l=Pf(r.time),l===null||isNaN(l)))return new Date(NaN);if(r.timeZone||t.timeZone){if(h=We(r.timeZone||t.timeZone,new Date(c+l)),isNaN(h))return new Date(NaN)}else h=Or(new Date(c+l)),h=Or(new Date(c+l+h));return new Date(c+l+h)}else return new Date(NaN)}function If(e){const t={};let n=A.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=A.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=A.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function Zf(e,t){if(e){const n=A.YYY[t],r=A.YYYYY[t];let o=A.YYYY.exec(e)||r.exec(e);if(o){const i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=A.YY.exec(e)||n.exec(e),o){const i=o[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function $f(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=A.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,Mr(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=A.DDD.exec(e),i){n=new Date(0);const s=parseInt(i[1],10);return Rf(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(i=A.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const s=parseInt(i[2],10);return Mr(t,r,s)?(n.setUTCFullYear(t,r,s),n):new Date(NaN)}if(i=A.Www.exec(e),i)return o=parseInt(i[1],10)-1,xr(o)?Er(t,o):new Date(NaN);if(i=A.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const s=parseInt(i[2],10)-1;return xr(o,s)?Er(t,o,s):new Date(NaN)}return null}function Pf(e){let t,n,r=A.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),At(t)?t%24*Rt:NaN;if(r=A.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),At(t,n)?t%24*Rt+n*Sr:NaN;if(r=A.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return At(t,n,o)?t%24*Rt+n*Sr+o*1e3:NaN}return null}function Er(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const Nf=[31,28,31,30,31,30,31,31,30,31,30,31],Cf=[31,29,31,30,31,30,31,31,30,31,30,31];function Xo(e){return e%400===0||e%4===0&&e%100!==0}function Mr(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=Xo(e);if(r&&n>Cf[t]||!r&&n>Nf[t])return!1}return!0}function Rf(e,t){if(t<1)return!1;const n=Xo(e);return!(n&&t>366||!n&&t>365)}function xr(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function At(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const Af=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function jf(e,t,n={}){t=String(t);const r=t.match(Af);if(r){const o=ut(n.originalDate||e,n);t=r.reduce(function(i,s){if(s[0]==="'")return i;const c=i.indexOf(s),l=i[c-1]==="'",h=i.replace(s,"'"+Ef[s[0]](o,s,n)+"'");return l?h.substring(0,c-1)+h.substring(c+1):h},t)}return Ho(e,t,n)}function Qo(e,t,n){e=ut(e,n);const r=We(t,e,!0),o=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}function Ff(e,t,n,r){return r={...r,timeZone:t,originalDate:e},jf(Qo(e,t,{timeZone:r.timeZone}),n,r)}function Uf(e,t,n){if(typeof e=="string"&&!e.match(Bo))return ut(e,{...n,timeZone:t});e=ut(e,n);const r=sn(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()).getTime(),o=We(t,new Date(r));return new Date(r+o)}function Ko(e,t){return-We(e,t)}function Yf(e){return Ho(e,"yyyy-MM-dd'T'HH:mm:ss.SSSXXX")}function Gt(e,t={}){if(!e)return e;const n=t.tz||Intl.DateTimeFormat().resolvedOptions().timeZone;try{let r="MMM dd, yyy hh:mm a";t.short&&(r="MMM dd, yyy"),t.includeTZ&&(r+=" (z)");const o=new Date(e);return Ff(o,n,r)}catch{return console.error("Invalid value passed to formatTime",e),"(invalid date)"}}function Lf(e,t){return`${Gt(e.getTime())} - ${Gt(t.getTime(),{includeTZ:!0})}`}const Ae={secondly:1e3,tenSecondly:10*1e3,thirtySecondly:30*1e3,minutely:60*1e3,fiveMinutely:5*60*1e3,tenMinutely:10*60*1e3,thirtyMinutely:30*60*1e3,hourly:60*60*1e3,twoHourly:2*60*60*1e3,twelveHourly:12*60*60*1e3,daily:60*60*24*1e3,weekly:60*60*24*7*1e3,trend:0};function Gf(e,t){return e.map(n=>({value:n,label:t.t(`configuration.vitals.reports.granularity.${n}`)}))}function Jo(e,t){return{duration:e,type:"duration",origin:t}}function Wf(e){return e&&lt.find(n=>e<=Ae[n])||null}function ei(e,t,n,r){const o=Ae[n];let i=0;return o>=Ae.daily&&(r?i=-Ko(r,t):i=t.getTimezoneOffset()*60*1e3),new Date(e((t.getTime()-i)/o)*o+i)}function ti(e,t,n){return ei(Math.floor,e,t,n)}function un(e,t,n){return ei(Math.ceil,e,t,n)}class yt{constructor(t,n,r){P(this,"timeframe");P(this,"tz");P(this,"dataGranularity");if(this.constructor===yt)throw new Error("BaseQueryTime is not meant to be used directly.");this.timeframe=t,this.tz=n,this.dataGranularity=r??t.dataGranularity}calculateStartDate(t,n,r=1){if(t)return new Date(this.endDate().getTime()-this.timeframe.timeframeLengthMs()*r);{const o=this.endDate(),i=this.timeframe.rawStart(this.tz),s=ti(i,n,this.tz),l=(o.getTime()-s.getTime())*(r-1);return new Date(s.getTime()-l)}}granularitySeconds(){return Math.floor(this.granularityMs()/1e3)}granularityDruid(){return Jo(this.granularityMs(),this.startDate().toISOString())}startSeconds(){return wr(this.startDate())}endSeconds(){return wr(this.endDate())}startMs(){return yr(this.startDate())}endMs(){return yr(this.endDate())}}class qf extends yt{constructor(n,r,o,i,s){super(n,o,i);P(this,"granularity");r&&n.allowedGranularities(s).has(r)?this.granularity=r:s?this.granularity=n.fineGrainedDefaultGranularity??n.defaultResponseGranularity:this.granularity=n.defaultResponseGranularity}startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.granularity)}endDate(){return un(this.timeframe.rawEnd(),this.granularity,this.tz)}granularityMs(){return Ae[this.granularity]}}class ni extends yt{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity)}endDate(){return un(this.timeframe.rawEnd(this.tz),this.dataGranularity,this.tz)}granularityMs(){return this.endDate().getTime()-this.startDate().getTime()}}class Hf extends ni{startDate(){return this.calculateStartDate(this.timeframe.isRelative,this.dataGranularity,2)}granularityMs(){return this.endDate().getTime()-super.startDate().getTime()}}var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={exports:{}};ct.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",c="[object Boolean]",l="[object Date]",h="[object Error]",y="[object Function]",m="[object GeneratorFunction]",p="[object Map]",v="[object Number]",D="[object Object]",Z="[object Promise]",Y="[object RegExp]",W="[object Set]",z="[object String]",b="[object Symbol]",I="[object WeakMap]",Me="[object ArrayBuffer]",J="[object DataView]",qe="[object Float32Array]",ln="[object Float64Array]",dn="[object Int8Array]",fn="[object Int16Array]",hn="[object Int32Array]",mn="[object Uint8Array]",pn="[object Uint8ClampedArray]",gn="[object Uint16Array]",_n="[object Uint32Array]",ii=/[\\^$.*+?()[\]{}|]/g,ai=/\w*$/,si=/^\[object .+?Constructor\]$/,ui=/^(?:0|[1-9]\d*)$/,k={};k[i]=k[s]=k[Me]=k[J]=k[c]=k[l]=k[qe]=k[ln]=k[dn]=k[fn]=k[hn]=k[p]=k[v]=k[D]=k[Y]=k[W]=k[z]=k[b]=k[mn]=k[pn]=k[gn]=k[_n]=!0,k[h]=k[y]=k[I]=!1;var ci=typeof rt=="object"&&rt&&rt.Object===Object&&rt,li=typeof self=="object"&&self&&self.Object===Object&&self,B=ci||li||Function("return this")(),yn=t&&!t.nodeType&&t,wn=yn&&!0&&e&&!e.nodeType&&e,di=wn&&wn.exports===yn;function fi(a,u){return a.set(u[0],u[1]),a}function hi(a,u){return a.add(u),a}function mi(a,u){for(var f=-1,g=a?a.length:0;++f<g&&u(a[f],f,a)!==!1;);return a}function pi(a,u){for(var f=-1,g=u.length,N=a.length;++f<g;)a[N+f]=u[f];return a}function vn(a,u,f,g){for(var N=-1,j=a?a.length:0;++N<j;)f=u(f,a[N],N,a);return f}function gi(a,u){for(var f=-1,g=Array(a);++f<a;)g[f]=u(f);return g}function _i(a,u){return a==null?void 0:a[u]}function bn(a){var u=!1;if(a!=null&&typeof a.toString!="function")try{u=!!(a+"")}catch{}return u}function Tn(a){var u=-1,f=Array(a.size);return a.forEach(function(g,N){f[++u]=[N,g]}),f}function vt(a,u){return function(f){return a(u(f))}}function zn(a){var u=-1,f=Array(a.size);return a.forEach(function(g){f[++u]=g}),f}var yi=Array.prototype,wi=Function.prototype,He=Object.prototype,bt=B["__core-js_shared__"],Dn=function(){var a=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),kn=wi.toString,ee=He.hasOwnProperty,Ve=He.toString,vi=RegExp("^"+kn.call(ee).replace(ii,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),On=di?B.Buffer:void 0,Sn=B.Symbol,En=B.Uint8Array,bi=vt(Object.getPrototypeOf,Object),Ti=Object.create,zi=He.propertyIsEnumerable,Di=yi.splice,Mn=Object.getOwnPropertySymbols,ki=On?On.isBuffer:void 0,Oi=vt(Object.keys,Object),Tt=ve(B,"DataView"),xe=ve(B,"Map"),zt=ve(B,"Promise"),Dt=ve(B,"Set"),kt=ve(B,"WeakMap"),Ie=ve(Object,"create"),Si=ae(Tt),Ei=ae(xe),Mi=ae(zt),xi=ae(Dt),Ii=ae(kt),xn=Sn?Sn.prototype:void 0,In=xn?xn.valueOf:void 0;function oe(a){var u=-1,f=a?a.length:0;for(this.clear();++u<f;){var g=a[u];this.set(g[0],g[1])}}function Zi(){this.__data__=Ie?Ie(null):{}}function $i(a){return this.has(a)&&delete this.__data__[a]}function Pi(a){var u=this.__data__;if(Ie){var f=u[a];return f===r?void 0:f}return ee.call(u,a)?u[a]:void 0}function Ni(a){var u=this.__data__;return Ie?u[a]!==void 0:ee.call(u,a)}function Ci(a,u){var f=this.__data__;return f[a]=Ie&&u===void 0?r:u,this}oe.prototype.clear=Zi,oe.prototype.delete=$i,oe.prototype.get=Pi,oe.prototype.has=Ni,oe.prototype.set=Ci;function X(a){var u=-1,f=a?a.length:0;for(this.clear();++u<f;){var g=a[u];this.set(g[0],g[1])}}function Ri(){this.__data__=[]}function Ai(a){var u=this.__data__,f=Be(u,a);if(f<0)return!1;var g=u.length-1;return f==g?u.pop():Di.call(u,f,1),!0}function ji(a){var u=this.__data__,f=Be(u,a);return f<0?void 0:u[f][1]}function Fi(a){return Be(this.__data__,a)>-1}function Ui(a,u){var f=this.__data__,g=Be(f,a);return g<0?f.push([a,u]):f[g][1]=u,this}X.prototype.clear=Ri,X.prototype.delete=Ai,X.prototype.get=ji,X.prototype.has=Fi,X.prototype.set=Ui;function ye(a){var u=-1,f=a?a.length:0;for(this.clear();++u<f;){var g=a[u];this.set(g[0],g[1])}}function Yi(){this.__data__={hash:new oe,map:new(xe||X),string:new oe}}function Li(a){return Xe(this,a).delete(a)}function Gi(a){return Xe(this,a).get(a)}function Wi(a){return Xe(this,a).has(a)}function qi(a,u){return Xe(this,a).set(a,u),this}ye.prototype.clear=Yi,ye.prototype.delete=Li,ye.prototype.get=Gi,ye.prototype.has=Wi,ye.prototype.set=qi;function we(a){this.__data__=new X(a)}function Hi(){this.__data__=new X}function Vi(a){return this.__data__.delete(a)}function Bi(a){return this.__data__.get(a)}function Xi(a){return this.__data__.has(a)}function Qi(a,u){var f=this.__data__;if(f instanceof X){var g=f.__data__;if(!xe||g.length<n-1)return g.push([a,u]),this;f=this.__data__=new ye(g)}return f.set(a,u),this}we.prototype.clear=Hi,we.prototype.delete=Vi,we.prototype.get=Bi,we.prototype.has=Xi,we.prototype.set=Qi;function Ki(a,u){var f=Et(a)||Ta(a)?gi(a.length,String):[],g=f.length,N=!!g;for(var j in a)ee.call(a,j)&&!(N&&(j=="length"||ya(j,g)))&&f.push(j);return f}function Zn(a,u,f){var g=a[u];(!(ee.call(a,u)&&Cn(g,f))||f===void 0&&!(u in a))&&(a[u]=f)}function Be(a,u){for(var f=a.length;f--;)if(Cn(a[f][0],u))return f;return-1}function Ji(a,u){return a&&$n(u,Mt(u),a)}function Ot(a,u,f,g,N,j,Q){var F;if(g&&(F=j?g(a,N,j,Q):g(a)),F!==void 0)return F;if(!Qe(a))return a;var jn=Et(a);if(jn){if(F=pa(a),!u)return fa(a,F)}else{var be=ie(a),Fn=be==y||be==m;if(Da(a))return ia(a,u);if(be==D||be==i||Fn&&!j){if(bn(a))return j?a:{};if(F=ga(Fn?{}:a),!u)return ha(a,Ji(F,a))}else{if(!k[be])return j?a:{};F=_a(a,be,Ot,u)}}Q||(Q=new we);var Un=Q.get(a);if(Un)return Un;if(Q.set(a,F),!jn)var Yn=f?ma(a):Mt(a);return mi(Yn||a,function(xt,Ke){Yn&&(Ke=xt,xt=a[Ke]),Zn(F,Ke,Ot(xt,u,f,g,Ke,a,Q))}),F}function ea(a){return Qe(a)?Ti(a):{}}function ta(a,u,f){var g=u(a);return Et(a)?g:pi(g,f(a))}function na(a){return Ve.call(a)}function ra(a){if(!Qe(a)||va(a))return!1;var u=An(a)||bn(a)?vi:si;return u.test(ae(a))}function oa(a){if(!Nn(a))return Oi(a);var u=[];for(var f in Object(a))ee.call(a,f)&&f!="constructor"&&u.push(f);return u}function ia(a,u){if(u)return a.slice();var f=new a.constructor(a.length);return a.copy(f),f}function St(a){var u=new a.constructor(a.byteLength);return new En(u).set(new En(a)),u}function aa(a,u){var f=u?St(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function sa(a,u,f){var g=u?f(Tn(a),!0):Tn(a);return vn(g,fi,new a.constructor)}function ua(a){var u=new a.constructor(a.source,ai.exec(a));return u.lastIndex=a.lastIndex,u}function ca(a,u,f){var g=u?f(zn(a),!0):zn(a);return vn(g,hi,new a.constructor)}function la(a){return In?Object(In.call(a)):{}}function da(a,u){var f=u?St(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function fa(a,u){var f=-1,g=a.length;for(u||(u=Array(g));++f<g;)u[f]=a[f];return u}function $n(a,u,f,g){f||(f={});for(var N=-1,j=u.length;++N<j;){var Q=u[N],F=void 0;Zn(f,Q,F===void 0?a[Q]:F)}return f}function ha(a,u){return $n(a,Pn(a),u)}function ma(a){return ta(a,Mt,Pn)}function Xe(a,u){var f=a.__data__;return wa(u)?f[typeof u=="string"?"string":"hash"]:f.map}function ve(a,u){var f=_i(a,u);return ra(f)?f:void 0}var Pn=Mn?vt(Mn,Object):Sa,ie=na;(Tt&&ie(new Tt(new ArrayBuffer(1)))!=J||xe&&ie(new xe)!=p||zt&&ie(zt.resolve())!=Z||Dt&&ie(new Dt)!=W||kt&&ie(new kt)!=I)&&(ie=function(a){var u=Ve.call(a),f=u==D?a.constructor:void 0,g=f?ae(f):void 0;if(g)switch(g){case Si:return J;case Ei:return p;case Mi:return Z;case xi:return W;case Ii:return I}return u});function pa(a){var u=a.length,f=a.constructor(u);return u&&typeof a[0]=="string"&&ee.call(a,"index")&&(f.index=a.index,f.input=a.input),f}function ga(a){return typeof a.constructor=="function"&&!Nn(a)?ea(bi(a)):{}}function _a(a,u,f,g){var N=a.constructor;switch(u){case Me:return St(a);case c:case l:return new N(+a);case J:return aa(a,g);case qe:case ln:case dn:case fn:case hn:case mn:case pn:case gn:case _n:return da(a,g);case p:return sa(a,g,f);case v:case z:return new N(a);case Y:return ua(a);case W:return ca(a,g,f);case b:return la(a)}}function ya(a,u){return u=u??o,!!u&&(typeof a=="number"||ui.test(a))&&a>-1&&a%1==0&&a<u}function wa(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function va(a){return!!Dn&&Dn in a}function Nn(a){var u=a&&a.constructor,f=typeof u=="function"&&u.prototype||He;return a===f}function ae(a){if(a!=null){try{return kn.call(a)}catch{}try{return a+""}catch{}}return""}function ba(a){return Ot(a,!0,!0)}function Cn(a,u){return a===u||a!==a&&u!==u}function Ta(a){return za(a)&&ee.call(a,"callee")&&(!zi.call(a,"callee")||Ve.call(a)==i)}var Et=Array.isArray;function Rn(a){return a!=null&&ka(a.length)&&!An(a)}function za(a){return Oa(a)&&Rn(a)}var Da=ki||Ea;function An(a){var u=Qe(a)?Ve.call(a):"";return u==y||u==m}function ka(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}function Qe(a){var u=typeof a;return!!a&&(u=="object"||u=="function")}function Oa(a){return!!a&&typeof a=="object"}function Mt(a){return Rn(a)?Ki(a):oa(a)}function Sa(){return[]}function Ea(){return!1}e.exports=ba})(ct,ct.exports);var Bf=ct.exports;const Xf=Vf(Bf),Se=(e,t)=>new Date(e.getTime()-Ko(t,e));class L{constructor(t){P(this,"timeframeText");P(this,"key");P(this,"display");P(this,"timeframeLength");P(this,"allowedTiers");P(this,"defaultResponseGranularity");P(this,"dataGranularity");P(this,"isRelative");P(this,"fineGrainedDefaultGranularity");P(this,"_startCustom");P(this,"_endCustom");P(this,"_allowedGranularitiesOverride");this.display=t.display,this.timeframeText=t.timeframeText,this.key=t.key,this.timeframeLength=t.timeframeLength,this.allowedTiers=t.allowedTiers,this.defaultResponseGranularity=t.defaultResponseGranularity,this.dataGranularity=t.dataGranularity,this.isRelative=t.isRelative,this._startCustom=t.startCustom,this._endCustom=t.endCustom,this._allowedGranularitiesOverride=t.allowedGranularitiesOverride,this.fineGrainedDefaultGranularity=t.fineGrainedDefaultGranularity}rawEnd(t){return this._endCustom||new Date}rawStart(t){return this._startCustom||new Date(this.rawEnd().getTime()-this.timeframeLengthMs())}timeframeLengthMs(){return this.timeframeLength()*1e3}maximumTimeframeLength(){return this.timeframeLength()}allowedGranularities(t){if(this._allowedGranularitiesOverride&&t)return new Set(this._allowedGranularitiesOverride);const n=new Set,r=this.maximumTimeframeLength()/3600;return r<=6&&n.add("minutely"),r>=2&&r<=7*24&&n.add("hourly"),r>=2*24&&n.add("daily"),r>=2*24*14&&n.add("weekly"),n}cacheKey(){return this.key!=="custom"?this.key:`${this.rawStart().toISOString()}-${this.rawEnd().toISOString()}`}v4Query(t){return this.key==="custom"?{type:"absolute",start:this.rawStart(),end:this.rawEnd(),tz:t}:{type:"relative",time_range:this.key,tz:t}}tzAdjustedDate(t){if(!t)return new Date;const n=Uf(new Date,new Intl.DateTimeFormat().resolvedOptions().timeZone);return Qo(n,t)}}class Qf extends L{rawStart(t){let n=K(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=Se(n,t)),n}maximumTimeframeLength(){return 60*60*24*7}}class Kf extends L{rawStart(t){let n=ke(this.tzAdjustedDate(t));return t&&(n=Se(n,t)),n}maximumTimeframeLength(){return 60*60*24*31}}class Jf extends L{rawEnd(t){let n=K(this.tzAdjustedDate(t),{weekStartsOn:1});return t&&(n=Se(n,t)),n}rawStart(t){const n=this.tzAdjustedDate(t);let r=K(n.setDate(n.getDate()-7),{weekStartsOn:1});return t&&(r=Se(r,t)),r}}class eh extends L{rawEnd(t){let n=ke(this.tzAdjustedDate(t));return t&&(n=Se(n,t)),n}rawStart(t){let n=ke(Vo(this.tzAdjustedDate(t)));return t&&(n=Se(n,t)),n}}const ri=new Map([[w.FIFTEEN_MIN,new L({key:w.FIFTEEN_MIN,display:"Last 15 minutes",timeframeText:"15 minutes",timeframeLength:()=>60*15,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"thirtySecondly",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely"]})],[w.ONE_HOUR,new L({key:w.ONE_HOUR,display:"Last hour",timeframeText:"One hour",timeframeLength:()=>60*60*1,defaultResponseGranularity:"minutely",dataGranularity:"minutely",isRelative:!0,fineGrainedDefaultGranularity:"minutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["tenSecondly","thirtySecondly","minutely","fiveMinutely","tenMinutely"]})],[w.SIX_HOUR,new L({key:w.SIX_HOUR,display:"Last 6 hours",timeframeText:"6 hours",timeframeLength:()=>60*60*6,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"fiveMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["thirtySecondly","minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[w.TWELVE_HOUR,new L({key:w.TWELVE_HOUR,display:"Last 12 hours",timeframeText:"12 hours",timeframeLength:()=>60*60*12,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"tenMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["minutely","fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[w.ONE_DAY,new L({key:w.ONE_DAY,display:"Last 24 hours",timeframeText:"24 hours",timeframeLength:()=>60*60*24,defaultResponseGranularity:"hourly",dataGranularity:"hourly",isRelative:!0,fineGrainedDefaultGranularity:"thirtyMinutely",allowedTiers:["free","trial","plus","enterprise"],allowedGranularitiesOverride:["fiveMinutely","tenMinutely","thirtyMinutely","hourly"]})],[w.SEVEN_DAY,new L({key:w.SEVEN_DAY,display:"Last 7 days",timeframeText:"7 days",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[w.THIRTY_DAY,new L({key:w.THIRTY_DAY,display:"Last 30 days",timeframeText:"30 days",timeframeLength:()=>60*60*24*30,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!0,fineGrainedDefaultGranularity:"twelveHourly",allowedTiers:["trial","plus","enterprise"],allowedGranularitiesOverride:["hourly","twoHourly","twelveHourly","daily","weekly"]})],[w.CURRENT_WEEK,new Qf({key:w.CURRENT_WEEK,display:"This week",timeframeText:"Week",timeframeLength:()=>{const e=K(new Date,{weekStartsOn:1});return(at(fr(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[w.CURRENT_MONTH,new Kf({key:w.CURRENT_MONTH,display:"This month",timeframeText:"Month",timeframeLength:()=>{const e=ke(new Date);return(at(fr(new Date,1)).getTime()-e.getTime())/1e3},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})],[w.PREVIOUS_WEEK,new Jf({key:w.PREVIOUS_WEEK,display:"Previous week",timeframeText:"Week",timeframeLength:()=>60*60*24*7,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,fineGrainedDefaultGranularity:"twoHourly",allowedTiers:["plus","enterprise"],allowedGranularitiesOverride:["thirtyMinutely","hourly","twoHourly","twelveHourly","daily"]})],[w.PREVIOUS_MONTH,new eh({key:w.PREVIOUS_MONTH,display:"Previous month",timeframeText:"Month",timeframeLength:()=>{let e=0;const t=ke(new Date),n=ke(Vo(new Date));return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(e=oi(t,n)),60*60*24*lf(new Date().setMonth(new Date().getMonth()-1))+ff(e)},defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["plus","enterprise"]})]]);function th(e){const t=new Date(e.start),n=new Date(e.end),r=(n.getTime()-t.getTime())/1e3;return e.timePeriodsKey&&Xf(ri.get(e.timePeriodsKey))||new L({key:"custom",timeframeText:"custom",display:"custom",startCustom:t,endCustom:n,timeframeLength:()=>r,defaultResponseGranularity:"daily",dataGranularity:"daily",isRelative:!1,allowedTiers:["free","plus","enterprise"]})}function nh(e){return{...e.key!=="custom"&&{timePeriodsKey:e.key},start:e.rawStart(),end:e.rawEnd()}}function rh(e){return{key:e.key,display:e.display,timeframeText:e.timeframeText,timeframeLength:()=>e.key,start:()=>e.rawStart(),end:()=>e.rawEnd()}}function oi(e,t){return hf(e.getTimezoneOffset()-t.getTimezoneOffset())}const oh={"15M":w.FIFTEEN_MIN,"1H":w.ONE_HOUR,"6H":w.SIX_HOUR,"12H":w.TWELVE_HOUR,"24H":w.ONE_DAY,"7D":w.SEVEN_DAY,"15m":w.FIFTEEN_MIN,"1h":w.ONE_HOUR,"6h":w.SIX_HOUR,"12h":w.TWELVE_HOUR,"24h":w.ONE_DAY,"7d":w.SEVEN_DAY,"30d":w.THIRTY_DAY,current_week:w.CURRENT_WEEK,current_month:w.CURRENT_MONTH,previous_week:w.PREVIOUS_WEEK,previous_month:w.PREVIOUS_MONTH};class wt{constructor(t){P(this,"_seed");this._seed=t}next(t,n){const r=Math.sin(this._seed++)*1e4,o=r-Math.floor(r);return Math.floor(o*(n-t+1))+t}}const ih=(e,t,n)=>{const r=cn(10,1e4),o=new wt(r),i=Date.now()-6*60*60*1e3,s=Date.now(),c=[];let l=0;for(let m=i;m<=s;m+=60*60*1e3)if(t)for(const p in t)t[p].forEach(v=>{l+=o.next(50,500);const D={[p]:v,[e.name]:l},Z={version:"1.0",timestamp:new Date(m).toISOString(),event:D};c.push(Z)});else{l+=o.next(50,500);const p={version:"1.0",timestamp:new Date(m).toISOString(),event:{[e.name]:l}};c.push(p)}const h={};if(t)for(const m in t)h[m]={},t[m].forEach(p=>{h[m][p]={name:p,deleted:!1}});const y={start_ms:i,end_ms:s,start:new Date(i).toISOString(),end:new Date(s).toISOString(),query_id:"12345",metric_names:[e.name],metric_units:{[e.name]:e.unit},granularity_ms:60*60*1e3,display:h,...n??{}};return{data:c,meta:y}},ah=(e,t)=>{const n=cn(10,1e4),r=new wt(n),o=Date.now()-6*60*60*1e3,i=Date.now(),s=[],c={};e.forEach(h=>{c[h.name]=0});for(let h=o;h<=i;h+=60*60*1e3){const y={};e.forEach(p=>{c[p.name]+=r.next(50,500),y[p.name]=c[p.name]});const m={version:"1.0",timestamp:new Date(h).toISOString(),event:y};s.push(m)}const l={start_ms:o,end_ms:i,start:new Date(o).toISOString(),end:new Date(i).toISOString(),query_id:"12345",metric_names:e.map(h=>h.name),metric_units:e.reduce((h,y)=>(h[y.name]=y.unit,h),{}),granularity_ms:60*60*1e3,display:{},...t??{}};return{data:s,meta:l}},sh=(e,t,n)=>{const r=Math.floor(Math.random()*9991)+10,o=new wt(r),i=Date.now()-6*60*60*1e3,s=Date.now(),c=new Date((i+s)/2).toISOString(),l=[];if(t){const m=Object.keys(t),p=Object.values(t),v=(D,Z)=>{if(Z===m.length){e.forEach(Y=>{D[Y.name]=o.next(1e3,5e7)}),l.push({version:"1.0",timestamp:new Date().toISOString(),event:{...D}});return}p[Z].forEach(Y=>{v({...D,[m[Z]]:Y},Z+1)})};v({},0)}else{const m={};e.forEach(p=>{m[p.name]=o.next(50,500)}),l.push({version:"1.0",timestamp:c,event:m})}const h={};if(t)for(const m in t)h[m]={},t[m].forEach(p=>{h[m][p]={name:p,deleted:!1}});const y={start_ms:i,end_ms:s,start:new Date(i).toISOString(),end:new Date(s).toISOString(),query_id:"12345",metric_names:e.map(m=>m.name),metric_units:e.reduce((m,p)=>(m[p.name]=p.unit,m),{}),truncated:!1,limit:50,display:h,granularity_ms:s-i,...n??{}};return{data:l,meta:y}};function cn(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)}exports.DeltaQueryTime=Hf;exports.Granularities=Ae;exports.REFRESH_INTERVAL_MS=Ia;exports.SeededRandom=wt;exports.TIMEFRAME_LOOKUP=oh;exports.TimePeriods=ri;exports.Timeframe=L;exports.TimeframeKeys=w;exports.TimeseriesQueryTime=qf;exports.UnaryQueryTime=ni;exports.aiExploreAggregations=Bt;exports.basicExploreAggregations=dt;exports.ceilToNearestTimeGrain=un;exports.dashboardTileTypes=Hl;exports.dashboardsSchemaV1=Wa;exports.datasourceToFilterableDimensions=Cr;exports.datePickerSelectionToTimeframe=th;exports.dstOffsetHours=oi;exports.exploreAggregations=Vt;exports.exploreFilterTypesV2=Wt;exports.filterableAiExploreDimensions=he;exports.filterableBasicExploreDimensions=de;exports.filterableExploreDimensions=fe;exports.filterableRequestDimensions=Zr;exports.filterableRequestMetrics=Nr;exports.filterableRequestWildcardDimensions=Ra;exports.floorToNearestTimeGrain=ti;exports.formatISOTimeWithTZ=Yf;exports.formatTime=Gt;exports.formatTimeRange=Lf;exports.generateCrossSectionalData=sh;exports.generateMultipleMetricTimeSeriesData=ah;exports.generateSingleMetricTimeSeriesData=ih;exports.getFieldDataSources=Jl;exports.granularitiesToOptions=Gf;exports.granularityMsToQuery=Jo;exports.granularityValues=lt;exports.msToGranularity=Wf;exports.parseDashboardConfig=Kl;exports.queryDatasources=ja;exports.queryableAiExploreDimensions=ht;exports.queryableBasicExploreDimensions=Fe;exports.queryableExploreDimensions=ft;exports.queryableRequestDimensions=Ir;exports.queryableRequestMetrics=Pr;exports.queryableRequestWildcardDimensions=$r;exports.rand=cn;exports.relativeTimeRangeValuesRequestV2=Aa;exports.relativeTimeRangeValuesV4=Ht;exports.reportChartTypes=Za;exports.requestFilterTypeEmptyV2=qt;exports.requestFilterTypeEqualsV2=$a;exports.requestFilterTypeMetricV2=Pa;exports.requestFilterTypeWildcardV2=Na;exports.stripUnknownFilters=Fa;exports.timeRangeTypeV2=Ca;exports.timeframeToDatepickerSelection=nh;exports.timeframeToDatepickerTimeperiod=rh;exports.zApiUsageQuery=No;exports.zBarChartSchema=Eo;exports.zBasicQuery=Co;exports.zDashboardConfig=Yo;exports.zDonutChartSchema=Io;exports.zGaugeChartSchema=xo;exports.zLlmUsageQuery=Ro;exports.zMetricCardSchema=$o;exports.zSingleValueSchema=Po;exports.zSlottableSchema=So;exports.zTileConfig=Uo;exports.zTileDefinition=jo;exports.zTileLayout=Fo;exports.zTimeseriesChartSchema=Mo;exports.zTopNTableSchema=Zo;exports.zValidDashboardQuery=Ao;
19
19
  //# sourceMappingURL=vitals-utilities.cjs.map